]>
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 | |
c9c7117a 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 | ||
cc6dd355 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 |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 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 { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 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 *); | |
cc6dd355 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 | } | |
9d1d5697 | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
cc6dd355 | 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 | ||
cc6dd355 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 | ||
9d1d5697 | 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_wxFileHistory swig_types[2] | |
215 | #define SWIGTYPE_p_wxLog swig_types[3] | |
216 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4] | |
217 | #define SWIGTYPE_p_wxMenu swig_types[5] | |
218 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
219 | #define SWIGTYPE_p_wxConfigBase swig_types[7] | |
220 | #define SWIGTYPE_p_wxWave swig_types[8] | |
221 | #define SWIGTYPE_p_wxFileType swig_types[9] | |
222 | #define SWIGTYPE_p_wxLogGui swig_types[10] | |
223 | #define SWIGTYPE_p_wxFont swig_types[11] | |
224 | #define SWIGTYPE_p_wxDataFormat swig_types[12] | |
225 | #define SWIGTYPE_p_wxTimerEvent swig_types[13] | |
226 | #define SWIGTYPE_p_wxCaret swig_types[14] | |
227 | #define SWIGTYPE_p_int swig_types[15] | |
228 | #define SWIGTYPE_p_wxSize swig_types[16] | |
229 | #define SWIGTYPE_p_wxClipboard swig_types[17] | |
230 | #define SWIGTYPE_p_wxStopWatch swig_types[18] | |
231 | #define SWIGTYPE_p_wxDC swig_types[19] | |
232 | #define SWIGTYPE_p_wxClipboardLocker swig_types[20] | |
233 | #define SWIGTYPE_p_wxIcon swig_types[21] | |
234 | #define SWIGTYPE_p_wxLogStderr swig_types[22] | |
235 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[23] | |
236 | #define SWIGTYPE_p_wxTextCtrl swig_types[24] | |
237 | #define SWIGTYPE_p_wxBusyCursor swig_types[25] | |
238 | #define SWIGTYPE_p_wxFileDataObject swig_types[26] | |
239 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27] | |
240 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[28] | |
241 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[29] | |
242 | #define SWIGTYPE_p_wxTextDataObject swig_types[30] | |
243 | #define SWIGTYPE_p_wxDataObject swig_types[31] | |
244 | #define SWIGTYPE_p_wxCustomDataObject swig_types[32] | |
245 | #define SWIGTYPE_p_wxURLDataObject swig_types[33] | |
246 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[34] | |
247 | #define SWIGTYPE_p_wxTimerRunner swig_types[35] | |
248 | #define SWIGTYPE_p_wxLogWindow swig_types[36] | |
249 | #define SWIGTYPE_p_wxTimeSpan swig_types[37] | |
250 | #define SWIGTYPE_p_wxArrayString swig_types[38] | |
251 | #define SWIGTYPE_p_wxWindowDisabler swig_types[39] | |
252 | #define SWIGTYPE_p_wxToolTip swig_types[40] | |
253 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[41] | |
254 | #define SWIGTYPE_p_wxFileConfig swig_types[42] | |
255 | #define SWIGTYPE_p_wxSystemSettings swig_types[43] | |
256 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[44] | |
257 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[45] | |
258 | #define SWIGTYPE_p_wxEvtHandler swig_types[46] | |
259 | #define SWIGTYPE_p_wxRect swig_types[47] | |
260 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[48] | |
261 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[49] | |
262 | #define SWIGTYPE_p_wxFrame swig_types[50] | |
263 | #define SWIGTYPE_p_wxTimer swig_types[51] | |
264 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[52] | |
265 | #define SWIGTYPE_p_wxPyArtProvider swig_types[53] | |
266 | #define SWIGTYPE_p_wxPyTipProvider swig_types[54] | |
267 | #define SWIGTYPE_p_wxTipProvider swig_types[55] | |
268 | #define SWIGTYPE_p_wxJoystick swig_types[56] | |
269 | #define SWIGTYPE_p_wxSystemOptions swig_types[57] | |
270 | #define SWIGTYPE_p_wxPoint swig_types[58] | |
271 | #define SWIGTYPE_p_wxJoystickEvent swig_types[59] | |
272 | #define SWIGTYPE_p_wxCursor swig_types[60] | |
273 | #define SWIGTYPE_p_wxObject swig_types[61] | |
274 | #define SWIGTYPE_p_wxOutputStream swig_types[62] | |
275 | #define SWIGTYPE_p_wxDateTime swig_types[63] | |
276 | #define SWIGTYPE_p_wxPyDropSource swig_types[64] | |
277 | #define SWIGTYPE_p_wxWindow swig_types[65] | |
278 | #define SWIGTYPE_p_wxString swig_types[66] | |
279 | #define SWIGTYPE_p_wxPyProcess swig_types[67] | |
280 | #define SWIGTYPE_p_wxBitmap swig_types[68] | |
281 | #define SWIGTYPE_p_wxConfig swig_types[69] | |
282 | #define SWIGTYPE_p_wxChar swig_types[70] | |
283 | #define SWIGTYPE_p_wxBusyInfo swig_types[71] | |
284 | #define SWIGTYPE_p_wxPyDropTarget swig_types[72] | |
285 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[73] | |
286 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[74] | |
287 | #define SWIGTYPE_p_wxProcessEvent swig_types[75] | |
288 | #define SWIGTYPE_p_wxPyLog swig_types[76] | |
289 | #define SWIGTYPE_p_wxLogNull swig_types[77] | |
290 | #define SWIGTYPE_p_wxColour swig_types[78] | |
291 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[79] | |
292 | #define SWIGTYPE_p_wxPyTimer swig_types[80] | |
293 | #define SWIGTYPE_p_wxDateSpan swig_types[81] | |
294 | static swig_type_info *swig_types[83]; | |
295 | ||
296 | /* -------- TYPES TABLE (END) -------- */ | |
297 | ||
298 | ||
299 | /*----------------------------------------------- | |
300 | @(target):= _misc.so | |
301 | ------------------------------------------------*/ | |
302 | #define SWIG_init init_misc | |
303 | ||
304 | #define SWIG_name "_misc" | |
305 | ||
306 | #include "wx/wxPython/wxPython.h" | |
307 | #include "wx/wxPython/pyclasses.h" | |
308 | #include "wx/wxPython/pyistream.h" | |
309 | ||
d14a1e28 | 310 | |
b2dc1044 | 311 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 | 312 | |
d14a1e28 | 313 | |
b2dc1044 RD |
314 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
315 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
316 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 RD |
317 | |
318 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
319 | PyObject* o2; | |
320 | PyObject* o3; | |
321 | ||
322 | if (!target) { | |
323 | target = o; | |
324 | } else if (target == Py_None) { | |
325 | Py_DECREF(Py_None); | |
326 | target = o; | |
327 | } else { | |
328 | if (!PyTuple_Check(target)) { | |
329 | o2 = target; | |
330 | target = PyTuple_New(1); | |
331 | PyTuple_SetItem(target, 0, o2); | |
332 | } | |
333 | o3 = PyTuple_New(1); | |
334 | PyTuple_SetItem(o3, 0, o); | |
335 | ||
336 | o2 = target; | |
337 | target = PySequence_Concat(o2, o3); | |
338 | Py_DECREF(o2); | |
339 | Py_DECREF(o3); | |
340 | } | |
341 | return target; | |
342 | } | |
343 | ||
344 | ||
345 | long wxGetFreeMemory() | |
39f61e25 RD |
346 | { wxPyRaiseNotImplemented(); return 0; } |
347 | ||
348 | ||
349 | bool wxGetKeyState(wxKeyCode key) | |
350 | { wxPyRaiseNotImplemented(); return False; } | |
d14a1e28 RD |
351 | |
352 | ||
353 | void wxWakeUpMainThread() {} | |
354 | ||
355 | ||
356 | bool wxThread_IsMain() { | |
357 | #ifdef WXP_WITH_THREAD | |
358 | return wxThread::IsMain(); | |
359 | #else | |
e811c8ce | 360 | return True; |
d14a1e28 RD |
361 | #endif |
362 | } | |
363 | ||
364 | ||
365 | int wxCaret_GetBlinkTime() { | |
366 | return wxCaret::GetBlinkTime(); | |
367 | } | |
368 | ||
369 | void wxCaret_SetBlinkTime(int milliseconds) { | |
370 | wxCaret::SetBlinkTime(milliseconds); | |
371 | } | |
372 | ||
373 | ||
374 | #include <wx/snglinst.h> | |
375 | ||
376 | ||
377 | #ifdef __WXMSW__ | |
378 | #include <wx/msw/private.h> | |
379 | #include <wx/dynload.h> | |
380 | #endif | |
381 | ||
382 | ||
383 | ||
384 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
385 | { | |
386 | #ifdef __WXMSW__ | |
387 | ||
388 | switch (method) | |
389 | { | |
390 | case 1: | |
391 | // This one only partially works. Appears to be an undocumented | |
392 | // "standard" convention that not all widgets adhear to. For | |
393 | // example, for some widgets backgrounds or non-client areas may | |
394 | // not be painted. | |
395 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
396 | break; | |
397 | ||
398 | case 2: | |
399 | // This one works much better, except for on XP. On Win2k nearly | |
400 | // all widgets and their children are captured correctly[**]. On | |
401 | // XP with Themes activated most native widgets draw only | |
402 | // partially, if at all. Without themes it works just like on | |
403 | // Win2k. | |
404 | // | |
405 | // ** For example the radio buttons in a wxRadioBox are not its | |
406 | // children by default, but you can capture it via the panel | |
407 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
408 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
409 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
410 | PRF_ERASEBKGND | PRF_OWNED ); | |
411 | break; | |
412 | ||
413 | case 3: | |
414 | // This one is only defined in the latest SDK and is only | |
415 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
416 | // so I expect that it will work similar to the above. Since it | |
417 | // is avaialble only on XP, it can't be compiled like this and | |
418 | // will have to be loaded dynamically. | |
419 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
420 | ||
421 | // fall through | |
422 | ||
423 | case 4: | |
424 | // Use PrintWindow if available, or fallback to WM_PRINT | |
425 | // otherwise. Unfortunately using PrintWindow is even worse than | |
426 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
427 | // at all, with or without Themes. | |
428 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
e811c8ce | 429 | static bool s_triedToLoad = False; |
d14a1e28 RD |
430 | static PrintWindow_t pfnPrintWindow = NULL; |
431 | if ( !s_triedToLoad ) | |
432 | { | |
433 | ||
e811c8ce | 434 | s_triedToLoad = True; |
d14a1e28 RD |
435 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
436 | if ( dllUser32.IsLoaded() ) | |
437 | { | |
438 | wxLogNull nolog; // Don't report errors here | |
439 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
440 | } | |
441 | } | |
442 | if (pfnPrintWindow) | |
443 | { | |
444 | printf("Using PrintWindow\n"); | |
445 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
446 | } | |
447 | else | |
448 | { | |
449 | printf("Using WM_PRINT\n"); | |
450 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
451 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
452 | } | |
453 | } | |
454 | #endif | |
455 | } | |
456 | ||
457 | ||
458 | ||
459 | #include <wx/tipdlg.h> | |
460 | ||
461 | ||
462 | class wxPyTipProvider : public wxTipProvider { | |
463 | public: | |
464 | wxPyTipProvider(size_t currentTip) | |
465 | : wxTipProvider(currentTip) {} | |
466 | ||
467 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
468 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
469 | PYPRIVATE; | |
470 | }; | |
471 | ||
472 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
473 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
474 | ||
475 | ||
476 | IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
477 | ||
478 | wxString Log_TimeStamp(){ | |
479 | wxString msg; | |
480 | wxLog::TimeStamp(&msg); | |
481 | return msg; | |
482 | } | |
483 | void wxLog_Destroy(wxLog *self){ delete self; } | |
484 | ||
485 | // A wxLog class that can be derived from in wxPython | |
486 | class wxPyLog : public wxLog { | |
487 | public: | |
488 | wxPyLog() : wxLog() {} | |
489 | ||
490 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
491 | bool found; | |
492 | wxPyBeginBlockThreads(); | |
493 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
494 | PyObject* s = wx2PyString(szString); | |
495 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
496 | Py_DECREF(s); | |
497 | } | |
498 | wxPyEndBlockThreads(); | |
499 | if (! found) | |
500 | wxLog::DoLog(level, szString, t); | |
501 | } | |
502 | ||
503 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
504 | bool found; | |
505 | wxPyBeginBlockThreads(); | |
506 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
507 | PyObject* s = wx2PyString(szString); | |
508 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
509 | Py_DECREF(s); | |
510 | } | |
511 | wxPyEndBlockThreads(); | |
512 | if (! found) | |
513 | wxLog::DoLogString(szString, t); | |
514 | } | |
515 | ||
516 | PYPRIVATE; | |
517 | }; | |
518 | ||
519 | ||
520 | ||
521 | ||
522 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
523 | ||
524 | ||
525 | #include <wx/joystick.h> | |
526 | ||
527 | ||
528 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
529 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
530 | class wxJoystick : public wxObject { | |
531 | public: | |
532 | wxJoystick(int joystick = wxJOYSTICK1) { | |
533 | wxPyBeginBlockThreads(); | |
39f61e25 RD |
534 | PyErr_SetString(PyExc_NotImplementedError, |
535 | "wxJoystick is not available on this platform."); | |
d14a1e28 RD |
536 | wxPyEndBlockThreads(); |
537 | } | |
538 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
539 | int GetZPosition() { return -1; } | |
540 | int GetButtonState() { return -1; } | |
541 | int GetPOVPosition() { return -1; } | |
542 | int GetPOVCTSPosition() { return -1; } | |
543 | int GetRudderPosition() { return -1; } | |
544 | int GetUPosition() { return -1; } | |
545 | int GetVPosition() { return -1; } | |
546 | int GetMovementThreshold() { return -1; } | |
547 | void SetMovementThreshold(int threshold) {} | |
548 | ||
e811c8ce | 549 | bool IsOk(void) { return False; } |
d14a1e28 RD |
550 | int GetNumberJoysticks() { return -1; } |
551 | int GetManufacturerId() { return -1; } | |
552 | int GetProductId() { return -1; } | |
553 | wxString GetProductName() { return ""; } | |
554 | int GetXMin() { return -1; } | |
555 | int GetYMin() { return -1; } | |
556 | int GetZMin() { return -1; } | |
557 | int GetXMax() { return -1; } | |
558 | int GetYMax() { return -1; } | |
559 | int GetZMax() { return -1; } | |
560 | int GetNumberButtons() { return -1; } | |
561 | int GetNumberAxes() { return -1; } | |
562 | int GetMaxButtons() { return -1; } | |
563 | int GetMaxAxes() { return -1; } | |
564 | int GetPollingMin() { return -1; } | |
565 | int GetPollingMax() { return -1; } | |
566 | int GetRudderMin() { return -1; } | |
567 | int GetRudderMax() { return -1; } | |
568 | int GetUMin() { return -1; } | |
569 | int GetUMax() { return -1; } | |
570 | int GetVMin() { return -1; } | |
571 | int GetVMax() { return -1; } | |
572 | ||
e811c8ce RD |
573 | bool HasRudder() { return False; } |
574 | bool HasZ() { return False; } | |
575 | bool HasU() { return False; } | |
576 | bool HasV() { return False; } | |
577 | bool HasPOV() { return False; } | |
578 | bool HasPOV4Dir() { return False; } | |
579 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 580 | |
e811c8ce RD |
581 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
582 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
583 | }; |
584 | #endif | |
585 | ||
586 | ||
587 | #include <wx/wave.h> | |
588 | ||
589 | ||
590 | #if !wxUSE_WAVE | |
591 | // A C++ stub class for wxWave for platforms that don't have it. | |
592 | class wxWave : public wxObject | |
593 | { | |
594 | public: | |
e811c8ce | 595 | wxWave(const wxString& fileName, bool isResource = False) { |
d14a1e28 | 596 | wxPyBeginBlockThreads(); |
39f61e25 RD |
597 | PyErr_SetString(PyExc_NotImplementedError, |
598 | "wxWave is not available on this platform."); | |
d14a1e28 RD |
599 | wxPyEndBlockThreads(); |
600 | } | |
601 | wxWave(int size, const wxByte* data) { | |
602 | wxPyBeginBlockThreads(); | |
39f61e25 RD |
603 | PyErr_SetString(PyExc_NotImplementedError, |
604 | "wxWave is not available on this platform."); | |
d14a1e28 RD |
605 | wxPyEndBlockThreads(); |
606 | } | |
607 | ||
608 | ~wxWave() {} | |
609 | ||
e811c8ce RD |
610 | bool IsOk() const { return False; } |
611 | bool Play(bool async = True, bool looped = False) const { return False; } | |
d14a1e28 RD |
612 | }; |
613 | ||
614 | #endif | |
615 | ||
616 | wxWave *new_wxWave(wxString const &data){ | |
617 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
618 | } | |
619 | ||
620 | #include <wx/mimetype.h> | |
621 | ||
622 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
623 | wxString str; | |
624 | if (self->GetMimeType(&str)) | |
625 | return wx2PyString(str); | |
626 | else | |
627 | RETURN_NONE(); | |
628 | } | |
629 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
630 | wxArrayString arr; | |
631 | if (self->GetMimeTypes(arr)) | |
632 | return wxArrayString2PyList_helper(arr); | |
633 | else | |
634 | RETURN_NONE(); | |
635 | } | |
636 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
637 | wxArrayString arr; | |
638 | if (self->GetExtensions(arr)) | |
639 | return wxArrayString2PyList_helper(arr); | |
640 | else | |
641 | RETURN_NONE(); | |
642 | } | |
643 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
644 | wxIconLocation loc; | |
645 | if (self->GetIcon(&loc)) | |
646 | return new wxIcon(loc); | |
647 | else | |
648 | return NULL; | |
649 | } | |
650 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
651 | wxIconLocation loc; | |
652 | if (self->GetIcon(&loc)) { | |
653 | wxString iconFile = loc.GetFileName(); | |
654 | int iconIndex = -1; | |
655 | ||
656 | ||
657 | ||
658 | // Make a tuple and put the values in it | |
659 | wxPyBeginBlockThreads(); | |
660 | PyObject* tuple = PyTuple_New(3); | |
661 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
e811c8ce | 662 | wxT("wxIcon"), True)); |
d14a1e28 RD |
663 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
664 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
665 | wxPyEndBlockThreads(); | |
666 | return tuple; | |
667 | } | |
668 | else | |
669 | RETURN_NONE(); | |
670 | } | |
671 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
672 | wxString str; | |
673 | if (self->GetDescription(&str)) | |
674 | return wx2PyString(str); | |
675 | else | |
676 | RETURN_NONE(); | |
677 | } | |
678 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
679 | wxString str; | |
680 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
681 | return wx2PyString(str); | |
682 | else | |
683 | RETURN_NONE(); | |
684 | } | |
685 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
686 | wxString str; | |
687 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
688 | return wx2PyString(str); | |
689 | else | |
690 | RETURN_NONE(); | |
691 | } | |
692 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
693 | wxArrayString verbs; | |
694 | wxArrayString commands; | |
695 | if (self->GetAllCommands(&verbs, &commands, | |
696 | wxFileType::MessageParameters(filename, mimetype))) { | |
697 | wxPyBeginBlockThreads(); | |
698 | PyObject* tuple = PyTuple_New(2); | |
699 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
700 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
701 | wxPyEndBlockThreads(); | |
702 | return tuple; | |
703 | } | |
704 | else | |
705 | RETURN_NONE(); | |
706 | } | |
707 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
708 | return wxFileType::ExpandCommand(command, | |
709 | wxFileType::MessageParameters(filename, mimetype)); | |
710 | } | |
711 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
712 | wxArrayString arr; | |
713 | self->EnumAllFileTypes(arr); | |
714 | return wxArrayString2PyList_helper(arr); | |
715 | } | |
716 | ||
717 | #include <wx/artprov.h> | |
718 | ||
719 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
720 | static const wxString wxPyART_MENU(wxART_MENU); | |
721 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
722 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
723 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
724 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
725 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
726 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
727 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
728 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
729 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
730 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
731 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
732 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
733 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
734 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
735 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
736 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
737 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
738 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
739 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
740 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
741 | static const wxString wxPyART_HELP(wxART_HELP); | |
742 | static const wxString wxPyART_TIP(wxART_TIP); | |
743 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
744 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
745 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
746 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
747 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
748 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
749 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
750 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
751 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
752 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
753 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
754 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
755 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
756 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
757 | // Python aware wxArtProvider | |
758 | class wxPyArtProvider : public wxArtProvider { | |
759 | public: | |
760 | ||
761 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
762 | const wxArtClient& client, | |
763 | const wxSize& size) { | |
764 | wxBitmap rval = wxNullBitmap; | |
765 | wxPyBeginBlockThreads(); | |
766 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
767 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
768 | PyObject* ro; | |
769 | wxBitmap* ptr; | |
770 | PyObject* s1, *s2; | |
771 | s1 = wx2PyString(id); | |
772 | s2 = wx2PyString(client); | |
773 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
774 | Py_DECREF(so); | |
775 | Py_DECREF(s1); | |
776 | Py_DECREF(s2); | |
777 | if (ro) { | |
778 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
779 | rval = *ptr; | |
780 | Py_DECREF(ro); | |
781 | } | |
782 | } | |
783 | wxPyEndBlockThreads(); | |
784 | return rval; | |
785 | } | |
786 | ||
787 | PYPRIVATE; | |
788 | }; | |
789 | ||
1e0c8722 | 790 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
791 | |
792 | ||
793 | ||
794 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
795 | PyObject* ret = PyTuple_New(3); | |
796 | if (ret) { | |
797 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
798 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
799 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
800 | } | |
801 | return ret; | |
802 | } | |
803 | ||
804 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
805 | bool cont; | |
806 | long index = 0; | |
807 | wxString value; | |
808 | ||
809 | cont = self->GetFirstGroup(value, index); | |
810 | return __EnumerationHelper(cont, value, index); | |
811 | } | |
812 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
813 | bool cont; | |
814 | wxString value; | |
815 | ||
816 | cont = self->GetNextGroup(value, index); | |
817 | return __EnumerationHelper(cont, value, index); | |
818 | } | |
819 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
820 | bool cont; | |
821 | long index = 0; | |
822 | wxString value; | |
823 | ||
824 | cont = self->GetFirstEntry(value, index); | |
825 | return __EnumerationHelper(cont, value, index); | |
826 | } | |
827 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
828 | bool cont; | |
829 | wxString value; | |
830 | ||
831 | cont = self->GetNextEntry(value, index); | |
832 | return __EnumerationHelper(cont, value, index); | |
833 | } | |
834 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
835 | long rv; | |
836 | self->Read(key, &rv, defaultVal); | |
837 | return rv; | |
838 | } | |
839 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
840 | double rv; | |
841 | self->Read(key, &rv, defaultVal); | |
842 | return rv; | |
843 | } | |
844 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
845 | bool rv; | |
846 | self->Read(key, &rv, defaultVal); | |
847 | return rv; | |
848 | } | |
849 | ||
850 | #include <wx/datetime.h> | |
851 | ||
d14a1e28 | 852 | |
33b885b9 RD |
853 | static const wxString wxPyDateFormatStr(wxT("%c")); |
854 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
d14a1e28 RD |
855 | |
856 | #define LOCAL_TZ wxDateTime::Local | |
857 | ||
858 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
859 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
860 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
861 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
862 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
863 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; } | |
864 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; } | |
865 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; } | |
866 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; } | |
867 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; } | |
868 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; } | |
869 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
870 | const wxChar* rv; | |
871 | const wxChar* _date = date; | |
872 | rv = self->ParseRfc822Date(_date); | |
873 | if (rv == NULL) return -1; | |
874 | return rv - _date; | |
875 | } | |
876 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
877 | const wxChar* rv; | |
878 | const wxChar* _date = date; | |
879 | rv = self->ParseFormat(_date, format, dateDef); | |
880 | if (rv == NULL) return -1; | |
881 | return rv - _date; | |
882 | } | |
883 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
884 | const wxChar* rv; | |
885 | const wxChar* _datetime = datetime; | |
886 | rv = self->ParseDateTime(_datetime); | |
887 | if (rv == NULL) return -1; | |
888 | return rv - _datetime; | |
889 | } | |
890 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
891 | const wxChar* rv; | |
892 | const wxChar* _date = date; | |
893 | rv = self->ParseDate(_date); | |
894 | if (rv == NULL) return -1; | |
895 | return rv - _date; | |
896 | } | |
897 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
898 | const wxChar* rv; | |
899 | const wxChar* _time = time; | |
900 | rv = self->ParseTime(_time); | |
901 | if (rv == NULL) return -1; | |
902 | return rv - _time; | |
903 | } | |
904 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
905 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
906 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
907 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
908 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; } | |
909 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; } | |
910 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; } | |
911 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; } | |
912 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; } | |
913 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; } | |
914 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
915 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
916 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
917 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
918 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; } | |
919 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const &other){ return *self != other; } | |
920 | ||
921 | #include <wx/dataobj.h> | |
922 | ||
923 | // Create a new class for wxPython to use | |
924 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
925 | public: | |
926 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
927 | : wxDataObjectSimple(format) {} | |
928 | ||
929 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
930 | bool GetDataHere(void *buf) const; | |
931 | bool SetData(size_t len, const void *buf) const; | |
932 | PYPRIVATE; | |
933 | }; | |
934 | ||
935 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
936 | ||
937 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
938 | // We need to get the data for this object and write it to buf. I think | |
939 | // the best way to do this for wxPython is to have the Python method | |
940 | // return either a string or None and then act appropriately with the | |
941 | // C++ version. | |
942 | ||
e811c8ce | 943 | bool rval = False; |
d14a1e28 RD |
944 | wxPyBeginBlockThreads(); |
945 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
946 | PyObject* ro; | |
947 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
948 | if (ro) { | |
949 | rval = (ro != Py_None && PyString_Check(ro)); | |
950 | if (rval) | |
951 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
952 | Py_DECREF(ro); | |
953 | } | |
954 | } | |
955 | wxPyEndBlockThreads(); | |
956 | return rval; | |
957 | } | |
958 | ||
959 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
960 | // For this one we simply need to make a string from buf and len | |
961 | // and send it to the Python method. | |
e811c8ce | 962 | bool rval = False; |
d14a1e28 RD |
963 | wxPyBeginBlockThreads(); |
964 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
965 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
966 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
967 | Py_DECREF(data); | |
968 | } | |
969 | wxPyEndBlockThreads(); | |
970 | return rval; | |
971 | } | |
972 | ||
973 | // Create a new class for wxPython to use | |
974 | class wxPyTextDataObject : public wxTextDataObject { | |
975 | public: | |
976 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
977 | : wxTextDataObject(text) {} | |
978 | ||
979 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
980 | DEC_PYCALLBACK_STRING__const(GetText); | |
981 | DEC_PYCALLBACK__STRING(SetText); | |
982 | PYPRIVATE; | |
983 | }; | |
984 | ||
985 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
986 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
987 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
988 | ||
989 | ||
990 | // Create a new class for wxPython to use | |
991 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
992 | public: | |
993 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
994 | : wxBitmapDataObject(bitmap) {} | |
995 | ||
996 | wxBitmap GetBitmap() const; | |
997 | void SetBitmap(const wxBitmap& bitmap); | |
998 | PYPRIVATE; | |
999 | }; | |
1000 | ||
1001 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1002 | wxBitmap* rval = &wxNullBitmap; | |
1003 | wxPyBeginBlockThreads(); | |
1004 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1005 | PyObject* ro; | |
1006 | wxBitmap* ptr; | |
1007 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1008 | if (ro) { | |
1009 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1010 | rval = ptr; | |
1011 | Py_DECREF(ro); | |
1012 | } | |
1013 | } | |
1014 | wxPyEndBlockThreads(); | |
1015 | return *rval; | |
1016 | } | |
1017 | ||
1018 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1019 | wxPyBeginBlockThreads(); | |
1020 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
e811c8ce | 1021 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1022 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1023 | Py_DECREF(bo); | |
1024 | } | |
1025 | wxPyEndBlockThreads(); | |
1026 | } | |
1027 | ||
1028 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1029 | if (PyString_Check(data)) { | |
1030 | // for Python we just call SetData here since we always need it to make a copy. | |
1031 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1032 | } | |
1033 | else { | |
1034 | // raise a TypeError if not a string | |
1035 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1036 | } | |
1037 | } | |
1038 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1039 | if (PyString_Check(data)) { | |
1040 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1041 | } | |
1042 | else { | |
1043 | // raise a TypeError if not a string | |
1044 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
e811c8ce | 1045 | return False; |
d14a1e28 RD |
1046 | } |
1047 | } | |
1048 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1049 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1050 | } | |
1051 | ||
1052 | class wxMetafileDataObject : public wxDataObjectSimple | |
1053 | { | |
1054 | public: | |
39f61e25 | 1055 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1056 | }; |
1057 | ||
1058 | ||
d14a1e28 RD |
1059 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1060 | ||
1061 | ||
d14a1e28 RD |
1062 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1063 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1064 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1065 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1066 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1067 | ||
1068 | ||
d14a1e28 RD |
1069 | class wxPyTextDropTarget : public wxTextDropTarget { |
1070 | public: | |
1071 | wxPyTextDropTarget() {} | |
1072 | ||
1073 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1074 | ||
1075 | DEC_PYCALLBACK__(OnLeave); | |
1076 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1077 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1078 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1079 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1080 | ||
1081 | PYPRIVATE; | |
1082 | }; | |
1083 | ||
1084 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1085 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1086 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1087 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1088 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1089 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1090 | ||
1091 | ||
1092 | ||
1093 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1094 | public: | |
1095 | wxPyFileDropTarget() {} | |
1096 | ||
1097 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1098 | ||
1099 | DEC_PYCALLBACK__(OnLeave); | |
1100 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1101 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1102 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1103 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1104 | ||
1105 | PYPRIVATE; | |
1106 | }; | |
1107 | ||
1108 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1109 | const wxArrayString& filenames) { | |
e811c8ce | 1110 | bool rval = False; |
d14a1e28 RD |
1111 | wxPyBeginBlockThreads(); |
1112 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1113 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1114 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1115 | Py_DECREF(list); | |
1116 | } | |
1117 | wxPyEndBlockThreads(); | |
1118 | return rval; | |
1119 | } | |
1120 | ||
1121 | ||
1122 | ||
1123 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1124 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1125 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1126 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1127 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1128 | ||
1129 | ||
1130 | ||
1131 | ||
1132 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1133 | #ifdef __cplusplus | |
1134 | extern "C" { | |
1135 | #endif | |
1136 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1137 | PyObject *resultobj; | |
1138 | int arg1 ; | |
1139 | wxColour result; | |
1140 | char *kwnames[] = { | |
1141 | (char *) "index", NULL | |
1142 | }; | |
1143 | ||
1144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetColour",kwnames,&arg1)) goto fail; | |
1145 | { | |
1146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1147 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1148 | ||
1149 | wxPyEndAllowThreads(__tstate); | |
1150 | if (PyErr_Occurred()) SWIG_fail; | |
1151 | } | |
1152 | { | |
1153 | wxColour * resultptr; | |
1154 | resultptr = new wxColour((wxColour &) result); | |
1155 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1156 | } | |
1157 | return resultobj; | |
1158 | fail: | |
1159 | return NULL; | |
1160 | } | |
1161 | ||
1162 | ||
1163 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1164 | PyObject *resultobj; | |
1165 | int arg1 ; | |
1166 | wxFont result; | |
1167 | char *kwnames[] = { | |
1168 | (char *) "index", NULL | |
1169 | }; | |
1170 | ||
1171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetFont",kwnames,&arg1)) goto fail; | |
1172 | { | |
1173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1174 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1175 | ||
1176 | wxPyEndAllowThreads(__tstate); | |
1177 | if (PyErr_Occurred()) SWIG_fail; | |
1178 | } | |
1179 | { | |
1180 | wxFont * resultptr; | |
1181 | resultptr = new wxFont((wxFont &) result); | |
1182 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
1183 | } | |
1184 | return resultobj; | |
1185 | fail: | |
1186 | return NULL; | |
1187 | } | |
1188 | ||
1189 | ||
1190 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1191 | PyObject *resultobj; | |
1192 | int arg1 ; | |
1193 | int result; | |
1194 | char *kwnames[] = { | |
1195 | (char *) "index", NULL | |
1196 | }; | |
1197 | ||
1198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetMetric",kwnames,&arg1)) goto fail; | |
1199 | { | |
1200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1201 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1202 | ||
1203 | wxPyEndAllowThreads(__tstate); | |
1204 | if (PyErr_Occurred()) SWIG_fail; | |
1205 | } | |
1206 | resultobj = PyInt_FromLong((long)result); | |
1207 | return resultobj; | |
1208 | fail: | |
1209 | return NULL; | |
1210 | } | |
1211 | ||
1212 | ||
1213 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1214 | PyObject *resultobj; | |
1215 | int arg1 ; | |
1216 | bool result; | |
1217 | char *kwnames[] = { | |
1218 | (char *) "index", NULL | |
1219 | }; | |
1220 | ||
1221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_HasFeature",kwnames,&arg1)) goto fail; | |
1222 | { | |
1223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1224 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1225 | ||
1226 | wxPyEndAllowThreads(__tstate); | |
1227 | if (PyErr_Occurred()) SWIG_fail; | |
1228 | } | |
1229 | resultobj = PyInt_FromLong((long)result); | |
1230 | return resultobj; | |
1231 | fail: | |
1232 | return NULL; | |
1233 | } | |
1234 | ||
1235 | ||
1236 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1237 | PyObject *resultobj; | |
1238 | int result; | |
1239 | char *kwnames[] = { | |
1240 | NULL | |
1241 | }; | |
1242 | ||
1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1244 | { | |
1245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1246 | result = (int)wxSystemSettings::GetScreenType(); | |
1247 | ||
1248 | wxPyEndAllowThreads(__tstate); | |
1249 | if (PyErr_Occurred()) SWIG_fail; | |
1250 | } | |
1251 | resultobj = PyInt_FromLong((long)result); | |
1252 | return resultobj; | |
1253 | fail: | |
1254 | return NULL; | |
1255 | } | |
1256 | ||
1257 | ||
1258 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1259 | PyObject *resultobj; | |
1260 | int arg1 ; | |
1261 | char *kwnames[] = { | |
1262 | (char *) "screen", NULL | |
1263 | }; | |
1264 | ||
1265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_SetScreenType",kwnames,&arg1)) goto fail; | |
1266 | { | |
1267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1268 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1269 | ||
1270 | wxPyEndAllowThreads(__tstate); | |
1271 | if (PyErr_Occurred()) SWIG_fail; | |
1272 | } | |
1273 | Py_INCREF(Py_None); resultobj = Py_None; | |
1274 | return resultobj; | |
1275 | fail: | |
1276 | return NULL; | |
1277 | } | |
1278 | ||
1279 | ||
1280 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1281 | PyObject *obj; | |
1282 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1283 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1284 | Py_INCREF(obj); | |
1285 | return Py_BuildValue((char *)""); | |
1286 | } | |
1287 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1288 | PyObject *resultobj; | |
1289 | wxSystemOptions *result; | |
1290 | char *kwnames[] = { | |
1291 | NULL | |
1292 | }; | |
1293 | ||
1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1295 | { | |
1296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1297 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1298 | ||
1299 | wxPyEndAllowThreads(__tstate); | |
1300 | if (PyErr_Occurred()) SWIG_fail; | |
1301 | } | |
1302 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1); | |
1303 | return resultobj; | |
1304 | fail: | |
1305 | return NULL; | |
1306 | } | |
1307 | ||
1308 | ||
1309 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1310 | PyObject *resultobj; | |
1311 | wxString *arg1 = 0 ; | |
1312 | wxString *arg2 = 0 ; | |
e811c8ce RD |
1313 | bool temp1 = False ; |
1314 | bool temp2 = False ; | |
d14a1e28 RD |
1315 | PyObject * obj0 = 0 ; |
1316 | PyObject * obj1 = 0 ; | |
1317 | char *kwnames[] = { | |
1318 | (char *) "name",(char *) "value", NULL | |
1319 | }; | |
1320 | ||
1321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1322 | { | |
1323 | arg1 = wxString_in_helper(obj0); | |
1324 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1325 | temp1 = True; |
d14a1e28 RD |
1326 | } |
1327 | { | |
1328 | arg2 = wxString_in_helper(obj1); | |
1329 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1330 | temp2 = True; |
d14a1e28 RD |
1331 | } |
1332 | { | |
1333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1334 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1335 | ||
1336 | wxPyEndAllowThreads(__tstate); | |
1337 | if (PyErr_Occurred()) SWIG_fail; | |
1338 | } | |
1339 | Py_INCREF(Py_None); resultobj = Py_None; | |
1340 | { | |
1341 | if (temp1) | |
1342 | delete arg1; | |
1343 | } | |
1344 | { | |
1345 | if (temp2) | |
1346 | delete arg2; | |
1347 | } | |
1348 | return resultobj; | |
1349 | fail: | |
1350 | { | |
1351 | if (temp1) | |
1352 | delete arg1; | |
1353 | } | |
1354 | { | |
1355 | if (temp2) | |
1356 | delete arg2; | |
1357 | } | |
1358 | return NULL; | |
1359 | } | |
1360 | ||
1361 | ||
1362 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject *resultobj; | |
1364 | wxString *arg1 = 0 ; | |
1365 | int arg2 ; | |
e811c8ce | 1366 | bool temp1 = False ; |
d14a1e28 RD |
1367 | PyObject * obj0 = 0 ; |
1368 | char *kwnames[] = { | |
1369 | (char *) "name",(char *) "value", NULL | |
1370 | }; | |
1371 | ||
1372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SystemOptions_SetOptionInt",kwnames,&obj0,&arg2)) goto fail; | |
1373 | { | |
1374 | arg1 = wxString_in_helper(obj0); | |
1375 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1376 | temp1 = True; |
d14a1e28 RD |
1377 | } |
1378 | { | |
1379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1380 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1381 | ||
1382 | wxPyEndAllowThreads(__tstate); | |
1383 | if (PyErr_Occurred()) SWIG_fail; | |
1384 | } | |
1385 | Py_INCREF(Py_None); resultobj = Py_None; | |
1386 | { | |
1387 | if (temp1) | |
1388 | delete arg1; | |
1389 | } | |
1390 | return resultobj; | |
1391 | fail: | |
1392 | { | |
1393 | if (temp1) | |
1394 | delete arg1; | |
1395 | } | |
1396 | return NULL; | |
1397 | } | |
1398 | ||
1399 | ||
1400 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1401 | PyObject *resultobj; | |
1402 | wxString *arg1 = 0 ; | |
1403 | wxString result; | |
e811c8ce | 1404 | bool temp1 = False ; |
d14a1e28 RD |
1405 | PyObject * obj0 = 0 ; |
1406 | char *kwnames[] = { | |
1407 | (char *) "name", NULL | |
1408 | }; | |
1409 | ||
1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1411 | { | |
1412 | arg1 = wxString_in_helper(obj0); | |
1413 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1414 | temp1 = True; |
d14a1e28 RD |
1415 | } |
1416 | { | |
1417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1418 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1419 | ||
1420 | wxPyEndAllowThreads(__tstate); | |
1421 | if (PyErr_Occurred()) SWIG_fail; | |
1422 | } | |
1423 | { | |
1424 | #if wxUSE_UNICODE | |
1425 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1426 | #else | |
1427 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1428 | #endif | |
1429 | } | |
1430 | { | |
1431 | if (temp1) | |
1432 | delete arg1; | |
1433 | } | |
1434 | return resultobj; | |
1435 | fail: | |
1436 | { | |
1437 | if (temp1) | |
1438 | delete arg1; | |
1439 | } | |
1440 | return NULL; | |
1441 | } | |
1442 | ||
1443 | ||
1444 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1445 | PyObject *resultobj; | |
1446 | wxString *arg1 = 0 ; | |
1447 | int result; | |
e811c8ce | 1448 | bool temp1 = False ; |
d14a1e28 RD |
1449 | PyObject * obj0 = 0 ; |
1450 | char *kwnames[] = { | |
1451 | (char *) "name", NULL | |
1452 | }; | |
1453 | ||
1454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1455 | { | |
1456 | arg1 = wxString_in_helper(obj0); | |
1457 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1458 | temp1 = True; |
d14a1e28 RD |
1459 | } |
1460 | { | |
1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1462 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1463 | ||
1464 | wxPyEndAllowThreads(__tstate); | |
1465 | if (PyErr_Occurred()) SWIG_fail; | |
1466 | } | |
1467 | resultobj = PyInt_FromLong((long)result); | |
1468 | { | |
1469 | if (temp1) | |
1470 | delete arg1; | |
1471 | } | |
1472 | return resultobj; | |
1473 | fail: | |
1474 | { | |
1475 | if (temp1) | |
1476 | delete arg1; | |
1477 | } | |
1478 | return NULL; | |
1479 | } | |
1480 | ||
1481 | ||
1482 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject *resultobj; | |
1484 | wxString *arg1 = 0 ; | |
1485 | bool result; | |
e811c8ce | 1486 | bool temp1 = False ; |
d14a1e28 RD |
1487 | PyObject * obj0 = 0 ; |
1488 | char *kwnames[] = { | |
1489 | (char *) "name", NULL | |
1490 | }; | |
1491 | ||
1492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1493 | { | |
1494 | arg1 = wxString_in_helper(obj0); | |
1495 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1496 | temp1 = True; |
d14a1e28 RD |
1497 | } |
1498 | { | |
1499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1500 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1501 | ||
1502 | wxPyEndAllowThreads(__tstate); | |
1503 | if (PyErr_Occurred()) SWIG_fail; | |
1504 | } | |
1505 | resultobj = PyInt_FromLong((long)result); | |
1506 | { | |
1507 | if (temp1) | |
1508 | delete arg1; | |
1509 | } | |
1510 | return resultobj; | |
1511 | fail: | |
1512 | { | |
1513 | if (temp1) | |
1514 | delete arg1; | |
1515 | } | |
1516 | return NULL; | |
1517 | } | |
1518 | ||
1519 | ||
1520 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1521 | PyObject *obj; | |
1522 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1523 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1524 | Py_INCREF(obj); | |
1525 | return Py_BuildValue((char *)""); | |
1526 | } | |
b2dc1044 RD |
1527 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
1528 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1529 | return 1; | |
1530 | } | |
1531 | ||
1532 | ||
1533 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1534 | PyObject *pyobj; | |
1535 | ||
1536 | { | |
1537 | #if wxUSE_UNICODE | |
1538 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1539 | #else | |
1540 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1541 | #endif | |
1542 | } | |
1543 | return pyobj; | |
1544 | } | |
1545 | ||
1546 | ||
1547 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1548 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1549 | return 1; | |
1550 | } | |
1551 | ||
1552 | ||
1553 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1554 | PyObject *pyobj; | |
1555 | ||
1556 | { | |
1557 | #if wxUSE_UNICODE | |
1558 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1559 | #else | |
1560 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1561 | #endif | |
1562 | } | |
1563 | return pyobj; | |
1564 | } | |
1565 | ||
1566 | ||
1567 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1568 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1569 | return 1; | |
1570 | } | |
1571 | ||
1572 | ||
1573 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1574 | PyObject *pyobj; | |
1575 | ||
1576 | { | |
1577 | #if wxUSE_UNICODE | |
1578 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1579 | #else | |
1580 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1581 | #endif | |
1582 | } | |
1583 | return pyobj; | |
1584 | } | |
1585 | ||
1586 | ||
d14a1e28 RD |
1587 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
1588 | PyObject *resultobj; | |
1589 | long result; | |
1590 | char *kwnames[] = { | |
1591 | NULL | |
1592 | }; | |
1593 | ||
1594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1595 | { | |
1596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1597 | result = (long)wxNewId(); | |
1598 | ||
1599 | wxPyEndAllowThreads(__tstate); | |
1600 | if (PyErr_Occurred()) SWIG_fail; | |
1601 | } | |
1602 | resultobj = PyInt_FromLong((long)result); | |
1603 | return resultobj; | |
1604 | fail: | |
1605 | return NULL; | |
1606 | } | |
1607 | ||
1608 | ||
1609 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1610 | PyObject *resultobj; | |
1611 | long arg1 ; | |
1612 | char *kwnames[] = { | |
1613 | (char *) "id", NULL | |
1614 | }; | |
1615 | ||
1616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:RegisterId",kwnames,&arg1)) goto fail; | |
1617 | { | |
1618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1619 | wxRegisterId(arg1); | |
1620 | ||
1621 | wxPyEndAllowThreads(__tstate); | |
1622 | if (PyErr_Occurred()) SWIG_fail; | |
1623 | } | |
1624 | Py_INCREF(Py_None); resultobj = Py_None; | |
1625 | return resultobj; | |
1626 | fail: | |
1627 | return NULL; | |
1628 | } | |
1629 | ||
1630 | ||
1631 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1632 | PyObject *resultobj; | |
1633 | long result; | |
1634 | char *kwnames[] = { | |
1635 | NULL | |
1636 | }; | |
1637 | ||
1638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1639 | { | |
1640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1641 | result = (long)wxGetCurrentId(); | |
1642 | ||
1643 | wxPyEndAllowThreads(__tstate); | |
1644 | if (PyErr_Occurred()) SWIG_fail; | |
1645 | } | |
1646 | resultobj = PyInt_FromLong((long)result); | |
1647 | return resultobj; | |
1648 | fail: | |
1649 | return NULL; | |
1650 | } | |
1651 | ||
1652 | ||
1653 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1654 | PyObject *resultobj; | |
1655 | char *kwnames[] = { | |
1656 | NULL | |
1657 | }; | |
1658 | ||
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1660 | { | |
1661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1662 | wxBell(); | |
1663 | ||
1664 | wxPyEndAllowThreads(__tstate); | |
1665 | if (PyErr_Occurred()) SWIG_fail; | |
1666 | } | |
1667 | Py_INCREF(Py_None); resultobj = Py_None; | |
1668 | return resultobj; | |
1669 | fail: | |
1670 | return NULL; | |
1671 | } | |
1672 | ||
1673 | ||
1674 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1675 | PyObject *resultobj; | |
1676 | char *kwnames[] = { | |
1677 | NULL | |
1678 | }; | |
1679 | ||
1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1681 | { | |
1682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1683 | wxEndBusyCursor(); | |
1684 | ||
1685 | wxPyEndAllowThreads(__tstate); | |
1686 | if (PyErr_Occurred()) SWIG_fail; | |
1687 | } | |
1688 | Py_INCREF(Py_None); resultobj = Py_None; | |
1689 | return resultobj; | |
1690 | fail: | |
1691 | return NULL; | |
1692 | } | |
1693 | ||
1694 | ||
1695 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject *resultobj; | |
e811c8ce | 1697 | bool arg1 = (bool) True ; |
d14a1e28 RD |
1698 | long result; |
1699 | PyObject * obj0 = 0 ; | |
1700 | char *kwnames[] = { | |
1701 | (char *) "resetTimer", NULL | |
1702 | }; | |
1703 | ||
1704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
1705 | if (obj0) { | |
1706 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
1707 | if (PyErr_Occurred()) SWIG_fail; | |
1708 | } | |
1709 | { | |
1710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1711 | result = (long)wxGetElapsedTime(arg1); | |
1712 | ||
1713 | wxPyEndAllowThreads(__tstate); | |
1714 | if (PyErr_Occurred()) SWIG_fail; | |
1715 | } | |
1716 | resultobj = PyInt_FromLong((long)result); | |
1717 | return resultobj; | |
1718 | fail: | |
1719 | return NULL; | |
1720 | } | |
1721 | ||
1722 | ||
1723 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1724 | PyObject *resultobj; | |
1725 | int *arg1 = (int *) 0 ; | |
1726 | int *arg2 = (int *) 0 ; | |
1727 | int temp1 ; | |
1728 | int temp2 ; | |
1729 | char *kwnames[] = { | |
1730 | NULL | |
1731 | }; | |
1732 | ||
1733 | arg1 = &temp1; | |
1734 | arg2 = &temp2; | |
1735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
1736 | { | |
1737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1738 | wxGetMousePosition(arg1,arg2); | |
1739 | ||
1740 | wxPyEndAllowThreads(__tstate); | |
1741 | if (PyErr_Occurred()) SWIG_fail; | |
1742 | } | |
1743 | Py_INCREF(Py_None); resultobj = Py_None; | |
1744 | { | |
1745 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1746 | resultobj = t_output_helper(resultobj,o); | |
1747 | } | |
1748 | { | |
1749 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1750 | resultobj = t_output_helper(resultobj,o); | |
1751 | } | |
1752 | return resultobj; | |
1753 | fail: | |
1754 | return NULL; | |
1755 | } | |
1756 | ||
1757 | ||
1758 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1759 | PyObject *resultobj; | |
1760 | bool result; | |
1761 | char *kwnames[] = { | |
1762 | NULL | |
1763 | }; | |
1764 | ||
1765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
1766 | { | |
1767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1768 | result = (bool)wxIsBusy(); | |
1769 | ||
1770 | wxPyEndAllowThreads(__tstate); | |
1771 | if (PyErr_Occurred()) SWIG_fail; | |
1772 | } | |
1773 | resultobj = PyInt_FromLong((long)result); | |
1774 | return resultobj; | |
1775 | fail: | |
1776 | return NULL; | |
1777 | } | |
1778 | ||
1779 | ||
1780 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1781 | PyObject *resultobj; | |
1782 | wxString result; | |
1783 | char *kwnames[] = { | |
1784 | NULL | |
1785 | }; | |
1786 | ||
1787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
1788 | { | |
1789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1790 | result = wxNow(); | |
1791 | ||
1792 | wxPyEndAllowThreads(__tstate); | |
1793 | if (PyErr_Occurred()) SWIG_fail; | |
1794 | } | |
1795 | { | |
1796 | #if wxUSE_UNICODE | |
1797 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1798 | #else | |
1799 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1800 | #endif | |
1801 | } | |
1802 | return resultobj; | |
1803 | fail: | |
1804 | return NULL; | |
1805 | } | |
1806 | ||
1807 | ||
1808 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1809 | PyObject *resultobj; | |
1810 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
1811 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
1812 | bool result; | |
e811c8ce | 1813 | bool temp1 = False ; |
d14a1e28 RD |
1814 | PyObject * obj0 = 0 ; |
1815 | char *kwnames[] = { | |
1816 | (char *) "command", NULL | |
1817 | }; | |
1818 | ||
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
1820 | if (obj0) { | |
1821 | { | |
1822 | arg1 = wxString_in_helper(obj0); | |
1823 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1824 | temp1 = True; |
d14a1e28 RD |
1825 | } |
1826 | } | |
1827 | { | |
1828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1829 | result = (bool)wxShell((wxString const &)*arg1); | |
1830 | ||
1831 | wxPyEndAllowThreads(__tstate); | |
1832 | if (PyErr_Occurred()) SWIG_fail; | |
1833 | } | |
1834 | resultobj = PyInt_FromLong((long)result); | |
1835 | { | |
1836 | if (temp1) | |
1837 | delete arg1; | |
1838 | } | |
1839 | return resultobj; | |
1840 | fail: | |
1841 | { | |
1842 | if (temp1) | |
1843 | delete arg1; | |
1844 | } | |
1845 | return NULL; | |
1846 | } | |
1847 | ||
1848 | ||
1849 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1850 | PyObject *resultobj; | |
1851 | char *kwnames[] = { | |
1852 | NULL | |
1853 | }; | |
1854 | ||
1855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
1856 | { | |
1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1858 | wxStartTimer(); | |
1859 | ||
1860 | wxPyEndAllowThreads(__tstate); | |
1861 | if (PyErr_Occurred()) SWIG_fail; | |
1862 | } | |
1863 | Py_INCREF(Py_None); resultobj = Py_None; | |
1864 | return resultobj; | |
1865 | fail: | |
1866 | return NULL; | |
1867 | } | |
1868 | ||
1869 | ||
1870 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1871 | PyObject *resultobj; | |
1872 | int *arg1 = (int *) 0 ; | |
1873 | int *arg2 = (int *) 0 ; | |
1874 | int result; | |
1875 | int temp1 ; | |
1876 | int temp2 ; | |
1877 | char *kwnames[] = { | |
1878 | NULL | |
1879 | }; | |
1880 | ||
1881 | arg1 = &temp1; | |
1882 | arg2 = &temp2; | |
1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
1884 | { | |
1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1886 | result = (int)wxGetOsVersion(arg1,arg2); | |
1887 | ||
1888 | wxPyEndAllowThreads(__tstate); | |
1889 | if (PyErr_Occurred()) SWIG_fail; | |
1890 | } | |
1891 | resultobj = PyInt_FromLong((long)result); | |
1892 | { | |
1893 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1894 | resultobj = t_output_helper(resultobj,o); | |
1895 | } | |
1896 | { | |
1897 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1898 | resultobj = t_output_helper(resultobj,o); | |
1899 | } | |
1900 | return resultobj; | |
1901 | fail: | |
1902 | return NULL; | |
1903 | } | |
1904 | ||
1905 | ||
1906 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1907 | PyObject *resultobj; | |
1908 | wxString result; | |
1909 | char *kwnames[] = { | |
1910 | NULL | |
1911 | }; | |
1912 | ||
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
1914 | { | |
1915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1916 | result = wxGetOsDescription(); | |
1917 | ||
1918 | wxPyEndAllowThreads(__tstate); | |
1919 | if (PyErr_Occurred()) SWIG_fail; | |
1920 | } | |
1921 | { | |
1922 | #if wxUSE_UNICODE | |
1923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1924 | #else | |
1925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1926 | #endif | |
1927 | } | |
1928 | return resultobj; | |
1929 | fail: | |
1930 | return NULL; | |
1931 | } | |
1932 | ||
1933 | ||
1934 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1935 | PyObject *resultobj; | |
1936 | long result; | |
1937 | char *kwnames[] = { | |
1938 | NULL | |
1939 | }; | |
1940 | ||
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
1942 | { | |
1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1944 | result = (long)wxGetFreeMemory(); | |
1945 | ||
1946 | wxPyEndAllowThreads(__tstate); | |
1947 | if (PyErr_Occurred()) SWIG_fail; | |
1948 | } | |
1949 | resultobj = PyInt_FromLong((long)result); | |
1950 | return resultobj; | |
1951 | fail: | |
1952 | return NULL; | |
1953 | } | |
1954 | ||
1955 | ||
1956 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1957 | PyObject *resultobj; | |
1958 | int arg1 ; | |
1959 | bool result; | |
1960 | char *kwnames[] = { | |
1961 | (char *) "wFlags", NULL | |
1962 | }; | |
1963 | ||
1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Shutdown",kwnames,&arg1)) goto fail; | |
1965 | { | |
1966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1967 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
1968 | ||
1969 | wxPyEndAllowThreads(__tstate); | |
1970 | if (PyErr_Occurred()) SWIG_fail; | |
1971 | } | |
1972 | resultobj = PyInt_FromLong((long)result); | |
1973 | return resultobj; | |
1974 | fail: | |
1975 | return NULL; | |
1976 | } | |
1977 | ||
1978 | ||
1979 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1980 | PyObject *resultobj; | |
1981 | int arg1 ; | |
1982 | char *kwnames[] = { | |
1983 | (char *) "secs", NULL | |
1984 | }; | |
1985 | ||
1986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Sleep",kwnames,&arg1)) goto fail; | |
1987 | { | |
1988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1989 | wxSleep(arg1); | |
1990 | ||
1991 | wxPyEndAllowThreads(__tstate); | |
1992 | if (PyErr_Occurred()) SWIG_fail; | |
1993 | } | |
1994 | Py_INCREF(Py_None); resultobj = Py_None; | |
1995 | return resultobj; | |
1996 | fail: | |
1997 | return NULL; | |
1998 | } | |
1999 | ||
2000 | ||
2001 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2002 | PyObject *resultobj; | |
2003 | unsigned long arg1 ; | |
2004 | PyObject * obj0 = 0 ; | |
2005 | char *kwnames[] = { | |
2006 | (char *) "milliseconds", NULL | |
2007 | }; | |
2008 | ||
2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
2010 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
2011 | if (PyErr_Occurred()) SWIG_fail; | |
2012 | { | |
2013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2014 | wxUsleep(arg1); | |
2015 | ||
2016 | wxPyEndAllowThreads(__tstate); | |
2017 | if (PyErr_Occurred()) SWIG_fail; | |
2018 | } | |
2019 | Py_INCREF(Py_None); resultobj = Py_None; | |
2020 | return resultobj; | |
2021 | fail: | |
2022 | return NULL; | |
2023 | } | |
2024 | ||
2025 | ||
2026 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2027 | PyObject *resultobj; | |
2028 | bool arg1 ; | |
2029 | PyObject * obj0 = 0 ; | |
2030 | char *kwnames[] = { | |
2031 | (char *) "enable", NULL | |
2032 | }; | |
2033 | ||
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2035 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
2036 | if (PyErr_Occurred()) SWIG_fail; | |
2037 | { | |
2038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2039 | wxEnableTopLevelWindows(arg1); | |
2040 | ||
2041 | wxPyEndAllowThreads(__tstate); | |
2042 | if (PyErr_Occurred()) SWIG_fail; | |
2043 | } | |
2044 | Py_INCREF(Py_None); resultobj = Py_None; | |
2045 | return resultobj; | |
2046 | fail: | |
2047 | return NULL; | |
2048 | } | |
2049 | ||
2050 | ||
2051 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2052 | PyObject *resultobj; | |
2053 | wxString *arg1 = 0 ; | |
2054 | wxString result; | |
e811c8ce | 2055 | bool temp1 = False ; |
d14a1e28 RD |
2056 | PyObject * obj0 = 0 ; |
2057 | char *kwnames[] = { | |
2058 | (char *) "in", NULL | |
2059 | }; | |
2060 | ||
2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2062 | { | |
2063 | arg1 = wxString_in_helper(obj0); | |
2064 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2065 | temp1 = True; |
d14a1e28 RD |
2066 | } |
2067 | { | |
2068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2069 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2070 | ||
2071 | wxPyEndAllowThreads(__tstate); | |
2072 | if (PyErr_Occurred()) SWIG_fail; | |
2073 | } | |
2074 | { | |
2075 | #if wxUSE_UNICODE | |
2076 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2077 | #else | |
2078 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2079 | #endif | |
2080 | } | |
2081 | { | |
2082 | if (temp1) | |
2083 | delete arg1; | |
2084 | } | |
2085 | return resultobj; | |
2086 | fail: | |
2087 | { | |
2088 | if (temp1) | |
2089 | delete arg1; | |
2090 | } | |
2091 | return NULL; | |
2092 | } | |
2093 | ||
2094 | ||
2095 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2096 | PyObject *resultobj; | |
2097 | wxString result; | |
2098 | char *kwnames[] = { | |
2099 | NULL | |
2100 | }; | |
2101 | ||
2102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2103 | { | |
2104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2105 | result = wxGetEmailAddress(); | |
2106 | ||
2107 | wxPyEndAllowThreads(__tstate); | |
2108 | if (PyErr_Occurred()) SWIG_fail; | |
2109 | } | |
2110 | { | |
2111 | #if wxUSE_UNICODE | |
2112 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2113 | #else | |
2114 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2115 | #endif | |
2116 | } | |
2117 | return resultobj; | |
2118 | fail: | |
2119 | return NULL; | |
2120 | } | |
2121 | ||
2122 | ||
2123 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2124 | PyObject *resultobj; | |
2125 | wxString result; | |
2126 | char *kwnames[] = { | |
2127 | NULL | |
2128 | }; | |
2129 | ||
2130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2131 | { | |
2132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2133 | result = wxGetHostName(); | |
2134 | ||
2135 | wxPyEndAllowThreads(__tstate); | |
2136 | if (PyErr_Occurred()) SWIG_fail; | |
2137 | } | |
2138 | { | |
2139 | #if wxUSE_UNICODE | |
2140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2141 | #else | |
2142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2143 | #endif | |
2144 | } | |
2145 | return resultobj; | |
2146 | fail: | |
2147 | return NULL; | |
2148 | } | |
2149 | ||
2150 | ||
2151 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2152 | PyObject *resultobj; | |
2153 | wxString result; | |
2154 | char *kwnames[] = { | |
2155 | NULL | |
2156 | }; | |
2157 | ||
2158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2159 | { | |
2160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2161 | result = wxGetFullHostName(); | |
2162 | ||
2163 | wxPyEndAllowThreads(__tstate); | |
2164 | if (PyErr_Occurred()) SWIG_fail; | |
2165 | } | |
2166 | { | |
2167 | #if wxUSE_UNICODE | |
2168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2169 | #else | |
2170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2171 | #endif | |
2172 | } | |
2173 | return resultobj; | |
2174 | fail: | |
2175 | return NULL; | |
2176 | } | |
2177 | ||
2178 | ||
2179 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2180 | PyObject *resultobj; | |
2181 | wxString result; | |
2182 | char *kwnames[] = { | |
2183 | NULL | |
2184 | }; | |
2185 | ||
2186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2187 | { | |
2188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2189 | result = wxGetUserId(); | |
2190 | ||
2191 | wxPyEndAllowThreads(__tstate); | |
2192 | if (PyErr_Occurred()) SWIG_fail; | |
2193 | } | |
2194 | { | |
2195 | #if wxUSE_UNICODE | |
2196 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2197 | #else | |
2198 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2199 | #endif | |
2200 | } | |
2201 | return resultobj; | |
2202 | fail: | |
2203 | return NULL; | |
2204 | } | |
2205 | ||
2206 | ||
2207 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2208 | PyObject *resultobj; | |
2209 | wxString result; | |
2210 | char *kwnames[] = { | |
2211 | NULL | |
2212 | }; | |
2213 | ||
2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2215 | { | |
2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2217 | result = wxGetUserName(); | |
2218 | ||
2219 | wxPyEndAllowThreads(__tstate); | |
2220 | if (PyErr_Occurred()) SWIG_fail; | |
2221 | } | |
2222 | { | |
2223 | #if wxUSE_UNICODE | |
2224 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2225 | #else | |
2226 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2227 | #endif | |
2228 | } | |
2229 | return resultobj; | |
2230 | fail: | |
2231 | return NULL; | |
2232 | } | |
2233 | ||
2234 | ||
2235 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2236 | PyObject *resultobj; | |
2237 | wxString result; | |
2238 | char *kwnames[] = { | |
2239 | NULL | |
2240 | }; | |
2241 | ||
2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2243 | { | |
2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2245 | result = wxGetHomeDir(); | |
2246 | ||
2247 | wxPyEndAllowThreads(__tstate); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
2250 | { | |
2251 | #if wxUSE_UNICODE | |
2252 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2253 | #else | |
2254 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2255 | #endif | |
2256 | } | |
2257 | return resultobj; | |
2258 | fail: | |
2259 | return NULL; | |
2260 | } | |
2261 | ||
2262 | ||
2263 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2264 | PyObject *resultobj; | |
2265 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2266 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2267 | wxString result; | |
e811c8ce | 2268 | bool temp1 = False ; |
d14a1e28 RD |
2269 | PyObject * obj0 = 0 ; |
2270 | char *kwnames[] = { | |
2271 | (char *) "user", NULL | |
2272 | }; | |
2273 | ||
2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2275 | if (obj0) { | |
2276 | { | |
2277 | arg1 = wxString_in_helper(obj0); | |
2278 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2279 | temp1 = True; |
d14a1e28 RD |
2280 | } |
2281 | } | |
2282 | { | |
2283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2284 | result = wxGetUserHome((wxString const &)*arg1); | |
2285 | ||
2286 | wxPyEndAllowThreads(__tstate); | |
2287 | if (PyErr_Occurred()) SWIG_fail; | |
2288 | } | |
2289 | { | |
2290 | #if wxUSE_UNICODE | |
2291 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2292 | #else | |
2293 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2294 | #endif | |
2295 | } | |
2296 | { | |
2297 | if (temp1) | |
2298 | delete arg1; | |
2299 | } | |
2300 | return resultobj; | |
2301 | fail: | |
2302 | { | |
2303 | if (temp1) | |
2304 | delete arg1; | |
2305 | } | |
2306 | return NULL; | |
2307 | } | |
2308 | ||
2309 | ||
2310 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2311 | PyObject *resultobj; | |
2312 | unsigned long result; | |
2313 | char *kwnames[] = { | |
2314 | NULL | |
2315 | }; | |
2316 | ||
2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2318 | { | |
2319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2320 | result = (unsigned long)wxGetProcessId(); | |
2321 | ||
2322 | wxPyEndAllowThreads(__tstate); | |
2323 | if (PyErr_Occurred()) SWIG_fail; | |
2324 | } | |
2325 | resultobj = PyInt_FromLong((long)result); | |
2326 | return resultobj; | |
2327 | fail: | |
2328 | return NULL; | |
2329 | } | |
2330 | ||
2331 | ||
2332 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2333 | PyObject *resultobj; | |
2334 | char *kwnames[] = { | |
2335 | NULL | |
2336 | }; | |
2337 | ||
2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2339 | { | |
2340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2341 | wxTrap(); | |
2342 | ||
2343 | wxPyEndAllowThreads(__tstate); | |
2344 | if (PyErr_Occurred()) SWIG_fail; | |
2345 | } | |
2346 | Py_INCREF(Py_None); resultobj = Py_None; | |
2347 | return resultobj; | |
2348 | fail: | |
2349 | return NULL; | |
2350 | } | |
2351 | ||
2352 | ||
2353 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2354 | PyObject *resultobj; | |
2355 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2356 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2357 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2358 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2359 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2360 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2361 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2362 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2363 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2364 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2365 | int arg6 = (int) 0 ; | |
2366 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2367 | int arg8 = (int) -1 ; | |
2368 | int arg9 = (int) -1 ; | |
2369 | wxString result; | |
e811c8ce RD |
2370 | bool temp1 = False ; |
2371 | bool temp2 = False ; | |
2372 | bool temp3 = False ; | |
2373 | bool temp4 = False ; | |
2374 | bool temp5 = False ; | |
d14a1e28 RD |
2375 | PyObject * obj0 = 0 ; |
2376 | PyObject * obj1 = 0 ; | |
2377 | PyObject * obj2 = 0 ; | |
2378 | PyObject * obj3 = 0 ; | |
2379 | PyObject * obj4 = 0 ; | |
2380 | PyObject * obj6 = 0 ; | |
2381 | char *kwnames[] = { | |
2382 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2383 | }; | |
2384 | ||
2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOiOii:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&arg9)) goto fail; | |
2386 | if (obj0) { | |
2387 | { | |
2388 | arg1 = wxString_in_helper(obj0); | |
2389 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2390 | temp1 = True; |
d14a1e28 RD |
2391 | } |
2392 | } | |
2393 | if (obj1) { | |
2394 | { | |
2395 | arg2 = wxString_in_helper(obj1); | |
2396 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2397 | temp2 = True; |
d14a1e28 RD |
2398 | } |
2399 | } | |
2400 | if (obj2) { | |
2401 | { | |
2402 | arg3 = wxString_in_helper(obj2); | |
2403 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2404 | temp3 = True; |
d14a1e28 RD |
2405 | } |
2406 | } | |
2407 | if (obj3) { | |
2408 | { | |
2409 | arg4 = wxString_in_helper(obj3); | |
2410 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2411 | temp4 = True; |
d14a1e28 RD |
2412 | } |
2413 | } | |
2414 | if (obj4) { | |
2415 | { | |
2416 | arg5 = wxString_in_helper(obj4); | |
2417 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 2418 | temp5 = True; |
d14a1e28 RD |
2419 | } |
2420 | } | |
2421 | if (obj6) { | |
2422 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2423 | } | |
2424 | { | |
2425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2426 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2427 | ||
2428 | wxPyEndAllowThreads(__tstate); | |
2429 | if (PyErr_Occurred()) SWIG_fail; | |
2430 | } | |
2431 | { | |
2432 | #if wxUSE_UNICODE | |
2433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2434 | #else | |
2435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2436 | #endif | |
2437 | } | |
2438 | { | |
2439 | if (temp1) | |
2440 | delete arg1; | |
2441 | } | |
2442 | { | |
2443 | if (temp2) | |
2444 | delete arg2; | |
2445 | } | |
2446 | { | |
2447 | if (temp3) | |
2448 | delete arg3; | |
2449 | } | |
2450 | { | |
2451 | if (temp4) | |
2452 | delete arg4; | |
2453 | } | |
2454 | { | |
2455 | if (temp5) | |
2456 | delete arg5; | |
2457 | } | |
2458 | return resultobj; | |
2459 | fail: | |
2460 | { | |
2461 | if (temp1) | |
2462 | delete arg1; | |
2463 | } | |
2464 | { | |
2465 | if (temp2) | |
2466 | delete arg2; | |
2467 | } | |
2468 | { | |
2469 | if (temp3) | |
2470 | delete arg3; | |
2471 | } | |
2472 | { | |
2473 | if (temp4) | |
2474 | delete arg4; | |
2475 | } | |
2476 | { | |
2477 | if (temp5) | |
2478 | delete arg5; | |
2479 | } | |
2480 | return NULL; | |
2481 | } | |
2482 | ||
2483 | ||
2484 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2485 | PyObject *resultobj; | |
2486 | wxString *arg1 = 0 ; | |
2487 | wxString *arg2 = 0 ; | |
2488 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2489 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2490 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2491 | wxString result; | |
e811c8ce RD |
2492 | bool temp1 = False ; |
2493 | bool temp2 = False ; | |
2494 | bool temp3 = False ; | |
d14a1e28 RD |
2495 | PyObject * obj0 = 0 ; |
2496 | PyObject * obj1 = 0 ; | |
2497 | PyObject * obj2 = 0 ; | |
2498 | PyObject * obj3 = 0 ; | |
2499 | char *kwnames[] = { | |
2500 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2501 | }; | |
2502 | ||
2503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2504 | { | |
2505 | arg1 = wxString_in_helper(obj0); | |
2506 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2507 | temp1 = True; |
d14a1e28 RD |
2508 | } |
2509 | { | |
2510 | arg2 = wxString_in_helper(obj1); | |
2511 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2512 | temp2 = True; |
d14a1e28 RD |
2513 | } |
2514 | if (obj2) { | |
2515 | { | |
2516 | arg3 = wxString_in_helper(obj2); | |
2517 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2518 | temp3 = True; |
d14a1e28 RD |
2519 | } |
2520 | } | |
2521 | if (obj3) { | |
2522 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2523 | } | |
2524 | { | |
2525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2526 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2527 | ||
2528 | wxPyEndAllowThreads(__tstate); | |
2529 | if (PyErr_Occurred()) SWIG_fail; | |
2530 | } | |
2531 | { | |
2532 | #if wxUSE_UNICODE | |
2533 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2534 | #else | |
2535 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2536 | #endif | |
2537 | } | |
2538 | { | |
2539 | if (temp1) | |
2540 | delete arg1; | |
2541 | } | |
2542 | { | |
2543 | if (temp2) | |
2544 | delete arg2; | |
2545 | } | |
2546 | { | |
2547 | if (temp3) | |
2548 | delete arg3; | |
2549 | } | |
2550 | return resultobj; | |
2551 | fail: | |
2552 | { | |
2553 | if (temp1) | |
2554 | delete arg1; | |
2555 | } | |
2556 | { | |
2557 | if (temp2) | |
2558 | delete arg2; | |
2559 | } | |
2560 | { | |
2561 | if (temp3) | |
2562 | delete arg3; | |
2563 | } | |
2564 | return NULL; | |
2565 | } | |
2566 | ||
2567 | ||
2568 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2569 | PyObject *resultobj; | |
2570 | wxString *arg1 = 0 ; | |
2571 | wxString *arg2 = 0 ; | |
2572 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2573 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2574 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2575 | wxString result; | |
e811c8ce RD |
2576 | bool temp1 = False ; |
2577 | bool temp2 = False ; | |
2578 | bool temp3 = False ; | |
d14a1e28 RD |
2579 | PyObject * obj0 = 0 ; |
2580 | PyObject * obj1 = 0 ; | |
2581 | PyObject * obj2 = 0 ; | |
2582 | PyObject * obj3 = 0 ; | |
2583 | char *kwnames[] = { | |
2584 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2585 | }; | |
2586 | ||
2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2588 | { | |
2589 | arg1 = wxString_in_helper(obj0); | |
2590 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2591 | temp1 = True; |
d14a1e28 RD |
2592 | } |
2593 | { | |
2594 | arg2 = wxString_in_helper(obj1); | |
2595 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2596 | temp2 = True; |
d14a1e28 RD |
2597 | } |
2598 | if (obj2) { | |
2599 | { | |
2600 | arg3 = wxString_in_helper(obj2); | |
2601 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2602 | temp3 = True; |
d14a1e28 RD |
2603 | } |
2604 | } | |
2605 | if (obj3) { | |
2606 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2607 | } | |
2608 | { | |
2609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2610 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2611 | ||
2612 | wxPyEndAllowThreads(__tstate); | |
2613 | if (PyErr_Occurred()) SWIG_fail; | |
2614 | } | |
2615 | { | |
2616 | #if wxUSE_UNICODE | |
2617 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2618 | #else | |
2619 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2620 | #endif | |
2621 | } | |
2622 | { | |
2623 | if (temp1) | |
2624 | delete arg1; | |
2625 | } | |
2626 | { | |
2627 | if (temp2) | |
2628 | delete arg2; | |
2629 | } | |
2630 | { | |
2631 | if (temp3) | |
2632 | delete arg3; | |
2633 | } | |
2634 | return resultobj; | |
2635 | fail: | |
2636 | { | |
2637 | if (temp1) | |
2638 | delete arg1; | |
2639 | } | |
2640 | { | |
2641 | if (temp2) | |
2642 | delete arg2; | |
2643 | } | |
2644 | { | |
2645 | if (temp3) | |
2646 | delete arg3; | |
2647 | } | |
2648 | return NULL; | |
2649 | } | |
2650 | ||
2651 | ||
2652 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2653 | PyObject *resultobj; | |
2654 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2655 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2656 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2657 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2658 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
2659 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2660 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2661 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2662 | wxString result; | |
e811c8ce RD |
2663 | bool temp1 = False ; |
2664 | bool temp2 = False ; | |
d14a1e28 RD |
2665 | wxPoint temp4 ; |
2666 | PyObject * obj0 = 0 ; | |
2667 | PyObject * obj1 = 0 ; | |
2668 | PyObject * obj3 = 0 ; | |
2669 | PyObject * obj4 = 0 ; | |
2670 | char *kwnames[] = { | |
2671 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
2672 | }; | |
2673 | ||
2674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOlOO:DirSelector",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
2675 | if (obj0) { | |
2676 | { | |
2677 | arg1 = wxString_in_helper(obj0); | |
2678 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2679 | temp1 = True; |
d14a1e28 RD |
2680 | } |
2681 | } | |
2682 | if (obj1) { | |
2683 | { | |
2684 | arg2 = wxString_in_helper(obj1); | |
2685 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2686 | temp2 = True; |
d14a1e28 RD |
2687 | } |
2688 | } | |
2689 | if (obj3) { | |
2690 | { | |
2691 | arg4 = &temp4; | |
2692 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2693 | } | |
2694 | } | |
2695 | if (obj4) { | |
2696 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2697 | } | |
2698 | { | |
2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2700 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
2701 | ||
2702 | wxPyEndAllowThreads(__tstate); | |
2703 | if (PyErr_Occurred()) SWIG_fail; | |
2704 | } | |
2705 | { | |
2706 | #if wxUSE_UNICODE | |
2707 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2708 | #else | |
2709 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2710 | #endif | |
2711 | } | |
2712 | { | |
2713 | if (temp1) | |
2714 | delete arg1; | |
2715 | } | |
2716 | { | |
2717 | if (temp2) | |
2718 | delete arg2; | |
2719 | } | |
2720 | return resultobj; | |
2721 | fail: | |
2722 | { | |
2723 | if (temp1) | |
2724 | delete arg1; | |
2725 | } | |
2726 | { | |
2727 | if (temp2) | |
2728 | delete arg2; | |
2729 | } | |
2730 | return NULL; | |
2731 | } | |
2732 | ||
2733 | ||
2734 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2735 | PyObject *resultobj; | |
2736 | wxString *arg1 = 0 ; | |
2737 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2738 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2739 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2740 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2741 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2742 | int arg5 = (int) -1 ; | |
2743 | int arg6 = (int) -1 ; | |
e811c8ce | 2744 | bool arg7 = (bool) True ; |
d14a1e28 | 2745 | wxString result; |
e811c8ce RD |
2746 | bool temp1 = False ; |
2747 | bool temp2 = False ; | |
2748 | bool temp3 = False ; | |
d14a1e28 RD |
2749 | PyObject * obj0 = 0 ; |
2750 | PyObject * obj1 = 0 ; | |
2751 | PyObject * obj2 = 0 ; | |
2752 | PyObject * obj3 = 0 ; | |
2753 | PyObject * obj6 = 0 ; | |
2754 | char *kwnames[] = { | |
2755 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
2756 | }; | |
2757 | ||
2758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOiiO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
2759 | { | |
2760 | arg1 = wxString_in_helper(obj0); | |
2761 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2762 | temp1 = True; |
d14a1e28 RD |
2763 | } |
2764 | if (obj1) { | |
2765 | { | |
2766 | arg2 = wxString_in_helper(obj1); | |
2767 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2768 | temp2 = True; |
d14a1e28 RD |
2769 | } |
2770 | } | |
2771 | if (obj2) { | |
2772 | { | |
2773 | arg3 = wxString_in_helper(obj2); | |
2774 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2775 | temp3 = True; |
d14a1e28 RD |
2776 | } |
2777 | } | |
2778 | if (obj3) { | |
2779 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2780 | } | |
2781 | if (obj6) { | |
2782 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
2783 | if (PyErr_Occurred()) SWIG_fail; | |
2784 | } | |
2785 | { | |
2786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2787 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
2788 | ||
2789 | wxPyEndAllowThreads(__tstate); | |
2790 | if (PyErr_Occurred()) SWIG_fail; | |
2791 | } | |
2792 | { | |
2793 | #if wxUSE_UNICODE | |
2794 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2795 | #else | |
2796 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2797 | #endif | |
2798 | } | |
2799 | { | |
2800 | if (temp1) | |
2801 | delete arg1; | |
2802 | } | |
2803 | { | |
2804 | if (temp2) | |
2805 | delete arg2; | |
2806 | } | |
2807 | { | |
2808 | if (temp3) | |
2809 | delete arg3; | |
2810 | } | |
2811 | return resultobj; | |
2812 | fail: | |
2813 | { | |
2814 | if (temp1) | |
2815 | delete arg1; | |
2816 | } | |
2817 | { | |
2818 | if (temp2) | |
2819 | delete arg2; | |
2820 | } | |
2821 | { | |
2822 | if (temp3) | |
2823 | delete arg3; | |
2824 | } | |
2825 | return NULL; | |
2826 | } | |
2827 | ||
2828 | ||
2829 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2830 | PyObject *resultobj; | |
2831 | wxString *arg1 = 0 ; | |
2832 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2833 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2834 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2835 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2836 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2837 | wxString result; | |
e811c8ce RD |
2838 | bool temp1 = False ; |
2839 | bool temp2 = False ; | |
2840 | bool temp3 = False ; | |
d14a1e28 RD |
2841 | PyObject * obj0 = 0 ; |
2842 | PyObject * obj1 = 0 ; | |
2843 | PyObject * obj2 = 0 ; | |
2844 | PyObject * obj3 = 0 ; | |
2845 | char *kwnames[] = { | |
2846 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
2847 | }; | |
2848 | ||
2849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2850 | { | |
2851 | arg1 = wxString_in_helper(obj0); | |
2852 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2853 | temp1 = True; |
d14a1e28 RD |
2854 | } |
2855 | if (obj1) { | |
2856 | { | |
2857 | arg2 = wxString_in_helper(obj1); | |
2858 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2859 | temp2 = True; |
d14a1e28 RD |
2860 | } |
2861 | } | |
2862 | if (obj2) { | |
2863 | { | |
2864 | arg3 = wxString_in_helper(obj2); | |
2865 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2866 | temp3 = True; |
d14a1e28 RD |
2867 | } |
2868 | } | |
2869 | if (obj3) { | |
2870 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2871 | } | |
2872 | { | |
2873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2874 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2875 | ||
2876 | wxPyEndAllowThreads(__tstate); | |
2877 | if (PyErr_Occurred()) SWIG_fail; | |
2878 | } | |
2879 | { | |
2880 | #if wxUSE_UNICODE | |
2881 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2882 | #else | |
2883 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2884 | #endif | |
2885 | } | |
2886 | { | |
2887 | if (temp1) | |
2888 | delete arg1; | |
2889 | } | |
2890 | { | |
2891 | if (temp2) | |
2892 | delete arg2; | |
2893 | } | |
2894 | { | |
2895 | if (temp3) | |
2896 | delete arg3; | |
2897 | } | |
2898 | return resultobj; | |
2899 | fail: | |
2900 | { | |
2901 | if (temp1) | |
2902 | delete arg1; | |
2903 | } | |
2904 | { | |
2905 | if (temp2) | |
2906 | delete arg2; | |
2907 | } | |
2908 | { | |
2909 | if (temp3) | |
2910 | delete arg3; | |
2911 | } | |
2912 | return NULL; | |
2913 | } | |
2914 | ||
2915 | ||
2916 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2917 | PyObject *resultobj; | |
2918 | wxString *arg1 = 0 ; | |
2919 | wxString *arg2 = 0 ; | |
2920 | int arg3 ; | |
2921 | wxString *arg4 = (wxString *) 0 ; | |
2922 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2923 | int arg6 = (int) -1 ; | |
2924 | int arg7 = (int) -1 ; | |
e811c8ce | 2925 | bool arg8 = (bool) True ; |
d14a1e28 RD |
2926 | int arg9 = (int) 150 ; |
2927 | int arg10 = (int) 200 ; | |
2928 | wxString result; | |
e811c8ce RD |
2929 | bool temp1 = False ; |
2930 | bool temp2 = False ; | |
d14a1e28 RD |
2931 | PyObject * obj0 = 0 ; |
2932 | PyObject * obj1 = 0 ; | |
2933 | PyObject * obj2 = 0 ; | |
2934 | PyObject * obj3 = 0 ; | |
2935 | PyObject * obj6 = 0 ; | |
2936 | char *kwnames[] = { | |
2937 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
2938 | }; | |
2939 | ||
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
2941 | { | |
2942 | arg1 = wxString_in_helper(obj0); | |
2943 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2944 | temp1 = True; |
d14a1e28 RD |
2945 | } |
2946 | { | |
2947 | arg2 = wxString_in_helper(obj1); | |
2948 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2949 | temp2 = True; |
d14a1e28 RD |
2950 | } |
2951 | { | |
2952 | arg3 = PyList_Size(obj2); | |
2953 | arg4 = wxString_LIST_helper(obj2); | |
2954 | if (arg4 == NULL) SWIG_fail; | |
2955 | } | |
2956 | if (obj3) { | |
2957 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2958 | } | |
2959 | if (obj6) { | |
2960 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
2961 | if (PyErr_Occurred()) SWIG_fail; | |
2962 | } | |
2963 | { | |
2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2965 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
2966 | ||
2967 | wxPyEndAllowThreads(__tstate); | |
2968 | if (PyErr_Occurred()) SWIG_fail; | |
2969 | } | |
2970 | { | |
2971 | #if wxUSE_UNICODE | |
2972 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2973 | #else | |
2974 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2975 | #endif | |
2976 | } | |
2977 | { | |
2978 | if (temp1) | |
2979 | delete arg1; | |
2980 | } | |
2981 | { | |
2982 | if (temp2) | |
2983 | delete arg2; | |
2984 | } | |
2985 | { | |
2986 | if (arg4) delete [] arg4; | |
2987 | } | |
2988 | return resultobj; | |
2989 | fail: | |
2990 | { | |
2991 | if (temp1) | |
2992 | delete arg1; | |
2993 | } | |
2994 | { | |
2995 | if (temp2) | |
2996 | delete arg2; | |
2997 | } | |
2998 | { | |
2999 | if (arg4) delete [] arg4; | |
3000 | } | |
3001 | return NULL; | |
3002 | } | |
3003 | ||
3004 | ||
3005 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3006 | PyObject *resultobj; | |
3007 | wxString *arg1 = 0 ; | |
3008 | wxString *arg2 = 0 ; | |
3009 | int arg3 ; | |
3010 | wxString *arg4 = (wxString *) 0 ; | |
3011 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3012 | int arg6 = (int) -1 ; | |
3013 | int arg7 = (int) -1 ; | |
e811c8ce | 3014 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3015 | int arg9 = (int) 150 ; |
3016 | int arg10 = (int) 200 ; | |
3017 | int result; | |
e811c8ce RD |
3018 | bool temp1 = False ; |
3019 | bool temp2 = False ; | |
d14a1e28 RD |
3020 | PyObject * obj0 = 0 ; |
3021 | PyObject * obj1 = 0 ; | |
3022 | PyObject * obj2 = 0 ; | |
3023 | PyObject * obj3 = 0 ; | |
3024 | PyObject * obj6 = 0 ; | |
3025 | char *kwnames[] = { | |
3026 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3027 | }; | |
3028 | ||
3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
3030 | { | |
3031 | arg1 = wxString_in_helper(obj0); | |
3032 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3033 | temp1 = True; |
d14a1e28 RD |
3034 | } |
3035 | { | |
3036 | arg2 = wxString_in_helper(obj1); | |
3037 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3038 | temp2 = True; |
d14a1e28 RD |
3039 | } |
3040 | { | |
3041 | arg3 = PyList_Size(obj2); | |
3042 | arg4 = wxString_LIST_helper(obj2); | |
3043 | if (arg4 == NULL) SWIG_fail; | |
3044 | } | |
3045 | if (obj3) { | |
3046 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3047 | } | |
3048 | if (obj6) { | |
3049 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
3050 | if (PyErr_Occurred()) SWIG_fail; | |
3051 | } | |
3052 | { | |
3053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3054 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3055 | ||
3056 | wxPyEndAllowThreads(__tstate); | |
3057 | if (PyErr_Occurred()) SWIG_fail; | |
3058 | } | |
3059 | resultobj = PyInt_FromLong((long)result); | |
3060 | { | |
3061 | if (temp1) | |
3062 | delete arg1; | |
3063 | } | |
3064 | { | |
3065 | if (temp2) | |
3066 | delete arg2; | |
3067 | } | |
3068 | { | |
3069 | if (arg4) delete [] arg4; | |
3070 | } | |
3071 | return resultobj; | |
3072 | fail: | |
3073 | { | |
3074 | if (temp1) | |
3075 | delete arg1; | |
3076 | } | |
3077 | { | |
3078 | if (temp2) | |
3079 | delete arg2; | |
3080 | } | |
3081 | { | |
3082 | if (arg4) delete [] arg4; | |
3083 | } | |
3084 | return NULL; | |
3085 | } | |
3086 | ||
3087 | ||
3088 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3089 | PyObject *resultobj; | |
3090 | wxString *arg1 = 0 ; | |
3091 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3092 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3093 | int arg3 = (int) wxOK|wxCENTRE ; | |
3094 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3095 | int arg5 = (int) -1 ; | |
3096 | int arg6 = (int) -1 ; | |
3097 | int result; | |
e811c8ce RD |
3098 | bool temp1 = False ; |
3099 | bool temp2 = False ; | |
d14a1e28 RD |
3100 | PyObject * obj0 = 0 ; |
3101 | PyObject * obj1 = 0 ; | |
3102 | PyObject * obj3 = 0 ; | |
3103 | char *kwnames[] = { | |
3104 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3105 | }; | |
3106 | ||
3107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOii:MessageBox",kwnames,&obj0,&obj1,&arg3,&obj3,&arg5,&arg6)) goto fail; | |
3108 | { | |
3109 | arg1 = wxString_in_helper(obj0); | |
3110 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3111 | temp1 = True; |
d14a1e28 RD |
3112 | } |
3113 | if (obj1) { | |
3114 | { | |
3115 | arg2 = wxString_in_helper(obj1); | |
3116 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3117 | temp2 = True; |
d14a1e28 RD |
3118 | } |
3119 | } | |
3120 | if (obj3) { | |
3121 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3122 | } | |
3123 | { | |
3124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3125 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3126 | ||
3127 | wxPyEndAllowThreads(__tstate); | |
3128 | if (PyErr_Occurred()) SWIG_fail; | |
3129 | } | |
3130 | resultobj = PyInt_FromLong((long)result); | |
3131 | { | |
3132 | if (temp1) | |
3133 | delete arg1; | |
3134 | } | |
3135 | { | |
3136 | if (temp2) | |
3137 | delete arg2; | |
3138 | } | |
3139 | return resultobj; | |
3140 | fail: | |
3141 | { | |
3142 | if (temp1) | |
3143 | delete arg1; | |
3144 | } | |
3145 | { | |
3146 | if (temp2) | |
3147 | delete arg2; | |
3148 | } | |
3149 | return NULL; | |
3150 | } | |
3151 | ||
3152 | ||
3153 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3154 | PyObject *resultobj; | |
3155 | wxString *arg1 = 0 ; | |
3156 | wxString *arg2 = 0 ; | |
3157 | wxString *arg3 = 0 ; | |
3158 | long arg4 ; | |
3159 | long arg5 = (long) 0 ; | |
3160 | long arg6 = (long) 100 ; | |
3161 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3162 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3163 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3164 | long result; | |
e811c8ce RD |
3165 | bool temp1 = False ; |
3166 | bool temp2 = False ; | |
3167 | bool temp3 = False ; | |
d14a1e28 RD |
3168 | wxPoint temp8 ; |
3169 | PyObject * obj0 = 0 ; | |
3170 | PyObject * obj1 = 0 ; | |
3171 | PyObject * obj2 = 0 ; | |
3172 | PyObject * obj6 = 0 ; | |
3173 | PyObject * obj7 = 0 ; | |
3174 | char *kwnames[] = { | |
3175 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3176 | }; | |
3177 | ||
3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOl|llOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7)) goto fail; | |
3179 | { | |
3180 | arg1 = wxString_in_helper(obj0); | |
3181 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3182 | temp1 = True; |
d14a1e28 RD |
3183 | } |
3184 | { | |
3185 | arg2 = wxString_in_helper(obj1); | |
3186 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3187 | temp2 = True; |
d14a1e28 RD |
3188 | } |
3189 | { | |
3190 | arg3 = wxString_in_helper(obj2); | |
3191 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3192 | temp3 = True; |
d14a1e28 RD |
3193 | } |
3194 | if (obj6) { | |
3195 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3196 | } | |
3197 | if (obj7) { | |
3198 | { | |
3199 | arg8 = &temp8; | |
3200 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3201 | } | |
3202 | } | |
3203 | { | |
3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3205 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3206 | ||
3207 | wxPyEndAllowThreads(__tstate); | |
3208 | if (PyErr_Occurred()) SWIG_fail; | |
3209 | } | |
3210 | resultobj = PyInt_FromLong((long)result); | |
3211 | { | |
3212 | if (temp1) | |
3213 | delete arg1; | |
3214 | } | |
3215 | { | |
3216 | if (temp2) | |
3217 | delete arg2; | |
3218 | } | |
3219 | { | |
3220 | if (temp3) | |
3221 | delete arg3; | |
3222 | } | |
3223 | return resultobj; | |
3224 | fail: | |
3225 | { | |
3226 | if (temp1) | |
3227 | delete arg1; | |
3228 | } | |
3229 | { | |
3230 | if (temp2) | |
3231 | delete arg2; | |
3232 | } | |
3233 | { | |
3234 | if (temp3) | |
3235 | delete arg3; | |
3236 | } | |
3237 | return NULL; | |
3238 | } | |
3239 | ||
3240 | ||
3241 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3242 | PyObject *resultobj; | |
3243 | bool result; | |
3244 | char *kwnames[] = { | |
3245 | NULL | |
3246 | }; | |
3247 | ||
3248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3249 | { | |
3250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3251 | result = (bool)wxColourDisplay(); | |
3252 | ||
3253 | wxPyEndAllowThreads(__tstate); | |
3254 | if (PyErr_Occurred()) SWIG_fail; | |
3255 | } | |
3256 | resultobj = PyInt_FromLong((long)result); | |
3257 | return resultobj; | |
3258 | fail: | |
3259 | return NULL; | |
3260 | } | |
3261 | ||
3262 | ||
3263 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3264 | PyObject *resultobj; | |
3265 | int result; | |
3266 | char *kwnames[] = { | |
3267 | NULL | |
3268 | }; | |
3269 | ||
3270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3271 | { | |
3272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3273 | result = (int)wxDisplayDepth(); | |
3274 | ||
3275 | wxPyEndAllowThreads(__tstate); | |
3276 | if (PyErr_Occurred()) SWIG_fail; | |
3277 | } | |
3278 | resultobj = PyInt_FromLong((long)result); | |
3279 | return resultobj; | |
3280 | fail: | |
3281 | return NULL; | |
3282 | } | |
3283 | ||
3284 | ||
3285 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3286 | PyObject *resultobj; | |
3287 | int result; | |
3288 | char *kwnames[] = { | |
3289 | NULL | |
3290 | }; | |
3291 | ||
3292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3293 | { | |
3294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3295 | result = (int)wxGetDisplayDepth(); | |
3296 | ||
3297 | wxPyEndAllowThreads(__tstate); | |
3298 | if (PyErr_Occurred()) SWIG_fail; | |
3299 | } | |
3300 | resultobj = PyInt_FromLong((long)result); | |
3301 | return resultobj; | |
3302 | fail: | |
3303 | return NULL; | |
3304 | } | |
3305 | ||
3306 | ||
3307 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3308 | PyObject *resultobj; | |
3309 | int *arg1 = (int *) 0 ; | |
3310 | int *arg2 = (int *) 0 ; | |
3311 | int temp1 ; | |
3312 | int temp2 ; | |
3313 | char *kwnames[] = { | |
3314 | NULL | |
3315 | }; | |
3316 | ||
3317 | arg1 = &temp1; | |
3318 | arg2 = &temp2; | |
3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3320 | { | |
3321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3322 | wxDisplaySize(arg1,arg2); | |
3323 | ||
3324 | wxPyEndAllowThreads(__tstate); | |
3325 | if (PyErr_Occurred()) SWIG_fail; | |
3326 | } | |
3327 | Py_INCREF(Py_None); resultobj = Py_None; | |
3328 | { | |
3329 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3330 | resultobj = t_output_helper(resultobj,o); | |
3331 | } | |
3332 | { | |
3333 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3334 | resultobj = t_output_helper(resultobj,o); | |
3335 | } | |
3336 | return resultobj; | |
3337 | fail: | |
3338 | return NULL; | |
3339 | } | |
3340 | ||
3341 | ||
3342 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3343 | PyObject *resultobj; | |
3344 | wxSize result; | |
3345 | char *kwnames[] = { | |
3346 | NULL | |
3347 | }; | |
3348 | ||
3349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3350 | { | |
3351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3352 | result = wxGetDisplaySize(); | |
3353 | ||
3354 | wxPyEndAllowThreads(__tstate); | |
3355 | if (PyErr_Occurred()) SWIG_fail; | |
3356 | } | |
3357 | { | |
3358 | wxSize * resultptr; | |
3359 | resultptr = new wxSize((wxSize &) result); | |
3360 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3361 | } | |
3362 | return resultobj; | |
3363 | fail: | |
3364 | return NULL; | |
3365 | } | |
3366 | ||
3367 | ||
3368 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject *resultobj; | |
3370 | int *arg1 = (int *) 0 ; | |
3371 | int *arg2 = (int *) 0 ; | |
3372 | int temp1 ; | |
3373 | int temp2 ; | |
3374 | char *kwnames[] = { | |
3375 | NULL | |
3376 | }; | |
3377 | ||
3378 | arg1 = &temp1; | |
3379 | arg2 = &temp2; | |
3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3381 | { | |
3382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3383 | wxDisplaySizeMM(arg1,arg2); | |
3384 | ||
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
3388 | Py_INCREF(Py_None); resultobj = Py_None; | |
3389 | { | |
3390 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3391 | resultobj = t_output_helper(resultobj,o); | |
3392 | } | |
3393 | { | |
3394 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3395 | resultobj = t_output_helper(resultobj,o); | |
3396 | } | |
3397 | return resultobj; | |
3398 | fail: | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
3403 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject *resultobj; | |
3405 | wxSize result; | |
3406 | char *kwnames[] = { | |
3407 | NULL | |
3408 | }; | |
3409 | ||
3410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3411 | { | |
3412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3413 | result = wxGetDisplaySizeMM(); | |
3414 | ||
3415 | wxPyEndAllowThreads(__tstate); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | } | |
3418 | { | |
3419 | wxSize * resultptr; | |
3420 | resultptr = new wxSize((wxSize &) result); | |
3421 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3422 | } | |
3423 | return resultobj; | |
3424 | fail: | |
3425 | return NULL; | |
3426 | } | |
3427 | ||
3428 | ||
3429 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3430 | PyObject *resultobj; | |
3431 | int *arg1 = (int *) 0 ; | |
3432 | int *arg2 = (int *) 0 ; | |
3433 | int *arg3 = (int *) 0 ; | |
3434 | int *arg4 = (int *) 0 ; | |
3435 | int temp1 ; | |
3436 | int temp2 ; | |
3437 | int temp3 ; | |
3438 | int temp4 ; | |
3439 | char *kwnames[] = { | |
3440 | NULL | |
3441 | }; | |
3442 | ||
3443 | arg1 = &temp1; | |
3444 | arg2 = &temp2; | |
3445 | arg3 = &temp3; | |
3446 | arg4 = &temp4; | |
3447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3448 | { | |
3449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3450 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3451 | ||
3452 | wxPyEndAllowThreads(__tstate); | |
3453 | if (PyErr_Occurred()) SWIG_fail; | |
3454 | } | |
3455 | Py_INCREF(Py_None); resultobj = Py_None; | |
3456 | { | |
3457 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3458 | resultobj = t_output_helper(resultobj,o); | |
3459 | } | |
3460 | { | |
3461 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3462 | resultobj = t_output_helper(resultobj,o); | |
3463 | } | |
3464 | { | |
3465 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3466 | resultobj = t_output_helper(resultobj,o); | |
3467 | } | |
3468 | { | |
3469 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3470 | resultobj = t_output_helper(resultobj,o); | |
3471 | } | |
3472 | return resultobj; | |
3473 | fail: | |
3474 | return NULL; | |
3475 | } | |
3476 | ||
3477 | ||
3478 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3479 | PyObject *resultobj; | |
3480 | wxRect result; | |
3481 | char *kwnames[] = { | |
3482 | NULL | |
3483 | }; | |
3484 | ||
3485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3486 | { | |
3487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3488 | result = wxGetClientDisplayRect(); | |
3489 | ||
3490 | wxPyEndAllowThreads(__tstate); | |
3491 | if (PyErr_Occurred()) SWIG_fail; | |
3492 | } | |
3493 | { | |
3494 | wxRect * resultptr; | |
3495 | resultptr = new wxRect((wxRect &) result); | |
3496 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3497 | } | |
3498 | return resultobj; | |
3499 | fail: | |
3500 | return NULL; | |
3501 | } | |
3502 | ||
3503 | ||
3504 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3505 | PyObject *resultobj; | |
3506 | wxCursor *arg1 = 0 ; | |
3507 | PyObject * obj0 = 0 ; | |
3508 | char *kwnames[] = { | |
3509 | (char *) "cursor", NULL | |
3510 | }; | |
3511 | ||
3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3514 | if (arg1 == NULL) { | |
3515 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3516 | } | |
3517 | { | |
3518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3519 | wxSetCursor(*arg1); | |
3520 | ||
3521 | wxPyEndAllowThreads(__tstate); | |
3522 | if (PyErr_Occurred()) SWIG_fail; | |
3523 | } | |
3524 | Py_INCREF(Py_None); resultobj = Py_None; | |
3525 | return resultobj; | |
3526 | fail: | |
3527 | return NULL; | |
3528 | } | |
3529 | ||
3530 | ||
3531 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3532 | PyObject *resultobj; | |
3533 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3534 | PyObject * obj0 = 0 ; | |
3535 | char *kwnames[] = { | |
3536 | (char *) "cursor", NULL | |
3537 | }; | |
3538 | ||
3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3540 | if (obj0) { | |
3541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3542 | } | |
3543 | { | |
3544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3545 | wxBeginBusyCursor(arg1); | |
3546 | ||
3547 | wxPyEndAllowThreads(__tstate); | |
3548 | if (PyErr_Occurred()) SWIG_fail; | |
3549 | } | |
3550 | Py_INCREF(Py_None); resultobj = Py_None; | |
3551 | return resultobj; | |
3552 | fail: | |
3553 | return NULL; | |
3554 | } | |
3555 | ||
3556 | ||
3557 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3558 | PyObject *resultobj; | |
3559 | wxWindow *result; | |
3560 | char *kwnames[] = { | |
3561 | NULL | |
3562 | }; | |
3563 | ||
3564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
3565 | { | |
3566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3567 | result = (wxWindow *)wxGetActiveWindow(); | |
3568 | ||
3569 | wxPyEndAllowThreads(__tstate); | |
3570 | if (PyErr_Occurred()) SWIG_fail; | |
3571 | } | |
3572 | { | |
3573 | resultobj = wxPyMake_wxObject(result); | |
3574 | } | |
3575 | return resultobj; | |
3576 | fail: | |
3577 | return NULL; | |
3578 | } | |
3579 | ||
3580 | ||
3581 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3582 | PyObject *resultobj; | |
3583 | wxPoint *arg1 = 0 ; | |
3584 | wxWindow *result; | |
3585 | wxPoint temp1 ; | |
3586 | PyObject * obj0 = 0 ; | |
3587 | char *kwnames[] = { | |
3588 | (char *) "pt", NULL | |
3589 | }; | |
3590 | ||
3591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3592 | { | |
3593 | arg1 = &temp1; | |
3594 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3595 | } | |
3596 | { | |
3597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3598 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
3599 | ||
3600 | wxPyEndAllowThreads(__tstate); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
3603 | { | |
3604 | resultobj = wxPyMake_wxObject(result); | |
3605 | } | |
3606 | return resultobj; | |
3607 | fail: | |
3608 | return NULL; | |
3609 | } | |
3610 | ||
3611 | ||
3612 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3613 | PyObject *resultobj; | |
3614 | wxPoint *arg1 = 0 ; | |
3615 | wxWindow *result; | |
3616 | wxPoint temp1 ; | |
3617 | PyObject * obj0 = 0 ; | |
3618 | char *kwnames[] = { | |
3619 | (char *) "pt", NULL | |
3620 | }; | |
3621 | ||
3622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3623 | { | |
3624 | arg1 = &temp1; | |
3625 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3626 | } | |
3627 | { | |
3628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3629 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
3630 | ||
3631 | wxPyEndAllowThreads(__tstate); | |
3632 | if (PyErr_Occurred()) SWIG_fail; | |
3633 | } | |
3634 | { | |
3635 | resultobj = wxPyMake_wxObject(result); | |
3636 | } | |
3637 | return resultobj; | |
3638 | fail: | |
3639 | return NULL; | |
3640 | } | |
3641 | ||
3642 | ||
3643 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3644 | PyObject *resultobj; | |
3645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3646 | wxWindow *result; | |
3647 | PyObject * obj0 = 0 ; | |
3648 | char *kwnames[] = { | |
3649 | (char *) "win", NULL | |
3650 | }; | |
3651 | ||
3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
3653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3654 | { | |
3655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3656 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
3657 | ||
3658 | wxPyEndAllowThreads(__tstate); | |
3659 | if (PyErr_Occurred()) SWIG_fail; | |
3660 | } | |
3661 | { | |
3662 | resultobj = wxPyMake_wxObject(result); | |
3663 | } | |
3664 | return resultobj; | |
3665 | fail: | |
3666 | return NULL; | |
3667 | } | |
3668 | ||
3669 | ||
39f61e25 RD |
3670 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
3671 | PyObject *resultobj; | |
3672 | int arg1 ; | |
3673 | bool result; | |
3674 | char *kwnames[] = { | |
3675 | (char *) "key", NULL | |
3676 | }; | |
3677 | ||
3678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetKeyState",kwnames,&arg1)) goto fail; | |
3679 | { | |
3680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3681 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
3682 | ||
3683 | wxPyEndAllowThreads(__tstate); | |
3684 | if (PyErr_Occurred()) SWIG_fail; | |
3685 | } | |
3686 | resultobj = PyInt_FromLong((long)result); | |
3687 | return resultobj; | |
3688 | fail: | |
3689 | return NULL; | |
3690 | } | |
3691 | ||
3692 | ||
d14a1e28 RD |
3693 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
3694 | PyObject *resultobj; | |
3695 | char *kwnames[] = { | |
3696 | NULL | |
3697 | }; | |
3698 | ||
3699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
3700 | { | |
3701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3702 | wxWakeUpMainThread(); | |
3703 | ||
3704 | wxPyEndAllowThreads(__tstate); | |
3705 | if (PyErr_Occurred()) SWIG_fail; | |
3706 | } | |
3707 | Py_INCREF(Py_None); resultobj = Py_None; | |
3708 | return resultobj; | |
3709 | fail: | |
3710 | return NULL; | |
3711 | } | |
3712 | ||
3713 | ||
3714 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3715 | PyObject *resultobj; | |
3716 | char *kwnames[] = { | |
3717 | NULL | |
3718 | }; | |
3719 | ||
3720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
3721 | { | |
3722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3723 | wxMutexGuiEnter(); | |
3724 | ||
3725 | wxPyEndAllowThreads(__tstate); | |
3726 | if (PyErr_Occurred()) SWIG_fail; | |
3727 | } | |
3728 | Py_INCREF(Py_None); resultobj = Py_None; | |
3729 | return resultobj; | |
3730 | fail: | |
3731 | return NULL; | |
3732 | } | |
3733 | ||
3734 | ||
3735 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3736 | PyObject *resultobj; | |
3737 | char *kwnames[] = { | |
3738 | NULL | |
3739 | }; | |
3740 | ||
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
3742 | { | |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3744 | wxMutexGuiLeave(); | |
3745 | ||
3746 | wxPyEndAllowThreads(__tstate); | |
3747 | if (PyErr_Occurred()) SWIG_fail; | |
3748 | } | |
3749 | Py_INCREF(Py_None); resultobj = Py_None; | |
3750 | return resultobj; | |
3751 | fail: | |
3752 | return NULL; | |
3753 | } | |
3754 | ||
3755 | ||
3756 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3757 | PyObject *resultobj; | |
3758 | wxMutexGuiLocker *result; | |
3759 | char *kwnames[] = { | |
3760 | NULL | |
3761 | }; | |
3762 | ||
3763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
3764 | { | |
3765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3766 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
3767 | ||
3768 | wxPyEndAllowThreads(__tstate); | |
3769 | if (PyErr_Occurred()) SWIG_fail; | |
3770 | } | |
3771 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1); | |
3772 | return resultobj; | |
3773 | fail: | |
3774 | return NULL; | |
3775 | } | |
3776 | ||
3777 | ||
3778 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3779 | PyObject *resultobj; | |
3780 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
3781 | PyObject * obj0 = 0 ; | |
3782 | char *kwnames[] = { | |
3783 | (char *) "self", NULL | |
3784 | }; | |
3785 | ||
3786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
3787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3788 | { | |
3789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3790 | delete arg1; | |
3791 | ||
3792 | wxPyEndAllowThreads(__tstate); | |
3793 | if (PyErr_Occurred()) SWIG_fail; | |
3794 | } | |
3795 | Py_INCREF(Py_None); resultobj = Py_None; | |
3796 | return resultobj; | |
3797 | fail: | |
3798 | return NULL; | |
3799 | } | |
3800 | ||
3801 | ||
3802 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
3803 | PyObject *obj; | |
3804 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3805 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
3806 | Py_INCREF(obj); | |
3807 | return Py_BuildValue((char *)""); | |
3808 | } | |
3809 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3810 | PyObject *resultobj; | |
3811 | bool result; | |
3812 | char *kwnames[] = { | |
3813 | NULL | |
3814 | }; | |
3815 | ||
3816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
3817 | { | |
3818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3819 | result = (bool)wxThread_IsMain(); | |
3820 | ||
3821 | wxPyEndAllowThreads(__tstate); | |
3822 | if (PyErr_Occurred()) SWIG_fail; | |
3823 | } | |
3824 | resultobj = PyInt_FromLong((long)result); | |
3825 | return resultobj; | |
3826 | fail: | |
3827 | return NULL; | |
3828 | } | |
3829 | ||
3830 | ||
3831 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3832 | PyObject *resultobj; | |
3833 | wxString *arg1 = 0 ; | |
3834 | wxToolTip *result; | |
e811c8ce | 3835 | bool temp1 = False ; |
d14a1e28 RD |
3836 | PyObject * obj0 = 0 ; |
3837 | char *kwnames[] = { | |
3838 | (char *) "tip", NULL | |
3839 | }; | |
3840 | ||
3841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
3842 | { | |
3843 | arg1 = wxString_in_helper(obj0); | |
3844 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3845 | temp1 = True; |
d14a1e28 RD |
3846 | } |
3847 | { | |
3848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3849 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
3850 | ||
3851 | wxPyEndAllowThreads(__tstate); | |
3852 | if (PyErr_Occurred()) SWIG_fail; | |
3853 | } | |
3854 | { | |
3855 | resultobj = wxPyMake_wxObject(result); | |
3856 | } | |
3857 | { | |
3858 | if (temp1) | |
3859 | delete arg1; | |
3860 | } | |
3861 | return resultobj; | |
3862 | fail: | |
3863 | { | |
3864 | if (temp1) | |
3865 | delete arg1; | |
3866 | } | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3874 | wxString *arg2 = 0 ; | |
e811c8ce | 3875 | bool temp2 = False ; |
d14a1e28 RD |
3876 | PyObject * obj0 = 0 ; |
3877 | PyObject * obj1 = 0 ; | |
3878 | char *kwnames[] = { | |
3879 | (char *) "self",(char *) "tip", NULL | |
3880 | }; | |
3881 | ||
3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
3883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3884 | { | |
3885 | arg2 = wxString_in_helper(obj1); | |
3886 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3887 | temp2 = True; |
d14a1e28 RD |
3888 | } |
3889 | { | |
3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3891 | (arg1)->SetTip((wxString const &)*arg2); | |
3892 | ||
3893 | wxPyEndAllowThreads(__tstate); | |
3894 | if (PyErr_Occurred()) SWIG_fail; | |
3895 | } | |
3896 | Py_INCREF(Py_None); resultobj = Py_None; | |
3897 | { | |
3898 | if (temp2) | |
3899 | delete arg2; | |
3900 | } | |
3901 | return resultobj; | |
3902 | fail: | |
3903 | { | |
3904 | if (temp2) | |
3905 | delete arg2; | |
3906 | } | |
3907 | return NULL; | |
3908 | } | |
3909 | ||
3910 | ||
3911 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3912 | PyObject *resultobj; | |
3913 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3914 | wxString result; | |
3915 | PyObject * obj0 = 0 ; | |
3916 | char *kwnames[] = { | |
3917 | (char *) "self", NULL | |
3918 | }; | |
3919 | ||
3920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
3921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3922 | { | |
3923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3924 | result = (arg1)->GetTip(); | |
3925 | ||
3926 | wxPyEndAllowThreads(__tstate); | |
3927 | if (PyErr_Occurred()) SWIG_fail; | |
3928 | } | |
3929 | { | |
3930 | #if wxUSE_UNICODE | |
3931 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3932 | #else | |
3933 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3934 | #endif | |
3935 | } | |
3936 | return resultobj; | |
3937 | fail: | |
3938 | return NULL; | |
3939 | } | |
3940 | ||
3941 | ||
3942 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3943 | PyObject *resultobj; | |
3944 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3945 | wxWindow *result; | |
3946 | PyObject * obj0 = 0 ; | |
3947 | char *kwnames[] = { | |
3948 | (char *) "self", NULL | |
3949 | }; | |
3950 | ||
3951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
3952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3953 | { | |
3954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3955 | result = (wxWindow *)(arg1)->GetWindow(); | |
3956 | ||
3957 | wxPyEndAllowThreads(__tstate); | |
3958 | if (PyErr_Occurred()) SWIG_fail; | |
3959 | } | |
3960 | { | |
3961 | resultobj = wxPyMake_wxObject(result); | |
3962 | } | |
3963 | return resultobj; | |
3964 | fail: | |
3965 | return NULL; | |
3966 | } | |
3967 | ||
3968 | ||
3969 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3970 | PyObject *resultobj; | |
3971 | bool arg1 ; | |
3972 | PyObject * obj0 = 0 ; | |
3973 | char *kwnames[] = { | |
3974 | (char *) "flag", NULL | |
3975 | }; | |
3976 | ||
3977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
3978 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
3979 | if (PyErr_Occurred()) SWIG_fail; | |
3980 | { | |
3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3982 | wxToolTip::Enable(arg1); | |
3983 | ||
3984 | wxPyEndAllowThreads(__tstate); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | } | |
3987 | Py_INCREF(Py_None); resultobj = Py_None; | |
3988 | return resultobj; | |
3989 | fail: | |
3990 | return NULL; | |
3991 | } | |
3992 | ||
3993 | ||
3994 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3995 | PyObject *resultobj; | |
3996 | long arg1 ; | |
3997 | char *kwnames[] = { | |
3998 | (char *) "milliseconds", NULL | |
3999 | }; | |
4000 | ||
4001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:ToolTip_SetDelay",kwnames,&arg1)) goto fail; | |
4002 | { | |
4003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4004 | wxToolTip::SetDelay(arg1); | |
4005 | ||
4006 | wxPyEndAllowThreads(__tstate); | |
4007 | if (PyErr_Occurred()) SWIG_fail; | |
4008 | } | |
4009 | Py_INCREF(Py_None); resultobj = Py_None; | |
4010 | return resultobj; | |
4011 | fail: | |
4012 | return NULL; | |
4013 | } | |
4014 | ||
4015 | ||
4016 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4017 | PyObject *obj; | |
4018 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4019 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4020 | Py_INCREF(obj); | |
4021 | return Py_BuildValue((char *)""); | |
4022 | } | |
4023 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4024 | PyObject *resultobj; | |
4025 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4026 | wxSize *arg2 = 0 ; | |
4027 | wxCaret *result; | |
4028 | wxSize temp2 ; | |
4029 | PyObject * obj0 = 0 ; | |
4030 | PyObject * obj1 = 0 ; | |
4031 | char *kwnames[] = { | |
4032 | (char *) "window",(char *) "size", NULL | |
4033 | }; | |
4034 | ||
4035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4037 | { | |
4038 | arg2 = &temp2; | |
4039 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4040 | } | |
4041 | { | |
4042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4043 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4044 | ||
4045 | wxPyEndAllowThreads(__tstate); | |
4046 | if (PyErr_Occurred()) SWIG_fail; | |
4047 | } | |
4048 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1); | |
4049 | return resultobj; | |
4050 | fail: | |
4051 | return NULL; | |
4052 | } | |
4053 | ||
4054 | ||
4055 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4056 | PyObject *resultobj; | |
4057 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4058 | PyObject * obj0 = 0 ; | |
4059 | char *kwnames[] = { | |
4060 | (char *) "self", NULL | |
4061 | }; | |
4062 | ||
4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4065 | { | |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4067 | delete arg1; | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
4072 | Py_INCREF(Py_None); resultobj = Py_None; | |
4073 | return resultobj; | |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
4079 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4080 | PyObject *resultobj; | |
4081 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4082 | bool result; | |
4083 | PyObject * obj0 = 0 ; | |
4084 | char *kwnames[] = { | |
4085 | (char *) "self", NULL | |
4086 | }; | |
4087 | ||
4088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4090 | { | |
4091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4092 | result = (bool)(arg1)->IsOk(); | |
4093 | ||
4094 | wxPyEndAllowThreads(__tstate); | |
4095 | if (PyErr_Occurred()) SWIG_fail; | |
4096 | } | |
4097 | resultobj = PyInt_FromLong((long)result); | |
4098 | return resultobj; | |
4099 | fail: | |
4100 | return NULL; | |
4101 | } | |
4102 | ||
4103 | ||
4104 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4105 | PyObject *resultobj; | |
4106 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4107 | bool result; | |
4108 | PyObject * obj0 = 0 ; | |
4109 | char *kwnames[] = { | |
4110 | (char *) "self", NULL | |
4111 | }; | |
4112 | ||
4113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4115 | { | |
4116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4117 | result = (bool)(arg1)->IsVisible(); | |
4118 | ||
4119 | wxPyEndAllowThreads(__tstate); | |
4120 | if (PyErr_Occurred()) SWIG_fail; | |
4121 | } | |
4122 | resultobj = PyInt_FromLong((long)result); | |
4123 | return resultobj; | |
4124 | fail: | |
4125 | return NULL; | |
4126 | } | |
4127 | ||
4128 | ||
322913ce RD |
4129 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4130 | PyObject *resultobj; | |
4131 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4132 | wxPoint result; | |
4133 | PyObject * obj0 = 0 ; | |
4134 | char *kwnames[] = { | |
4135 | (char *) "self", NULL | |
4136 | }; | |
4137 | ||
4138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4140 | { | |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4142 | result = (arg1)->GetPosition(); | |
4143 | ||
4144 | wxPyEndAllowThreads(__tstate); | |
4145 | if (PyErr_Occurred()) SWIG_fail; | |
4146 | } | |
4147 | { | |
4148 | wxPoint * resultptr; | |
4149 | resultptr = new wxPoint((wxPoint &) result); | |
4150 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
4151 | } | |
4152 | return resultobj; | |
4153 | fail: | |
4154 | return NULL; | |
4155 | } | |
4156 | ||
4157 | ||
d14a1e28 RD |
4158 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4159 | PyObject *resultobj; | |
4160 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4161 | int *arg2 = (int *) 0 ; | |
4162 | int *arg3 = (int *) 0 ; | |
4163 | int temp2 ; | |
4164 | int temp3 ; | |
4165 | PyObject * obj0 = 0 ; | |
4166 | char *kwnames[] = { | |
4167 | (char *) "self", NULL | |
4168 | }; | |
4169 | ||
4170 | arg2 = &temp2; | |
4171 | arg3 = &temp3; | |
4172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4174 | { | |
4175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4176 | (arg1)->GetPosition(arg2,arg3); | |
4177 | ||
4178 | wxPyEndAllowThreads(__tstate); | |
4179 | if (PyErr_Occurred()) SWIG_fail; | |
4180 | } | |
4181 | Py_INCREF(Py_None); resultobj = Py_None; | |
4182 | { | |
4183 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4184 | resultobj = t_output_helper(resultobj,o); | |
4185 | } | |
4186 | { | |
4187 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4188 | resultobj = t_output_helper(resultobj,o); | |
4189 | } | |
4190 | return resultobj; | |
4191 | fail: | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
322913ce | 4196 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4197 | PyObject *resultobj; |
4198 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 4199 | wxSize result; |
d14a1e28 RD |
4200 | PyObject * obj0 = 0 ; |
4201 | char *kwnames[] = { | |
4202 | (char *) "self", NULL | |
4203 | }; | |
4204 | ||
322913ce | 4205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4207 | { | |
4208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 4209 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4210 | |
4211 | wxPyEndAllowThreads(__tstate); | |
4212 | if (PyErr_Occurred()) SWIG_fail; | |
4213 | } | |
4214 | { | |
322913ce RD |
4215 | wxSize * resultptr; |
4216 | resultptr = new wxSize((wxSize &) result); | |
4217 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
d14a1e28 RD |
4218 | } |
4219 | return resultobj; | |
4220 | fail: | |
4221 | return NULL; | |
4222 | } | |
4223 | ||
4224 | ||
4225 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4226 | PyObject *resultobj; | |
4227 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4228 | int *arg2 = (int *) 0 ; | |
4229 | int *arg3 = (int *) 0 ; | |
4230 | int temp2 ; | |
4231 | int temp3 ; | |
4232 | PyObject * obj0 = 0 ; | |
4233 | char *kwnames[] = { | |
4234 | (char *) "self", NULL | |
4235 | }; | |
4236 | ||
4237 | arg2 = &temp2; | |
4238 | arg3 = &temp3; | |
4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4241 | { | |
4242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4243 | (arg1)->GetSize(arg2,arg3); | |
4244 | ||
4245 | wxPyEndAllowThreads(__tstate); | |
4246 | if (PyErr_Occurred()) SWIG_fail; | |
4247 | } | |
4248 | Py_INCREF(Py_None); resultobj = Py_None; | |
4249 | { | |
4250 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4251 | resultobj = t_output_helper(resultobj,o); | |
4252 | } | |
4253 | { | |
4254 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4255 | resultobj = t_output_helper(resultobj,o); | |
4256 | } | |
4257 | return resultobj; | |
4258 | fail: | |
4259 | return NULL; | |
4260 | } | |
4261 | ||
4262 | ||
d14a1e28 RD |
4263 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4264 | PyObject *resultobj; | |
4265 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4266 | wxWindow *result; | |
4267 | PyObject * obj0 = 0 ; | |
4268 | char *kwnames[] = { | |
4269 | (char *) "self", NULL | |
4270 | }; | |
4271 | ||
4272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4274 | { | |
4275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276 | result = (wxWindow *)(arg1)->GetWindow(); | |
4277 | ||
4278 | wxPyEndAllowThreads(__tstate); | |
4279 | if (PyErr_Occurred()) SWIG_fail; | |
4280 | } | |
4281 | { | |
4282 | resultobj = wxPyMake_wxObject(result); | |
4283 | } | |
4284 | return resultobj; | |
4285 | fail: | |
4286 | return NULL; | |
4287 | } | |
4288 | ||
4289 | ||
4290 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4291 | PyObject *resultobj; | |
4292 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4293 | int arg2 ; | |
4294 | int arg3 ; | |
4295 | PyObject * obj0 = 0 ; | |
4296 | char *kwnames[] = { | |
4297 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4298 | }; | |
4299 | ||
4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_MoveXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4302 | { | |
4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4304 | (arg1)->Move(arg2,arg3); | |
4305 | ||
4306 | wxPyEndAllowThreads(__tstate); | |
4307 | if (PyErr_Occurred()) SWIG_fail; | |
4308 | } | |
4309 | Py_INCREF(Py_None); resultobj = Py_None; | |
4310 | return resultobj; | |
4311 | fail: | |
4312 | return NULL; | |
4313 | } | |
4314 | ||
4315 | ||
4316 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4317 | PyObject *resultobj; | |
4318 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4319 | wxPoint *arg2 = 0 ; | |
4320 | wxPoint temp2 ; | |
4321 | PyObject * obj0 = 0 ; | |
4322 | PyObject * obj1 = 0 ; | |
4323 | char *kwnames[] = { | |
4324 | (char *) "self",(char *) "pt", NULL | |
4325 | }; | |
4326 | ||
4327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4329 | { | |
4330 | arg2 = &temp2; | |
4331 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4332 | } | |
4333 | { | |
4334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4335 | (arg1)->Move((wxPoint const &)*arg2); | |
4336 | ||
4337 | wxPyEndAllowThreads(__tstate); | |
4338 | if (PyErr_Occurred()) SWIG_fail; | |
4339 | } | |
4340 | Py_INCREF(Py_None); resultobj = Py_None; | |
4341 | return resultobj; | |
4342 | fail: | |
4343 | return NULL; | |
4344 | } | |
4345 | ||
4346 | ||
4347 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4348 | PyObject *resultobj; | |
4349 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4350 | int arg2 ; | |
4351 | int arg3 ; | |
4352 | PyObject * obj0 = 0 ; | |
4353 | char *kwnames[] = { | |
4354 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4355 | }; | |
4356 | ||
4357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4359 | { | |
4360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4361 | (arg1)->SetSize(arg2,arg3); | |
4362 | ||
4363 | wxPyEndAllowThreads(__tstate); | |
4364 | if (PyErr_Occurred()) SWIG_fail; | |
4365 | } | |
4366 | Py_INCREF(Py_None); resultobj = Py_None; | |
4367 | return resultobj; | |
4368 | fail: | |
4369 | return NULL; | |
4370 | } | |
4371 | ||
4372 | ||
4373 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4374 | PyObject *resultobj; | |
4375 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4376 | wxSize *arg2 = 0 ; | |
4377 | wxSize temp2 ; | |
4378 | PyObject * obj0 = 0 ; | |
4379 | PyObject * obj1 = 0 ; | |
4380 | char *kwnames[] = { | |
4381 | (char *) "self",(char *) "size", NULL | |
4382 | }; | |
4383 | ||
4384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4386 | { | |
4387 | arg2 = &temp2; | |
4388 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4389 | } | |
4390 | { | |
4391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4392 | (arg1)->SetSize((wxSize const &)*arg2); | |
4393 | ||
4394 | wxPyEndAllowThreads(__tstate); | |
4395 | if (PyErr_Occurred()) SWIG_fail; | |
4396 | } | |
4397 | Py_INCREF(Py_None); resultobj = Py_None; | |
4398 | return resultobj; | |
4399 | fail: | |
4400 | return NULL; | |
4401 | } | |
4402 | ||
4403 | ||
4404 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4405 | PyObject *resultobj; | |
4406 | wxCaret *arg1 = (wxCaret *) 0 ; | |
e811c8ce | 4407 | int arg2 = (int) True ; |
d14a1e28 RD |
4408 | PyObject * obj0 = 0 ; |
4409 | char *kwnames[] = { | |
4410 | (char *) "self",(char *) "show", NULL | |
4411 | }; | |
4412 | ||
4413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Caret_Show",kwnames,&obj0,&arg2)) goto fail; | |
4414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4415 | { | |
4416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4417 | (arg1)->Show(arg2); | |
4418 | ||
4419 | wxPyEndAllowThreads(__tstate); | |
4420 | if (PyErr_Occurred()) SWIG_fail; | |
4421 | } | |
4422 | Py_INCREF(Py_None); resultobj = Py_None; | |
4423 | return resultobj; | |
4424 | fail: | |
4425 | return NULL; | |
4426 | } | |
4427 | ||
4428 | ||
4429 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4430 | PyObject *resultobj; | |
4431 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4432 | PyObject * obj0 = 0 ; | |
4433 | char *kwnames[] = { | |
4434 | (char *) "self", NULL | |
4435 | }; | |
4436 | ||
4437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4439 | { | |
4440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4441 | (arg1)->Hide(); | |
4442 | ||
4443 | wxPyEndAllowThreads(__tstate); | |
4444 | if (PyErr_Occurred()) SWIG_fail; | |
4445 | } | |
4446 | Py_INCREF(Py_None); resultobj = Py_None; | |
4447 | return resultobj; | |
4448 | fail: | |
4449 | return NULL; | |
4450 | } | |
4451 | ||
4452 | ||
4453 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4454 | PyObject *obj; | |
4455 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4456 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4457 | Py_INCREF(obj); | |
4458 | return Py_BuildValue((char *)""); | |
4459 | } | |
4460 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4461 | PyObject *resultobj; | |
4462 | int result; | |
4463 | char *kwnames[] = { | |
4464 | NULL | |
4465 | }; | |
4466 | ||
4467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4468 | { | |
4469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4470 | result = (int)wxCaret_GetBlinkTime(); | |
4471 | ||
4472 | wxPyEndAllowThreads(__tstate); | |
4473 | if (PyErr_Occurred()) SWIG_fail; | |
4474 | } | |
4475 | resultobj = PyInt_FromLong((long)result); | |
4476 | return resultobj; | |
4477 | fail: | |
4478 | return NULL; | |
4479 | } | |
4480 | ||
4481 | ||
4482 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4483 | PyObject *resultobj; | |
4484 | int arg1 ; | |
4485 | char *kwnames[] = { | |
4486 | (char *) "milliseconds", NULL | |
4487 | }; | |
4488 | ||
4489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Caret_SetBlinkTime",kwnames,&arg1)) goto fail; | |
4490 | { | |
4491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4492 | wxCaret_SetBlinkTime(arg1); | |
4493 | ||
4494 | wxPyEndAllowThreads(__tstate); | |
4495 | if (PyErr_Occurred()) SWIG_fail; | |
4496 | } | |
4497 | Py_INCREF(Py_None); resultobj = Py_None; | |
4498 | return resultobj; | |
4499 | fail: | |
4500 | return NULL; | |
4501 | } | |
4502 | ||
4503 | ||
4504 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4505 | PyObject *resultobj; | |
4506 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4507 | wxBusyCursor *result; | |
4508 | PyObject * obj0 = 0 ; | |
4509 | char *kwnames[] = { | |
4510 | (char *) "cursor", NULL | |
4511 | }; | |
4512 | ||
4513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4514 | if (obj0) { | |
4515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4516 | } | |
4517 | { | |
4518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4519 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
4520 | ||
4521 | wxPyEndAllowThreads(__tstate); | |
4522 | if (PyErr_Occurred()) SWIG_fail; | |
4523 | } | |
4524 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1); | |
4525 | return resultobj; | |
4526 | fail: | |
4527 | return NULL; | |
4528 | } | |
4529 | ||
4530 | ||
4531 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4532 | PyObject *resultobj; | |
4533 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
4534 | PyObject * obj0 = 0 ; | |
4535 | char *kwnames[] = { | |
4536 | (char *) "self", NULL | |
4537 | }; | |
4538 | ||
4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
4540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4541 | { | |
4542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4543 | delete arg1; | |
4544 | ||
4545 | wxPyEndAllowThreads(__tstate); | |
4546 | if (PyErr_Occurred()) SWIG_fail; | |
4547 | } | |
4548 | Py_INCREF(Py_None); resultobj = Py_None; | |
4549 | return resultobj; | |
4550 | fail: | |
4551 | return NULL; | |
4552 | } | |
4553 | ||
4554 | ||
4555 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
4556 | PyObject *obj; | |
4557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4558 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
4559 | Py_INCREF(obj); | |
4560 | return Py_BuildValue((char *)""); | |
4561 | } | |
4562 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4563 | PyObject *resultobj; | |
4564 | wxWindow *arg1 = (wxWindow *) NULL ; | |
4565 | wxWindowDisabler *result; | |
4566 | PyObject * obj0 = 0 ; | |
4567 | char *kwnames[] = { | |
4568 | (char *) "winToSkip", NULL | |
4569 | }; | |
4570 | ||
4571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
4572 | if (obj0) { | |
4573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4574 | } | |
4575 | { | |
4576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4577 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
4578 | ||
4579 | wxPyEndAllowThreads(__tstate); | |
4580 | if (PyErr_Occurred()) SWIG_fail; | |
4581 | } | |
4582 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1); | |
4583 | return resultobj; | |
4584 | fail: | |
4585 | return NULL; | |
4586 | } | |
4587 | ||
4588 | ||
4589 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4590 | PyObject *resultobj; | |
4591 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
4592 | PyObject * obj0 = 0 ; | |
4593 | char *kwnames[] = { | |
4594 | (char *) "self", NULL | |
4595 | }; | |
4596 | ||
4597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
4598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4599 | { | |
4600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4601 | delete arg1; | |
4602 | ||
4603 | wxPyEndAllowThreads(__tstate); | |
4604 | if (PyErr_Occurred()) SWIG_fail; | |
4605 | } | |
4606 | Py_INCREF(Py_None); resultobj = Py_None; | |
4607 | return resultobj; | |
4608 | fail: | |
4609 | return NULL; | |
4610 | } | |
4611 | ||
4612 | ||
4613 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
4614 | PyObject *obj; | |
4615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4616 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
4617 | Py_INCREF(obj); | |
4618 | return Py_BuildValue((char *)""); | |
4619 | } | |
4620 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4621 | PyObject *resultobj; | |
4622 | wxString *arg1 = 0 ; | |
4623 | wxBusyInfo *result; | |
e811c8ce | 4624 | bool temp1 = False ; |
d14a1e28 RD |
4625 | PyObject * obj0 = 0 ; |
4626 | char *kwnames[] = { | |
4627 | (char *) "message", NULL | |
4628 | }; | |
4629 | ||
4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
4631 | { | |
4632 | arg1 = wxString_in_helper(obj0); | |
4633 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4634 | temp1 = True; |
d14a1e28 RD |
4635 | } |
4636 | { | |
4637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4638 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
4639 | ||
4640 | wxPyEndAllowThreads(__tstate); | |
4641 | if (PyErr_Occurred()) SWIG_fail; | |
4642 | } | |
4643 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1); | |
4644 | { | |
4645 | if (temp1) | |
4646 | delete arg1; | |
4647 | } | |
4648 | return resultobj; | |
4649 | fail: | |
4650 | { | |
4651 | if (temp1) | |
4652 | delete arg1; | |
4653 | } | |
4654 | return NULL; | |
4655 | } | |
4656 | ||
4657 | ||
4658 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4659 | PyObject *resultobj; | |
4660 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
4661 | PyObject * obj0 = 0 ; | |
4662 | char *kwnames[] = { | |
4663 | (char *) "self", NULL | |
4664 | }; | |
4665 | ||
4666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
4667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4668 | { | |
4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4670 | delete arg1; | |
4671 | ||
4672 | wxPyEndAllowThreads(__tstate); | |
4673 | if (PyErr_Occurred()) SWIG_fail; | |
4674 | } | |
4675 | Py_INCREF(Py_None); resultobj = Py_None; | |
4676 | return resultobj; | |
4677 | fail: | |
4678 | return NULL; | |
4679 | } | |
4680 | ||
4681 | ||
4682 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
4683 | PyObject *obj; | |
4684 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4685 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
4686 | Py_INCREF(obj); | |
4687 | return Py_BuildValue((char *)""); | |
4688 | } | |
4689 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4690 | PyObject *resultobj; | |
4691 | wxStopWatch *result; | |
4692 | char *kwnames[] = { | |
4693 | NULL | |
4694 | }; | |
4695 | ||
4696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
4697 | { | |
4698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4699 | result = (wxStopWatch *)new wxStopWatch(); | |
4700 | ||
4701 | wxPyEndAllowThreads(__tstate); | |
4702 | if (PyErr_Occurred()) SWIG_fail; | |
4703 | } | |
4704 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1); | |
4705 | return resultobj; | |
4706 | fail: | |
4707 | return NULL; | |
4708 | } | |
4709 | ||
4710 | ||
4711 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4712 | PyObject *resultobj; | |
4713 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4714 | long arg2 = (long) 0 ; | |
4715 | PyObject * obj0 = 0 ; | |
4716 | char *kwnames[] = { | |
4717 | (char *) "self",(char *) "t0", NULL | |
4718 | }; | |
4719 | ||
4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:StopWatch_Start",kwnames,&obj0,&arg2)) goto fail; | |
4721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4722 | { | |
4723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4724 | (arg1)->Start(arg2); | |
4725 | ||
4726 | wxPyEndAllowThreads(__tstate); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
4728 | } | |
4729 | Py_INCREF(Py_None); resultobj = Py_None; | |
4730 | return resultobj; | |
4731 | fail: | |
4732 | return NULL; | |
4733 | } | |
4734 | ||
4735 | ||
4736 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4737 | PyObject *resultobj; | |
4738 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4739 | PyObject * obj0 = 0 ; | |
4740 | char *kwnames[] = { | |
4741 | (char *) "self", NULL | |
4742 | }; | |
4743 | ||
4744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
4745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4746 | { | |
4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4748 | (arg1)->Pause(); | |
4749 | ||
4750 | wxPyEndAllowThreads(__tstate); | |
4751 | if (PyErr_Occurred()) SWIG_fail; | |
4752 | } | |
4753 | Py_INCREF(Py_None); resultobj = Py_None; | |
4754 | return resultobj; | |
4755 | fail: | |
4756 | return NULL; | |
4757 | } | |
4758 | ||
4759 | ||
4760 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4761 | PyObject *resultobj; | |
4762 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4763 | PyObject * obj0 = 0 ; | |
4764 | char *kwnames[] = { | |
4765 | (char *) "self", NULL | |
4766 | }; | |
4767 | ||
4768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
4769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4770 | { | |
4771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4772 | (arg1)->Resume(); | |
4773 | ||
4774 | wxPyEndAllowThreads(__tstate); | |
4775 | if (PyErr_Occurred()) SWIG_fail; | |
4776 | } | |
4777 | Py_INCREF(Py_None); resultobj = Py_None; | |
4778 | return resultobj; | |
4779 | fail: | |
4780 | return NULL; | |
4781 | } | |
4782 | ||
4783 | ||
4784 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4785 | PyObject *resultobj; | |
4786 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4787 | long result; | |
4788 | PyObject * obj0 = 0 ; | |
4789 | char *kwnames[] = { | |
4790 | (char *) "self", NULL | |
4791 | }; | |
4792 | ||
4793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
4794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4795 | { | |
4796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4797 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
4798 | ||
4799 | wxPyEndAllowThreads(__tstate); | |
4800 | if (PyErr_Occurred()) SWIG_fail; | |
4801 | } | |
4802 | resultobj = PyInt_FromLong((long)result); | |
4803 | return resultobj; | |
4804 | fail: | |
4805 | return NULL; | |
4806 | } | |
4807 | ||
4808 | ||
4809 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
4810 | PyObject *obj; | |
4811 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4812 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
4813 | Py_INCREF(obj); | |
4814 | return Py_BuildValue((char *)""); | |
4815 | } | |
4816 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4817 | PyObject *resultobj; | |
4818 | int arg1 = (int) 9 ; | |
4819 | wxFileHistory *result; | |
4820 | char *kwnames[] = { | |
4821 | (char *) "maxFiles", NULL | |
4822 | }; | |
4823 | ||
4824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_FileHistory",kwnames,&arg1)) goto fail; | |
4825 | { | |
4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4827 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
4828 | ||
4829 | wxPyEndAllowThreads(__tstate); | |
4830 | if (PyErr_Occurred()) SWIG_fail; | |
4831 | } | |
4832 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1); | |
4833 | return resultobj; | |
4834 | fail: | |
4835 | return NULL; | |
4836 | } | |
4837 | ||
4838 | ||
4839 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4840 | PyObject *resultobj; | |
4841 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4842 | PyObject * obj0 = 0 ; | |
4843 | char *kwnames[] = { | |
4844 | (char *) "self", NULL | |
4845 | }; | |
4846 | ||
4847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
4848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4849 | { | |
4850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4851 | delete arg1; | |
4852 | ||
4853 | wxPyEndAllowThreads(__tstate); | |
4854 | if (PyErr_Occurred()) SWIG_fail; | |
4855 | } | |
4856 | Py_INCREF(Py_None); resultobj = Py_None; | |
4857 | return resultobj; | |
4858 | fail: | |
4859 | return NULL; | |
4860 | } | |
4861 | ||
4862 | ||
4863 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4864 | PyObject *resultobj; | |
4865 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4866 | wxString *arg2 = 0 ; | |
e811c8ce | 4867 | bool temp2 = False ; |
d14a1e28 RD |
4868 | PyObject * obj0 = 0 ; |
4869 | PyObject * obj1 = 0 ; | |
4870 | char *kwnames[] = { | |
4871 | (char *) "self",(char *) "file", NULL | |
4872 | }; | |
4873 | ||
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
4875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4876 | { | |
4877 | arg2 = wxString_in_helper(obj1); | |
4878 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4879 | temp2 = True; |
d14a1e28 RD |
4880 | } |
4881 | { | |
4882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4883 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
4884 | ||
4885 | wxPyEndAllowThreads(__tstate); | |
4886 | if (PyErr_Occurred()) SWIG_fail; | |
4887 | } | |
4888 | Py_INCREF(Py_None); resultobj = Py_None; | |
4889 | { | |
4890 | if (temp2) | |
4891 | delete arg2; | |
4892 | } | |
4893 | return resultobj; | |
4894 | fail: | |
4895 | { | |
4896 | if (temp2) | |
4897 | delete arg2; | |
4898 | } | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
4903 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4904 | PyObject *resultobj; | |
4905 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4906 | int arg2 ; | |
4907 | PyObject * obj0 = 0 ; | |
4908 | char *kwnames[] = { | |
4909 | (char *) "self",(char *) "i", NULL | |
4910 | }; | |
4911 | ||
4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&arg2)) goto fail; | |
4913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4914 | { | |
4915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4916 | (arg1)->RemoveFileFromHistory(arg2); | |
4917 | ||
4918 | wxPyEndAllowThreads(__tstate); | |
4919 | if (PyErr_Occurred()) SWIG_fail; | |
4920 | } | |
4921 | Py_INCREF(Py_None); resultobj = Py_None; | |
4922 | return resultobj; | |
4923 | fail: | |
4924 | return NULL; | |
4925 | } | |
4926 | ||
4927 | ||
4928 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4929 | PyObject *resultobj; | |
4930 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4931 | int result; | |
4932 | PyObject * obj0 = 0 ; | |
4933 | char *kwnames[] = { | |
4934 | (char *) "self", NULL | |
4935 | }; | |
4936 | ||
4937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
4938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4939 | { | |
4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4941 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
4942 | ||
4943 | wxPyEndAllowThreads(__tstate); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
4945 | } | |
4946 | resultobj = PyInt_FromLong((long)result); | |
4947 | return resultobj; | |
4948 | fail: | |
4949 | return NULL; | |
4950 | } | |
4951 | ||
4952 | ||
4953 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4954 | PyObject *resultobj; | |
4955 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4956 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4957 | PyObject * obj0 = 0 ; | |
4958 | PyObject * obj1 = 0 ; | |
4959 | char *kwnames[] = { | |
4960 | (char *) "self",(char *) "menu", NULL | |
4961 | }; | |
4962 | ||
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
4964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4965 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4966 | { | |
4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4968 | (arg1)->UseMenu(arg2); | |
4969 | ||
4970 | wxPyEndAllowThreads(__tstate); | |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
4972 | } | |
4973 | Py_INCREF(Py_None); resultobj = Py_None; | |
4974 | return resultobj; | |
4975 | fail: | |
4976 | return NULL; | |
4977 | } | |
4978 | ||
4979 | ||
4980 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4981 | PyObject *resultobj; | |
4982 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4983 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4984 | PyObject * obj0 = 0 ; | |
4985 | PyObject * obj1 = 0 ; | |
4986 | char *kwnames[] = { | |
4987 | (char *) "self",(char *) "menu", NULL | |
4988 | }; | |
4989 | ||
4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
4991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4992 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4993 | { | |
4994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4995 | (arg1)->RemoveMenu(arg2); | |
4996 | ||
4997 | wxPyEndAllowThreads(__tstate); | |
4998 | if (PyErr_Occurred()) SWIG_fail; | |
4999 | } | |
5000 | Py_INCREF(Py_None); resultobj = Py_None; | |
5001 | return resultobj; | |
5002 | fail: | |
5003 | return NULL; | |
5004 | } | |
5005 | ||
5006 | ||
5007 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5008 | PyObject *resultobj; | |
5009 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5010 | wxConfigBase *arg2 = 0 ; | |
5011 | PyObject * obj0 = 0 ; | |
5012 | PyObject * obj1 = 0 ; | |
5013 | char *kwnames[] = { | |
5014 | (char *) "self",(char *) "config", NULL | |
5015 | }; | |
5016 | ||
5017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5019 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5020 | if (arg2 == NULL) { | |
5021 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5022 | } | |
5023 | { | |
5024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5025 | (arg1)->Load(*arg2); | |
5026 | ||
5027 | wxPyEndAllowThreads(__tstate); | |
5028 | if (PyErr_Occurred()) SWIG_fail; | |
5029 | } | |
5030 | Py_INCREF(Py_None); resultobj = Py_None; | |
5031 | return resultobj; | |
5032 | fail: | |
5033 | return NULL; | |
5034 | } | |
5035 | ||
5036 | ||
5037 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5038 | PyObject *resultobj; | |
5039 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5040 | wxConfigBase *arg2 = 0 ; | |
5041 | PyObject * obj0 = 0 ; | |
5042 | PyObject * obj1 = 0 ; | |
5043 | char *kwnames[] = { | |
5044 | (char *) "self",(char *) "config", NULL | |
5045 | }; | |
5046 | ||
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5049 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5050 | if (arg2 == NULL) { | |
5051 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5052 | } | |
5053 | { | |
5054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5055 | (arg1)->Save(*arg2); | |
5056 | ||
5057 | wxPyEndAllowThreads(__tstate); | |
5058 | if (PyErr_Occurred()) SWIG_fail; | |
5059 | } | |
5060 | Py_INCREF(Py_None); resultobj = Py_None; | |
5061 | return resultobj; | |
5062 | fail: | |
5063 | return NULL; | |
5064 | } | |
5065 | ||
5066 | ||
5067 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject *resultobj; | |
5069 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5070 | PyObject * obj0 = 0 ; | |
5071 | char *kwnames[] = { | |
5072 | (char *) "self", NULL | |
5073 | }; | |
5074 | ||
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5077 | { | |
5078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5079 | (arg1)->AddFilesToMenu(); | |
5080 | ||
5081 | wxPyEndAllowThreads(__tstate); | |
5082 | if (PyErr_Occurred()) SWIG_fail; | |
5083 | } | |
5084 | Py_INCREF(Py_None); resultobj = Py_None; | |
5085 | return resultobj; | |
5086 | fail: | |
5087 | return NULL; | |
5088 | } | |
5089 | ||
5090 | ||
5091 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5092 | PyObject *resultobj; | |
5093 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5094 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5095 | PyObject * obj0 = 0 ; | |
5096 | PyObject * obj1 = 0 ; | |
5097 | char *kwnames[] = { | |
5098 | (char *) "self",(char *) "menu", NULL | |
5099 | }; | |
5100 | ||
5101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5103 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5104 | { | |
5105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5106 | (arg1)->AddFilesToMenu(arg2); | |
5107 | ||
5108 | wxPyEndAllowThreads(__tstate); | |
5109 | if (PyErr_Occurred()) SWIG_fail; | |
5110 | } | |
5111 | Py_INCREF(Py_None); resultobj = Py_None; | |
5112 | return resultobj; | |
5113 | fail: | |
5114 | return NULL; | |
5115 | } | |
5116 | ||
5117 | ||
5118 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5119 | PyObject *resultobj; | |
5120 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5121 | int arg2 ; | |
5122 | wxString result; | |
5123 | PyObject * obj0 = 0 ; | |
5124 | char *kwnames[] = { | |
5125 | (char *) "self",(char *) "i", NULL | |
5126 | }; | |
5127 | ||
5128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_GetHistoryFile",kwnames,&obj0,&arg2)) goto fail; | |
5129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5130 | { | |
5131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5132 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5133 | ||
5134 | wxPyEndAllowThreads(__tstate); | |
5135 | if (PyErr_Occurred()) SWIG_fail; | |
5136 | } | |
5137 | { | |
5138 | #if wxUSE_UNICODE | |
5139 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5140 | #else | |
5141 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5142 | #endif | |
5143 | } | |
5144 | return resultobj; | |
5145 | fail: | |
5146 | return NULL; | |
5147 | } | |
5148 | ||
5149 | ||
5150 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5151 | PyObject *resultobj; | |
5152 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5153 | int result; | |
5154 | PyObject * obj0 = 0 ; | |
5155 | char *kwnames[] = { | |
5156 | (char *) "self", NULL | |
5157 | }; | |
5158 | ||
5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5161 | { | |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5163 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5164 | ||
5165 | wxPyEndAllowThreads(__tstate); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | } | |
5168 | resultobj = PyInt_FromLong((long)result); | |
5169 | return resultobj; | |
5170 | fail: | |
5171 | return NULL; | |
5172 | } | |
5173 | ||
5174 | ||
5175 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5176 | PyObject *obj; | |
5177 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5178 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5179 | Py_INCREF(obj); | |
5180 | return Py_BuildValue((char *)""); | |
5181 | } | |
5182 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5183 | PyObject *resultobj; | |
5184 | wxString *arg1 = 0 ; | |
5185 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5186 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5187 | wxSingleInstanceChecker *result; | |
e811c8ce RD |
5188 | bool temp1 = False ; |
5189 | bool temp2 = False ; | |
d14a1e28 RD |
5190 | PyObject * obj0 = 0 ; |
5191 | PyObject * obj1 = 0 ; | |
5192 | char *kwnames[] = { | |
5193 | (char *) "name",(char *) "path", NULL | |
5194 | }; | |
5195 | ||
5196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5197 | { | |
5198 | arg1 = wxString_in_helper(obj0); | |
5199 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5200 | temp1 = True; |
d14a1e28 RD |
5201 | } |
5202 | if (obj1) { | |
5203 | { | |
5204 | arg2 = wxString_in_helper(obj1); | |
5205 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5206 | temp2 = True; |
d14a1e28 RD |
5207 | } |
5208 | } | |
5209 | { | |
5210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5211 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5212 | ||
5213 | wxPyEndAllowThreads(__tstate); | |
5214 | if (PyErr_Occurred()) SWIG_fail; | |
5215 | } | |
5216 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5217 | { | |
5218 | if (temp1) | |
5219 | delete arg1; | |
5220 | } | |
5221 | { | |
5222 | if (temp2) | |
5223 | delete arg2; | |
5224 | } | |
5225 | return resultobj; | |
5226 | fail: | |
5227 | { | |
5228 | if (temp1) | |
5229 | delete arg1; | |
5230 | } | |
5231 | { | |
5232 | if (temp2) | |
5233 | delete arg2; | |
5234 | } | |
5235 | return NULL; | |
5236 | } | |
5237 | ||
5238 | ||
5239 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5240 | PyObject *resultobj; | |
5241 | wxSingleInstanceChecker *result; | |
5242 | char *kwnames[] = { | |
5243 | NULL | |
5244 | }; | |
5245 | ||
5246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5247 | { | |
5248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5249 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5250 | ||
5251 | wxPyEndAllowThreads(__tstate); | |
5252 | if (PyErr_Occurred()) SWIG_fail; | |
5253 | } | |
5254 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5255 | return resultobj; | |
5256 | fail: | |
5257 | return NULL; | |
5258 | } | |
5259 | ||
5260 | ||
5261 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5262 | PyObject *resultobj; | |
5263 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5264 | PyObject * obj0 = 0 ; | |
5265 | char *kwnames[] = { | |
5266 | (char *) "self", NULL | |
5267 | }; | |
5268 | ||
5269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5271 | { | |
5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5273 | delete arg1; | |
5274 | ||
5275 | wxPyEndAllowThreads(__tstate); | |
5276 | if (PyErr_Occurred()) SWIG_fail; | |
5277 | } | |
5278 | Py_INCREF(Py_None); resultobj = Py_None; | |
5279 | return resultobj; | |
5280 | fail: | |
5281 | return NULL; | |
5282 | } | |
5283 | ||
5284 | ||
5285 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5286 | PyObject *resultobj; | |
5287 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5288 | wxString *arg2 = 0 ; | |
5289 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5290 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5291 | bool result; | |
e811c8ce RD |
5292 | bool temp2 = False ; |
5293 | bool temp3 = False ; | |
d14a1e28 RD |
5294 | PyObject * obj0 = 0 ; |
5295 | PyObject * obj1 = 0 ; | |
5296 | PyObject * obj2 = 0 ; | |
5297 | char *kwnames[] = { | |
5298 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5299 | }; | |
5300 | ||
5301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5303 | { | |
5304 | arg2 = wxString_in_helper(obj1); | |
5305 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5306 | temp2 = True; |
d14a1e28 RD |
5307 | } |
5308 | if (obj2) { | |
5309 | { | |
5310 | arg3 = wxString_in_helper(obj2); | |
5311 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 5312 | temp3 = True; |
d14a1e28 RD |
5313 | } |
5314 | } | |
5315 | { | |
5316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5317 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5318 | ||
5319 | wxPyEndAllowThreads(__tstate); | |
5320 | if (PyErr_Occurred()) SWIG_fail; | |
5321 | } | |
5322 | resultobj = PyInt_FromLong((long)result); | |
5323 | { | |
5324 | if (temp2) | |
5325 | delete arg2; | |
5326 | } | |
5327 | { | |
5328 | if (temp3) | |
5329 | delete arg3; | |
5330 | } | |
5331 | return resultobj; | |
5332 | fail: | |
5333 | { | |
5334 | if (temp2) | |
5335 | delete arg2; | |
5336 | } | |
5337 | { | |
5338 | if (temp3) | |
5339 | delete arg3; | |
5340 | } | |
5341 | return NULL; | |
5342 | } | |
5343 | ||
5344 | ||
5345 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5346 | PyObject *resultobj; | |
5347 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5348 | bool result; | |
5349 | PyObject * obj0 = 0 ; | |
5350 | char *kwnames[] = { | |
5351 | (char *) "self", NULL | |
5352 | }; | |
5353 | ||
5354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5356 | { | |
5357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5358 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5359 | ||
5360 | wxPyEndAllowThreads(__tstate); | |
5361 | if (PyErr_Occurred()) SWIG_fail; | |
5362 | } | |
5363 | resultobj = PyInt_FromLong((long)result); | |
5364 | return resultobj; | |
5365 | fail: | |
5366 | return NULL; | |
5367 | } | |
5368 | ||
5369 | ||
5370 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5371 | PyObject *obj; | |
5372 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5373 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5374 | Py_INCREF(obj); | |
5375 | return Py_BuildValue((char *)""); | |
5376 | } | |
5377 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5378 | PyObject *resultobj; | |
5379 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5380 | wxDC *arg2 = 0 ; | |
5381 | int arg3 ; | |
5382 | PyObject * obj0 = 0 ; | |
5383 | PyObject * obj1 = 0 ; | |
5384 | char *kwnames[] = { | |
5385 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5386 | }; | |
5387 | ||
5388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DrawWindowOnDC",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5391 | if (arg2 == NULL) { | |
5392 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5393 | } | |
5394 | { | |
5395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5396 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5397 | ||
5398 | wxPyEndAllowThreads(__tstate); | |
5399 | if (PyErr_Occurred()) SWIG_fail; | |
5400 | } | |
5401 | Py_INCREF(Py_None); resultobj = Py_None; | |
5402 | return resultobj; | |
5403 | fail: | |
5404 | return NULL; | |
5405 | } | |
5406 | ||
5407 | ||
5408 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5409 | PyObject *resultobj; | |
5410 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5411 | PyObject * obj0 = 0 ; | |
5412 | char *kwnames[] = { | |
5413 | (char *) "self", NULL | |
5414 | }; | |
5415 | ||
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
5417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5418 | { | |
5419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5420 | delete arg1; | |
5421 | ||
5422 | wxPyEndAllowThreads(__tstate); | |
5423 | if (PyErr_Occurred()) SWIG_fail; | |
5424 | } | |
5425 | Py_INCREF(Py_None); resultobj = Py_None; | |
5426 | return resultobj; | |
5427 | fail: | |
5428 | return NULL; | |
5429 | } | |
5430 | ||
5431 | ||
5432 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5433 | PyObject *resultobj; | |
5434 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5435 | wxString result; | |
5436 | PyObject * obj0 = 0 ; | |
5437 | char *kwnames[] = { | |
5438 | (char *) "self", NULL | |
5439 | }; | |
5440 | ||
5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
5442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5443 | { | |
5444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5445 | result = (arg1)->GetTip(); | |
5446 | ||
5447 | wxPyEndAllowThreads(__tstate); | |
5448 | if (PyErr_Occurred()) SWIG_fail; | |
5449 | } | |
5450 | { | |
5451 | #if wxUSE_UNICODE | |
5452 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5453 | #else | |
5454 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5455 | #endif | |
5456 | } | |
5457 | return resultobj; | |
5458 | fail: | |
5459 | return NULL; | |
5460 | } | |
5461 | ||
5462 | ||
5463 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5464 | PyObject *resultobj; | |
5465 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5466 | size_t result; | |
5467 | PyObject * obj0 = 0 ; | |
5468 | char *kwnames[] = { | |
5469 | (char *) "self", NULL | |
5470 | }; | |
5471 | ||
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
5473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5474 | { | |
5475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5476 | result = (size_t)(arg1)->GetCurrentTip(); | |
5477 | ||
5478 | wxPyEndAllowThreads(__tstate); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
5480 | } | |
5481 | resultobj = PyInt_FromLong((long)result); | |
5482 | return resultobj; | |
5483 | fail: | |
5484 | return NULL; | |
5485 | } | |
5486 | ||
5487 | ||
5488 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5489 | PyObject *resultobj; | |
5490 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5491 | wxString *arg2 = 0 ; | |
5492 | wxString result; | |
e811c8ce | 5493 | bool temp2 = False ; |
d14a1e28 RD |
5494 | PyObject * obj0 = 0 ; |
5495 | PyObject * obj1 = 0 ; | |
5496 | char *kwnames[] = { | |
5497 | (char *) "self",(char *) "tip", NULL | |
5498 | }; | |
5499 | ||
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
5501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5502 | { | |
5503 | arg2 = wxString_in_helper(obj1); | |
5504 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5505 | temp2 = True; |
d14a1e28 RD |
5506 | } |
5507 | { | |
5508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5509 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
5510 | ||
5511 | wxPyEndAllowThreads(__tstate); | |
5512 | if (PyErr_Occurred()) SWIG_fail; | |
5513 | } | |
5514 | { | |
5515 | #if wxUSE_UNICODE | |
5516 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5517 | #else | |
5518 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5519 | #endif | |
5520 | } | |
5521 | { | |
5522 | if (temp2) | |
5523 | delete arg2; | |
5524 | } | |
5525 | return resultobj; | |
5526 | fail: | |
5527 | { | |
5528 | if (temp2) | |
5529 | delete arg2; | |
5530 | } | |
5531 | return NULL; | |
5532 | } | |
5533 | ||
5534 | ||
5535 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
5536 | PyObject *obj; | |
5537 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5538 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
5539 | Py_INCREF(obj); | |
5540 | return Py_BuildValue((char *)""); | |
5541 | } | |
5542 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5543 | PyObject *resultobj; | |
5544 | size_t arg1 ; | |
5545 | wxPyTipProvider *result; | |
5546 | PyObject * obj0 = 0 ; | |
5547 | char *kwnames[] = { | |
5548 | (char *) "currentTip", NULL | |
5549 | }; | |
5550 | ||
5551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
5552 | arg1 = (size_t) PyInt_AsLong(obj0); | |
5553 | if (PyErr_Occurred()) SWIG_fail; | |
5554 | { | |
5555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5556 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
5557 | ||
5558 | wxPyEndAllowThreads(__tstate); | |
5559 | if (PyErr_Occurred()) SWIG_fail; | |
5560 | } | |
5561 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1); | |
5562 | return resultobj; | |
5563 | fail: | |
5564 | return NULL; | |
5565 | } | |
5566 | ||
5567 | ||
5568 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5569 | PyObject *resultobj; | |
5570 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
5571 | PyObject *arg2 = (PyObject *) 0 ; | |
5572 | PyObject *arg3 = (PyObject *) 0 ; | |
5573 | PyObject * obj0 = 0 ; | |
5574 | PyObject * obj1 = 0 ; | |
5575 | PyObject * obj2 = 0 ; | |
5576 | char *kwnames[] = { | |
5577 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5578 | }; | |
5579 | ||
5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5582 | arg2 = obj1; | |
5583 | arg3 = obj2; | |
5584 | { | |
5585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5586 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5587 | ||
5588 | wxPyEndAllowThreads(__tstate); | |
5589 | if (PyErr_Occurred()) SWIG_fail; | |
5590 | } | |
5591 | Py_INCREF(Py_None); resultobj = Py_None; | |
5592 | return resultobj; | |
5593 | fail: | |
5594 | return NULL; | |
5595 | } | |
5596 | ||
5597 | ||
5598 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
5599 | PyObject *obj; | |
5600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5601 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
5602 | Py_INCREF(obj); | |
5603 | return Py_BuildValue((char *)""); | |
5604 | } | |
5605 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5606 | PyObject *resultobj; | |
5607 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5608 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
e811c8ce | 5609 | bool arg3 = (bool) True ; |
d14a1e28 RD |
5610 | bool result; |
5611 | PyObject * obj0 = 0 ; | |
5612 | PyObject * obj1 = 0 ; | |
5613 | PyObject * obj2 = 0 ; | |
5614 | char *kwnames[] = { | |
5615 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
5616 | }; | |
5617 | ||
5618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5620 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5621 | if (obj2) { | |
5622 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5623 | if (PyErr_Occurred()) SWIG_fail; | |
5624 | } | |
5625 | { | |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | } | |
5632 | resultobj = PyInt_FromLong((long)result); | |
5633 | return resultobj; | |
5634 | fail: | |
5635 | return NULL; | |
5636 | } | |
5637 | ||
5638 | ||
5639 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5640 | PyObject *resultobj; | |
5641 | wxString *arg1 = 0 ; | |
5642 | size_t arg2 ; | |
5643 | wxTipProvider *result; | |
e811c8ce | 5644 | bool temp1 = False ; |
d14a1e28 RD |
5645 | PyObject * obj0 = 0 ; |
5646 | PyObject * obj1 = 0 ; | |
5647 | char *kwnames[] = { | |
5648 | (char *) "filename",(char *) "currentTip", NULL | |
5649 | }; | |
5650 | ||
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
5652 | { | |
5653 | arg1 = wxString_in_helper(obj0); | |
5654 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5655 | temp1 = True; |
d14a1e28 RD |
5656 | } |
5657 | arg2 = (size_t) PyInt_AsLong(obj1); | |
5658 | if (PyErr_Occurred()) SWIG_fail; | |
5659 | { | |
5660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5661 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
5662 | ||
5663 | wxPyEndAllowThreads(__tstate); | |
5664 | if (PyErr_Occurred()) SWIG_fail; | |
5665 | } | |
5666 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1); | |
5667 | { | |
5668 | if (temp1) | |
5669 | delete arg1; | |
5670 | } | |
5671 | return resultobj; | |
5672 | fail: | |
5673 | { | |
5674 | if (temp1) | |
5675 | delete arg1; | |
5676 | } | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
5681 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5682 | PyObject *resultobj; | |
5683 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
5684 | int arg2 = (int) -1 ; | |
5685 | wxPyTimer *result; | |
5686 | PyObject * obj0 = 0 ; | |
5687 | char *kwnames[] = { | |
5688 | (char *) "owner",(char *) "id", NULL | |
5689 | }; | |
5690 | ||
5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Timer",kwnames,&obj0,&arg2)) goto fail; | |
5692 | if (obj0) { | |
5693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5694 | } | |
5695 | { | |
5696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5697 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
5698 | ||
5699 | wxPyEndAllowThreads(__tstate); | |
5700 | if (PyErr_Occurred()) SWIG_fail; | |
5701 | } | |
5702 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1); | |
5703 | return resultobj; | |
5704 | fail: | |
5705 | return NULL; | |
5706 | } | |
5707 | ||
5708 | ||
5709 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5710 | PyObject *resultobj; | |
5711 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5712 | PyObject * obj0 = 0 ; | |
5713 | char *kwnames[] = { | |
5714 | (char *) "self", NULL | |
5715 | }; | |
5716 | ||
5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
5718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5719 | { | |
5720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5721 | delete arg1; | |
5722 | ||
5723 | wxPyEndAllowThreads(__tstate); | |
5724 | if (PyErr_Occurred()) SWIG_fail; | |
5725 | } | |
5726 | Py_INCREF(Py_None); resultobj = Py_None; | |
5727 | return resultobj; | |
5728 | fail: | |
5729 | return NULL; | |
5730 | } | |
5731 | ||
5732 | ||
7722248d RD |
5733 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
5734 | PyObject *resultobj; | |
5735 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5736 | PyObject *arg2 = (PyObject *) 0 ; | |
5737 | PyObject *arg3 = (PyObject *) 0 ; | |
5738 | PyObject * obj0 = 0 ; | |
5739 | PyObject * obj1 = 0 ; | |
5740 | PyObject * obj2 = 0 ; | |
5741 | char *kwnames[] = { | |
5742 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5743 | }; | |
5744 | ||
5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5747 | arg2 = obj1; | |
5748 | arg3 = obj2; | |
5749 | { | |
5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5751 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5752 | ||
5753 | wxPyEndAllowThreads(__tstate); | |
5754 | if (PyErr_Occurred()) SWIG_fail; | |
5755 | } | |
5756 | Py_INCREF(Py_None); resultobj = Py_None; | |
5757 | return resultobj; | |
5758 | fail: | |
5759 | return NULL; | |
5760 | } | |
5761 | ||
5762 | ||
d14a1e28 RD |
5763 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
5764 | PyObject *resultobj; | |
5765 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5766 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
5767 | int arg3 = (int) -1 ; | |
5768 | PyObject * obj0 = 0 ; | |
5769 | PyObject * obj1 = 0 ; | |
5770 | char *kwnames[] = { | |
5771 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
5772 | }; | |
5773 | ||
5774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Timer_SetOwner",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5776 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5777 | { | |
5778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5779 | (arg1)->SetOwner(arg2,arg3); | |
5780 | ||
5781 | wxPyEndAllowThreads(__tstate); | |
5782 | if (PyErr_Occurred()) SWIG_fail; | |
5783 | } | |
5784 | Py_INCREF(Py_None); resultobj = Py_None; | |
5785 | return resultobj; | |
5786 | fail: | |
5787 | return NULL; | |
5788 | } | |
5789 | ||
5790 | ||
5791 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5792 | PyObject *resultobj; | |
5793 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5794 | int arg2 = (int) -1 ; | |
e811c8ce | 5795 | bool arg3 = (bool) False ; |
d14a1e28 RD |
5796 | bool result; |
5797 | PyObject * obj0 = 0 ; | |
5798 | PyObject * obj2 = 0 ; | |
5799 | char *kwnames[] = { | |
5800 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
5801 | }; | |
5802 | ||
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Timer_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
5804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5805 | if (obj2) { | |
5806 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5807 | if (PyErr_Occurred()) SWIG_fail; | |
5808 | } | |
5809 | { | |
5810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5811 | result = (bool)(arg1)->Start(arg2,arg3); | |
5812 | ||
5813 | wxPyEndAllowThreads(__tstate); | |
5814 | if (PyErr_Occurred()) SWIG_fail; | |
5815 | } | |
5816 | resultobj = PyInt_FromLong((long)result); | |
5817 | return resultobj; | |
5818 | fail: | |
5819 | return NULL; | |
5820 | } | |
5821 | ||
5822 | ||
5823 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5824 | PyObject *resultobj; | |
5825 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5826 | PyObject * obj0 = 0 ; | |
5827 | char *kwnames[] = { | |
5828 | (char *) "self", NULL | |
5829 | }; | |
5830 | ||
5831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
5832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5833 | { | |
5834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5835 | (arg1)->Stop(); | |
5836 | ||
5837 | wxPyEndAllowThreads(__tstate); | |
5838 | if (PyErr_Occurred()) SWIG_fail; | |
5839 | } | |
5840 | Py_INCREF(Py_None); resultobj = Py_None; | |
5841 | return resultobj; | |
5842 | fail: | |
5843 | return NULL; | |
5844 | } | |
5845 | ||
5846 | ||
d14a1e28 RD |
5847 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
5848 | PyObject *resultobj; | |
5849 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5850 | bool result; | |
5851 | PyObject * obj0 = 0 ; | |
5852 | char *kwnames[] = { | |
5853 | (char *) "self", NULL | |
5854 | }; | |
5855 | ||
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
5857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5858 | { | |
5859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5860 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
5861 | ||
5862 | wxPyEndAllowThreads(__tstate); | |
5863 | if (PyErr_Occurred()) SWIG_fail; | |
5864 | } | |
5865 | resultobj = PyInt_FromLong((long)result); | |
5866 | return resultobj; | |
5867 | fail: | |
5868 | return NULL; | |
5869 | } | |
5870 | ||
5871 | ||
5872 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5873 | PyObject *resultobj; | |
5874 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5875 | int result; | |
5876 | PyObject * obj0 = 0 ; | |
5877 | char *kwnames[] = { | |
5878 | (char *) "self", NULL | |
5879 | }; | |
5880 | ||
5881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
5882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5883 | { | |
5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5885 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
5886 | ||
5887 | wxPyEndAllowThreads(__tstate); | |
5888 | if (PyErr_Occurred()) SWIG_fail; | |
5889 | } | |
5890 | resultobj = PyInt_FromLong((long)result); | |
5891 | return resultobj; | |
5892 | fail: | |
5893 | return NULL; | |
5894 | } | |
5895 | ||
5896 | ||
5897 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5898 | PyObject *resultobj; | |
5899 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5900 | bool result; | |
5901 | PyObject * obj0 = 0 ; | |
5902 | char *kwnames[] = { | |
5903 | (char *) "self", NULL | |
5904 | }; | |
5905 | ||
5906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
5907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5908 | { | |
5909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5910 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
5911 | ||
5912 | wxPyEndAllowThreads(__tstate); | |
5913 | if (PyErr_Occurred()) SWIG_fail; | |
5914 | } | |
5915 | resultobj = PyInt_FromLong((long)result); | |
5916 | return resultobj; | |
5917 | fail: | |
5918 | return NULL; | |
5919 | } | |
5920 | ||
5921 | ||
cc6dd355 RD |
5922 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
5923 | PyObject *resultobj; | |
5924 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5925 | int result; | |
5926 | PyObject * obj0 = 0 ; | |
5927 | char *kwnames[] = { | |
5928 | (char *) "self", NULL | |
5929 | }; | |
5930 | ||
5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
5932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5933 | { | |
5934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5935 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
5936 | ||
5937 | wxPyEndAllowThreads(__tstate); | |
5938 | if (PyErr_Occurred()) SWIG_fail; | |
5939 | } | |
5940 | resultobj = PyInt_FromLong((long)result); | |
5941 | return resultobj; | |
5942 | fail: | |
5943 | return NULL; | |
5944 | } | |
5945 | ||
5946 | ||
d14a1e28 RD |
5947 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
5948 | PyObject *obj; | |
5949 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5950 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
5951 | Py_INCREF(obj); | |
5952 | return Py_BuildValue((char *)""); | |
5953 | } | |
5954 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5955 | PyObject *resultobj; | |
5956 | int arg1 = (int) 0 ; | |
5957 | int arg2 = (int) 0 ; | |
5958 | wxTimerEvent *result; | |
5959 | char *kwnames[] = { | |
5960 | (char *) "timerid",(char *) "interval", NULL | |
5961 | }; | |
5962 | ||
5963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TimerEvent",kwnames,&arg1,&arg2)) goto fail; | |
5964 | { | |
5965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5966 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
5967 | ||
5968 | wxPyEndAllowThreads(__tstate); | |
5969 | if (PyErr_Occurred()) SWIG_fail; | |
5970 | } | |
5971 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1); | |
5972 | return resultobj; | |
5973 | fail: | |
5974 | return NULL; | |
5975 | } | |
5976 | ||
5977 | ||
5978 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5979 | PyObject *resultobj; | |
5980 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
5981 | int result; | |
5982 | PyObject * obj0 = 0 ; | |
5983 | char *kwnames[] = { | |
5984 | (char *) "self", NULL | |
5985 | }; | |
5986 | ||
5987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
5988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5989 | { | |
5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5991 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
5992 | ||
5993 | wxPyEndAllowThreads(__tstate); | |
5994 | if (PyErr_Occurred()) SWIG_fail; | |
5995 | } | |
5996 | resultobj = PyInt_FromLong((long)result); | |
5997 | return resultobj; | |
5998 | fail: | |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
6003 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6004 | PyObject *obj; | |
6005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6006 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6007 | Py_INCREF(obj); | |
6008 | return Py_BuildValue((char *)""); | |
6009 | } | |
6010 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6011 | PyObject *resultobj; | |
6012 | wxTimer *arg1 = 0 ; | |
6013 | wxTimerRunner *result; | |
6014 | PyObject * obj0 = 0 ; | |
6015 | ||
6016 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6018 | if (arg1 == NULL) { | |
6019 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6020 | } | |
6021 | { | |
6022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6023 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6024 | ||
6025 | wxPyEndAllowThreads(__tstate); | |
6026 | if (PyErr_Occurred()) SWIG_fail; | |
6027 | } | |
6028 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6029 | return resultobj; | |
6030 | fail: | |
6031 | return NULL; | |
6032 | } | |
6033 | ||
6034 | ||
6035 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6036 | PyObject *resultobj; | |
6037 | wxTimer *arg1 = 0 ; | |
6038 | int arg2 ; | |
e811c8ce | 6039 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6040 | wxTimerRunner *result; |
6041 | PyObject * obj0 = 0 ; | |
6042 | PyObject * obj2 = 0 ; | |
6043 | ||
6044 | if(!PyArg_ParseTuple(args,(char *)"Oi|O:new_TimerRunner",&obj0,&arg2,&obj2)) goto fail; | |
6045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6046 | if (arg1 == NULL) { | |
6047 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6048 | } | |
6049 | if (obj2) { | |
6050 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6051 | if (PyErr_Occurred()) SWIG_fail; | |
6052 | } | |
6053 | { | |
6054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6055 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6056 | ||
6057 | wxPyEndAllowThreads(__tstate); | |
6058 | if (PyErr_Occurred()) SWIG_fail; | |
6059 | } | |
6060 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6061 | return resultobj; | |
6062 | fail: | |
6063 | return NULL; | |
6064 | } | |
6065 | ||
6066 | ||
6067 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6068 | int argc; | |
6069 | PyObject *argv[4]; | |
6070 | int ii; | |
6071 | ||
6072 | argc = PyObject_Length(args); | |
6073 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6074 | argv[ii] = PyTuple_GetItem(args,ii); | |
6075 | } | |
6076 | if (argc == 1) { | |
6077 | int _v; | |
6078 | { | |
6079 | void *ptr; | |
6080 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6081 | _v = 0; | |
6082 | PyErr_Clear(); | |
6083 | } else { | |
6084 | _v = 1; | |
6085 | } | |
6086 | } | |
6087 | if (_v) { | |
6088 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6089 | } | |
6090 | } | |
6091 | if ((argc >= 2) && (argc <= 3)) { | |
6092 | int _v; | |
6093 | { | |
6094 | void *ptr; | |
6095 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6096 | _v = 0; | |
6097 | PyErr_Clear(); | |
6098 | } else { | |
6099 | _v = 1; | |
6100 | } | |
6101 | } | |
6102 | if (_v) { | |
6103 | { | |
6104 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
6105 | } | |
6106 | if (_v) { | |
6107 | if (argc <= 2) { | |
6108 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6109 | } | |
6110 | { | |
6111 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
6112 | } | |
6113 | if (_v) { | |
6114 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6115 | } | |
6116 | } | |
6117 | } | |
6118 | } | |
6119 | ||
6120 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6121 | return NULL; | |
6122 | } | |
6123 | ||
6124 | ||
6125 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6126 | PyObject *resultobj; | |
6127 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6128 | PyObject * obj0 = 0 ; | |
6129 | char *kwnames[] = { | |
6130 | (char *) "self", NULL | |
6131 | }; | |
6132 | ||
6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6135 | { | |
6136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6137 | delete arg1; | |
6138 | ||
6139 | wxPyEndAllowThreads(__tstate); | |
6140 | if (PyErr_Occurred()) SWIG_fail; | |
6141 | } | |
6142 | Py_INCREF(Py_None); resultobj = Py_None; | |
6143 | return resultobj; | |
6144 | fail: | |
6145 | return NULL; | |
6146 | } | |
6147 | ||
6148 | ||
6149 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6150 | PyObject *resultobj; | |
6151 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6152 | int arg2 ; | |
e811c8ce | 6153 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6154 | PyObject * obj0 = 0 ; |
6155 | PyObject * obj2 = 0 ; | |
6156 | char *kwnames[] = { | |
6157 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6158 | }; | |
6159 | ||
6160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:TimerRunner_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6162 | if (obj2) { | |
6163 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6164 | if (PyErr_Occurred()) SWIG_fail; | |
6165 | } | |
6166 | { | |
6167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6168 | (arg1)->Start(arg2,arg3); | |
6169 | ||
6170 | wxPyEndAllowThreads(__tstate); | |
6171 | if (PyErr_Occurred()) SWIG_fail; | |
6172 | } | |
6173 | Py_INCREF(Py_None); resultobj = Py_None; | |
6174 | return resultobj; | |
6175 | fail: | |
6176 | return NULL; | |
6177 | } | |
6178 | ||
6179 | ||
6180 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6181 | PyObject *obj; | |
6182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6183 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6184 | Py_INCREF(obj); | |
6185 | return Py_BuildValue((char *)""); | |
6186 | } | |
6187 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6188 | PyObject *resultobj; | |
6189 | wxLog *result; | |
6190 | char *kwnames[] = { | |
6191 | NULL | |
6192 | }; | |
6193 | ||
6194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6195 | { | |
6196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6197 | result = (wxLog *)new wxLog(); | |
6198 | ||
6199 | wxPyEndAllowThreads(__tstate); | |
6200 | if (PyErr_Occurred()) SWIG_fail; | |
6201 | } | |
6202 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1); | |
6203 | return resultobj; | |
6204 | fail: | |
6205 | return NULL; | |
6206 | } | |
6207 | ||
6208 | ||
6209 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6210 | PyObject *resultobj; | |
6211 | bool result; | |
6212 | char *kwnames[] = { | |
6213 | NULL | |
6214 | }; | |
6215 | ||
6216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6217 | { | |
6218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6219 | result = (bool)wxLog::IsEnabled(); | |
6220 | ||
6221 | wxPyEndAllowThreads(__tstate); | |
6222 | if (PyErr_Occurred()) SWIG_fail; | |
6223 | } | |
6224 | resultobj = PyInt_FromLong((long)result); | |
6225 | return resultobj; | |
6226 | fail: | |
6227 | return NULL; | |
6228 | } | |
6229 | ||
6230 | ||
6231 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6232 | PyObject *resultobj; | |
e811c8ce | 6233 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6234 | bool result; |
6235 | PyObject * obj0 = 0 ; | |
6236 | char *kwnames[] = { | |
6237 | (char *) "doIt", NULL | |
6238 | }; | |
6239 | ||
6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6241 | if (obj0) { | |
6242 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6243 | if (PyErr_Occurred()) SWIG_fail; | |
6244 | } | |
6245 | { | |
6246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6247 | result = (bool)wxLog::EnableLogging(arg1); | |
6248 | ||
6249 | wxPyEndAllowThreads(__tstate); | |
6250 | if (PyErr_Occurred()) SWIG_fail; | |
6251 | } | |
6252 | resultobj = PyInt_FromLong((long)result); | |
6253 | return resultobj; | |
6254 | fail: | |
6255 | return NULL; | |
6256 | } | |
6257 | ||
6258 | ||
6259 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6260 | PyObject *resultobj; | |
6261 | wxLogLevel arg1 ; | |
6262 | wxChar *arg2 = (wxChar *) 0 ; | |
6263 | time_t arg3 ; | |
6264 | PyObject * obj0 = 0 ; | |
6265 | PyObject * obj1 = 0 ; | |
6266 | PyObject * obj2 = 0 ; | |
6267 | char *kwnames[] = { | |
6268 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6269 | }; | |
6270 | ||
6271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6272 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6273 | if (PyErr_Occurred()) SWIG_fail; | |
6274 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6275 | arg3 = (time_t) PyInt_AsLong(obj2); | |
6276 | if (PyErr_Occurred()) SWIG_fail; | |
6277 | { | |
6278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6279 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6280 | ||
6281 | wxPyEndAllowThreads(__tstate); | |
6282 | if (PyErr_Occurred()) SWIG_fail; | |
6283 | } | |
6284 | Py_INCREF(Py_None); resultobj = Py_None; | |
6285 | return resultobj; | |
6286 | fail: | |
6287 | return NULL; | |
6288 | } | |
6289 | ||
6290 | ||
6291 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6292 | PyObject *resultobj; | |
6293 | wxLog *arg1 = (wxLog *) 0 ; | |
6294 | PyObject * obj0 = 0 ; | |
6295 | char *kwnames[] = { | |
6296 | (char *) "self", NULL | |
6297 | }; | |
6298 | ||
6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6301 | { | |
6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6303 | (arg1)->Flush(); | |
6304 | ||
6305 | wxPyEndAllowThreads(__tstate); | |
6306 | if (PyErr_Occurred()) SWIG_fail; | |
6307 | } | |
6308 | Py_INCREF(Py_None); resultobj = Py_None; | |
6309 | return resultobj; | |
6310 | fail: | |
6311 | return NULL; | |
6312 | } | |
6313 | ||
6314 | ||
6315 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6316 | PyObject *resultobj; | |
6317 | char *kwnames[] = { | |
6318 | NULL | |
6319 | }; | |
6320 | ||
6321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6322 | { | |
6323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6324 | wxLog::FlushActive(); | |
6325 | ||
6326 | wxPyEndAllowThreads(__tstate); | |
6327 | if (PyErr_Occurred()) SWIG_fail; | |
6328 | } | |
6329 | Py_INCREF(Py_None); resultobj = Py_None; | |
6330 | return resultobj; | |
6331 | fail: | |
6332 | return NULL; | |
6333 | } | |
6334 | ||
6335 | ||
6336 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6337 | PyObject *resultobj; | |
6338 | wxLog *result; | |
6339 | char *kwnames[] = { | |
6340 | NULL | |
6341 | }; | |
6342 | ||
6343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6344 | { | |
6345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6346 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6347 | ||
6348 | wxPyEndAllowThreads(__tstate); | |
6349 | if (PyErr_Occurred()) SWIG_fail; | |
6350 | } | |
6351 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6352 | return resultobj; | |
6353 | fail: | |
6354 | return NULL; | |
6355 | } | |
6356 | ||
6357 | ||
6358 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6359 | PyObject *resultobj; | |
6360 | wxLog *arg1 = (wxLog *) 0 ; | |
6361 | wxLog *result; | |
6362 | PyObject * obj0 = 0 ; | |
6363 | char *kwnames[] = { | |
6364 | (char *) "pLogger", NULL | |
6365 | }; | |
6366 | ||
6367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
6368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6369 | { | |
6370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6371 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6372 | ||
6373 | wxPyEndAllowThreads(__tstate); | |
6374 | if (PyErr_Occurred()) SWIG_fail; | |
6375 | } | |
6376 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6377 | return resultobj; | |
6378 | fail: | |
6379 | return NULL; | |
6380 | } | |
6381 | ||
6382 | ||
6383 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6384 | PyObject *resultobj; | |
6385 | char *kwnames[] = { | |
6386 | NULL | |
6387 | }; | |
6388 | ||
6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6390 | { | |
6391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6392 | wxLog::Suspend(); | |
6393 | ||
6394 | wxPyEndAllowThreads(__tstate); | |
6395 | if (PyErr_Occurred()) SWIG_fail; | |
6396 | } | |
6397 | Py_INCREF(Py_None); resultobj = Py_None; | |
6398 | return resultobj; | |
6399 | fail: | |
6400 | return NULL; | |
6401 | } | |
6402 | ||
6403 | ||
6404 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6405 | PyObject *resultobj; | |
6406 | char *kwnames[] = { | |
6407 | NULL | |
6408 | }; | |
6409 | ||
6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
6411 | { | |
6412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6413 | wxLog::Resume(); | |
6414 | ||
6415 | wxPyEndAllowThreads(__tstate); | |
6416 | if (PyErr_Occurred()) SWIG_fail; | |
6417 | } | |
6418 | Py_INCREF(Py_None); resultobj = Py_None; | |
6419 | return resultobj; | |
6420 | fail: | |
6421 | return NULL; | |
6422 | } | |
6423 | ||
6424 | ||
6425 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6426 | PyObject *resultobj; | |
e811c8ce | 6427 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6428 | PyObject * obj0 = 0 ; |
6429 | char *kwnames[] = { | |
6430 | (char *) "bVerbose", NULL | |
6431 | }; | |
6432 | ||
6433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
6434 | if (obj0) { | |
6435 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6436 | if (PyErr_Occurred()) SWIG_fail; | |
6437 | } | |
6438 | { | |
6439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6440 | wxLog::SetVerbose(arg1); | |
6441 | ||
6442 | wxPyEndAllowThreads(__tstate); | |
6443 | if (PyErr_Occurred()) SWIG_fail; | |
6444 | } | |
6445 | Py_INCREF(Py_None); resultobj = Py_None; | |
6446 | return resultobj; | |
6447 | fail: | |
6448 | return NULL; | |
6449 | } | |
6450 | ||
6451 | ||
6452 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6453 | PyObject *resultobj; | |
6454 | wxLogLevel arg1 ; | |
6455 | PyObject * obj0 = 0 ; | |
6456 | char *kwnames[] = { | |
6457 | (char *) "logLevel", NULL | |
6458 | }; | |
6459 | ||
6460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
6461 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6462 | if (PyErr_Occurred()) SWIG_fail; | |
6463 | { | |
6464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6465 | wxLog::SetLogLevel(arg1); | |
6466 | ||
6467 | wxPyEndAllowThreads(__tstate); | |
6468 | if (PyErr_Occurred()) SWIG_fail; | |
6469 | } | |
6470 | Py_INCREF(Py_None); resultobj = Py_None; | |
6471 | return resultobj; | |
6472 | fail: | |
6473 | return NULL; | |
6474 | } | |
6475 | ||
6476 | ||
6477 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6478 | PyObject *resultobj; | |
6479 | char *kwnames[] = { | |
6480 | NULL | |
6481 | }; | |
6482 | ||
6483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
6484 | { | |
6485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6486 | wxLog::DontCreateOnDemand(); | |
6487 | ||
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | } | |
6491 | Py_INCREF(Py_None); resultobj = Py_None; | |
6492 | return resultobj; | |
6493 | fail: | |
6494 | return NULL; | |
6495 | } | |
6496 | ||
6497 | ||
6498 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6499 | PyObject *resultobj; | |
6500 | wxTraceMask arg1 ; | |
6501 | PyObject * obj0 = 0 ; | |
6502 | char *kwnames[] = { | |
6503 | (char *) "ulMask", NULL | |
6504 | }; | |
6505 | ||
6506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
6507 | arg1 = (wxTraceMask) PyInt_AsLong(obj0); | |
6508 | if (PyErr_Occurred()) SWIG_fail; | |
6509 | { | |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6511 | wxLog::SetTraceMask(arg1); | |
6512 | ||
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | Py_INCREF(Py_None); resultobj = Py_None; | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
6523 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6524 | PyObject *resultobj; | |
6525 | wxString *arg1 = 0 ; | |
e811c8ce | 6526 | bool temp1 = False ; |
d14a1e28 RD |
6527 | PyObject * obj0 = 0 ; |
6528 | char *kwnames[] = { | |
6529 | (char *) "str", NULL | |
6530 | }; | |
6531 | ||
6532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
6533 | { | |
6534 | arg1 = wxString_in_helper(obj0); | |
6535 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6536 | temp1 = True; |
d14a1e28 RD |
6537 | } |
6538 | { | |
6539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6540 | wxLog::AddTraceMask((wxString const &)*arg1); | |
6541 | ||
6542 | wxPyEndAllowThreads(__tstate); | |
6543 | if (PyErr_Occurred()) SWIG_fail; | |
6544 | } | |
6545 | Py_INCREF(Py_None); resultobj = Py_None; | |
6546 | { | |
6547 | if (temp1) | |
6548 | delete arg1; | |
6549 | } | |
6550 | return resultobj; | |
6551 | fail: | |
6552 | { | |
6553 | if (temp1) | |
6554 | delete arg1; | |
6555 | } | |
6556 | return NULL; | |
6557 | } | |
6558 | ||
6559 | ||
6560 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6561 | PyObject *resultobj; | |
6562 | wxString *arg1 = 0 ; | |
e811c8ce | 6563 | bool temp1 = False ; |
d14a1e28 RD |
6564 | PyObject * obj0 = 0 ; |
6565 | char *kwnames[] = { | |
6566 | (char *) "str", NULL | |
6567 | }; | |
6568 | ||
6569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
6570 | { | |
6571 | arg1 = wxString_in_helper(obj0); | |
6572 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6573 | temp1 = True; |
d14a1e28 RD |
6574 | } |
6575 | { | |
6576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6577 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
6578 | ||
6579 | wxPyEndAllowThreads(__tstate); | |
6580 | if (PyErr_Occurred()) SWIG_fail; | |
6581 | } | |
6582 | Py_INCREF(Py_None); resultobj = Py_None; | |
6583 | { | |
6584 | if (temp1) | |
6585 | delete arg1; | |
6586 | } | |
6587 | return resultobj; | |
6588 | fail: | |
6589 | { | |
6590 | if (temp1) | |
6591 | delete arg1; | |
6592 | } | |
6593 | return NULL; | |
6594 | } | |
6595 | ||
6596 | ||
6597 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6598 | PyObject *resultobj; | |
6599 | char *kwnames[] = { | |
6600 | NULL | |
6601 | }; | |
6602 | ||
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
6604 | { | |
6605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6606 | wxLog::ClearTraceMasks(); | |
6607 | ||
6608 | wxPyEndAllowThreads(__tstate); | |
6609 | if (PyErr_Occurred()) SWIG_fail; | |
6610 | } | |
6611 | Py_INCREF(Py_None); resultobj = Py_None; | |
6612 | return resultobj; | |
6613 | fail: | |
6614 | return NULL; | |
6615 | } | |
6616 | ||
6617 | ||
6618 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6619 | PyObject *resultobj; | |
6620 | wxArrayString *result; | |
6621 | char *kwnames[] = { | |
6622 | NULL | |
6623 | }; | |
6624 | ||
6625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
6626 | { | |
6627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6628 | { | |
6629 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
6630 | result = (wxArrayString *) &_result_ref; | |
6631 | } | |
6632 | ||
6633 | wxPyEndAllowThreads(__tstate); | |
6634 | if (PyErr_Occurred()) SWIG_fail; | |
6635 | } | |
6636 | { | |
6637 | resultobj = wxArrayString2PyList_helper(*result); | |
6638 | } | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
6645 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6646 | PyObject *resultobj; | |
6647 | wxChar *arg1 = (wxChar *) 0 ; | |
6648 | PyObject * obj0 = 0 ; | |
6649 | char *kwnames[] = { | |
6650 | (char *) "ts", NULL | |
6651 | }; | |
6652 | ||
6653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
6654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6655 | { | |
6656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6657 | wxLog::SetTimestamp((wxChar const *)arg1); | |
6658 | ||
6659 | wxPyEndAllowThreads(__tstate); | |
6660 | if (PyErr_Occurred()) SWIG_fail; | |
6661 | } | |
6662 | Py_INCREF(Py_None); resultobj = Py_None; | |
6663 | return resultobj; | |
6664 | fail: | |
6665 | return NULL; | |
6666 | } | |
6667 | ||
6668 | ||
6669 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6670 | PyObject *resultobj; | |
6671 | bool result; | |
6672 | char *kwnames[] = { | |
6673 | NULL | |
6674 | }; | |
6675 | ||
6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
6677 | { | |
6678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6679 | result = (bool)wxLog::GetVerbose(); | |
6680 | ||
6681 | wxPyEndAllowThreads(__tstate); | |
6682 | if (PyErr_Occurred()) SWIG_fail; | |
6683 | } | |
6684 | resultobj = PyInt_FromLong((long)result); | |
6685 | return resultobj; | |
6686 | fail: | |
6687 | return NULL; | |
6688 | } | |
6689 | ||
6690 | ||
6691 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6692 | PyObject *resultobj; | |
6693 | wxTraceMask result; | |
6694 | char *kwnames[] = { | |
6695 | NULL | |
6696 | }; | |
6697 | ||
6698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
6699 | { | |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
6706 | resultobj = PyInt_FromLong((long)result); | |
6707 | return resultobj; | |
6708 | fail: | |
6709 | return NULL; | |
6710 | } | |
6711 | ||
6712 | ||
6713 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6714 | PyObject *resultobj; | |
6715 | wxChar *arg1 = (wxChar *) 0 ; | |
6716 | bool result; | |
6717 | PyObject * obj0 = 0 ; | |
6718 | char *kwnames[] = { | |
6719 | (char *) "mask", NULL | |
6720 | }; | |
6721 | ||
6722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
6723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6724 | { | |
6725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6726 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
6727 | ||
6728 | wxPyEndAllowThreads(__tstate); | |
6729 | if (PyErr_Occurred()) SWIG_fail; | |
6730 | } | |
6731 | resultobj = PyInt_FromLong((long)result); | |
6732 | return resultobj; | |
6733 | fail: | |
6734 | return NULL; | |
6735 | } | |
6736 | ||
6737 | ||
6738 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6739 | PyObject *resultobj; | |
6740 | wxLogLevel result; | |
6741 | char *kwnames[] = { | |
6742 | NULL | |
6743 | }; | |
6744 | ||
6745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
6746 | { | |
6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6748 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
6749 | ||
6750 | wxPyEndAllowThreads(__tstate); | |
6751 | if (PyErr_Occurred()) SWIG_fail; | |
6752 | } | |
6753 | resultobj = PyInt_FromLong((long)result); | |
6754 | return resultobj; | |
6755 | fail: | |
6756 | return NULL; | |
6757 | } | |
6758 | ||
6759 | ||
6760 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6761 | PyObject *resultobj; | |
6762 | wxChar *result; | |
6763 | char *kwnames[] = { | |
6764 | NULL | |
6765 | }; | |
6766 | ||
6767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
6768 | { | |
6769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6770 | result = (wxChar *)wxLog::GetTimestamp(); | |
6771 | ||
6772 | wxPyEndAllowThreads(__tstate); | |
6773 | if (PyErr_Occurred()) SWIG_fail; | |
6774 | } | |
6775 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0); | |
6776 | return resultobj; | |
6777 | fail: | |
6778 | return NULL; | |
6779 | } | |
6780 | ||
6781 | ||
6782 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6783 | PyObject *resultobj; | |
6784 | wxString result; | |
6785 | char *kwnames[] = { | |
6786 | NULL | |
6787 | }; | |
6788 | ||
6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
6790 | { | |
6791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6792 | result = Log_TimeStamp(); | |
6793 | ||
6794 | wxPyEndAllowThreads(__tstate); | |
6795 | if (PyErr_Occurred()) SWIG_fail; | |
6796 | } | |
6797 | { | |
6798 | #if wxUSE_UNICODE | |
6799 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6800 | #else | |
6801 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6802 | #endif | |
6803 | } | |
6804 | return resultobj; | |
6805 | fail: | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj; | |
6812 | wxLog *arg1 = (wxLog *) 0 ; | |
6813 | PyObject * obj0 = 0 ; | |
6814 | char *kwnames[] = { | |
6815 | (char *) "self", NULL | |
6816 | }; | |
6817 | ||
6818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
6819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6820 | { | |
6821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6822 | wxLog_Destroy(arg1); | |
6823 | ||
6824 | wxPyEndAllowThreads(__tstate); | |
6825 | if (PyErr_Occurred()) SWIG_fail; | |
6826 | } | |
6827 | Py_INCREF(Py_None); resultobj = Py_None; | |
6828 | return resultobj; | |
6829 | fail: | |
6830 | return NULL; | |
6831 | } | |
6832 | ||
6833 | ||
6834 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
6835 | PyObject *obj; | |
6836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6837 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
6838 | Py_INCREF(obj); | |
6839 | return Py_BuildValue((char *)""); | |
6840 | } | |
6841 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6842 | PyObject *resultobj; | |
6843 | wxLogStderr *result; | |
6844 | char *kwnames[] = { | |
6845 | NULL | |
6846 | }; | |
6847 | ||
6848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
6849 | { | |
6850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6851 | result = (wxLogStderr *)new wxLogStderr(); | |
6852 | ||
6853 | wxPyEndAllowThreads(__tstate); | |
6854 | if (PyErr_Occurred()) SWIG_fail; | |
6855 | } | |
6856 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1); | |
6857 | return resultobj; | |
6858 | fail: | |
6859 | return NULL; | |
6860 | } | |
6861 | ||
6862 | ||
6863 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
6864 | PyObject *obj; | |
6865 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6866 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
6867 | Py_INCREF(obj); | |
6868 | return Py_BuildValue((char *)""); | |
6869 | } | |
6870 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6871 | PyObject *resultobj; | |
6872 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6873 | wxLogTextCtrl *result; | |
6874 | PyObject * obj0 = 0 ; | |
6875 | char *kwnames[] = { | |
6876 | (char *) "pTextCtrl", NULL | |
6877 | }; | |
6878 | ||
6879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
6880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6881 | { | |
6882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6883 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
6884 | ||
6885 | wxPyEndAllowThreads(__tstate); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | } | |
6888 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1); | |
6889 | return resultobj; | |
6890 | fail: | |
6891 | return NULL; | |
6892 | } | |
6893 | ||
6894 | ||
6895 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
6896 | PyObject *obj; | |
6897 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6898 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
6899 | Py_INCREF(obj); | |
6900 | return Py_BuildValue((char *)""); | |
6901 | } | |
6902 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6903 | PyObject *resultobj; | |
6904 | wxLogGui *result; | |
6905 | char *kwnames[] = { | |
6906 | NULL | |
6907 | }; | |
6908 | ||
6909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
6910 | { | |
6911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6912 | result = (wxLogGui *)new wxLogGui(); | |
6913 | ||
6914 | wxPyEndAllowThreads(__tstate); | |
6915 | if (PyErr_Occurred()) SWIG_fail; | |
6916 | } | |
6917 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1); | |
6918 | return resultobj; | |
6919 | fail: | |
6920 | return NULL; | |
6921 | } | |
6922 | ||
6923 | ||
6924 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
6925 | PyObject *obj; | |
6926 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6927 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
6928 | Py_INCREF(obj); | |
6929 | return Py_BuildValue((char *)""); | |
6930 | } | |
6931 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6932 | PyObject *resultobj; | |
6933 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6934 | wxString *arg2 = 0 ; | |
e811c8ce RD |
6935 | bool arg3 = (bool) True ; |
6936 | bool arg4 = (bool) True ; | |
d14a1e28 | 6937 | wxLogWindow *result; |
e811c8ce | 6938 | bool temp2 = False ; |
d14a1e28 RD |
6939 | PyObject * obj0 = 0 ; |
6940 | PyObject * obj1 = 0 ; | |
6941 | PyObject * obj2 = 0 ; | |
6942 | PyObject * obj3 = 0 ; | |
6943 | char *kwnames[] = { | |
6944 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
6945 | }; | |
6946 | ||
6947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6949 | { | |
6950 | arg2 = wxString_in_helper(obj1); | |
6951 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6952 | temp2 = True; |
d14a1e28 RD |
6953 | } |
6954 | if (obj2) { | |
6955 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6956 | if (PyErr_Occurred()) SWIG_fail; | |
6957 | } | |
6958 | if (obj3) { | |
6959 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6960 | if (PyErr_Occurred()) SWIG_fail; | |
6961 | } | |
6962 | { | |
6963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6964 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
6965 | ||
6966 | wxPyEndAllowThreads(__tstate); | |
6967 | if (PyErr_Occurred()) SWIG_fail; | |
6968 | } | |
6969 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1); | |
6970 | { | |
6971 | if (temp2) | |
6972 | delete arg2; | |
6973 | } | |
6974 | return resultobj; | |
6975 | fail: | |
6976 | { | |
6977 | if (temp2) | |
6978 | delete arg2; | |
6979 | } | |
6980 | return NULL; | |
6981 | } | |
6982 | ||
6983 | ||
6984 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6985 | PyObject *resultobj; | |
6986 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
e811c8ce | 6987 | bool arg2 = (bool) True ; |
d14a1e28 RD |
6988 | PyObject * obj0 = 0 ; |
6989 | PyObject * obj1 = 0 ; | |
6990 | char *kwnames[] = { | |
6991 | (char *) "self",(char *) "bShow", NULL | |
6992 | }; | |
6993 | ||
6994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
6995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6996 | if (obj1) { | |
6997 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
6998 | if (PyErr_Occurred()) SWIG_fail; | |
6999 | } | |
7000 | { | |
7001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7002 | (arg1)->Show(arg2); | |
7003 | ||
7004 | wxPyEndAllowThreads(__tstate); | |
7005 | if (PyErr_Occurred()) SWIG_fail; | |
7006 | } | |
7007 | Py_INCREF(Py_None); resultobj = Py_None; | |
7008 | return resultobj; | |
7009 | fail: | |
7010 | return NULL; | |
7011 | } | |
7012 | ||
7013 | ||
7014 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7015 | PyObject *resultobj; | |
7016 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7017 | wxFrame *result; | |
7018 | PyObject * obj0 = 0 ; | |
7019 | char *kwnames[] = { | |
7020 | (char *) "self", NULL | |
7021 | }; | |
7022 | ||
7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7025 | { | |
7026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7027 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7028 | ||
7029 | wxPyEndAllowThreads(__tstate); | |
7030 | if (PyErr_Occurred()) SWIG_fail; | |
7031 | } | |
7032 | { | |
7033 | resultobj = wxPyMake_wxObject(result); | |
7034 | } | |
7035 | return resultobj; | |
7036 | fail: | |
7037 | return NULL; | |
7038 | } | |
7039 | ||
7040 | ||
7041 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7042 | PyObject *resultobj; | |
7043 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7044 | wxLog *result; | |
7045 | PyObject * obj0 = 0 ; | |
7046 | char *kwnames[] = { | |
7047 | (char *) "self", NULL | |
7048 | }; | |
7049 | ||
7050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7052 | { | |
7053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7054 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7055 | ||
7056 | wxPyEndAllowThreads(__tstate); | |
7057 | if (PyErr_Occurred()) SWIG_fail; | |
7058 | } | |
7059 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7060 | return resultobj; | |
7061 | fail: | |
7062 | return NULL; | |
7063 | } | |
7064 | ||
7065 | ||
7066 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7067 | PyObject *resultobj; | |
7068 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7069 | bool result; | |
7070 | PyObject * obj0 = 0 ; | |
7071 | char *kwnames[] = { | |
7072 | (char *) "self", NULL | |
7073 | }; | |
7074 | ||
7075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7077 | { | |
7078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7079 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7080 | ||
7081 | wxPyEndAllowThreads(__tstate); | |
7082 | if (PyErr_Occurred()) SWIG_fail; | |
7083 | } | |
7084 | resultobj = PyInt_FromLong((long)result); | |
7085 | return resultobj; | |
7086 | fail: | |
7087 | return NULL; | |
7088 | } | |
7089 | ||
7090 | ||
7091 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7092 | PyObject *resultobj; | |
7093 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7094 | bool arg2 ; | |
7095 | PyObject * obj0 = 0 ; | |
7096 | PyObject * obj1 = 0 ; | |
7097 | char *kwnames[] = { | |
7098 | (char *) "self",(char *) "bDoPass", NULL | |
7099 | }; | |
7100 | ||
7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7103 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7104 | if (PyErr_Occurred()) SWIG_fail; | |
7105 | { | |
7106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7107 | (arg1)->PassMessages(arg2); | |
7108 | ||
7109 | wxPyEndAllowThreads(__tstate); | |
7110 | if (PyErr_Occurred()) SWIG_fail; | |
7111 | } | |
7112 | Py_INCREF(Py_None); resultobj = Py_None; | |
7113 | return resultobj; | |
7114 | fail: | |
7115 | return NULL; | |
7116 | } | |
7117 | ||
7118 | ||
7119 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7120 | PyObject *obj; | |
7121 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7122 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7123 | Py_INCREF(obj); | |
7124 | return Py_BuildValue((char *)""); | |
7125 | } | |
7126 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject *resultobj; | |
7128 | wxLog *arg1 = (wxLog *) 0 ; | |
7129 | wxLogChain *result; | |
7130 | PyObject * obj0 = 0 ; | |
7131 | char *kwnames[] = { | |
7132 | (char *) "logger", NULL | |
7133 | }; | |
7134 | ||
7135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7137 | { | |
7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7139 | result = (wxLogChain *)new wxLogChain(arg1); | |
7140 | ||
7141 | wxPyEndAllowThreads(__tstate); | |
7142 | if (PyErr_Occurred()) SWIG_fail; | |
7143 | } | |
7144 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1); | |
7145 | return resultobj; | |
7146 | fail: | |
7147 | return NULL; | |
7148 | } | |
7149 | ||
7150 | ||
7151 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7152 | PyObject *resultobj; | |
7153 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7154 | wxLog *arg2 = (wxLog *) 0 ; | |
7155 | PyObject * obj0 = 0 ; | |
7156 | PyObject * obj1 = 0 ; | |
7157 | char *kwnames[] = { | |
7158 | (char *) "self",(char *) "logger", NULL | |
7159 | }; | |
7160 | ||
7161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7163 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7164 | { | |
7165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7166 | (arg1)->SetLog(arg2); | |
7167 | ||
7168 | wxPyEndAllowThreads(__tstate); | |
7169 | if (PyErr_Occurred()) SWIG_fail; | |
7170 | } | |
7171 | Py_INCREF(Py_None); resultobj = Py_None; | |
7172 | return resultobj; | |
7173 | fail: | |
7174 | return NULL; | |
7175 | } | |
7176 | ||
7177 | ||
7178 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7179 | PyObject *resultobj; | |
7180 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7181 | bool arg2 ; | |
7182 | PyObject * obj0 = 0 ; | |
7183 | PyObject * obj1 = 0 ; | |
7184 | char *kwnames[] = { | |
7185 | (char *) "self",(char *) "bDoPass", NULL | |
7186 | }; | |
7187 | ||
7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7190 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7191 | if (PyErr_Occurred()) SWIG_fail; | |
7192 | { | |
7193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7194 | (arg1)->PassMessages(arg2); | |
7195 | ||
7196 | wxPyEndAllowThreads(__tstate); | |
7197 | if (PyErr_Occurred()) SWIG_fail; | |
7198 | } | |
7199 | Py_INCREF(Py_None); resultobj = Py_None; | |
7200 | return resultobj; | |
7201 | fail: | |
7202 | return NULL; | |
7203 | } | |
7204 | ||
7205 | ||
7206 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7207 | PyObject *resultobj; | |
7208 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7209 | bool result; | |
7210 | PyObject * obj0 = 0 ; | |
7211 | char *kwnames[] = { | |
7212 | (char *) "self", NULL | |
7213 | }; | |
7214 | ||
7215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7217 | { | |
7218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7219 | result = (bool)(arg1)->IsPassingMessages(); | |
7220 | ||
7221 | wxPyEndAllowThreads(__tstate); | |
7222 | if (PyErr_Occurred()) SWIG_fail; | |
7223 | } | |
7224 | resultobj = PyInt_FromLong((long)result); | |
7225 | return resultobj; | |
7226 | fail: | |
7227 | return NULL; | |
7228 | } | |
7229 | ||
7230 | ||
7231 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7232 | PyObject *resultobj; | |
7233 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7234 | wxLog *result; | |
7235 | PyObject * obj0 = 0 ; | |
7236 | char *kwnames[] = { | |
7237 | (char *) "self", NULL | |
7238 | }; | |
7239 | ||
7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7242 | { | |
7243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7244 | result = (wxLog *)(arg1)->GetOldLog(); | |
7245 | ||
7246 | wxPyEndAllowThreads(__tstate); | |
7247 | if (PyErr_Occurred()) SWIG_fail; | |
7248 | } | |
7249 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7250 | return resultobj; | |
7251 | fail: | |
7252 | return NULL; | |
7253 | } | |
7254 | ||
7255 | ||
7256 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7257 | PyObject *obj; | |
7258 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7259 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7260 | Py_INCREF(obj); | |
7261 | return Py_BuildValue((char *)""); | |
7262 | } | |
7263 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7264 | PyObject *resultobj; | |
7265 | unsigned long result; | |
7266 | char *kwnames[] = { | |
7267 | NULL | |
7268 | }; | |
7269 | ||
7270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7271 | { | |
7272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7273 | result = (unsigned long)wxSysErrorCode(); | |
7274 | ||
7275 | wxPyEndAllowThreads(__tstate); | |
7276 | if (PyErr_Occurred()) SWIG_fail; | |
7277 | } | |
7278 | resultobj = PyInt_FromLong((long)result); | |
7279 | return resultobj; | |
7280 | fail: | |
7281 | return NULL; | |
7282 | } | |
7283 | ||
7284 | ||
7285 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7286 | PyObject *resultobj; | |
7287 | unsigned long arg1 = (unsigned long) 0 ; | |
7288 | wxString result; | |
7289 | PyObject * obj0 = 0 ; | |
7290 | char *kwnames[] = { | |
7291 | (char *) "nErrCode", NULL | |
7292 | }; | |
7293 | ||
7294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7295 | if (obj0) { | |
7296 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7297 | if (PyErr_Occurred()) SWIG_fail; | |
7298 | } | |
7299 | { | |
7300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7301 | result = wxSysErrorMsg(arg1); | |
7302 | ||
7303 | wxPyEndAllowThreads(__tstate); | |
7304 | if (PyErr_Occurred()) SWIG_fail; | |
7305 | } | |
7306 | { | |
7307 | #if wxUSE_UNICODE | |
7308 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7309 | #else | |
7310 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7311 | #endif | |
7312 | } | |
7313 | return resultobj; | |
7314 | fail: | |
7315 | return NULL; | |
7316 | } | |
7317 | ||
7318 | ||
7319 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7320 | PyObject *resultobj; | |
7321 | wxString *arg1 = 0 ; | |
e811c8ce | 7322 | bool temp1 = False ; |
d14a1e28 RD |
7323 | PyObject * obj0 = 0 ; |
7324 | char *kwnames[] = { | |
7325 | (char *) "msg", NULL | |
7326 | }; | |
7327 | ||
7328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7329 | { | |
7330 | arg1 = wxString_in_helper(obj0); | |
7331 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7332 | temp1 = True; |
d14a1e28 RD |
7333 | } |
7334 | { | |
7335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7336 | wxLogFatalError((wxString const &)*arg1); | |
7337 | ||
7338 | wxPyEndAllowThreads(__tstate); | |
7339 | if (PyErr_Occurred()) SWIG_fail; | |
7340 | } | |
7341 | Py_INCREF(Py_None); resultobj = Py_None; | |
7342 | { | |
7343 | if (temp1) | |
7344 | delete arg1; | |
7345 | } | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | { | |
7349 | if (temp1) | |
7350 | delete arg1; | |
7351 | } | |
7352 | return NULL; | |
7353 | } | |
7354 | ||
7355 | ||
7356 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7357 | PyObject *resultobj; | |
7358 | wxString *arg1 = 0 ; | |
e811c8ce | 7359 | bool temp1 = False ; |
d14a1e28 RD |
7360 | PyObject * obj0 = 0 ; |
7361 | char *kwnames[] = { | |
7362 | (char *) "msg", NULL | |
7363 | }; | |
7364 | ||
7365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7366 | { | |
7367 | arg1 = wxString_in_helper(obj0); | |
7368 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7369 | temp1 = True; |
d14a1e28 RD |
7370 | } |
7371 | { | |
7372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7373 | wxLogError((wxString const &)*arg1); | |
7374 | ||
7375 | wxPyEndAllowThreads(__tstate); | |
7376 | if (PyErr_Occurred()) SWIG_fail; | |
7377 | } | |
7378 | Py_INCREF(Py_None); resultobj = Py_None; | |
7379 | { | |
7380 | if (temp1) | |
7381 | delete arg1; | |
7382 | } | |
7383 | return resultobj; | |
7384 | fail: | |
7385 | { | |
7386 | if (temp1) | |
7387 | delete arg1; | |
7388 | } | |
7389 | return NULL; | |
7390 | } | |
7391 | ||
7392 | ||
7393 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7394 | PyObject *resultobj; | |
7395 | wxString *arg1 = 0 ; | |
e811c8ce | 7396 | bool temp1 = False ; |
d14a1e28 RD |
7397 | PyObject * obj0 = 0 ; |
7398 | char *kwnames[] = { | |
7399 | (char *) "msg", NULL | |
7400 | }; | |
7401 | ||
7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
7403 | { | |
7404 | arg1 = wxString_in_helper(obj0); | |
7405 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7406 | temp1 = True; |
d14a1e28 RD |
7407 | } |
7408 | { | |
7409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7410 | wxLogWarning((wxString const &)*arg1); | |
7411 | ||
7412 | wxPyEndAllowThreads(__tstate); | |
7413 | if (PyErr_Occurred()) SWIG_fail; | |
7414 | } | |
7415 | Py_INCREF(Py_None); resultobj = Py_None; | |
7416 | { | |
7417 | if (temp1) | |
7418 | delete arg1; | |
7419 | } | |
7420 | return resultobj; | |
7421 | fail: | |
7422 | { | |
7423 | if (temp1) | |
7424 | delete arg1; | |
7425 | } | |
7426 | return NULL; | |
7427 | } | |
7428 | ||
7429 | ||
7430 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7431 | PyObject *resultobj; | |
7432 | wxString *arg1 = 0 ; | |
e811c8ce | 7433 | bool temp1 = False ; |
d14a1e28 RD |
7434 | PyObject * obj0 = 0 ; |
7435 | char *kwnames[] = { | |
7436 | (char *) "msg", NULL | |
7437 | }; | |
7438 | ||
7439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
7440 | { | |
7441 | arg1 = wxString_in_helper(obj0); | |
7442 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7443 | temp1 = True; |
d14a1e28 RD |
7444 | } |
7445 | { | |
7446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7447 | wxLogMessage((wxString const &)*arg1); | |
7448 | ||
7449 | wxPyEndAllowThreads(__tstate); | |
7450 | if (PyErr_Occurred()) SWIG_fail; | |
7451 | } | |
7452 | Py_INCREF(Py_None); resultobj = Py_None; | |
7453 | { | |
7454 | if (temp1) | |
7455 | delete arg1; | |
7456 | } | |
7457 | return resultobj; | |
7458 | fail: | |
7459 | { | |
7460 | if (temp1) | |
7461 | delete arg1; | |
7462 | } | |
7463 | return NULL; | |
7464 | } | |
7465 | ||
7466 | ||
7467 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7468 | PyObject *resultobj; | |
7469 | wxString *arg1 = 0 ; | |
e811c8ce | 7470 | bool temp1 = False ; |
d14a1e28 RD |
7471 | PyObject * obj0 = 0 ; |
7472 | char *kwnames[] = { | |
7473 | (char *) "msg", NULL | |
7474 | }; | |
7475 | ||
7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
7477 | { | |
7478 | arg1 = wxString_in_helper(obj0); | |
7479 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7480 | temp1 = True; |
d14a1e28 RD |
7481 | } |
7482 | { | |
7483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7484 | wxLogInfo((wxString const &)*arg1); | |
7485 | ||
7486 | wxPyEndAllowThreads(__tstate); | |
7487 | if (PyErr_Occurred()) SWIG_fail; | |
7488 | } | |
7489 | Py_INCREF(Py_None); resultobj = Py_None; | |
7490 | { | |
7491 | if (temp1) | |
7492 | delete arg1; | |
7493 | } | |
7494 | return resultobj; | |
7495 | fail: | |
7496 | { | |
7497 | if (temp1) | |
7498 | delete arg1; | |
7499 | } | |
7500 | return NULL; | |
7501 | } | |
7502 | ||
7503 | ||
7504 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7505 | PyObject *resultobj; | |
7506 | wxString *arg1 = 0 ; | |
e811c8ce | 7507 | bool temp1 = False ; |
d14a1e28 RD |
7508 | PyObject * obj0 = 0 ; |
7509 | char *kwnames[] = { | |
7510 | (char *) "msg", NULL | |
7511 | }; | |
7512 | ||
7513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
7514 | { | |
7515 | arg1 = wxString_in_helper(obj0); | |
7516 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7517 | temp1 = True; |
d14a1e28 RD |
7518 | } |
7519 | { | |
7520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7521 | wxLogDebug((wxString const &)*arg1); | |
7522 | ||
7523 | wxPyEndAllowThreads(__tstate); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | } | |
7526 | Py_INCREF(Py_None); resultobj = Py_None; | |
7527 | { | |
7528 | if (temp1) | |
7529 | delete arg1; | |
7530 | } | |
7531 | return resultobj; | |
7532 | fail: | |
7533 | { | |
7534 | if (temp1) | |
7535 | delete arg1; | |
7536 | } | |
7537 | return NULL; | |
7538 | } | |
7539 | ||
7540 | ||
7541 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7542 | PyObject *resultobj; | |
7543 | wxString *arg1 = 0 ; | |
e811c8ce | 7544 | bool temp1 = False ; |
d14a1e28 RD |
7545 | PyObject * obj0 = 0 ; |
7546 | char *kwnames[] = { | |
7547 | (char *) "msg", NULL | |
7548 | }; | |
7549 | ||
7550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
7551 | { | |
7552 | arg1 = wxString_in_helper(obj0); | |
7553 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7554 | temp1 = True; |
d14a1e28 RD |
7555 | } |
7556 | { | |
7557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7558 | wxLogVerbose((wxString const &)*arg1); | |
7559 | ||
7560 | wxPyEndAllowThreads(__tstate); | |
7561 | if (PyErr_Occurred()) SWIG_fail; | |
7562 | } | |
7563 | Py_INCREF(Py_None); resultobj = Py_None; | |
7564 | { | |
7565 | if (temp1) | |
7566 | delete arg1; | |
7567 | } | |
7568 | return resultobj; | |
7569 | fail: | |
7570 | { | |
7571 | if (temp1) | |
7572 | delete arg1; | |
7573 | } | |
7574 | return NULL; | |
7575 | } | |
7576 | ||
7577 | ||
7578 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7579 | PyObject *resultobj; | |
7580 | wxString *arg1 = 0 ; | |
e811c8ce | 7581 | bool temp1 = False ; |
d14a1e28 RD |
7582 | PyObject * obj0 = 0 ; |
7583 | char *kwnames[] = { | |
7584 | (char *) "msg", NULL | |
7585 | }; | |
7586 | ||
7587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
7588 | { | |
7589 | arg1 = wxString_in_helper(obj0); | |
7590 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7591 | temp1 = True; |
d14a1e28 RD |
7592 | } |
7593 | { | |
7594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7595 | wxLogStatus((wxString const &)*arg1); | |
7596 | ||
7597 | wxPyEndAllowThreads(__tstate); | |
7598 | if (PyErr_Occurred()) SWIG_fail; | |
7599 | } | |
7600 | Py_INCREF(Py_None); resultobj = Py_None; | |
7601 | { | |
7602 | if (temp1) | |
7603 | delete arg1; | |
7604 | } | |
7605 | return resultobj; | |
7606 | fail: | |
7607 | { | |
7608 | if (temp1) | |
7609 | delete arg1; | |
7610 | } | |
7611 | return NULL; | |
7612 | } | |
7613 | ||
7614 | ||
7615 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7616 | PyObject *resultobj; | |
7617 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7618 | wxString *arg2 = 0 ; | |
e811c8ce | 7619 | bool temp2 = False ; |
d14a1e28 RD |
7620 | PyObject * obj0 = 0 ; |
7621 | PyObject * obj1 = 0 ; | |
7622 | char *kwnames[] = { | |
7623 | (char *) "pFrame",(char *) "msg", NULL | |
7624 | }; | |
7625 | ||
7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
7627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7628 | { | |
7629 | arg2 = wxString_in_helper(obj1); | |
7630 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7631 | temp2 = True; |
d14a1e28 RD |
7632 | } |
7633 | { | |
7634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7635 | wxLogStatus(arg1,(wxString const &)*arg2); | |
7636 | ||
7637 | wxPyEndAllowThreads(__tstate); | |
7638 | if (PyErr_Occurred()) SWIG_fail; | |
7639 | } | |
7640 | Py_INCREF(Py_None); resultobj = Py_None; | |
7641 | { | |
7642 | if (temp2) | |
7643 | delete arg2; | |
7644 | } | |
7645 | return resultobj; | |
7646 | fail: | |
7647 | { | |
7648 | if (temp2) | |
7649 | delete arg2; | |
7650 | } | |
7651 | return NULL; | |
7652 | } | |
7653 | ||
7654 | ||
7655 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7656 | PyObject *resultobj; | |
7657 | wxString *arg1 = 0 ; | |
e811c8ce | 7658 | bool temp1 = False ; |
d14a1e28 RD |
7659 | PyObject * obj0 = 0 ; |
7660 | char *kwnames[] = { | |
7661 | (char *) "msg", NULL | |
7662 | }; | |
7663 | ||
7664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
7665 | { | |
7666 | arg1 = wxString_in_helper(obj0); | |
7667 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7668 | temp1 = True; |
d14a1e28 RD |
7669 | } |
7670 | { | |
7671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7672 | wxLogSysError((wxString const &)*arg1); | |
7673 | ||
7674 | wxPyEndAllowThreads(__tstate); | |
7675 | if (PyErr_Occurred()) SWIG_fail; | |
7676 | } | |
7677 | Py_INCREF(Py_None); resultobj = Py_None; | |
7678 | { | |
7679 | if (temp1) | |
7680 | delete arg1; | |
7681 | } | |
7682 | return resultobj; | |
7683 | fail: | |
7684 | { | |
7685 | if (temp1) | |
7686 | delete arg1; | |
7687 | } | |
7688 | return NULL; | |
7689 | } | |
7690 | ||
7691 | ||
cc6dd355 | 7692 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 7693 | PyObject *resultobj; |
cc6dd355 RD |
7694 | unsigned long arg1 ; |
7695 | wxString *arg2 = 0 ; | |
7696 | bool temp2 = False ; | |
d14a1e28 | 7697 | PyObject * obj0 = 0 ; |
cc6dd355 | 7698 | PyObject * obj1 = 0 ; |
d14a1e28 | 7699 | |
cc6dd355 RD |
7700 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
7701 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7702 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7703 | { |
cc6dd355 RD |
7704 | arg2 = wxString_in_helper(obj1); |
7705 | if (arg2 == NULL) SWIG_fail; | |
7706 | temp2 = True; | |
d14a1e28 RD |
7707 | } |
7708 | { | |
7709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 | 7710 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
7711 | |
7712 | wxPyEndAllowThreads(__tstate); | |
7713 | if (PyErr_Occurred()) SWIG_fail; | |
7714 | } | |
7715 | Py_INCREF(Py_None); resultobj = Py_None; | |
7716 | { | |
cc6dd355 RD |
7717 | if (temp2) |
7718 | delete arg2; | |
d14a1e28 RD |
7719 | } |
7720 | return resultobj; | |
7721 | fail: | |
7722 | { | |
cc6dd355 RD |
7723 | if (temp2) |
7724 | delete arg2; | |
d14a1e28 RD |
7725 | } |
7726 | return NULL; | |
7727 | } | |
7728 | ||
7729 | ||
cc6dd355 | 7730 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
7731 | PyObject *resultobj; |
7732 | wxString *arg1 = 0 ; | |
7733 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7734 | bool temp1 = False ; |
7735 | bool temp2 = False ; | |
d14a1e28 RD |
7736 | PyObject * obj0 = 0 ; |
7737 | PyObject * obj1 = 0 ; | |
d14a1e28 | 7738 | |
cc6dd355 | 7739 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
7740 | { |
7741 | arg1 = wxString_in_helper(obj0); | |
7742 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7743 | temp1 = True; |
d14a1e28 RD |
7744 | } |
7745 | { | |
7746 | arg2 = wxString_in_helper(obj1); | |
7747 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7748 | temp2 = True; |
d14a1e28 RD |
7749 | } |
7750 | { | |
7751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7752 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
7753 | ||
7754 | wxPyEndAllowThreads(__tstate); | |
7755 | if (PyErr_Occurred()) SWIG_fail; | |
7756 | } | |
7757 | Py_INCREF(Py_None); resultobj = Py_None; | |
7758 | { | |
7759 | if (temp1) | |
7760 | delete arg1; | |
7761 | } | |
7762 | { | |
7763 | if (temp2) | |
7764 | delete arg2; | |
7765 | } | |
7766 | return resultobj; | |
7767 | fail: | |
7768 | { | |
7769 | if (temp1) | |
7770 | delete arg1; | |
7771 | } | |
7772 | { | |
7773 | if (temp2) | |
7774 | delete arg2; | |
7775 | } | |
7776 | return NULL; | |
7777 | } | |
7778 | ||
7779 | ||
cc6dd355 RD |
7780 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
7781 | int argc; | |
7782 | PyObject *argv[3]; | |
7783 | int ii; | |
7784 | ||
7785 | argc = PyObject_Length(args); | |
7786 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
7787 | argv[ii] = PyTuple_GetItem(args,ii); | |
7788 | } | |
7789 | if (argc == 2) { | |
7790 | int _v; | |
7791 | { | |
7792 | void *ptr; | |
7793 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
7794 | _v = 0; | |
7795 | PyErr_Clear(); | |
7796 | } else { | |
7797 | _v = 1; | |
7798 | } | |
7799 | } | |
7800 | if (_v) { | |
7801 | { | |
7802 | void *ptr; | |
7803 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
7804 | _v = 0; | |
7805 | PyErr_Clear(); | |
7806 | } else { | |
7807 | _v = 1; | |
7808 | } | |
7809 | } | |
7810 | if (_v) { | |
7811 | return _wrap_LogTrace__SWIG_1(self,args); | |
7812 | } | |
7813 | } | |
7814 | } | |
7815 | if (argc == 2) { | |
7816 | int _v; | |
7817 | { | |
7818 | _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0; | |
7819 | } | |
7820 | if (_v) { | |
7821 | { | |
7822 | void *ptr; | |
7823 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
7824 | _v = 0; | |
7825 | PyErr_Clear(); | |
7826 | } else { | |
7827 | _v = 1; | |
7828 | } | |
7829 | } | |
7830 | if (_v) { | |
7831 | return _wrap_LogTrace__SWIG_0(self,args); | |
7832 | } | |
7833 | } | |
7834 | } | |
7835 | ||
7836 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
7837 | return NULL; | |
7838 | } | |
7839 | ||
7840 | ||
d14a1e28 RD |
7841 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
7842 | PyObject *resultobj; | |
7843 | unsigned long arg1 ; | |
7844 | wxString *arg2 = 0 ; | |
e811c8ce | 7845 | bool temp2 = False ; |
d14a1e28 RD |
7846 | PyObject * obj0 = 0 ; |
7847 | PyObject * obj1 = 0 ; | |
7848 | char *kwnames[] = { | |
7849 | (char *) "level",(char *) "msg", NULL | |
7850 | }; | |
7851 | ||
7852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
7853 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7854 | if (PyErr_Occurred()) SWIG_fail; | |
7855 | { | |
7856 | arg2 = wxString_in_helper(obj1); | |
7857 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7858 | temp2 = True; |
d14a1e28 RD |
7859 | } |
7860 | { | |
7861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7862 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
7863 | ||
7864 | wxPyEndAllowThreads(__tstate); | |
7865 | if (PyErr_Occurred()) SWIG_fail; | |
7866 | } | |
7867 | Py_INCREF(Py_None); resultobj = Py_None; | |
7868 | { | |
7869 | if (temp2) | |
7870 | delete arg2; | |
7871 | } | |
7872 | return resultobj; | |
7873 | fail: | |
7874 | { | |
7875 | if (temp2) | |
7876 | delete arg2; | |
7877 | } | |
7878 | return NULL; | |
7879 | } | |
7880 | ||
7881 | ||
7882 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7883 | PyObject *resultobj; | |
7884 | wxString *arg1 = 0 ; | |
7885 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7886 | bool temp1 = False ; |
7887 | bool temp2 = False ; | |
d14a1e28 RD |
7888 | PyObject * obj0 = 0 ; |
7889 | PyObject * obj1 = 0 ; | |
7890 | char *kwnames[] = { | |
7891 | (char *) "title",(char *) "text", NULL | |
7892 | }; | |
7893 | ||
7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
7895 | { | |
7896 | arg1 = wxString_in_helper(obj0); | |
7897 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7898 | temp1 = True; |
d14a1e28 RD |
7899 | } |
7900 | { | |
7901 | arg2 = wxString_in_helper(obj1); | |
7902 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7903 | temp2 = True; |
d14a1e28 RD |
7904 | } |
7905 | { | |
7906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7907 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
7908 | ||
7909 | wxPyEndAllowThreads(__tstate); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | } | |
7912 | Py_INCREF(Py_None); resultobj = Py_None; | |
7913 | { | |
7914 | if (temp1) | |
7915 | delete arg1; | |
7916 | } | |
7917 | { | |
7918 | if (temp2) | |
7919 | delete arg2; | |
7920 | } | |
7921 | return resultobj; | |
7922 | fail: | |
7923 | { | |
7924 | if (temp1) | |
7925 | delete arg1; | |
7926 | } | |
7927 | { | |
7928 | if (temp2) | |
7929 | delete arg2; | |
7930 | } | |
7931 | return NULL; | |
7932 | } | |
7933 | ||
7934 | ||
7935 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7936 | PyObject *resultobj; | |
7937 | wxLogNull *result; | |
7938 | char *kwnames[] = { | |
7939 | NULL | |
7940 | }; | |
7941 | ||
7942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
7943 | { | |
7944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7945 | result = (wxLogNull *)new wxLogNull(); | |
7946 | ||
7947 | wxPyEndAllowThreads(__tstate); | |
7948 | if (PyErr_Occurred()) SWIG_fail; | |
7949 | } | |
7950 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1); | |
7951 | return resultobj; | |
7952 | fail: | |
7953 | return NULL; | |
7954 | } | |
7955 | ||
7956 | ||
7957 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7958 | PyObject *resultobj; | |
7959 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
7960 | PyObject * obj0 = 0 ; | |
7961 | char *kwnames[] = { | |
7962 | (char *) "self", NULL | |
7963 | }; | |
7964 | ||
7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
7966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | delete arg1; | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) SWIG_fail; | |
7973 | } | |
7974 | Py_INCREF(Py_None); resultobj = Py_None; | |
7975 | return resultobj; | |
7976 | fail: | |
7977 | return NULL; | |
7978 | } | |
7979 | ||
7980 | ||
7981 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
7982 | PyObject *obj; | |
7983 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7984 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
7985 | Py_INCREF(obj); | |
7986 | return Py_BuildValue((char *)""); | |
7987 | } | |
7988 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7989 | PyObject *resultobj; | |
7990 | wxPyLog *result; | |
7991 | char *kwnames[] = { | |
7992 | NULL | |
7993 | }; | |
7994 | ||
7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
7996 | { | |
7997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7998 | result = (wxPyLog *)new wxPyLog(); | |
7999 | ||
8000 | wxPyEndAllowThreads(__tstate); | |
8001 | if (PyErr_Occurred()) SWIG_fail; | |
8002 | } | |
8003 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1); | |
8004 | return resultobj; | |
8005 | fail: | |
8006 | return NULL; | |
8007 | } | |
8008 | ||
8009 | ||
8010 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8011 | PyObject *resultobj; | |
8012 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8013 | PyObject *arg2 = (PyObject *) 0 ; | |
8014 | PyObject *arg3 = (PyObject *) 0 ; | |
8015 | PyObject * obj0 = 0 ; | |
8016 | PyObject * obj1 = 0 ; | |
8017 | PyObject * obj2 = 0 ; | |
8018 | char *kwnames[] = { | |
8019 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8020 | }; | |
8021 | ||
8022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8024 | arg2 = obj1; | |
8025 | arg3 = obj2; | |
8026 | { | |
8027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8028 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8029 | ||
8030 | wxPyEndAllowThreads(__tstate); | |
8031 | if (PyErr_Occurred()) SWIG_fail; | |
8032 | } | |
8033 | Py_INCREF(Py_None); resultobj = Py_None; | |
8034 | return resultobj; | |
8035 | fail: | |
8036 | return NULL; | |
8037 | } | |
8038 | ||
8039 | ||
8040 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8041 | PyObject *obj; | |
8042 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8043 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8044 | Py_INCREF(obj); | |
8045 | return Py_BuildValue((char *)""); | |
8046 | } | |
8047 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8048 | PyObject *resultobj; | |
8049 | int arg1 ; | |
8050 | int arg2 = (int) wxSIGTERM ; | |
8051 | int result; | |
8052 | char *kwnames[] = { | |
8053 | (char *) "pid",(char *) "sig", NULL | |
8054 | }; | |
8055 | ||
8056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:Process_Kill",kwnames,&arg1,&arg2)) goto fail; | |
8057 | { | |
8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8059 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8060 | ||
8061 | wxPyEndAllowThreads(__tstate); | |
8062 | if (PyErr_Occurred()) SWIG_fail; | |
8063 | } | |
8064 | resultobj = PyInt_FromLong((long)result); | |
8065 | return resultobj; | |
8066 | fail: | |
8067 | return NULL; | |
8068 | } | |
8069 | ||
8070 | ||
8071 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8072 | PyObject *resultobj; | |
8073 | int arg1 ; | |
8074 | bool result; | |
8075 | char *kwnames[] = { | |
8076 | (char *) "pid", NULL | |
8077 | }; | |
8078 | ||
8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Process_Exists",kwnames,&arg1)) goto fail; | |
8080 | { | |
8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8082 | result = (bool)wxPyProcess::Exists(arg1); | |
8083 | ||
8084 | wxPyEndAllowThreads(__tstate); | |
8085 | if (PyErr_Occurred()) SWIG_fail; | |
8086 | } | |
8087 | resultobj = PyInt_FromLong((long)result); | |
8088 | return resultobj; | |
8089 | fail: | |
8090 | return NULL; | |
8091 | } | |
8092 | ||
8093 | ||
8094 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8095 | PyObject *resultobj; | |
8096 | wxString *arg1 = 0 ; | |
8097 | int arg2 = (int) wxEXEC_ASYNC ; | |
8098 | wxPyProcess *result; | |
e811c8ce | 8099 | bool temp1 = False ; |
d14a1e28 RD |
8100 | PyObject * obj0 = 0 ; |
8101 | char *kwnames[] = { | |
8102 | (char *) "cmd",(char *) "flags", NULL | |
8103 | }; | |
8104 | ||
8105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Process_Open",kwnames,&obj0,&arg2)) goto fail; | |
8106 | { | |
8107 | arg1 = wxString_in_helper(obj0); | |
8108 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8109 | temp1 = True; |
d14a1e28 RD |
8110 | } |
8111 | { | |
8112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8113 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8114 | ||
8115 | wxPyEndAllowThreads(__tstate); | |
8116 | if (PyErr_Occurred()) SWIG_fail; | |
8117 | } | |
8118 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0); | |
8119 | { | |
8120 | if (temp1) | |
8121 | delete arg1; | |
8122 | } | |
8123 | return resultobj; | |
8124 | fail: | |
8125 | { | |
8126 | if (temp1) | |
8127 | delete arg1; | |
8128 | } | |
8129 | return NULL; | |
8130 | } | |
8131 | ||
8132 | ||
8133 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8134 | PyObject *resultobj; | |
8135 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8136 | int arg2 = (int) -1 ; | |
8137 | wxPyProcess *result; | |
8138 | PyObject * obj0 = 0 ; | |
8139 | char *kwnames[] = { | |
8140 | (char *) "parent",(char *) "id", NULL | |
8141 | }; | |
8142 | ||
8143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Process",kwnames,&obj0,&arg2)) goto fail; | |
8144 | if (obj0) { | |
8145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8146 | } | |
8147 | { | |
8148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8149 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8150 | ||
8151 | wxPyEndAllowThreads(__tstate); | |
8152 | if (PyErr_Occurred()) SWIG_fail; | |
8153 | } | |
8154 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1); | |
8155 | return resultobj; | |
8156 | fail: | |
8157 | return NULL; | |
8158 | } | |
8159 | ||
8160 | ||
8161 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8162 | PyObject *resultobj; | |
8163 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8164 | PyObject *arg2 = (PyObject *) 0 ; | |
8165 | PyObject *arg3 = (PyObject *) 0 ; | |
8166 | PyObject * obj0 = 0 ; | |
8167 | PyObject * obj1 = 0 ; | |
8168 | PyObject * obj2 = 0 ; | |
8169 | char *kwnames[] = { | |
8170 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8171 | }; | |
8172 | ||
8173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8175 | arg2 = obj1; | |
8176 | arg3 = obj2; | |
8177 | { | |
8178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8179 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8180 | ||
8181 | wxPyEndAllowThreads(__tstate); | |
8182 | if (PyErr_Occurred()) SWIG_fail; | |
8183 | } | |
8184 | Py_INCREF(Py_None); resultobj = Py_None; | |
8185 | return resultobj; | |
8186 | fail: | |
8187 | return NULL; | |
8188 | } | |
8189 | ||
8190 | ||
8191 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8192 | PyObject *resultobj; | |
8193 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8194 | int arg2 ; | |
8195 | int arg3 ; | |
8196 | PyObject * obj0 = 0 ; | |
8197 | char *kwnames[] = { | |
8198 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8199 | }; | |
8200 | ||
8201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Process_base_OnTerminate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8203 | { | |
8204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8205 | (arg1)->base_OnTerminate(arg2,arg3); | |
8206 | ||
8207 | wxPyEndAllowThreads(__tstate); | |
8208 | if (PyErr_Occurred()) SWIG_fail; | |
8209 | } | |
8210 | Py_INCREF(Py_None); resultobj = Py_None; | |
8211 | return resultobj; | |
8212 | fail: | |
8213 | return NULL; | |
8214 | } | |
8215 | ||
8216 | ||
8217 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8218 | PyObject *resultobj; | |
8219 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8220 | PyObject * obj0 = 0 ; | |
8221 | char *kwnames[] = { | |
8222 | (char *) "self", NULL | |
8223 | }; | |
8224 | ||
8225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8227 | { | |
8228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8229 | (arg1)->Redirect(); | |
8230 | ||
8231 | wxPyEndAllowThreads(__tstate); | |
8232 | if (PyErr_Occurred()) SWIG_fail; | |
8233 | } | |
8234 | Py_INCREF(Py_None); resultobj = Py_None; | |
8235 | return resultobj; | |
8236 | fail: | |
8237 | return NULL; | |
8238 | } | |
8239 | ||
8240 | ||
8241 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject *resultobj; | |
8243 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8244 | bool result; | |
8245 | PyObject * obj0 = 0 ; | |
8246 | char *kwnames[] = { | |
8247 | (char *) "self", NULL | |
8248 | }; | |
8249 | ||
8250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8252 | { | |
8253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8254 | result = (bool)(arg1)->IsRedirected(); | |
8255 | ||
8256 | wxPyEndAllowThreads(__tstate); | |
8257 | if (PyErr_Occurred()) SWIG_fail; | |
8258 | } | |
8259 | resultobj = PyInt_FromLong((long)result); | |
8260 | return resultobj; | |
8261 | fail: | |
8262 | return NULL; | |
8263 | } | |
8264 | ||
8265 | ||
8266 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8267 | PyObject *resultobj; | |
8268 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8269 | PyObject * obj0 = 0 ; | |
8270 | char *kwnames[] = { | |
8271 | (char *) "self", NULL | |
8272 | }; | |
8273 | ||
8274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8276 | { | |
8277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8278 | (arg1)->Detach(); | |
8279 | ||
8280 | wxPyEndAllowThreads(__tstate); | |
8281 | if (PyErr_Occurred()) SWIG_fail; | |
8282 | } | |
8283 | Py_INCREF(Py_None); resultobj = Py_None; | |
8284 | return resultobj; | |
8285 | fail: | |
8286 | return NULL; | |
8287 | } | |
8288 | ||
8289 | ||
8290 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8291 | PyObject *resultobj; | |
8292 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8293 | wxInputStream *result; | |
8294 | PyObject * obj0 = 0 ; | |
8295 | char *kwnames[] = { | |
8296 | (char *) "self", NULL | |
8297 | }; | |
8298 | ||
8299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
8300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8301 | { | |
8302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8303 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8304 | ||
8305 | wxPyEndAllowThreads(__tstate); | |
8306 | if (PyErr_Occurred()) SWIG_fail; | |
8307 | } | |
8308 | { | |
8309 | wxPyInputStream * _ptr = NULL; | |
8310 | ||
8311 | if (result) { | |
8312 | _ptr = new wxPyInputStream(result); | |
8313 | } | |
e811c8ce | 8314 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8315 | } |
8316 | return resultobj; | |
8317 | fail: | |
8318 | return NULL; | |
8319 | } | |
8320 | ||
8321 | ||
8322 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8323 | PyObject *resultobj; | |
8324 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8325 | wxInputStream *result; | |
8326 | PyObject * obj0 = 0 ; | |
8327 | char *kwnames[] = { | |
8328 | (char *) "self", NULL | |
8329 | }; | |
8330 | ||
8331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
8332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8333 | { | |
8334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8335 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8336 | ||
8337 | wxPyEndAllowThreads(__tstate); | |
8338 | if (PyErr_Occurred()) SWIG_fail; | |
8339 | } | |
8340 | { | |
8341 | wxPyInputStream * _ptr = NULL; | |
8342 | ||
8343 | if (result) { | |
8344 | _ptr = new wxPyInputStream(result); | |
8345 | } | |
e811c8ce | 8346 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8347 | } |
8348 | return resultobj; | |
8349 | fail: | |
8350 | return NULL; | |
8351 | } | |
8352 | ||
8353 | ||
8354 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8355 | PyObject *resultobj; | |
8356 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8357 | wxOutputStream *result; | |
8358 | PyObject * obj0 = 0 ; | |
8359 | char *kwnames[] = { | |
8360 | (char *) "self", NULL | |
8361 | }; | |
8362 | ||
8363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
8364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8365 | { | |
8366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8367 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
8368 | ||
8369 | wxPyEndAllowThreads(__tstate); | |
8370 | if (PyErr_Occurred()) SWIG_fail; | |
8371 | } | |
8372 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0); | |
8373 | return resultobj; | |
8374 | fail: | |
8375 | return NULL; | |
8376 | } | |
8377 | ||
8378 | ||
8379 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8380 | PyObject *resultobj; | |
8381 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8382 | PyObject * obj0 = 0 ; | |
8383 | char *kwnames[] = { | |
8384 | (char *) "self", NULL | |
8385 | }; | |
8386 | ||
8387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
8388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8389 | { | |
8390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8391 | (arg1)->CloseOutput(); | |
8392 | ||
8393 | wxPyEndAllowThreads(__tstate); | |
8394 | if (PyErr_Occurred()) SWIG_fail; | |
8395 | } | |
8396 | Py_INCREF(Py_None); resultobj = Py_None; | |
8397 | return resultobj; | |
8398 | fail: | |
8399 | return NULL; | |
8400 | } | |
8401 | ||
8402 | ||
8403 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8404 | PyObject *resultobj; | |
8405 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8406 | bool result; | |
8407 | PyObject * obj0 = 0 ; | |
8408 | char *kwnames[] = { | |
8409 | (char *) "self", NULL | |
8410 | }; | |
8411 | ||
8412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
8413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8414 | { | |
8415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8416 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
8417 | ||
8418 | wxPyEndAllowThreads(__tstate); | |
8419 | if (PyErr_Occurred()) SWIG_fail; | |
8420 | } | |
8421 | resultobj = PyInt_FromLong((long)result); | |
8422 | return resultobj; | |
8423 | fail: | |
8424 | return NULL; | |
8425 | } | |
8426 | ||
8427 | ||
8428 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8429 | PyObject *resultobj; | |
8430 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8431 | bool result; | |
8432 | PyObject * obj0 = 0 ; | |
8433 | char *kwnames[] = { | |
8434 | (char *) "self", NULL | |
8435 | }; | |
8436 | ||
8437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
8438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8439 | { | |
8440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8441 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
8442 | ||
8443 | wxPyEndAllowThreads(__tstate); | |
8444 | if (PyErr_Occurred()) SWIG_fail; | |
8445 | } | |
8446 | resultobj = PyInt_FromLong((long)result); | |
8447 | return resultobj; | |
8448 | fail: | |
8449 | return NULL; | |
8450 | } | |
8451 | ||
8452 | ||
8453 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8454 | PyObject *resultobj; | |
8455 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8456 | bool result; | |
8457 | PyObject * obj0 = 0 ; | |
8458 | char *kwnames[] = { | |
8459 | (char *) "self", NULL | |
8460 | }; | |
8461 | ||
8462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
8463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8464 | { | |
8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8466 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
8467 | ||
8468 | wxPyEndAllowThreads(__tstate); | |
8469 | if (PyErr_Occurred()) SWIG_fail; | |
8470 | } | |
8471 | resultobj = PyInt_FromLong((long)result); | |
8472 | return resultobj; | |
8473 | fail: | |
8474 | return NULL; | |
8475 | } | |
8476 | ||
8477 | ||
8478 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
8479 | PyObject *obj; | |
8480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8481 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
8482 | Py_INCREF(obj); | |
8483 | return Py_BuildValue((char *)""); | |
8484 | } | |
8485 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8486 | PyObject *resultobj; | |
8487 | int arg1 = (int) 0 ; | |
8488 | int arg2 = (int) 0 ; | |
8489 | int arg3 = (int) 0 ; | |
8490 | wxProcessEvent *result; | |
8491 | char *kwnames[] = { | |
8492 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
8493 | }; | |
8494 | ||
8495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ProcessEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
8496 | { | |
8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8498 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
8499 | ||
8500 | wxPyEndAllowThreads(__tstate); | |
8501 | if (PyErr_Occurred()) SWIG_fail; | |
8502 | } | |
8503 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1); | |
8504 | return resultobj; | |
8505 | fail: | |
8506 | return NULL; | |
8507 | } | |
8508 | ||
8509 | ||
8510 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8511 | PyObject *resultobj; | |
8512 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8513 | int result; | |
8514 | PyObject * obj0 = 0 ; | |
8515 | char *kwnames[] = { | |
8516 | (char *) "self", NULL | |
8517 | }; | |
8518 | ||
8519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
8520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8521 | { | |
8522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8523 | result = (int)(arg1)->GetPid(); | |
8524 | ||
8525 | wxPyEndAllowThreads(__tstate); | |
8526 | if (PyErr_Occurred()) SWIG_fail; | |
8527 | } | |
8528 | resultobj = PyInt_FromLong((long)result); | |
8529 | return resultobj; | |
8530 | fail: | |
8531 | return NULL; | |
8532 | } | |
8533 | ||
8534 | ||
8535 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8536 | PyObject *resultobj; | |
8537 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8538 | int result; | |
8539 | PyObject * obj0 = 0 ; | |
8540 | char *kwnames[] = { | |
8541 | (char *) "self", NULL | |
8542 | }; | |
8543 | ||
8544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
8545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8546 | { | |
8547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8548 | result = (int)(arg1)->GetExitCode(); | |
8549 | ||
8550 | wxPyEndAllowThreads(__tstate); | |
8551 | if (PyErr_Occurred()) SWIG_fail; | |
8552 | } | |
8553 | resultobj = PyInt_FromLong((long)result); | |
8554 | return resultobj; | |
8555 | fail: | |
8556 | return NULL; | |
8557 | } | |
8558 | ||
8559 | ||
8560 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8561 | PyObject *resultobj; | |
8562 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8563 | int arg2 ; | |
8564 | PyObject * obj0 = 0 ; | |
8565 | char *kwnames[] = { | |
8566 | (char *) "self",(char *) "m_pid", NULL | |
8567 | }; | |
8568 | ||
8569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_pid_set",kwnames,&obj0,&arg2)) goto fail; | |
8570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8571 | if (arg1) (arg1)->m_pid = arg2; | |
8572 | ||
8573 | Py_INCREF(Py_None); resultobj = Py_None; | |
8574 | return resultobj; | |
8575 | fail: | |
8576 | return NULL; | |
8577 | } | |
8578 | ||
8579 | ||
8580 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8581 | PyObject *resultobj; | |
8582 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8583 | int result; | |
8584 | PyObject * obj0 = 0 ; | |
8585 | char *kwnames[] = { | |
8586 | (char *) "self", NULL | |
8587 | }; | |
8588 | ||
8589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
8590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8591 | result = (int) ((arg1)->m_pid); | |
8592 | ||
8593 | resultobj = PyInt_FromLong((long)result); | |
8594 | return resultobj; | |
8595 | fail: | |
8596 | return NULL; | |
8597 | } | |
8598 | ||
8599 | ||
8600 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8601 | PyObject *resultobj; | |
8602 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8603 | int arg2 ; | |
8604 | PyObject * obj0 = 0 ; | |
8605 | char *kwnames[] = { | |
8606 | (char *) "self",(char *) "m_exitcode", NULL | |
8607 | }; | |
8608 | ||
8609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_exitcode_set",kwnames,&obj0,&arg2)) goto fail; | |
8610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8611 | if (arg1) (arg1)->m_exitcode = arg2; | |
8612 | ||
8613 | Py_INCREF(Py_None); resultobj = Py_None; | |
8614 | return resultobj; | |
8615 | fail: | |
8616 | return NULL; | |
8617 | } | |
8618 | ||
8619 | ||
8620 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8621 | PyObject *resultobj; | |
8622 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8623 | int result; | |
8624 | PyObject * obj0 = 0 ; | |
8625 | char *kwnames[] = { | |
8626 | (char *) "self", NULL | |
8627 | }; | |
8628 | ||
8629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
8630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8631 | result = (int) ((arg1)->m_exitcode); | |
8632 | ||
8633 | resultobj = PyInt_FromLong((long)result); | |
8634 | return resultobj; | |
8635 | fail: | |
8636 | return NULL; | |
8637 | } | |
8638 | ||
8639 | ||
8640 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
8641 | PyObject *obj; | |
8642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8643 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
8644 | Py_INCREF(obj); | |
8645 | return Py_BuildValue((char *)""); | |
8646 | } | |
8647 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8648 | PyObject *resultobj; | |
8649 | wxString *arg1 = 0 ; | |
8650 | int arg2 = (int) wxEXEC_ASYNC ; | |
8651 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
8652 | long result; | |
e811c8ce | 8653 | bool temp1 = False ; |
d14a1e28 RD |
8654 | PyObject * obj0 = 0 ; |
8655 | PyObject * obj2 = 0 ; | |
8656 | char *kwnames[] = { | |
8657 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
8658 | }; | |
8659 | ||
8660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Execute",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8661 | { | |
8662 | arg1 = wxString_in_helper(obj0); | |
8663 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8664 | temp1 = True; |
d14a1e28 RD |
8665 | } |
8666 | if (obj2) { | |
8667 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8668 | } | |
8669 | { | |
8670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8671 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
8672 | ||
8673 | wxPyEndAllowThreads(__tstate); | |
8674 | if (PyErr_Occurred()) SWIG_fail; | |
8675 | } | |
8676 | resultobj = PyInt_FromLong((long)result); | |
8677 | { | |
8678 | if (temp1) | |
8679 | delete arg1; | |
8680 | } | |
8681 | return resultobj; | |
8682 | fail: | |
8683 | { | |
8684 | if (temp1) | |
8685 | delete arg1; | |
8686 | } | |
8687 | return NULL; | |
8688 | } | |
8689 | ||
8690 | ||
8691 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8692 | PyObject *resultobj; | |
8693 | int arg1 = (int) wxJOYSTICK1 ; | |
8694 | wxJoystick *result; | |
8695 | char *kwnames[] = { | |
8696 | (char *) "joystick", NULL | |
8697 | }; | |
8698 | ||
8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_Joystick",kwnames,&arg1)) goto fail; | |
8700 | { | |
8701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8702 | result = (wxJoystick *)new wxJoystick(arg1); | |
8703 | ||
8704 | wxPyEndAllowThreads(__tstate); | |
8705 | if (PyErr_Occurred()) SWIG_fail; | |
8706 | } | |
8707 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1); | |
8708 | return resultobj; | |
8709 | fail: | |
8710 | return NULL; | |
8711 | } | |
8712 | ||
8713 | ||
8714 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8715 | PyObject *resultobj; | |
8716 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8717 | PyObject * obj0 = 0 ; | |
8718 | char *kwnames[] = { | |
8719 | (char *) "self", NULL | |
8720 | }; | |
8721 | ||
8722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
8723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8724 | { | |
8725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8726 | delete arg1; | |
8727 | ||
8728 | wxPyEndAllowThreads(__tstate); | |
8729 | if (PyErr_Occurred()) SWIG_fail; | |
8730 | } | |
8731 | Py_INCREF(Py_None); resultobj = Py_None; | |
8732 | return resultobj; | |
8733 | fail: | |
8734 | return NULL; | |
8735 | } | |
8736 | ||
8737 | ||
8738 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8739 | PyObject *resultobj; | |
8740 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8741 | wxPoint result; | |
8742 | PyObject * obj0 = 0 ; | |
8743 | char *kwnames[] = { | |
8744 | (char *) "self", NULL | |
8745 | }; | |
8746 | ||
8747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
8748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8749 | { | |
8750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8751 | result = (arg1)->GetPosition(); | |
8752 | ||
8753 | wxPyEndAllowThreads(__tstate); | |
8754 | if (PyErr_Occurred()) SWIG_fail; | |
8755 | } | |
8756 | { | |
8757 | wxPoint * resultptr; | |
8758 | resultptr = new wxPoint((wxPoint &) result); | |
8759 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
8760 | } | |
8761 | return resultobj; | |
8762 | fail: | |
8763 | return NULL; | |
8764 | } | |
8765 | ||
8766 | ||
8767 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8768 | PyObject *resultobj; | |
8769 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8770 | int result; | |
8771 | PyObject * obj0 = 0 ; | |
8772 | char *kwnames[] = { | |
8773 | (char *) "self", NULL | |
8774 | }; | |
8775 | ||
8776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
8777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8778 | { | |
8779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8780 | result = (int)(arg1)->GetZPosition(); | |
8781 | ||
8782 | wxPyEndAllowThreads(__tstate); | |
8783 | if (PyErr_Occurred()) SWIG_fail; | |
8784 | } | |
8785 | resultobj = PyInt_FromLong((long)result); | |
8786 | return resultobj; | |
8787 | fail: | |
8788 | return NULL; | |
8789 | } | |
8790 | ||
8791 | ||
8792 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8793 | PyObject *resultobj; | |
8794 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8795 | int result; | |
8796 | PyObject * obj0 = 0 ; | |
8797 | char *kwnames[] = { | |
8798 | (char *) "self", NULL | |
8799 | }; | |
8800 | ||
8801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
8802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8803 | { | |
8804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8805 | result = (int)(arg1)->GetButtonState(); | |
8806 | ||
8807 | wxPyEndAllowThreads(__tstate); | |
8808 | if (PyErr_Occurred()) SWIG_fail; | |
8809 | } | |
8810 | resultobj = PyInt_FromLong((long)result); | |
8811 | return resultobj; | |
8812 | fail: | |
8813 | return NULL; | |
8814 | } | |
8815 | ||
8816 | ||
8817 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8818 | PyObject *resultobj; | |
8819 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8820 | int result; | |
8821 | PyObject * obj0 = 0 ; | |
8822 | char *kwnames[] = { | |
8823 | (char *) "self", NULL | |
8824 | }; | |
8825 | ||
8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
8827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8828 | { | |
8829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8830 | result = (int)(arg1)->GetPOVPosition(); | |
8831 | ||
8832 | wxPyEndAllowThreads(__tstate); | |
8833 | if (PyErr_Occurred()) SWIG_fail; | |
8834 | } | |
8835 | resultobj = PyInt_FromLong((long)result); | |
8836 | return resultobj; | |
8837 | fail: | |
8838 | return NULL; | |
8839 | } | |
8840 | ||
8841 | ||
8842 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8843 | PyObject *resultobj; | |
8844 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8845 | int result; | |
8846 | PyObject * obj0 = 0 ; | |
8847 | char *kwnames[] = { | |
8848 | (char *) "self", NULL | |
8849 | }; | |
8850 | ||
8851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
8852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8853 | { | |
8854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8855 | result = (int)(arg1)->GetPOVCTSPosition(); | |
8856 | ||
8857 | wxPyEndAllowThreads(__tstate); | |
8858 | if (PyErr_Occurred()) SWIG_fail; | |
8859 | } | |
8860 | resultobj = PyInt_FromLong((long)result); | |
8861 | return resultobj; | |
8862 | fail: | |
8863 | return NULL; | |
8864 | } | |
8865 | ||
8866 | ||
8867 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8868 | PyObject *resultobj; | |
8869 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8870 | int result; | |
8871 | PyObject * obj0 = 0 ; | |
8872 | char *kwnames[] = { | |
8873 | (char *) "self", NULL | |
8874 | }; | |
8875 | ||
8876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
8877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8878 | { | |
8879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8880 | result = (int)(arg1)->GetRudderPosition(); | |
8881 | ||
8882 | wxPyEndAllowThreads(__tstate); | |
8883 | if (PyErr_Occurred()) SWIG_fail; | |
8884 | } | |
8885 | resultobj = PyInt_FromLong((long)result); | |
8886 | return resultobj; | |
8887 | fail: | |
8888 | return NULL; | |
8889 | } | |
8890 | ||
8891 | ||
8892 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8893 | PyObject *resultobj; | |
8894 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8895 | int result; | |
8896 | PyObject * obj0 = 0 ; | |
8897 | char *kwnames[] = { | |
8898 | (char *) "self", NULL | |
8899 | }; | |
8900 | ||
8901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
8902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8903 | { | |
8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8905 | result = (int)(arg1)->GetUPosition(); | |
8906 | ||
8907 | wxPyEndAllowThreads(__tstate); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | } | |
8910 | resultobj = PyInt_FromLong((long)result); | |
8911 | return resultobj; | |
8912 | fail: | |
8913 | return NULL; | |
8914 | } | |
8915 | ||
8916 | ||
8917 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8918 | PyObject *resultobj; | |
8919 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8920 | int result; | |
8921 | PyObject * obj0 = 0 ; | |
8922 | char *kwnames[] = { | |
8923 | (char *) "self", NULL | |
8924 | }; | |
8925 | ||
8926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
8927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8928 | { | |
8929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8930 | result = (int)(arg1)->GetVPosition(); | |
8931 | ||
8932 | wxPyEndAllowThreads(__tstate); | |
8933 | if (PyErr_Occurred()) SWIG_fail; | |
8934 | } | |
8935 | resultobj = PyInt_FromLong((long)result); | |
8936 | return resultobj; | |
8937 | fail: | |
8938 | return NULL; | |
8939 | } | |
8940 | ||
8941 | ||
8942 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8943 | PyObject *resultobj; | |
8944 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8945 | int result; | |
8946 | PyObject * obj0 = 0 ; | |
8947 | char *kwnames[] = { | |
8948 | (char *) "self", NULL | |
8949 | }; | |
8950 | ||
8951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
8952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8953 | { | |
8954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8955 | result = (int)(arg1)->GetMovementThreshold(); | |
8956 | ||
8957 | wxPyEndAllowThreads(__tstate); | |
8958 | if (PyErr_Occurred()) SWIG_fail; | |
8959 | } | |
8960 | resultobj = PyInt_FromLong((long)result); | |
8961 | return resultobj; | |
8962 | fail: | |
8963 | return NULL; | |
8964 | } | |
8965 | ||
8966 | ||
8967 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8968 | PyObject *resultobj; | |
8969 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8970 | int arg2 ; | |
8971 | PyObject * obj0 = 0 ; | |
8972 | char *kwnames[] = { | |
8973 | (char *) "self",(char *) "threshold", NULL | |
8974 | }; | |
8975 | ||
8976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Joystick_SetMovementThreshold",kwnames,&obj0,&arg2)) goto fail; | |
8977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8978 | { | |
8979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8980 | (arg1)->SetMovementThreshold(arg2); | |
8981 | ||
8982 | wxPyEndAllowThreads(__tstate); | |
8983 | if (PyErr_Occurred()) SWIG_fail; | |
8984 | } | |
8985 | Py_INCREF(Py_None); resultobj = Py_None; | |
8986 | return resultobj; | |
8987 | fail: | |
8988 | return NULL; | |
8989 | } | |
8990 | ||
8991 | ||
8992 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8993 | PyObject *resultobj; | |
8994 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8995 | bool result; | |
8996 | PyObject * obj0 = 0 ; | |
8997 | char *kwnames[] = { | |
8998 | (char *) "self", NULL | |
8999 | }; | |
9000 | ||
9001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9003 | { | |
9004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9005 | result = (bool)(arg1)->IsOk(); | |
9006 | ||
9007 | wxPyEndAllowThreads(__tstate); | |
9008 | if (PyErr_Occurred()) SWIG_fail; | |
9009 | } | |
9010 | resultobj = PyInt_FromLong((long)result); | |
9011 | return resultobj; | |
9012 | fail: | |
9013 | return NULL; | |
9014 | } | |
9015 | ||
9016 | ||
9017 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9018 | PyObject *resultobj; | |
9019 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9020 | int result; | |
9021 | PyObject * obj0 = 0 ; | |
9022 | char *kwnames[] = { | |
9023 | (char *) "self", NULL | |
9024 | }; | |
9025 | ||
9026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9028 | { | |
9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9030 | result = (int)(arg1)->GetNumberJoysticks(); | |
9031 | ||
9032 | wxPyEndAllowThreads(__tstate); | |
9033 | if (PyErr_Occurred()) SWIG_fail; | |
9034 | } | |
9035 | resultobj = PyInt_FromLong((long)result); | |
9036 | return resultobj; | |
9037 | fail: | |
9038 | return NULL; | |
9039 | } | |
9040 | ||
9041 | ||
9042 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9043 | PyObject *resultobj; | |
9044 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9045 | int result; | |
9046 | PyObject * obj0 = 0 ; | |
9047 | char *kwnames[] = { | |
9048 | (char *) "self", NULL | |
9049 | }; | |
9050 | ||
9051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9053 | { | |
9054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9055 | result = (int)(arg1)->GetManufacturerId(); | |
9056 | ||
9057 | wxPyEndAllowThreads(__tstate); | |
9058 | if (PyErr_Occurred()) SWIG_fail; | |
9059 | } | |
9060 | resultobj = PyInt_FromLong((long)result); | |
9061 | return resultobj; | |
9062 | fail: | |
9063 | return NULL; | |
9064 | } | |
9065 | ||
9066 | ||
9067 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9068 | PyObject *resultobj; | |
9069 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9070 | int result; | |
9071 | PyObject * obj0 = 0 ; | |
9072 | char *kwnames[] = { | |
9073 | (char *) "self", NULL | |
9074 | }; | |
9075 | ||
9076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9078 | { | |
9079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9080 | result = (int)(arg1)->GetProductId(); | |
9081 | ||
9082 | wxPyEndAllowThreads(__tstate); | |
9083 | if (PyErr_Occurred()) SWIG_fail; | |
9084 | } | |
9085 | resultobj = PyInt_FromLong((long)result); | |
9086 | return resultobj; | |
9087 | fail: | |
9088 | return NULL; | |
9089 | } | |
9090 | ||
9091 | ||
9092 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9093 | PyObject *resultobj; | |
9094 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9095 | wxString result; | |
9096 | PyObject * obj0 = 0 ; | |
9097 | char *kwnames[] = { | |
9098 | (char *) "self", NULL | |
9099 | }; | |
9100 | ||
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9103 | { | |
9104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9105 | result = (arg1)->GetProductName(); | |
9106 | ||
9107 | wxPyEndAllowThreads(__tstate); | |
9108 | if (PyErr_Occurred()) SWIG_fail; | |
9109 | } | |
9110 | { | |
9111 | #if wxUSE_UNICODE | |
9112 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9113 | #else | |
9114 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9115 | #endif | |
9116 | } | |
9117 | return resultobj; | |
9118 | fail: | |
9119 | return NULL; | |
9120 | } | |
9121 | ||
9122 | ||
9123 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9124 | PyObject *resultobj; | |
9125 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9126 | int result; | |
9127 | PyObject * obj0 = 0 ; | |
9128 | char *kwnames[] = { | |
9129 | (char *) "self", NULL | |
9130 | }; | |
9131 | ||
9132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9134 | { | |
9135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9136 | result = (int)(arg1)->GetXMin(); | |
9137 | ||
9138 | wxPyEndAllowThreads(__tstate); | |
9139 | if (PyErr_Occurred()) SWIG_fail; | |
9140 | } | |
9141 | resultobj = PyInt_FromLong((long)result); | |
9142 | return resultobj; | |
9143 | fail: | |
9144 | return NULL; | |
9145 | } | |
9146 | ||
9147 | ||
9148 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9149 | PyObject *resultobj; | |
9150 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9151 | int result; | |
9152 | PyObject * obj0 = 0 ; | |
9153 | char *kwnames[] = { | |
9154 | (char *) "self", NULL | |
9155 | }; | |
9156 | ||
9157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9159 | { | |
9160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9161 | result = (int)(arg1)->GetYMin(); | |
9162 | ||
9163 | wxPyEndAllowThreads(__tstate); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | } | |
9166 | resultobj = PyInt_FromLong((long)result); | |
9167 | return resultobj; | |
9168 | fail: | |
9169 | return NULL; | |
9170 | } | |
9171 | ||
9172 | ||
9173 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9174 | PyObject *resultobj; | |
9175 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9176 | int result; | |
9177 | PyObject * obj0 = 0 ; | |
9178 | char *kwnames[] = { | |
9179 | (char *) "self", NULL | |
9180 | }; | |
9181 | ||
9182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9184 | { | |
9185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9186 | result = (int)(arg1)->GetZMin(); | |
9187 | ||
9188 | wxPyEndAllowThreads(__tstate); | |
9189 | if (PyErr_Occurred()) SWIG_fail; | |
9190 | } | |
9191 | resultobj = PyInt_FromLong((long)result); | |
9192 | return resultobj; | |
9193 | fail: | |
9194 | return NULL; | |
9195 | } | |
9196 | ||
9197 | ||
9198 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9199 | PyObject *resultobj; | |
9200 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9201 | int result; | |
9202 | PyObject * obj0 = 0 ; | |
9203 | char *kwnames[] = { | |
9204 | (char *) "self", NULL | |
9205 | }; | |
9206 | ||
9207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9209 | { | |
9210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9211 | result = (int)(arg1)->GetXMax(); | |
9212 | ||
9213 | wxPyEndAllowThreads(__tstate); | |
9214 | if (PyErr_Occurred()) SWIG_fail; | |
9215 | } | |
9216 | resultobj = PyInt_FromLong((long)result); | |
9217 | return resultobj; | |
9218 | fail: | |
9219 | return NULL; | |
9220 | } | |
9221 | ||
9222 | ||
9223 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9224 | PyObject *resultobj; | |
9225 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9226 | int result; | |
9227 | PyObject * obj0 = 0 ; | |
9228 | char *kwnames[] = { | |
9229 | (char *) "self", NULL | |
9230 | }; | |
9231 | ||
9232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
9233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9234 | { | |
9235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9236 | result = (int)(arg1)->GetYMax(); | |
9237 | ||
9238 | wxPyEndAllowThreads(__tstate); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | } | |
9241 | resultobj = PyInt_FromLong((long)result); | |
9242 | return resultobj; | |
9243 | fail: | |
9244 | return NULL; | |
9245 | } | |
9246 | ||
9247 | ||
9248 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9249 | PyObject *resultobj; | |
9250 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9251 | int result; | |
9252 | PyObject * obj0 = 0 ; | |
9253 | char *kwnames[] = { | |
9254 | (char *) "self", NULL | |
9255 | }; | |
9256 | ||
9257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
9258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9259 | { | |
9260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9261 | result = (int)(arg1)->GetZMax(); | |
9262 | ||
9263 | wxPyEndAllowThreads(__tstate); | |
9264 | if (PyErr_Occurred()) SWIG_fail; | |
9265 | } | |
9266 | resultobj = PyInt_FromLong((long)result); | |
9267 | return resultobj; | |
9268 | fail: | |
9269 | return NULL; | |
9270 | } | |
9271 | ||
9272 | ||
9273 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9274 | PyObject *resultobj; | |
9275 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9276 | int result; | |
9277 | PyObject * obj0 = 0 ; | |
9278 | char *kwnames[] = { | |
9279 | (char *) "self", NULL | |
9280 | }; | |
9281 | ||
9282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
9283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9284 | { | |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9286 | result = (int)(arg1)->GetNumberButtons(); | |
9287 | ||
9288 | wxPyEndAllowThreads(__tstate); | |
9289 | if (PyErr_Occurred()) SWIG_fail; | |
9290 | } | |
9291 | resultobj = PyInt_FromLong((long)result); | |
9292 | return resultobj; | |
9293 | fail: | |
9294 | return NULL; | |
9295 | } | |
9296 | ||
9297 | ||
9298 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9299 | PyObject *resultobj; | |
9300 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9301 | int result; | |
9302 | PyObject * obj0 = 0 ; | |
9303 | char *kwnames[] = { | |
9304 | (char *) "self", NULL | |
9305 | }; | |
9306 | ||
9307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
9308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9309 | { | |
9310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9311 | result = (int)(arg1)->GetNumberAxes(); | |
9312 | ||
9313 | wxPyEndAllowThreads(__tstate); | |
9314 | if (PyErr_Occurred()) SWIG_fail; | |
9315 | } | |
9316 | resultobj = PyInt_FromLong((long)result); | |
9317 | return resultobj; | |
9318 | fail: | |
9319 | return NULL; | |
9320 | } | |
9321 | ||
9322 | ||
9323 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9324 | PyObject *resultobj; | |
9325 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9326 | int result; | |
9327 | PyObject * obj0 = 0 ; | |
9328 | char *kwnames[] = { | |
9329 | (char *) "self", NULL | |
9330 | }; | |
9331 | ||
9332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
9333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9334 | { | |
9335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9336 | result = (int)(arg1)->GetMaxButtons(); | |
9337 | ||
9338 | wxPyEndAllowThreads(__tstate); | |
9339 | if (PyErr_Occurred()) SWIG_fail; | |
9340 | } | |
9341 | resultobj = PyInt_FromLong((long)result); | |
9342 | return resultobj; | |
9343 | fail: | |
9344 | return NULL; | |
9345 | } | |
9346 | ||
9347 | ||
9348 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9349 | PyObject *resultobj; | |
9350 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9351 | int result; | |
9352 | PyObject * obj0 = 0 ; | |
9353 | char *kwnames[] = { | |
9354 | (char *) "self", NULL | |
9355 | }; | |
9356 | ||
9357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
9358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9359 | { | |
9360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9361 | result = (int)(arg1)->GetMaxAxes(); | |
9362 | ||
9363 | wxPyEndAllowThreads(__tstate); | |
9364 | if (PyErr_Occurred()) SWIG_fail; | |
9365 | } | |
9366 | resultobj = PyInt_FromLong((long)result); | |
9367 | return resultobj; | |
9368 | fail: | |
9369 | return NULL; | |
9370 | } | |
9371 | ||
9372 | ||
9373 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9374 | PyObject *resultobj; | |
9375 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9376 | int result; | |
9377 | PyObject * obj0 = 0 ; | |
9378 | char *kwnames[] = { | |
9379 | (char *) "self", NULL | |
9380 | }; | |
9381 | ||
9382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
9383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9384 | { | |
9385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9386 | result = (int)(arg1)->GetPollingMin(); | |
9387 | ||
9388 | wxPyEndAllowThreads(__tstate); | |
9389 | if (PyErr_Occurred()) SWIG_fail; | |
9390 | } | |
9391 | resultobj = PyInt_FromLong((long)result); | |
9392 | return resultobj; | |
9393 | fail: | |
9394 | return NULL; | |
9395 | } | |
9396 | ||
9397 | ||
9398 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9399 | PyObject *resultobj; | |
9400 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9401 | int result; | |
9402 | PyObject * obj0 = 0 ; | |
9403 | char *kwnames[] = { | |
9404 | (char *) "self", NULL | |
9405 | }; | |
9406 | ||
9407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
9408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9409 | { | |
9410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9411 | result = (int)(arg1)->GetPollingMax(); | |
9412 | ||
9413 | wxPyEndAllowThreads(__tstate); | |
9414 | if (PyErr_Occurred()) SWIG_fail; | |
9415 | } | |
9416 | resultobj = PyInt_FromLong((long)result); | |
9417 | return resultobj; | |
9418 | fail: | |
9419 | return NULL; | |
9420 | } | |
9421 | ||
9422 | ||
9423 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9424 | PyObject *resultobj; | |
9425 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9426 | int result; | |
9427 | PyObject * obj0 = 0 ; | |
9428 | char *kwnames[] = { | |
9429 | (char *) "self", NULL | |
9430 | }; | |
9431 | ||
9432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
9433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9434 | { | |
9435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9436 | result = (int)(arg1)->GetRudderMin(); | |
9437 | ||
9438 | wxPyEndAllowThreads(__tstate); | |
9439 | if (PyErr_Occurred()) SWIG_fail; | |
9440 | } | |
9441 | resultobj = PyInt_FromLong((long)result); | |
9442 | return resultobj; | |
9443 | fail: | |
9444 | return NULL; | |
9445 | } | |
9446 | ||
9447 | ||
9448 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9449 | PyObject *resultobj; | |
9450 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9451 | int result; | |
9452 | PyObject * obj0 = 0 ; | |
9453 | char *kwnames[] = { | |
9454 | (char *) "self", NULL | |
9455 | }; | |
9456 | ||
9457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
9458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9459 | { | |
9460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9461 | result = (int)(arg1)->GetRudderMax(); | |
9462 | ||
9463 | wxPyEndAllowThreads(__tstate); | |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
9465 | } | |
9466 | resultobj = PyInt_FromLong((long)result); | |
9467 | return resultobj; | |
9468 | fail: | |
9469 | return NULL; | |
9470 | } | |
9471 | ||
9472 | ||
9473 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9474 | PyObject *resultobj; | |
9475 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9476 | int result; | |
9477 | PyObject * obj0 = 0 ; | |
9478 | char *kwnames[] = { | |
9479 | (char *) "self", NULL | |
9480 | }; | |
9481 | ||
9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
9483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9484 | { | |
9485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9486 | result = (int)(arg1)->GetUMin(); | |
9487 | ||
9488 | wxPyEndAllowThreads(__tstate); | |
9489 | if (PyErr_Occurred()) SWIG_fail; | |
9490 | } | |
9491 | resultobj = PyInt_FromLong((long)result); | |
9492 | return resultobj; | |
9493 | fail: | |
9494 | return NULL; | |
9495 | } | |
9496 | ||
9497 | ||
9498 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9499 | PyObject *resultobj; | |
9500 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9501 | int result; | |
9502 | PyObject * obj0 = 0 ; | |
9503 | char *kwnames[] = { | |
9504 | (char *) "self", NULL | |
9505 | }; | |
9506 | ||
9507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
9508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9509 | { | |
9510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9511 | result = (int)(arg1)->GetUMax(); | |
9512 | ||
9513 | wxPyEndAllowThreads(__tstate); | |
9514 | if (PyErr_Occurred()) SWIG_fail; | |
9515 | } | |
9516 | resultobj = PyInt_FromLong((long)result); | |
9517 | return resultobj; | |
9518 | fail: | |
9519 | return NULL; | |
9520 | } | |
9521 | ||
9522 | ||
9523 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9524 | PyObject *resultobj; | |
9525 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9526 | int result; | |
9527 | PyObject * obj0 = 0 ; | |
9528 | char *kwnames[] = { | |
9529 | (char *) "self", NULL | |
9530 | }; | |
9531 | ||
9532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
9533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9534 | { | |
9535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9536 | result = (int)(arg1)->GetVMin(); | |
9537 | ||
9538 | wxPyEndAllowThreads(__tstate); | |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
9540 | } | |
9541 | resultobj = PyInt_FromLong((long)result); | |
9542 | return resultobj; | |
9543 | fail: | |
9544 | return NULL; | |
9545 | } | |
9546 | ||
9547 | ||
9548 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9549 | PyObject *resultobj; | |
9550 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9551 | int result; | |
9552 | PyObject * obj0 = 0 ; | |
9553 | char *kwnames[] = { | |
9554 | (char *) "self", NULL | |
9555 | }; | |
9556 | ||
9557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
9558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9559 | { | |
9560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9561 | result = (int)(arg1)->GetVMax(); | |
9562 | ||
9563 | wxPyEndAllowThreads(__tstate); | |
9564 | if (PyErr_Occurred()) SWIG_fail; | |
9565 | } | |
9566 | resultobj = PyInt_FromLong((long)result); | |
9567 | return resultobj; | |
9568 | fail: | |
9569 | return NULL; | |
9570 | } | |
9571 | ||
9572 | ||
9573 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9574 | PyObject *resultobj; | |
9575 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9576 | bool result; | |
9577 | PyObject * obj0 = 0 ; | |
9578 | char *kwnames[] = { | |
9579 | (char *) "self", NULL | |
9580 | }; | |
9581 | ||
9582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
9583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9584 | { | |
9585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9586 | result = (bool)(arg1)->HasRudder(); | |
9587 | ||
9588 | wxPyEndAllowThreads(__tstate); | |
9589 | if (PyErr_Occurred()) SWIG_fail; | |
9590 | } | |
9591 | resultobj = PyInt_FromLong((long)result); | |
9592 | return resultobj; | |
9593 | fail: | |
9594 | return NULL; | |
9595 | } | |
9596 | ||
9597 | ||
9598 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9599 | PyObject *resultobj; | |
9600 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9601 | bool result; | |
9602 | PyObject * obj0 = 0 ; | |
9603 | char *kwnames[] = { | |
9604 | (char *) "self", NULL | |
9605 | }; | |
9606 | ||
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
9608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9609 | { | |
9610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9611 | result = (bool)(arg1)->HasZ(); | |
9612 | ||
9613 | wxPyEndAllowThreads(__tstate); | |
9614 | if (PyErr_Occurred()) SWIG_fail; | |
9615 | } | |
9616 | resultobj = PyInt_FromLong((long)result); | |
9617 | return resultobj; | |
9618 | fail: | |
9619 | return NULL; | |
9620 | } | |
9621 | ||
9622 | ||
9623 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9624 | PyObject *resultobj; | |
9625 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9626 | bool result; | |
9627 | PyObject * obj0 = 0 ; | |
9628 | char *kwnames[] = { | |
9629 | (char *) "self", NULL | |
9630 | }; | |
9631 | ||
9632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
9633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9634 | { | |
9635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9636 | result = (bool)(arg1)->HasU(); | |
9637 | ||
9638 | wxPyEndAllowThreads(__tstate); | |
9639 | if (PyErr_Occurred()) SWIG_fail; | |
9640 | } | |
9641 | resultobj = PyInt_FromLong((long)result); | |
9642 | return resultobj; | |
9643 | fail: | |
9644 | return NULL; | |
9645 | } | |
9646 | ||
9647 | ||
9648 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9649 | PyObject *resultobj; | |
9650 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9651 | bool result; | |
9652 | PyObject * obj0 = 0 ; | |
9653 | char *kwnames[] = { | |
9654 | (char *) "self", NULL | |
9655 | }; | |
9656 | ||
9657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
9658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9659 | { | |
9660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9661 | result = (bool)(arg1)->HasV(); | |
9662 | ||
9663 | wxPyEndAllowThreads(__tstate); | |
9664 | if (PyErr_Occurred()) SWIG_fail; | |
9665 | } | |
9666 | resultobj = PyInt_FromLong((long)result); | |
9667 | return resultobj; | |
9668 | fail: | |
9669 | return NULL; | |
9670 | } | |
9671 | ||
9672 | ||
9673 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9674 | PyObject *resultobj; | |
9675 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9676 | bool result; | |
9677 | PyObject * obj0 = 0 ; | |
9678 | char *kwnames[] = { | |
9679 | (char *) "self", NULL | |
9680 | }; | |
9681 | ||
9682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
9683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9684 | { | |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9686 | result = (bool)(arg1)->HasPOV(); | |
9687 | ||
9688 | wxPyEndAllowThreads(__tstate); | |
9689 | if (PyErr_Occurred()) SWIG_fail; | |
9690 | } | |
9691 | resultobj = PyInt_FromLong((long)result); | |
9692 | return resultobj; | |
9693 | fail: | |
9694 | return NULL; | |
9695 | } | |
9696 | ||
9697 | ||
9698 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9699 | PyObject *resultobj; | |
9700 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9701 | bool result; | |
9702 | PyObject * obj0 = 0 ; | |
9703 | char *kwnames[] = { | |
9704 | (char *) "self", NULL | |
9705 | }; | |
9706 | ||
9707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
9708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9709 | { | |
9710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9711 | result = (bool)(arg1)->HasPOV4Dir(); | |
9712 | ||
9713 | wxPyEndAllowThreads(__tstate); | |
9714 | if (PyErr_Occurred()) SWIG_fail; | |
9715 | } | |
9716 | resultobj = PyInt_FromLong((long)result); | |
9717 | return resultobj; | |
9718 | fail: | |
9719 | return NULL; | |
9720 | } | |
9721 | ||
9722 | ||
9723 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9724 | PyObject *resultobj; | |
9725 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9726 | bool result; | |
9727 | PyObject * obj0 = 0 ; | |
9728 | char *kwnames[] = { | |
9729 | (char *) "self", NULL | |
9730 | }; | |
9731 | ||
9732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
9733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9734 | { | |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | result = (bool)(arg1)->HasPOVCTS(); | |
9737 | ||
9738 | wxPyEndAllowThreads(__tstate); | |
9739 | if (PyErr_Occurred()) SWIG_fail; | |
9740 | } | |
9741 | resultobj = PyInt_FromLong((long)result); | |
9742 | return resultobj; | |
9743 | fail: | |
9744 | return NULL; | |
9745 | } | |
9746 | ||
9747 | ||
9748 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9749 | PyObject *resultobj; | |
9750 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9751 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9752 | int arg3 = (int) 0 ; | |
9753 | bool result; | |
9754 | PyObject * obj0 = 0 ; | |
9755 | PyObject * obj1 = 0 ; | |
9756 | char *kwnames[] = { | |
9757 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
9758 | }; | |
9759 | ||
9760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Joystick_SetCapture",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9762 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9763 | { | |
9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9765 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
9766 | ||
9767 | wxPyEndAllowThreads(__tstate); | |
9768 | if (PyErr_Occurred()) SWIG_fail; | |
9769 | } | |
9770 | resultobj = PyInt_FromLong((long)result); | |
9771 | return resultobj; | |
9772 | fail: | |
9773 | return NULL; | |
9774 | } | |
9775 | ||
9776 | ||
9777 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9778 | PyObject *resultobj; | |
9779 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9780 | bool result; | |
9781 | PyObject * obj0 = 0 ; | |
9782 | char *kwnames[] = { | |
9783 | (char *) "self", NULL | |
9784 | }; | |
9785 | ||
9786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
9787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9788 | { | |
9789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9790 | result = (bool)(arg1)->ReleaseCapture(); | |
9791 | ||
9792 | wxPyEndAllowThreads(__tstate); | |
9793 | if (PyErr_Occurred()) SWIG_fail; | |
9794 | } | |
9795 | resultobj = PyInt_FromLong((long)result); | |
9796 | return resultobj; | |
9797 | fail: | |
9798 | return NULL; | |
9799 | } | |
9800 | ||
9801 | ||
9802 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
9803 | PyObject *obj; | |
9804 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9805 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
9806 | Py_INCREF(obj); | |
9807 | return Py_BuildValue((char *)""); | |
9808 | } | |
9809 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9810 | PyObject *resultobj; | |
9811 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9812 | wxPoint *arg2 = (wxPoint *) 0 ; | |
9813 | PyObject * obj0 = 0 ; | |
9814 | PyObject * obj1 = 0 ; | |
9815 | char *kwnames[] = { | |
9816 | (char *) "self",(char *) "m_pos", NULL | |
9817 | }; | |
9818 | ||
9819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
9820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9821 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9822 | if (arg1) (arg1)->m_pos = *arg2; | |
9823 | ||
9824 | Py_INCREF(Py_None); resultobj = Py_None; | |
9825 | return resultobj; | |
9826 | fail: | |
9827 | return NULL; | |
9828 | } | |
9829 | ||
9830 | ||
9831 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9832 | PyObject *resultobj; | |
9833 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9834 | wxPoint *result; | |
9835 | PyObject * obj0 = 0 ; | |
9836 | char *kwnames[] = { | |
9837 | (char *) "self", NULL | |
9838 | }; | |
9839 | ||
9840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
9841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9842 | result = (wxPoint *)& ((arg1)->m_pos); | |
9843 | ||
9844 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
9845 | return resultobj; | |
9846 | fail: | |
9847 | return NULL; | |
9848 | } | |
9849 | ||
9850 | ||
9851 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9852 | PyObject *resultobj; | |
9853 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9854 | int arg2 ; | |
9855 | PyObject * obj0 = 0 ; | |
9856 | char *kwnames[] = { | |
9857 | (char *) "self",(char *) "m_zPosition", NULL | |
9858 | }; | |
9859 | ||
9860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_zPosition_set",kwnames,&obj0,&arg2)) goto fail; | |
9861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9862 | if (arg1) (arg1)->m_zPosition = arg2; | |
9863 | ||
9864 | Py_INCREF(Py_None); resultobj = Py_None; | |
9865 | return resultobj; | |
9866 | fail: | |
9867 | return NULL; | |
9868 | } | |
9869 | ||
9870 | ||
9871 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9872 | PyObject *resultobj; | |
9873 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9874 | int result; | |
9875 | PyObject * obj0 = 0 ; | |
9876 | char *kwnames[] = { | |
9877 | (char *) "self", NULL | |
9878 | }; | |
9879 | ||
9880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
9881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9882 | result = (int) ((arg1)->m_zPosition); | |
9883 | ||
9884 | resultobj = PyInt_FromLong((long)result); | |
9885 | return resultobj; | |
9886 | fail: | |
9887 | return NULL; | |
9888 | } | |
9889 | ||
9890 | ||
9891 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9892 | PyObject *resultobj; | |
9893 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9894 | int arg2 ; | |
9895 | PyObject * obj0 = 0 ; | |
9896 | char *kwnames[] = { | |
9897 | (char *) "self",(char *) "m_buttonChange", NULL | |
9898 | }; | |
9899 | ||
9900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&arg2)) goto fail; | |
9901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9902 | if (arg1) (arg1)->m_buttonChange = arg2; | |
9903 | ||
9904 | Py_INCREF(Py_None); resultobj = Py_None; | |
9905 | return resultobj; | |
9906 | fail: | |
9907 | return NULL; | |
9908 | } | |
9909 | ||
9910 | ||
9911 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9912 | PyObject *resultobj; | |
9913 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9914 | int result; | |
9915 | PyObject * obj0 = 0 ; | |
9916 | char *kwnames[] = { | |
9917 | (char *) "self", NULL | |
9918 | }; | |
9919 | ||
9920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
9921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9922 | result = (int) ((arg1)->m_buttonChange); | |
9923 | ||
9924 | resultobj = PyInt_FromLong((long)result); | |
9925 | return resultobj; | |
9926 | fail: | |
9927 | return NULL; | |
9928 | } | |
9929 | ||
9930 | ||
9931 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9932 | PyObject *resultobj; | |
9933 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9934 | int arg2 ; | |
9935 | PyObject * obj0 = 0 ; | |
9936 | char *kwnames[] = { | |
9937 | (char *) "self",(char *) "m_buttonState", NULL | |
9938 | }; | |
9939 | ||
9940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonState_set",kwnames,&obj0,&arg2)) goto fail; | |
9941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9942 | if (arg1) (arg1)->m_buttonState = arg2; | |
9943 | ||
9944 | Py_INCREF(Py_None); resultobj = Py_None; | |
9945 | return resultobj; | |
9946 | fail: | |
9947 | return NULL; | |
9948 | } | |
9949 | ||
9950 | ||
9951 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9952 | PyObject *resultobj; | |
9953 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9954 | int result; | |
9955 | PyObject * obj0 = 0 ; | |
9956 | char *kwnames[] = { | |
9957 | (char *) "self", NULL | |
9958 | }; | |
9959 | ||
9960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
9961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9962 | result = (int) ((arg1)->m_buttonState); | |
9963 | ||
9964 | resultobj = PyInt_FromLong((long)result); | |
9965 | return resultobj; | |
9966 | fail: | |
9967 | return NULL; | |
9968 | } | |
9969 | ||
9970 | ||
9971 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9972 | PyObject *resultobj; | |
9973 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9974 | int arg2 ; | |
9975 | PyObject * obj0 = 0 ; | |
9976 | char *kwnames[] = { | |
9977 | (char *) "self",(char *) "m_joyStick", NULL | |
9978 | }; | |
9979 | ||
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_joyStick_set",kwnames,&obj0,&arg2)) goto fail; | |
9981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9982 | if (arg1) (arg1)->m_joyStick = arg2; | |
9983 | ||
9984 | Py_INCREF(Py_None); resultobj = Py_None; | |
9985 | return resultobj; | |
9986 | fail: | |
9987 | return NULL; | |
9988 | } | |
9989 | ||
9990 | ||
9991 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9992 | PyObject *resultobj; | |
9993 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9994 | int result; | |
9995 | PyObject * obj0 = 0 ; | |
9996 | char *kwnames[] = { | |
9997 | (char *) "self", NULL | |
9998 | }; | |
9999 | ||
10000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
10001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10002 | result = (int) ((arg1)->m_joyStick); | |
10003 | ||
10004 | resultobj = PyInt_FromLong((long)result); | |
10005 | return resultobj; | |
10006 | fail: | |
10007 | return NULL; | |
10008 | } | |
10009 | ||
10010 | ||
10011 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10012 | PyObject *resultobj; | |
10013 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10014 | int arg2 = (int) 0 ; | |
10015 | int arg3 = (int) wxJOYSTICK1 ; | |
10016 | int arg4 = (int) 0 ; | |
10017 | wxJoystickEvent *result; | |
10018 | char *kwnames[] = { | |
10019 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10020 | }; | |
10021 | ||
10022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_JoystickEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
10023 | { | |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10025 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10026 | ||
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
10030 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1); | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
10037 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10038 | PyObject *resultobj; | |
10039 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10040 | wxPoint result; | |
10041 | PyObject * obj0 = 0 ; | |
10042 | char *kwnames[] = { | |
10043 | (char *) "self", NULL | |
10044 | }; | |
10045 | ||
10046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10048 | { | |
10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10050 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10051 | ||
10052 | wxPyEndAllowThreads(__tstate); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | { | |
10056 | wxPoint * resultptr; | |
10057 | resultptr = new wxPoint((wxPoint &) result); | |
10058 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
10059 | } | |
10060 | return resultobj; | |
10061 | fail: | |
10062 | return NULL; | |
10063 | } | |
10064 | ||
10065 | ||
10066 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10067 | PyObject *resultobj; | |
10068 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10069 | int result; | |
10070 | PyObject * obj0 = 0 ; | |
10071 | char *kwnames[] = { | |
10072 | (char *) "self", NULL | |
10073 | }; | |
10074 | ||
10075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
10076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10077 | { | |
10078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10079 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10080 | ||
10081 | wxPyEndAllowThreads(__tstate); | |
10082 | if (PyErr_Occurred()) SWIG_fail; | |
10083 | } | |
10084 | resultobj = PyInt_FromLong((long)result); | |
10085 | return resultobj; | |
10086 | fail: | |
10087 | return NULL; | |
10088 | } | |
10089 | ||
10090 | ||
10091 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10092 | PyObject *resultobj; | |
10093 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10094 | int result; | |
10095 | PyObject * obj0 = 0 ; | |
10096 | char *kwnames[] = { | |
10097 | (char *) "self", NULL | |
10098 | }; | |
10099 | ||
10100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
10101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10102 | { | |
10103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10104 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10105 | ||
10106 | wxPyEndAllowThreads(__tstate); | |
10107 | if (PyErr_Occurred()) SWIG_fail; | |
10108 | } | |
10109 | resultobj = PyInt_FromLong((long)result); | |
10110 | return resultobj; | |
10111 | fail: | |
10112 | return NULL; | |
10113 | } | |
10114 | ||
10115 | ||
10116 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10117 | PyObject *resultobj; | |
10118 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10119 | int result; | |
10120 | PyObject * obj0 = 0 ; | |
10121 | char *kwnames[] = { | |
10122 | (char *) "self", NULL | |
10123 | }; | |
10124 | ||
10125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
10126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10127 | { | |
10128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10129 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
10130 | ||
10131 | wxPyEndAllowThreads(__tstate); | |
10132 | if (PyErr_Occurred()) SWIG_fail; | |
10133 | } | |
10134 | resultobj = PyInt_FromLong((long)result); | |
10135 | return resultobj; | |
10136 | fail: | |
10137 | return NULL; | |
10138 | } | |
10139 | ||
10140 | ||
10141 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10142 | PyObject *resultobj; | |
10143 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10144 | int result; | |
10145 | PyObject * obj0 = 0 ; | |
10146 | char *kwnames[] = { | |
10147 | (char *) "self", NULL | |
10148 | }; | |
10149 | ||
10150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
10151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10152 | { | |
10153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10154 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
10155 | ||
10156 | wxPyEndAllowThreads(__tstate); | |
10157 | if (PyErr_Occurred()) SWIG_fail; | |
10158 | } | |
10159 | resultobj = PyInt_FromLong((long)result); | |
10160 | return resultobj; | |
10161 | fail: | |
10162 | return NULL; | |
10163 | } | |
10164 | ||
10165 | ||
10166 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10167 | PyObject *resultobj; | |
10168 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10169 | int arg2 ; | |
10170 | PyObject * obj0 = 0 ; | |
10171 | char *kwnames[] = { | |
10172 | (char *) "self",(char *) "stick", NULL | |
10173 | }; | |
10174 | ||
10175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetJoystick",kwnames,&obj0,&arg2)) goto fail; | |
10176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10177 | { | |
10178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10179 | (arg1)->SetJoystick(arg2); | |
10180 | ||
10181 | wxPyEndAllowThreads(__tstate); | |
10182 | if (PyErr_Occurred()) SWIG_fail; | |
10183 | } | |
10184 | Py_INCREF(Py_None); resultobj = Py_None; | |
10185 | return resultobj; | |
10186 | fail: | |
10187 | return NULL; | |
10188 | } | |
10189 | ||
10190 | ||
10191 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10192 | PyObject *resultobj; | |
10193 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10194 | int arg2 ; | |
10195 | PyObject * obj0 = 0 ; | |
10196 | char *kwnames[] = { | |
10197 | (char *) "self",(char *) "state", NULL | |
10198 | }; | |
10199 | ||
10200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonState",kwnames,&obj0,&arg2)) goto fail; | |
10201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10202 | { | |
10203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10204 | (arg1)->SetButtonState(arg2); | |
10205 | ||
10206 | wxPyEndAllowThreads(__tstate); | |
10207 | if (PyErr_Occurred()) SWIG_fail; | |
10208 | } | |
10209 | Py_INCREF(Py_None); resultobj = Py_None; | |
10210 | return resultobj; | |
10211 | fail: | |
10212 | return NULL; | |
10213 | } | |
10214 | ||
10215 | ||
10216 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10217 | PyObject *resultobj; | |
10218 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10219 | int arg2 ; | |
10220 | PyObject * obj0 = 0 ; | |
10221 | char *kwnames[] = { | |
10222 | (char *) "self",(char *) "change", NULL | |
10223 | }; | |
10224 | ||
10225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonChange",kwnames,&obj0,&arg2)) goto fail; | |
10226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10227 | { | |
10228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10229 | (arg1)->SetButtonChange(arg2); | |
10230 | ||
10231 | wxPyEndAllowThreads(__tstate); | |
10232 | if (PyErr_Occurred()) SWIG_fail; | |
10233 | } | |
10234 | Py_INCREF(Py_None); resultobj = Py_None; | |
10235 | return resultobj; | |
10236 | fail: | |
10237 | return NULL; | |
10238 | } | |
10239 | ||
10240 | ||
10241 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10242 | PyObject *resultobj; | |
10243 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10244 | wxPoint *arg2 = 0 ; | |
10245 | wxPoint temp2 ; | |
10246 | PyObject * obj0 = 0 ; | |
10247 | PyObject * obj1 = 0 ; | |
10248 | char *kwnames[] = { | |
10249 | (char *) "self",(char *) "pos", NULL | |
10250 | }; | |
10251 | ||
10252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10254 | { | |
10255 | arg2 = &temp2; | |
10256 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10257 | } | |
10258 | { | |
10259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10260 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
10261 | ||
10262 | wxPyEndAllowThreads(__tstate); | |
10263 | if (PyErr_Occurred()) SWIG_fail; | |
10264 | } | |
10265 | Py_INCREF(Py_None); resultobj = Py_None; | |
10266 | return resultobj; | |
10267 | fail: | |
10268 | return NULL; | |
10269 | } | |
10270 | ||
10271 | ||
10272 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10273 | PyObject *resultobj; | |
10274 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10275 | int arg2 ; | |
10276 | PyObject * obj0 = 0 ; | |
10277 | char *kwnames[] = { | |
10278 | (char *) "self",(char *) "zPos", NULL | |
10279 | }; | |
10280 | ||
10281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetZPosition",kwnames,&obj0,&arg2)) goto fail; | |
10282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10283 | { | |
10284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10285 | (arg1)->SetZPosition(arg2); | |
10286 | ||
10287 | wxPyEndAllowThreads(__tstate); | |
10288 | if (PyErr_Occurred()) SWIG_fail; | |
10289 | } | |
10290 | Py_INCREF(Py_None); resultobj = Py_None; | |
10291 | return resultobj; | |
10292 | fail: | |
10293 | return NULL; | |
10294 | } | |
10295 | ||
10296 | ||
10297 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10298 | PyObject *resultobj; | |
10299 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10300 | bool result; | |
10301 | PyObject * obj0 = 0 ; | |
10302 | char *kwnames[] = { | |
10303 | (char *) "self", NULL | |
10304 | }; | |
10305 | ||
10306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
10307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10308 | { | |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
10315 | resultobj = PyInt_FromLong((long)result); | |
10316 | return resultobj; | |
10317 | fail: | |
10318 | return NULL; | |
10319 | } | |
10320 | ||
10321 | ||
10322 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10323 | PyObject *resultobj; | |
10324 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10325 | bool result; | |
10326 | PyObject * obj0 = 0 ; | |
10327 | char *kwnames[] = { | |
10328 | (char *) "self", NULL | |
10329 | }; | |
10330 | ||
10331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
10332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10333 | { | |
10334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10335 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
10336 | ||
10337 | wxPyEndAllowThreads(__tstate); | |
10338 | if (PyErr_Occurred()) SWIG_fail; | |
10339 | } | |
10340 | resultobj = PyInt_FromLong((long)result); | |
10341 | return resultobj; | |
10342 | fail: | |
10343 | return NULL; | |
10344 | } | |
10345 | ||
10346 | ||
10347 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10348 | PyObject *resultobj; | |
10349 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10350 | bool result; | |
10351 | PyObject * obj0 = 0 ; | |
10352 | char *kwnames[] = { | |
10353 | (char *) "self", NULL | |
10354 | }; | |
10355 | ||
10356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
10357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10358 | { | |
10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10360 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
10361 | ||
10362 | wxPyEndAllowThreads(__tstate); | |
10363 | if (PyErr_Occurred()) SWIG_fail; | |
10364 | } | |
10365 | resultobj = PyInt_FromLong((long)result); | |
10366 | return resultobj; | |
10367 | fail: | |
10368 | return NULL; | |
10369 | } | |
10370 | ||
10371 | ||
10372 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10373 | PyObject *resultobj; | |
10374 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10375 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10376 | bool result; | |
10377 | PyObject * obj0 = 0 ; | |
10378 | char *kwnames[] = { | |
10379 | (char *) "self",(char *) "but", NULL | |
10380 | }; | |
10381 | ||
10382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
10383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10384 | { | |
10385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10386 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
10387 | ||
10388 | wxPyEndAllowThreads(__tstate); | |
10389 | if (PyErr_Occurred()) SWIG_fail; | |
10390 | } | |
10391 | resultobj = PyInt_FromLong((long)result); | |
10392 | return resultobj; | |
10393 | fail: | |
10394 | return NULL; | |
10395 | } | |
10396 | ||
10397 | ||
10398 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10399 | PyObject *resultobj; | |
10400 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10401 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10402 | bool result; | |
10403 | PyObject * obj0 = 0 ; | |
10404 | char *kwnames[] = { | |
10405 | (char *) "self",(char *) "but", NULL | |
10406 | }; | |
10407 | ||
10408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
10409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10410 | { | |
10411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10412 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
10413 | ||
10414 | wxPyEndAllowThreads(__tstate); | |
10415 | if (PyErr_Occurred()) SWIG_fail; | |
10416 | } | |
10417 | resultobj = PyInt_FromLong((long)result); | |
10418 | return resultobj; | |
10419 | fail: | |
10420 | return NULL; | |
10421 | } | |
10422 | ||
10423 | ||
10424 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10425 | PyObject *resultobj; | |
10426 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10427 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10428 | bool result; | |
10429 | PyObject * obj0 = 0 ; | |
10430 | char *kwnames[] = { | |
10431 | (char *) "self",(char *) "but", NULL | |
10432 | }; | |
10433 | ||
10434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
10435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10436 | { | |
10437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10438 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
10439 | ||
10440 | wxPyEndAllowThreads(__tstate); | |
10441 | if (PyErr_Occurred()) SWIG_fail; | |
10442 | } | |
10443 | resultobj = PyInt_FromLong((long)result); | |
10444 | return resultobj; | |
10445 | fail: | |
10446 | return NULL; | |
10447 | } | |
10448 | ||
10449 | ||
10450 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
10451 | PyObject *obj; | |
10452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10453 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
10454 | Py_INCREF(obj); | |
10455 | return Py_BuildValue((char *)""); | |
10456 | } | |
10457 | static PyObject *_wrap_new_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10458 | PyObject *resultobj; | |
10459 | wxString *arg1 = 0 ; | |
e811c8ce | 10460 | bool arg2 = (bool) False ; |
d14a1e28 | 10461 | wxWave *result; |
e811c8ce | 10462 | bool temp1 = False ; |
d14a1e28 RD |
10463 | PyObject * obj0 = 0 ; |
10464 | PyObject * obj1 = 0 ; | |
10465 | char *kwnames[] = { | |
10466 | (char *) "fileName",(char *) "isResource", NULL | |
10467 | }; | |
10468 | ||
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Wave",kwnames,&obj0,&obj1)) goto fail; | |
10470 | { | |
10471 | arg1 = wxString_in_helper(obj0); | |
10472 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 10473 | temp1 = True; |
d14a1e28 RD |
10474 | } |
10475 | if (obj1) { | |
10476 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10477 | if (PyErr_Occurred()) SWIG_fail; | |
10478 | } | |
10479 | { | |
10480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10481 | result = (wxWave *)new wxWave((wxString const &)*arg1,arg2); | |
10482 | ||
10483 | wxPyEndAllowThreads(__tstate); | |
10484 | if (PyErr_Occurred()) SWIG_fail; | |
10485 | } | |
10486 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10487 | { | |
10488 | if (temp1) | |
10489 | delete arg1; | |
10490 | } | |
10491 | return resultobj; | |
10492 | fail: | |
10493 | { | |
10494 | if (temp1) | |
10495 | delete arg1; | |
10496 | } | |
10497 | return NULL; | |
10498 | } | |
10499 | ||
10500 | ||
10501 | static PyObject *_wrap_new_WaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10502 | PyObject *resultobj; | |
10503 | wxString *arg1 = 0 ; | |
10504 | wxWave *result; | |
e811c8ce | 10505 | bool temp1 = False ; |
d14a1e28 RD |
10506 | PyObject * obj0 = 0 ; |
10507 | char *kwnames[] = { | |
10508 | (char *) "data", NULL | |
10509 | }; | |
10510 | ||
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WaveData",kwnames,&obj0)) goto fail; | |
10512 | { | |
10513 | arg1 = wxString_in_helper(obj0); | |
10514 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 10515 | temp1 = True; |
d14a1e28 RD |
10516 | } |
10517 | { | |
10518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10519 | result = (wxWave *)new_wxWave((wxString const &)*arg1); | |
10520 | ||
10521 | wxPyEndAllowThreads(__tstate); | |
10522 | if (PyErr_Occurred()) SWIG_fail; | |
10523 | } | |
10524 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10525 | { | |
10526 | if (temp1) | |
10527 | delete arg1; | |
10528 | } | |
10529 | return resultobj; | |
10530 | fail: | |
10531 | { | |
10532 | if (temp1) | |
10533 | delete arg1; | |
10534 | } | |
10535 | return NULL; | |
10536 | } | |
10537 | ||
10538 | ||
10539 | static PyObject *_wrap_delete_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10540 | PyObject *resultobj; | |
10541 | wxWave *arg1 = (wxWave *) 0 ; | |
10542 | PyObject * obj0 = 0 ; | |
10543 | char *kwnames[] = { | |
10544 | (char *) "self", NULL | |
10545 | }; | |
10546 | ||
10547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Wave",kwnames,&obj0)) goto fail; | |
10548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10549 | { | |
10550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10551 | delete arg1; | |
10552 | ||
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) SWIG_fail; | |
10555 | } | |
10556 | Py_INCREF(Py_None); resultobj = Py_None; | |
10557 | return resultobj; | |
10558 | fail: | |
10559 | return NULL; | |
10560 | } | |
10561 | ||
10562 | ||
10563 | static PyObject *_wrap_Wave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10564 | PyObject *resultobj; | |
10565 | wxWave *arg1 = (wxWave *) 0 ; | |
10566 | bool result; | |
10567 | PyObject * obj0 = 0 ; | |
10568 | char *kwnames[] = { | |
10569 | (char *) "self", NULL | |
10570 | }; | |
10571 | ||
10572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Wave_IsOk",kwnames,&obj0)) goto fail; | |
10573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10574 | { | |
10575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10576 | result = (bool)((wxWave const *)arg1)->IsOk(); | |
10577 | ||
10578 | wxPyEndAllowThreads(__tstate); | |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
10580 | } | |
10581 | resultobj = PyInt_FromLong((long)result); | |
10582 | return resultobj; | |
10583 | fail: | |
10584 | return NULL; | |
10585 | } | |
10586 | ||
10587 | ||
10588 | static PyObject *_wrap_Wave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10589 | PyObject *resultobj; | |
10590 | wxWave *arg1 = (wxWave *) 0 ; | |
e811c8ce RD |
10591 | bool arg2 = (bool) True ; |
10592 | bool arg3 = (bool) False ; | |
d14a1e28 RD |
10593 | bool result; |
10594 | PyObject * obj0 = 0 ; | |
10595 | PyObject * obj1 = 0 ; | |
10596 | PyObject * obj2 = 0 ; | |
10597 | char *kwnames[] = { | |
10598 | (char *) "self",(char *) "async",(char *) "looped", NULL | |
10599 | }; | |
10600 | ||
10601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Wave_Play",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10603 | if (obj1) { | |
10604 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10605 | if (PyErr_Occurred()) SWIG_fail; | |
10606 | } | |
10607 | if (obj2) { | |
10608 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
10609 | if (PyErr_Occurred()) SWIG_fail; | |
10610 | } | |
10611 | { | |
10612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 10613 | result = (bool)(arg1)->Play(arg2,arg3); |
d14a1e28 RD |
10614 | |
10615 | wxPyEndAllowThreads(__tstate); | |
10616 | if (PyErr_Occurred()) SWIG_fail; | |
10617 | } | |
10618 | resultobj = PyInt_FromLong((long)result); | |
10619 | return resultobj; | |
10620 | fail: | |
10621 | return NULL; | |
10622 | } | |
10623 | ||
10624 | ||
10625 | static PyObject * Wave_swigregister(PyObject *self, PyObject *args) { | |
10626 | PyObject *obj; | |
10627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10628 | SWIG_TypeClientData(SWIGTYPE_p_wxWave, obj); | |
10629 | Py_INCREF(obj); | |
10630 | return Py_BuildValue((char *)""); | |
10631 | } | |
10632 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10633 | PyObject *resultobj; | |
10634 | wxString *arg1 = 0 ; | |
10635 | wxString *arg2 = 0 ; | |
10636 | wxString *arg3 = 0 ; | |
10637 | wxString *arg4 = 0 ; | |
10638 | wxFileTypeInfo *result; | |
e811c8ce RD |
10639 | bool temp1 = False ; |
10640 | bool temp2 = False ; | |
10641 | bool temp3 = False ; | |
10642 | bool temp4 = False ; | |
d14a1e28 RD |
10643 | PyObject * obj0 = 0 ; |
10644 | PyObject * obj1 = 0 ; | |
10645 | PyObject * obj2 = 0 ; | |
10646 | PyObject * obj3 = 0 ; | |
10647 | char *kwnames[] = { | |
10648 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
10649 | }; | |
10650 | ||
10651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10652 | { | |
10653 | arg1 = wxString_in_helper(obj0); | |
10654 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 10655 | temp1 = True; |
d14a1e28 RD |
10656 | } |
10657 | { | |
10658 | arg2 = wxString_in_helper(obj1); | |
10659 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10660 | temp2 = True; |
d14a1e28 RD |
10661 | } |
10662 | { | |
10663 | arg3 = wxString_in_helper(obj2); | |
10664 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10665 | temp3 = True; |
d14a1e28 RD |
10666 | } |
10667 | { | |
10668 | arg4 = wxString_in_helper(obj3); | |
10669 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 10670 | temp4 = True; |
d14a1e28 RD |
10671 | } |
10672 | { | |
10673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10674 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
10675 | ||
10676 | wxPyEndAllowThreads(__tstate); | |
10677 | if (PyErr_Occurred()) SWIG_fail; | |
10678 | } | |
10679 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10680 | { | |
10681 | if (temp1) | |
10682 | delete arg1; | |
10683 | } | |
10684 | { | |
10685 | if (temp2) | |
10686 | delete arg2; | |
10687 | } | |
10688 | { | |
10689 | if (temp3) | |
10690 | delete arg3; | |
10691 | } | |
10692 | { | |
10693 | if (temp4) | |
10694 | delete arg4; | |
10695 | } | |
10696 | return resultobj; | |
10697 | fail: | |
10698 | { | |
10699 | if (temp1) | |
10700 | delete arg1; | |
10701 | } | |
10702 | { | |
10703 | if (temp2) | |
10704 | delete arg2; | |
10705 | } | |
10706 | { | |
10707 | if (temp3) | |
10708 | delete arg3; | |
10709 | } | |
10710 | { | |
10711 | if (temp4) | |
10712 | delete arg4; | |
10713 | } | |
10714 | return NULL; | |
10715 | } | |
10716 | ||
10717 | ||
10718 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10719 | PyObject *resultobj; | |
10720 | wxArrayString *arg1 = 0 ; | |
10721 | wxFileTypeInfo *result; | |
10722 | PyObject * obj0 = 0 ; | |
10723 | char *kwnames[] = { | |
10724 | (char *) "sArray", NULL | |
10725 | }; | |
10726 | ||
10727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
10728 | { | |
10729 | if (! PySequence_Check(obj0)) { | |
10730 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10731 | SWIG_fail; | |
10732 | } | |
10733 | arg1 = new wxArrayString; | |
10734 | int i, len=PySequence_Length(obj0); | |
10735 | for (i=0; i<len; i++) { | |
10736 | PyObject* item = PySequence_GetItem(obj0, i); | |
10737 | #if wxUSE_UNICODE | |
10738 | PyObject* str = PyObject_Unicode(item); | |
10739 | #else | |
10740 | PyObject* str = PyObject_Str(item); | |
10741 | #endif | |
10742 | arg1->Add(Py2wxString(str)); | |
10743 | Py_DECREF(item); | |
10744 | Py_DECREF(str); | |
10745 | } | |
10746 | } | |
10747 | { | |
10748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10749 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
10750 | ||
10751 | wxPyEndAllowThreads(__tstate); | |
10752 | if (PyErr_Occurred()) SWIG_fail; | |
10753 | } | |
10754 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10755 | { | |
10756 | if (arg1) delete arg1; | |
10757 | } | |
10758 | return resultobj; | |
10759 | fail: | |
10760 | { | |
10761 | if (arg1) delete arg1; | |
10762 | } | |
10763 | return NULL; | |
10764 | } | |
10765 | ||
10766 | ||
10767 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10768 | PyObject *resultobj; | |
10769 | wxFileTypeInfo *result; | |
10770 | char *kwnames[] = { | |
10771 | NULL | |
10772 | }; | |
10773 | ||
10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
10775 | { | |
10776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10777 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
10778 | ||
10779 | wxPyEndAllowThreads(__tstate); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | } | |
10782 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10783 | return resultobj; | |
10784 | fail: | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
10789 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10790 | PyObject *resultobj; | |
10791 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10792 | bool result; | |
10793 | PyObject * obj0 = 0 ; | |
10794 | char *kwnames[] = { | |
10795 | (char *) "self", NULL | |
10796 | }; | |
10797 | ||
10798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
10799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10800 | { | |
10801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10802 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
10803 | ||
10804 | wxPyEndAllowThreads(__tstate); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
10807 | resultobj = PyInt_FromLong((long)result); | |
10808 | return resultobj; | |
10809 | fail: | |
10810 | return NULL; | |
10811 | } | |
10812 | ||
10813 | ||
10814 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10815 | PyObject *resultobj; | |
10816 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10817 | wxString *arg2 = 0 ; | |
10818 | int arg3 = (int) 0 ; | |
e811c8ce | 10819 | bool temp2 = False ; |
d14a1e28 RD |
10820 | PyObject * obj0 = 0 ; |
10821 | PyObject * obj1 = 0 ; | |
10822 | char *kwnames[] = { | |
10823 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
10824 | }; | |
10825 | ||
10826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10828 | { | |
10829 | arg2 = wxString_in_helper(obj1); | |
10830 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10831 | temp2 = True; |
d14a1e28 RD |
10832 | } |
10833 | { | |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
10840 | Py_INCREF(Py_None); resultobj = Py_None; | |
10841 | { | |
10842 | if (temp2) | |
10843 | delete arg2; | |
10844 | } | |
10845 | return resultobj; | |
10846 | fail: | |
10847 | { | |
10848 | if (temp2) | |
10849 | delete arg2; | |
10850 | } | |
10851 | return NULL; | |
10852 | } | |
10853 | ||
10854 | ||
10855 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10856 | PyObject *resultobj; | |
10857 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10858 | wxString *arg2 = 0 ; | |
e811c8ce | 10859 | bool temp2 = False ; |
d14a1e28 RD |
10860 | PyObject * obj0 = 0 ; |
10861 | PyObject * obj1 = 0 ; | |
10862 | char *kwnames[] = { | |
10863 | (char *) "self",(char *) "shortDesc", NULL | |
10864 | }; | |
10865 | ||
10866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
10867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10868 | { | |
10869 | arg2 = wxString_in_helper(obj1); | |
10870 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10871 | temp2 = True; |
d14a1e28 RD |
10872 | } |
10873 | { | |
10874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10875 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
10876 | ||
10877 | wxPyEndAllowThreads(__tstate); | |
10878 | if (PyErr_Occurred()) SWIG_fail; | |
10879 | } | |
10880 | Py_INCREF(Py_None); resultobj = Py_None; | |
10881 | { | |
10882 | if (temp2) | |
10883 | delete arg2; | |
10884 | } | |
10885 | return resultobj; | |
10886 | fail: | |
10887 | { | |
10888 | if (temp2) | |
10889 | delete arg2; | |
10890 | } | |
10891 | return NULL; | |
10892 | } | |
10893 | ||
10894 | ||
10895 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10896 | PyObject *resultobj; | |
10897 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10898 | wxString *result; | |
10899 | PyObject * obj0 = 0 ; | |
10900 | char *kwnames[] = { | |
10901 | (char *) "self", NULL | |
10902 | }; | |
10903 | ||
10904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
10905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10906 | { | |
10907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10908 | { | |
10909 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
10910 | result = (wxString *) &_result_ref; | |
10911 | } | |
10912 | ||
10913 | wxPyEndAllowThreads(__tstate); | |
10914 | if (PyErr_Occurred()) SWIG_fail; | |
10915 | } | |
cc6dd355 RD |
10916 | { |
10917 | #if wxUSE_UNICODE | |
10918 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10919 | #else | |
10920 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10921 | #endif | |
10922 | } | |
d14a1e28 RD |
10923 | return resultobj; |
10924 | fail: | |
10925 | return NULL; | |
10926 | } | |
10927 | ||
10928 | ||
10929 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10930 | PyObject *resultobj; | |
10931 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10932 | wxString *result; | |
10933 | PyObject * obj0 = 0 ; | |
10934 | char *kwnames[] = { | |
10935 | (char *) "self", NULL | |
10936 | }; | |
10937 | ||
10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
10939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10940 | { | |
10941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10942 | { | |
10943 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
10944 | result = (wxString *) &_result_ref; | |
10945 | } | |
10946 | ||
10947 | wxPyEndAllowThreads(__tstate); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
cc6dd355 RD |
10950 | { |
10951 | #if wxUSE_UNICODE | |
10952 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10953 | #else | |
10954 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10955 | #endif | |
10956 | } | |
d14a1e28 RD |
10957 | return resultobj; |
10958 | fail: | |
10959 | return NULL; | |
10960 | } | |
10961 | ||
10962 | ||
10963 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10964 | PyObject *resultobj; | |
10965 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10966 | wxString *result; | |
10967 | PyObject * obj0 = 0 ; | |
10968 | char *kwnames[] = { | |
10969 | (char *) "self", NULL | |
10970 | }; | |
10971 | ||
10972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
10973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10974 | { | |
10975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10976 | { | |
10977 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
10978 | result = (wxString *) &_result_ref; | |
10979 | } | |
10980 | ||
10981 | wxPyEndAllowThreads(__tstate); | |
10982 | if (PyErr_Occurred()) SWIG_fail; | |
10983 | } | |
cc6dd355 RD |
10984 | { |
10985 | #if wxUSE_UNICODE | |
10986 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10987 | #else | |
10988 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10989 | #endif | |
10990 | } | |
d14a1e28 RD |
10991 | return resultobj; |
10992 | fail: | |
10993 | return NULL; | |
10994 | } | |
10995 | ||
10996 | ||
10997 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10998 | PyObject *resultobj; | |
10999 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11000 | wxString *result; | |
11001 | PyObject * obj0 = 0 ; | |
11002 | char *kwnames[] = { | |
11003 | (char *) "self", NULL | |
11004 | }; | |
11005 | ||
11006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
11007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11008 | { | |
11009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11010 | { | |
11011 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
11012 | result = (wxString *) &_result_ref; | |
11013 | } | |
11014 | ||
11015 | wxPyEndAllowThreads(__tstate); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
11017 | } | |
cc6dd355 RD |
11018 | { |
11019 | #if wxUSE_UNICODE | |
11020 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11021 | #else | |
11022 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11023 | #endif | |
11024 | } | |
d14a1e28 RD |
11025 | return resultobj; |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
11031 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11032 | PyObject *resultobj; | |
11033 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11034 | wxString *result; | |
11035 | PyObject * obj0 = 0 ; | |
11036 | char *kwnames[] = { | |
11037 | (char *) "self", NULL | |
11038 | }; | |
11039 | ||
11040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
11041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11042 | { | |
11043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11044 | { | |
11045 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
11046 | result = (wxString *) &_result_ref; | |
11047 | } | |
11048 | ||
11049 | wxPyEndAllowThreads(__tstate); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
cc6dd355 RD |
11052 | { |
11053 | #if wxUSE_UNICODE | |
11054 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11055 | #else | |
11056 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11057 | #endif | |
11058 | } | |
d14a1e28 RD |
11059 | return resultobj; |
11060 | fail: | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
11065 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11066 | PyObject *resultobj; | |
11067 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11068 | wxArrayString *result; | |
11069 | PyObject * obj0 = 0 ; | |
11070 | char *kwnames[] = { | |
11071 | (char *) "self", NULL | |
11072 | }; | |
11073 | ||
11074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
11075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11076 | { | |
11077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11078 | { | |
11079 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
11080 | result = (wxArrayString *) &_result_ref; | |
11081 | } | |
11082 | ||
11083 | wxPyEndAllowThreads(__tstate); | |
11084 | if (PyErr_Occurred()) SWIG_fail; | |
11085 | } | |
11086 | { | |
11087 | resultobj = wxArrayString2PyList_helper(*result); | |
11088 | } | |
11089 | return resultobj; | |
11090 | fail: | |
11091 | return NULL; | |
11092 | } | |
11093 | ||
11094 | ||
11095 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11096 | PyObject *resultobj; | |
11097 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11098 | int result; | |
11099 | PyObject * obj0 = 0 ; | |
11100 | char *kwnames[] = { | |
11101 | (char *) "self", NULL | |
11102 | }; | |
11103 | ||
11104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
11105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11106 | { | |
11107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11108 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
11109 | ||
11110 | wxPyEndAllowThreads(__tstate); | |
11111 | if (PyErr_Occurred()) SWIG_fail; | |
11112 | } | |
11113 | resultobj = PyInt_FromLong((long)result); | |
11114 | return resultobj; | |
11115 | fail: | |
11116 | return NULL; | |
11117 | } | |
11118 | ||
11119 | ||
11120 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11121 | PyObject *resultobj; | |
11122 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11123 | wxString *result; | |
11124 | PyObject * obj0 = 0 ; | |
11125 | char *kwnames[] = { | |
11126 | (char *) "self", NULL | |
11127 | }; | |
11128 | ||
11129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
11130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11131 | { | |
11132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11133 | { | |
11134 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
11135 | result = (wxString *) &_result_ref; | |
11136 | } | |
11137 | ||
11138 | wxPyEndAllowThreads(__tstate); | |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
11140 | } | |
cc6dd355 RD |
11141 | { |
11142 | #if wxUSE_UNICODE | |
11143 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11144 | #else | |
11145 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11146 | #endif | |
11147 | } | |
d14a1e28 RD |
11148 | return resultobj; |
11149 | fail: | |
11150 | return NULL; | |
11151 | } | |
11152 | ||
11153 | ||
11154 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11155 | PyObject *resultobj; | |
11156 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11157 | int result; | |
11158 | PyObject * obj0 = 0 ; | |
11159 | char *kwnames[] = { | |
11160 | (char *) "self", NULL | |
11161 | }; | |
11162 | ||
11163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
11164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11165 | { | |
11166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11167 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
11168 | ||
11169 | wxPyEndAllowThreads(__tstate); | |
11170 | if (PyErr_Occurred()) SWIG_fail; | |
11171 | } | |
11172 | resultobj = PyInt_FromLong((long)result); | |
11173 | return resultobj; | |
11174 | fail: | |
11175 | return NULL; | |
11176 | } | |
11177 | ||
11178 | ||
11179 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
11180 | PyObject *obj; | |
11181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11182 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
11183 | Py_INCREF(obj); | |
11184 | return Py_BuildValue((char *)""); | |
11185 | } | |
11186 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11187 | PyObject *resultobj; | |
11188 | wxFileTypeInfo *arg1 = 0 ; | |
11189 | wxFileType *result; | |
11190 | PyObject * obj0 = 0 ; | |
11191 | char *kwnames[] = { | |
11192 | (char *) "ftInfo", NULL | |
11193 | }; | |
11194 | ||
11195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
11196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11197 | if (arg1 == NULL) { | |
11198 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11199 | } | |
11200 | { | |
11201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11202 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
11203 | ||
11204 | wxPyEndAllowThreads(__tstate); | |
11205 | if (PyErr_Occurred()) SWIG_fail; | |
11206 | } | |
11207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11208 | return resultobj; | |
11209 | fail: | |
11210 | return NULL; | |
11211 | } | |
11212 | ||
11213 | ||
11214 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11215 | PyObject *resultobj; | |
11216 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11217 | PyObject * obj0 = 0 ; | |
11218 | char *kwnames[] = { | |
11219 | (char *) "self", NULL | |
11220 | }; | |
11221 | ||
11222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
11223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11224 | { | |
11225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11226 | delete arg1; | |
11227 | ||
11228 | wxPyEndAllowThreads(__tstate); | |
11229 | if (PyErr_Occurred()) SWIG_fail; | |
11230 | } | |
11231 | Py_INCREF(Py_None); resultobj = Py_None; | |
11232 | return resultobj; | |
11233 | fail: | |
11234 | return NULL; | |
11235 | } | |
11236 | ||
11237 | ||
11238 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11239 | PyObject *resultobj; | |
11240 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11241 | PyObject *result; | |
11242 | PyObject * obj0 = 0 ; | |
11243 | char *kwnames[] = { | |
11244 | (char *) "self", NULL | |
11245 | }; | |
11246 | ||
11247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
11248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11249 | { | |
11250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11251 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
11252 | ||
11253 | wxPyEndAllowThreads(__tstate); | |
11254 | if (PyErr_Occurred()) SWIG_fail; | |
11255 | } | |
11256 | resultobj = result; | |
11257 | return resultobj; | |
11258 | fail: | |
11259 | return NULL; | |
11260 | } | |
11261 | ||
11262 | ||
11263 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11264 | PyObject *resultobj; | |
11265 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11266 | PyObject *result; | |
11267 | PyObject * obj0 = 0 ; | |
11268 | char *kwnames[] = { | |
11269 | (char *) "self", NULL | |
11270 | }; | |
11271 | ||
11272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
11273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11274 | { | |
11275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11276 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
11277 | ||
11278 | wxPyEndAllowThreads(__tstate); | |
11279 | if (PyErr_Occurred()) SWIG_fail; | |
11280 | } | |
11281 | resultobj = result; | |
11282 | return resultobj; | |
11283 | fail: | |
11284 | return NULL; | |
11285 | } | |
11286 | ||
11287 | ||
11288 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11289 | PyObject *resultobj; | |
11290 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11291 | PyObject *result; | |
11292 | PyObject * obj0 = 0 ; | |
11293 | char *kwnames[] = { | |
11294 | (char *) "self", NULL | |
11295 | }; | |
11296 | ||
11297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
11298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11299 | { | |
11300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11301 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
11302 | ||
11303 | wxPyEndAllowThreads(__tstate); | |
11304 | if (PyErr_Occurred()) SWIG_fail; | |
11305 | } | |
11306 | resultobj = result; | |
11307 | return resultobj; | |
11308 | fail: | |
11309 | return NULL; | |
11310 | } | |
11311 | ||
11312 | ||
11313 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11314 | PyObject *resultobj; | |
11315 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11316 | wxIcon *result; | |
11317 | PyObject * obj0 = 0 ; | |
11318 | char *kwnames[] = { | |
11319 | (char *) "self", NULL | |
11320 | }; | |
11321 | ||
11322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
11323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11324 | { | |
11325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11326 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
11327 | ||
11328 | wxPyEndAllowThreads(__tstate); | |
11329 | if (PyErr_Occurred()) SWIG_fail; | |
11330 | } | |
11331 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
11332 | return resultobj; | |
11333 | fail: | |
11334 | return NULL; | |
11335 | } | |
11336 | ||
11337 | ||
11338 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11339 | PyObject *resultobj; | |
11340 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11341 | PyObject *result; | |
11342 | PyObject * obj0 = 0 ; | |
11343 | char *kwnames[] = { | |
11344 | (char *) "self", NULL | |
11345 | }; | |
11346 | ||
11347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
11348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11349 | { | |
11350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11351 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
11352 | ||
11353 | wxPyEndAllowThreads(__tstate); | |
11354 | if (PyErr_Occurred()) SWIG_fail; | |
11355 | } | |
11356 | resultobj = result; | |
11357 | return resultobj; | |
11358 | fail: | |
11359 | return NULL; | |
11360 | } | |
11361 | ||
11362 | ||
11363 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11364 | PyObject *resultobj; | |
11365 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11366 | PyObject *result; | |
11367 | PyObject * obj0 = 0 ; | |
11368 | char *kwnames[] = { | |
11369 | (char *) "self", NULL | |
11370 | }; | |
11371 | ||
11372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
11373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11374 | { | |
11375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11376 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
11377 | ||
11378 | wxPyEndAllowThreads(__tstate); | |
11379 | if (PyErr_Occurred()) SWIG_fail; | |
11380 | } | |
11381 | resultobj = result; | |
11382 | return resultobj; | |
11383 | fail: | |
11384 | return NULL; | |
11385 | } | |
11386 | ||
11387 | ||
11388 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11389 | PyObject *resultobj; | |
11390 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11391 | wxString *arg2 = 0 ; | |
11392 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11393 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11394 | PyObject *result; | |
e811c8ce RD |
11395 | bool temp2 = False ; |
11396 | bool temp3 = False ; | |
d14a1e28 RD |
11397 | PyObject * obj0 = 0 ; |
11398 | PyObject * obj1 = 0 ; | |
11399 | PyObject * obj2 = 0 ; | |
11400 | char *kwnames[] = { | |
11401 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11402 | }; | |
11403 | ||
11404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11406 | { | |
11407 | arg2 = wxString_in_helper(obj1); | |
11408 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11409 | temp2 = True; |
d14a1e28 RD |
11410 | } |
11411 | if (obj2) { | |
11412 | { | |
11413 | arg3 = wxString_in_helper(obj2); | |
11414 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11415 | temp3 = True; |
d14a1e28 RD |
11416 | } |
11417 | } | |
11418 | { | |
11419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11420 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11421 | ||
11422 | wxPyEndAllowThreads(__tstate); | |
11423 | if (PyErr_Occurred()) SWIG_fail; | |
11424 | } | |
11425 | resultobj = result; | |
11426 | { | |
11427 | if (temp2) | |
11428 | delete arg2; | |
11429 | } | |
11430 | { | |
11431 | if (temp3) | |
11432 | delete arg3; | |
11433 | } | |
11434 | return resultobj; | |
11435 | fail: | |
11436 | { | |
11437 | if (temp2) | |
11438 | delete arg2; | |
11439 | } | |
11440 | { | |
11441 | if (temp3) | |
11442 | delete arg3; | |
11443 | } | |
11444 | return NULL; | |
11445 | } | |
11446 | ||
11447 | ||
11448 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11449 | PyObject *resultobj; | |
11450 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11451 | wxString *arg2 = 0 ; | |
11452 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11453 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11454 | PyObject *result; | |
e811c8ce RD |
11455 | bool temp2 = False ; |
11456 | bool temp3 = False ; | |
d14a1e28 RD |
11457 | PyObject * obj0 = 0 ; |
11458 | PyObject * obj1 = 0 ; | |
11459 | PyObject * obj2 = 0 ; | |
11460 | char *kwnames[] = { | |
11461 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11462 | }; | |
11463 | ||
11464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11466 | { | |
11467 | arg2 = wxString_in_helper(obj1); | |
11468 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11469 | temp2 = True; |
d14a1e28 RD |
11470 | } |
11471 | if (obj2) { | |
11472 | { | |
11473 | arg3 = wxString_in_helper(obj2); | |
11474 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11475 | temp3 = True; |
d14a1e28 RD |
11476 | } |
11477 | } | |
11478 | { | |
11479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11480 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11481 | ||
11482 | wxPyEndAllowThreads(__tstate); | |
11483 | if (PyErr_Occurred()) SWIG_fail; | |
11484 | } | |
11485 | resultobj = result; | |
11486 | { | |
11487 | if (temp2) | |
11488 | delete arg2; | |
11489 | } | |
11490 | { | |
11491 | if (temp3) | |
11492 | delete arg3; | |
11493 | } | |
11494 | return resultobj; | |
11495 | fail: | |
11496 | { | |
11497 | if (temp2) | |
11498 | delete arg2; | |
11499 | } | |
11500 | { | |
11501 | if (temp3) | |
11502 | delete arg3; | |
11503 | } | |
11504 | return NULL; | |
11505 | } | |
11506 | ||
11507 | ||
11508 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11509 | PyObject *resultobj; | |
11510 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11511 | wxString *arg2 = 0 ; | |
11512 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11513 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11514 | PyObject *result; | |
e811c8ce RD |
11515 | bool temp2 = False ; |
11516 | bool temp3 = False ; | |
d14a1e28 RD |
11517 | PyObject * obj0 = 0 ; |
11518 | PyObject * obj1 = 0 ; | |
11519 | PyObject * obj2 = 0 ; | |
11520 | char *kwnames[] = { | |
11521 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11522 | }; | |
11523 | ||
11524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11526 | { | |
11527 | arg2 = wxString_in_helper(obj1); | |
11528 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11529 | temp2 = True; |
d14a1e28 RD |
11530 | } |
11531 | if (obj2) { | |
11532 | { | |
11533 | arg3 = wxString_in_helper(obj2); | |
11534 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11535 | temp3 = True; |
d14a1e28 RD |
11536 | } |
11537 | } | |
11538 | { | |
11539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11540 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11541 | ||
11542 | wxPyEndAllowThreads(__tstate); | |
11543 | if (PyErr_Occurred()) SWIG_fail; | |
11544 | } | |
11545 | resultobj = result; | |
11546 | { | |
11547 | if (temp2) | |
11548 | delete arg2; | |
11549 | } | |
11550 | { | |
11551 | if (temp3) | |
11552 | delete arg3; | |
11553 | } | |
11554 | return resultobj; | |
11555 | fail: | |
11556 | { | |
11557 | if (temp2) | |
11558 | delete arg2; | |
11559 | } | |
11560 | { | |
11561 | if (temp3) | |
11562 | delete arg3; | |
11563 | } | |
11564 | return NULL; | |
11565 | } | |
11566 | ||
11567 | ||
11568 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11569 | PyObject *resultobj; | |
11570 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11571 | wxString *arg2 = 0 ; | |
11572 | wxString *arg3 = 0 ; | |
e811c8ce | 11573 | bool arg4 = (bool) True ; |
d14a1e28 | 11574 | bool result; |
e811c8ce RD |
11575 | bool temp2 = False ; |
11576 | bool temp3 = False ; | |
d14a1e28 RD |
11577 | PyObject * obj0 = 0 ; |
11578 | PyObject * obj1 = 0 ; | |
11579 | PyObject * obj2 = 0 ; | |
11580 | PyObject * obj3 = 0 ; | |
11581 | char *kwnames[] = { | |
11582 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
11583 | }; | |
11584 | ||
11585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11587 | { | |
11588 | arg2 = wxString_in_helper(obj1); | |
11589 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11590 | temp2 = True; |
d14a1e28 RD |
11591 | } |
11592 | { | |
11593 | arg3 = wxString_in_helper(obj2); | |
11594 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11595 | temp3 = True; |
d14a1e28 RD |
11596 | } |
11597 | if (obj3) { | |
11598 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
11599 | if (PyErr_Occurred()) SWIG_fail; | |
11600 | } | |
11601 | { | |
11602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11603 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
11604 | ||
11605 | wxPyEndAllowThreads(__tstate); | |
11606 | if (PyErr_Occurred()) SWIG_fail; | |
11607 | } | |
11608 | resultobj = PyInt_FromLong((long)result); | |
11609 | { | |
11610 | if (temp2) | |
11611 | delete arg2; | |
11612 | } | |
11613 | { | |
11614 | if (temp3) | |
11615 | delete arg3; | |
11616 | } | |
11617 | return resultobj; | |
11618 | fail: | |
11619 | { | |
11620 | if (temp2) | |
11621 | delete arg2; | |
11622 | } | |
11623 | { | |
11624 | if (temp3) | |
11625 | delete arg3; | |
11626 | } | |
11627 | return NULL; | |
11628 | } | |
11629 | ||
11630 | ||
11631 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11632 | PyObject *resultobj; | |
11633 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11634 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
11635 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11636 | int arg3 = (int) 0 ; | |
11637 | bool result; | |
e811c8ce | 11638 | bool temp2 = False ; |
d14a1e28 RD |
11639 | PyObject * obj0 = 0 ; |
11640 | PyObject * obj1 = 0 ; | |
11641 | char *kwnames[] = { | |
11642 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
11643 | }; | |
11644 | ||
11645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11647 | if (obj1) { | |
11648 | { | |
11649 | arg2 = wxString_in_helper(obj1); | |
11650 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11651 | temp2 = True; |
d14a1e28 RD |
11652 | } |
11653 | } | |
11654 | { | |
11655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11656 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
11657 | ||
11658 | wxPyEndAllowThreads(__tstate); | |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
11660 | } | |
11661 | resultobj = PyInt_FromLong((long)result); | |
11662 | { | |
11663 | if (temp2) | |
11664 | delete arg2; | |
11665 | } | |
11666 | return resultobj; | |
11667 | fail: | |
11668 | { | |
11669 | if (temp2) | |
11670 | delete arg2; | |
11671 | } | |
11672 | return NULL; | |
11673 | } | |
11674 | ||
11675 | ||
11676 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11677 | PyObject *resultobj; | |
11678 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11679 | bool result; | |
11680 | PyObject * obj0 = 0 ; | |
11681 | char *kwnames[] = { | |
11682 | (char *) "self", NULL | |
11683 | }; | |
11684 | ||
11685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
11686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11687 | { | |
11688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11689 | result = (bool)(arg1)->Unassociate(); | |
11690 | ||
11691 | wxPyEndAllowThreads(__tstate); | |
11692 | if (PyErr_Occurred()) SWIG_fail; | |
11693 | } | |
11694 | resultobj = PyInt_FromLong((long)result); | |
11695 | return resultobj; | |
11696 | fail: | |
11697 | return NULL; | |
11698 | } | |
11699 | ||
11700 | ||
11701 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11702 | PyObject *resultobj; | |
11703 | wxString *arg1 = 0 ; | |
11704 | wxString *arg2 = 0 ; | |
11705 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11706 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11707 | wxString result; | |
e811c8ce RD |
11708 | bool temp1 = False ; |
11709 | bool temp2 = False ; | |
11710 | bool temp3 = False ; | |
d14a1e28 RD |
11711 | PyObject * obj0 = 0 ; |
11712 | PyObject * obj1 = 0 ; | |
11713 | PyObject * obj2 = 0 ; | |
11714 | char *kwnames[] = { | |
11715 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
11716 | }; | |
11717 | ||
11718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11719 | { | |
11720 | arg1 = wxString_in_helper(obj0); | |
11721 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11722 | temp1 = True; |
d14a1e28 RD |
11723 | } |
11724 | { | |
11725 | arg2 = wxString_in_helper(obj1); | |
11726 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11727 | temp2 = True; |
d14a1e28 RD |
11728 | } |
11729 | if (obj2) { | |
11730 | { | |
11731 | arg3 = wxString_in_helper(obj2); | |
11732 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11733 | temp3 = True; |
d14a1e28 RD |
11734 | } |
11735 | } | |
11736 | { | |
11737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11738 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11739 | ||
11740 | wxPyEndAllowThreads(__tstate); | |
11741 | if (PyErr_Occurred()) SWIG_fail; | |
11742 | } | |
11743 | { | |
11744 | #if wxUSE_UNICODE | |
11745 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11746 | #else | |
11747 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11748 | #endif | |
11749 | } | |
11750 | { | |
11751 | if (temp1) | |
11752 | delete arg1; | |
11753 | } | |
11754 | { | |
11755 | if (temp2) | |
11756 | delete arg2; | |
11757 | } | |
11758 | { | |
11759 | if (temp3) | |
11760 | delete arg3; | |
11761 | } | |
11762 | return resultobj; | |
11763 | fail: | |
11764 | { | |
11765 | if (temp1) | |
11766 | delete arg1; | |
11767 | } | |
11768 | { | |
11769 | if (temp2) | |
11770 | delete arg2; | |
11771 | } | |
11772 | { | |
11773 | if (temp3) | |
11774 | delete arg3; | |
11775 | } | |
11776 | return NULL; | |
11777 | } | |
11778 | ||
11779 | ||
11780 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
11781 | PyObject *obj; | |
11782 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11783 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
11784 | Py_INCREF(obj); | |
11785 | return Py_BuildValue((char *)""); | |
11786 | } | |
11787 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
11788 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
11789 | return 1; | |
11790 | } | |
11791 | ||
11792 | ||
11793 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
11794 | PyObject *pyobj; | |
11795 | ||
11796 | pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0); | |
11797 | return pyobj; | |
11798 | } | |
11799 | ||
11800 | ||
11801 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11802 | PyObject *resultobj; | |
11803 | wxString *arg1 = 0 ; | |
11804 | wxString *arg2 = 0 ; | |
11805 | bool result; | |
e811c8ce RD |
11806 | bool temp1 = False ; |
11807 | bool temp2 = False ; | |
d14a1e28 RD |
11808 | PyObject * obj0 = 0 ; |
11809 | PyObject * obj1 = 0 ; | |
11810 | char *kwnames[] = { | |
11811 | (char *) "mimeType",(char *) "wildcard", NULL | |
11812 | }; | |
11813 | ||
11814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
11815 | { | |
11816 | arg1 = wxString_in_helper(obj0); | |
11817 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11818 | temp1 = True; |
d14a1e28 RD |
11819 | } |
11820 | { | |
11821 | arg2 = wxString_in_helper(obj1); | |
11822 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11823 | temp2 = True; |
d14a1e28 RD |
11824 | } |
11825 | { | |
11826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11827 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
11828 | ||
11829 | wxPyEndAllowThreads(__tstate); | |
11830 | if (PyErr_Occurred()) SWIG_fail; | |
11831 | } | |
11832 | resultobj = PyInt_FromLong((long)result); | |
11833 | { | |
11834 | if (temp1) | |
11835 | delete arg1; | |
11836 | } | |
11837 | { | |
11838 | if (temp2) | |
11839 | delete arg2; | |
11840 | } | |
11841 | return resultobj; | |
11842 | fail: | |
11843 | { | |
11844 | if (temp1) | |
11845 | delete arg1; | |
11846 | } | |
11847 | { | |
11848 | if (temp2) | |
11849 | delete arg2; | |
11850 | } | |
11851 | return NULL; | |
11852 | } | |
11853 | ||
11854 | ||
11855 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11856 | PyObject *resultobj; | |
11857 | wxMimeTypesManager *result; | |
11858 | char *kwnames[] = { | |
11859 | NULL | |
11860 | }; | |
11861 | ||
11862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
11863 | { | |
11864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11865 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
11866 | ||
11867 | wxPyEndAllowThreads(__tstate); | |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
11869 | } | |
11870 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1); | |
11871 | return resultobj; | |
11872 | fail: | |
11873 | return NULL; | |
11874 | } | |
11875 | ||
11876 | ||
11877 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11878 | PyObject *resultobj; | |
11879 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11880 | int arg2 = (int) wxMAILCAP_ALL ; | |
11881 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11882 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 11883 | bool temp3 = False ; |
d14a1e28 RD |
11884 | PyObject * obj0 = 0 ; |
11885 | PyObject * obj2 = 0 ; | |
11886 | char *kwnames[] = { | |
11887 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
11888 | }; | |
11889 | ||
11890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:MimeTypesManager_Initialize",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
11891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11892 | if (obj2) { | |
11893 | { | |
11894 | arg3 = wxString_in_helper(obj2); | |
11895 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11896 | temp3 = True; |
d14a1e28 RD |
11897 | } |
11898 | } | |
11899 | { | |
11900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11901 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
11902 | ||
11903 | wxPyEndAllowThreads(__tstate); | |
11904 | if (PyErr_Occurred()) SWIG_fail; | |
11905 | } | |
11906 | Py_INCREF(Py_None); resultobj = Py_None; | |
11907 | { | |
11908 | if (temp3) | |
11909 | delete arg3; | |
11910 | } | |
11911 | return resultobj; | |
11912 | fail: | |
11913 | { | |
11914 | if (temp3) | |
11915 | delete arg3; | |
11916 | } | |
11917 | return NULL; | |
11918 | } | |
11919 | ||
11920 | ||
11921 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11922 | PyObject *resultobj; | |
11923 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11924 | PyObject * obj0 = 0 ; | |
11925 | char *kwnames[] = { | |
11926 | (char *) "self", NULL | |
11927 | }; | |
11928 | ||
11929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
11930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11931 | { | |
11932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11933 | (arg1)->ClearData(); | |
11934 | ||
11935 | wxPyEndAllowThreads(__tstate); | |
11936 | if (PyErr_Occurred()) SWIG_fail; | |
11937 | } | |
11938 | Py_INCREF(Py_None); resultobj = Py_None; | |
11939 | return resultobj; | |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
11945 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11946 | PyObject *resultobj; | |
11947 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11948 | wxString *arg2 = 0 ; | |
11949 | wxFileType *result; | |
e811c8ce | 11950 | bool temp2 = False ; |
d14a1e28 RD |
11951 | PyObject * obj0 = 0 ; |
11952 | PyObject * obj1 = 0 ; | |
11953 | char *kwnames[] = { | |
11954 | (char *) "self",(char *) "ext", NULL | |
11955 | }; | |
11956 | ||
11957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
11958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11959 | { | |
11960 | arg2 = wxString_in_helper(obj1); | |
11961 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11962 | temp2 = True; |
d14a1e28 RD |
11963 | } |
11964 | { | |
11965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11966 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
11967 | ||
11968 | wxPyEndAllowThreads(__tstate); | |
11969 | if (PyErr_Occurred()) SWIG_fail; | |
11970 | } | |
11971 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11972 | { | |
11973 | if (temp2) | |
11974 | delete arg2; | |
11975 | } | |
11976 | return resultobj; | |
11977 | fail: | |
11978 | { | |
11979 | if (temp2) | |
11980 | delete arg2; | |
11981 | } | |
11982 | return NULL; | |
11983 | } | |
11984 | ||
11985 | ||
11986 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11987 | PyObject *resultobj; | |
11988 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11989 | wxString *arg2 = 0 ; | |
11990 | wxFileType *result; | |
e811c8ce | 11991 | bool temp2 = False ; |
d14a1e28 RD |
11992 | PyObject * obj0 = 0 ; |
11993 | PyObject * obj1 = 0 ; | |
11994 | char *kwnames[] = { | |
11995 | (char *) "self",(char *) "mimeType", NULL | |
11996 | }; | |
11997 | ||
11998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
11999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12000 | { | |
12001 | arg2 = wxString_in_helper(obj1); | |
12002 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12003 | temp2 = True; |
d14a1e28 RD |
12004 | } |
12005 | { | |
12006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12007 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
12008 | ||
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
12012 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12013 | { | |
12014 | if (temp2) | |
12015 | delete arg2; | |
12016 | } | |
12017 | return resultobj; | |
12018 | fail: | |
12019 | { | |
12020 | if (temp2) | |
12021 | delete arg2; | |
12022 | } | |
12023 | return NULL; | |
12024 | } | |
12025 | ||
12026 | ||
12027 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12028 | PyObject *resultobj; | |
12029 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12030 | wxString *arg2 = 0 ; | |
e811c8ce | 12031 | bool arg3 = (bool) False ; |
d14a1e28 | 12032 | bool result; |
e811c8ce | 12033 | bool temp2 = False ; |
d14a1e28 RD |
12034 | PyObject * obj0 = 0 ; |
12035 | PyObject * obj1 = 0 ; | |
12036 | PyObject * obj2 = 0 ; | |
12037 | char *kwnames[] = { | |
12038 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
12039 | }; | |
12040 | ||
12041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12043 | { | |
12044 | arg2 = wxString_in_helper(obj1); | |
12045 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12046 | temp2 = True; |
d14a1e28 RD |
12047 | } |
12048 | if (obj2) { | |
12049 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12050 | if (PyErr_Occurred()) SWIG_fail; | |
12051 | } | |
12052 | { | |
12053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12054 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
12055 | ||
12056 | wxPyEndAllowThreads(__tstate); | |
12057 | if (PyErr_Occurred()) SWIG_fail; | |
12058 | } | |
12059 | resultobj = PyInt_FromLong((long)result); | |
12060 | { | |
12061 | if (temp2) | |
12062 | delete arg2; | |
12063 | } | |
12064 | return resultobj; | |
12065 | fail: | |
12066 | { | |
12067 | if (temp2) | |
12068 | delete arg2; | |
12069 | } | |
12070 | return NULL; | |
12071 | } | |
12072 | ||
12073 | ||
12074 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12075 | PyObject *resultobj; | |
12076 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12077 | wxString *arg2 = 0 ; | |
12078 | bool result; | |
e811c8ce | 12079 | bool temp2 = False ; |
d14a1e28 RD |
12080 | PyObject * obj0 = 0 ; |
12081 | PyObject * obj1 = 0 ; | |
12082 | char *kwnames[] = { | |
12083 | (char *) "self",(char *) "filename", NULL | |
12084 | }; | |
12085 | ||
12086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
12087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12088 | { | |
12089 | arg2 = wxString_in_helper(obj1); | |
12090 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12091 | temp2 = True; |
d14a1e28 RD |
12092 | } |
12093 | { | |
12094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12095 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
12096 | ||
12097 | wxPyEndAllowThreads(__tstate); | |
12098 | if (PyErr_Occurred()) SWIG_fail; | |
12099 | } | |
12100 | resultobj = PyInt_FromLong((long)result); | |
12101 | { | |
12102 | if (temp2) | |
12103 | delete arg2; | |
12104 | } | |
12105 | return resultobj; | |
12106 | fail: | |
12107 | { | |
12108 | if (temp2) | |
12109 | delete arg2; | |
12110 | } | |
12111 | return NULL; | |
12112 | } | |
12113 | ||
12114 | ||
12115 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12116 | PyObject *resultobj; | |
12117 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12118 | PyObject *result; | |
12119 | PyObject * obj0 = 0 ; | |
12120 | char *kwnames[] = { | |
12121 | (char *) "self", NULL | |
12122 | }; | |
12123 | ||
12124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
12125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12126 | { | |
12127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12128 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
12129 | ||
12130 | wxPyEndAllowThreads(__tstate); | |
12131 | if (PyErr_Occurred()) SWIG_fail; | |
12132 | } | |
12133 | resultobj = result; | |
12134 | return resultobj; | |
12135 | fail: | |
12136 | return NULL; | |
12137 | } | |
12138 | ||
12139 | ||
12140 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12141 | PyObject *resultobj; | |
12142 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12143 | wxFileTypeInfo *arg2 = 0 ; | |
12144 | PyObject * obj0 = 0 ; | |
12145 | PyObject * obj1 = 0 ; | |
12146 | char *kwnames[] = { | |
12147 | (char *) "self",(char *) "ft", NULL | |
12148 | }; | |
12149 | ||
12150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
12151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12152 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12153 | if (arg2 == NULL) { | |
12154 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12155 | } | |
12156 | { | |
12157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12158 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
12159 | ||
12160 | wxPyEndAllowThreads(__tstate); | |
12161 | if (PyErr_Occurred()) SWIG_fail; | |
12162 | } | |
12163 | Py_INCREF(Py_None); resultobj = Py_None; | |
12164 | return resultobj; | |
12165 | fail: | |
12166 | return NULL; | |
12167 | } | |
12168 | ||
12169 | ||
12170 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12171 | PyObject *resultobj; | |
12172 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12173 | wxFileTypeInfo *arg2 = 0 ; | |
12174 | wxFileType *result; | |
12175 | PyObject * obj0 = 0 ; | |
12176 | PyObject * obj1 = 0 ; | |
12177 | char *kwnames[] = { | |
12178 | (char *) "self",(char *) "ftInfo", NULL | |
12179 | }; | |
12180 | ||
12181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
12182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12183 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12184 | if (arg2 == NULL) { | |
12185 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12186 | } | |
12187 | { | |
12188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12189 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
12190 | ||
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
12194 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12195 | return resultobj; | |
12196 | fail: | |
12197 | return NULL; | |
12198 | } | |
12199 | ||
12200 | ||
12201 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12202 | PyObject *resultobj; | |
12203 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12204 | wxFileType *arg2 = (wxFileType *) 0 ; | |
12205 | bool result; | |
12206 | PyObject * obj0 = 0 ; | |
12207 | PyObject * obj1 = 0 ; | |
12208 | char *kwnames[] = { | |
12209 | (char *) "self",(char *) "ft", NULL | |
12210 | }; | |
12211 | ||
12212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
12213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12214 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12215 | { | |
12216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12217 | result = (bool)(arg1)->Unassociate(arg2); | |
12218 | ||
12219 | wxPyEndAllowThreads(__tstate); | |
12220 | if (PyErr_Occurred()) SWIG_fail; | |
12221 | } | |
12222 | resultobj = PyInt_FromLong((long)result); | |
12223 | return resultobj; | |
12224 | fail: | |
12225 | return NULL; | |
12226 | } | |
12227 | ||
12228 | ||
12229 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12230 | PyObject *resultobj; | |
12231 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12232 | PyObject * obj0 = 0 ; | |
12233 | char *kwnames[] = { | |
12234 | (char *) "self", NULL | |
12235 | }; | |
12236 | ||
12237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
12238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12239 | { | |
12240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12241 | delete arg1; | |
12242 | ||
12243 | wxPyEndAllowThreads(__tstate); | |
12244 | if (PyErr_Occurred()) SWIG_fail; | |
12245 | } | |
12246 | Py_INCREF(Py_None); resultobj = Py_None; | |
12247 | return resultobj; | |
12248 | fail: | |
12249 | return NULL; | |
12250 | } | |
12251 | ||
12252 | ||
12253 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
12254 | PyObject *obj; | |
12255 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12256 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
12257 | Py_INCREF(obj); | |
12258 | return Py_BuildValue((char *)""); | |
12259 | } | |
12260 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
12261 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
12262 | return 1; | |
12263 | } | |
12264 | ||
12265 | ||
12266 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
12267 | PyObject *pyobj; | |
12268 | ||
12269 | { | |
12270 | #if wxUSE_UNICODE | |
12271 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12272 | #else | |
12273 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12274 | #endif | |
12275 | } | |
12276 | return pyobj; | |
12277 | } | |
12278 | ||
12279 | ||
12280 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
12281 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
12282 | return 1; | |
12283 | } | |
12284 | ||
12285 | ||
12286 | static PyObject *_wrap_ART_MENU_get() { | |
12287 | PyObject *pyobj; | |
12288 | ||
12289 | { | |
12290 | #if wxUSE_UNICODE | |
12291 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12292 | #else | |
12293 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12294 | #endif | |
12295 | } | |
12296 | return pyobj; | |
12297 | } | |
12298 | ||
12299 | ||
12300 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
12301 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
12302 | return 1; | |
12303 | } | |
12304 | ||
12305 | ||
12306 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
12307 | PyObject *pyobj; | |
12308 | ||
12309 | { | |
12310 | #if wxUSE_UNICODE | |
12311 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12312 | #else | |
12313 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12314 | #endif | |
12315 | } | |
12316 | return pyobj; | |
12317 | } | |
12318 | ||
12319 | ||
12320 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
12321 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
12322 | return 1; | |
12323 | } | |
12324 | ||
12325 | ||
12326 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
12327 | PyObject *pyobj; | |
12328 | ||
12329 | { | |
12330 | #if wxUSE_UNICODE | |
12331 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12332 | #else | |
12333 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12334 | #endif | |
12335 | } | |
12336 | return pyobj; | |
12337 | } | |
12338 | ||
12339 | ||
12340 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
12341 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
12342 | return 1; | |
12343 | } | |
12344 | ||
12345 | ||
12346 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
12347 | PyObject *pyobj; | |
12348 | ||
12349 | { | |
12350 | #if wxUSE_UNICODE | |
12351 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12352 | #else | |
12353 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12354 | #endif | |
12355 | } | |
12356 | return pyobj; | |
12357 | } | |
12358 | ||
12359 | ||
12360 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
12361 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
12362 | return 1; | |
12363 | } | |
12364 | ||
12365 | ||
12366 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
12367 | PyObject *pyobj; | |
12368 | ||
12369 | { | |
12370 | #if wxUSE_UNICODE | |
12371 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12372 | #else | |
12373 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12374 | #endif | |
12375 | } | |
12376 | return pyobj; | |
12377 | } | |
12378 | ||
12379 | ||
12380 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
12381 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
12382 | return 1; | |
12383 | } | |
12384 | ||
12385 | ||
12386 | static PyObject *_wrap_ART_OTHER_get() { | |
12387 | PyObject *pyobj; | |
12388 | ||
12389 | { | |
12390 | #if wxUSE_UNICODE | |
12391 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12392 | #else | |
12393 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12394 | #endif | |
12395 | } | |
12396 | return pyobj; | |
12397 | } | |
12398 | ||
12399 | ||
12400 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
12401 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
12402 | return 1; | |
12403 | } | |
12404 | ||
12405 | ||
12406 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
12407 | PyObject *pyobj; | |
12408 | ||
12409 | { | |
12410 | #if wxUSE_UNICODE | |
12411 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12412 | #else | |
12413 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12414 | #endif | |
12415 | } | |
12416 | return pyobj; | |
12417 | } | |
12418 | ||
12419 | ||
12420 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
12421 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
12422 | return 1; | |
12423 | } | |
12424 | ||
12425 | ||
12426 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
12427 | PyObject *pyobj; | |
12428 | ||
12429 | { | |
12430 | #if wxUSE_UNICODE | |
12431 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12432 | #else | |
12433 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12434 | #endif | |
12435 | } | |
12436 | return pyobj; | |
12437 | } | |
12438 | ||
12439 | ||
12440 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
12441 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
12442 | return 1; | |
12443 | } | |
12444 | ||
12445 | ||
12446 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
12447 | PyObject *pyobj; | |
12448 | ||
12449 | { | |
12450 | #if wxUSE_UNICODE | |
12451 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12452 | #else | |
12453 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12454 | #endif | |
12455 | } | |
12456 | return pyobj; | |
12457 | } | |
12458 | ||
12459 | ||
12460 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
12461 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
12462 | return 1; | |
12463 | } | |
12464 | ||
12465 | ||
12466 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
12467 | PyObject *pyobj; | |
12468 | ||
12469 | { | |
12470 | #if wxUSE_UNICODE | |
12471 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12472 | #else | |
12473 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12474 | #endif | |
12475 | } | |
12476 | return pyobj; | |
12477 | } | |
12478 | ||
12479 | ||
12480 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
12481 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
12482 | return 1; | |
12483 | } | |
12484 | ||
12485 | ||
12486 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
12487 | PyObject *pyobj; | |
12488 | ||
12489 | { | |
12490 | #if wxUSE_UNICODE | |
12491 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12492 | #else | |
12493 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12494 | #endif | |
12495 | } | |
12496 | return pyobj; | |
12497 | } | |
12498 | ||
12499 | ||
12500 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
12501 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
12502 | return 1; | |
12503 | } | |
12504 | ||
12505 | ||
12506 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
12507 | PyObject *pyobj; | |
12508 | ||
12509 | { | |
12510 | #if wxUSE_UNICODE | |
12511 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12512 | #else | |
12513 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12514 | #endif | |
12515 | } | |
12516 | return pyobj; | |
12517 | } | |
12518 | ||
12519 | ||
12520 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
12521 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
12522 | return 1; | |
12523 | } | |
12524 | ||
12525 | ||
12526 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
12527 | PyObject *pyobj; | |
12528 | ||
12529 | { | |
12530 | #if wxUSE_UNICODE | |
12531 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12532 | #else | |
12533 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12534 | #endif | |
12535 | } | |
12536 | return pyobj; | |
12537 | } | |
12538 | ||
12539 | ||
12540 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
12541 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
12542 | return 1; | |
12543 | } | |
12544 | ||
12545 | ||
12546 | static PyObject *_wrap_ART_GO_BACK_get() { | |
12547 | PyObject *pyobj; | |
12548 | ||
12549 | { | |
12550 | #if wxUSE_UNICODE | |
12551 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12552 | #else | |
12553 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12554 | #endif | |
12555 | } | |
12556 | return pyobj; | |
12557 | } | |
12558 | ||
12559 | ||
12560 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
12561 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
12562 | return 1; | |
12563 | } | |
12564 | ||
12565 | ||
12566 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
12567 | PyObject *pyobj; | |
12568 | ||
12569 | { | |
12570 | #if wxUSE_UNICODE | |
12571 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12572 | #else | |
12573 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12574 | #endif | |
12575 | } | |
12576 | return pyobj; | |
12577 | } | |
12578 | ||
12579 | ||
12580 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
12581 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
12582 | return 1; | |
12583 | } | |
12584 | ||
12585 | ||
12586 | static PyObject *_wrap_ART_GO_UP_get() { | |
12587 | PyObject *pyobj; | |
12588 | ||
12589 | { | |
12590 | #if wxUSE_UNICODE | |
12591 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12592 | #else | |
12593 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12594 | #endif | |
12595 | } | |
12596 | return pyobj; | |
12597 | } | |
12598 | ||
12599 | ||
12600 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
12601 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
12602 | return 1; | |
12603 | } | |
12604 | ||
12605 | ||
12606 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
12607 | PyObject *pyobj; | |
12608 | ||
12609 | { | |
12610 | #if wxUSE_UNICODE | |
12611 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12612 | #else | |
12613 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12614 | #endif | |
12615 | } | |
12616 | return pyobj; | |
12617 | } | |
12618 | ||
12619 | ||
12620 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
12621 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
12622 | return 1; | |
12623 | } | |
12624 | ||
12625 | ||
12626 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
12627 | PyObject *pyobj; | |
12628 | ||
12629 | { | |
12630 | #if wxUSE_UNICODE | |
12631 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12632 | #else | |
12633 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12634 | #endif | |
12635 | } | |
12636 | return pyobj; | |
12637 | } | |
12638 | ||
12639 | ||
12640 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
12641 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
12642 | return 1; | |
12643 | } | |
12644 | ||
12645 | ||
12646 | static PyObject *_wrap_ART_GO_HOME_get() { | |
12647 | PyObject *pyobj; | |
12648 | ||
12649 | { | |
12650 | #if wxUSE_UNICODE | |
12651 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12652 | #else | |
12653 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12654 | #endif | |
12655 | } | |
12656 | return pyobj; | |
12657 | } | |
12658 | ||
12659 | ||
12660 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
12661 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
12662 | return 1; | |
12663 | } | |
12664 | ||
12665 | ||
12666 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
12667 | PyObject *pyobj; | |
12668 | ||
12669 | { | |
12670 | #if wxUSE_UNICODE | |
12671 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12672 | #else | |
12673 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12674 | #endif | |
12675 | } | |
12676 | return pyobj; | |
12677 | } | |
12678 | ||
12679 | ||
12680 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
12681 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
12682 | return 1; | |
12683 | } | |
12684 | ||
12685 | ||
12686 | static PyObject *_wrap_ART_PRINT_get() { | |
12687 | PyObject *pyobj; | |
12688 | ||
12689 | { | |
12690 | #if wxUSE_UNICODE | |
12691 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12692 | #else | |
12693 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12694 | #endif | |
12695 | } | |
12696 | return pyobj; | |
12697 | } | |
12698 | ||
12699 | ||
12700 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
12701 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
12702 | return 1; | |
12703 | } | |
12704 | ||
12705 | ||
12706 | static PyObject *_wrap_ART_HELP_get() { | |
12707 | PyObject *pyobj; | |
12708 | ||
12709 | { | |
12710 | #if wxUSE_UNICODE | |
12711 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12712 | #else | |
12713 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12714 | #endif | |
12715 | } | |
12716 | return pyobj; | |
12717 | } | |
12718 | ||
12719 | ||
12720 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
12721 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
12722 | return 1; | |
12723 | } | |
12724 | ||
12725 | ||
12726 | static PyObject *_wrap_ART_TIP_get() { | |
12727 | PyObject *pyobj; | |
12728 | ||
12729 | { | |
12730 | #if wxUSE_UNICODE | |
12731 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12732 | #else | |
12733 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12734 | #endif | |
12735 | } | |
12736 | return pyobj; | |
12737 | } | |
12738 | ||
12739 | ||
12740 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
12741 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
12742 | return 1; | |
12743 | } | |
12744 | ||
12745 | ||
12746 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
12747 | PyObject *pyobj; | |
12748 | ||
12749 | { | |
12750 | #if wxUSE_UNICODE | |
12751 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12752 | #else | |
12753 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12754 | #endif | |
12755 | } | |
12756 | return pyobj; | |
12757 | } | |
12758 | ||
12759 | ||
12760 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
12761 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
12762 | return 1; | |
12763 | } | |
12764 | ||
12765 | ||
12766 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
12767 | PyObject *pyobj; | |
12768 | ||
12769 | { | |
12770 | #if wxUSE_UNICODE | |
12771 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12772 | #else | |
12773 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12774 | #endif | |
12775 | } | |
12776 | return pyobj; | |
12777 | } | |
12778 | ||
12779 | ||
12780 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
12781 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
12782 | return 1; | |
12783 | } | |
12784 | ||
12785 | ||
12786 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
12787 | PyObject *pyobj; | |
12788 | ||
12789 | { | |
12790 | #if wxUSE_UNICODE | |
12791 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12792 | #else | |
12793 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12794 | #endif | |
12795 | } | |
12796 | return pyobj; | |
12797 | } | |
12798 | ||
12799 | ||
12800 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
12801 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
12802 | return 1; | |
12803 | } | |
12804 | ||
12805 | ||
12806 | static PyObject *_wrap_ART_FOLDER_get() { | |
12807 | PyObject *pyobj; | |
12808 | ||
12809 | { | |
12810 | #if wxUSE_UNICODE | |
12811 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12812 | #else | |
12813 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12814 | #endif | |
12815 | } | |
12816 | return pyobj; | |
12817 | } | |
12818 | ||
12819 | ||
12820 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
12821 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
12822 | return 1; | |
12823 | } | |
12824 | ||
12825 | ||
12826 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
12827 | PyObject *pyobj; | |
12828 | ||
12829 | { | |
12830 | #if wxUSE_UNICODE | |
12831 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12832 | #else | |
12833 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12834 | #endif | |
12835 | } | |
12836 | return pyobj; | |
12837 | } | |
12838 | ||
12839 | ||
12840 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
12841 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
12842 | return 1; | |
12843 | } | |
12844 | ||
12845 | ||
12846 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
12847 | PyObject *pyobj; | |
12848 | ||
12849 | { | |
12850 | #if wxUSE_UNICODE | |
12851 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12852 | #else | |
12853 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12854 | #endif | |
12855 | } | |
12856 | return pyobj; | |
12857 | } | |
12858 | ||
12859 | ||
12860 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
12861 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
12862 | return 1; | |
12863 | } | |
12864 | ||
12865 | ||
12866 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
12867 | PyObject *pyobj; | |
12868 | ||
12869 | { | |
12870 | #if wxUSE_UNICODE | |
12871 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12872 | #else | |
12873 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12874 | #endif | |
12875 | } | |
12876 | return pyobj; | |
12877 | } | |
12878 | ||
12879 | ||
12880 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
12881 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
12882 | return 1; | |
12883 | } | |
12884 | ||
12885 | ||
12886 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
12887 | PyObject *pyobj; | |
12888 | ||
12889 | { | |
12890 | #if wxUSE_UNICODE | |
12891 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12892 | #else | |
12893 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12894 | #endif | |
12895 | } | |
12896 | return pyobj; | |
12897 | } | |
12898 | ||
12899 | ||
12900 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
12901 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
12902 | return 1; | |
12903 | } | |
12904 | ||
12905 | ||
12906 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
12907 | PyObject *pyobj; | |
12908 | ||
12909 | { | |
12910 | #if wxUSE_UNICODE | |
12911 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12912 | #else | |
12913 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12914 | #endif | |
12915 | } | |
12916 | return pyobj; | |
12917 | } | |
12918 | ||
12919 | ||
12920 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
12921 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
12922 | return 1; | |
12923 | } | |
12924 | ||
12925 | ||
12926 | static PyObject *_wrap_ART_ERROR_get() { | |
12927 | PyObject *pyobj; | |
12928 | ||
12929 | { | |
12930 | #if wxUSE_UNICODE | |
12931 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12932 | #else | |
12933 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12934 | #endif | |
12935 | } | |
12936 | return pyobj; | |
12937 | } | |
12938 | ||
12939 | ||
12940 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
12941 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
12942 | return 1; | |
12943 | } | |
12944 | ||
12945 | ||
12946 | static PyObject *_wrap_ART_QUESTION_get() { | |
12947 | PyObject *pyobj; | |
12948 | ||
12949 | { | |
12950 | #if wxUSE_UNICODE | |
12951 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12952 | #else | |
12953 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12954 | #endif | |
12955 | } | |
12956 | return pyobj; | |
12957 | } | |
12958 | ||
12959 | ||
12960 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
12961 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
12962 | return 1; | |
12963 | } | |
12964 | ||
12965 | ||
12966 | static PyObject *_wrap_ART_WARNING_get() { | |
12967 | PyObject *pyobj; | |
12968 | ||
12969 | { | |
12970 | #if wxUSE_UNICODE | |
12971 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12972 | #else | |
12973 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12974 | #endif | |
12975 | } | |
12976 | return pyobj; | |
12977 | } | |
12978 | ||
12979 | ||
12980 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
12981 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
12982 | return 1; | |
12983 | } | |
12984 | ||
12985 | ||
12986 | static PyObject *_wrap_ART_INFORMATION_get() { | |
12987 | PyObject *pyobj; | |
12988 | ||
12989 | { | |
12990 | #if wxUSE_UNICODE | |
12991 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12992 | #else | |
12993 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12994 | #endif | |
12995 | } | |
12996 | return pyobj; | |
12997 | } | |
12998 | ||
12999 | ||
13000 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
13001 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
13002 | return 1; | |
13003 | } | |
13004 | ||
13005 | ||
13006 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
13007 | PyObject *pyobj; | |
13008 | ||
13009 | { | |
13010 | #if wxUSE_UNICODE | |
13011 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13012 | #else | |
13013 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13014 | #endif | |
13015 | } | |
13016 | return pyobj; | |
13017 | } | |
13018 | ||
13019 | ||
13020 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13021 | PyObject *resultobj; | |
13022 | wxPyArtProvider *result; | |
13023 | char *kwnames[] = { | |
13024 | NULL | |
13025 | }; | |
13026 | ||
13027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
13028 | { | |
13029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13030 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
13031 | ||
13032 | wxPyEndAllowThreads(__tstate); | |
13033 | if (PyErr_Occurred()) SWIG_fail; | |
13034 | } | |
13035 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1); | |
13036 | return resultobj; | |
13037 | fail: | |
13038 | return NULL; | |
13039 | } | |
13040 | ||
13041 | ||
d14a1e28 RD |
13042 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
13043 | PyObject *resultobj; | |
13044 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13045 | PyObject *arg2 = (PyObject *) 0 ; | |
13046 | PyObject *arg3 = (PyObject *) 0 ; | |
13047 | PyObject * obj0 = 0 ; | |
13048 | PyObject * obj1 = 0 ; | |
13049 | PyObject * obj2 = 0 ; | |
13050 | char *kwnames[] = { | |
13051 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13052 | }; | |
13053 | ||
13054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13056 | arg2 = obj1; | |
13057 | arg3 = obj2; | |
13058 | { | |
13059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13060 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13061 | ||
13062 | wxPyEndAllowThreads(__tstate); | |
13063 | if (PyErr_Occurred()) SWIG_fail; | |
13064 | } | |
13065 | Py_INCREF(Py_None); resultobj = Py_None; | |
13066 | return resultobj; | |
13067 | fail: | |
13068 | return NULL; | |
13069 | } | |
13070 | ||
13071 | ||
13072 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13073 | PyObject *resultobj; | |
13074 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13075 | PyObject * obj0 = 0 ; | |
13076 | char *kwnames[] = { | |
13077 | (char *) "provider", NULL | |
13078 | }; | |
13079 | ||
13080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
13081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13082 | { | |
13083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13084 | wxPyArtProvider::PushProvider(arg1); | |
13085 | ||
13086 | wxPyEndAllowThreads(__tstate); | |
13087 | if (PyErr_Occurred()) SWIG_fail; | |
13088 | } | |
13089 | Py_INCREF(Py_None); resultobj = Py_None; | |
13090 | return resultobj; | |
13091 | fail: | |
13092 | return NULL; | |
13093 | } | |
13094 | ||
13095 | ||
13096 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13097 | PyObject *resultobj; | |
13098 | bool result; | |
13099 | char *kwnames[] = { | |
13100 | NULL | |
13101 | }; | |
13102 | ||
13103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
13104 | { | |
13105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13106 | result = (bool)wxPyArtProvider::PopProvider(); | |
13107 | ||
13108 | wxPyEndAllowThreads(__tstate); | |
13109 | if (PyErr_Occurred()) SWIG_fail; | |
13110 | } | |
13111 | resultobj = PyInt_FromLong((long)result); | |
13112 | return resultobj; | |
13113 | fail: | |
13114 | return NULL; | |
13115 | } | |
13116 | ||
13117 | ||
13118 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13119 | PyObject *resultobj; | |
13120 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13121 | bool result; | |
13122 | PyObject * obj0 = 0 ; | |
13123 | char *kwnames[] = { | |
13124 | (char *) "provider", NULL | |
13125 | }; | |
13126 | ||
13127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
13128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13129 | { | |
13130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13131 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
13132 | ||
13133 | wxPyEndAllowThreads(__tstate); | |
13134 | if (PyErr_Occurred()) SWIG_fail; | |
13135 | } | |
13136 | resultobj = PyInt_FromLong((long)result); | |
13137 | return resultobj; | |
13138 | fail: | |
13139 | return NULL; | |
13140 | } | |
13141 | ||
13142 | ||
13143 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13144 | PyObject *resultobj; | |
13145 | wxString *arg1 = 0 ; | |
13146 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13147 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13148 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13149 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13150 | wxBitmap result; | |
e811c8ce RD |
13151 | bool temp1 = False ; |
13152 | bool temp2 = False ; | |
d14a1e28 RD |
13153 | wxSize temp3 ; |
13154 | PyObject * obj0 = 0 ; | |
13155 | PyObject * obj1 = 0 ; | |
13156 | PyObject * obj2 = 0 ; | |
13157 | char *kwnames[] = { | |
13158 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13159 | }; | |
13160 | ||
13161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13162 | { | |
13163 | arg1 = wxString_in_helper(obj0); | |
13164 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13165 | temp1 = True; |
d14a1e28 RD |
13166 | } |
13167 | if (obj1) { | |
13168 | { | |
13169 | arg2 = wxString_in_helper(obj1); | |
13170 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13171 | temp2 = True; |
d14a1e28 RD |
13172 | } |
13173 | } | |
13174 | if (obj2) { | |
13175 | { | |
13176 | arg3 = &temp3; | |
13177 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13178 | } | |
13179 | } | |
13180 | { | |
13181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13182 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13183 | ||
13184 | wxPyEndAllowThreads(__tstate); | |
13185 | if (PyErr_Occurred()) SWIG_fail; | |
13186 | } | |
13187 | { | |
13188 | wxBitmap * resultptr; | |
13189 | resultptr = new wxBitmap((wxBitmap &) result); | |
13190 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
13191 | } | |
13192 | { | |
13193 | if (temp1) | |
13194 | delete arg1; | |
13195 | } | |
13196 | { | |
13197 | if (temp2) | |
13198 | delete arg2; | |
13199 | } | |
13200 | return resultobj; | |
13201 | fail: | |
13202 | { | |
13203 | if (temp1) | |
13204 | delete arg1; | |
13205 | } | |
13206 | { | |
13207 | if (temp2) | |
13208 | delete arg2; | |
13209 | } | |
13210 | return NULL; | |
13211 | } | |
13212 | ||
13213 | ||
13214 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13215 | PyObject *resultobj; | |
13216 | wxString *arg1 = 0 ; | |
13217 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13218 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13219 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13220 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13221 | wxIcon result; | |
e811c8ce RD |
13222 | bool temp1 = False ; |
13223 | bool temp2 = False ; | |
d14a1e28 RD |
13224 | wxSize temp3 ; |
13225 | PyObject * obj0 = 0 ; | |
13226 | PyObject * obj1 = 0 ; | |
13227 | PyObject * obj2 = 0 ; | |
13228 | char *kwnames[] = { | |
13229 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13230 | }; | |
13231 | ||
13232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13233 | { | |
13234 | arg1 = wxString_in_helper(obj0); | |
13235 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13236 | temp1 = True; |
d14a1e28 RD |
13237 | } |
13238 | if (obj1) { | |
13239 | { | |
13240 | arg2 = wxString_in_helper(obj1); | |
13241 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13242 | temp2 = True; |
d14a1e28 RD |
13243 | } |
13244 | } | |
13245 | if (obj2) { | |
13246 | { | |
13247 | arg3 = &temp3; | |
13248 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13249 | } | |
13250 | } | |
13251 | { | |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13253 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13254 | ||
13255 | wxPyEndAllowThreads(__tstate); | |
13256 | if (PyErr_Occurred()) SWIG_fail; | |
13257 | } | |
13258 | { | |
13259 | wxIcon * resultptr; | |
13260 | resultptr = new wxIcon((wxIcon &) result); | |
13261 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
13262 | } | |
13263 | { | |
13264 | if (temp1) | |
13265 | delete arg1; | |
13266 | } | |
13267 | { | |
13268 | if (temp2) | |
13269 | delete arg2; | |
13270 | } | |
13271 | return resultobj; | |
13272 | fail: | |
13273 | { | |
13274 | if (temp1) | |
13275 | delete arg1; | |
13276 | } | |
13277 | { | |
13278 | if (temp2) | |
13279 | delete arg2; | |
13280 | } | |
13281 | return NULL; | |
13282 | } | |
13283 | ||
13284 | ||
1e0c8722 RD |
13285 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
13286 | PyObject *resultobj; | |
13287 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13288 | PyObject * obj0 = 0 ; | |
13289 | char *kwnames[] = { | |
13290 | (char *) "self", NULL | |
13291 | }; | |
13292 | ||
13293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
13294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13295 | { | |
13296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13297 | wxPyArtProvider_Destroy(arg1); | |
13298 | ||
13299 | wxPyEndAllowThreads(__tstate); | |
13300 | if (PyErr_Occurred()) SWIG_fail; | |
13301 | } | |
13302 | Py_INCREF(Py_None); resultobj = Py_None; | |
13303 | return resultobj; | |
13304 | fail: | |
13305 | return NULL; | |
13306 | } | |
13307 | ||
13308 | ||
d14a1e28 RD |
13309 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
13310 | PyObject *obj; | |
13311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13312 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
13313 | Py_INCREF(obj); | |
13314 | return Py_BuildValue((char *)""); | |
13315 | } | |
13316 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13317 | PyObject *resultobj; | |
13318 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13319 | PyObject * obj0 = 0 ; | |
13320 | char *kwnames[] = { | |
13321 | (char *) "self", NULL | |
13322 | }; | |
13323 | ||
13324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
13325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13326 | { | |
13327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13328 | delete arg1; | |
13329 | ||
13330 | wxPyEndAllowThreads(__tstate); | |
13331 | if (PyErr_Occurred()) SWIG_fail; | |
13332 | } | |
13333 | Py_INCREF(Py_None); resultobj = Py_None; | |
13334 | return resultobj; | |
13335 | fail: | |
13336 | return NULL; | |
13337 | } | |
13338 | ||
13339 | ||
13340 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13341 | PyObject *resultobj; | |
13342 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13343 | wxConfigBase *result; | |
13344 | PyObject * obj0 = 0 ; | |
13345 | char *kwnames[] = { | |
13346 | (char *) "pConfig", NULL | |
13347 | }; | |
13348 | ||
13349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
13350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13351 | { | |
13352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13353 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
13354 | ||
13355 | wxPyEndAllowThreads(__tstate); | |
13356 | if (PyErr_Occurred()) SWIG_fail; | |
13357 | } | |
13358 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13359 | return resultobj; | |
13360 | fail: | |
13361 | return NULL; | |
13362 | } | |
13363 | ||
13364 | ||
13365 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13366 | PyObject *resultobj; | |
e811c8ce | 13367 | bool arg1 = (bool) True ; |
d14a1e28 RD |
13368 | wxConfigBase *result; |
13369 | PyObject * obj0 = 0 ; | |
13370 | char *kwnames[] = { | |
13371 | (char *) "createOnDemand", NULL | |
13372 | }; | |
13373 | ||
13374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
13375 | if (obj0) { | |
13376 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
13377 | if (PyErr_Occurred()) SWIG_fail; | |
13378 | } | |
13379 | { | |
13380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13381 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
13382 | ||
13383 | wxPyEndAllowThreads(__tstate); | |
13384 | if (PyErr_Occurred()) SWIG_fail; | |
13385 | } | |
13386 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13387 | return resultobj; | |
13388 | fail: | |
13389 | return NULL; | |
13390 | } | |
13391 | ||
13392 | ||
13393 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13394 | PyObject *resultobj; | |
13395 | wxConfigBase *result; | |
13396 | char *kwnames[] = { | |
13397 | NULL | |
13398 | }; | |
13399 | ||
13400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
13401 | { | |
13402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13403 | result = (wxConfigBase *)wxConfigBase::Create(); | |
13404 | ||
13405 | wxPyEndAllowThreads(__tstate); | |
13406 | if (PyErr_Occurred()) SWIG_fail; | |
13407 | } | |
13408 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13409 | return resultobj; | |
13410 | fail: | |
13411 | return NULL; | |
13412 | } | |
13413 | ||
13414 | ||
13415 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13416 | PyObject *resultobj; | |
13417 | char *kwnames[] = { | |
13418 | NULL | |
13419 | }; | |
13420 | ||
13421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
13422 | { | |
13423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13424 | wxConfigBase::DontCreateOnDemand(); | |
13425 | ||
13426 | wxPyEndAllowThreads(__tstate); | |
13427 | if (PyErr_Occurred()) SWIG_fail; | |
13428 | } | |
13429 | Py_INCREF(Py_None); resultobj = Py_None; | |
13430 | return resultobj; | |
13431 | fail: | |
13432 | return NULL; | |
13433 | } | |
13434 | ||
13435 | ||
13436 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13437 | PyObject *resultobj; | |
13438 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13439 | wxString *arg2 = 0 ; | |
e811c8ce | 13440 | bool temp2 = False ; |
d14a1e28 RD |
13441 | PyObject * obj0 = 0 ; |
13442 | PyObject * obj1 = 0 ; | |
13443 | char *kwnames[] = { | |
13444 | (char *) "self",(char *) "strPath", NULL | |
13445 | }; | |
13446 | ||
13447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
13448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13449 | { | |
13450 | arg2 = wxString_in_helper(obj1); | |
13451 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13452 | temp2 = True; |
d14a1e28 RD |
13453 | } |
13454 | { | |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | (arg1)->SetPath((wxString const &)*arg2); | |
13457 | ||
13458 | wxPyEndAllowThreads(__tstate); | |
13459 | if (PyErr_Occurred()) SWIG_fail; | |
13460 | } | |
13461 | Py_INCREF(Py_None); resultobj = Py_None; | |
13462 | { | |
13463 | if (temp2) | |
13464 | delete arg2; | |
13465 | } | |
13466 | return resultobj; | |
13467 | fail: | |
13468 | { | |
13469 | if (temp2) | |
13470 | delete arg2; | |
13471 | } | |
13472 | return NULL; | |
13473 | } | |
13474 | ||
13475 | ||
13476 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13477 | PyObject *resultobj; | |
13478 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13479 | wxString *result; | |
13480 | PyObject * obj0 = 0 ; | |
13481 | char *kwnames[] = { | |
13482 | (char *) "self", NULL | |
13483 | }; | |
13484 | ||
13485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
13486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13487 | { | |
13488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13489 | { | |
13490 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
13491 | result = (wxString *) &_result_ref; | |
13492 | } | |
13493 | ||
13494 | wxPyEndAllowThreads(__tstate); | |
13495 | if (PyErr_Occurred()) SWIG_fail; | |
13496 | } | |
cc6dd355 RD |
13497 | { |
13498 | #if wxUSE_UNICODE | |
13499 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13500 | #else | |
13501 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13502 | #endif | |
13503 | } | |
d14a1e28 RD |
13504 | return resultobj; |
13505 | fail: | |
13506 | return NULL; | |
13507 | } | |
13508 | ||
13509 | ||
13510 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13511 | PyObject *resultobj; | |
13512 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13513 | PyObject *result; | |
13514 | PyObject * obj0 = 0 ; | |
13515 | char *kwnames[] = { | |
13516 | (char *) "self", NULL | |
13517 | }; | |
13518 | ||
13519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
13520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13521 | { | |
13522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13523 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
13524 | ||
13525 | wxPyEndAllowThreads(__tstate); | |
13526 | if (PyErr_Occurred()) SWIG_fail; | |
13527 | } | |
13528 | resultobj = result; | |
13529 | return resultobj; | |
13530 | fail: | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
13535 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13536 | PyObject *resultobj; | |
13537 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13538 | long arg2 ; | |
13539 | PyObject *result; | |
13540 | PyObject * obj0 = 0 ; | |
13541 | char *kwnames[] = { | |
13542 | (char *) "self",(char *) "index", NULL | |
13543 | }; | |
13544 | ||
13545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextGroup",kwnames,&obj0,&arg2)) goto fail; | |
13546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13547 | { | |
13548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13549 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
13550 | ||
13551 | wxPyEndAllowThreads(__tstate); | |
13552 | if (PyErr_Occurred()) SWIG_fail; | |
13553 | } | |
13554 | resultobj = result; | |
13555 | return resultobj; | |
13556 | fail: | |
13557 | return NULL; | |
13558 | } | |
13559 | ||
13560 | ||
13561 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13562 | PyObject *resultobj; | |
13563 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13564 | PyObject *result; | |
13565 | PyObject * obj0 = 0 ; | |
13566 | char *kwnames[] = { | |
13567 | (char *) "self", NULL | |
13568 | }; | |
13569 | ||
13570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
13571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13572 | { | |
13573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13574 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
13575 | ||
13576 | wxPyEndAllowThreads(__tstate); | |
13577 | if (PyErr_Occurred()) SWIG_fail; | |
13578 | } | |
13579 | resultobj = result; | |
13580 | return resultobj; | |
13581 | fail: | |
13582 | return NULL; | |
13583 | } | |
13584 | ||
13585 | ||
13586 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13587 | PyObject *resultobj; | |
13588 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13589 | long arg2 ; | |
13590 | PyObject *result; | |
13591 | PyObject * obj0 = 0 ; | |
13592 | char *kwnames[] = { | |
13593 | (char *) "self",(char *) "index", NULL | |
13594 | }; | |
13595 | ||
13596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextEntry",kwnames,&obj0,&arg2)) goto fail; | |
13597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13598 | { | |
13599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13600 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
13601 | ||
13602 | wxPyEndAllowThreads(__tstate); | |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
13604 | } | |
13605 | resultobj = result; | |
13606 | return resultobj; | |
13607 | fail: | |
13608 | return NULL; | |
13609 | } | |
13610 | ||
13611 | ||
13612 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13613 | PyObject *resultobj; | |
13614 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 13615 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13616 | size_t result; |
13617 | PyObject * obj0 = 0 ; | |
13618 | PyObject * obj1 = 0 ; | |
13619 | char *kwnames[] = { | |
13620 | (char *) "self",(char *) "bRecursive", NULL | |
13621 | }; | |
13622 | ||
13623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
13624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13625 | if (obj1) { | |
13626 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13627 | if (PyErr_Occurred()) SWIG_fail; | |
13628 | } | |
13629 | { | |
13630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13631 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
13632 | ||
13633 | wxPyEndAllowThreads(__tstate); | |
13634 | if (PyErr_Occurred()) SWIG_fail; | |
13635 | } | |
13636 | resultobj = PyInt_FromLong((long)result); | |
13637 | return resultobj; | |
13638 | fail: | |
13639 | return NULL; | |
13640 | } | |
13641 | ||
13642 | ||
13643 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13644 | PyObject *resultobj; | |
13645 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 13646 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13647 | size_t result; |
13648 | PyObject * obj0 = 0 ; | |
13649 | PyObject * obj1 = 0 ; | |
13650 | char *kwnames[] = { | |
13651 | (char *) "self",(char *) "bRecursive", NULL | |
13652 | }; | |
13653 | ||
13654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
13655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13656 | if (obj1) { | |
13657 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13658 | if (PyErr_Occurred()) SWIG_fail; | |
13659 | } | |
13660 | { | |
13661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13662 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
13663 | ||
13664 | wxPyEndAllowThreads(__tstate); | |
13665 | if (PyErr_Occurred()) SWIG_fail; | |
13666 | } | |
13667 | resultobj = PyInt_FromLong((long)result); | |
13668 | return resultobj; | |
13669 | fail: | |
13670 | return NULL; | |
13671 | } | |
13672 | ||
13673 | ||
13674 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13675 | PyObject *resultobj; | |
13676 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13677 | wxString *arg2 = 0 ; | |
13678 | bool result; | |
e811c8ce | 13679 | bool temp2 = False ; |
d14a1e28 RD |
13680 | PyObject * obj0 = 0 ; |
13681 | PyObject * obj1 = 0 ; | |
13682 | char *kwnames[] = { | |
13683 | (char *) "self",(char *) "strName", NULL | |
13684 | }; | |
13685 | ||
13686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
13687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13688 | { | |
13689 | arg2 = wxString_in_helper(obj1); | |
13690 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13691 | temp2 = True; |
d14a1e28 RD |
13692 | } |
13693 | { | |
13694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13695 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
13696 | ||
13697 | wxPyEndAllowThreads(__tstate); | |
13698 | if (PyErr_Occurred()) SWIG_fail; | |
13699 | } | |
13700 | resultobj = PyInt_FromLong((long)result); | |
13701 | { | |
13702 | if (temp2) | |
13703 | delete arg2; | |
13704 | } | |
13705 | return resultobj; | |
13706 | fail: | |
13707 | { | |
13708 | if (temp2) | |
13709 | delete arg2; | |
13710 | } | |
13711 | return NULL; | |
13712 | } | |
13713 | ||
13714 | ||
13715 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13716 | PyObject *resultobj; | |
13717 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13718 | wxString *arg2 = 0 ; | |
13719 | bool result; | |
e811c8ce | 13720 | bool temp2 = False ; |
d14a1e28 RD |
13721 | PyObject * obj0 = 0 ; |
13722 | PyObject * obj1 = 0 ; | |
13723 | char *kwnames[] = { | |
13724 | (char *) "self",(char *) "strName", NULL | |
13725 | }; | |
13726 | ||
13727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
13728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13729 | { | |
13730 | arg2 = wxString_in_helper(obj1); | |
13731 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13732 | temp2 = True; |
d14a1e28 RD |
13733 | } |
13734 | { | |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13736 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
13737 | ||
13738 | wxPyEndAllowThreads(__tstate); | |
13739 | if (PyErr_Occurred()) SWIG_fail; | |
13740 | } | |
13741 | resultobj = PyInt_FromLong((long)result); | |
13742 | { | |
13743 | if (temp2) | |
13744 | delete arg2; | |
13745 | } | |
13746 | return resultobj; | |
13747 | fail: | |
13748 | { | |
13749 | if (temp2) | |
13750 | delete arg2; | |
13751 | } | |
13752 | return NULL; | |
13753 | } | |
13754 | ||
13755 | ||
13756 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13757 | PyObject *resultobj; | |
13758 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13759 | wxString *arg2 = 0 ; | |
13760 | bool result; | |
e811c8ce | 13761 | bool temp2 = False ; |
d14a1e28 RD |
13762 | PyObject * obj0 = 0 ; |
13763 | PyObject * obj1 = 0 ; | |
13764 | char *kwnames[] = { | |
13765 | (char *) "self",(char *) "strName", NULL | |
13766 | }; | |
13767 | ||
13768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
13769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13770 | { | |
13771 | arg2 = wxString_in_helper(obj1); | |
13772 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13773 | temp2 = True; |
d14a1e28 RD |
13774 | } |
13775 | { | |
13776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13777 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
13778 | ||
13779 | wxPyEndAllowThreads(__tstate); | |
13780 | if (PyErr_Occurred()) SWIG_fail; | |
13781 | } | |
13782 | resultobj = PyInt_FromLong((long)result); | |
13783 | { | |
13784 | if (temp2) | |
13785 | delete arg2; | |
13786 | } | |
13787 | return resultobj; | |
13788 | fail: | |
13789 | { | |
13790 | if (temp2) | |
13791 | delete arg2; | |
13792 | } | |
13793 | return NULL; | |
13794 | } | |
13795 | ||
13796 | ||
13797 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13798 | PyObject *resultobj; | |
13799 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13800 | wxString *arg2 = 0 ; | |
13801 | int result; | |
e811c8ce | 13802 | bool temp2 = False ; |
d14a1e28 RD |
13803 | PyObject * obj0 = 0 ; |
13804 | PyObject * obj1 = 0 ; | |
13805 | char *kwnames[] = { | |
13806 | (char *) "self",(char *) "name", NULL | |
13807 | }; | |
13808 | ||
13809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
13810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13811 | { | |
13812 | arg2 = wxString_in_helper(obj1); | |
13813 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13814 | temp2 = True; |
d14a1e28 RD |
13815 | } |
13816 | { | |
13817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13818 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
13819 | ||
13820 | wxPyEndAllowThreads(__tstate); | |
13821 | if (PyErr_Occurred()) SWIG_fail; | |
13822 | } | |
13823 | resultobj = PyInt_FromLong((long)result); | |
13824 | { | |
13825 | if (temp2) | |
13826 | delete arg2; | |
13827 | } | |
13828 | return resultobj; | |
13829 | fail: | |
13830 | { | |
13831 | if (temp2) | |
13832 | delete arg2; | |
13833 | } | |
13834 | return NULL; | |
13835 | } | |
13836 | ||
13837 | ||
13838 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13839 | PyObject *resultobj; | |
13840 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13841 | wxString *arg2 = 0 ; | |
13842 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13843 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13844 | wxString result; | |
e811c8ce RD |
13845 | bool temp2 = False ; |
13846 | bool temp3 = False ; | |
d14a1e28 RD |
13847 | PyObject * obj0 = 0 ; |
13848 | PyObject * obj1 = 0 ; | |
13849 | PyObject * obj2 = 0 ; | |
13850 | char *kwnames[] = { | |
13851 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13852 | }; | |
13853 | ||
13854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13856 | { | |
13857 | arg2 = wxString_in_helper(obj1); | |
13858 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13859 | temp2 = True; |
d14a1e28 RD |
13860 | } |
13861 | if (obj2) { | |
13862 | { | |
13863 | arg3 = wxString_in_helper(obj2); | |
13864 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13865 | temp3 = True; |
d14a1e28 RD |
13866 | } |
13867 | } | |
13868 | { | |
13869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13870 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
13871 | ||
13872 | wxPyEndAllowThreads(__tstate); | |
13873 | if (PyErr_Occurred()) SWIG_fail; | |
13874 | } | |
13875 | { | |
13876 | #if wxUSE_UNICODE | |
13877 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13878 | #else | |
13879 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13880 | #endif | |
13881 | } | |
13882 | { | |
13883 | if (temp2) | |
13884 | delete arg2; | |
13885 | } | |
13886 | { | |
13887 | if (temp3) | |
13888 | delete arg3; | |
13889 | } | |
13890 | return resultobj; | |
13891 | fail: | |
13892 | { | |
13893 | if (temp2) | |
13894 | delete arg2; | |
13895 | } | |
13896 | { | |
13897 | if (temp3) | |
13898 | delete arg3; | |
13899 | } | |
13900 | return NULL; | |
13901 | } | |
13902 | ||
13903 | ||
13904 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13905 | PyObject *resultobj; | |
13906 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13907 | wxString *arg2 = 0 ; | |
13908 | long arg3 = (long) 0 ; | |
13909 | long result; | |
e811c8ce | 13910 | bool temp2 = False ; |
d14a1e28 RD |
13911 | PyObject * obj0 = 0 ; |
13912 | PyObject * obj1 = 0 ; | |
13913 | char *kwnames[] = { | |
13914 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13915 | }; | |
13916 | ||
13917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13919 | { | |
13920 | arg2 = wxString_in_helper(obj1); | |
13921 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13922 | temp2 = True; |
d14a1e28 RD |
13923 | } |
13924 | { | |
13925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13926 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
13927 | ||
13928 | wxPyEndAllowThreads(__tstate); | |
13929 | if (PyErr_Occurred()) SWIG_fail; | |
13930 | } | |
13931 | resultobj = PyInt_FromLong((long)result); | |
13932 | { | |
13933 | if (temp2) | |
13934 | delete arg2; | |
13935 | } | |
13936 | return resultobj; | |
13937 | fail: | |
13938 | { | |
13939 | if (temp2) | |
13940 | delete arg2; | |
13941 | } | |
13942 | return NULL; | |
13943 | } | |
13944 | ||
13945 | ||
13946 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13947 | PyObject *resultobj; | |
13948 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13949 | wxString *arg2 = 0 ; | |
13950 | double arg3 = (double) 0.0 ; | |
13951 | double result; | |
e811c8ce | 13952 | bool temp2 = False ; |
d14a1e28 RD |
13953 | PyObject * obj0 = 0 ; |
13954 | PyObject * obj1 = 0 ; | |
13955 | char *kwnames[] = { | |
13956 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13957 | }; | |
13958 | ||
13959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|d:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13961 | { | |
13962 | arg2 = wxString_in_helper(obj1); | |
13963 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13964 | temp2 = True; |
d14a1e28 RD |
13965 | } |
13966 | { | |
13967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13968 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
13969 | ||
13970 | wxPyEndAllowThreads(__tstate); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
13972 | } | |
13973 | resultobj = PyFloat_FromDouble(result); | |
13974 | { | |
13975 | if (temp2) | |
13976 | delete arg2; | |
13977 | } | |
13978 | return resultobj; | |
13979 | fail: | |
13980 | { | |
13981 | if (temp2) | |
13982 | delete arg2; | |
13983 | } | |
13984 | return NULL; | |
13985 | } | |
13986 | ||
13987 | ||
13988 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13989 | PyObject *resultobj; | |
13990 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13991 | wxString *arg2 = 0 ; | |
e811c8ce | 13992 | bool arg3 = (bool) False ; |
d14a1e28 | 13993 | bool result; |
e811c8ce | 13994 | bool temp2 = False ; |
d14a1e28 RD |
13995 | PyObject * obj0 = 0 ; |
13996 | PyObject * obj1 = 0 ; | |
13997 | PyObject * obj2 = 0 ; | |
13998 | char *kwnames[] = { | |
13999 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14000 | }; | |
14001 | ||
14002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14004 | { | |
14005 | arg2 = wxString_in_helper(obj1); | |
14006 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14007 | temp2 = True; |
d14a1e28 RD |
14008 | } |
14009 | if (obj2) { | |
14010 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14011 | if (PyErr_Occurred()) SWIG_fail; | |
14012 | } | |
14013 | { | |
14014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14015 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
14016 | ||
14017 | wxPyEndAllowThreads(__tstate); | |
14018 | if (PyErr_Occurred()) SWIG_fail; | |
14019 | } | |
14020 | resultobj = PyInt_FromLong((long)result); | |
14021 | { | |
14022 | if (temp2) | |
14023 | delete arg2; | |
14024 | } | |
14025 | return resultobj; | |
14026 | fail: | |
14027 | { | |
14028 | if (temp2) | |
14029 | delete arg2; | |
14030 | } | |
14031 | return NULL; | |
14032 | } | |
14033 | ||
14034 | ||
14035 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14036 | PyObject *resultobj; | |
14037 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14038 | wxString *arg2 = 0 ; | |
14039 | wxString *arg3 = 0 ; | |
14040 | bool result; | |
e811c8ce RD |
14041 | bool temp2 = False ; |
14042 | bool temp3 = False ; | |
d14a1e28 RD |
14043 | PyObject * obj0 = 0 ; |
14044 | PyObject * obj1 = 0 ; | |
14045 | PyObject * obj2 = 0 ; | |
14046 | char *kwnames[] = { | |
14047 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14048 | }; | |
14049 | ||
14050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14052 | { | |
14053 | arg2 = wxString_in_helper(obj1); | |
14054 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14055 | temp2 = True; |
d14a1e28 RD |
14056 | } |
14057 | { | |
14058 | arg3 = wxString_in_helper(obj2); | |
14059 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14060 | temp3 = True; |
d14a1e28 RD |
14061 | } |
14062 | { | |
14063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14064 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
14065 | ||
14066 | wxPyEndAllowThreads(__tstate); | |
14067 | if (PyErr_Occurred()) SWIG_fail; | |
14068 | } | |
14069 | resultobj = PyInt_FromLong((long)result); | |
14070 | { | |
14071 | if (temp2) | |
14072 | delete arg2; | |
14073 | } | |
14074 | { | |
14075 | if (temp3) | |
14076 | delete arg3; | |
14077 | } | |
14078 | return resultobj; | |
14079 | fail: | |
14080 | { | |
14081 | if (temp2) | |
14082 | delete arg2; | |
14083 | } | |
14084 | { | |
14085 | if (temp3) | |
14086 | delete arg3; | |
14087 | } | |
14088 | return NULL; | |
14089 | } | |
14090 | ||
14091 | ||
14092 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14093 | PyObject *resultobj; | |
14094 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14095 | wxString *arg2 = 0 ; | |
14096 | long arg3 ; | |
14097 | bool result; | |
e811c8ce | 14098 | bool temp2 = False ; |
d14a1e28 RD |
14099 | PyObject * obj0 = 0 ; |
14100 | PyObject * obj1 = 0 ; | |
14101 | char *kwnames[] = { | |
14102 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14103 | }; | |
14104 | ||
14105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14107 | { | |
14108 | arg2 = wxString_in_helper(obj1); | |
14109 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14110 | temp2 = True; |
d14a1e28 RD |
14111 | } |
14112 | { | |
14113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14114 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14115 | ||
14116 | wxPyEndAllowThreads(__tstate); | |
14117 | if (PyErr_Occurred()) SWIG_fail; | |
14118 | } | |
14119 | resultobj = PyInt_FromLong((long)result); | |
14120 | { | |
14121 | if (temp2) | |
14122 | delete arg2; | |
14123 | } | |
14124 | return resultobj; | |
14125 | fail: | |
14126 | { | |
14127 | if (temp2) | |
14128 | delete arg2; | |
14129 | } | |
14130 | return NULL; | |
14131 | } | |
14132 | ||
14133 | ||
14134 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14135 | PyObject *resultobj; | |
14136 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14137 | wxString *arg2 = 0 ; | |
14138 | double arg3 ; | |
14139 | bool result; | |
e811c8ce | 14140 | bool temp2 = False ; |
d14a1e28 RD |
14141 | PyObject * obj0 = 0 ; |
14142 | PyObject * obj1 = 0 ; | |
14143 | char *kwnames[] = { | |
14144 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14145 | }; | |
14146 | ||
14147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14149 | { | |
14150 | arg2 = wxString_in_helper(obj1); | |
14151 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14152 | temp2 = True; |
d14a1e28 RD |
14153 | } |
14154 | { | |
14155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14156 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14157 | ||
14158 | wxPyEndAllowThreads(__tstate); | |
14159 | if (PyErr_Occurred()) SWIG_fail; | |
14160 | } | |
14161 | resultobj = PyInt_FromLong((long)result); | |
14162 | { | |
14163 | if (temp2) | |
14164 | delete arg2; | |
14165 | } | |
14166 | return resultobj; | |
14167 | fail: | |
14168 | { | |
14169 | if (temp2) | |
14170 | delete arg2; | |
14171 | } | |
14172 | return NULL; | |
14173 | } | |
14174 | ||
14175 | ||
14176 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14177 | PyObject *resultobj; | |
14178 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14179 | wxString *arg2 = 0 ; | |
14180 | bool arg3 ; | |
14181 | bool result; | |
e811c8ce | 14182 | bool temp2 = False ; |
d14a1e28 RD |
14183 | PyObject * obj0 = 0 ; |
14184 | PyObject * obj1 = 0 ; | |
14185 | PyObject * obj2 = 0 ; | |
14186 | char *kwnames[] = { | |
14187 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14188 | }; | |
14189 | ||
14190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14192 | { | |
14193 | arg2 = wxString_in_helper(obj1); | |
14194 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14195 | temp2 = True; |
d14a1e28 RD |
14196 | } |
14197 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14198 | if (PyErr_Occurred()) SWIG_fail; | |
14199 | { | |
14200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14201 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14202 | ||
14203 | wxPyEndAllowThreads(__tstate); | |
14204 | if (PyErr_Occurred()) SWIG_fail; | |
14205 | } | |
14206 | resultobj = PyInt_FromLong((long)result); | |
14207 | { | |
14208 | if (temp2) | |
14209 | delete arg2; | |
14210 | } | |
14211 | return resultobj; | |
14212 | fail: | |
14213 | { | |
14214 | if (temp2) | |
14215 | delete arg2; | |
14216 | } | |
14217 | return NULL; | |
14218 | } | |
14219 | ||
14220 | ||
14221 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14222 | PyObject *resultobj; | |
14223 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14224 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14225 | bool result; |
14226 | PyObject * obj0 = 0 ; | |
14227 | PyObject * obj1 = 0 ; | |
14228 | char *kwnames[] = { | |
14229 | (char *) "self",(char *) "bCurrentOnly", NULL | |
14230 | }; | |
14231 | ||
14232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
14233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14234 | if (obj1) { | |
14235 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14236 | if (PyErr_Occurred()) SWIG_fail; | |
14237 | } | |
14238 | { | |
14239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14240 | result = (bool)(arg1)->Flush(arg2); | |
14241 | ||
14242 | wxPyEndAllowThreads(__tstate); | |
14243 | if (PyErr_Occurred()) SWIG_fail; | |
14244 | } | |
14245 | resultobj = PyInt_FromLong((long)result); | |
14246 | return resultobj; | |
14247 | fail: | |
14248 | return NULL; | |
14249 | } | |
14250 | ||
14251 | ||
14252 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14253 | PyObject *resultobj; | |
14254 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14255 | wxString *arg2 = 0 ; | |
14256 | wxString *arg3 = 0 ; | |
14257 | bool result; | |
e811c8ce RD |
14258 | bool temp2 = False ; |
14259 | bool temp3 = False ; | |
d14a1e28 RD |
14260 | PyObject * obj0 = 0 ; |
14261 | PyObject * obj1 = 0 ; | |
14262 | PyObject * obj2 = 0 ; | |
14263 | char *kwnames[] = { | |
14264 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14265 | }; | |
14266 | ||
14267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14269 | { | |
14270 | arg2 = wxString_in_helper(obj1); | |
14271 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14272 | temp2 = True; |
d14a1e28 RD |
14273 | } |
14274 | { | |
14275 | arg3 = wxString_in_helper(obj2); | |
14276 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14277 | temp3 = True; |
d14a1e28 RD |
14278 | } |
14279 | { | |
14280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14281 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
14282 | ||
14283 | wxPyEndAllowThreads(__tstate); | |
14284 | if (PyErr_Occurred()) SWIG_fail; | |
14285 | } | |
14286 | resultobj = PyInt_FromLong((long)result); | |
14287 | { | |
14288 | if (temp2) | |
14289 | delete arg2; | |
14290 | } | |
14291 | { | |
14292 | if (temp3) | |
14293 | delete arg3; | |
14294 | } | |
14295 | return resultobj; | |
14296 | fail: | |
14297 | { | |
14298 | if (temp2) | |
14299 | delete arg2; | |
14300 | } | |
14301 | { | |
14302 | if (temp3) | |
14303 | delete arg3; | |
14304 | } | |
14305 | return NULL; | |
14306 | } | |
14307 | ||
14308 | ||
14309 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14310 | PyObject *resultobj; | |
14311 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14312 | wxString *arg2 = 0 ; | |
14313 | wxString *arg3 = 0 ; | |
14314 | bool result; | |
e811c8ce RD |
14315 | bool temp2 = False ; |
14316 | bool temp3 = False ; | |
d14a1e28 RD |
14317 | PyObject * obj0 = 0 ; |
14318 | PyObject * obj1 = 0 ; | |
14319 | PyObject * obj2 = 0 ; | |
14320 | char *kwnames[] = { | |
14321 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14322 | }; | |
14323 | ||
14324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14326 | { | |
14327 | arg2 = wxString_in_helper(obj1); | |
14328 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14329 | temp2 = True; |
d14a1e28 RD |
14330 | } |
14331 | { | |
14332 | arg3 = wxString_in_helper(obj2); | |
14333 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14334 | temp3 = True; |
d14a1e28 RD |
14335 | } |
14336 | { | |
14337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14338 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
14339 | ||
14340 | wxPyEndAllowThreads(__tstate); | |
14341 | if (PyErr_Occurred()) SWIG_fail; | |
14342 | } | |
14343 | resultobj = PyInt_FromLong((long)result); | |
14344 | { | |
14345 | if (temp2) | |
14346 | delete arg2; | |
14347 | } | |
14348 | { | |
14349 | if (temp3) | |
14350 | delete arg3; | |
14351 | } | |
14352 | return resultobj; | |
14353 | fail: | |
14354 | { | |
14355 | if (temp2) | |
14356 | delete arg2; | |
14357 | } | |
14358 | { | |
14359 | if (temp3) | |
14360 | delete arg3; | |
14361 | } | |
14362 | return NULL; | |
14363 | } | |
14364 | ||
14365 | ||
14366 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14367 | PyObject *resultobj; | |
14368 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14369 | wxString *arg2 = 0 ; | |
e811c8ce | 14370 | bool arg3 = (bool) True ; |
d14a1e28 | 14371 | bool result; |
e811c8ce | 14372 | bool temp2 = False ; |
d14a1e28 RD |
14373 | PyObject * obj0 = 0 ; |
14374 | PyObject * obj1 = 0 ; | |
14375 | PyObject * obj2 = 0 ; | |
14376 | char *kwnames[] = { | |
14377 | (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL | |
14378 | }; | |
14379 | ||
14380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14382 | { | |
14383 | arg2 = wxString_in_helper(obj1); | |
14384 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14385 | temp2 = True; |
d14a1e28 RD |
14386 | } |
14387 | if (obj2) { | |
14388 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14389 | if (PyErr_Occurred()) SWIG_fail; | |
14390 | } | |
14391 | { | |
14392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14393 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
14394 | ||
14395 | wxPyEndAllowThreads(__tstate); | |
14396 | if (PyErr_Occurred()) SWIG_fail; | |
14397 | } | |
14398 | resultobj = PyInt_FromLong((long)result); | |
14399 | { | |
14400 | if (temp2) | |
14401 | delete arg2; | |
14402 | } | |
14403 | return resultobj; | |
14404 | fail: | |
14405 | { | |
14406 | if (temp2) | |
14407 | delete arg2; | |
14408 | } | |
14409 | return NULL; | |
14410 | } | |
14411 | ||
14412 | ||
14413 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14414 | PyObject *resultobj; | |
14415 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14416 | wxString *arg2 = 0 ; | |
14417 | bool result; | |
e811c8ce | 14418 | bool temp2 = False ; |
d14a1e28 RD |
14419 | PyObject * obj0 = 0 ; |
14420 | PyObject * obj1 = 0 ; | |
14421 | char *kwnames[] = { | |
14422 | (char *) "self",(char *) "key", NULL | |
14423 | }; | |
14424 | ||
14425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
14426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14427 | { | |
14428 | arg2 = wxString_in_helper(obj1); | |
14429 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14430 | temp2 = True; |
d14a1e28 RD |
14431 | } |
14432 | { | |
14433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14434 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
14435 | ||
14436 | wxPyEndAllowThreads(__tstate); | |
14437 | if (PyErr_Occurred()) SWIG_fail; | |
14438 | } | |
14439 | resultobj = PyInt_FromLong((long)result); | |
14440 | { | |
14441 | if (temp2) | |
14442 | delete arg2; | |
14443 | } | |
14444 | return resultobj; | |
14445 | fail: | |
14446 | { | |
14447 | if (temp2) | |
14448 | delete arg2; | |
14449 | } | |
14450 | return NULL; | |
14451 | } | |
14452 | ||
14453 | ||
14454 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14455 | PyObject *resultobj; | |
14456 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14457 | bool result; | |
14458 | PyObject * obj0 = 0 ; | |
14459 | char *kwnames[] = { | |
14460 | (char *) "self", NULL | |
14461 | }; | |
14462 | ||
14463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
14464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14465 | { | |
14466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14467 | result = (bool)(arg1)->DeleteAll(); | |
14468 | ||
14469 | wxPyEndAllowThreads(__tstate); | |
14470 | if (PyErr_Occurred()) SWIG_fail; | |
14471 | } | |
14472 | resultobj = PyInt_FromLong((long)result); | |
14473 | return resultobj; | |
14474 | fail: | |
14475 | return NULL; | |
14476 | } | |
14477 | ||
14478 | ||
14479 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14480 | PyObject *resultobj; | |
14481 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14482 | bool result; | |
14483 | PyObject * obj0 = 0 ; | |
14484 | char *kwnames[] = { | |
14485 | (char *) "self", NULL | |
14486 | }; | |
14487 | ||
14488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
14489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14490 | { | |
14491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14492 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
14493 | ||
14494 | wxPyEndAllowThreads(__tstate); | |
14495 | if (PyErr_Occurred()) SWIG_fail; | |
14496 | } | |
14497 | resultobj = PyInt_FromLong((long)result); | |
14498 | return resultobj; | |
14499 | fail: | |
14500 | return NULL; | |
14501 | } | |
14502 | ||
14503 | ||
14504 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14505 | PyObject *resultobj; | |
14506 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14507 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14508 | PyObject * obj0 = 0 ; |
14509 | PyObject * obj1 = 0 ; | |
14510 | char *kwnames[] = { | |
14511 | (char *) "self",(char *) "bDoIt", NULL | |
14512 | }; | |
14513 | ||
14514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14516 | if (obj1) { | |
14517 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14518 | if (PyErr_Occurred()) SWIG_fail; | |
14519 | } | |
14520 | { | |
14521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14522 | (arg1)->SetExpandEnvVars(arg2); | |
14523 | ||
14524 | wxPyEndAllowThreads(__tstate); | |
14525 | if (PyErr_Occurred()) SWIG_fail; | |
14526 | } | |
14527 | Py_INCREF(Py_None); resultobj = Py_None; | |
14528 | return resultobj; | |
14529 | fail: | |
14530 | return NULL; | |
14531 | } | |
14532 | ||
14533 | ||
14534 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14535 | PyObject *resultobj; | |
14536 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14537 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14538 | PyObject * obj0 = 0 ; |
14539 | PyObject * obj1 = 0 ; | |
14540 | char *kwnames[] = { | |
14541 | (char *) "self",(char *) "bDoIt", NULL | |
14542 | }; | |
14543 | ||
14544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
14545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14546 | if (obj1) { | |
14547 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14548 | if (PyErr_Occurred()) SWIG_fail; | |
14549 | } | |
14550 | { | |
14551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14552 | (arg1)->SetRecordDefaults(arg2); | |
14553 | ||
14554 | wxPyEndAllowThreads(__tstate); | |
14555 | if (PyErr_Occurred()) SWIG_fail; | |
14556 | } | |
14557 | Py_INCREF(Py_None); resultobj = Py_None; | |
14558 | return resultobj; | |
14559 | fail: | |
14560 | return NULL; | |
14561 | } | |
14562 | ||
14563 | ||
14564 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14565 | PyObject *resultobj; | |
14566 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14567 | bool result; | |
14568 | PyObject * obj0 = 0 ; | |
14569 | char *kwnames[] = { | |
14570 | (char *) "self", NULL | |
14571 | }; | |
14572 | ||
14573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
14574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14575 | { | |
14576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14577 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
14578 | ||
14579 | wxPyEndAllowThreads(__tstate); | |
14580 | if (PyErr_Occurred()) SWIG_fail; | |
14581 | } | |
14582 | resultobj = PyInt_FromLong((long)result); | |
14583 | return resultobj; | |
14584 | fail: | |
14585 | return NULL; | |
14586 | } | |
14587 | ||
14588 | ||
14589 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14590 | PyObject *resultobj; | |
14591 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14592 | wxString *arg2 = 0 ; | |
14593 | wxString result; | |
e811c8ce | 14594 | bool temp2 = False ; |
d14a1e28 RD |
14595 | PyObject * obj0 = 0 ; |
14596 | PyObject * obj1 = 0 ; | |
14597 | char *kwnames[] = { | |
14598 | (char *) "self",(char *) "str", NULL | |
14599 | }; | |
14600 | ||
14601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14603 | { | |
14604 | arg2 = wxString_in_helper(obj1); | |
14605 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14606 | temp2 = True; |
d14a1e28 RD |
14607 | } |
14608 | { | |
14609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14610 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
14611 | ||
14612 | wxPyEndAllowThreads(__tstate); | |
14613 | if (PyErr_Occurred()) SWIG_fail; | |
14614 | } | |
14615 | { | |
14616 | #if wxUSE_UNICODE | |
14617 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14618 | #else | |
14619 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14620 | #endif | |
14621 | } | |
14622 | { | |
14623 | if (temp2) | |
14624 | delete arg2; | |
14625 | } | |
14626 | return resultobj; | |
14627 | fail: | |
14628 | { | |
14629 | if (temp2) | |
14630 | delete arg2; | |
14631 | } | |
14632 | return NULL; | |
14633 | } | |
14634 | ||
14635 | ||
14636 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14637 | PyObject *resultobj; | |
14638 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14639 | wxString result; | |
14640 | PyObject * obj0 = 0 ; | |
14641 | char *kwnames[] = { | |
14642 | (char *) "self", NULL | |
14643 | }; | |
14644 | ||
14645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
14646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14647 | { | |
14648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14649 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
14650 | ||
14651 | wxPyEndAllowThreads(__tstate); | |
14652 | if (PyErr_Occurred()) SWIG_fail; | |
14653 | } | |
14654 | { | |
14655 | #if wxUSE_UNICODE | |
14656 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14657 | #else | |
14658 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14659 | #endif | |
14660 | } | |
14661 | return resultobj; | |
14662 | fail: | |
14663 | return NULL; | |
14664 | } | |
14665 | ||
14666 | ||
14667 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14668 | PyObject *resultobj; | |
14669 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14670 | wxString result; | |
14671 | PyObject * obj0 = 0 ; | |
14672 | char *kwnames[] = { | |
14673 | (char *) "self", NULL | |
14674 | }; | |
14675 | ||
14676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
14677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14678 | { | |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14680 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
14681 | ||
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
14685 | { | |
14686 | #if wxUSE_UNICODE | |
14687 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14688 | #else | |
14689 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14690 | #endif | |
14691 | } | |
14692 | return resultobj; | |
14693 | fail: | |
14694 | return NULL; | |
14695 | } | |
14696 | ||
14697 | ||
14698 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14699 | PyObject *resultobj; | |
14700 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14701 | wxString *arg2 = 0 ; | |
e811c8ce | 14702 | bool temp2 = False ; |
d14a1e28 RD |
14703 | PyObject * obj0 = 0 ; |
14704 | PyObject * obj1 = 0 ; | |
14705 | char *kwnames[] = { | |
14706 | (char *) "self",(char *) "appName", NULL | |
14707 | }; | |
14708 | ||
14709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
14710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14711 | { | |
14712 | arg2 = wxString_in_helper(obj1); | |
14713 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14714 | temp2 = True; |
d14a1e28 RD |
14715 | } |
14716 | { | |
14717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14718 | (arg1)->SetAppName((wxString const &)*arg2); | |
14719 | ||
14720 | wxPyEndAllowThreads(__tstate); | |
14721 | if (PyErr_Occurred()) SWIG_fail; | |
14722 | } | |
14723 | Py_INCREF(Py_None); resultobj = Py_None; | |
14724 | { | |
14725 | if (temp2) | |
14726 | delete arg2; | |
14727 | } | |
14728 | return resultobj; | |
14729 | fail: | |
14730 | { | |
14731 | if (temp2) | |
14732 | delete arg2; | |
14733 | } | |
14734 | return NULL; | |
14735 | } | |
14736 | ||
14737 | ||
14738 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14739 | PyObject *resultobj; | |
14740 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14741 | wxString *arg2 = 0 ; | |
e811c8ce | 14742 | bool temp2 = False ; |
d14a1e28 RD |
14743 | PyObject * obj0 = 0 ; |
14744 | PyObject * obj1 = 0 ; | |
14745 | char *kwnames[] = { | |
14746 | (char *) "self",(char *) "vendorName", NULL | |
14747 | }; | |
14748 | ||
14749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
14750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14751 | { | |
14752 | arg2 = wxString_in_helper(obj1); | |
14753 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14754 | temp2 = True; |
d14a1e28 RD |
14755 | } |
14756 | { | |
14757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14758 | (arg1)->SetVendorName((wxString const &)*arg2); | |
14759 | ||
14760 | wxPyEndAllowThreads(__tstate); | |
14761 | if (PyErr_Occurred()) SWIG_fail; | |
14762 | } | |
14763 | Py_INCREF(Py_None); resultobj = Py_None; | |
14764 | { | |
14765 | if (temp2) | |
14766 | delete arg2; | |
14767 | } | |
14768 | return resultobj; | |
14769 | fail: | |
14770 | { | |
14771 | if (temp2) | |
14772 | delete arg2; | |
14773 | } | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
14778 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14779 | PyObject *resultobj; | |
14780 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14781 | long arg2 ; | |
14782 | PyObject * obj0 = 0 ; | |
14783 | char *kwnames[] = { | |
14784 | (char *) "self",(char *) "style", NULL | |
14785 | }; | |
14786 | ||
14787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
14788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14789 | { | |
14790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14791 | (arg1)->SetStyle(arg2); | |
14792 | ||
14793 | wxPyEndAllowThreads(__tstate); | |
14794 | if (PyErr_Occurred()) SWIG_fail; | |
14795 | } | |
14796 | Py_INCREF(Py_None); resultobj = Py_None; | |
14797 | return resultobj; | |
14798 | fail: | |
14799 | return NULL; | |
14800 | } | |
14801 | ||
14802 | ||
14803 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14804 | PyObject *resultobj; | |
14805 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14806 | long result; | |
14807 | PyObject * obj0 = 0 ; | |
14808 | char *kwnames[] = { | |
14809 | (char *) "self", NULL | |
14810 | }; | |
14811 | ||
14812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
14813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14814 | { | |
14815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14816 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
14817 | ||
14818 | wxPyEndAllowThreads(__tstate); | |
14819 | if (PyErr_Occurred()) SWIG_fail; | |
14820 | } | |
14821 | resultobj = PyInt_FromLong((long)result); | |
14822 | return resultobj; | |
14823 | fail: | |
14824 | return NULL; | |
14825 | } | |
14826 | ||
14827 | ||
14828 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
14829 | PyObject *obj; | |
14830 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14831 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
14832 | Py_INCREF(obj); | |
14833 | return Py_BuildValue((char *)""); | |
14834 | } | |
14835 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14836 | PyObject *resultobj; | |
14837 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14838 | wxString *arg2 = 0 ; | |
14839 | wxConfigPathChanger *result; | |
e811c8ce | 14840 | bool temp2 = False ; |
d14a1e28 RD |
14841 | PyObject * obj0 = 0 ; |
14842 | PyObject * obj1 = 0 ; | |
14843 | char *kwnames[] = { | |
14844 | (char *) "pContainer",(char *) "strEntry", NULL | |
14845 | }; | |
14846 | ||
14847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
14848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14849 | { | |
14850 | arg2 = wxString_in_helper(obj1); | |
14851 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14852 | temp2 = True; |
d14a1e28 RD |
14853 | } |
14854 | { | |
14855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14856 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
14857 | ||
14858 | wxPyEndAllowThreads(__tstate); | |
14859 | if (PyErr_Occurred()) SWIG_fail; | |
14860 | } | |
14861 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1); | |
14862 | { | |
14863 | if (temp2) | |
14864 | delete arg2; | |
14865 | } | |
14866 | return resultobj; | |
14867 | fail: | |
14868 | { | |
14869 | if (temp2) | |
14870 | delete arg2; | |
14871 | } | |
14872 | return NULL; | |
14873 | } | |
14874 | ||
14875 | ||
14876 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14877 | PyObject *resultobj; | |
14878 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14879 | PyObject * obj0 = 0 ; | |
14880 | char *kwnames[] = { | |
14881 | (char *) "self", NULL | |
14882 | }; | |
14883 | ||
14884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
14885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14886 | { | |
14887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14888 | delete arg1; | |
14889 | ||
14890 | wxPyEndAllowThreads(__tstate); | |
14891 | if (PyErr_Occurred()) SWIG_fail; | |
14892 | } | |
14893 | Py_INCREF(Py_None); resultobj = Py_None; | |
14894 | return resultobj; | |
14895 | fail: | |
14896 | return NULL; | |
14897 | } | |
14898 | ||
14899 | ||
14900 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14901 | PyObject *resultobj; | |
14902 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14903 | wxString *result; | |
14904 | PyObject * obj0 = 0 ; | |
14905 | char *kwnames[] = { | |
14906 | (char *) "self", NULL | |
14907 | }; | |
14908 | ||
14909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
14910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14911 | { | |
14912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14913 | { | |
14914 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
14915 | result = (wxString *) &_result_ref; | |
14916 | } | |
14917 | ||
14918 | wxPyEndAllowThreads(__tstate); | |
14919 | if (PyErr_Occurred()) SWIG_fail; | |
14920 | } | |
cc6dd355 RD |
14921 | { |
14922 | #if wxUSE_UNICODE | |
14923 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14924 | #else | |
14925 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14926 | #endif | |
14927 | } | |
d14a1e28 RD |
14928 | return resultobj; |
14929 | fail: | |
14930 | return NULL; | |
14931 | } | |
14932 | ||
14933 | ||
14934 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
14935 | PyObject *obj; | |
14936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14937 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
14938 | Py_INCREF(obj); | |
14939 | return Py_BuildValue((char *)""); | |
14940 | } | |
14941 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14942 | PyObject *resultobj; | |
14943 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14944 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14945 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14946 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14947 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14948 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14949 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14950 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14951 | long arg5 = (long) 0 ; | |
14952 | wxConfig *result; | |
e811c8ce RD |
14953 | bool temp1 = False ; |
14954 | bool temp2 = False ; | |
14955 | bool temp3 = False ; | |
14956 | bool temp4 = False ; | |
d14a1e28 RD |
14957 | PyObject * obj0 = 0 ; |
14958 | PyObject * obj1 = 0 ; | |
14959 | PyObject * obj2 = 0 ; | |
14960 | PyObject * obj3 = 0 ; | |
14961 | char *kwnames[] = { | |
14962 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
14963 | }; | |
14964 | ||
14965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
14966 | if (obj0) { | |
14967 | { | |
14968 | arg1 = wxString_in_helper(obj0); | |
14969 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14970 | temp1 = True; |
d14a1e28 RD |
14971 | } |
14972 | } | |
14973 | if (obj1) { | |
14974 | { | |
14975 | arg2 = wxString_in_helper(obj1); | |
14976 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14977 | temp2 = True; |
d14a1e28 RD |
14978 | } |
14979 | } | |
14980 | if (obj2) { | |
14981 | { | |
14982 | arg3 = wxString_in_helper(obj2); | |
14983 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14984 | temp3 = True; |
d14a1e28 RD |
14985 | } |
14986 | } | |
14987 | if (obj3) { | |
14988 | { | |
14989 | arg4 = wxString_in_helper(obj3); | |
14990 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 14991 | temp4 = True; |
d14a1e28 RD |
14992 | } |
14993 | } | |
14994 | { | |
14995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14996 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
14997 | ||
14998 | wxPyEndAllowThreads(__tstate); | |
14999 | if (PyErr_Occurred()) SWIG_fail; | |
15000 | } | |
15001 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1); | |
15002 | { | |
15003 | if (temp1) | |
15004 | delete arg1; | |
15005 | } | |
15006 | { | |
15007 | if (temp2) | |
15008 | delete arg2; | |
15009 | } | |
15010 | { | |
15011 | if (temp3) | |
15012 | delete arg3; | |
15013 | } | |
15014 | { | |
15015 | if (temp4) | |
15016 | delete arg4; | |
15017 | } | |
15018 | return resultobj; | |
15019 | fail: | |
15020 | { | |
15021 | if (temp1) | |
15022 | delete arg1; | |
15023 | } | |
15024 | { | |
15025 | if (temp2) | |
15026 | delete arg2; | |
15027 | } | |
15028 | { | |
15029 | if (temp3) | |
15030 | delete arg3; | |
15031 | } | |
15032 | { | |
15033 | if (temp4) | |
15034 | delete arg4; | |
15035 | } | |
15036 | return NULL; | |
15037 | } | |
15038 | ||
15039 | ||
15040 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15041 | PyObject *resultobj; | |
15042 | wxConfig *arg1 = (wxConfig *) 0 ; | |
15043 | PyObject * obj0 = 0 ; | |
15044 | char *kwnames[] = { | |
15045 | (char *) "self", NULL | |
15046 | }; | |
15047 | ||
15048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15050 | { | |
15051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15052 | delete arg1; | |
15053 | ||
15054 | wxPyEndAllowThreads(__tstate); | |
15055 | if (PyErr_Occurred()) SWIG_fail; | |
15056 | } | |
15057 | Py_INCREF(Py_None); resultobj = Py_None; | |
15058 | return resultobj; | |
15059 | fail: | |
15060 | return NULL; | |
15061 | } | |
15062 | ||
15063 | ||
15064 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
15065 | PyObject *obj; | |
15066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15067 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
15068 | Py_INCREF(obj); | |
15069 | return Py_BuildValue((char *)""); | |
15070 | } | |
15071 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15072 | PyObject *resultobj; | |
15073 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15074 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15075 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15076 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15077 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15078 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15079 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15080 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15081 | long arg5 = (long) 0 ; | |
15082 | wxFileConfig *result; | |
e811c8ce RD |
15083 | bool temp1 = False ; |
15084 | bool temp2 = False ; | |
15085 | bool temp3 = False ; | |
15086 | bool temp4 = False ; | |
d14a1e28 RD |
15087 | PyObject * obj0 = 0 ; |
15088 | PyObject * obj1 = 0 ; | |
15089 | PyObject * obj2 = 0 ; | |
15090 | PyObject * obj3 = 0 ; | |
15091 | char *kwnames[] = { | |
15092 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
15093 | }; | |
15094 | ||
15095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
15096 | if (obj0) { | |
15097 | { | |
15098 | arg1 = wxString_in_helper(obj0); | |
15099 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15100 | temp1 = True; |
d14a1e28 RD |
15101 | } |
15102 | } | |
15103 | if (obj1) { | |
15104 | { | |
15105 | arg2 = wxString_in_helper(obj1); | |
15106 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15107 | temp2 = True; |
d14a1e28 RD |
15108 | } |
15109 | } | |
15110 | if (obj2) { | |
15111 | { | |
15112 | arg3 = wxString_in_helper(obj2); | |
15113 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15114 | temp3 = True; |
d14a1e28 RD |
15115 | } |
15116 | } | |
15117 | if (obj3) { | |
15118 | { | |
15119 | arg4 = wxString_in_helper(obj3); | |
15120 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15121 | temp4 = True; |
d14a1e28 RD |
15122 | } |
15123 | } | |
15124 | { | |
15125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15126 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
15127 | ||
15128 | wxPyEndAllowThreads(__tstate); | |
15129 | if (PyErr_Occurred()) SWIG_fail; | |
15130 | } | |
15131 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1); | |
15132 | { | |
15133 | if (temp1) | |
15134 | delete arg1; | |
15135 | } | |
15136 | { | |
15137 | if (temp2) | |
15138 | delete arg2; | |
15139 | } | |
15140 | { | |
15141 | if (temp3) | |
15142 | delete arg3; | |
15143 | } | |
15144 | { | |
15145 | if (temp4) | |
15146 | delete arg4; | |
15147 | } | |
15148 | return resultobj; | |
15149 | fail: | |
15150 | { | |
15151 | if (temp1) | |
15152 | delete arg1; | |
15153 | } | |
15154 | { | |
15155 | if (temp2) | |
15156 | delete arg2; | |
15157 | } | |
15158 | { | |
15159 | if (temp3) | |
15160 | delete arg3; | |
15161 | } | |
15162 | { | |
15163 | if (temp4) | |
15164 | delete arg4; | |
15165 | } | |
15166 | return NULL; | |
15167 | } | |
15168 | ||
15169 | ||
15170 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15171 | PyObject *resultobj; | |
15172 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
15173 | PyObject * obj0 = 0 ; | |
15174 | char *kwnames[] = { | |
15175 | (char *) "self", NULL | |
15176 | }; | |
15177 | ||
15178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15180 | { | |
15181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15182 | delete arg1; | |
15183 | ||
15184 | wxPyEndAllowThreads(__tstate); | |
15185 | if (PyErr_Occurred()) SWIG_fail; | |
15186 | } | |
15187 | Py_INCREF(Py_None); resultobj = Py_None; | |
15188 | return resultobj; | |
15189 | fail: | |
15190 | return NULL; | |
15191 | } | |
15192 | ||
15193 | ||
15194 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
15195 | PyObject *obj; | |
15196 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15197 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
15198 | Py_INCREF(obj); | |
15199 | return Py_BuildValue((char *)""); | |
15200 | } | |
15201 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15202 | PyObject *resultobj; | |
15203 | wxString *arg1 = 0 ; | |
15204 | wxString result; | |
e811c8ce | 15205 | bool temp1 = False ; |
d14a1e28 RD |
15206 | PyObject * obj0 = 0 ; |
15207 | char *kwnames[] = { | |
15208 | (char *) "sz", NULL | |
15209 | }; | |
15210 | ||
15211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
15212 | { | |
15213 | arg1 = wxString_in_helper(obj0); | |
15214 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15215 | temp1 = True; |
d14a1e28 RD |
15216 | } |
15217 | { | |
15218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15219 | result = wxExpandEnvVars((wxString const &)*arg1); | |
15220 | ||
15221 | wxPyEndAllowThreads(__tstate); | |
15222 | if (PyErr_Occurred()) SWIG_fail; | |
15223 | } | |
15224 | { | |
15225 | #if wxUSE_UNICODE | |
15226 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15227 | #else | |
15228 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15229 | #endif | |
15230 | } | |
15231 | { | |
15232 | if (temp1) | |
15233 | delete arg1; | |
15234 | } | |
15235 | return resultobj; | |
15236 | fail: | |
15237 | { | |
15238 | if (temp1) | |
15239 | delete arg1; | |
15240 | } | |
15241 | return NULL; | |
15242 | } | |
15243 | ||
15244 | ||
b2dc1044 RD |
15245 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
15246 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
15247 | return 1; | |
15248 | } | |
15249 | ||
15250 | ||
15251 | static PyObject *_wrap_DateFormatStr_get() { | |
15252 | PyObject *pyobj; | |
15253 | ||
15254 | { | |
15255 | #if wxUSE_UNICODE | |
15256 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
15257 | #else | |
15258 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
15259 | #endif | |
15260 | } | |
15261 | return pyobj; | |
15262 | } | |
15263 | ||
15264 | ||
15265 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
15266 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
15267 | return 1; | |
15268 | } | |
15269 | ||
15270 | ||
15271 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
15272 | PyObject *pyobj; | |
15273 | ||
15274 | { | |
15275 | #if wxUSE_UNICODE | |
15276 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
15277 | #else | |
15278 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
15279 | #endif | |
15280 | } | |
15281 | return pyobj; | |
15282 | } | |
15283 | ||
15284 | ||
d14a1e28 RD |
15285 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
15286 | PyObject *resultobj; | |
15287 | int arg1 ; | |
15288 | char *kwnames[] = { | |
15289 | (char *) "country", NULL | |
15290 | }; | |
15291 | ||
15292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_SetCountry",kwnames,&arg1)) goto fail; | |
15293 | { | |
15294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15295 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
15296 | ||
15297 | wxPyEndAllowThreads(__tstate); | |
15298 | if (PyErr_Occurred()) SWIG_fail; | |
15299 | } | |
15300 | Py_INCREF(Py_None); resultobj = Py_None; | |
15301 | return resultobj; | |
15302 | fail: | |
15303 | return NULL; | |
15304 | } | |
15305 | ||
15306 | ||
15307 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15308 | PyObject *resultobj; | |
15309 | int result; | |
15310 | char *kwnames[] = { | |
15311 | NULL | |
15312 | }; | |
15313 | ||
15314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
15315 | { | |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | result = (int)wxDateTime::GetCountry(); | |
15318 | ||
15319 | wxPyEndAllowThreads(__tstate); | |
15320 | if (PyErr_Occurred()) SWIG_fail; | |
15321 | } | |
15322 | resultobj = PyInt_FromLong((long)result); | |
15323 | return resultobj; | |
15324 | fail: | |
15325 | return NULL; | |
15326 | } | |
15327 | ||
15328 | ||
15329 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15330 | PyObject *resultobj; | |
15331 | int arg1 = (int) wxDateTime::Country_Default ; | |
15332 | bool result; | |
15333 | char *kwnames[] = { | |
15334 | (char *) "country", NULL | |
15335 | }; | |
15336 | ||
15337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_IsWestEuropeanCountry",kwnames,&arg1)) goto fail; | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | resultobj = PyInt_FromLong((long)result); | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
15352 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15353 | PyObject *resultobj; | |
15354 | int arg1 = (int) wxDateTime::Gregorian ; | |
15355 | int result; | |
15356 | char *kwnames[] = { | |
15357 | (char *) "cal", NULL | |
15358 | }; | |
15359 | ||
15360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentYear",kwnames,&arg1)) goto fail; | |
15361 | { | |
15362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15363 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
15364 | ||
15365 | wxPyEndAllowThreads(__tstate); | |
15366 | if (PyErr_Occurred()) SWIG_fail; | |
15367 | } | |
15368 | resultobj = PyInt_FromLong((long)result); | |
15369 | return resultobj; | |
15370 | fail: | |
15371 | return NULL; | |
15372 | } | |
15373 | ||
15374 | ||
15375 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15376 | PyObject *resultobj; | |
15377 | int arg1 ; | |
15378 | int result; | |
15379 | char *kwnames[] = { | |
15380 | (char *) "year", NULL | |
15381 | }; | |
15382 | ||
15383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_ConvertYearToBC",kwnames,&arg1)) goto fail; | |
15384 | { | |
15385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15386 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
15387 | ||
15388 | wxPyEndAllowThreads(__tstate); | |
15389 | if (PyErr_Occurred()) SWIG_fail; | |
15390 | } | |
15391 | resultobj = PyInt_FromLong((long)result); | |
15392 | return resultobj; | |
15393 | fail: | |
15394 | return NULL; | |
15395 | } | |
15396 | ||
15397 | ||
15398 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15399 | PyObject *resultobj; | |
15400 | int arg1 = (int) wxDateTime::Gregorian ; | |
15401 | int result; | |
15402 | char *kwnames[] = { | |
15403 | (char *) "cal", NULL | |
15404 | }; | |
15405 | ||
15406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentMonth",kwnames,&arg1)) goto fail; | |
15407 | { | |
15408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15409 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
15410 | ||
15411 | wxPyEndAllowThreads(__tstate); | |
15412 | if (PyErr_Occurred()) SWIG_fail; | |
15413 | } | |
15414 | resultobj = PyInt_FromLong((long)result); | |
15415 | return resultobj; | |
15416 | fail: | |
15417 | return NULL; | |
15418 | } | |
15419 | ||
15420 | ||
15421 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15422 | PyObject *resultobj; | |
15423 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15424 | int arg2 = (int) wxDateTime::Gregorian ; | |
15425 | bool result; | |
15426 | char *kwnames[] = { | |
15427 | (char *) "year",(char *) "cal", NULL | |
15428 | }; | |
15429 | ||
15430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsLeapYear",kwnames,&arg1,&arg2)) goto fail; | |
15431 | { | |
15432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15433 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
15434 | ||
15435 | wxPyEndAllowThreads(__tstate); | |
15436 | if (PyErr_Occurred()) SWIG_fail; | |
15437 | } | |
15438 | resultobj = PyInt_FromLong((long)result); | |
15439 | return resultobj; | |
15440 | fail: | |
15441 | return NULL; | |
15442 | } | |
15443 | ||
15444 | ||
15445 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15446 | PyObject *resultobj; | |
15447 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15448 | int result; | |
15449 | char *kwnames[] = { | |
15450 | (char *) "year", NULL | |
15451 | }; | |
15452 | ||
15453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCentury",kwnames,&arg1)) goto fail; | |
15454 | { | |
15455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15456 | result = (int)wxDateTime::GetCentury(arg1); | |
15457 | ||
15458 | wxPyEndAllowThreads(__tstate); | |
15459 | if (PyErr_Occurred()) SWIG_fail; | |
15460 | } | |
15461 | resultobj = PyInt_FromLong((long)result); | |
15462 | return resultobj; | |
15463 | fail: | |
15464 | return NULL; | |
15465 | } | |
15466 | ||
15467 | ||
15468 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15469 | PyObject *resultobj; | |
15470 | int arg1 ; | |
15471 | int arg2 = (int) wxDateTime::Gregorian ; | |
322913ce | 15472 | int result; |
d14a1e28 RD |
15473 | char *kwnames[] = { |
15474 | (char *) "year",(char *) "cal", NULL | |
15475 | }; | |
15476 | ||
15477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetNumberOfDaysinYear",kwnames,&arg1,&arg2)) goto fail; | |
15478 | { | |
15479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 15480 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
15481 | |
15482 | wxPyEndAllowThreads(__tstate); | |
15483 | if (PyErr_Occurred()) SWIG_fail; | |
15484 | } | |
15485 | resultobj = PyInt_FromLong((long)result); | |
15486 | return resultobj; | |
15487 | fail: | |
15488 | return NULL; | |
15489 | } | |
15490 | ||
15491 | ||
15492 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15493 | PyObject *resultobj; | |
15494 | int arg1 ; | |
15495 | int arg2 = (int) wxDateTime::Inv_Year ; | |
15496 | int arg3 = (int) wxDateTime::Gregorian ; | |
322913ce | 15497 | int result; |
d14a1e28 RD |
15498 | char *kwnames[] = { |
15499 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|ii:DateTime_GetNumberOfDaysInMonth",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
15503 | { | |
15504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 15505 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
15506 | |
15507 | wxPyEndAllowThreads(__tstate); | |
15508 | if (PyErr_Occurred()) SWIG_fail; | |
15509 | } | |
15510 | resultobj = PyInt_FromLong((long)result); | |
15511 | return resultobj; | |
15512 | fail: | |
15513 | return NULL; | |
15514 | } | |
15515 | ||
15516 | ||
15517 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15518 | PyObject *resultobj; | |
15519 | int arg1 ; | |
15520 | int arg2 = (int) wxDateTime::Name_Full ; | |
15521 | wxString result; | |
15522 | char *kwnames[] = { | |
15523 | (char *) "month",(char *) "flags", NULL | |
15524 | }; | |
15525 | ||
15526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetMonthName",kwnames,&arg1,&arg2)) goto fail; | |
15527 | { | |
15528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15529 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
15530 | ||
15531 | wxPyEndAllowThreads(__tstate); | |
15532 | if (PyErr_Occurred()) SWIG_fail; | |
15533 | } | |
15534 | { | |
15535 | #if wxUSE_UNICODE | |
15536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15537 | #else | |
15538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15539 | #endif | |
15540 | } | |
15541 | return resultobj; | |
15542 | fail: | |
15543 | return NULL; | |
15544 | } | |
15545 | ||
15546 | ||
15547 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15548 | PyObject *resultobj; | |
15549 | int arg1 ; | |
15550 | int arg2 = (int) wxDateTime::Name_Full ; | |
15551 | wxString result; | |
15552 | char *kwnames[] = { | |
15553 | (char *) "weekday",(char *) "flags", NULL | |
15554 | }; | |
15555 | ||
15556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetWeekDayName",kwnames,&arg1,&arg2)) goto fail; | |
15557 | { | |
15558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15559 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
15560 | ||
15561 | wxPyEndAllowThreads(__tstate); | |
15562 | if (PyErr_Occurred()) SWIG_fail; | |
15563 | } | |
15564 | { | |
15565 | #if wxUSE_UNICODE | |
15566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15567 | #else | |
15568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15569 | #endif | |
15570 | } | |
15571 | return resultobj; | |
15572 | fail: | |
15573 | return NULL; | |
15574 | } | |
15575 | ||
15576 | ||
15577 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15578 | PyObject *resultobj; | |
15579 | wxString *arg1 = (wxString *) 0 ; | |
15580 | wxString *arg2 = (wxString *) 0 ; | |
7eae615b RD |
15581 | bool temp1 = False ; |
15582 | bool temp2 = False ; | |
d14a1e28 RD |
15583 | PyObject * obj0 = 0 ; |
15584 | PyObject * obj1 = 0 ; | |
15585 | char *kwnames[] = { | |
15586 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
15587 | }; | |
15588 | ||
15589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
7eae615b RD |
15590 | { |
15591 | arg1 = wxString_in_helper(obj0); | |
15592 | if (arg1 == NULL) SWIG_fail; | |
15593 | temp1 = True; | |
15594 | } | |
15595 | { | |
15596 | arg2 = wxString_in_helper(obj1); | |
15597 | if (arg2 == NULL) SWIG_fail; | |
15598 | temp2 = True; | |
15599 | } | |
d14a1e28 RD |
15600 | { |
15601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15602 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
15603 | ||
15604 | wxPyEndAllowThreads(__tstate); | |
15605 | if (PyErr_Occurred()) SWIG_fail; | |
15606 | } | |
15607 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
15608 | { |
15609 | if (temp1) | |
15610 | delete arg1; | |
15611 | } | |
15612 | { | |
15613 | if (temp2) | |
15614 | delete arg2; | |
15615 | } | |
d14a1e28 RD |
15616 | return resultobj; |
15617 | fail: | |
7eae615b RD |
15618 | { |
15619 | if (temp1) | |
15620 | delete arg1; | |
15621 | } | |
15622 | { | |
15623 | if (temp2) | |
15624 | delete arg2; | |
15625 | } | |
d14a1e28 RD |
15626 | return NULL; |
15627 | } | |
15628 | ||
15629 | ||
15630 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15631 | PyObject *resultobj; | |
15632 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15633 | int arg2 = (int) wxDateTime::Country_Default ; | |
15634 | bool result; | |
15635 | char *kwnames[] = { | |
15636 | (char *) "year",(char *) "country", NULL | |
15637 | }; | |
15638 | ||
15639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsDSTApplicable",kwnames,&arg1,&arg2)) goto fail; | |
15640 | { | |
15641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15642 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
15643 | ||
15644 | wxPyEndAllowThreads(__tstate); | |
15645 | if (PyErr_Occurred()) SWIG_fail; | |
15646 | } | |
15647 | resultobj = PyInt_FromLong((long)result); | |
15648 | return resultobj; | |
15649 | fail: | |
15650 | return NULL; | |
15651 | } | |
15652 | ||
15653 | ||
15654 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15655 | PyObject *resultobj; | |
15656 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15657 | int arg2 = (int) wxDateTime::Country_Default ; | |
15658 | wxDateTime result; | |
15659 | char *kwnames[] = { | |
15660 | (char *) "year",(char *) "country", NULL | |
15661 | }; | |
15662 | ||
15663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetBeginDST",kwnames,&arg1,&arg2)) goto fail; | |
15664 | { | |
15665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15666 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
15667 | ||
15668 | wxPyEndAllowThreads(__tstate); | |
15669 | if (PyErr_Occurred()) SWIG_fail; | |
15670 | } | |
15671 | { | |
15672 | wxDateTime * resultptr; | |
15673 | resultptr = new wxDateTime((wxDateTime &) result); | |
15674 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15675 | } | |
15676 | return resultobj; | |
15677 | fail: | |
15678 | return NULL; | |
15679 | } | |
15680 | ||
15681 | ||
15682 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15683 | PyObject *resultobj; | |
15684 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15685 | int arg2 = (int) wxDateTime::Country_Default ; | |
15686 | wxDateTime result; | |
15687 | char *kwnames[] = { | |
15688 | (char *) "year",(char *) "country", NULL | |
15689 | }; | |
15690 | ||
15691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetEndDST",kwnames,&arg1,&arg2)) goto fail; | |
15692 | { | |
15693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15694 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
15695 | ||
15696 | wxPyEndAllowThreads(__tstate); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
15699 | { | |
15700 | wxDateTime * resultptr; | |
15701 | resultptr = new wxDateTime((wxDateTime &) result); | |
15702 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15703 | } | |
15704 | return resultobj; | |
15705 | fail: | |
15706 | return NULL; | |
15707 | } | |
15708 | ||
15709 | ||
15710 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15711 | PyObject *resultobj; | |
15712 | wxDateTime result; | |
15713 | char *kwnames[] = { | |
15714 | NULL | |
15715 | }; | |
15716 | ||
15717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
15718 | { | |
15719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15720 | result = wxDateTime::Now(); | |
15721 | ||
15722 | wxPyEndAllowThreads(__tstate); | |
15723 | if (PyErr_Occurred()) SWIG_fail; | |
15724 | } | |
15725 | { | |
15726 | wxDateTime * resultptr; | |
15727 | resultptr = new wxDateTime((wxDateTime &) result); | |
15728 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15729 | } | |
15730 | return resultobj; | |
15731 | fail: | |
15732 | return NULL; | |
15733 | } | |
15734 | ||
15735 | ||
15736 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15737 | PyObject *resultobj; | |
15738 | wxDateTime result; | |
15739 | char *kwnames[] = { | |
15740 | NULL | |
15741 | }; | |
15742 | ||
15743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
15744 | { | |
15745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15746 | result = wxDateTime::UNow(); | |
15747 | ||
15748 | wxPyEndAllowThreads(__tstate); | |
15749 | if (PyErr_Occurred()) SWIG_fail; | |
15750 | } | |
15751 | { | |
15752 | wxDateTime * resultptr; | |
15753 | resultptr = new wxDateTime((wxDateTime &) result); | |
15754 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15755 | } | |
15756 | return resultobj; | |
15757 | fail: | |
15758 | return NULL; | |
15759 | } | |
15760 | ||
15761 | ||
15762 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15763 | PyObject *resultobj; | |
15764 | wxDateTime result; | |
15765 | char *kwnames[] = { | |
15766 | NULL | |
15767 | }; | |
15768 | ||
15769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
15770 | { | |
15771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15772 | result = wxDateTime::Today(); | |
15773 | ||
15774 | wxPyEndAllowThreads(__tstate); | |
15775 | if (PyErr_Occurred()) SWIG_fail; | |
15776 | } | |
15777 | { | |
15778 | wxDateTime * resultptr; | |
15779 | resultptr = new wxDateTime((wxDateTime &) result); | |
15780 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15781 | } | |
15782 | return resultobj; | |
15783 | fail: | |
15784 | return NULL; | |
15785 | } | |
15786 | ||
15787 | ||
15788 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15789 | PyObject *resultobj; | |
15790 | wxDateTime *result; | |
15791 | char *kwnames[] = { | |
15792 | NULL | |
15793 | }; | |
15794 | ||
15795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
15796 | { | |
15797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15798 | result = (wxDateTime *)new wxDateTime(); | |
15799 | ||
15800 | wxPyEndAllowThreads(__tstate); | |
15801 | if (PyErr_Occurred()) SWIG_fail; | |
15802 | } | |
15803 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15804 | return resultobj; | |
15805 | fail: | |
15806 | return NULL; | |
15807 | } | |
15808 | ||
15809 | ||
15810 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15811 | PyObject *resultobj; | |
15812 | time_t arg1 ; | |
15813 | wxDateTime *result; | |
15814 | PyObject * obj0 = 0 ; | |
15815 | char *kwnames[] = { | |
15816 | (char *) "timet", NULL | |
15817 | }; | |
15818 | ||
15819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15820 | arg1 = (time_t) PyInt_AsLong(obj0); | |
15821 | if (PyErr_Occurred()) SWIG_fail; | |
15822 | { | |
15823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15824 | result = (wxDateTime *)new wxDateTime(arg1); | |
15825 | ||
15826 | wxPyEndAllowThreads(__tstate); | |
15827 | if (PyErr_Occurred()) SWIG_fail; | |
15828 | } | |
15829 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15830 | return resultobj; | |
15831 | fail: | |
15832 | return NULL; | |
15833 | } | |
15834 | ||
15835 | ||
15836 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15837 | PyObject *resultobj; | |
15838 | double arg1 ; | |
15839 | wxDateTime *result; | |
15840 | char *kwnames[] = { | |
15841 | (char *) "jdn", NULL | |
15842 | }; | |
15843 | ||
15844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"d:new_DateTimeFromJDN",kwnames,&arg1)) goto fail; | |
15845 | { | |
15846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15847 | result = (wxDateTime *)new wxDateTime(arg1); | |
15848 | ||
15849 | wxPyEndAllowThreads(__tstate); | |
15850 | if (PyErr_Occurred()) SWIG_fail; | |
15851 | } | |
15852 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15853 | return resultobj; | |
15854 | fail: | |
15855 | return NULL; | |
15856 | } | |
15857 | ||
15858 | ||
15859 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15860 | PyObject *resultobj; | |
322913ce RD |
15861 | int arg1 ; |
15862 | int arg2 = (int) 0 ; | |
15863 | int arg3 = (int) 0 ; | |
15864 | int arg4 = (int) 0 ; | |
d14a1e28 | 15865 | wxDateTime *result; |
d14a1e28 RD |
15866 | char *kwnames[] = { |
15867 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15868 | }; | |
15869 | ||
322913ce | 15870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iii:new_DateTimeFromHMS",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 RD |
15871 | { |
15872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15873 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
15874 | ||
15875 | wxPyEndAllowThreads(__tstate); | |
15876 | if (PyErr_Occurred()) SWIG_fail; | |
15877 | } | |
15878 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15879 | return resultobj; | |
15880 | fail: | |
15881 | return NULL; | |
15882 | } | |
15883 | ||
15884 | ||
15885 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15886 | PyObject *resultobj; | |
322913ce | 15887 | int arg1 ; |
d14a1e28 RD |
15888 | int arg2 = (int) wxDateTime::Inv_Month ; |
15889 | int arg3 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
15890 | int arg4 = (int) 0 ; |
15891 | int arg5 = (int) 0 ; | |
15892 | int arg6 = (int) 0 ; | |
15893 | int arg7 = (int) 0 ; | |
d14a1e28 | 15894 | wxDateTime *result; |
d14a1e28 RD |
15895 | char *kwnames[] = { |
15896 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15897 | }; | |
15898 | ||
322913ce | 15899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iiiiii:new_DateTimeFromDMY",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; |
d14a1e28 RD |
15900 | { |
15901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15902 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
15903 | ||
15904 | wxPyEndAllowThreads(__tstate); | |
15905 | if (PyErr_Occurred()) SWIG_fail; | |
15906 | } | |
15907 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15908 | return resultobj; | |
15909 | fail: | |
15910 | return NULL; | |
15911 | } | |
15912 | ||
15913 | ||
15914 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15915 | PyObject *resultobj; | |
15916 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15917 | PyObject * obj0 = 0 ; | |
15918 | char *kwnames[] = { | |
15919 | (char *) "self", NULL | |
15920 | }; | |
15921 | ||
15922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15924 | { | |
15925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15926 | delete arg1; | |
15927 | ||
15928 | wxPyEndAllowThreads(__tstate); | |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
15930 | } | |
15931 | Py_INCREF(Py_None); resultobj = Py_None; | |
15932 | return resultobj; | |
15933 | fail: | |
15934 | return NULL; | |
15935 | } | |
15936 | ||
15937 | ||
15938 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15939 | PyObject *resultobj; | |
15940 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15941 | wxDateTime *result; | |
15942 | PyObject * obj0 = 0 ; | |
15943 | char *kwnames[] = { | |
15944 | (char *) "self", NULL | |
15945 | }; | |
15946 | ||
15947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15949 | { | |
15950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15951 | { | |
15952 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
15953 | result = (wxDateTime *) &_result_ref; | |
15954 | } | |
15955 | ||
15956 | wxPyEndAllowThreads(__tstate); | |
15957 | if (PyErr_Occurred()) SWIG_fail; | |
15958 | } | |
15959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15960 | return resultobj; | |
15961 | fail: | |
15962 | return NULL; | |
15963 | } | |
15964 | ||
15965 | ||
15966 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15967 | PyObject *resultobj; | |
15968 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15969 | time_t arg2 ; | |
15970 | wxDateTime *result; | |
15971 | PyObject * obj0 = 0 ; | |
15972 | PyObject * obj1 = 0 ; | |
15973 | char *kwnames[] = { | |
15974 | (char *) "self",(char *) "timet", NULL | |
15975 | }; | |
15976 | ||
15977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15979 | arg2 = (time_t) PyInt_AsLong(obj1); | |
15980 | if (PyErr_Occurred()) SWIG_fail; | |
15981 | { | |
15982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15983 | { | |
15984 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
15985 | result = (wxDateTime *) &_result_ref; | |
15986 | } | |
15987 | ||
15988 | wxPyEndAllowThreads(__tstate); | |
15989 | if (PyErr_Occurred()) SWIG_fail; | |
15990 | } | |
15991 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15992 | return resultobj; | |
15993 | fail: | |
15994 | return NULL; | |
15995 | } | |
15996 | ||
15997 | ||
15998 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15999 | PyObject *resultobj; | |
16000 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16001 | double arg2 ; | |
16002 | wxDateTime *result; | |
16003 | PyObject * obj0 = 0 ; | |
16004 | char *kwnames[] = { | |
16005 | (char *) "self",(char *) "jdn", NULL | |
16006 | }; | |
16007 | ||
16008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:DateTime_SetJDN",kwnames,&obj0,&arg2)) goto fail; | |
16009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16010 | { | |
16011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16012 | { | |
16013 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
16014 | result = (wxDateTime *) &_result_ref; | |
16015 | } | |
16016 | ||
16017 | wxPyEndAllowThreads(__tstate); | |
16018 | if (PyErr_Occurred()) SWIG_fail; | |
16019 | } | |
16020 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16021 | return resultobj; | |
16022 | fail: | |
16023 | return NULL; | |
16024 | } | |
16025 | ||
16026 | ||
16027 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16028 | PyObject *resultobj; | |
16029 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
16030 | int arg2 ; |
16031 | int arg3 = (int) 0 ; | |
16032 | int arg4 = (int) 0 ; | |
16033 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
16034 | wxDateTime *result; |
16035 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16036 | char *kwnames[] = { |
16037 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16038 | }; | |
16039 | ||
322913ce | 16040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetHMS",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; |
d14a1e28 | 16041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16042 | { |
16043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16044 | { | |
16045 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
16046 | result = (wxDateTime *) &_result_ref; | |
16047 | } | |
16048 | ||
16049 | wxPyEndAllowThreads(__tstate); | |
16050 | if (PyErr_Occurred()) SWIG_fail; | |
16051 | } | |
16052 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16053 | return resultobj; | |
16054 | fail: | |
16055 | return NULL; | |
16056 | } | |
16057 | ||
16058 | ||
16059 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16060 | PyObject *resultobj; | |
16061 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16062 | int arg2 ; |
d14a1e28 RD |
16063 | int arg3 = (int) wxDateTime::Inv_Month ; |
16064 | int arg4 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
16065 | int arg5 = (int) 0 ; |
16066 | int arg6 = (int) 0 ; | |
16067 | int arg7 = (int) 0 ; | |
16068 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
16069 | wxDateTime *result; |
16070 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16071 | char *kwnames[] = { |
16072 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16073 | }; | |
16074 | ||
322913ce | 16075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iiiiii:DateTime_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail; |
d14a1e28 | 16076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16077 | { |
16078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16079 | { | |
16080 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
16081 | result = (wxDateTime *) &_result_ref; | |
16082 | } | |
16083 | ||
16084 | wxPyEndAllowThreads(__tstate); | |
16085 | if (PyErr_Occurred()) SWIG_fail; | |
16086 | } | |
16087 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16088 | return resultobj; | |
16089 | fail: | |
16090 | return NULL; | |
16091 | } | |
16092 | ||
16093 | ||
16094 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16095 | PyObject *resultobj; | |
16096 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16097 | wxDateTime *result; | |
16098 | PyObject * obj0 = 0 ; | |
16099 | char *kwnames[] = { | |
16100 | (char *) "self", NULL | |
16101 | }; | |
16102 | ||
16103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
16104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16105 | { | |
16106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16107 | { | |
16108 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
16109 | result = (wxDateTime *) &_result_ref; | |
16110 | } | |
16111 | ||
16112 | wxPyEndAllowThreads(__tstate); | |
16113 | if (PyErr_Occurred()) SWIG_fail; | |
16114 | } | |
16115 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16116 | return resultobj; | |
16117 | fail: | |
16118 | return NULL; | |
16119 | } | |
16120 | ||
16121 | ||
16122 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16123 | PyObject *resultobj; | |
16124 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16125 | int arg2 ; | |
16126 | wxDateTime *result; | |
16127 | PyObject * obj0 = 0 ; | |
16128 | char *kwnames[] = { | |
16129 | (char *) "self",(char *) "year", NULL | |
16130 | }; | |
16131 | ||
16132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetYear",kwnames,&obj0,&arg2)) goto fail; | |
16133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16134 | { | |
16135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16136 | { | |
16137 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
16138 | result = (wxDateTime *) &_result_ref; | |
16139 | } | |
16140 | ||
16141 | wxPyEndAllowThreads(__tstate); | |
16142 | if (PyErr_Occurred()) SWIG_fail; | |
16143 | } | |
16144 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16145 | return resultobj; | |
16146 | fail: | |
16147 | return NULL; | |
16148 | } | |
16149 | ||
16150 | ||
16151 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16152 | PyObject *resultobj; | |
16153 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16154 | int arg2 ; | |
16155 | wxDateTime *result; | |
16156 | PyObject * obj0 = 0 ; | |
16157 | char *kwnames[] = { | |
16158 | (char *) "self",(char *) "month", NULL | |
16159 | }; | |
16160 | ||
16161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMonth",kwnames,&obj0,&arg2)) goto fail; | |
16162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16163 | { | |
16164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16165 | { | |
16166 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
16167 | result = (wxDateTime *) &_result_ref; | |
16168 | } | |
16169 | ||
16170 | wxPyEndAllowThreads(__tstate); | |
16171 | if (PyErr_Occurred()) SWIG_fail; | |
16172 | } | |
16173 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16174 | return resultobj; | |
16175 | fail: | |
16176 | return NULL; | |
16177 | } | |
16178 | ||
16179 | ||
16180 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16181 | PyObject *resultobj; | |
16182 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16183 | int arg2 ; |
d14a1e28 RD |
16184 | wxDateTime *result; |
16185 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16186 | char *kwnames[] = { |
16187 | (char *) "self",(char *) "day", NULL | |
16188 | }; | |
16189 | ||
322913ce | 16190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16192 | { |
16193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16194 | { | |
16195 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
16196 | result = (wxDateTime *) &_result_ref; | |
16197 | } | |
16198 | ||
16199 | wxPyEndAllowThreads(__tstate); | |
16200 | if (PyErr_Occurred()) SWIG_fail; | |
16201 | } | |
16202 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16203 | return resultobj; | |
16204 | fail: | |
16205 | return NULL; | |
16206 | } | |
16207 | ||
16208 | ||
16209 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16210 | PyObject *resultobj; | |
16211 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16212 | int arg2 ; |
d14a1e28 RD |
16213 | wxDateTime *result; |
16214 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16215 | char *kwnames[] = { |
16216 | (char *) "self",(char *) "hour", NULL | |
16217 | }; | |
16218 | ||
322913ce | 16219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetHour",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16221 | { |
16222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16223 | { | |
16224 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
16225 | result = (wxDateTime *) &_result_ref; | |
16226 | } | |
16227 | ||
16228 | wxPyEndAllowThreads(__tstate); | |
16229 | if (PyErr_Occurred()) SWIG_fail; | |
16230 | } | |
16231 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16232 | return resultobj; | |
16233 | fail: | |
16234 | return NULL; | |
16235 | } | |
16236 | ||
16237 | ||
16238 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16239 | PyObject *resultobj; | |
16240 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16241 | int arg2 ; |
d14a1e28 RD |
16242 | wxDateTime *result; |
16243 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16244 | char *kwnames[] = { |
16245 | (char *) "self",(char *) "minute", NULL | |
16246 | }; | |
16247 | ||
322913ce | 16248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMinute",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16250 | { |
16251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16252 | { | |
16253 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
16254 | result = (wxDateTime *) &_result_ref; | |
16255 | } | |
16256 | ||
16257 | wxPyEndAllowThreads(__tstate); | |
16258 | if (PyErr_Occurred()) SWIG_fail; | |
16259 | } | |
16260 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16261 | return resultobj; | |
16262 | fail: | |
16263 | return NULL; | |
16264 | } | |
16265 | ||
16266 | ||
16267 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16268 | PyObject *resultobj; | |
16269 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16270 | int arg2 ; |
d14a1e28 RD |
16271 | wxDateTime *result; |
16272 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16273 | char *kwnames[] = { |
16274 | (char *) "self",(char *) "second", NULL | |
16275 | }; | |
16276 | ||
322913ce | 16277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetSecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16279 | { |
16280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16281 | { | |
16282 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
16283 | result = (wxDateTime *) &_result_ref; | |
16284 | } | |
16285 | ||
16286 | wxPyEndAllowThreads(__tstate); | |
16287 | if (PyErr_Occurred()) SWIG_fail; | |
16288 | } | |
16289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16290 | return resultobj; | |
16291 | fail: | |
16292 | return NULL; | |
16293 | } | |
16294 | ||
16295 | ||
16296 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16297 | PyObject *resultobj; | |
16298 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16299 | int arg2 ; |
d14a1e28 RD |
16300 | wxDateTime *result; |
16301 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16302 | char *kwnames[] = { |
16303 | (char *) "self",(char *) "millisecond", NULL | |
16304 | }; | |
16305 | ||
322913ce | 16306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMillisecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16308 | { |
16309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16310 | { | |
16311 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
16312 | result = (wxDateTime *) &_result_ref; | |
16313 | } | |
16314 | ||
16315 | wxPyEndAllowThreads(__tstate); | |
16316 | if (PyErr_Occurred()) SWIG_fail; | |
16317 | } | |
16318 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16319 | return resultobj; | |
16320 | fail: | |
16321 | return NULL; | |
16322 | } | |
16323 | ||
16324 | ||
16325 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16326 | PyObject *resultobj; | |
16327 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16328 | int arg2 ; | |
16329 | int arg3 = (int) wxDateTime::Monday_First ; | |
16330 | wxDateTime *result; | |
16331 | PyObject * obj0 = 0 ; | |
16332 | char *kwnames[] = { | |
16333 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16334 | }; | |
16335 | ||
16336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16338 | { | |
16339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16340 | { | |
16341 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16342 | result = (wxDateTime *) &_result_ref; | |
16343 | } | |
16344 | ||
16345 | wxPyEndAllowThreads(__tstate); | |
16346 | if (PyErr_Occurred()) SWIG_fail; | |
16347 | } | |
16348 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16349 | return resultobj; | |
16350 | fail: | |
16351 | return NULL; | |
16352 | } | |
16353 | ||
16354 | ||
16355 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16356 | PyObject *resultobj; | |
16357 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16358 | int arg2 ; | |
16359 | int arg3 = (int) wxDateTime::Monday_First ; | |
16360 | wxDateTime result; | |
16361 | PyObject * obj0 = 0 ; | |
16362 | char *kwnames[] = { | |
16363 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16364 | }; | |
16365 | ||
16366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16368 | { | |
16369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16370 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16371 | ||
16372 | wxPyEndAllowThreads(__tstate); | |
16373 | if (PyErr_Occurred()) SWIG_fail; | |
16374 | } | |
16375 | { | |
16376 | wxDateTime * resultptr; | |
16377 | resultptr = new wxDateTime((wxDateTime &) result); | |
16378 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16379 | } | |
16380 | return resultobj; | |
16381 | fail: | |
16382 | return NULL; | |
16383 | } | |
16384 | ||
16385 | ||
16386 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16387 | PyObject *resultobj; | |
16388 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16389 | int arg2 ; | |
16390 | wxDateTime *result; | |
16391 | PyObject * obj0 = 0 ; | |
16392 | char *kwnames[] = { | |
16393 | (char *) "self",(char *) "weekday", NULL | |
16394 | }; | |
16395 | ||
16396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16398 | { | |
16399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16400 | { | |
16401 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
16402 | result = (wxDateTime *) &_result_ref; | |
16403 | } | |
16404 | ||
16405 | wxPyEndAllowThreads(__tstate); | |
16406 | if (PyErr_Occurred()) SWIG_fail; | |
16407 | } | |
16408 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16409 | return resultobj; | |
16410 | fail: | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
16415 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16416 | PyObject *resultobj; | |
16417 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16418 | int arg2 ; | |
16419 | wxDateTime result; | |
16420 | PyObject * obj0 = 0 ; | |
16421 | char *kwnames[] = { | |
16422 | (char *) "self",(char *) "weekday", NULL | |
16423 | }; | |
16424 | ||
16425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16427 | { | |
16428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16429 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
16430 | ||
16431 | wxPyEndAllowThreads(__tstate); | |
16432 | if (PyErr_Occurred()) SWIG_fail; | |
16433 | } | |
16434 | { | |
16435 | wxDateTime * resultptr; | |
16436 | resultptr = new wxDateTime((wxDateTime &) result); | |
16437 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16438 | } | |
16439 | return resultobj; | |
16440 | fail: | |
16441 | return NULL; | |
16442 | } | |
16443 | ||
16444 | ||
16445 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16446 | PyObject *resultobj; | |
16447 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16448 | int arg2 ; | |
16449 | wxDateTime *result; | |
16450 | PyObject * obj0 = 0 ; | |
16451 | char *kwnames[] = { | |
16452 | (char *) "self",(char *) "weekday", NULL | |
16453 | }; | |
16454 | ||
16455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16457 | { | |
16458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16459 | { | |
16460 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16461 | result = (wxDateTime *) &_result_ref; | |
16462 | } | |
16463 | ||
16464 | wxPyEndAllowThreads(__tstate); | |
16465 | if (PyErr_Occurred()) SWIG_fail; | |
16466 | } | |
16467 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16468 | return resultobj; | |
16469 | fail: | |
16470 | return NULL; | |
16471 | } | |
16472 | ||
16473 | ||
16474 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16475 | PyObject *resultobj; | |
16476 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16477 | int arg2 ; | |
16478 | wxDateTime result; | |
16479 | PyObject * obj0 = 0 ; | |
16480 | char *kwnames[] = { | |
16481 | (char *) "self",(char *) "weekday", NULL | |
16482 | }; | |
16483 | ||
16484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16486 | { | |
16487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16488 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16489 | ||
16490 | wxPyEndAllowThreads(__tstate); | |
16491 | if (PyErr_Occurred()) SWIG_fail; | |
16492 | } | |
16493 | { | |
16494 | wxDateTime * resultptr; | |
16495 | resultptr = new wxDateTime((wxDateTime &) result); | |
16496 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16497 | } | |
16498 | return resultobj; | |
16499 | fail: | |
16500 | return NULL; | |
16501 | } | |
16502 | ||
16503 | ||
16504 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16505 | PyObject *resultobj; | |
16506 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16507 | int arg2 ; | |
16508 | int arg3 = (int) 1 ; | |
16509 | int arg4 = (int) wxDateTime::Inv_Month ; | |
16510 | int arg5 = (int) wxDateTime::Inv_Year ; | |
16511 | bool result; | |
16512 | PyObject * obj0 = 0 ; | |
16513 | char *kwnames[] = { | |
16514 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
16515 | }; | |
16516 | ||
16517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetToWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16519 | { | |
16520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16521 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
16522 | ||
16523 | wxPyEndAllowThreads(__tstate); | |
16524 | if (PyErr_Occurred()) SWIG_fail; | |
16525 | } | |
16526 | resultobj = PyInt_FromLong((long)result); | |
16527 | return resultobj; | |
16528 | fail: | |
16529 | return NULL; | |
16530 | } | |
16531 | ||
16532 | ||
16533 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16534 | PyObject *resultobj; | |
16535 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16536 | int arg2 ; | |
16537 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16538 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16539 | bool result; | |
16540 | PyObject * obj0 = 0 ; | |
16541 | char *kwnames[] = { | |
16542 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16543 | }; | |
16544 | ||
16545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16547 | { | |
16548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16549 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16550 | ||
16551 | wxPyEndAllowThreads(__tstate); | |
16552 | if (PyErr_Occurred()) SWIG_fail; | |
16553 | } | |
16554 | resultobj = PyInt_FromLong((long)result); | |
16555 | return resultobj; | |
16556 | fail: | |
16557 | return NULL; | |
16558 | } | |
16559 | ||
16560 | ||
16561 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16562 | PyObject *resultobj; | |
16563 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16564 | int arg2 ; | |
16565 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16566 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16567 | wxDateTime result; | |
16568 | PyObject * obj0 = 0 ; | |
16569 | char *kwnames[] = { | |
16570 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16571 | }; | |
16572 | ||
16573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16575 | { | |
16576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16577 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16578 | ||
16579 | wxPyEndAllowThreads(__tstate); | |
16580 | if (PyErr_Occurred()) SWIG_fail; | |
16581 | } | |
16582 | { | |
16583 | wxDateTime * resultptr; | |
16584 | resultptr = new wxDateTime((wxDateTime &) result); | |
16585 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16586 | } | |
16587 | return resultobj; | |
16588 | fail: | |
16589 | return NULL; | |
16590 | } | |
16591 | ||
16592 | ||
16593 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16594 | PyObject *resultobj; | |
16595 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16596 | int arg2 ; |
d14a1e28 RD |
16597 | int arg3 = (int) wxDateTime::Mon ; |
16598 | int arg4 = (int) wxDateTime::Monday_First ; | |
16599 | bool result; | |
16600 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16601 | char *kwnames[] = { |
16602 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16603 | }; | |
16604 | ||
322913ce | 16605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToTheWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16607 | { |
16608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16609 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16610 | ||
16611 | wxPyEndAllowThreads(__tstate); | |
16612 | if (PyErr_Occurred()) SWIG_fail; | |
16613 | } | |
16614 | resultobj = PyInt_FromLong((long)result); | |
16615 | return resultobj; | |
16616 | fail: | |
16617 | return NULL; | |
16618 | } | |
16619 | ||
16620 | ||
16621 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16622 | PyObject *resultobj; | |
16623 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16624 | int arg2 ; |
d14a1e28 RD |
16625 | int arg3 = (int) wxDateTime::Mon ; |
16626 | int arg4 = (int) wxDateTime::Monday_First ; | |
16627 | wxDateTime result; | |
16628 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16629 | char *kwnames[] = { |
16630 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16631 | }; | |
16632 | ||
322913ce | 16633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16635 | { |
16636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16637 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16638 | ||
16639 | wxPyEndAllowThreads(__tstate); | |
16640 | if (PyErr_Occurred()) SWIG_fail; | |
16641 | } | |
16642 | { | |
16643 | wxDateTime * resultptr; | |
16644 | resultptr = new wxDateTime((wxDateTime &) result); | |
16645 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16646 | } | |
16647 | return resultobj; | |
16648 | fail: | |
16649 | return NULL; | |
16650 | } | |
16651 | ||
16652 | ||
16653 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16654 | PyObject *resultobj; | |
16655 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16656 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16657 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16658 | wxDateTime *result; | |
16659 | PyObject * obj0 = 0 ; | |
16660 | char *kwnames[] = { | |
16661 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16662 | }; | |
16663 | ||
16664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_SetToLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16666 | { | |
16667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16668 | { | |
16669 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16670 | result = (wxDateTime *) &_result_ref; | |
16671 | } | |
16672 | ||
16673 | wxPyEndAllowThreads(__tstate); | |
16674 | if (PyErr_Occurred()) SWIG_fail; | |
16675 | } | |
16676 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16677 | return resultobj; | |
16678 | fail: | |
16679 | return NULL; | |
16680 | } | |
16681 | ||
16682 | ||
16683 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16684 | PyObject *resultobj; | |
16685 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16686 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16687 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16688 | wxDateTime result; | |
16689 | PyObject * obj0 = 0 ; | |
16690 | char *kwnames[] = { | |
16691 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16692 | }; | |
16693 | ||
16694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_GetLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16696 | { | |
16697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16698 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16699 | ||
16700 | wxPyEndAllowThreads(__tstate); | |
16701 | if (PyErr_Occurred()) SWIG_fail; | |
16702 | } | |
16703 | { | |
16704 | wxDateTime * resultptr; | |
16705 | resultptr = new wxDateTime((wxDateTime &) result); | |
16706 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16707 | } | |
16708 | return resultobj; | |
16709 | fail: | |
16710 | return NULL; | |
16711 | } | |
16712 | ||
16713 | ||
16714 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16715 | PyObject *resultobj; | |
16716 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16717 | int arg2 ; |
d14a1e28 RD |
16718 | wxDateTime *result; |
16719 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16720 | char *kwnames[] = { |
16721 | (char *) "self",(char *) "yday", NULL | |
16722 | }; | |
16723 | ||
322913ce | 16724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16726 | { |
16727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16728 | { | |
16729 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
16730 | result = (wxDateTime *) &_result_ref; | |
16731 | } | |
16732 | ||
16733 | wxPyEndAllowThreads(__tstate); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | } | |
16736 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16737 | return resultobj; | |
16738 | fail: | |
16739 | return NULL; | |
16740 | } | |
16741 | ||
16742 | ||
16743 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16744 | PyObject *resultobj; | |
16745 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16746 | int arg2 ; |
d14a1e28 RD |
16747 | wxDateTime result; |
16748 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16749 | char *kwnames[] = { |
16750 | (char *) "self",(char *) "yday", NULL | |
16751 | }; | |
16752 | ||
322913ce | 16753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16755 | { |
16756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16757 | result = (arg1)->GetYearDay(arg2); | |
16758 | ||
16759 | wxPyEndAllowThreads(__tstate); | |
16760 | if (PyErr_Occurred()) SWIG_fail; | |
16761 | } | |
16762 | { | |
16763 | wxDateTime * resultptr; | |
16764 | resultptr = new wxDateTime((wxDateTime &) result); | |
16765 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16766 | } | |
16767 | return resultobj; | |
16768 | fail: | |
16769 | return NULL; | |
16770 | } | |
16771 | ||
16772 | ||
16773 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16774 | PyObject *resultobj; | |
16775 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16776 | double result; | |
16777 | PyObject * obj0 = 0 ; | |
16778 | char *kwnames[] = { | |
16779 | (char *) "self", NULL | |
16780 | }; | |
16781 | ||
16782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
16783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16784 | { | |
16785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16786 | result = (double)(arg1)->GetJulianDayNumber(); | |
16787 | ||
16788 | wxPyEndAllowThreads(__tstate); | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | } | |
16791 | resultobj = PyFloat_FromDouble(result); | |
16792 | return resultobj; | |
16793 | fail: | |
16794 | return NULL; | |
16795 | } | |
16796 | ||
16797 | ||
16798 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16799 | PyObject *resultobj; | |
16800 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16801 | double result; | |
16802 | PyObject * obj0 = 0 ; | |
16803 | char *kwnames[] = { | |
16804 | (char *) "self", NULL | |
16805 | }; | |
16806 | ||
16807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
16808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16809 | { | |
16810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16811 | result = (double)(arg1)->GetJDN(); | |
16812 | ||
16813 | wxPyEndAllowThreads(__tstate); | |
16814 | if (PyErr_Occurred()) SWIG_fail; | |
16815 | } | |
16816 | resultobj = PyFloat_FromDouble(result); | |
16817 | return resultobj; | |
16818 | fail: | |
16819 | return NULL; | |
16820 | } | |
16821 | ||
16822 | ||
16823 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16824 | PyObject *resultobj; | |
16825 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16826 | double result; | |
16827 | PyObject * obj0 = 0 ; | |
16828 | char *kwnames[] = { | |
16829 | (char *) "self", NULL | |
16830 | }; | |
16831 | ||
16832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
16833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16834 | { | |
16835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16836 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
16837 | ||
16838 | wxPyEndAllowThreads(__tstate); | |
16839 | if (PyErr_Occurred()) SWIG_fail; | |
16840 | } | |
16841 | resultobj = PyFloat_FromDouble(result); | |
16842 | return resultobj; | |
16843 | fail: | |
16844 | return NULL; | |
16845 | } | |
16846 | ||
16847 | ||
16848 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16849 | PyObject *resultobj; | |
16850 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16851 | double result; | |
16852 | PyObject * obj0 = 0 ; | |
16853 | char *kwnames[] = { | |
16854 | (char *) "self", NULL | |
16855 | }; | |
16856 | ||
16857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
16858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16859 | { | |
16860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16861 | result = (double)(arg1)->GetMJD(); | |
16862 | ||
16863 | wxPyEndAllowThreads(__tstate); | |
16864 | if (PyErr_Occurred()) SWIG_fail; | |
16865 | } | |
16866 | resultobj = PyFloat_FromDouble(result); | |
16867 | return resultobj; | |
16868 | fail: | |
16869 | return NULL; | |
16870 | } | |
16871 | ||
16872 | ||
16873 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16874 | PyObject *resultobj; | |
16875 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16876 | double result; | |
16877 | PyObject * obj0 = 0 ; | |
16878 | char *kwnames[] = { | |
16879 | (char *) "self", NULL | |
16880 | }; | |
16881 | ||
16882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
16883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16884 | { | |
16885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16886 | result = (double)(arg1)->GetRataDie(); | |
16887 | ||
16888 | wxPyEndAllowThreads(__tstate); | |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
16890 | } | |
16891 | resultobj = PyFloat_FromDouble(result); | |
16892 | return resultobj; | |
16893 | fail: | |
16894 | return NULL; | |
16895 | } | |
16896 | ||
16897 | ||
16898 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16899 | PyObject *resultobj; | |
16900 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16901 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 16902 | bool arg3 = (bool) False ; |
d14a1e28 | 16903 | wxDateTime result; |
7722248d | 16904 | bool temp2 = False ; |
d14a1e28 RD |
16905 | PyObject * obj0 = 0 ; |
16906 | PyObject * obj1 = 0 ; | |
16907 | PyObject * obj2 = 0 ; | |
16908 | char *kwnames[] = { | |
16909 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16910 | }; | |
16911 | ||
16912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16914 | { | |
16915 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 16916 | temp2 = True; |
d14a1e28 RD |
16917 | } |
16918 | if (obj2) { | |
16919 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16920 | if (PyErr_Occurred()) SWIG_fail; | |
16921 | } | |
16922 | { | |
16923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16924 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16925 | ||
16926 | wxPyEndAllowThreads(__tstate); | |
16927 | if (PyErr_Occurred()) SWIG_fail; | |
16928 | } | |
16929 | { | |
16930 | wxDateTime * resultptr; | |
16931 | resultptr = new wxDateTime((wxDateTime &) result); | |
16932 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16933 | } | |
16934 | { | |
7722248d | 16935 | if (temp2) delete arg2; |
d14a1e28 RD |
16936 | } |
16937 | return resultobj; | |
16938 | fail: | |
16939 | { | |
7722248d | 16940 | if (temp2) delete arg2; |
d14a1e28 RD |
16941 | } |
16942 | return NULL; | |
16943 | } | |
16944 | ||
16945 | ||
16946 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16947 | PyObject *resultobj; | |
16948 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16949 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 16950 | bool arg3 = (bool) False ; |
d14a1e28 | 16951 | wxDateTime *result; |
7722248d | 16952 | bool temp2 = False ; |
d14a1e28 RD |
16953 | PyObject * obj0 = 0 ; |
16954 | PyObject * obj1 = 0 ; | |
16955 | PyObject * obj2 = 0 ; | |
16956 | char *kwnames[] = { | |
16957 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16958 | }; | |
16959 | ||
16960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16962 | { | |
16963 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 16964 | temp2 = True; |
d14a1e28 RD |
16965 | } |
16966 | if (obj2) { | |
16967 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16968 | if (PyErr_Occurred()) SWIG_fail; | |
16969 | } | |
16970 | { | |
16971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16972 | { | |
16973 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16974 | result = (wxDateTime *) &_result_ref; | |
16975 | } | |
16976 | ||
16977 | wxPyEndAllowThreads(__tstate); | |
16978 | if (PyErr_Occurred()) SWIG_fail; | |
16979 | } | |
16980 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16981 | { | |
7722248d | 16982 | if (temp2) delete arg2; |
d14a1e28 RD |
16983 | } |
16984 | return resultobj; | |
16985 | fail: | |
16986 | { | |
7722248d | 16987 | if (temp2) delete arg2; |
d14a1e28 RD |
16988 | } |
16989 | return NULL; | |
16990 | } | |
16991 | ||
16992 | ||
16993 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16994 | PyObject *resultobj; | |
16995 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 16996 | bool arg2 = (bool) False ; |
d14a1e28 RD |
16997 | wxDateTime result; |
16998 | PyObject * obj0 = 0 ; | |
16999 | PyObject * obj1 = 0 ; | |
17000 | char *kwnames[] = { | |
17001 | (char *) "self",(char *) "noDST", NULL | |
17002 | }; | |
17003 | ||
17004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
17005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17006 | if (obj1) { | |
17007 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17008 | if (PyErr_Occurred()) SWIG_fail; | |
17009 | } | |
17010 | { | |
17011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17012 | result = (arg1)->ToGMT(arg2); | |
17013 | ||
17014 | wxPyEndAllowThreads(__tstate); | |
17015 | if (PyErr_Occurred()) SWIG_fail; | |
17016 | } | |
17017 | { | |
17018 | wxDateTime * resultptr; | |
17019 | resultptr = new wxDateTime((wxDateTime &) result); | |
17020 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17021 | } | |
17022 | return resultobj; | |
17023 | fail: | |
17024 | return NULL; | |
17025 | } | |
17026 | ||
17027 | ||
17028 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17029 | PyObject *resultobj; | |
17030 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 17031 | bool arg2 = (bool) False ; |
d14a1e28 RD |
17032 | wxDateTime *result; |
17033 | PyObject * obj0 = 0 ; | |
17034 | PyObject * obj1 = 0 ; | |
17035 | char *kwnames[] = { | |
17036 | (char *) "self",(char *) "noDST", NULL | |
17037 | }; | |
17038 | ||
17039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
17040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17041 | if (obj1) { | |
17042 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17043 | if (PyErr_Occurred()) SWIG_fail; | |
17044 | } | |
17045 | { | |
17046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17047 | { | |
17048 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
17049 | result = (wxDateTime *) &_result_ref; | |
17050 | } | |
17051 | ||
17052 | wxPyEndAllowThreads(__tstate); | |
17053 | if (PyErr_Occurred()) SWIG_fail; | |
17054 | } | |
17055 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17056 | return resultobj; | |
17057 | fail: | |
17058 | return NULL; | |
17059 | } | |
17060 | ||
17061 | ||
17062 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17063 | PyObject *resultobj; | |
17064 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17065 | int arg2 = (int) wxDateTime::Country_Default ; | |
17066 | int result; | |
17067 | PyObject * obj0 = 0 ; | |
17068 | char *kwnames[] = { | |
17069 | (char *) "self",(char *) "country", NULL | |
17070 | }; | |
17071 | ||
17072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsDST",kwnames,&obj0,&arg2)) goto fail; | |
17073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17074 | { | |
17075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17076 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
17077 | ||
17078 | wxPyEndAllowThreads(__tstate); | |
17079 | if (PyErr_Occurred()) SWIG_fail; | |
17080 | } | |
17081 | resultobj = PyInt_FromLong((long)result); | |
17082 | return resultobj; | |
17083 | fail: | |
17084 | return NULL; | |
17085 | } | |
17086 | ||
17087 | ||
17088 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17089 | PyObject *resultobj; | |
17090 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17091 | bool result; | |
17092 | PyObject * obj0 = 0 ; | |
17093 | char *kwnames[] = { | |
17094 | (char *) "self", NULL | |
17095 | }; | |
17096 | ||
17097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
17098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17099 | { | |
17100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17101 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
17102 | ||
17103 | wxPyEndAllowThreads(__tstate); | |
17104 | if (PyErr_Occurred()) SWIG_fail; | |
17105 | } | |
17106 | resultobj = PyInt_FromLong((long)result); | |
17107 | return resultobj; | |
17108 | fail: | |
17109 | return NULL; | |
17110 | } | |
17111 | ||
17112 | ||
17113 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17114 | PyObject *resultobj; | |
17115 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17116 | time_t result; | |
17117 | PyObject * obj0 = 0 ; | |
17118 | char *kwnames[] = { | |
17119 | (char *) "self", NULL | |
17120 | }; | |
17121 | ||
17122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
17123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17124 | { | |
17125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17126 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
17127 | ||
17128 | wxPyEndAllowThreads(__tstate); | |
17129 | if (PyErr_Occurred()) SWIG_fail; | |
17130 | } | |
17131 | resultobj = PyInt_FromLong((long)result); | |
17132 | return resultobj; | |
17133 | fail: | |
17134 | return NULL; | |
17135 | } | |
17136 | ||
17137 | ||
17138 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17139 | PyObject *resultobj; | |
17140 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17141 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17142 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17143 | int result; | |
7722248d | 17144 | bool temp2 = False ; |
d14a1e28 RD |
17145 | PyObject * obj0 = 0 ; |
17146 | PyObject * obj1 = 0 ; | |
17147 | char *kwnames[] = { | |
17148 | (char *) "self",(char *) "tz", NULL | |
17149 | }; | |
17150 | ||
17151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
17152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17153 | if (obj1) { | |
17154 | { | |
17155 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17156 | temp2 = True; |
d14a1e28 RD |
17157 | } |
17158 | } | |
17159 | { | |
17160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17161 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
17162 | ||
17163 | wxPyEndAllowThreads(__tstate); | |
17164 | if (PyErr_Occurred()) SWIG_fail; | |
17165 | } | |
17166 | resultobj = PyInt_FromLong((long)result); | |
17167 | { | |
7722248d | 17168 | if (temp2) delete arg2; |
d14a1e28 RD |
17169 | } |
17170 | return resultobj; | |
17171 | fail: | |
17172 | { | |
7722248d | 17173 | if (temp2) delete arg2; |
d14a1e28 RD |
17174 | } |
17175 | return NULL; | |
17176 | } | |
17177 | ||
17178 | ||
17179 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17180 | PyObject *resultobj; | |
17181 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17182 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17183 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17184 | int result; | |
7722248d | 17185 | bool temp2 = False ; |
d14a1e28 RD |
17186 | PyObject * obj0 = 0 ; |
17187 | PyObject * obj1 = 0 ; | |
17188 | char *kwnames[] = { | |
17189 | (char *) "self",(char *) "tz", NULL | |
17190 | }; | |
17191 | ||
17192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17194 | if (obj1) { | |
17195 | { | |
17196 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17197 | temp2 = True; |
d14a1e28 RD |
17198 | } |
17199 | } | |
17200 | { | |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17202 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
17203 | ||
17204 | wxPyEndAllowThreads(__tstate); | |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
17206 | } | |
17207 | resultobj = PyInt_FromLong((long)result); | |
17208 | { | |
7722248d | 17209 | if (temp2) delete arg2; |
d14a1e28 RD |
17210 | } |
17211 | return resultobj; | |
17212 | fail: | |
17213 | { | |
7722248d | 17214 | if (temp2) delete arg2; |
d14a1e28 RD |
17215 | } |
17216 | return NULL; | |
17217 | } | |
17218 | ||
17219 | ||
17220 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17221 | PyObject *resultobj; | |
17222 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17223 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17224 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17225 | int result; |
7722248d | 17226 | bool temp2 = False ; |
d14a1e28 RD |
17227 | PyObject * obj0 = 0 ; |
17228 | PyObject * obj1 = 0 ; | |
17229 | char *kwnames[] = { | |
17230 | (char *) "self",(char *) "tz", NULL | |
17231 | }; | |
17232 | ||
17233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
17234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17235 | if (obj1) { | |
17236 | { | |
17237 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17238 | temp2 = True; |
d14a1e28 RD |
17239 | } |
17240 | } | |
17241 | { | |
17242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17243 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17244 | |
17245 | wxPyEndAllowThreads(__tstate); | |
17246 | if (PyErr_Occurred()) SWIG_fail; | |
17247 | } | |
17248 | resultobj = PyInt_FromLong((long)result); | |
17249 | { | |
7722248d | 17250 | if (temp2) delete arg2; |
d14a1e28 RD |
17251 | } |
17252 | return resultobj; | |
17253 | fail: | |
17254 | { | |
7722248d | 17255 | if (temp2) delete arg2; |
d14a1e28 RD |
17256 | } |
17257 | return NULL; | |
17258 | } | |
17259 | ||
17260 | ||
17261 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17262 | PyObject *resultobj; | |
17263 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17264 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17265 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17266 | int result; | |
7722248d | 17267 | bool temp2 = False ; |
d14a1e28 RD |
17268 | PyObject * obj0 = 0 ; |
17269 | PyObject * obj1 = 0 ; | |
17270 | char *kwnames[] = { | |
17271 | (char *) "self",(char *) "tz", NULL | |
17272 | }; | |
17273 | ||
17274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17276 | if (obj1) { | |
17277 | { | |
17278 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17279 | temp2 = True; |
d14a1e28 RD |
17280 | } |
17281 | } | |
17282 | { | |
17283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17284 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
17285 | ||
17286 | wxPyEndAllowThreads(__tstate); | |
17287 | if (PyErr_Occurred()) SWIG_fail; | |
17288 | } | |
17289 | resultobj = PyInt_FromLong((long)result); | |
17290 | { | |
7722248d | 17291 | if (temp2) delete arg2; |
d14a1e28 RD |
17292 | } |
17293 | return resultobj; | |
17294 | fail: | |
17295 | { | |
7722248d | 17296 | if (temp2) delete arg2; |
d14a1e28 RD |
17297 | } |
17298 | return NULL; | |
17299 | } | |
17300 | ||
17301 | ||
17302 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17303 | PyObject *resultobj; | |
17304 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17305 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17306 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17307 | int result; |
7722248d | 17308 | bool temp2 = False ; |
d14a1e28 RD |
17309 | PyObject * obj0 = 0 ; |
17310 | PyObject * obj1 = 0 ; | |
17311 | char *kwnames[] = { | |
17312 | (char *) "self",(char *) "tz", NULL | |
17313 | }; | |
17314 | ||
17315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
17316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17317 | if (obj1) { | |
17318 | { | |
17319 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17320 | temp2 = True; |
d14a1e28 RD |
17321 | } |
17322 | } | |
17323 | { | |
17324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17325 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17326 | |
17327 | wxPyEndAllowThreads(__tstate); | |
17328 | if (PyErr_Occurred()) SWIG_fail; | |
17329 | } | |
17330 | resultobj = PyInt_FromLong((long)result); | |
17331 | { | |
7722248d | 17332 | if (temp2) delete arg2; |
d14a1e28 RD |
17333 | } |
17334 | return resultobj; | |
17335 | fail: | |
17336 | { | |
7722248d | 17337 | if (temp2) delete arg2; |
d14a1e28 RD |
17338 | } |
17339 | return NULL; | |
17340 | } | |
17341 | ||
17342 | ||
17343 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17344 | PyObject *resultobj; | |
17345 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17346 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17347 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17348 | int result; |
7722248d | 17349 | bool temp2 = False ; |
d14a1e28 RD |
17350 | PyObject * obj0 = 0 ; |
17351 | PyObject * obj1 = 0 ; | |
17352 | char *kwnames[] = { | |
17353 | (char *) "self",(char *) "tz", NULL | |
17354 | }; | |
17355 | ||
17356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17358 | if (obj1) { | |
17359 | { | |
17360 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17361 | temp2 = True; |
d14a1e28 RD |
17362 | } |
17363 | } | |
17364 | { | |
17365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17366 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17367 | |
17368 | wxPyEndAllowThreads(__tstate); | |
17369 | if (PyErr_Occurred()) SWIG_fail; | |
17370 | } | |
17371 | resultobj = PyInt_FromLong((long)result); | |
17372 | { | |
7722248d | 17373 | if (temp2) delete arg2; |
d14a1e28 RD |
17374 | } |
17375 | return resultobj; | |
17376 | fail: | |
17377 | { | |
7722248d | 17378 | if (temp2) delete arg2; |
d14a1e28 RD |
17379 | } |
17380 | return NULL; | |
17381 | } | |
17382 | ||
17383 | ||
17384 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17385 | PyObject *resultobj; | |
17386 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17387 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17388 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17389 | int result; |
7722248d | 17390 | bool temp2 = False ; |
d14a1e28 RD |
17391 | PyObject * obj0 = 0 ; |
17392 | PyObject * obj1 = 0 ; | |
17393 | char *kwnames[] = { | |
17394 | (char *) "self",(char *) "tz", NULL | |
17395 | }; | |
17396 | ||
17397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17399 | if (obj1) { | |
17400 | { | |
17401 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17402 | temp2 = True; |
d14a1e28 RD |
17403 | } |
17404 | } | |
17405 | { | |
17406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17407 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17408 | |
17409 | wxPyEndAllowThreads(__tstate); | |
17410 | if (PyErr_Occurred()) SWIG_fail; | |
17411 | } | |
17412 | resultobj = PyInt_FromLong((long)result); | |
17413 | { | |
7722248d | 17414 | if (temp2) delete arg2; |
d14a1e28 RD |
17415 | } |
17416 | return resultobj; | |
17417 | fail: | |
17418 | { | |
7722248d | 17419 | if (temp2) delete arg2; |
d14a1e28 RD |
17420 | } |
17421 | return NULL; | |
17422 | } | |
17423 | ||
17424 | ||
17425 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17426 | PyObject *resultobj; | |
17427 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17428 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17429 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17430 | int result; |
7722248d | 17431 | bool temp2 = False ; |
d14a1e28 RD |
17432 | PyObject * obj0 = 0 ; |
17433 | PyObject * obj1 = 0 ; | |
17434 | char *kwnames[] = { | |
17435 | (char *) "self",(char *) "tz", NULL | |
17436 | }; | |
17437 | ||
17438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17440 | if (obj1) { | |
17441 | { | |
17442 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17443 | temp2 = True; |
d14a1e28 RD |
17444 | } |
17445 | } | |
17446 | { | |
17447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17448 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17449 | |
17450 | wxPyEndAllowThreads(__tstate); | |
17451 | if (PyErr_Occurred()) SWIG_fail; | |
17452 | } | |
17453 | resultobj = PyInt_FromLong((long)result); | |
17454 | { | |
7722248d | 17455 | if (temp2) delete arg2; |
d14a1e28 RD |
17456 | } |
17457 | return resultobj; | |
17458 | fail: | |
17459 | { | |
7722248d | 17460 | if (temp2) delete arg2; |
d14a1e28 RD |
17461 | } |
17462 | return NULL; | |
17463 | } | |
17464 | ||
17465 | ||
17466 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17467 | PyObject *resultobj; | |
17468 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17469 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17470 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17471 | int result; |
7722248d | 17472 | bool temp2 = False ; |
d14a1e28 RD |
17473 | PyObject * obj0 = 0 ; |
17474 | PyObject * obj1 = 0 ; | |
17475 | char *kwnames[] = { | |
17476 | (char *) "self",(char *) "tz", NULL | |
17477 | }; | |
17478 | ||
17479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
17480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17481 | if (obj1) { | |
17482 | { | |
17483 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17484 | temp2 = True; |
d14a1e28 RD |
17485 | } |
17486 | } | |
17487 | { | |
17488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17489 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17490 | |
17491 | wxPyEndAllowThreads(__tstate); | |
17492 | if (PyErr_Occurred()) SWIG_fail; | |
17493 | } | |
17494 | resultobj = PyInt_FromLong((long)result); | |
17495 | { | |
7722248d | 17496 | if (temp2) delete arg2; |
d14a1e28 RD |
17497 | } |
17498 | return resultobj; | |
17499 | fail: | |
17500 | { | |
7722248d | 17501 | if (temp2) delete arg2; |
d14a1e28 RD |
17502 | } |
17503 | return NULL; | |
17504 | } | |
17505 | ||
17506 | ||
17507 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17508 | PyObject *resultobj; | |
17509 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17510 | int arg2 = (int) wxDateTime::Monday_First ; | |
17511 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17512 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 17513 | int result; |
7722248d | 17514 | bool temp3 = False ; |
d14a1e28 RD |
17515 | PyObject * obj0 = 0 ; |
17516 | PyObject * obj2 = 0 ; | |
17517 | char *kwnames[] = { | |
17518 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17519 | }; | |
17520 | ||
17521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfYear",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17523 | if (obj2) { | |
17524 | { | |
17525 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 17526 | temp3 = True; |
d14a1e28 RD |
17527 | } |
17528 | } | |
17529 | { | |
17530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17531 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17532 | |
17533 | wxPyEndAllowThreads(__tstate); | |
17534 | if (PyErr_Occurred()) SWIG_fail; | |
17535 | } | |
17536 | resultobj = PyInt_FromLong((long)result); | |
17537 | { | |
7722248d | 17538 | if (temp3) delete arg3; |
d14a1e28 RD |
17539 | } |
17540 | return resultobj; | |
17541 | fail: | |
17542 | { | |
7722248d | 17543 | if (temp3) delete arg3; |
d14a1e28 RD |
17544 | } |
17545 | return NULL; | |
17546 | } | |
17547 | ||
17548 | ||
17549 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17550 | PyObject *resultobj; | |
17551 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17552 | int arg2 = (int) wxDateTime::Monday_First ; | |
17553 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17554 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 17555 | int result; |
7722248d | 17556 | bool temp3 = False ; |
d14a1e28 RD |
17557 | PyObject * obj0 = 0 ; |
17558 | PyObject * obj2 = 0 ; | |
17559 | char *kwnames[] = { | |
17560 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17561 | }; | |
17562 | ||
17563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfMonth",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17565 | if (obj2) { | |
17566 | { | |
17567 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 17568 | temp3 = True; |
d14a1e28 RD |
17569 | } |
17570 | } | |
17571 | { | |
17572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17573 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17574 | |
17575 | wxPyEndAllowThreads(__tstate); | |
17576 | if (PyErr_Occurred()) SWIG_fail; | |
17577 | } | |
17578 | resultobj = PyInt_FromLong((long)result); | |
17579 | { | |
7722248d | 17580 | if (temp3) delete arg3; |
d14a1e28 RD |
17581 | } |
17582 | return resultobj; | |
17583 | fail: | |
17584 | { | |
7722248d | 17585 | if (temp3) delete arg3; |
d14a1e28 RD |
17586 | } |
17587 | return NULL; | |
17588 | } | |
17589 | ||
17590 | ||
17591 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17592 | PyObject *resultobj; | |
17593 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17594 | int arg2 = (int) wxDateTime::Country_Default ; | |
17595 | bool result; | |
17596 | PyObject * obj0 = 0 ; | |
17597 | char *kwnames[] = { | |
17598 | (char *) "self",(char *) "country", NULL | |
17599 | }; | |
17600 | ||
17601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsWorkDay",kwnames,&obj0,&arg2)) goto fail; | |
17602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17603 | { | |
17604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17605 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
17606 | ||
17607 | wxPyEndAllowThreads(__tstate); | |
17608 | if (PyErr_Occurred()) SWIG_fail; | |
17609 | } | |
17610 | resultobj = PyInt_FromLong((long)result); | |
17611 | return resultobj; | |
17612 | fail: | |
17613 | return NULL; | |
17614 | } | |
17615 | ||
17616 | ||
17617 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17618 | PyObject *resultobj; | |
17619 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17620 | wxDateTime *arg2 = 0 ; | |
17621 | bool result; | |
17622 | PyObject * obj0 = 0 ; | |
17623 | PyObject * obj1 = 0 ; | |
17624 | char *kwnames[] = { | |
17625 | (char *) "self",(char *) "datetime", NULL | |
17626 | }; | |
17627 | ||
17628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
17629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17630 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17631 | if (arg2 == NULL) { | |
17632 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17633 | } | |
17634 | { | |
17635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17636 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
17637 | ||
17638 | wxPyEndAllowThreads(__tstate); | |
17639 | if (PyErr_Occurred()) SWIG_fail; | |
17640 | } | |
17641 | resultobj = PyInt_FromLong((long)result); | |
17642 | return resultobj; | |
17643 | fail: | |
17644 | return NULL; | |
17645 | } | |
17646 | ||
17647 | ||
17648 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17649 | PyObject *resultobj; | |
17650 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17651 | wxDateTime *arg2 = 0 ; | |
17652 | bool result; | |
17653 | PyObject * obj0 = 0 ; | |
17654 | PyObject * obj1 = 0 ; | |
17655 | char *kwnames[] = { | |
17656 | (char *) "self",(char *) "datetime", NULL | |
17657 | }; | |
17658 | ||
17659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
17660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17661 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17662 | if (arg2 == NULL) { | |
17663 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17664 | } | |
17665 | { | |
17666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17667 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
17668 | ||
17669 | wxPyEndAllowThreads(__tstate); | |
17670 | if (PyErr_Occurred()) SWIG_fail; | |
17671 | } | |
17672 | resultobj = PyInt_FromLong((long)result); | |
17673 | return resultobj; | |
17674 | fail: | |
17675 | return NULL; | |
17676 | } | |
17677 | ||
17678 | ||
17679 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17680 | PyObject *resultobj; | |
17681 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17682 | wxDateTime *arg2 = 0 ; | |
17683 | bool result; | |
17684 | PyObject * obj0 = 0 ; | |
17685 | PyObject * obj1 = 0 ; | |
17686 | char *kwnames[] = { | |
17687 | (char *) "self",(char *) "datetime", NULL | |
17688 | }; | |
17689 | ||
17690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
17691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17692 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17693 | if (arg2 == NULL) { | |
17694 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17695 | } | |
17696 | { | |
17697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17698 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
17699 | ||
17700 | wxPyEndAllowThreads(__tstate); | |
17701 | if (PyErr_Occurred()) SWIG_fail; | |
17702 | } | |
17703 | resultobj = PyInt_FromLong((long)result); | |
17704 | return resultobj; | |
17705 | fail: | |
17706 | return NULL; | |
17707 | } | |
17708 | ||
17709 | ||
17710 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17711 | PyObject *resultobj; | |
17712 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17713 | wxDateTime *arg2 = 0 ; | |
17714 | wxDateTime *arg3 = 0 ; | |
17715 | bool result; | |
17716 | PyObject * obj0 = 0 ; | |
17717 | PyObject * obj1 = 0 ; | |
17718 | PyObject * obj2 = 0 ; | |
17719 | char *kwnames[] = { | |
17720 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17721 | }; | |
17722 | ||
17723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17725 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17726 | if (arg2 == NULL) { | |
17727 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17728 | } | |
17729 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17730 | if (arg3 == NULL) { | |
17731 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17732 | } | |
17733 | { | |
17734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17735 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17736 | ||
17737 | wxPyEndAllowThreads(__tstate); | |
17738 | if (PyErr_Occurred()) SWIG_fail; | |
17739 | } | |
17740 | resultobj = PyInt_FromLong((long)result); | |
17741 | return resultobj; | |
17742 | fail: | |
17743 | return NULL; | |
17744 | } | |
17745 | ||
17746 | ||
17747 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17748 | PyObject *resultobj; | |
17749 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17750 | wxDateTime *arg2 = 0 ; | |
17751 | wxDateTime *arg3 = 0 ; | |
17752 | bool result; | |
17753 | PyObject * obj0 = 0 ; | |
17754 | PyObject * obj1 = 0 ; | |
17755 | PyObject * obj2 = 0 ; | |
17756 | char *kwnames[] = { | |
17757 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17758 | }; | |
17759 | ||
17760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17762 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17763 | if (arg2 == NULL) { | |
17764 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17765 | } | |
17766 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17767 | if (arg3 == NULL) { | |
17768 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17769 | } | |
17770 | { | |
17771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17772 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17773 | ||
17774 | wxPyEndAllowThreads(__tstate); | |
17775 | if (PyErr_Occurred()) SWIG_fail; | |
17776 | } | |
17777 | resultobj = PyInt_FromLong((long)result); | |
17778 | return resultobj; | |
17779 | fail: | |
17780 | return NULL; | |
17781 | } | |
17782 | ||
17783 | ||
17784 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17785 | PyObject *resultobj; | |
17786 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17787 | wxDateTime *arg2 = 0 ; | |
17788 | bool result; | |
17789 | PyObject * obj0 = 0 ; | |
17790 | PyObject * obj1 = 0 ; | |
17791 | char *kwnames[] = { | |
17792 | (char *) "self",(char *) "dt", NULL | |
17793 | }; | |
17794 | ||
17795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
17796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17797 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17798 | if (arg2 == NULL) { | |
17799 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17800 | } | |
17801 | { | |
17802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17803 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
17804 | ||
17805 | wxPyEndAllowThreads(__tstate); | |
17806 | if (PyErr_Occurred()) SWIG_fail; | |
17807 | } | |
17808 | resultobj = PyInt_FromLong((long)result); | |
17809 | return resultobj; | |
17810 | fail: | |
17811 | return NULL; | |
17812 | } | |
17813 | ||
17814 | ||
17815 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17816 | PyObject *resultobj; | |
17817 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17818 | wxDateTime *arg2 = 0 ; | |
17819 | bool result; | |
17820 | PyObject * obj0 = 0 ; | |
17821 | PyObject * obj1 = 0 ; | |
17822 | char *kwnames[] = { | |
17823 | (char *) "self",(char *) "dt", NULL | |
17824 | }; | |
17825 | ||
17826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
17827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17828 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17829 | if (arg2 == NULL) { | |
17830 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17831 | } | |
17832 | { | |
17833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17834 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
17835 | ||
17836 | wxPyEndAllowThreads(__tstate); | |
17837 | if (PyErr_Occurred()) SWIG_fail; | |
17838 | } | |
17839 | resultobj = PyInt_FromLong((long)result); | |
17840 | return resultobj; | |
17841 | fail: | |
17842 | return NULL; | |
17843 | } | |
17844 | ||
17845 | ||
17846 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17847 | PyObject *resultobj; | |
17848 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17849 | wxDateTime *arg2 = 0 ; | |
17850 | wxTimeSpan *arg3 = 0 ; | |
17851 | bool result; | |
17852 | PyObject * obj0 = 0 ; | |
17853 | PyObject * obj1 = 0 ; | |
17854 | PyObject * obj2 = 0 ; | |
17855 | char *kwnames[] = { | |
17856 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
17857 | }; | |
17858 | ||
17859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17861 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17862 | if (arg2 == NULL) { | |
17863 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17864 | } | |
17865 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17866 | if (arg3 == NULL) { | |
17867 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17868 | } | |
17869 | { | |
17870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17871 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
17872 | ||
17873 | wxPyEndAllowThreads(__tstate); | |
17874 | if (PyErr_Occurred()) SWIG_fail; | |
17875 | } | |
17876 | resultobj = PyInt_FromLong((long)result); | |
17877 | return resultobj; | |
17878 | fail: | |
17879 | return NULL; | |
17880 | } | |
17881 | ||
17882 | ||
17883 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17884 | PyObject *resultobj; | |
17885 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17886 | wxTimeSpan *arg2 = 0 ; | |
17887 | wxDateTime *result; | |
17888 | PyObject * obj0 = 0 ; | |
17889 | PyObject * obj1 = 0 ; | |
17890 | char *kwnames[] = { | |
17891 | (char *) "self",(char *) "diff", NULL | |
17892 | }; | |
17893 | ||
17894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
17895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17896 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17897 | if (arg2 == NULL) { | |
17898 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17899 | } | |
17900 | { | |
17901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17902 | { | |
17903 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
17904 | result = (wxDateTime *) &_result_ref; | |
17905 | } | |
17906 | ||
17907 | wxPyEndAllowThreads(__tstate); | |
17908 | if (PyErr_Occurred()) SWIG_fail; | |
17909 | } | |
17910 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17911 | return resultobj; | |
17912 | fail: | |
17913 | return NULL; | |
17914 | } | |
17915 | ||
17916 | ||
17917 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17918 | PyObject *resultobj; | |
17919 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17920 | wxDateSpan *arg2 = 0 ; | |
17921 | wxDateTime *result; | |
17922 | PyObject * obj0 = 0 ; | |
17923 | PyObject * obj1 = 0 ; | |
17924 | char *kwnames[] = { | |
17925 | (char *) "self",(char *) "diff", NULL | |
17926 | }; | |
17927 | ||
17928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
17929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17930 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17931 | if (arg2 == NULL) { | |
17932 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17933 | } | |
17934 | { | |
17935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17936 | { | |
17937 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
17938 | result = (wxDateTime *) &_result_ref; | |
17939 | } | |
17940 | ||
17941 | wxPyEndAllowThreads(__tstate); | |
17942 | if (PyErr_Occurred()) SWIG_fail; | |
17943 | } | |
17944 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17945 | return resultobj; | |
17946 | fail: | |
17947 | return NULL; | |
17948 | } | |
17949 | ||
17950 | ||
17951 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17952 | PyObject *resultobj; | |
17953 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17954 | wxTimeSpan *arg2 = 0 ; | |
17955 | wxDateTime *result; | |
17956 | PyObject * obj0 = 0 ; | |
17957 | PyObject * obj1 = 0 ; | |
17958 | char *kwnames[] = { | |
17959 | (char *) "self",(char *) "diff", NULL | |
17960 | }; | |
17961 | ||
17962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
17963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17964 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17965 | if (arg2 == NULL) { | |
17966 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17967 | } | |
17968 | { | |
17969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17970 | { | |
17971 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
17972 | result = (wxDateTime *) &_result_ref; | |
17973 | } | |
17974 | ||
17975 | wxPyEndAllowThreads(__tstate); | |
17976 | if (PyErr_Occurred()) SWIG_fail; | |
17977 | } | |
17978 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17979 | return resultobj; | |
17980 | fail: | |
17981 | return NULL; | |
17982 | } | |
17983 | ||
17984 | ||
17985 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17986 | PyObject *resultobj; | |
17987 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17988 | wxDateSpan *arg2 = 0 ; | |
17989 | wxDateTime *result; | |
17990 | PyObject * obj0 = 0 ; | |
17991 | PyObject * obj1 = 0 ; | |
17992 | char *kwnames[] = { | |
17993 | (char *) "self",(char *) "diff", NULL | |
17994 | }; | |
17995 | ||
17996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
17997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17998 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17999 | if (arg2 == NULL) { | |
18000 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18001 | } | |
18002 | { | |
18003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18004 | { | |
18005 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
18006 | result = (wxDateTime *) &_result_ref; | |
18007 | } | |
18008 | ||
18009 | wxPyEndAllowThreads(__tstate); | |
18010 | if (PyErr_Occurred()) SWIG_fail; | |
18011 | } | |
18012 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18013 | return resultobj; | |
18014 | fail: | |
18015 | return NULL; | |
18016 | } | |
18017 | ||
18018 | ||
18019 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18020 | PyObject *resultobj; | |
18021 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18022 | wxDateTime *arg2 = 0 ; | |
18023 | wxTimeSpan result; | |
18024 | PyObject * obj0 = 0 ; | |
18025 | PyObject * obj1 = 0 ; | |
18026 | char *kwnames[] = { | |
18027 | (char *) "self",(char *) "dt", NULL | |
18028 | }; | |
18029 | ||
18030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
18031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18032 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18033 | if (arg2 == NULL) { | |
18034 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18035 | } | |
18036 | { | |
18037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18038 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
18039 | ||
18040 | wxPyEndAllowThreads(__tstate); | |
18041 | if (PyErr_Occurred()) SWIG_fail; | |
18042 | } | |
18043 | { | |
18044 | wxTimeSpan * resultptr; | |
18045 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18046 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18047 | } | |
18048 | return resultobj; | |
18049 | fail: | |
18050 | return NULL; | |
18051 | } | |
18052 | ||
18053 | ||
18054 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
18055 | PyObject *resultobj; | |
18056 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18057 | wxTimeSpan *arg2 = 0 ; | |
18058 | wxDateTime *result; | |
18059 | PyObject * obj0 = 0 ; | |
18060 | PyObject * obj1 = 0 ; | |
18061 | ||
18062 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
18063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18064 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18065 | if (arg2 == NULL) { | |
18066 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18067 | } | |
18068 | { | |
18069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18070 | { | |
18071 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
18072 | result = (wxDateTime *) &_result_ref; | |
18073 | } | |
18074 | ||
18075 | wxPyEndAllowThreads(__tstate); | |
18076 | if (PyErr_Occurred()) SWIG_fail; | |
18077 | } | |
18078 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18079 | return resultobj; | |
18080 | fail: | |
18081 | return NULL; | |
18082 | } | |
18083 | ||
18084 | ||
18085 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
18086 | PyObject *resultobj; | |
18087 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18088 | wxDateSpan *arg2 = 0 ; | |
18089 | wxDateTime *result; | |
18090 | PyObject * obj0 = 0 ; | |
18091 | PyObject * obj1 = 0 ; | |
18092 | ||
18093 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
18094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18095 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18096 | if (arg2 == NULL) { | |
18097 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18098 | } | |
18099 | { | |
18100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18101 | { | |
18102 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
18103 | result = (wxDateTime *) &_result_ref; | |
18104 | } | |
18105 | ||
18106 | wxPyEndAllowThreads(__tstate); | |
18107 | if (PyErr_Occurred()) SWIG_fail; | |
18108 | } | |
18109 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18110 | return resultobj; | |
18111 | fail: | |
18112 | return NULL; | |
18113 | } | |
18114 | ||
18115 | ||
18116 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
18117 | int argc; | |
18118 | PyObject *argv[3]; | |
18119 | int ii; | |
18120 | ||
18121 | argc = PyObject_Length(args); | |
18122 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18123 | argv[ii] = PyTuple_GetItem(args,ii); | |
18124 | } | |
18125 | if (argc == 2) { | |
18126 | int _v; | |
18127 | { | |
18128 | void *ptr; | |
18129 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18130 | _v = 0; | |
18131 | PyErr_Clear(); | |
18132 | } else { | |
18133 | _v = 1; | |
18134 | } | |
18135 | } | |
18136 | if (_v) { | |
18137 | { | |
18138 | void *ptr; | |
18139 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18140 | _v = 0; | |
18141 | PyErr_Clear(); | |
18142 | } else { | |
18143 | _v = 1; | |
18144 | } | |
18145 | } | |
18146 | if (_v) { | |
18147 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
18148 | } | |
18149 | } | |
18150 | } | |
18151 | if (argc == 2) { | |
18152 | int _v; | |
18153 | { | |
18154 | void *ptr; | |
18155 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18156 | _v = 0; | |
18157 | PyErr_Clear(); | |
18158 | } else { | |
18159 | _v = 1; | |
18160 | } | |
18161 | } | |
18162 | if (_v) { | |
18163 | { | |
18164 | void *ptr; | |
18165 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18166 | _v = 0; | |
18167 | PyErr_Clear(); | |
18168 | } else { | |
18169 | _v = 1; | |
18170 | } | |
18171 | } | |
18172 | if (_v) { | |
18173 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
18174 | } | |
18175 | } | |
18176 | } | |
18177 | ||
18178 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
18183 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
18184 | PyObject *resultobj; | |
18185 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18186 | wxTimeSpan *arg2 = 0 ; | |
18187 | wxDateTime *result; | |
18188 | PyObject * obj0 = 0 ; | |
18189 | PyObject * obj1 = 0 ; | |
18190 | ||
18191 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18193 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18194 | if (arg2 == NULL) { | |
18195 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18196 | } | |
18197 | { | |
18198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18199 | { | |
18200 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
18201 | result = (wxDateTime *) &_result_ref; | |
18202 | } | |
18203 | ||
18204 | wxPyEndAllowThreads(__tstate); | |
18205 | if (PyErr_Occurred()) SWIG_fail; | |
18206 | } | |
18207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18208 | return resultobj; | |
18209 | fail: | |
18210 | return NULL; | |
18211 | } | |
18212 | ||
18213 | ||
18214 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
18215 | PyObject *resultobj; | |
18216 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18217 | wxDateSpan *arg2 = 0 ; | |
18218 | wxDateTime *result; | |
18219 | PyObject * obj0 = 0 ; | |
18220 | PyObject * obj1 = 0 ; | |
18221 | ||
18222 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18224 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18225 | if (arg2 == NULL) { | |
18226 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18227 | } | |
18228 | { | |
18229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18230 | { | |
18231 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
18232 | result = (wxDateTime *) &_result_ref; | |
18233 | } | |
18234 | ||
18235 | wxPyEndAllowThreads(__tstate); | |
18236 | if (PyErr_Occurred()) SWIG_fail; | |
18237 | } | |
18238 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18239 | return resultobj; | |
18240 | fail: | |
18241 | return NULL; | |
18242 | } | |
18243 | ||
18244 | ||
18245 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
18246 | int argc; | |
18247 | PyObject *argv[3]; | |
18248 | int ii; | |
18249 | ||
18250 | argc = PyObject_Length(args); | |
18251 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18252 | argv[ii] = PyTuple_GetItem(args,ii); | |
18253 | } | |
18254 | if (argc == 2) { | |
18255 | int _v; | |
18256 | { | |
18257 | void *ptr; | |
18258 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18259 | _v = 0; | |
18260 | PyErr_Clear(); | |
18261 | } else { | |
18262 | _v = 1; | |
18263 | } | |
18264 | } | |
18265 | if (_v) { | |
18266 | { | |
18267 | void *ptr; | |
18268 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18269 | _v = 0; | |
18270 | PyErr_Clear(); | |
18271 | } else { | |
18272 | _v = 1; | |
18273 | } | |
18274 | } | |
18275 | if (_v) { | |
18276 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
18277 | } | |
18278 | } | |
18279 | } | |
18280 | if (argc == 2) { | |
18281 | int _v; | |
18282 | { | |
18283 | void *ptr; | |
18284 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18285 | _v = 0; | |
18286 | PyErr_Clear(); | |
18287 | } else { | |
18288 | _v = 1; | |
18289 | } | |
18290 | } | |
18291 | if (_v) { | |
18292 | { | |
18293 | void *ptr; | |
18294 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18295 | _v = 0; | |
18296 | PyErr_Clear(); | |
18297 | } else { | |
18298 | _v = 1; | |
18299 | } | |
18300 | } | |
18301 | if (_v) { | |
18302 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
18303 | } | |
18304 | } | |
18305 | } | |
18306 | ||
18307 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
18308 | return NULL; | |
18309 | } | |
18310 | ||
18311 | ||
18312 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
18313 | PyObject *resultobj; | |
18314 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18315 | wxTimeSpan *arg2 = 0 ; | |
18316 | wxDateTime result; | |
18317 | PyObject * obj0 = 0 ; | |
18318 | PyObject * obj1 = 0 ; | |
18319 | ||
18320 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18322 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18323 | if (arg2 == NULL) { | |
18324 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18325 | } | |
18326 | { | |
18327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18328 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
18329 | ||
18330 | wxPyEndAllowThreads(__tstate); | |
18331 | if (PyErr_Occurred()) SWIG_fail; | |
18332 | } | |
18333 | { | |
18334 | wxDateTime * resultptr; | |
18335 | resultptr = new wxDateTime((wxDateTime &) result); | |
18336 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18337 | } | |
18338 | return resultobj; | |
18339 | fail: | |
18340 | return NULL; | |
18341 | } | |
18342 | ||
18343 | ||
18344 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
18345 | PyObject *resultobj; | |
18346 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18347 | wxDateSpan *arg2 = 0 ; | |
18348 | wxDateTime result; | |
18349 | PyObject * obj0 = 0 ; | |
18350 | PyObject * obj1 = 0 ; | |
18351 | ||
18352 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18354 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18355 | if (arg2 == NULL) { | |
18356 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18357 | } | |
18358 | { | |
18359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18360 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
18361 | ||
18362 | wxPyEndAllowThreads(__tstate); | |
18363 | if (PyErr_Occurred()) SWIG_fail; | |
18364 | } | |
18365 | { | |
18366 | wxDateTime * resultptr; | |
18367 | resultptr = new wxDateTime((wxDateTime &) result); | |
18368 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18369 | } | |
18370 | return resultobj; | |
18371 | fail: | |
18372 | return NULL; | |
18373 | } | |
18374 | ||
18375 | ||
18376 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
18377 | int argc; | |
18378 | PyObject *argv[3]; | |
18379 | int ii; | |
18380 | ||
18381 | argc = PyObject_Length(args); | |
18382 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18383 | argv[ii] = PyTuple_GetItem(args,ii); | |
18384 | } | |
18385 | if (argc == 2) { | |
18386 | int _v; | |
18387 | { | |
18388 | void *ptr; | |
18389 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18390 | _v = 0; | |
18391 | PyErr_Clear(); | |
18392 | } else { | |
18393 | _v = 1; | |
18394 | } | |
18395 | } | |
18396 | if (_v) { | |
18397 | { | |
18398 | void *ptr; | |
18399 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18400 | _v = 0; | |
18401 | PyErr_Clear(); | |
18402 | } else { | |
18403 | _v = 1; | |
18404 | } | |
18405 | } | |
18406 | if (_v) { | |
18407 | return _wrap_DateTime___add____SWIG_0(self,args); | |
18408 | } | |
18409 | } | |
18410 | } | |
18411 | if (argc == 2) { | |
18412 | int _v; | |
18413 | { | |
18414 | void *ptr; | |
18415 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18416 | _v = 0; | |
18417 | PyErr_Clear(); | |
18418 | } else { | |
18419 | _v = 1; | |
18420 | } | |
18421 | } | |
18422 | if (_v) { | |
18423 | { | |
18424 | void *ptr; | |
18425 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18426 | _v = 0; | |
18427 | PyErr_Clear(); | |
18428 | } else { | |
18429 | _v = 1; | |
18430 | } | |
18431 | } | |
18432 | if (_v) { | |
18433 | return _wrap_DateTime___add____SWIG_1(self,args); | |
18434 | } | |
18435 | } | |
18436 | } | |
18437 | ||
18438 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
18439 | return NULL; | |
18440 | } | |
18441 | ||
18442 | ||
18443 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
18444 | PyObject *resultobj; | |
18445 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18446 | wxDateTime *arg2 = 0 ; | |
18447 | wxTimeSpan result; | |
18448 | PyObject * obj0 = 0 ; | |
18449 | PyObject * obj1 = 0 ; | |
18450 | ||
18451 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18453 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18454 | if (arg2 == NULL) { | |
18455 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18456 | } | |
18457 | { | |
18458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18459 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
18460 | ||
18461 | wxPyEndAllowThreads(__tstate); | |
18462 | if (PyErr_Occurred()) SWIG_fail; | |
18463 | } | |
18464 | { | |
18465 | wxTimeSpan * resultptr; | |
18466 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18467 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18468 | } | |
18469 | return resultobj; | |
18470 | fail: | |
18471 | return NULL; | |
18472 | } | |
18473 | ||
18474 | ||
18475 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
18476 | PyObject *resultobj; | |
18477 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18478 | wxTimeSpan *arg2 = 0 ; | |
18479 | wxDateTime result; | |
18480 | PyObject * obj0 = 0 ; | |
18481 | PyObject * obj1 = 0 ; | |
18482 | ||
18483 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18485 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18486 | if (arg2 == NULL) { | |
18487 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18488 | } | |
18489 | { | |
18490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18491 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
18492 | ||
18493 | wxPyEndAllowThreads(__tstate); | |
18494 | if (PyErr_Occurred()) SWIG_fail; | |
18495 | } | |
18496 | { | |
18497 | wxDateTime * resultptr; | |
18498 | resultptr = new wxDateTime((wxDateTime &) result); | |
18499 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18500 | } | |
18501 | return resultobj; | |
18502 | fail: | |
18503 | return NULL; | |
18504 | } | |
18505 | ||
18506 | ||
18507 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
18508 | PyObject *resultobj; | |
18509 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18510 | wxDateSpan *arg2 = 0 ; | |
18511 | wxDateTime result; | |
18512 | PyObject * obj0 = 0 ; | |
18513 | PyObject * obj1 = 0 ; | |
18514 | ||
18515 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18517 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18518 | if (arg2 == NULL) { | |
18519 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18520 | } | |
18521 | { | |
18522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18523 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
18524 | ||
18525 | wxPyEndAllowThreads(__tstate); | |
18526 | if (PyErr_Occurred()) SWIG_fail; | |
18527 | } | |
18528 | { | |
18529 | wxDateTime * resultptr; | |
18530 | resultptr = new wxDateTime((wxDateTime &) result); | |
18531 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18532 | } | |
18533 | return resultobj; | |
18534 | fail: | |
18535 | return NULL; | |
18536 | } | |
18537 | ||
18538 | ||
18539 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
18540 | int argc; | |
18541 | PyObject *argv[3]; | |
18542 | int ii; | |
18543 | ||
18544 | argc = PyObject_Length(args); | |
18545 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18546 | argv[ii] = PyTuple_GetItem(args,ii); | |
18547 | } | |
18548 | if (argc == 2) { | |
18549 | int _v; | |
18550 | { | |
18551 | void *ptr; | |
18552 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18553 | _v = 0; | |
18554 | PyErr_Clear(); | |
18555 | } else { | |
18556 | _v = 1; | |
18557 | } | |
18558 | } | |
18559 | if (_v) { | |
18560 | { | |
18561 | void *ptr; | |
18562 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18563 | _v = 0; | |
18564 | PyErr_Clear(); | |
18565 | } else { | |
18566 | _v = 1; | |
18567 | } | |
18568 | } | |
18569 | if (_v) { | |
18570 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
18571 | } | |
18572 | } | |
18573 | } | |
18574 | if (argc == 2) { | |
18575 | int _v; | |
18576 | { | |
18577 | void *ptr; | |
18578 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18579 | _v = 0; | |
18580 | PyErr_Clear(); | |
18581 | } else { | |
18582 | _v = 1; | |
18583 | } | |
18584 | } | |
18585 | if (_v) { | |
18586 | { | |
18587 | void *ptr; | |
18588 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18589 | _v = 0; | |
18590 | PyErr_Clear(); | |
18591 | } else { | |
18592 | _v = 1; | |
18593 | } | |
18594 | } | |
18595 | if (_v) { | |
18596 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
18597 | } | |
18598 | } | |
18599 | } | |
18600 | if (argc == 2) { | |
18601 | int _v; | |
18602 | { | |
18603 | void *ptr; | |
18604 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18605 | _v = 0; | |
18606 | PyErr_Clear(); | |
18607 | } else { | |
18608 | _v = 1; | |
18609 | } | |
18610 | } | |
18611 | if (_v) { | |
18612 | { | |
18613 | void *ptr; | |
18614 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18615 | _v = 0; | |
18616 | PyErr_Clear(); | |
18617 | } else { | |
18618 | _v = 1; | |
18619 | } | |
18620 | } | |
18621 | if (_v) { | |
18622 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
18623 | } | |
18624 | } | |
18625 | } | |
18626 | ||
18627 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
18628 | return NULL; | |
18629 | } | |
18630 | ||
18631 | ||
18632 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
18633 | PyObject *resultobj; | |
18634 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18635 | wxDateTime *arg2 = 0 ; | |
18636 | bool result; | |
18637 | PyObject * obj0 = 0 ; | |
18638 | PyObject * obj1 = 0 ; | |
18639 | ||
18640 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
18641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18642 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18643 | if (arg2 == NULL) { | |
18644 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18645 | } | |
18646 | { | |
18647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18648 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2); | |
18649 | ||
18650 | wxPyEndAllowThreads(__tstate); | |
18651 | if (PyErr_Occurred()) SWIG_fail; | |
18652 | } | |
18653 | resultobj = PyInt_FromLong((long)result); | |
18654 | return resultobj; | |
18655 | fail: | |
18656 | return NULL; | |
18657 | } | |
18658 | ||
18659 | ||
18660 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
18661 | PyObject *resultobj; | |
18662 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18663 | wxDateTime *arg2 = 0 ; | |
18664 | bool result; | |
18665 | PyObject * obj0 = 0 ; | |
18666 | PyObject * obj1 = 0 ; | |
18667 | ||
18668 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
18669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18670 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18671 | if (arg2 == NULL) { | |
18672 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18673 | } | |
18674 | { | |
18675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18676 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2); | |
18677 | ||
18678 | wxPyEndAllowThreads(__tstate); | |
18679 | if (PyErr_Occurred()) SWIG_fail; | |
18680 | } | |
18681 | resultobj = PyInt_FromLong((long)result); | |
18682 | return resultobj; | |
18683 | fail: | |
18684 | return NULL; | |
18685 | } | |
18686 | ||
18687 | ||
18688 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
18689 | PyObject *resultobj; | |
18690 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18691 | wxDateTime *arg2 = 0 ; | |
18692 | bool result; | |
18693 | PyObject * obj0 = 0 ; | |
18694 | PyObject * obj1 = 0 ; | |
18695 | ||
18696 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
18697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18698 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18699 | if (arg2 == NULL) { | |
18700 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18701 | } | |
18702 | { | |
18703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18704 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2); | |
18705 | ||
18706 | wxPyEndAllowThreads(__tstate); | |
18707 | if (PyErr_Occurred()) SWIG_fail; | |
18708 | } | |
18709 | resultobj = PyInt_FromLong((long)result); | |
18710 | return resultobj; | |
18711 | fail: | |
18712 | return NULL; | |
18713 | } | |
18714 | ||
18715 | ||
18716 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
18717 | PyObject *resultobj; | |
18718 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18719 | wxDateTime *arg2 = 0 ; | |
18720 | bool result; | |
18721 | PyObject * obj0 = 0 ; | |
18722 | PyObject * obj1 = 0 ; | |
18723 | ||
18724 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
18725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18726 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18727 | if (arg2 == NULL) { | |
18728 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18729 | } | |
18730 | { | |
18731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18732 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2); | |
18733 | ||
18734 | wxPyEndAllowThreads(__tstate); | |
18735 | if (PyErr_Occurred()) SWIG_fail; | |
18736 | } | |
18737 | resultobj = PyInt_FromLong((long)result); | |
18738 | return resultobj; | |
18739 | fail: | |
18740 | return NULL; | |
18741 | } | |
18742 | ||
18743 | ||
18744 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
18745 | PyObject *resultobj; | |
18746 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18747 | wxDateTime *arg2 = 0 ; | |
18748 | bool result; | |
18749 | PyObject * obj0 = 0 ; | |
18750 | PyObject * obj1 = 0 ; | |
18751 | ||
18752 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
18753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18754 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18755 | if (arg2 == NULL) { | |
18756 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18757 | } | |
18758 | { | |
18759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18760 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2); | |
18761 | ||
18762 | wxPyEndAllowThreads(__tstate); | |
18763 | if (PyErr_Occurred()) SWIG_fail; | |
18764 | } | |
18765 | resultobj = PyInt_FromLong((long)result); | |
18766 | return resultobj; | |
18767 | fail: | |
18768 | return NULL; | |
18769 | } | |
18770 | ||
18771 | ||
18772 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
18773 | PyObject *resultobj; | |
18774 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18775 | wxDateTime *arg2 = 0 ; | |
18776 | bool result; | |
18777 | PyObject * obj0 = 0 ; | |
18778 | PyObject * obj1 = 0 ; | |
18779 | ||
18780 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
18781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18782 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18783 | if (arg2 == NULL) { | |
18784 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18785 | } | |
18786 | { | |
18787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18788 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2); | |
18789 | ||
18790 | wxPyEndAllowThreads(__tstate); | |
18791 | if (PyErr_Occurred()) SWIG_fail; | |
18792 | } | |
18793 | resultobj = PyInt_FromLong((long)result); | |
18794 | return resultobj; | |
18795 | fail: | |
18796 | return NULL; | |
18797 | } | |
18798 | ||
18799 | ||
18800 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18801 | PyObject *resultobj; | |
18802 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18803 | wxString *arg2 = 0 ; | |
18804 | int result; | |
e811c8ce | 18805 | bool temp2 = False ; |
d14a1e28 RD |
18806 | PyObject * obj0 = 0 ; |
18807 | PyObject * obj1 = 0 ; | |
18808 | char *kwnames[] = { | |
18809 | (char *) "self",(char *) "date", NULL | |
18810 | }; | |
18811 | ||
18812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
18813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18814 | { | |
18815 | arg2 = wxString_in_helper(obj1); | |
18816 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18817 | temp2 = True; |
d14a1e28 RD |
18818 | } |
18819 | { | |
18820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18821 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
18822 | ||
18823 | wxPyEndAllowThreads(__tstate); | |
18824 | if (PyErr_Occurred()) SWIG_fail; | |
18825 | } | |
18826 | resultobj = PyInt_FromLong((long)result); | |
18827 | { | |
18828 | if (temp2) | |
18829 | delete arg2; | |
18830 | } | |
18831 | return resultobj; | |
18832 | fail: | |
18833 | { | |
18834 | if (temp2) | |
18835 | delete arg2; | |
18836 | } | |
18837 | return NULL; | |
18838 | } | |
18839 | ||
18840 | ||
18841 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18842 | PyObject *resultobj; | |
18843 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18844 | wxString *arg2 = 0 ; | |
18845 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
18846 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18847 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
18848 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
18849 | int result; | |
e811c8ce RD |
18850 | bool temp2 = False ; |
18851 | bool temp3 = False ; | |
d14a1e28 RD |
18852 | PyObject * obj0 = 0 ; |
18853 | PyObject * obj1 = 0 ; | |
18854 | PyObject * obj2 = 0 ; | |
18855 | PyObject * obj3 = 0 ; | |
18856 | char *kwnames[] = { | |
18857 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
18858 | }; | |
18859 | ||
18860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18862 | { | |
18863 | arg2 = wxString_in_helper(obj1); | |
18864 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18865 | temp2 = True; |
d14a1e28 RD |
18866 | } |
18867 | if (obj2) { | |
18868 | { | |
18869 | arg3 = wxString_in_helper(obj2); | |
18870 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 18871 | temp3 = True; |
d14a1e28 RD |
18872 | } |
18873 | } | |
18874 | if (obj3) { | |
18875 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18876 | if (arg4 == NULL) { | |
18877 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18878 | } | |
18879 | } | |
18880 | { | |
18881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18882 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
18883 | ||
18884 | wxPyEndAllowThreads(__tstate); | |
18885 | if (PyErr_Occurred()) SWIG_fail; | |
18886 | } | |
18887 | resultobj = PyInt_FromLong((long)result); | |
18888 | { | |
18889 | if (temp2) | |
18890 | delete arg2; | |
18891 | } | |
18892 | { | |
18893 | if (temp3) | |
18894 | delete arg3; | |
18895 | } | |
18896 | return resultobj; | |
18897 | fail: | |
18898 | { | |
18899 | if (temp2) | |
18900 | delete arg2; | |
18901 | } | |
18902 | { | |
18903 | if (temp3) | |
18904 | delete arg3; | |
18905 | } | |
18906 | return NULL; | |
18907 | } | |
18908 | ||
18909 | ||
18910 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18911 | PyObject *resultobj; | |
18912 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18913 | wxString *arg2 = 0 ; | |
18914 | int result; | |
e811c8ce | 18915 | bool temp2 = False ; |
d14a1e28 RD |
18916 | PyObject * obj0 = 0 ; |
18917 | PyObject * obj1 = 0 ; | |
18918 | char *kwnames[] = { | |
18919 | (char *) "self",(char *) "datetime", NULL | |
18920 | }; | |
18921 | ||
18922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
18923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18924 | { | |
18925 | arg2 = wxString_in_helper(obj1); | |
18926 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18927 | temp2 = True; |
d14a1e28 RD |
18928 | } |
18929 | { | |
18930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18931 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
18932 | ||
18933 | wxPyEndAllowThreads(__tstate); | |
18934 | if (PyErr_Occurred()) SWIG_fail; | |
18935 | } | |
18936 | resultobj = PyInt_FromLong((long)result); | |
18937 | { | |
18938 | if (temp2) | |
18939 | delete arg2; | |
18940 | } | |
18941 | return resultobj; | |
18942 | fail: | |
18943 | { | |
18944 | if (temp2) | |
18945 | delete arg2; | |
18946 | } | |
18947 | return NULL; | |
18948 | } | |
18949 | ||
18950 | ||
18951 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18952 | PyObject *resultobj; | |
18953 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18954 | wxString *arg2 = 0 ; | |
18955 | int result; | |
e811c8ce | 18956 | bool temp2 = False ; |
d14a1e28 RD |
18957 | PyObject * obj0 = 0 ; |
18958 | PyObject * obj1 = 0 ; | |
18959 | char *kwnames[] = { | |
18960 | (char *) "self",(char *) "date", NULL | |
18961 | }; | |
18962 | ||
18963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
18964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18965 | { | |
18966 | arg2 = wxString_in_helper(obj1); | |
18967 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18968 | temp2 = True; |
d14a1e28 RD |
18969 | } |
18970 | { | |
18971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18972 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
18973 | ||
18974 | wxPyEndAllowThreads(__tstate); | |
18975 | if (PyErr_Occurred()) SWIG_fail; | |
18976 | } | |
18977 | resultobj = PyInt_FromLong((long)result); | |
18978 | { | |
18979 | if (temp2) | |
18980 | delete arg2; | |
18981 | } | |
18982 | return resultobj; | |
18983 | fail: | |
18984 | { | |
18985 | if (temp2) | |
18986 | delete arg2; | |
18987 | } | |
18988 | return NULL; | |
18989 | } | |
18990 | ||
18991 | ||
18992 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18993 | PyObject *resultobj; | |
18994 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18995 | wxString *arg2 = 0 ; | |
18996 | int result; | |
e811c8ce | 18997 | bool temp2 = False ; |
d14a1e28 RD |
18998 | PyObject * obj0 = 0 ; |
18999 | PyObject * obj1 = 0 ; | |
19000 | char *kwnames[] = { | |
19001 | (char *) "self",(char *) "time", NULL | |
19002 | }; | |
19003 | ||
19004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
19005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19006 | { | |
19007 | arg2 = wxString_in_helper(obj1); | |
19008 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19009 | temp2 = True; |
d14a1e28 RD |
19010 | } |
19011 | { | |
19012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19013 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
19014 | ||
19015 | wxPyEndAllowThreads(__tstate); | |
19016 | if (PyErr_Occurred()) SWIG_fail; | |
19017 | } | |
19018 | resultobj = PyInt_FromLong((long)result); | |
19019 | { | |
19020 | if (temp2) | |
19021 | delete arg2; | |
19022 | } | |
19023 | return resultobj; | |
19024 | fail: | |
19025 | { | |
19026 | if (temp2) | |
19027 | delete arg2; | |
19028 | } | |
19029 | return NULL; | |
19030 | } | |
19031 | ||
19032 | ||
19033 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19034 | PyObject *resultobj; | |
19035 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19036 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
19037 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19038 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19039 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19040 | wxString result; | |
e811c8ce | 19041 | bool temp2 = False ; |
7722248d | 19042 | bool temp3 = False ; |
d14a1e28 RD |
19043 | PyObject * obj0 = 0 ; |
19044 | PyObject * obj1 = 0 ; | |
19045 | PyObject * obj2 = 0 ; | |
19046 | char *kwnames[] = { | |
19047 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
19048 | }; | |
19049 | ||
19050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19052 | if (obj1) { | |
19053 | { | |
19054 | arg2 = wxString_in_helper(obj1); | |
19055 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19056 | temp2 = True; |
d14a1e28 RD |
19057 | } |
19058 | } | |
19059 | if (obj2) { | |
19060 | { | |
19061 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19062 | temp3 = True; |
d14a1e28 RD |
19063 | } |
19064 | } | |
19065 | { | |
19066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19067 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
19068 | ||
19069 | wxPyEndAllowThreads(__tstate); | |
19070 | if (PyErr_Occurred()) SWIG_fail; | |
19071 | } | |
19072 | { | |
19073 | #if wxUSE_UNICODE | |
19074 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19075 | #else | |
19076 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19077 | #endif | |
19078 | } | |
19079 | { | |
19080 | if (temp2) | |
19081 | delete arg2; | |
19082 | } | |
19083 | { | |
7722248d | 19084 | if (temp3) delete arg3; |
d14a1e28 RD |
19085 | } |
19086 | return resultobj; | |
19087 | fail: | |
19088 | { | |
19089 | if (temp2) | |
19090 | delete arg2; | |
19091 | } | |
19092 | { | |
7722248d | 19093 | if (temp3) delete arg3; |
d14a1e28 RD |
19094 | } |
19095 | return NULL; | |
19096 | } | |
19097 | ||
19098 | ||
19099 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19100 | PyObject *resultobj; | |
19101 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19102 | wxString result; | |
19103 | PyObject * obj0 = 0 ; | |
19104 | char *kwnames[] = { | |
19105 | (char *) "self", NULL | |
19106 | }; | |
19107 | ||
19108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
19109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19110 | { | |
19111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19112 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
19113 | ||
19114 | wxPyEndAllowThreads(__tstate); | |
19115 | if (PyErr_Occurred()) SWIG_fail; | |
19116 | } | |
19117 | { | |
19118 | #if wxUSE_UNICODE | |
19119 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19120 | #else | |
19121 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19122 | #endif | |
19123 | } | |
19124 | return resultobj; | |
19125 | fail: | |
19126 | return NULL; | |
19127 | } | |
19128 | ||
19129 | ||
19130 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19131 | PyObject *resultobj; | |
19132 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19133 | wxString result; | |
19134 | PyObject * obj0 = 0 ; | |
19135 | char *kwnames[] = { | |
19136 | (char *) "self", NULL | |
19137 | }; | |
19138 | ||
19139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
19140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19141 | { | |
19142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19143 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
19144 | ||
19145 | wxPyEndAllowThreads(__tstate); | |
19146 | if (PyErr_Occurred()) SWIG_fail; | |
19147 | } | |
19148 | { | |
19149 | #if wxUSE_UNICODE | |
19150 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19151 | #else | |
19152 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19153 | #endif | |
19154 | } | |
19155 | return resultobj; | |
19156 | fail: | |
19157 | return NULL; | |
19158 | } | |
19159 | ||
19160 | ||
19161 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19162 | PyObject *resultobj; | |
19163 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19164 | wxString result; | |
19165 | PyObject * obj0 = 0 ; | |
19166 | char *kwnames[] = { | |
19167 | (char *) "self", NULL | |
19168 | }; | |
19169 | ||
19170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
19171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19172 | { | |
19173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19174 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
19175 | ||
19176 | wxPyEndAllowThreads(__tstate); | |
19177 | if (PyErr_Occurred()) SWIG_fail; | |
19178 | } | |
19179 | { | |
19180 | #if wxUSE_UNICODE | |
19181 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19182 | #else | |
19183 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19184 | #endif | |
19185 | } | |
19186 | return resultobj; | |
19187 | fail: | |
19188 | return NULL; | |
19189 | } | |
19190 | ||
19191 | ||
19192 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19193 | PyObject *resultobj; | |
19194 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19195 | wxString result; | |
19196 | PyObject * obj0 = 0 ; | |
19197 | char *kwnames[] = { | |
19198 | (char *) "self", NULL | |
19199 | }; | |
19200 | ||
19201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
19202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19203 | { | |
19204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19205 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
19206 | ||
19207 | wxPyEndAllowThreads(__tstate); | |
19208 | if (PyErr_Occurred()) SWIG_fail; | |
19209 | } | |
19210 | { | |
19211 | #if wxUSE_UNICODE | |
19212 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19213 | #else | |
19214 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19215 | #endif | |
19216 | } | |
19217 | return resultobj; | |
19218 | fail: | |
19219 | return NULL; | |
19220 | } | |
19221 | ||
19222 | ||
19223 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
19224 | PyObject *obj; | |
19225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19226 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
19227 | Py_INCREF(obj); | |
19228 | return Py_BuildValue((char *)""); | |
19229 | } | |
19230 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19231 | PyObject *resultobj; | |
19232 | long arg1 ; | |
19233 | wxTimeSpan result; | |
19234 | char *kwnames[] = { | |
19235 | (char *) "sec", NULL | |
19236 | }; | |
19237 | ||
19238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Seconds",kwnames,&arg1)) goto fail; | |
19239 | { | |
19240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19241 | result = wxTimeSpan::Seconds(arg1); | |
19242 | ||
19243 | wxPyEndAllowThreads(__tstate); | |
19244 | if (PyErr_Occurred()) SWIG_fail; | |
19245 | } | |
19246 | { | |
19247 | wxTimeSpan * resultptr; | |
19248 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19249 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19250 | } | |
19251 | return resultobj; | |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19258 | PyObject *resultobj; | |
19259 | wxTimeSpan result; | |
19260 | char *kwnames[] = { | |
19261 | NULL | |
19262 | }; | |
19263 | ||
19264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
19265 | { | |
19266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19267 | result = wxTimeSpan::Second(); | |
19268 | ||
19269 | wxPyEndAllowThreads(__tstate); | |
19270 | if (PyErr_Occurred()) SWIG_fail; | |
19271 | } | |
19272 | { | |
19273 | wxTimeSpan * resultptr; | |
19274 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19275 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19276 | } | |
19277 | return resultobj; | |
19278 | fail: | |
19279 | return NULL; | |
19280 | } | |
19281 | ||
19282 | ||
19283 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19284 | PyObject *resultobj; | |
19285 | long arg1 ; | |
19286 | wxTimeSpan result; | |
19287 | char *kwnames[] = { | |
19288 | (char *) "min", NULL | |
19289 | }; | |
19290 | ||
19291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Minutes",kwnames,&arg1)) goto fail; | |
19292 | { | |
19293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19294 | result = wxTimeSpan::Minutes(arg1); | |
19295 | ||
19296 | wxPyEndAllowThreads(__tstate); | |
19297 | if (PyErr_Occurred()) SWIG_fail; | |
19298 | } | |
19299 | { | |
19300 | wxTimeSpan * resultptr; | |
19301 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19302 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19303 | } | |
19304 | return resultobj; | |
19305 | fail: | |
19306 | return NULL; | |
19307 | } | |
19308 | ||
19309 | ||
19310 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19311 | PyObject *resultobj; | |
19312 | wxTimeSpan result; | |
19313 | char *kwnames[] = { | |
19314 | NULL | |
19315 | }; | |
19316 | ||
19317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
19318 | { | |
19319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19320 | result = wxTimeSpan::Minute(); | |
19321 | ||
19322 | wxPyEndAllowThreads(__tstate); | |
19323 | if (PyErr_Occurred()) SWIG_fail; | |
19324 | } | |
19325 | { | |
19326 | wxTimeSpan * resultptr; | |
19327 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19328 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19329 | } | |
19330 | return resultobj; | |
19331 | fail: | |
19332 | return NULL; | |
19333 | } | |
19334 | ||
19335 | ||
19336 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19337 | PyObject *resultobj; | |
19338 | long arg1 ; | |
19339 | wxTimeSpan result; | |
19340 | char *kwnames[] = { | |
19341 | (char *) "hours", NULL | |
19342 | }; | |
19343 | ||
19344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Hours",kwnames,&arg1)) goto fail; | |
19345 | { | |
19346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19347 | result = wxTimeSpan::Hours(arg1); | |
19348 | ||
19349 | wxPyEndAllowThreads(__tstate); | |
19350 | if (PyErr_Occurred()) SWIG_fail; | |
19351 | } | |
19352 | { | |
19353 | wxTimeSpan * resultptr; | |
19354 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19355 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19356 | } | |
19357 | return resultobj; | |
19358 | fail: | |
19359 | return NULL; | |
19360 | } | |
19361 | ||
19362 | ||
19363 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19364 | PyObject *resultobj; | |
19365 | wxTimeSpan result; | |
19366 | char *kwnames[] = { | |
19367 | NULL | |
19368 | }; | |
19369 | ||
19370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
19371 | { | |
19372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19373 | result = wxTimeSpan::Hour(); | |
19374 | ||
19375 | wxPyEndAllowThreads(__tstate); | |
19376 | if (PyErr_Occurred()) SWIG_fail; | |
19377 | } | |
19378 | { | |
19379 | wxTimeSpan * resultptr; | |
19380 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19381 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19382 | } | |
19383 | return resultobj; | |
19384 | fail: | |
19385 | return NULL; | |
19386 | } | |
19387 | ||
19388 | ||
19389 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19390 | PyObject *resultobj; | |
19391 | long arg1 ; | |
19392 | wxTimeSpan result; | |
19393 | char *kwnames[] = { | |
19394 | (char *) "days", NULL | |
19395 | }; | |
19396 | ||
19397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Days",kwnames,&arg1)) goto fail; | |
19398 | { | |
19399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19400 | result = wxTimeSpan::Days(arg1); | |
19401 | ||
19402 | wxPyEndAllowThreads(__tstate); | |
19403 | if (PyErr_Occurred()) SWIG_fail; | |
19404 | } | |
19405 | { | |
19406 | wxTimeSpan * resultptr; | |
19407 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19408 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19409 | } | |
19410 | return resultobj; | |
19411 | fail: | |
19412 | return NULL; | |
19413 | } | |
19414 | ||
19415 | ||
19416 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19417 | PyObject *resultobj; | |
19418 | wxTimeSpan result; | |
19419 | char *kwnames[] = { | |
19420 | NULL | |
19421 | }; | |
19422 | ||
19423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
19424 | { | |
19425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19426 | result = wxTimeSpan::Day(); | |
19427 | ||
19428 | wxPyEndAllowThreads(__tstate); | |
19429 | if (PyErr_Occurred()) SWIG_fail; | |
19430 | } | |
19431 | { | |
19432 | wxTimeSpan * resultptr; | |
19433 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19434 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19435 | } | |
19436 | return resultobj; | |
19437 | fail: | |
19438 | return NULL; | |
19439 | } | |
19440 | ||
19441 | ||
19442 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19443 | PyObject *resultobj; | |
19444 | long arg1 ; | |
19445 | wxTimeSpan result; | |
19446 | char *kwnames[] = { | |
19447 | (char *) "days", NULL | |
19448 | }; | |
19449 | ||
19450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Weeks",kwnames,&arg1)) goto fail; | |
19451 | { | |
19452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19453 | result = wxTimeSpan::Weeks(arg1); | |
19454 | ||
19455 | wxPyEndAllowThreads(__tstate); | |
19456 | if (PyErr_Occurred()) SWIG_fail; | |
19457 | } | |
19458 | { | |
19459 | wxTimeSpan * resultptr; | |
19460 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19461 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19462 | } | |
19463 | return resultobj; | |
19464 | fail: | |
19465 | return NULL; | |
19466 | } | |
19467 | ||
19468 | ||
19469 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19470 | PyObject *resultobj; | |
19471 | wxTimeSpan result; | |
19472 | char *kwnames[] = { | |
19473 | NULL | |
19474 | }; | |
19475 | ||
19476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
19477 | { | |
19478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19479 | result = wxTimeSpan::Week(); | |
19480 | ||
19481 | wxPyEndAllowThreads(__tstate); | |
19482 | if (PyErr_Occurred()) SWIG_fail; | |
19483 | } | |
19484 | { | |
19485 | wxTimeSpan * resultptr; | |
19486 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19487 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19488 | } | |
19489 | return resultobj; | |
19490 | fail: | |
19491 | return NULL; | |
19492 | } | |
19493 | ||
19494 | ||
19495 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19496 | PyObject *resultobj; | |
19497 | long arg1 = (long) 0 ; | |
19498 | long arg2 = (long) 0 ; | |
19499 | long arg3 = (long) 0 ; | |
19500 | long arg4 = (long) 0 ; | |
19501 | wxTimeSpan *result; | |
19502 | char *kwnames[] = { | |
19503 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
19504 | }; | |
19505 | ||
19506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|llll:new_TimeSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
19507 | { | |
19508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19509 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
19510 | ||
19511 | wxPyEndAllowThreads(__tstate); | |
19512 | if (PyErr_Occurred()) SWIG_fail; | |
19513 | } | |
19514 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1); | |
19515 | return resultobj; | |
19516 | fail: | |
19517 | return NULL; | |
19518 | } | |
19519 | ||
19520 | ||
19521 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19522 | PyObject *resultobj; | |
19523 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19524 | PyObject * obj0 = 0 ; | |
19525 | char *kwnames[] = { | |
19526 | (char *) "self", NULL | |
19527 | }; | |
19528 | ||
19529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
19530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19531 | { | |
19532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19533 | delete arg1; | |
19534 | ||
19535 | wxPyEndAllowThreads(__tstate); | |
19536 | if (PyErr_Occurred()) SWIG_fail; | |
19537 | } | |
19538 | Py_INCREF(Py_None); resultobj = Py_None; | |
19539 | return resultobj; | |
19540 | fail: | |
19541 | return NULL; | |
19542 | } | |
19543 | ||
19544 | ||
19545 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19546 | PyObject *resultobj; | |
19547 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19548 | wxTimeSpan *arg2 = 0 ; | |
19549 | wxTimeSpan *result; | |
19550 | PyObject * obj0 = 0 ; | |
19551 | PyObject * obj1 = 0 ; | |
19552 | char *kwnames[] = { | |
19553 | (char *) "self",(char *) "diff", NULL | |
19554 | }; | |
19555 | ||
19556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
19557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19558 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19559 | if (arg2 == NULL) { | |
19560 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19561 | } | |
19562 | { | |
19563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19564 | { | |
19565 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19566 | result = (wxTimeSpan *) &_result_ref; | |
19567 | } | |
19568 | ||
19569 | wxPyEndAllowThreads(__tstate); | |
19570 | if (PyErr_Occurred()) SWIG_fail; | |
19571 | } | |
19572 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19573 | return resultobj; | |
19574 | fail: | |
19575 | return NULL; | |
19576 | } | |
19577 | ||
19578 | ||
19579 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19580 | PyObject *resultobj; | |
19581 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19582 | wxTimeSpan *arg2 = 0 ; | |
19583 | wxTimeSpan *result; | |
19584 | PyObject * obj0 = 0 ; | |
19585 | PyObject * obj1 = 0 ; | |
19586 | char *kwnames[] = { | |
19587 | (char *) "self",(char *) "diff", NULL | |
19588 | }; | |
19589 | ||
19590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19592 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19593 | if (arg2 == NULL) { | |
19594 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19595 | } | |
19596 | { | |
19597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19598 | { | |
19599 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19600 | result = (wxTimeSpan *) &_result_ref; | |
19601 | } | |
19602 | ||
19603 | wxPyEndAllowThreads(__tstate); | |
19604 | if (PyErr_Occurred()) SWIG_fail; | |
19605 | } | |
19606 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19607 | return resultobj; | |
19608 | fail: | |
19609 | return NULL; | |
19610 | } | |
19611 | ||
19612 | ||
19613 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19614 | PyObject *resultobj; | |
19615 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19616 | int arg2 ; | |
19617 | wxTimeSpan *result; | |
19618 | PyObject * obj0 = 0 ; | |
19619 | char *kwnames[] = { | |
19620 | (char *) "self",(char *) "n", NULL | |
19621 | }; | |
19622 | ||
19623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
19624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19625 | { | |
19626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19627 | { | |
19628 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
19629 | result = (wxTimeSpan *) &_result_ref; | |
19630 | } | |
19631 | ||
19632 | wxPyEndAllowThreads(__tstate); | |
19633 | if (PyErr_Occurred()) SWIG_fail; | |
19634 | } | |
19635 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19636 | return resultobj; | |
19637 | fail: | |
19638 | return NULL; | |
19639 | } | |
19640 | ||
19641 | ||
19642 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19643 | PyObject *resultobj; | |
19644 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19645 | wxTimeSpan *result; | |
19646 | PyObject * obj0 = 0 ; | |
19647 | char *kwnames[] = { | |
19648 | (char *) "self", NULL | |
19649 | }; | |
19650 | ||
19651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
19652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19653 | { | |
19654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19655 | { | |
19656 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
19657 | result = (wxTimeSpan *) &_result_ref; | |
19658 | } | |
19659 | ||
19660 | wxPyEndAllowThreads(__tstate); | |
19661 | if (PyErr_Occurred()) SWIG_fail; | |
19662 | } | |
19663 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19664 | return resultobj; | |
19665 | fail: | |
19666 | return NULL; | |
19667 | } | |
19668 | ||
19669 | ||
19670 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19671 | PyObject *resultobj; | |
19672 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19673 | wxTimeSpan result; | |
19674 | PyObject * obj0 = 0 ; | |
19675 | char *kwnames[] = { | |
19676 | (char *) "self", NULL | |
19677 | }; | |
19678 | ||
19679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
19680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19681 | { | |
19682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19683 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
19684 | ||
19685 | wxPyEndAllowThreads(__tstate); | |
19686 | if (PyErr_Occurred()) SWIG_fail; | |
19687 | } | |
19688 | { | |
19689 | wxTimeSpan * resultptr; | |
19690 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19691 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19692 | } | |
19693 | return resultobj; | |
19694 | fail: | |
19695 | return NULL; | |
19696 | } | |
19697 | ||
19698 | ||
19699 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19700 | PyObject *resultobj; | |
19701 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19702 | wxTimeSpan *arg2 = 0 ; | |
19703 | wxTimeSpan *result; | |
19704 | PyObject * obj0 = 0 ; | |
19705 | PyObject * obj1 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "self",(char *) "diff", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
19711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19712 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19713 | if (arg2 == NULL) { | |
19714 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19715 | } | |
19716 | { | |
19717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19718 | { | |
19719 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19720 | result = (wxTimeSpan *) &_result_ref; | |
19721 | } | |
19722 | ||
19723 | wxPyEndAllowThreads(__tstate); | |
19724 | if (PyErr_Occurred()) SWIG_fail; | |
19725 | } | |
19726 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19727 | return resultobj; | |
19728 | fail: | |
19729 | return NULL; | |
19730 | } | |
19731 | ||
19732 | ||
19733 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19734 | PyObject *resultobj; | |
19735 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19736 | wxTimeSpan *arg2 = 0 ; | |
19737 | wxTimeSpan *result; | |
19738 | PyObject * obj0 = 0 ; | |
19739 | PyObject * obj1 = 0 ; | |
19740 | char *kwnames[] = { | |
19741 | (char *) "self",(char *) "diff", NULL | |
19742 | }; | |
19743 | ||
19744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
19745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19746 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19747 | if (arg2 == NULL) { | |
19748 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19749 | } | |
19750 | { | |
19751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19752 | { | |
19753 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
19754 | result = (wxTimeSpan *) &_result_ref; | |
19755 | } | |
19756 | ||
19757 | wxPyEndAllowThreads(__tstate); | |
19758 | if (PyErr_Occurred()) SWIG_fail; | |
19759 | } | |
19760 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19761 | return resultobj; | |
19762 | fail: | |
19763 | return NULL; | |
19764 | } | |
19765 | ||
19766 | ||
19767 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19768 | PyObject *resultobj; | |
19769 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19770 | int arg2 ; | |
19771 | wxTimeSpan *result; | |
19772 | PyObject * obj0 = 0 ; | |
19773 | char *kwnames[] = { | |
19774 | (char *) "self",(char *) "n", NULL | |
19775 | }; | |
19776 | ||
19777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
19778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19779 | { | |
19780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19781 | { | |
19782 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
19783 | result = (wxTimeSpan *) &_result_ref; | |
19784 | } | |
19785 | ||
19786 | wxPyEndAllowThreads(__tstate); | |
19787 | if (PyErr_Occurred()) SWIG_fail; | |
19788 | } | |
19789 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19790 | return resultobj; | |
19791 | fail: | |
19792 | return NULL; | |
19793 | } | |
19794 | ||
19795 | ||
19796 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19797 | PyObject *resultobj; | |
19798 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19799 | wxTimeSpan *result; | |
19800 | PyObject * obj0 = 0 ; | |
19801 | char *kwnames[] = { | |
19802 | (char *) "self", NULL | |
19803 | }; | |
19804 | ||
19805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
19806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19807 | { | |
19808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19809 | { | |
19810 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
19811 | result = (wxTimeSpan *) &_result_ref; | |
19812 | } | |
19813 | ||
19814 | wxPyEndAllowThreads(__tstate); | |
19815 | if (PyErr_Occurred()) SWIG_fail; | |
19816 | } | |
19817 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19818 | return resultobj; | |
19819 | fail: | |
19820 | return NULL; | |
19821 | } | |
19822 | ||
19823 | ||
19824 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19825 | PyObject *resultobj; | |
19826 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19827 | wxTimeSpan *arg2 = 0 ; | |
19828 | wxTimeSpan result; | |
19829 | PyObject * obj0 = 0 ; | |
19830 | PyObject * obj1 = 0 ; | |
19831 | char *kwnames[] = { | |
19832 | (char *) "self",(char *) "other", NULL | |
19833 | }; | |
19834 | ||
19835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
19836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19837 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19838 | if (arg2 == NULL) { | |
19839 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19840 | } | |
19841 | { | |
19842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19843 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
19844 | ||
19845 | wxPyEndAllowThreads(__tstate); | |
19846 | if (PyErr_Occurred()) SWIG_fail; | |
19847 | } | |
19848 | { | |
19849 | wxTimeSpan * resultptr; | |
19850 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19851 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19852 | } | |
19853 | return resultobj; | |
19854 | fail: | |
19855 | return NULL; | |
19856 | } | |
19857 | ||
19858 | ||
19859 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19860 | PyObject *resultobj; | |
19861 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19862 | wxTimeSpan *arg2 = 0 ; | |
19863 | wxTimeSpan result; | |
19864 | PyObject * obj0 = 0 ; | |
19865 | PyObject * obj1 = 0 ; | |
19866 | char *kwnames[] = { | |
19867 | (char *) "self",(char *) "other", NULL | |
19868 | }; | |
19869 | ||
19870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
19871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19872 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19873 | if (arg2 == NULL) { | |
19874 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19875 | } | |
19876 | { | |
19877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19878 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
19879 | ||
19880 | wxPyEndAllowThreads(__tstate); | |
19881 | if (PyErr_Occurred()) SWIG_fail; | |
19882 | } | |
19883 | { | |
19884 | wxTimeSpan * resultptr; | |
19885 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19886 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19887 | } | |
19888 | return resultobj; | |
19889 | fail: | |
19890 | return NULL; | |
19891 | } | |
19892 | ||
19893 | ||
19894 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19895 | PyObject *resultobj; | |
19896 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19897 | int arg2 ; | |
19898 | wxTimeSpan result; | |
19899 | PyObject * obj0 = 0 ; | |
19900 | char *kwnames[] = { | |
19901 | (char *) "self",(char *) "n", NULL | |
19902 | }; | |
19903 | ||
19904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
19905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19906 | { | |
19907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19908 | result = wxTimeSpan___mul__(arg1,arg2); | |
19909 | ||
19910 | wxPyEndAllowThreads(__tstate); | |
19911 | if (PyErr_Occurred()) SWIG_fail; | |
19912 | } | |
19913 | { | |
19914 | wxTimeSpan * resultptr; | |
19915 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19916 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19917 | } | |
19918 | return resultobj; | |
19919 | fail: | |
19920 | return NULL; | |
19921 | } | |
19922 | ||
19923 | ||
19924 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19925 | PyObject *resultobj; | |
19926 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19927 | int arg2 ; | |
19928 | wxTimeSpan result; | |
19929 | PyObject * obj0 = 0 ; | |
19930 | char *kwnames[] = { | |
19931 | (char *) "self",(char *) "n", NULL | |
19932 | }; | |
19933 | ||
19934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
19935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19936 | { | |
19937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19938 | result = wxTimeSpan___rmul__(arg1,arg2); | |
19939 | ||
19940 | wxPyEndAllowThreads(__tstate); | |
19941 | if (PyErr_Occurred()) SWIG_fail; | |
19942 | } | |
19943 | { | |
19944 | wxTimeSpan * resultptr; | |
19945 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19946 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19947 | } | |
19948 | return resultobj; | |
19949 | fail: | |
19950 | return NULL; | |
19951 | } | |
19952 | ||
19953 | ||
19954 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19955 | PyObject *resultobj; | |
19956 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19957 | wxTimeSpan *arg2 = 0 ; | |
19958 | bool result; | |
19959 | PyObject * obj0 = 0 ; | |
19960 | PyObject * obj1 = 0 ; | |
19961 | char *kwnames[] = { | |
19962 | (char *) "self",(char *) "other", NULL | |
19963 | }; | |
19964 | ||
19965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
19966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19967 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19968 | if (arg2 == NULL) { | |
19969 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19970 | } | |
19971 | { | |
19972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19973 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2); | |
19974 | ||
19975 | wxPyEndAllowThreads(__tstate); | |
19976 | if (PyErr_Occurred()) SWIG_fail; | |
19977 | } | |
19978 | resultobj = PyInt_FromLong((long)result); | |
19979 | return resultobj; | |
19980 | fail: | |
19981 | return NULL; | |
19982 | } | |
19983 | ||
19984 | ||
19985 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19986 | PyObject *resultobj; | |
19987 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19988 | wxTimeSpan *arg2 = 0 ; | |
19989 | bool result; | |
19990 | PyObject * obj0 = 0 ; | |
19991 | PyObject * obj1 = 0 ; | |
19992 | char *kwnames[] = { | |
19993 | (char *) "self",(char *) "other", NULL | |
19994 | }; | |
19995 | ||
19996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
19997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19998 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19999 | if (arg2 == NULL) { | |
20000 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20001 | } | |
20002 | { | |
20003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20004 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2); | |
20005 | ||
20006 | wxPyEndAllowThreads(__tstate); | |
20007 | if (PyErr_Occurred()) SWIG_fail; | |
20008 | } | |
20009 | resultobj = PyInt_FromLong((long)result); | |
20010 | return resultobj; | |
20011 | fail: | |
20012 | return NULL; | |
20013 | } | |
20014 | ||
20015 | ||
20016 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20017 | PyObject *resultobj; | |
20018 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20019 | wxTimeSpan *arg2 = 0 ; | |
20020 | bool result; | |
20021 | PyObject * obj0 = 0 ; | |
20022 | PyObject * obj1 = 0 ; | |
20023 | char *kwnames[] = { | |
20024 | (char *) "self",(char *) "other", NULL | |
20025 | }; | |
20026 | ||
20027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
20028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20029 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20030 | if (arg2 == NULL) { | |
20031 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20032 | } | |
20033 | { | |
20034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20035 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2); | |
20036 | ||
20037 | wxPyEndAllowThreads(__tstate); | |
20038 | if (PyErr_Occurred()) SWIG_fail; | |
20039 | } | |
20040 | resultobj = PyInt_FromLong((long)result); | |
20041 | return resultobj; | |
20042 | fail: | |
20043 | return NULL; | |
20044 | } | |
20045 | ||
20046 | ||
20047 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20048 | PyObject *resultobj; | |
20049 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20050 | wxTimeSpan *arg2 = 0 ; | |
20051 | bool result; | |
20052 | PyObject * obj0 = 0 ; | |
20053 | PyObject * obj1 = 0 ; | |
20054 | char *kwnames[] = { | |
20055 | (char *) "self",(char *) "other", NULL | |
20056 | }; | |
20057 | ||
20058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
20059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20060 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20061 | if (arg2 == NULL) { | |
20062 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20063 | } | |
20064 | { | |
20065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20066 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2); | |
20067 | ||
20068 | wxPyEndAllowThreads(__tstate); | |
20069 | if (PyErr_Occurred()) SWIG_fail; | |
20070 | } | |
20071 | resultobj = PyInt_FromLong((long)result); | |
20072 | return resultobj; | |
20073 | fail: | |
20074 | return NULL; | |
20075 | } | |
20076 | ||
20077 | ||
20078 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20079 | PyObject *resultobj; | |
20080 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20081 | wxTimeSpan *arg2 = 0 ; | |
20082 | bool result; | |
20083 | PyObject * obj0 = 0 ; | |
20084 | PyObject * obj1 = 0 ; | |
20085 | char *kwnames[] = { | |
20086 | (char *) "self",(char *) "other", NULL | |
20087 | }; | |
20088 | ||
20089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
20090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20091 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20092 | if (arg2 == NULL) { | |
20093 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20094 | } | |
20095 | { | |
20096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20097 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2); | |
20098 | ||
20099 | wxPyEndAllowThreads(__tstate); | |
20100 | if (PyErr_Occurred()) SWIG_fail; | |
20101 | } | |
20102 | resultobj = PyInt_FromLong((long)result); | |
20103 | return resultobj; | |
20104 | fail: | |
20105 | return NULL; | |
20106 | } | |
20107 | ||
20108 | ||
20109 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20110 | PyObject *resultobj; | |
20111 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20112 | wxTimeSpan *arg2 = 0 ; | |
20113 | bool result; | |
20114 | PyObject * obj0 = 0 ; | |
20115 | PyObject * obj1 = 0 ; | |
20116 | char *kwnames[] = { | |
20117 | (char *) "self",(char *) "other", NULL | |
20118 | }; | |
20119 | ||
20120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
20121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20122 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20123 | if (arg2 == NULL) { | |
20124 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20125 | } | |
20126 | { | |
20127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20128 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2); | |
20129 | ||
20130 | wxPyEndAllowThreads(__tstate); | |
20131 | if (PyErr_Occurred()) SWIG_fail; | |
20132 | } | |
20133 | resultobj = PyInt_FromLong((long)result); | |
20134 | return resultobj; | |
20135 | fail: | |
20136 | return NULL; | |
20137 | } | |
20138 | ||
20139 | ||
20140 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20141 | PyObject *resultobj; | |
20142 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20143 | bool result; | |
20144 | PyObject * obj0 = 0 ; | |
20145 | char *kwnames[] = { | |
20146 | (char *) "self", NULL | |
20147 | }; | |
20148 | ||
20149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
20150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20151 | { | |
20152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20153 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
20154 | ||
20155 | wxPyEndAllowThreads(__tstate); | |
20156 | if (PyErr_Occurred()) SWIG_fail; | |
20157 | } | |
20158 | resultobj = PyInt_FromLong((long)result); | |
20159 | return resultobj; | |
20160 | fail: | |
20161 | return NULL; | |
20162 | } | |
20163 | ||
20164 | ||
20165 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20166 | PyObject *resultobj; | |
20167 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20168 | bool result; | |
20169 | PyObject * obj0 = 0 ; | |
20170 | char *kwnames[] = { | |
20171 | (char *) "self", NULL | |
20172 | }; | |
20173 | ||
20174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
20175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20176 | { | |
20177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20178 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
20179 | ||
20180 | wxPyEndAllowThreads(__tstate); | |
20181 | if (PyErr_Occurred()) SWIG_fail; | |
20182 | } | |
20183 | resultobj = PyInt_FromLong((long)result); | |
20184 | return resultobj; | |
20185 | fail: | |
20186 | return NULL; | |
20187 | } | |
20188 | ||
20189 | ||
20190 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20191 | PyObject *resultobj; | |
20192 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20193 | bool result; | |
20194 | PyObject * obj0 = 0 ; | |
20195 | char *kwnames[] = { | |
20196 | (char *) "self", NULL | |
20197 | }; | |
20198 | ||
20199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
20200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20201 | { | |
20202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20203 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
20204 | ||
20205 | wxPyEndAllowThreads(__tstate); | |
20206 | if (PyErr_Occurred()) SWIG_fail; | |
20207 | } | |
20208 | resultobj = PyInt_FromLong((long)result); | |
20209 | return resultobj; | |
20210 | fail: | |
20211 | return NULL; | |
20212 | } | |
20213 | ||
20214 | ||
20215 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20216 | PyObject *resultobj; | |
20217 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20218 | wxTimeSpan *arg2 = 0 ; | |
20219 | bool result; | |
20220 | PyObject * obj0 = 0 ; | |
20221 | PyObject * obj1 = 0 ; | |
20222 | char *kwnames[] = { | |
20223 | (char *) "self",(char *) "ts", NULL | |
20224 | }; | |
20225 | ||
20226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
20227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20228 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20229 | if (arg2 == NULL) { | |
20230 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20231 | } | |
20232 | { | |
20233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20234 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
20235 | ||
20236 | wxPyEndAllowThreads(__tstate); | |
20237 | if (PyErr_Occurred()) SWIG_fail; | |
20238 | } | |
20239 | resultobj = PyInt_FromLong((long)result); | |
20240 | return resultobj; | |
20241 | fail: | |
20242 | return NULL; | |
20243 | } | |
20244 | ||
20245 | ||
20246 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20247 | PyObject *resultobj; | |
20248 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20249 | wxTimeSpan *arg2 = 0 ; | |
20250 | bool result; | |
20251 | PyObject * obj0 = 0 ; | |
20252 | PyObject * obj1 = 0 ; | |
20253 | char *kwnames[] = { | |
20254 | (char *) "self",(char *) "ts", NULL | |
20255 | }; | |
20256 | ||
20257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
20258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20259 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20260 | if (arg2 == NULL) { | |
20261 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20262 | } | |
20263 | { | |
20264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20265 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
20266 | ||
20267 | wxPyEndAllowThreads(__tstate); | |
20268 | if (PyErr_Occurred()) SWIG_fail; | |
20269 | } | |
20270 | resultobj = PyInt_FromLong((long)result); | |
20271 | return resultobj; | |
20272 | fail: | |
20273 | return NULL; | |
20274 | } | |
20275 | ||
20276 | ||
20277 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20278 | PyObject *resultobj; | |
20279 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20280 | wxTimeSpan *arg2 = 0 ; | |
20281 | bool result; | |
20282 | PyObject * obj0 = 0 ; | |
20283 | PyObject * obj1 = 0 ; | |
20284 | char *kwnames[] = { | |
20285 | (char *) "self",(char *) "t", NULL | |
20286 | }; | |
20287 | ||
20288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
20289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20290 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20291 | if (arg2 == NULL) { | |
20292 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20293 | } | |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
20297 | ||
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
20301 | resultobj = PyInt_FromLong((long)result); | |
20302 | return resultobj; | |
20303 | fail: | |
20304 | return NULL; | |
20305 | } | |
20306 | ||
20307 | ||
20308 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20309 | PyObject *resultobj; | |
20310 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20311 | int result; | |
20312 | PyObject * obj0 = 0 ; | |
20313 | char *kwnames[] = { | |
20314 | (char *) "self", NULL | |
20315 | }; | |
20316 | ||
20317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20319 | { | |
20320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20321 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
20322 | ||
20323 | wxPyEndAllowThreads(__tstate); | |
20324 | if (PyErr_Occurred()) SWIG_fail; | |
20325 | } | |
20326 | resultobj = PyInt_FromLong((long)result); | |
20327 | return resultobj; | |
20328 | fail: | |
20329 | return NULL; | |
20330 | } | |
20331 | ||
20332 | ||
20333 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20334 | PyObject *resultobj; | |
20335 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20336 | int result; | |
20337 | PyObject * obj0 = 0 ; | |
20338 | char *kwnames[] = { | |
20339 | (char *) "self", NULL | |
20340 | }; | |
20341 | ||
20342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
20343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20344 | { | |
20345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20346 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
20347 | ||
20348 | wxPyEndAllowThreads(__tstate); | |
20349 | if (PyErr_Occurred()) SWIG_fail; | |
20350 | } | |
20351 | resultobj = PyInt_FromLong((long)result); | |
20352 | return resultobj; | |
20353 | fail: | |
20354 | return NULL; | |
20355 | } | |
20356 | ||
20357 | ||
20358 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20359 | PyObject *resultobj; | |
20360 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20361 | int result; | |
20362 | PyObject * obj0 = 0 ; | |
20363 | char *kwnames[] = { | |
20364 | (char *) "self", NULL | |
20365 | }; | |
20366 | ||
20367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
20368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20369 | { | |
20370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20371 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
20372 | ||
20373 | wxPyEndAllowThreads(__tstate); | |
20374 | if (PyErr_Occurred()) SWIG_fail; | |
20375 | } | |
20376 | resultobj = PyInt_FromLong((long)result); | |
20377 | return resultobj; | |
20378 | fail: | |
20379 | return NULL; | |
20380 | } | |
20381 | ||
20382 | ||
20383 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20384 | PyObject *resultobj; | |
20385 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20386 | int result; | |
20387 | PyObject * obj0 = 0 ; | |
20388 | char *kwnames[] = { | |
20389 | (char *) "self", NULL | |
20390 | }; | |
20391 | ||
20392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
20393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20394 | { | |
20395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20396 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
20397 | ||
20398 | wxPyEndAllowThreads(__tstate); | |
20399 | if (PyErr_Occurred()) SWIG_fail; | |
20400 | } | |
20401 | resultobj = PyInt_FromLong((long)result); | |
20402 | return resultobj; | |
20403 | fail: | |
20404 | return NULL; | |
20405 | } | |
20406 | ||
20407 | ||
20408 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20409 | PyObject *resultobj; | |
20410 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20411 | wxLongLong result; | |
20412 | PyObject * obj0 = 0 ; | |
20413 | char *kwnames[] = { | |
20414 | (char *) "self", NULL | |
20415 | }; | |
20416 | ||
20417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
20418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20419 | { | |
20420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20421 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
20422 | ||
20423 | wxPyEndAllowThreads(__tstate); | |
20424 | if (PyErr_Occurred()) SWIG_fail; | |
20425 | } | |
20426 | { | |
20427 | PyObject *hi, *lo, *shifter, *shifted; | |
20428 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20429 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20430 | shifter = PyLong_FromLong(32); | |
20431 | shifted = PyNumber_Lshift(hi, shifter); | |
20432 | resultobj = PyNumber_Or(shifted, lo); | |
20433 | Py_DECREF(hi); | |
20434 | Py_DECREF(lo); | |
20435 | Py_DECREF(shifter); | |
20436 | Py_DECREF(shifted); | |
20437 | } | |
20438 | return resultobj; | |
20439 | fail: | |
20440 | return NULL; | |
20441 | } | |
20442 | ||
20443 | ||
20444 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20445 | PyObject *resultobj; | |
20446 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20447 | wxLongLong result; | |
20448 | PyObject * obj0 = 0 ; | |
20449 | char *kwnames[] = { | |
20450 | (char *) "self", NULL | |
20451 | }; | |
20452 | ||
20453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
20454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20455 | { | |
20456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20457 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
20458 | ||
20459 | wxPyEndAllowThreads(__tstate); | |
20460 | if (PyErr_Occurred()) SWIG_fail; | |
20461 | } | |
20462 | { | |
20463 | PyObject *hi, *lo, *shifter, *shifted; | |
20464 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20465 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20466 | shifter = PyLong_FromLong(32); | |
20467 | shifted = PyNumber_Lshift(hi, shifter); | |
20468 | resultobj = PyNumber_Or(shifted, lo); | |
20469 | Py_DECREF(hi); | |
20470 | Py_DECREF(lo); | |
20471 | Py_DECREF(shifter); | |
20472 | Py_DECREF(shifted); | |
20473 | } | |
20474 | return resultobj; | |
20475 | fail: | |
20476 | return NULL; | |
20477 | } | |
20478 | ||
20479 | ||
20480 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20481 | PyObject *resultobj; | |
20482 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20483 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
20484 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20485 | wxString result; | |
e811c8ce | 20486 | bool temp2 = False ; |
d14a1e28 RD |
20487 | PyObject * obj0 = 0 ; |
20488 | PyObject * obj1 = 0 ; | |
20489 | char *kwnames[] = { | |
20490 | (char *) "self",(char *) "format", NULL | |
20491 | }; | |
20492 | ||
20493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
20494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20495 | if (obj1) { | |
20496 | { | |
20497 | arg2 = wxString_in_helper(obj1); | |
20498 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20499 | temp2 = True; |
d14a1e28 RD |
20500 | } |
20501 | } | |
20502 | { | |
20503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20504 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
20505 | ||
20506 | wxPyEndAllowThreads(__tstate); | |
20507 | if (PyErr_Occurred()) SWIG_fail; | |
20508 | } | |
20509 | { | |
20510 | #if wxUSE_UNICODE | |
20511 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20512 | #else | |
20513 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20514 | #endif | |
20515 | } | |
20516 | { | |
20517 | if (temp2) | |
20518 | delete arg2; | |
20519 | } | |
20520 | return resultobj; | |
20521 | fail: | |
20522 | { | |
20523 | if (temp2) | |
20524 | delete arg2; | |
20525 | } | |
20526 | return NULL; | |
20527 | } | |
20528 | ||
20529 | ||
20530 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
20531 | PyObject *obj; | |
20532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20533 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
20534 | Py_INCREF(obj); | |
20535 | return Py_BuildValue((char *)""); | |
20536 | } | |
20537 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20538 | PyObject *resultobj; | |
20539 | int arg1 = (int) 0 ; | |
20540 | int arg2 = (int) 0 ; | |
20541 | int arg3 = (int) 0 ; | |
20542 | int arg4 = (int) 0 ; | |
20543 | wxDateSpan *result; | |
20544 | char *kwnames[] = { | |
20545 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
20546 | }; | |
20547 | ||
20548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_DateSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
20549 | { | |
20550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20551 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
20552 | ||
20553 | wxPyEndAllowThreads(__tstate); | |
20554 | if (PyErr_Occurred()) SWIG_fail; | |
20555 | } | |
20556 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1); | |
20557 | return resultobj; | |
20558 | fail: | |
20559 | return NULL; | |
20560 | } | |
20561 | ||
20562 | ||
20563 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20564 | PyObject *resultobj; | |
20565 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20566 | PyObject * obj0 = 0 ; | |
20567 | char *kwnames[] = { | |
20568 | (char *) "self", NULL | |
20569 | }; | |
20570 | ||
20571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
20572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20573 | { | |
20574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20575 | delete arg1; | |
20576 | ||
20577 | wxPyEndAllowThreads(__tstate); | |
20578 | if (PyErr_Occurred()) SWIG_fail; | |
20579 | } | |
20580 | Py_INCREF(Py_None); resultobj = Py_None; | |
20581 | return resultobj; | |
20582 | fail: | |
20583 | return NULL; | |
20584 | } | |
20585 | ||
20586 | ||
20587 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20588 | PyObject *resultobj; | |
20589 | int arg1 ; | |
20590 | wxDateSpan result; | |
20591 | char *kwnames[] = { | |
20592 | (char *) "days", NULL | |
20593 | }; | |
20594 | ||
20595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Days",kwnames,&arg1)) goto fail; | |
20596 | { | |
20597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20598 | result = wxDateSpan::Days(arg1); | |
20599 | ||
20600 | wxPyEndAllowThreads(__tstate); | |
20601 | if (PyErr_Occurred()) SWIG_fail; | |
20602 | } | |
20603 | { | |
20604 | wxDateSpan * resultptr; | |
20605 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20606 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20607 | } | |
20608 | return resultobj; | |
20609 | fail: | |
20610 | return NULL; | |
20611 | } | |
20612 | ||
20613 | ||
20614 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20615 | PyObject *resultobj; | |
20616 | wxDateSpan result; | |
20617 | char *kwnames[] = { | |
20618 | NULL | |
20619 | }; | |
20620 | ||
20621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
20622 | { | |
20623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20624 | result = wxDateSpan::Day(); | |
20625 | ||
20626 | wxPyEndAllowThreads(__tstate); | |
20627 | if (PyErr_Occurred()) SWIG_fail; | |
20628 | } | |
20629 | { | |
20630 | wxDateSpan * resultptr; | |
20631 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20632 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20633 | } | |
20634 | return resultobj; | |
20635 | fail: | |
20636 | return NULL; | |
20637 | } | |
20638 | ||
20639 | ||
20640 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20641 | PyObject *resultobj; | |
20642 | int arg1 ; | |
20643 | wxDateSpan result; | |
20644 | char *kwnames[] = { | |
20645 | (char *) "weeks", NULL | |
20646 | }; | |
20647 | ||
20648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Weeks",kwnames,&arg1)) goto fail; | |
20649 | { | |
20650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20651 | result = wxDateSpan::Weeks(arg1); | |
20652 | ||
20653 | wxPyEndAllowThreads(__tstate); | |
20654 | if (PyErr_Occurred()) SWIG_fail; | |
20655 | } | |
20656 | { | |
20657 | wxDateSpan * resultptr; | |
20658 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20659 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20660 | } | |
20661 | return resultobj; | |
20662 | fail: | |
20663 | return NULL; | |
20664 | } | |
20665 | ||
20666 | ||
20667 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20668 | PyObject *resultobj; | |
20669 | wxDateSpan result; | |
20670 | char *kwnames[] = { | |
20671 | NULL | |
20672 | }; | |
20673 | ||
20674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
20675 | { | |
20676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20677 | result = wxDateSpan::Week(); | |
20678 | ||
20679 | wxPyEndAllowThreads(__tstate); | |
20680 | if (PyErr_Occurred()) SWIG_fail; | |
20681 | } | |
20682 | { | |
20683 | wxDateSpan * resultptr; | |
20684 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20685 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20686 | } | |
20687 | return resultobj; | |
20688 | fail: | |
20689 | return NULL; | |
20690 | } | |
20691 | ||
20692 | ||
20693 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20694 | PyObject *resultobj; | |
20695 | int arg1 ; | |
20696 | wxDateSpan result; | |
20697 | char *kwnames[] = { | |
20698 | (char *) "mon", NULL | |
20699 | }; | |
20700 | ||
20701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Months",kwnames,&arg1)) goto fail; | |
20702 | { | |
20703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20704 | result = wxDateSpan::Months(arg1); | |
20705 | ||
20706 | wxPyEndAllowThreads(__tstate); | |
20707 | if (PyErr_Occurred()) SWIG_fail; | |
20708 | } | |
20709 | { | |
20710 | wxDateSpan * resultptr; | |
20711 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20712 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20713 | } | |
20714 | return resultobj; | |
20715 | fail: | |
20716 | return NULL; | |
20717 | } | |
20718 | ||
20719 | ||
20720 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20721 | PyObject *resultobj; | |
20722 | wxDateSpan result; | |
20723 | char *kwnames[] = { | |
20724 | NULL | |
20725 | }; | |
20726 | ||
20727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
20728 | { | |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20730 | result = wxDateSpan::Month(); | |
20731 | ||
20732 | wxPyEndAllowThreads(__tstate); | |
20733 | if (PyErr_Occurred()) SWIG_fail; | |
20734 | } | |
20735 | { | |
20736 | wxDateSpan * resultptr; | |
20737 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20738 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20739 | } | |
20740 | return resultobj; | |
20741 | fail: | |
20742 | return NULL; | |
20743 | } | |
20744 | ||
20745 | ||
20746 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20747 | PyObject *resultobj; | |
20748 | int arg1 ; | |
20749 | wxDateSpan result; | |
20750 | char *kwnames[] = { | |
20751 | (char *) "years", NULL | |
20752 | }; | |
20753 | ||
20754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Years",kwnames,&arg1)) goto fail; | |
20755 | { | |
20756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20757 | result = wxDateSpan::Years(arg1); | |
20758 | ||
20759 | wxPyEndAllowThreads(__tstate); | |
20760 | if (PyErr_Occurred()) SWIG_fail; | |
20761 | } | |
20762 | { | |
20763 | wxDateSpan * resultptr; | |
20764 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20765 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20766 | } | |
20767 | return resultobj; | |
20768 | fail: | |
20769 | return NULL; | |
20770 | } | |
20771 | ||
20772 | ||
20773 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20774 | PyObject *resultobj; | |
20775 | wxDateSpan result; | |
20776 | char *kwnames[] = { | |
20777 | NULL | |
20778 | }; | |
20779 | ||
20780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
20781 | { | |
20782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20783 | result = wxDateSpan::Year(); | |
20784 | ||
20785 | wxPyEndAllowThreads(__tstate); | |
20786 | if (PyErr_Occurred()) SWIG_fail; | |
20787 | } | |
20788 | { | |
20789 | wxDateSpan * resultptr; | |
20790 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20791 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20792 | } | |
20793 | return resultobj; | |
20794 | fail: | |
20795 | return NULL; | |
20796 | } | |
20797 | ||
20798 | ||
20799 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20800 | PyObject *resultobj; | |
20801 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20802 | int arg2 ; | |
20803 | wxDateSpan *result; | |
20804 | PyObject * obj0 = 0 ; | |
20805 | char *kwnames[] = { | |
20806 | (char *) "self",(char *) "n", NULL | |
20807 | }; | |
20808 | ||
20809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetYears",kwnames,&obj0,&arg2)) goto fail; | |
20810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20811 | { | |
20812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20813 | { | |
20814 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
20815 | result = (wxDateSpan *) &_result_ref; | |
20816 | } | |
20817 | ||
20818 | wxPyEndAllowThreads(__tstate); | |
20819 | if (PyErr_Occurred()) SWIG_fail; | |
20820 | } | |
20821 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20822 | return resultobj; | |
20823 | fail: | |
20824 | return NULL; | |
20825 | } | |
20826 | ||
20827 | ||
20828 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20829 | PyObject *resultobj; | |
20830 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20831 | int arg2 ; | |
20832 | wxDateSpan *result; | |
20833 | PyObject * obj0 = 0 ; | |
20834 | char *kwnames[] = { | |
20835 | (char *) "self",(char *) "n", NULL | |
20836 | }; | |
20837 | ||
20838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetMonths",kwnames,&obj0,&arg2)) goto fail; | |
20839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20840 | { | |
20841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20842 | { | |
20843 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
20844 | result = (wxDateSpan *) &_result_ref; | |
20845 | } | |
20846 | ||
20847 | wxPyEndAllowThreads(__tstate); | |
20848 | if (PyErr_Occurred()) SWIG_fail; | |
20849 | } | |
20850 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20851 | return resultobj; | |
20852 | fail: | |
20853 | return NULL; | |
20854 | } | |
20855 | ||
20856 | ||
20857 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20858 | PyObject *resultobj; | |
20859 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20860 | int arg2 ; | |
20861 | wxDateSpan *result; | |
20862 | PyObject * obj0 = 0 ; | |
20863 | char *kwnames[] = { | |
20864 | (char *) "self",(char *) "n", NULL | |
20865 | }; | |
20866 | ||
20867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetWeeks",kwnames,&obj0,&arg2)) goto fail; | |
20868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20869 | { | |
20870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20871 | { | |
20872 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
20873 | result = (wxDateSpan *) &_result_ref; | |
20874 | } | |
20875 | ||
20876 | wxPyEndAllowThreads(__tstate); | |
20877 | if (PyErr_Occurred()) SWIG_fail; | |
20878 | } | |
20879 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20880 | return resultobj; | |
20881 | fail: | |
20882 | return NULL; | |
20883 | } | |
20884 | ||
20885 | ||
20886 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20887 | PyObject *resultobj; | |
20888 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20889 | int arg2 ; | |
20890 | wxDateSpan *result; | |
20891 | PyObject * obj0 = 0 ; | |
20892 | char *kwnames[] = { | |
20893 | (char *) "self",(char *) "n", NULL | |
20894 | }; | |
20895 | ||
20896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetDays",kwnames,&obj0,&arg2)) goto fail; | |
20897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20898 | { | |
20899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20900 | { | |
20901 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
20902 | result = (wxDateSpan *) &_result_ref; | |
20903 | } | |
20904 | ||
20905 | wxPyEndAllowThreads(__tstate); | |
20906 | if (PyErr_Occurred()) SWIG_fail; | |
20907 | } | |
20908 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20909 | return resultobj; | |
20910 | fail: | |
20911 | return NULL; | |
20912 | } | |
20913 | ||
20914 | ||
20915 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20916 | PyObject *resultobj; | |
20917 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20918 | int result; | |
20919 | PyObject * obj0 = 0 ; | |
20920 | char *kwnames[] = { | |
20921 | (char *) "self", NULL | |
20922 | }; | |
20923 | ||
20924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
20925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20926 | { | |
20927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20928 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
20929 | ||
20930 | wxPyEndAllowThreads(__tstate); | |
20931 | if (PyErr_Occurred()) SWIG_fail; | |
20932 | } | |
20933 | resultobj = PyInt_FromLong((long)result); | |
20934 | return resultobj; | |
20935 | fail: | |
20936 | return NULL; | |
20937 | } | |
20938 | ||
20939 | ||
20940 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20941 | PyObject *resultobj; | |
20942 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20943 | int result; | |
20944 | PyObject * obj0 = 0 ; | |
20945 | char *kwnames[] = { | |
20946 | (char *) "self", NULL | |
20947 | }; | |
20948 | ||
20949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
20950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20951 | { | |
20952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20953 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
20954 | ||
20955 | wxPyEndAllowThreads(__tstate); | |
20956 | if (PyErr_Occurred()) SWIG_fail; | |
20957 | } | |
20958 | resultobj = PyInt_FromLong((long)result); | |
20959 | return resultobj; | |
20960 | fail: | |
20961 | return NULL; | |
20962 | } | |
20963 | ||
20964 | ||
20965 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20966 | PyObject *resultobj; | |
20967 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20968 | int result; | |
20969 | PyObject * obj0 = 0 ; | |
20970 | char *kwnames[] = { | |
20971 | (char *) "self", NULL | |
20972 | }; | |
20973 | ||
20974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20976 | { | |
20977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20978 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
20979 | ||
20980 | wxPyEndAllowThreads(__tstate); | |
20981 | if (PyErr_Occurred()) SWIG_fail; | |
20982 | } | |
20983 | resultobj = PyInt_FromLong((long)result); | |
20984 | return resultobj; | |
20985 | fail: | |
20986 | return NULL; | |
20987 | } | |
20988 | ||
20989 | ||
20990 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20991 | PyObject *resultobj; | |
20992 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20993 | int result; | |
20994 | PyObject * obj0 = 0 ; | |
20995 | char *kwnames[] = { | |
20996 | (char *) "self", NULL | |
20997 | }; | |
20998 | ||
20999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
21000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21001 | { | |
21002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21003 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
21004 | ||
21005 | wxPyEndAllowThreads(__tstate); | |
21006 | if (PyErr_Occurred()) SWIG_fail; | |
21007 | } | |
21008 | resultobj = PyInt_FromLong((long)result); | |
21009 | return resultobj; | |
21010 | fail: | |
21011 | return NULL; | |
21012 | } | |
21013 | ||
21014 | ||
21015 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21016 | PyObject *resultobj; | |
21017 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21018 | int result; | |
21019 | PyObject * obj0 = 0 ; | |
21020 | char *kwnames[] = { | |
21021 | (char *) "self", NULL | |
21022 | }; | |
21023 | ||
21024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
21025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21026 | { | |
21027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21028 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
21029 | ||
21030 | wxPyEndAllowThreads(__tstate); | |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
21032 | } | |
21033 | resultobj = PyInt_FromLong((long)result); | |
21034 | return resultobj; | |
21035 | fail: | |
21036 | return NULL; | |
21037 | } | |
21038 | ||
21039 | ||
21040 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21041 | PyObject *resultobj; | |
21042 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21043 | wxDateSpan *arg2 = 0 ; | |
21044 | wxDateSpan *result; | |
21045 | PyObject * obj0 = 0 ; | |
21046 | PyObject * obj1 = 0 ; | |
21047 | char *kwnames[] = { | |
21048 | (char *) "self",(char *) "other", NULL | |
21049 | }; | |
21050 | ||
21051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21053 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21054 | if (arg2 == NULL) { | |
21055 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21056 | } | |
21057 | { | |
21058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21059 | { | |
21060 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
21061 | result = (wxDateSpan *) &_result_ref; | |
21062 | } | |
21063 | ||
21064 | wxPyEndAllowThreads(__tstate); | |
21065 | if (PyErr_Occurred()) SWIG_fail; | |
21066 | } | |
21067 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21068 | return resultobj; | |
21069 | fail: | |
21070 | return NULL; | |
21071 | } | |
21072 | ||
21073 | ||
21074 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21075 | PyObject *resultobj; | |
21076 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21077 | wxDateSpan *arg2 = 0 ; | |
21078 | wxDateSpan *result; | |
21079 | PyObject * obj0 = 0 ; | |
21080 | PyObject * obj1 = 0 ; | |
21081 | char *kwnames[] = { | |
21082 | (char *) "self",(char *) "other", NULL | |
21083 | }; | |
21084 | ||
21085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21087 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21088 | if (arg2 == NULL) { | |
21089 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21090 | } | |
21091 | { | |
21092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21093 | { | |
21094 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
21095 | result = (wxDateSpan *) &_result_ref; | |
21096 | } | |
21097 | ||
21098 | wxPyEndAllowThreads(__tstate); | |
21099 | if (PyErr_Occurred()) SWIG_fail; | |
21100 | } | |
21101 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21102 | return resultobj; | |
21103 | fail: | |
21104 | return NULL; | |
21105 | } | |
21106 | ||
21107 | ||
21108 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21109 | PyObject *resultobj; | |
21110 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21111 | wxDateSpan *result; | |
21112 | PyObject * obj0 = 0 ; | |
21113 | char *kwnames[] = { | |
21114 | (char *) "self", NULL | |
21115 | }; | |
21116 | ||
21117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
21118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21119 | { | |
21120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21121 | { | |
21122 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
21123 | result = (wxDateSpan *) &_result_ref; | |
21124 | } | |
21125 | ||
21126 | wxPyEndAllowThreads(__tstate); | |
21127 | if (PyErr_Occurred()) SWIG_fail; | |
21128 | } | |
21129 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21130 | return resultobj; | |
21131 | fail: | |
21132 | return NULL; | |
21133 | } | |
21134 | ||
21135 | ||
21136 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21137 | PyObject *resultobj; | |
21138 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21139 | int arg2 ; | |
21140 | wxDateSpan *result; | |
21141 | PyObject * obj0 = 0 ; | |
21142 | char *kwnames[] = { | |
21143 | (char *) "self",(char *) "factor", NULL | |
21144 | }; | |
21145 | ||
21146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
21147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21148 | { | |
21149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21150 | { | |
21151 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
21152 | result = (wxDateSpan *) &_result_ref; | |
21153 | } | |
21154 | ||
21155 | wxPyEndAllowThreads(__tstate); | |
21156 | if (PyErr_Occurred()) SWIG_fail; | |
21157 | } | |
21158 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21159 | return resultobj; | |
21160 | fail: | |
21161 | return NULL; | |
21162 | } | |
21163 | ||
21164 | ||
21165 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21166 | PyObject *resultobj; | |
21167 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21168 | wxDateSpan *arg2 = 0 ; | |
21169 | wxDateSpan *result; | |
21170 | PyObject * obj0 = 0 ; | |
21171 | PyObject * obj1 = 0 ; | |
21172 | char *kwnames[] = { | |
21173 | (char *) "self",(char *) "other", NULL | |
21174 | }; | |
21175 | ||
21176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21178 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21179 | if (arg2 == NULL) { | |
21180 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21181 | } | |
21182 | { | |
21183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21184 | { | |
21185 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
21186 | result = (wxDateSpan *) &_result_ref; | |
21187 | } | |
21188 | ||
21189 | wxPyEndAllowThreads(__tstate); | |
21190 | if (PyErr_Occurred()) SWIG_fail; | |
21191 | } | |
21192 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21193 | return resultobj; | |
21194 | fail: | |
21195 | return NULL; | |
21196 | } | |
21197 | ||
21198 | ||
21199 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21200 | PyObject *resultobj; | |
21201 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21202 | wxDateSpan *arg2 = 0 ; | |
21203 | wxDateSpan *result; | |
21204 | PyObject * obj0 = 0 ; | |
21205 | PyObject * obj1 = 0 ; | |
21206 | char *kwnames[] = { | |
21207 | (char *) "self",(char *) "other", NULL | |
21208 | }; | |
21209 | ||
21210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21212 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21213 | if (arg2 == NULL) { | |
21214 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21215 | } | |
21216 | { | |
21217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21218 | { | |
21219 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
21220 | result = (wxDateSpan *) &_result_ref; | |
21221 | } | |
21222 | ||
21223 | wxPyEndAllowThreads(__tstate); | |
21224 | if (PyErr_Occurred()) SWIG_fail; | |
21225 | } | |
21226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21227 | return resultobj; | |
21228 | fail: | |
21229 | return NULL; | |
21230 | } | |
21231 | ||
21232 | ||
21233 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21234 | PyObject *resultobj; | |
21235 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21236 | wxDateSpan *result; | |
21237 | PyObject * obj0 = 0 ; | |
21238 | char *kwnames[] = { | |
21239 | (char *) "self", NULL | |
21240 | }; | |
21241 | ||
21242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
21243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21244 | { | |
21245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21246 | { | |
21247 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
21248 | result = (wxDateSpan *) &_result_ref; | |
21249 | } | |
21250 | ||
21251 | wxPyEndAllowThreads(__tstate); | |
21252 | if (PyErr_Occurred()) SWIG_fail; | |
21253 | } | |
21254 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21255 | return resultobj; | |
21256 | fail: | |
21257 | return NULL; | |
21258 | } | |
21259 | ||
21260 | ||
21261 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21262 | PyObject *resultobj; | |
21263 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21264 | int arg2 ; | |
21265 | wxDateSpan *result; | |
21266 | PyObject * obj0 = 0 ; | |
21267 | char *kwnames[] = { | |
21268 | (char *) "self",(char *) "factor", NULL | |
21269 | }; | |
21270 | ||
21271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
21272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21273 | { | |
21274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21275 | { | |
21276 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
21277 | result = (wxDateSpan *) &_result_ref; | |
21278 | } | |
21279 | ||
21280 | wxPyEndAllowThreads(__tstate); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
21283 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21284 | return resultobj; | |
21285 | fail: | |
21286 | return NULL; | |
21287 | } | |
21288 | ||
21289 | ||
21290 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21291 | PyObject *resultobj; | |
21292 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21293 | wxDateSpan *arg2 = 0 ; | |
21294 | wxDateSpan result; | |
21295 | PyObject * obj0 = 0 ; | |
21296 | PyObject * obj1 = 0 ; | |
21297 | char *kwnames[] = { | |
21298 | (char *) "self",(char *) "other", NULL | |
21299 | }; | |
21300 | ||
21301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21303 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21304 | if (arg2 == NULL) { | |
21305 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21306 | } | |
21307 | { | |
21308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21309 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
21310 | ||
21311 | wxPyEndAllowThreads(__tstate); | |
21312 | if (PyErr_Occurred()) SWIG_fail; | |
21313 | } | |
21314 | { | |
21315 | wxDateSpan * resultptr; | |
21316 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21317 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21318 | } | |
21319 | return resultobj; | |
21320 | fail: | |
21321 | return NULL; | |
21322 | } | |
21323 | ||
21324 | ||
21325 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21326 | PyObject *resultobj; | |
21327 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21328 | wxDateSpan *arg2 = 0 ; | |
21329 | wxDateSpan result; | |
21330 | PyObject * obj0 = 0 ; | |
21331 | PyObject * obj1 = 0 ; | |
21332 | char *kwnames[] = { | |
21333 | (char *) "self",(char *) "other", NULL | |
21334 | }; | |
21335 | ||
21336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21338 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21339 | if (arg2 == NULL) { | |
21340 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21341 | } | |
21342 | { | |
21343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21344 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
21345 | ||
21346 | wxPyEndAllowThreads(__tstate); | |
21347 | if (PyErr_Occurred()) SWIG_fail; | |
21348 | } | |
21349 | { | |
21350 | wxDateSpan * resultptr; | |
21351 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21352 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21353 | } | |
21354 | return resultobj; | |
21355 | fail: | |
21356 | return NULL; | |
21357 | } | |
21358 | ||
21359 | ||
21360 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21361 | PyObject *resultobj; | |
21362 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21363 | int arg2 ; | |
21364 | wxDateSpan result; | |
21365 | PyObject * obj0 = 0 ; | |
21366 | char *kwnames[] = { | |
21367 | (char *) "self",(char *) "n", NULL | |
21368 | }; | |
21369 | ||
21370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
21371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21372 | { | |
21373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21374 | result = wxDateSpan___mul__(arg1,arg2); | |
21375 | ||
21376 | wxPyEndAllowThreads(__tstate); | |
21377 | if (PyErr_Occurred()) SWIG_fail; | |
21378 | } | |
21379 | { | |
21380 | wxDateSpan * resultptr; | |
21381 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21382 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21383 | } | |
21384 | return resultobj; | |
21385 | fail: | |
21386 | return NULL; | |
21387 | } | |
21388 | ||
21389 | ||
21390 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21391 | PyObject *resultobj; | |
21392 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21393 | int arg2 ; | |
21394 | wxDateSpan result; | |
21395 | PyObject * obj0 = 0 ; | |
21396 | char *kwnames[] = { | |
21397 | (char *) "self",(char *) "n", NULL | |
21398 | }; | |
21399 | ||
21400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
21401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21402 | { | |
21403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21404 | result = wxDateSpan___rmul__(arg1,arg2); | |
21405 | ||
21406 | wxPyEndAllowThreads(__tstate); | |
21407 | if (PyErr_Occurred()) SWIG_fail; | |
21408 | } | |
21409 | { | |
21410 | wxDateSpan * resultptr; | |
21411 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21412 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21413 | } | |
21414 | return resultobj; | |
21415 | fail: | |
21416 | return NULL; | |
21417 | } | |
21418 | ||
21419 | ||
21420 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21421 | PyObject *resultobj; | |
21422 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21423 | wxDateSpan *arg2 = 0 ; | |
21424 | bool result; | |
21425 | PyObject * obj0 = 0 ; | |
21426 | PyObject * obj1 = 0 ; | |
21427 | char *kwnames[] = { | |
21428 | (char *) "self",(char *) "other", NULL | |
21429 | }; | |
21430 | ||
21431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
21432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21433 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21434 | if (arg2 == NULL) { | |
21435 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21436 | } | |
21437 | { | |
21438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21439 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2); | |
21440 | ||
21441 | wxPyEndAllowThreads(__tstate); | |
21442 | if (PyErr_Occurred()) SWIG_fail; | |
21443 | } | |
21444 | resultobj = PyInt_FromLong((long)result); | |
21445 | return resultobj; | |
21446 | fail: | |
21447 | return NULL; | |
21448 | } | |
21449 | ||
21450 | ||
21451 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21452 | PyObject *resultobj; | |
21453 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21454 | wxDateSpan *arg2 = 0 ; | |
21455 | bool result; | |
21456 | PyObject * obj0 = 0 ; | |
21457 | PyObject * obj1 = 0 ; | |
21458 | char *kwnames[] = { | |
21459 | (char *) "self",(char *) "other", NULL | |
21460 | }; | |
21461 | ||
21462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
21463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21464 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21465 | if (arg2 == NULL) { | |
21466 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21467 | } | |
21468 | { | |
21469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21470 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2); | |
21471 | ||
21472 | wxPyEndAllowThreads(__tstate); | |
21473 | if (PyErr_Occurred()) SWIG_fail; | |
21474 | } | |
21475 | resultobj = PyInt_FromLong((long)result); | |
21476 | return resultobj; | |
21477 | fail: | |
21478 | return NULL; | |
21479 | } | |
21480 | ||
21481 | ||
21482 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
21483 | PyObject *obj; | |
21484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21485 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
21486 | Py_INCREF(obj); | |
21487 | return Py_BuildValue((char *)""); | |
21488 | } | |
21489 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21490 | PyObject *resultobj; | |
21491 | long result; | |
21492 | char *kwnames[] = { | |
21493 | NULL | |
21494 | }; | |
21495 | ||
21496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
21497 | { | |
21498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21499 | result = (long)wxGetLocalTime(); | |
21500 | ||
21501 | wxPyEndAllowThreads(__tstate); | |
21502 | if (PyErr_Occurred()) SWIG_fail; | |
21503 | } | |
21504 | resultobj = PyInt_FromLong((long)result); | |
21505 | return resultobj; | |
21506 | fail: | |
21507 | return NULL; | |
21508 | } | |
21509 | ||
21510 | ||
21511 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21512 | PyObject *resultobj; | |
21513 | long result; | |
21514 | char *kwnames[] = { | |
21515 | NULL | |
21516 | }; | |
21517 | ||
21518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
21519 | { | |
21520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21521 | result = (long)wxGetUTCTime(); | |
21522 | ||
21523 | wxPyEndAllowThreads(__tstate); | |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
21525 | } | |
21526 | resultobj = PyInt_FromLong((long)result); | |
21527 | return resultobj; | |
21528 | fail: | |
21529 | return NULL; | |
21530 | } | |
21531 | ||
21532 | ||
21533 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21534 | PyObject *resultobj; | |
21535 | long result; | |
21536 | char *kwnames[] = { | |
21537 | NULL | |
21538 | }; | |
21539 | ||
21540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
21541 | { | |
21542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21543 | result = (long)wxGetCurrentTime(); | |
21544 | ||
21545 | wxPyEndAllowThreads(__tstate); | |
21546 | if (PyErr_Occurred()) SWIG_fail; | |
21547 | } | |
21548 | resultobj = PyInt_FromLong((long)result); | |
21549 | return resultobj; | |
21550 | fail: | |
21551 | return NULL; | |
21552 | } | |
21553 | ||
21554 | ||
21555 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21556 | PyObject *resultobj; | |
21557 | wxLongLong result; | |
21558 | char *kwnames[] = { | |
21559 | NULL | |
21560 | }; | |
21561 | ||
21562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
21563 | { | |
21564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21565 | result = wxGetLocalTimeMillis(); | |
21566 | ||
21567 | wxPyEndAllowThreads(__tstate); | |
21568 | if (PyErr_Occurred()) SWIG_fail; | |
21569 | } | |
21570 | { | |
21571 | PyObject *hi, *lo, *shifter, *shifted; | |
21572 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
21573 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
21574 | shifter = PyLong_FromLong(32); | |
21575 | shifted = PyNumber_Lshift(hi, shifter); | |
21576 | resultobj = PyNumber_Or(shifted, lo); | |
21577 | Py_DECREF(hi); | |
21578 | Py_DECREF(lo); | |
21579 | Py_DECREF(shifter); | |
21580 | Py_DECREF(shifted); | |
21581 | } | |
21582 | return resultobj; | |
21583 | fail: | |
21584 | return NULL; | |
21585 | } | |
21586 | ||
21587 | ||
21588 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21589 | PyObject *resultobj; | |
21590 | int arg1 ; | |
21591 | wxDataFormat *result; | |
21592 | char *kwnames[] = { | |
21593 | (char *) "type", NULL | |
21594 | }; | |
21595 | ||
21596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_DataFormat",kwnames,&arg1)) goto fail; | |
21597 | { | |
21598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21599 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
21600 | ||
21601 | wxPyEndAllowThreads(__tstate); | |
21602 | if (PyErr_Occurred()) SWIG_fail; | |
21603 | } | |
21604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21605 | return resultobj; | |
21606 | fail: | |
21607 | return NULL; | |
21608 | } | |
21609 | ||
21610 | ||
21611 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21612 | PyObject *resultobj; | |
21613 | wxString *arg1 = 0 ; | |
21614 | wxDataFormat *result; | |
e811c8ce | 21615 | bool temp1 = False ; |
d14a1e28 RD |
21616 | PyObject * obj0 = 0 ; |
21617 | char *kwnames[] = { | |
21618 | (char *) "format", NULL | |
21619 | }; | |
21620 | ||
21621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
21622 | { | |
21623 | arg1 = wxString_in_helper(obj0); | |
21624 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 21625 | temp1 = True; |
d14a1e28 RD |
21626 | } |
21627 | { | |
21628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21629 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
21630 | ||
21631 | wxPyEndAllowThreads(__tstate); | |
21632 | if (PyErr_Occurred()) SWIG_fail; | |
21633 | } | |
21634 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21635 | { | |
21636 | if (temp1) | |
21637 | delete arg1; | |
21638 | } | |
21639 | return resultobj; | |
21640 | fail: | |
21641 | { | |
21642 | if (temp1) | |
21643 | delete arg1; | |
21644 | } | |
21645 | return NULL; | |
21646 | } | |
21647 | ||
21648 | ||
21649 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21650 | PyObject *resultobj; | |
21651 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21652 | PyObject * obj0 = 0 ; | |
21653 | char *kwnames[] = { | |
21654 | (char *) "self", NULL | |
21655 | }; | |
21656 | ||
21657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
21658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21659 | { | |
21660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21661 | delete arg1; | |
21662 | ||
21663 | wxPyEndAllowThreads(__tstate); | |
21664 | if (PyErr_Occurred()) SWIG_fail; | |
21665 | } | |
21666 | Py_INCREF(Py_None); resultobj = Py_None; | |
21667 | return resultobj; | |
21668 | fail: | |
21669 | return NULL; | |
21670 | } | |
21671 | ||
21672 | ||
21673 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
21674 | PyObject *resultobj; | |
21675 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21676 | int arg2 ; | |
21677 | bool result; | |
21678 | PyObject * obj0 = 0 ; | |
21679 | ||
21680 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___eq__",&obj0,&arg2)) goto fail; | |
21681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21682 | { | |
21683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21684 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
21685 | ||
21686 | wxPyEndAllowThreads(__tstate); | |
21687 | if (PyErr_Occurred()) SWIG_fail; | |
21688 | } | |
21689 | resultobj = PyInt_FromLong((long)result); | |
21690 | return resultobj; | |
21691 | fail: | |
21692 | return NULL; | |
21693 | } | |
21694 | ||
21695 | ||
21696 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
21697 | PyObject *resultobj; | |
21698 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21699 | int arg2 ; | |
21700 | bool result; | |
21701 | PyObject * obj0 = 0 ; | |
21702 | ||
21703 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___ne__",&obj0,&arg2)) goto fail; | |
21704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21705 | { | |
21706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21707 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
21708 | ||
21709 | wxPyEndAllowThreads(__tstate); | |
21710 | if (PyErr_Occurred()) SWIG_fail; | |
21711 | } | |
21712 | resultobj = PyInt_FromLong((long)result); | |
21713 | return resultobj; | |
21714 | fail: | |
21715 | return NULL; | |
21716 | } | |
21717 | ||
21718 | ||
21719 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
21720 | PyObject *resultobj; | |
21721 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21722 | wxDataFormat *arg2 = 0 ; | |
21723 | bool result; | |
21724 | PyObject * obj0 = 0 ; | |
21725 | PyObject * obj1 = 0 ; | |
21726 | ||
21727 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
21728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21729 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21730 | if (arg2 == NULL) { | |
21731 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21732 | } | |
21733 | { | |
21734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21735 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
21736 | ||
21737 | wxPyEndAllowThreads(__tstate); | |
21738 | if (PyErr_Occurred()) SWIG_fail; | |
21739 | } | |
21740 | resultobj = PyInt_FromLong((long)result); | |
21741 | return resultobj; | |
21742 | fail: | |
21743 | return NULL; | |
21744 | } | |
21745 | ||
21746 | ||
21747 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
21748 | int argc; | |
21749 | PyObject *argv[3]; | |
21750 | int ii; | |
21751 | ||
21752 | argc = PyObject_Length(args); | |
21753 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21754 | argv[ii] = PyTuple_GetItem(args,ii); | |
21755 | } | |
21756 | if (argc == 2) { | |
21757 | int _v; | |
21758 | { | |
21759 | void *ptr; | |
21760 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21761 | _v = 0; | |
21762 | PyErr_Clear(); | |
21763 | } else { | |
21764 | _v = 1; | |
21765 | } | |
21766 | } | |
21767 | if (_v) { | |
21768 | { | |
21769 | void *ptr; | |
21770 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21771 | _v = 0; | |
21772 | PyErr_Clear(); | |
21773 | } else { | |
21774 | _v = 1; | |
21775 | } | |
21776 | } | |
21777 | if (_v) { | |
21778 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
21779 | } | |
21780 | } | |
21781 | } | |
21782 | if (argc == 2) { | |
21783 | int _v; | |
21784 | { | |
21785 | void *ptr; | |
21786 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21787 | _v = 0; | |
21788 | PyErr_Clear(); | |
21789 | } else { | |
21790 | _v = 1; | |
21791 | } | |
21792 | } | |
21793 | if (_v) { | |
21794 | { | |
21795 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21796 | } | |
21797 | if (_v) { | |
21798 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
21799 | } | |
21800 | } | |
21801 | } | |
21802 | ||
21803 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
21804 | return NULL; | |
21805 | } | |
21806 | ||
21807 | ||
21808 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
21809 | PyObject *resultobj; | |
21810 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21811 | wxDataFormat *arg2 = 0 ; | |
21812 | bool result; | |
21813 | PyObject * obj0 = 0 ; | |
21814 | PyObject * obj1 = 0 ; | |
21815 | ||
21816 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
21817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21818 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21819 | if (arg2 == NULL) { | |
21820 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21821 | } | |
21822 | { | |
21823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21824 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
21825 | ||
21826 | wxPyEndAllowThreads(__tstate); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
21829 | resultobj = PyInt_FromLong((long)result); | |
21830 | return resultobj; | |
21831 | fail: | |
21832 | return NULL; | |
21833 | } | |
21834 | ||
21835 | ||
21836 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
21837 | int argc; | |
21838 | PyObject *argv[3]; | |
21839 | int ii; | |
21840 | ||
21841 | argc = PyObject_Length(args); | |
21842 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21843 | argv[ii] = PyTuple_GetItem(args,ii); | |
21844 | } | |
21845 | if (argc == 2) { | |
21846 | int _v; | |
21847 | { | |
21848 | void *ptr; | |
21849 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21850 | _v = 0; | |
21851 | PyErr_Clear(); | |
21852 | } else { | |
21853 | _v = 1; | |
21854 | } | |
21855 | } | |
21856 | if (_v) { | |
21857 | { | |
21858 | void *ptr; | |
21859 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21860 | _v = 0; | |
21861 | PyErr_Clear(); | |
21862 | } else { | |
21863 | _v = 1; | |
21864 | } | |
21865 | } | |
21866 | if (_v) { | |
21867 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
21868 | } | |
21869 | } | |
21870 | } | |
21871 | if (argc == 2) { | |
21872 | int _v; | |
21873 | { | |
21874 | void *ptr; | |
21875 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21876 | _v = 0; | |
21877 | PyErr_Clear(); | |
21878 | } else { | |
21879 | _v = 1; | |
21880 | } | |
21881 | } | |
21882 | if (_v) { | |
21883 | { | |
21884 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21885 | } | |
21886 | if (_v) { | |
21887 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
21888 | } | |
21889 | } | |
21890 | } | |
21891 | ||
21892 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
21893 | return NULL; | |
21894 | } | |
21895 | ||
21896 | ||
21897 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21898 | PyObject *resultobj; | |
21899 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21900 | int arg2 ; | |
21901 | PyObject * obj0 = 0 ; | |
21902 | char *kwnames[] = { | |
21903 | (char *) "self",(char *) "format", NULL | |
21904 | }; | |
21905 | ||
21906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DataFormat_SetType",kwnames,&obj0,&arg2)) goto fail; | |
21907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21908 | { | |
21909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21910 | (arg1)->SetType((wxDataFormatId )arg2); | |
21911 | ||
21912 | wxPyEndAllowThreads(__tstate); | |
21913 | if (PyErr_Occurred()) SWIG_fail; | |
21914 | } | |
21915 | Py_INCREF(Py_None); resultobj = Py_None; | |
21916 | return resultobj; | |
21917 | fail: | |
21918 | return NULL; | |
21919 | } | |
21920 | ||
21921 | ||
21922 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21923 | PyObject *resultobj; | |
21924 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21925 | int result; | |
21926 | PyObject * obj0 = 0 ; | |
21927 | char *kwnames[] = { | |
21928 | (char *) "self", NULL | |
21929 | }; | |
21930 | ||
21931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
21932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21933 | { | |
21934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21935 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
21936 | ||
21937 | wxPyEndAllowThreads(__tstate); | |
21938 | if (PyErr_Occurred()) SWIG_fail; | |
21939 | } | |
21940 | resultobj = PyInt_FromLong((long)result); | |
21941 | return resultobj; | |
21942 | fail: | |
21943 | return NULL; | |
21944 | } | |
21945 | ||
21946 | ||
21947 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21948 | PyObject *resultobj; | |
21949 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21950 | wxString result; | |
21951 | PyObject * obj0 = 0 ; | |
21952 | char *kwnames[] = { | |
21953 | (char *) "self", NULL | |
21954 | }; | |
21955 | ||
21956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
21957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21958 | { | |
21959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21960 | result = ((wxDataFormat const *)arg1)->GetId(); | |
21961 | ||
21962 | wxPyEndAllowThreads(__tstate); | |
21963 | if (PyErr_Occurred()) SWIG_fail; | |
21964 | } | |
21965 | { | |
21966 | #if wxUSE_UNICODE | |
21967 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21968 | #else | |
21969 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21970 | #endif | |
21971 | } | |
21972 | return resultobj; | |
21973 | fail: | |
21974 | return NULL; | |
21975 | } | |
21976 | ||
21977 | ||
21978 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21979 | PyObject *resultobj; | |
21980 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21981 | wxString *arg2 = 0 ; | |
e811c8ce | 21982 | bool temp2 = False ; |
d14a1e28 RD |
21983 | PyObject * obj0 = 0 ; |
21984 | PyObject * obj1 = 0 ; | |
21985 | char *kwnames[] = { | |
21986 | (char *) "self",(char *) "format", NULL | |
21987 | }; | |
21988 | ||
21989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
21990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21991 | { | |
21992 | arg2 = wxString_in_helper(obj1); | |
21993 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21994 | temp2 = True; |
d14a1e28 RD |
21995 | } |
21996 | { | |
21997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21998 | (arg1)->SetId((wxString const &)*arg2); | |
21999 | ||
22000 | wxPyEndAllowThreads(__tstate); | |
22001 | if (PyErr_Occurred()) SWIG_fail; | |
22002 | } | |
22003 | Py_INCREF(Py_None); resultobj = Py_None; | |
22004 | { | |
22005 | if (temp2) | |
22006 | delete arg2; | |
22007 | } | |
22008 | return resultobj; | |
22009 | fail: | |
22010 | { | |
22011 | if (temp2) | |
22012 | delete arg2; | |
22013 | } | |
22014 | return NULL; | |
22015 | } | |
22016 | ||
22017 | ||
22018 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
22019 | PyObject *obj; | |
22020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22021 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
22022 | Py_INCREF(obj); | |
22023 | return Py_BuildValue((char *)""); | |
22024 | } | |
22025 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
22026 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
22027 | return 1; | |
22028 | } | |
22029 | ||
22030 | ||
22031 | static PyObject *_wrap_FormatInvalid_get() { | |
22032 | PyObject *pyobj; | |
22033 | ||
22034 | pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0); | |
22035 | return pyobj; | |
22036 | } | |
22037 | ||
22038 | ||
22039 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22040 | PyObject *resultobj; | |
22041 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22042 | PyObject * obj0 = 0 ; | |
22043 | char *kwnames[] = { | |
22044 | (char *) "self", NULL | |
22045 | }; | |
22046 | ||
22047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
22048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22049 | { | |
22050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22051 | delete arg1; | |
22052 | ||
22053 | wxPyEndAllowThreads(__tstate); | |
22054 | if (PyErr_Occurred()) SWIG_fail; | |
22055 | } | |
22056 | Py_INCREF(Py_None); resultobj = Py_None; | |
22057 | return resultobj; | |
22058 | fail: | |
22059 | return NULL; | |
22060 | } | |
22061 | ||
22062 | ||
22063 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22064 | PyObject *resultobj; | |
22065 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22066 | int arg2 = (int) wxDataObject::Get ; | |
22067 | SwigValueWrapper< wxDataFormat > result; | |
22068 | PyObject * obj0 = 0 ; | |
22069 | char *kwnames[] = { | |
22070 | (char *) "self",(char *) "dir", NULL | |
22071 | }; | |
22072 | ||
22073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetPreferredFormat",kwnames,&obj0,&arg2)) goto fail; | |
22074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22075 | { | |
22076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22077 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
22078 | ||
22079 | wxPyEndAllowThreads(__tstate); | |
22080 | if (PyErr_Occurred()) SWIG_fail; | |
22081 | } | |
22082 | { | |
22083 | wxDataFormat * resultptr; | |
22084 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
22085 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1); | |
22086 | } | |
22087 | return resultobj; | |
22088 | fail: | |
22089 | return NULL; | |
22090 | } | |
22091 | ||
22092 | ||
22093 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22094 | PyObject *resultobj; | |
22095 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22096 | int arg2 = (int) wxDataObject::Get ; | |
22097 | size_t result; | |
22098 | PyObject * obj0 = 0 ; | |
22099 | char *kwnames[] = { | |
22100 | (char *) "self",(char *) "dir", NULL | |
22101 | }; | |
22102 | ||
22103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetFormatCount",kwnames,&obj0,&arg2)) goto fail; | |
22104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22105 | { | |
22106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22107 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
22108 | ||
22109 | wxPyEndAllowThreads(__tstate); | |
22110 | if (PyErr_Occurred()) SWIG_fail; | |
22111 | } | |
22112 | resultobj = PyInt_FromLong((long)result); | |
22113 | return resultobj; | |
22114 | fail: | |
22115 | return NULL; | |
22116 | } | |
22117 | ||
22118 | ||
22119 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22120 | PyObject *resultobj; | |
22121 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22122 | wxDataFormat *arg2 = 0 ; | |
22123 | int arg3 = (int) wxDataObject::Get ; | |
22124 | bool result; | |
22125 | PyObject * obj0 = 0 ; | |
22126 | PyObject * obj1 = 0 ; | |
22127 | char *kwnames[] = { | |
22128 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
22129 | }; | |
22130 | ||
22131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_IsSupported",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22133 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22134 | if (arg2 == NULL) { | |
22135 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22136 | } | |
22137 | { | |
22138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22139 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
22140 | ||
22141 | wxPyEndAllowThreads(__tstate); | |
22142 | if (PyErr_Occurred()) SWIG_fail; | |
22143 | } | |
22144 | resultobj = PyInt_FromLong((long)result); | |
22145 | return resultobj; | |
22146 | fail: | |
22147 | return NULL; | |
22148 | } | |
22149 | ||
22150 | ||
22151 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22152 | PyObject *resultobj; | |
22153 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22154 | wxDataFormat *arg2 = 0 ; | |
22155 | size_t result; | |
22156 | PyObject * obj0 = 0 ; | |
22157 | PyObject * obj1 = 0 ; | |
22158 | char *kwnames[] = { | |
22159 | (char *) "self",(char *) "format", NULL | |
22160 | }; | |
22161 | ||
22162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
22163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22164 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22165 | if (arg2 == NULL) { | |
22166 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22167 | } | |
22168 | { | |
22169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22170 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
22171 | ||
22172 | wxPyEndAllowThreads(__tstate); | |
22173 | if (PyErr_Occurred()) SWIG_fail; | |
22174 | } | |
22175 | resultobj = PyInt_FromLong((long)result); | |
22176 | return resultobj; | |
22177 | fail: | |
22178 | return NULL; | |
22179 | } | |
22180 | ||
22181 | ||
22182 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22183 | PyObject *resultobj; | |
22184 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22185 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
22186 | int arg3 = (int) wxDataObject::Get ; | |
22187 | PyObject * obj0 = 0 ; | |
22188 | PyObject * obj1 = 0 ; | |
22189 | char *kwnames[] = { | |
22190 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
22191 | }; | |
22192 | ||
22193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22195 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22196 | { | |
22197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22198 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
22199 | ||
22200 | wxPyEndAllowThreads(__tstate); | |
22201 | if (PyErr_Occurred()) SWIG_fail; | |
22202 | } | |
22203 | Py_INCREF(Py_None); resultobj = Py_None; | |
22204 | return resultobj; | |
22205 | fail: | |
22206 | return NULL; | |
22207 | } | |
22208 | ||
22209 | ||
22210 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22211 | PyObject *resultobj; | |
22212 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22213 | wxDataFormat *arg2 = 0 ; | |
22214 | void *arg3 = (void *) 0 ; | |
22215 | bool result; | |
22216 | PyObject * obj0 = 0 ; | |
22217 | PyObject * obj1 = 0 ; | |
22218 | PyObject * obj2 = 0 ; | |
22219 | char *kwnames[] = { | |
22220 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
22221 | }; | |
22222 | ||
22223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22225 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22226 | if (arg2 == NULL) { | |
22227 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22228 | } | |
22229 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22230 | { | |
22231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22232 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
22233 | ||
22234 | wxPyEndAllowThreads(__tstate); | |
22235 | if (PyErr_Occurred()) SWIG_fail; | |
22236 | } | |
22237 | resultobj = PyInt_FromLong((long)result); | |
22238 | return resultobj; | |
22239 | fail: | |
22240 | return NULL; | |
22241 | } | |
22242 | ||
22243 | ||
22244 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22245 | PyObject *resultobj; | |
22246 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22247 | wxDataFormat *arg2 = 0 ; | |
22248 | size_t arg3 ; | |
22249 | void *arg4 = (void *) 0 ; | |
22250 | bool result; | |
22251 | PyObject * obj0 = 0 ; | |
22252 | PyObject * obj1 = 0 ; | |
22253 | PyObject * obj2 = 0 ; | |
22254 | PyObject * obj3 = 0 ; | |
22255 | char *kwnames[] = { | |
22256 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
22257 | }; | |
22258 | ||
22259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22261 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22262 | if (arg2 == NULL) { | |
22263 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22264 | } | |
22265 | arg3 = (size_t) PyInt_AsLong(obj2); | |
22266 | if (PyErr_Occurred()) SWIG_fail; | |
22267 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22268 | { | |
22269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22270 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
22271 | ||
22272 | wxPyEndAllowThreads(__tstate); | |
22273 | if (PyErr_Occurred()) SWIG_fail; | |
22274 | } | |
22275 | resultobj = PyInt_FromLong((long)result); | |
22276 | return resultobj; | |
22277 | fail: | |
22278 | return NULL; | |
22279 | } | |
22280 | ||
22281 | ||
22282 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
22283 | PyObject *obj; | |
22284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22285 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
22286 | Py_INCREF(obj); | |
22287 | return Py_BuildValue((char *)""); | |
22288 | } | |
22289 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22290 | PyObject *resultobj; | |
22291 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22292 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22293 | wxDataObjectSimple *result; | |
22294 | PyObject * obj0 = 0 ; | |
22295 | char *kwnames[] = { | |
22296 | (char *) "format", NULL | |
22297 | }; | |
22298 | ||
22299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
22300 | if (obj0) { | |
22301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22302 | if (arg1 == NULL) { | |
22303 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22304 | } | |
22305 | } | |
22306 | { | |
22307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22308 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
22309 | ||
22310 | wxPyEndAllowThreads(__tstate); | |
22311 | if (PyErr_Occurred()) SWIG_fail; | |
22312 | } | |
22313 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1); | |
22314 | return resultobj; | |
22315 | fail: | |
22316 | return NULL; | |
22317 | } | |
22318 | ||
22319 | ||
22320 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22321 | PyObject *resultobj; | |
22322 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22323 | wxDataFormat *result; | |
22324 | PyObject * obj0 = 0 ; | |
22325 | char *kwnames[] = { | |
22326 | (char *) "self", NULL | |
22327 | }; | |
22328 | ||
22329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
22330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22331 | { | |
22332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22333 | { | |
22334 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
22335 | result = (wxDataFormat *) &_result_ref; | |
22336 | } | |
22337 | ||
22338 | wxPyEndAllowThreads(__tstate); | |
22339 | if (PyErr_Occurred()) SWIG_fail; | |
22340 | } | |
22341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0); | |
22342 | return resultobj; | |
22343 | fail: | |
22344 | return NULL; | |
22345 | } | |
22346 | ||
22347 | ||
22348 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22349 | PyObject *resultobj; | |
22350 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22351 | wxDataFormat *arg2 = 0 ; | |
22352 | PyObject * obj0 = 0 ; | |
22353 | PyObject * obj1 = 0 ; | |
22354 | char *kwnames[] = { | |
22355 | (char *) "self",(char *) "format", NULL | |
22356 | }; | |
22357 | ||
22358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
22359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22360 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22361 | if (arg2 == NULL) { | |
22362 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22363 | } | |
22364 | { | |
22365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22366 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
22367 | ||
22368 | wxPyEndAllowThreads(__tstate); | |
22369 | if (PyErr_Occurred()) SWIG_fail; | |
22370 | } | |
22371 | Py_INCREF(Py_None); resultobj = Py_None; | |
22372 | return resultobj; | |
22373 | fail: | |
22374 | return NULL; | |
22375 | } | |
22376 | ||
22377 | ||
22378 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22379 | PyObject *obj; | |
22380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22381 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
22382 | Py_INCREF(obj); | |
22383 | return Py_BuildValue((char *)""); | |
22384 | } | |
22385 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22386 | PyObject *resultobj; | |
22387 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22388 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22389 | wxPyDataObjectSimple *result; | |
22390 | PyObject * obj0 = 0 ; | |
22391 | char *kwnames[] = { | |
22392 | (char *) "format", NULL | |
22393 | }; | |
22394 | ||
22395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
22396 | if (obj0) { | |
22397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22398 | if (arg1 == NULL) { | |
22399 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22400 | } | |
22401 | } | |
22402 | { | |
22403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22404 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
22405 | ||
22406 | wxPyEndAllowThreads(__tstate); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
22409 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
22410 | return resultobj; | |
22411 | fail: | |
22412 | return NULL; | |
22413 | } | |
22414 | ||
22415 | ||
22416 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22417 | PyObject *resultobj; | |
22418 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
22419 | PyObject *arg2 = (PyObject *) 0 ; | |
22420 | PyObject *arg3 = (PyObject *) 0 ; | |
22421 | PyObject * obj0 = 0 ; | |
22422 | PyObject * obj1 = 0 ; | |
22423 | PyObject * obj2 = 0 ; | |
22424 | char *kwnames[] = { | |
22425 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22426 | }; | |
22427 | ||
22428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22430 | arg2 = obj1; | |
22431 | arg3 = obj2; | |
22432 | { | |
22433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22434 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22435 | ||
22436 | wxPyEndAllowThreads(__tstate); | |
22437 | if (PyErr_Occurred()) SWIG_fail; | |
22438 | } | |
22439 | Py_INCREF(Py_None); resultobj = Py_None; | |
22440 | return resultobj; | |
22441 | fail: | |
22442 | return NULL; | |
22443 | } | |
22444 | ||
22445 | ||
22446 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22447 | PyObject *obj; | |
22448 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22449 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
22450 | Py_INCREF(obj); | |
22451 | return Py_BuildValue((char *)""); | |
22452 | } | |
22453 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22454 | PyObject *resultobj; | |
22455 | wxDataObjectComposite *result; | |
22456 | char *kwnames[] = { | |
22457 | NULL | |
22458 | }; | |
22459 | ||
22460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
22461 | { | |
22462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22463 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
22464 | ||
22465 | wxPyEndAllowThreads(__tstate); | |
22466 | if (PyErr_Occurred()) SWIG_fail; | |
22467 | } | |
22468 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1); | |
22469 | return resultobj; | |
22470 | fail: | |
22471 | return NULL; | |
22472 | } | |
22473 | ||
22474 | ||
22475 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22476 | PyObject *resultobj; | |
22477 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
22478 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
e811c8ce | 22479 | int arg3 = (int) False ; |
d14a1e28 RD |
22480 | PyObject * obj0 = 0 ; |
22481 | PyObject * obj1 = 0 ; | |
22482 | char *kwnames[] = { | |
22483 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
22484 | }; | |
22485 | ||
22486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObjectComposite_Add",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22488 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22489 | { | |
22490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22491 | (arg1)->Add(arg2,arg3); | |
22492 | ||
22493 | wxPyEndAllowThreads(__tstate); | |
22494 | if (PyErr_Occurred()) SWIG_fail; | |
22495 | } | |
22496 | Py_INCREF(Py_None); resultobj = Py_None; | |
22497 | return resultobj; | |
22498 | fail: | |
22499 | return NULL; | |
22500 | } | |
22501 | ||
22502 | ||
22503 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
22504 | PyObject *obj; | |
22505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22506 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
22507 | Py_INCREF(obj); | |
22508 | return Py_BuildValue((char *)""); | |
22509 | } | |
22510 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22511 | PyObject *resultobj; | |
22512 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22513 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22514 | wxTextDataObject *result; | |
e811c8ce | 22515 | bool temp1 = False ; |
d14a1e28 RD |
22516 | PyObject * obj0 = 0 ; |
22517 | char *kwnames[] = { | |
22518 | (char *) "text", NULL | |
22519 | }; | |
22520 | ||
22521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
22522 | if (obj0) { | |
22523 | { | |
22524 | arg1 = wxString_in_helper(obj0); | |
22525 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 22526 | temp1 = True; |
d14a1e28 RD |
22527 | } |
22528 | } | |
22529 | { | |
22530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22531 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
22532 | ||
22533 | wxPyEndAllowThreads(__tstate); | |
22534 | if (PyErr_Occurred()) SWIG_fail; | |
22535 | } | |
22536 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1); | |
22537 | { | |
22538 | if (temp1) | |
22539 | delete arg1; | |
22540 | } | |
22541 | return resultobj; | |
22542 | fail: | |
22543 | { | |
22544 | if (temp1) | |
22545 | delete arg1; | |
22546 | } | |
22547 | return NULL; | |
22548 | } | |
22549 | ||
22550 | ||
22551 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22552 | PyObject *resultobj; | |
22553 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22554 | size_t result; | |
22555 | PyObject * obj0 = 0 ; | |
22556 | char *kwnames[] = { | |
22557 | (char *) "self", NULL | |
22558 | }; | |
22559 | ||
22560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
22561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22562 | { | |
22563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22564 | result = (size_t)(arg1)->GetTextLength(); | |
22565 | ||
22566 | wxPyEndAllowThreads(__tstate); | |
22567 | if (PyErr_Occurred()) SWIG_fail; | |
22568 | } | |
22569 | resultobj = PyInt_FromLong((long)result); | |
22570 | return resultobj; | |
22571 | fail: | |
22572 | return NULL; | |
22573 | } | |
22574 | ||
22575 | ||
22576 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22577 | PyObject *resultobj; | |
22578 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22579 | wxString result; | |
22580 | PyObject * obj0 = 0 ; | |
22581 | char *kwnames[] = { | |
22582 | (char *) "self", NULL | |
22583 | }; | |
22584 | ||
22585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
22586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22587 | { | |
22588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22589 | result = (arg1)->GetText(); | |
22590 | ||
22591 | wxPyEndAllowThreads(__tstate); | |
22592 | if (PyErr_Occurred()) SWIG_fail; | |
22593 | } | |
22594 | { | |
22595 | #if wxUSE_UNICODE | |
22596 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22597 | #else | |
22598 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22599 | #endif | |
22600 | } | |
22601 | return resultobj; | |
22602 | fail: | |
22603 | return NULL; | |
22604 | } | |
22605 | ||
22606 | ||
22607 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22608 | PyObject *resultobj; | |
22609 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22610 | wxString *arg2 = 0 ; | |
e811c8ce | 22611 | bool temp2 = False ; |
d14a1e28 RD |
22612 | PyObject * obj0 = 0 ; |
22613 | PyObject * obj1 = 0 ; | |
22614 | char *kwnames[] = { | |
22615 | (char *) "self",(char *) "text", NULL | |
22616 | }; | |
22617 | ||
22618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
22619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22620 | { | |
22621 | arg2 = wxString_in_helper(obj1); | |
22622 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22623 | temp2 = True; |
d14a1e28 RD |
22624 | } |
22625 | { | |
22626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22627 | (arg1)->SetText((wxString const &)*arg2); | |
22628 | ||
22629 | wxPyEndAllowThreads(__tstate); | |
22630 | if (PyErr_Occurred()) SWIG_fail; | |
22631 | } | |
22632 | Py_INCREF(Py_None); resultobj = Py_None; | |
22633 | { | |
22634 | if (temp2) | |
22635 | delete arg2; | |
22636 | } | |
22637 | return resultobj; | |
22638 | fail: | |
22639 | { | |
22640 | if (temp2) | |
22641 | delete arg2; | |
22642 | } | |
22643 | return NULL; | |
22644 | } | |
22645 | ||
22646 | ||
22647 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22648 | PyObject *obj; | |
22649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22650 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
22651 | Py_INCREF(obj); | |
22652 | return Py_BuildValue((char *)""); | |
22653 | } | |
22654 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22655 | PyObject *resultobj; | |
22656 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22657 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22658 | wxPyTextDataObject *result; | |
e811c8ce | 22659 | bool temp1 = False ; |
d14a1e28 RD |
22660 | PyObject * obj0 = 0 ; |
22661 | char *kwnames[] = { | |
22662 | (char *) "text", NULL | |
22663 | }; | |
22664 | ||
22665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
22666 | if (obj0) { | |
22667 | { | |
22668 | arg1 = wxString_in_helper(obj0); | |
22669 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 22670 | temp1 = True; |
d14a1e28 RD |
22671 | } |
22672 | } | |
22673 | { | |
22674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22675 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
22676 | ||
22677 | wxPyEndAllowThreads(__tstate); | |
22678 | if (PyErr_Occurred()) SWIG_fail; | |
22679 | } | |
22680 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1); | |
22681 | { | |
22682 | if (temp1) | |
22683 | delete arg1; | |
22684 | } | |
22685 | return resultobj; | |
22686 | fail: | |
22687 | { | |
22688 | if (temp1) | |
22689 | delete arg1; | |
22690 | } | |
22691 | return NULL; | |
22692 | } | |
22693 | ||
22694 | ||
22695 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22696 | PyObject *resultobj; | |
22697 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
22698 | PyObject *arg2 = (PyObject *) 0 ; | |
22699 | PyObject *arg3 = (PyObject *) 0 ; | |
22700 | PyObject * obj0 = 0 ; | |
22701 | PyObject * obj1 = 0 ; | |
22702 | PyObject * obj2 = 0 ; | |
22703 | char *kwnames[] = { | |
22704 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22705 | }; | |
22706 | ||
22707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22709 | arg2 = obj1; | |
22710 | arg3 = obj2; | |
22711 | { | |
22712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22713 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22714 | ||
22715 | wxPyEndAllowThreads(__tstate); | |
22716 | if (PyErr_Occurred()) SWIG_fail; | |
22717 | } | |
22718 | Py_INCREF(Py_None); resultobj = Py_None; | |
22719 | return resultobj; | |
22720 | fail: | |
22721 | return NULL; | |
22722 | } | |
22723 | ||
22724 | ||
22725 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22726 | PyObject *obj; | |
22727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22728 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
22729 | Py_INCREF(obj); | |
22730 | return Py_BuildValue((char *)""); | |
22731 | } | |
22732 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22733 | PyObject *resultobj; | |
22734 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22735 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22736 | wxBitmapDataObject *result; | |
22737 | PyObject * obj0 = 0 ; | |
22738 | char *kwnames[] = { | |
22739 | (char *) "bitmap", NULL | |
22740 | }; | |
22741 | ||
22742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
22743 | if (obj0) { | |
22744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22745 | if (arg1 == NULL) { | |
22746 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22747 | } | |
22748 | } | |
22749 | { | |
22750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22751 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
22752 | ||
22753 | wxPyEndAllowThreads(__tstate); | |
22754 | if (PyErr_Occurred()) SWIG_fail; | |
22755 | } | |
22756 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1); | |
22757 | return resultobj; | |
22758 | fail: | |
22759 | return NULL; | |
22760 | } | |
22761 | ||
22762 | ||
22763 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22764 | PyObject *resultobj; | |
22765 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22766 | wxBitmap result; | |
22767 | PyObject * obj0 = 0 ; | |
22768 | char *kwnames[] = { | |
22769 | (char *) "self", NULL | |
22770 | }; | |
22771 | ||
22772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
22773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22774 | { | |
22775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22776 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
22777 | ||
22778 | wxPyEndAllowThreads(__tstate); | |
22779 | if (PyErr_Occurred()) SWIG_fail; | |
22780 | } | |
22781 | { | |
22782 | wxBitmap * resultptr; | |
22783 | resultptr = new wxBitmap((wxBitmap &) result); | |
22784 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
22785 | } | |
22786 | return resultobj; | |
22787 | fail: | |
22788 | return NULL; | |
22789 | } | |
22790 | ||
22791 | ||
22792 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22793 | PyObject *resultobj; | |
22794 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22795 | wxBitmap *arg2 = 0 ; | |
22796 | PyObject * obj0 = 0 ; | |
22797 | PyObject * obj1 = 0 ; | |
22798 | char *kwnames[] = { | |
22799 | (char *) "self",(char *) "bitmap", NULL | |
22800 | }; | |
22801 | ||
22802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
22803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22804 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22805 | if (arg2 == NULL) { | |
22806 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22807 | } | |
22808 | { | |
22809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22810 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
22811 | ||
22812 | wxPyEndAllowThreads(__tstate); | |
22813 | if (PyErr_Occurred()) SWIG_fail; | |
22814 | } | |
22815 | Py_INCREF(Py_None); resultobj = Py_None; | |
22816 | return resultobj; | |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
22822 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22823 | PyObject *obj; | |
22824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22825 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
22826 | Py_INCREF(obj); | |
22827 | return Py_BuildValue((char *)""); | |
22828 | } | |
22829 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22830 | PyObject *resultobj; | |
22831 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22832 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22833 | wxPyBitmapDataObject *result; | |
22834 | PyObject * obj0 = 0 ; | |
22835 | char *kwnames[] = { | |
22836 | (char *) "bitmap", NULL | |
22837 | }; | |
22838 | ||
22839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
22840 | if (obj0) { | |
22841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22842 | if (arg1 == NULL) { | |
22843 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22844 | } | |
22845 | } | |
22846 | { | |
22847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22848 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
22849 | ||
22850 | wxPyEndAllowThreads(__tstate); | |
22851 | if (PyErr_Occurred()) SWIG_fail; | |
22852 | } | |
22853 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
22854 | return resultobj; | |
22855 | fail: | |
22856 | return NULL; | |
22857 | } | |
22858 | ||
22859 | ||
22860 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22861 | PyObject *resultobj; | |
22862 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
22863 | PyObject *arg2 = (PyObject *) 0 ; | |
22864 | PyObject *arg3 = (PyObject *) 0 ; | |
22865 | PyObject * obj0 = 0 ; | |
22866 | PyObject * obj1 = 0 ; | |
22867 | PyObject * obj2 = 0 ; | |
22868 | char *kwnames[] = { | |
22869 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22870 | }; | |
22871 | ||
22872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22874 | arg2 = obj1; | |
22875 | arg3 = obj2; | |
22876 | { | |
22877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22878 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22879 | ||
22880 | wxPyEndAllowThreads(__tstate); | |
22881 | if (PyErr_Occurred()) SWIG_fail; | |
22882 | } | |
22883 | Py_INCREF(Py_None); resultobj = Py_None; | |
22884 | return resultobj; | |
22885 | fail: | |
22886 | return NULL; | |
22887 | } | |
22888 | ||
22889 | ||
22890 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22891 | PyObject *obj; | |
22892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22893 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
22894 | Py_INCREF(obj); | |
22895 | return Py_BuildValue((char *)""); | |
22896 | } | |
22897 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22898 | PyObject *resultobj; | |
22899 | wxFileDataObject *result; | |
22900 | char *kwnames[] = { | |
22901 | NULL | |
22902 | }; | |
22903 | ||
22904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
22905 | { | |
22906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22907 | result = (wxFileDataObject *)new wxFileDataObject(); | |
22908 | ||
22909 | wxPyEndAllowThreads(__tstate); | |
22910 | if (PyErr_Occurred()) SWIG_fail; | |
22911 | } | |
22912 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1); | |
22913 | return resultobj; | |
22914 | fail: | |
22915 | return NULL; | |
22916 | } | |
22917 | ||
22918 | ||
22919 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22920 | PyObject *resultobj; | |
22921 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
22922 | wxArrayString *result; | |
22923 | PyObject * obj0 = 0 ; | |
22924 | char *kwnames[] = { | |
22925 | (char *) "self", NULL | |
22926 | }; | |
22927 | ||
22928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
22929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22930 | { | |
22931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22932 | { | |
22933 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
22934 | result = (wxArrayString *) &_result_ref; | |
22935 | } | |
22936 | ||
22937 | wxPyEndAllowThreads(__tstate); | |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
22939 | } | |
22940 | { | |
22941 | resultobj = wxArrayString2PyList_helper(*result); | |
22942 | } | |
22943 | return resultobj; | |
22944 | fail: | |
22945 | return NULL; | |
22946 | } | |
22947 | ||
22948 | ||
22949 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
22950 | PyObject *obj; | |
22951 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22952 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
22953 | Py_INCREF(obj); | |
22954 | return Py_BuildValue((char *)""); | |
22955 | } | |
22956 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22957 | PyObject *resultobj; | |
22958 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22959 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22960 | wxCustomDataObject *result; | |
22961 | PyObject * obj0 = 0 ; | |
22962 | char *kwnames[] = { | |
22963 | (char *) "format", NULL | |
22964 | }; | |
22965 | ||
22966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
22967 | if (obj0) { | |
22968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22969 | if (arg1 == NULL) { | |
22970 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22971 | } | |
22972 | } | |
22973 | { | |
22974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22975 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
22976 | ||
22977 | wxPyEndAllowThreads(__tstate); | |
22978 | if (PyErr_Occurred()) SWIG_fail; | |
22979 | } | |
22980 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1); | |
22981 | return resultobj; | |
22982 | fail: | |
22983 | return NULL; | |
22984 | } | |
22985 | ||
22986 | ||
22987 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22988 | PyObject *resultobj; | |
22989 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22990 | PyObject *arg2 = (PyObject *) 0 ; | |
22991 | PyObject * obj0 = 0 ; | |
22992 | PyObject * obj1 = 0 ; | |
22993 | char *kwnames[] = { | |
22994 | (char *) "self",(char *) "data", NULL | |
22995 | }; | |
22996 | ||
22997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
22998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22999 | arg2 = obj1; | |
23000 | { | |
23001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23002 | wxCustomDataObject_TakeData(arg1,arg2); | |
23003 | ||
23004 | wxPyEndAllowThreads(__tstate); | |
23005 | if (PyErr_Occurred()) SWIG_fail; | |
23006 | } | |
23007 | Py_INCREF(Py_None); resultobj = Py_None; | |
23008 | return resultobj; | |
23009 | fail: | |
23010 | return NULL; | |
23011 | } | |
23012 | ||
23013 | ||
23014 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23015 | PyObject *resultobj; | |
23016 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23017 | PyObject *arg2 = (PyObject *) 0 ; | |
23018 | bool result; | |
23019 | PyObject * obj0 = 0 ; | |
23020 | PyObject * obj1 = 0 ; | |
23021 | char *kwnames[] = { | |
23022 | (char *) "self",(char *) "data", NULL | |
23023 | }; | |
23024 | ||
23025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23027 | arg2 = obj1; | |
23028 | { | |
23029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23030 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
23031 | ||
23032 | wxPyEndAllowThreads(__tstate); | |
23033 | if (PyErr_Occurred()) SWIG_fail; | |
23034 | } | |
23035 | resultobj = PyInt_FromLong((long)result); | |
23036 | return resultobj; | |
23037 | fail: | |
23038 | return NULL; | |
23039 | } | |
23040 | ||
23041 | ||
23042 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23043 | PyObject *resultobj; | |
23044 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23045 | size_t result; | |
23046 | PyObject * obj0 = 0 ; | |
23047 | char *kwnames[] = { | |
23048 | (char *) "self", NULL | |
23049 | }; | |
23050 | ||
23051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
23052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23053 | { | |
23054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23055 | result = (size_t)(arg1)->GetSize(); | |
23056 | ||
23057 | wxPyEndAllowThreads(__tstate); | |
23058 | if (PyErr_Occurred()) SWIG_fail; | |
23059 | } | |
23060 | resultobj = PyInt_FromLong((long)result); | |
23061 | return resultobj; | |
23062 | fail: | |
23063 | return NULL; | |
23064 | } | |
23065 | ||
23066 | ||
23067 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23068 | PyObject *resultobj; | |
23069 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23070 | PyObject *result; | |
23071 | PyObject * obj0 = 0 ; | |
23072 | char *kwnames[] = { | |
23073 | (char *) "self", NULL | |
23074 | }; | |
23075 | ||
23076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
23077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23078 | { | |
23079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23080 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
23081 | ||
23082 | wxPyEndAllowThreads(__tstate); | |
23083 | if (PyErr_Occurred()) SWIG_fail; | |
23084 | } | |
23085 | resultobj = result; | |
23086 | return resultobj; | |
23087 | fail: | |
23088 | return NULL; | |
23089 | } | |
23090 | ||
23091 | ||
23092 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
23093 | PyObject *obj; | |
23094 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23095 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
23096 | Py_INCREF(obj); | |
23097 | return Py_BuildValue((char *)""); | |
23098 | } | |
23099 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23100 | PyObject *resultobj; | |
23101 | wxURLDataObject *result; | |
23102 | char *kwnames[] = { | |
23103 | NULL | |
23104 | }; | |
23105 | ||
23106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
23107 | { | |
23108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23109 | result = (wxURLDataObject *)new wxURLDataObject(); | |
23110 | ||
23111 | wxPyEndAllowThreads(__tstate); | |
23112 | if (PyErr_Occurred()) SWIG_fail; | |
23113 | } | |
23114 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1); | |
23115 | return resultobj; | |
23116 | fail: | |
23117 | return NULL; | |
23118 | } | |
23119 | ||
23120 | ||
23121 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23122 | PyObject *resultobj; | |
23123 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
23124 | wxString result; | |
23125 | PyObject * obj0 = 0 ; | |
23126 | char *kwnames[] = { | |
23127 | (char *) "self", NULL | |
23128 | }; | |
23129 | ||
23130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
23131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23132 | { | |
23133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23134 | result = (arg1)->GetURL(); | |
23135 | ||
23136 | wxPyEndAllowThreads(__tstate); | |
23137 | if (PyErr_Occurred()) SWIG_fail; | |
23138 | } | |
23139 | { | |
23140 | #if wxUSE_UNICODE | |
23141 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23142 | #else | |
23143 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23144 | #endif | |
23145 | } | |
23146 | return resultobj; | |
23147 | fail: | |
23148 | return NULL; | |
23149 | } | |
23150 | ||
23151 | ||
23152 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23153 | PyObject *resultobj; | |
23154 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
23155 | wxString *arg2 = 0 ; | |
e811c8ce | 23156 | bool temp2 = False ; |
d14a1e28 RD |
23157 | PyObject * obj0 = 0 ; |
23158 | PyObject * obj1 = 0 ; | |
23159 | char *kwnames[] = { | |
23160 | (char *) "self",(char *) "url", NULL | |
23161 | }; | |
23162 | ||
23163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
23164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23165 | { | |
23166 | arg2 = wxString_in_helper(obj1); | |
23167 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23168 | temp2 = True; |
d14a1e28 RD |
23169 | } |
23170 | { | |
23171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23172 | (arg1)->SetURL((wxString const &)*arg2); | |
23173 | ||
23174 | wxPyEndAllowThreads(__tstate); | |
23175 | if (PyErr_Occurred()) SWIG_fail; | |
23176 | } | |
23177 | Py_INCREF(Py_None); resultobj = Py_None; | |
23178 | { | |
23179 | if (temp2) | |
23180 | delete arg2; | |
23181 | } | |
23182 | return resultobj; | |
23183 | fail: | |
23184 | { | |
23185 | if (temp2) | |
23186 | delete arg2; | |
23187 | } | |
23188 | return NULL; | |
23189 | } | |
23190 | ||
23191 | ||
23192 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
23193 | PyObject *obj; | |
23194 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23195 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
23196 | Py_INCREF(obj); | |
23197 | return Py_BuildValue((char *)""); | |
23198 | } | |
23199 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23200 | PyObject *resultobj; | |
23201 | wxMetafileDataObject *result; | |
23202 | char *kwnames[] = { | |
23203 | NULL | |
23204 | }; | |
23205 | ||
23206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
23207 | { | |
23208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23209 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
23210 | ||
23211 | wxPyEndAllowThreads(__tstate); | |
23212 | if (PyErr_Occurred()) SWIG_fail; | |
23213 | } | |
23214 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1); | |
23215 | return resultobj; | |
23216 | fail: | |
23217 | return NULL; | |
23218 | } | |
23219 | ||
23220 | ||
23221 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
23222 | PyObject *obj; | |
23223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23224 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
23225 | Py_INCREF(obj); | |
23226 | return Py_BuildValue((char *)""); | |
23227 | } | |
23228 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23229 | PyObject *resultobj; | |
23230 | int arg1 ; | |
23231 | bool result; | |
23232 | char *kwnames[] = { | |
23233 | (char *) "res", NULL | |
23234 | }; | |
23235 | ||
23236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IsDragResultOk",kwnames,&arg1)) goto fail; | |
23237 | { | |
23238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23239 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
23240 | ||
23241 | wxPyEndAllowThreads(__tstate); | |
23242 | if (PyErr_Occurred()) SWIG_fail; | |
23243 | } | |
23244 | resultobj = PyInt_FromLong((long)result); | |
23245 | return resultobj; | |
23246 | fail: | |
23247 | return NULL; | |
23248 | } | |
23249 | ||
23250 | ||
23251 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23252 | PyObject *resultobj; | |
23253 | wxWindow *arg1 = (wxWindow *) NULL ; | |
23254 | wxIcon const &arg2_defvalue = wxNullIcon ; | |
23255 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
23256 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
23257 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
23258 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
23259 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
23260 | wxPyDropSource *result; | |
23261 | PyObject * obj0 = 0 ; | |
23262 | PyObject * obj1 = 0 ; | |
23263 | PyObject * obj2 = 0 ; | |
23264 | PyObject * obj3 = 0 ; | |
23265 | char *kwnames[] = { | |
23266 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
23267 | }; | |
23268 | ||
23269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23270 | if (obj0) { | |
23271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23272 | } | |
23273 | if (obj1) { | |
23274 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23275 | if (arg2 == NULL) { | |
23276 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23277 | } | |
23278 | } | |
23279 | if (obj2) { | |
23280 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23281 | if (arg3 == NULL) { | |
23282 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23283 | } | |
23284 | } | |
23285 | if (obj3) { | |
23286 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23287 | if (arg4 == NULL) { | |
23288 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23289 | } | |
23290 | } | |
23291 | { | |
23292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23293 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
23294 | ||
23295 | wxPyEndAllowThreads(__tstate); | |
23296 | if (PyErr_Occurred()) SWIG_fail; | |
23297 | } | |
23298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1); | |
23299 | return resultobj; | |
23300 | fail: | |
23301 | return NULL; | |
23302 | } | |
23303 | ||
23304 | ||
23305 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23306 | PyObject *resultobj; | |
23307 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23308 | PyObject *arg2 = (PyObject *) 0 ; | |
23309 | PyObject *arg3 = (PyObject *) 0 ; | |
23310 | int arg4 ; | |
23311 | PyObject * obj0 = 0 ; | |
23312 | PyObject * obj1 = 0 ; | |
23313 | PyObject * obj2 = 0 ; | |
23314 | char *kwnames[] = { | |
23315 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
23316 | }; | |
23317 | ||
23318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOi:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
23319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23320 | arg2 = obj1; | |
23321 | arg3 = obj2; | |
23322 | { | |
23323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23324 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
23325 | ||
23326 | wxPyEndAllowThreads(__tstate); | |
23327 | if (PyErr_Occurred()) SWIG_fail; | |
23328 | } | |
23329 | Py_INCREF(Py_None); resultobj = Py_None; | |
23330 | return resultobj; | |
23331 | fail: | |
23332 | return NULL; | |
23333 | } | |
23334 | ||
23335 | ||
23336 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23337 | PyObject *resultobj; | |
23338 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23339 | PyObject * obj0 = 0 ; | |
23340 | char *kwnames[] = { | |
23341 | (char *) "self", NULL | |
23342 | }; | |
23343 | ||
23344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
23345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23346 | { | |
23347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23348 | delete arg1; | |
23349 | ||
23350 | wxPyEndAllowThreads(__tstate); | |
23351 | if (PyErr_Occurred()) SWIG_fail; | |
23352 | } | |
23353 | Py_INCREF(Py_None); resultobj = Py_None; | |
23354 | return resultobj; | |
23355 | fail: | |
23356 | return NULL; | |
23357 | } | |
23358 | ||
23359 | ||
23360 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23361 | PyObject *resultobj; | |
23362 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23363 | wxDataObject *arg2 = 0 ; | |
23364 | PyObject * obj0 = 0 ; | |
23365 | PyObject * obj1 = 0 ; | |
23366 | char *kwnames[] = { | |
23367 | (char *) "self",(char *) "data", NULL | |
23368 | }; | |
23369 | ||
23370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23372 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23373 | if (arg2 == NULL) { | |
23374 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23375 | } | |
23376 | { | |
23377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23378 | (arg1)->SetData(*arg2); | |
23379 | ||
23380 | wxPyEndAllowThreads(__tstate); | |
23381 | if (PyErr_Occurred()) SWIG_fail; | |
23382 | } | |
23383 | Py_INCREF(Py_None); resultobj = Py_None; | |
23384 | return resultobj; | |
23385 | fail: | |
23386 | return NULL; | |
23387 | } | |
23388 | ||
23389 | ||
23390 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23391 | PyObject *resultobj; | |
23392 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23393 | wxDataObject *result; | |
23394 | PyObject * obj0 = 0 ; | |
23395 | char *kwnames[] = { | |
23396 | (char *) "self", NULL | |
23397 | }; | |
23398 | ||
23399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
23400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23401 | { | |
23402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23403 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23404 | ||
23405 | wxPyEndAllowThreads(__tstate); | |
23406 | if (PyErr_Occurred()) SWIG_fail; | |
23407 | } | |
23408 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23409 | return resultobj; | |
23410 | fail: | |
23411 | return NULL; | |
23412 | } | |
23413 | ||
23414 | ||
23415 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23416 | PyObject *resultobj; | |
23417 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23418 | int arg2 ; | |
23419 | wxCursor *arg3 = 0 ; | |
23420 | PyObject * obj0 = 0 ; | |
23421 | PyObject * obj2 = 0 ; | |
23422 | char *kwnames[] = { | |
23423 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
23424 | }; | |
23425 | ||
23426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:DropSource_SetCursor",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
23427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23428 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23429 | if (arg3 == NULL) { | |
23430 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23431 | } | |
23432 | { | |
23433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23434 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
23435 | ||
23436 | wxPyEndAllowThreads(__tstate); | |
23437 | if (PyErr_Occurred()) SWIG_fail; | |
23438 | } | |
23439 | Py_INCREF(Py_None); resultobj = Py_None; | |
23440 | return resultobj; | |
23441 | fail: | |
23442 | return NULL; | |
23443 | } | |
23444 | ||
23445 | ||
23446 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23447 | PyObject *resultobj; | |
23448 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23449 | int arg2 = (int) wxDrag_CopyOnly ; | |
23450 | int result; | |
23451 | PyObject * obj0 = 0 ; | |
23452 | char *kwnames[] = { | |
23453 | (char *) "self",(char *) "flags", NULL | |
23454 | }; | |
23455 | ||
23456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DropSource_DoDragDrop",kwnames,&obj0,&arg2)) goto fail; | |
23457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23458 | { | |
23459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23460 | result = (int)(arg1)->DoDragDrop(arg2); | |
23461 | ||
23462 | wxPyEndAllowThreads(__tstate); | |
23463 | if (PyErr_Occurred()) SWIG_fail; | |
23464 | } | |
23465 | resultobj = PyInt_FromLong((long)result); | |
23466 | return resultobj; | |
23467 | fail: | |
23468 | return NULL; | |
23469 | } | |
23470 | ||
23471 | ||
23472 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23473 | PyObject *resultobj; | |
23474 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23475 | int arg2 ; | |
23476 | bool result; | |
23477 | PyObject * obj0 = 0 ; | |
23478 | char *kwnames[] = { | |
23479 | (char *) "self",(char *) "effect", NULL | |
23480 | }; | |
23481 | ||
23482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DropSource_base_GiveFeedback",kwnames,&obj0,&arg2)) goto fail; | |
23483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23484 | { | |
23485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23486 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
23487 | ||
23488 | wxPyEndAllowThreads(__tstate); | |
23489 | if (PyErr_Occurred()) SWIG_fail; | |
23490 | } | |
23491 | resultobj = PyInt_FromLong((long)result); | |
23492 | return resultobj; | |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
23498 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
23499 | PyObject *obj; | |
23500 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23501 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
23502 | Py_INCREF(obj); | |
23503 | return Py_BuildValue((char *)""); | |
23504 | } | |
196addbf | 23505 | static PyObject *_wrap_new_PyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23506 | PyObject *resultobj; |
23507 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
23508 | wxPyDropTarget *result; | |
23509 | PyObject * obj0 = 0 ; | |
23510 | char *kwnames[] = { | |
23511 | (char *) "dataObject", NULL | |
23512 | }; | |
23513 | ||
196addbf | 23514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
23515 | if (obj0) { |
23516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23517 | } | |
23518 | { | |
23519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23520 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
23521 | ||
23522 | wxPyEndAllowThreads(__tstate); | |
23523 | if (PyErr_Occurred()) SWIG_fail; | |
23524 | } | |
23525 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1); | |
23526 | return resultobj; | |
23527 | fail: | |
23528 | return NULL; | |
23529 | } | |
23530 | ||
23531 | ||
23532 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23533 | PyObject *resultobj; | |
23534 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23535 | PyObject *arg2 = (PyObject *) 0 ; | |
23536 | PyObject *arg3 = (PyObject *) 0 ; | |
23537 | PyObject * obj0 = 0 ; | |
23538 | PyObject * obj1 = 0 ; | |
23539 | PyObject * obj2 = 0 ; | |
23540 | char *kwnames[] = { | |
23541 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23542 | }; | |
23543 | ||
23544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23546 | arg2 = obj1; | |
23547 | arg3 = obj2; | |
23548 | { | |
23549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23550 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23551 | ||
23552 | wxPyEndAllowThreads(__tstate); | |
23553 | if (PyErr_Occurred()) SWIG_fail; | |
23554 | } | |
23555 | Py_INCREF(Py_None); resultobj = Py_None; | |
23556 | return resultobj; | |
23557 | fail: | |
23558 | return NULL; | |
23559 | } | |
23560 | ||
23561 | ||
23562 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23563 | PyObject *resultobj; | |
23564 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23565 | PyObject * obj0 = 0 ; | |
23566 | char *kwnames[] = { | |
23567 | (char *) "self", NULL | |
23568 | }; | |
23569 | ||
23570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
23571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23572 | { | |
23573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23574 | delete arg1; | |
23575 | ||
23576 | wxPyEndAllowThreads(__tstate); | |
23577 | if (PyErr_Occurred()) SWIG_fail; | |
23578 | } | |
23579 | Py_INCREF(Py_None); resultobj = Py_None; | |
23580 | return resultobj; | |
23581 | fail: | |
23582 | return NULL; | |
23583 | } | |
23584 | ||
23585 | ||
23586 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23587 | PyObject *resultobj; | |
23588 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23589 | wxDataObject *result; | |
23590 | PyObject * obj0 = 0 ; | |
23591 | char *kwnames[] = { | |
23592 | (char *) "self", NULL | |
23593 | }; | |
23594 | ||
23595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
23596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23597 | { | |
23598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23599 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23600 | ||
23601 | wxPyEndAllowThreads(__tstate); | |
23602 | if (PyErr_Occurred()) SWIG_fail; | |
23603 | } | |
23604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23605 | return resultobj; | |
23606 | fail: | |
23607 | return NULL; | |
23608 | } | |
23609 | ||
23610 | ||
23611 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23612 | PyObject *resultobj; | |
23613 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23614 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
23615 | PyObject * obj0 = 0 ; | |
23616 | PyObject * obj1 = 0 ; | |
23617 | char *kwnames[] = { | |
23618 | (char *) "self",(char *) "dataObject", NULL | |
23619 | }; | |
23620 | ||
23621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
23622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23623 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23624 | { | |
23625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23626 | (arg1)->SetDataObject(arg2); | |
23627 | ||
23628 | wxPyEndAllowThreads(__tstate); | |
23629 | if (PyErr_Occurred()) SWIG_fail; | |
23630 | } | |
23631 | Py_INCREF(Py_None); resultobj = Py_None; | |
23632 | return resultobj; | |
23633 | fail: | |
23634 | return NULL; | |
23635 | } | |
23636 | ||
23637 | ||
23638 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23639 | PyObject *resultobj; | |
23640 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
23641 | int arg2 ; |
23642 | int arg3 ; | |
d14a1e28 RD |
23643 | int arg4 ; |
23644 | int result; | |
23645 | PyObject * obj0 = 0 ; | |
23646 | char *kwnames[] = { | |
23647 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23648 | }; | |
23649 | ||
23650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23652 | { | |
23653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23654 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23655 | ||
23656 | wxPyEndAllowThreads(__tstate); | |
23657 | if (PyErr_Occurred()) SWIG_fail; | |
23658 | } | |
23659 | resultobj = PyInt_FromLong((long)result); | |
23660 | return resultobj; | |
23661 | fail: | |
23662 | return NULL; | |
23663 | } | |
23664 | ||
23665 | ||
23666 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23667 | PyObject *resultobj; | |
23668 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
23669 | int arg2 ; |
23670 | int arg3 ; | |
d14a1e28 RD |
23671 | int arg4 ; |
23672 | int result; | |
23673 | PyObject * obj0 = 0 ; | |
23674 | char *kwnames[] = { | |
23675 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23676 | }; | |
23677 | ||
23678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23680 | { | |
23681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23682 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23683 | ||
23684 | wxPyEndAllowThreads(__tstate); | |
23685 | if (PyErr_Occurred()) SWIG_fail; | |
23686 | } | |
23687 | resultobj = PyInt_FromLong((long)result); | |
23688 | return resultobj; | |
23689 | fail: | |
23690 | return NULL; | |
23691 | } | |
23692 | ||
23693 | ||
23694 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23695 | PyObject *resultobj; | |
23696 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23697 | PyObject * obj0 = 0 ; | |
23698 | char *kwnames[] = { | |
23699 | (char *) "self", NULL | |
23700 | }; | |
23701 | ||
23702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23704 | { | |
23705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23706 | (arg1)->base_OnLeave(); | |
23707 | ||
23708 | wxPyEndAllowThreads(__tstate); | |
23709 | if (PyErr_Occurred()) SWIG_fail; | |
23710 | } | |
23711 | Py_INCREF(Py_None); resultobj = Py_None; | |
23712 | return resultobj; | |
23713 | fail: | |
23714 | return NULL; | |
23715 | } | |
23716 | ||
23717 | ||
23718 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23719 | PyObject *resultobj; | |
23720 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
23721 | int arg2 ; |
23722 | int arg3 ; | |
d14a1e28 RD |
23723 | bool result; |
23724 | PyObject * obj0 = 0 ; | |
23725 | char *kwnames[] = { | |
23726 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23727 | }; | |
23728 | ||
23729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23731 | { | |
23732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23733 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23734 | ||
23735 | wxPyEndAllowThreads(__tstate); | |
23736 | if (PyErr_Occurred()) SWIG_fail; | |
23737 | } | |
23738 | resultobj = PyInt_FromLong((long)result); | |
23739 | return resultobj; | |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
23745 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23746 | PyObject *resultobj; | |
23747 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23748 | bool result; | |
23749 | PyObject * obj0 = 0 ; | |
23750 | char *kwnames[] = { | |
23751 | (char *) "self", NULL | |
23752 | }; | |
23753 | ||
23754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
23755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23756 | { | |
23757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23758 | result = (bool)(arg1)->GetData(); | |
23759 | ||
23760 | wxPyEndAllowThreads(__tstate); | |
23761 | if (PyErr_Occurred()) SWIG_fail; | |
23762 | } | |
23763 | resultobj = PyInt_FromLong((long)result); | |
23764 | return resultobj; | |
23765 | fail: | |
23766 | return NULL; | |
23767 | } | |
23768 | ||
23769 | ||
23770 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
23771 | PyObject *obj; | |
23772 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23773 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
23774 | Py_INCREF(obj); | |
23775 | return Py_BuildValue((char *)""); | |
23776 | } | |
23777 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23778 | PyObject *resultobj; | |
23779 | wxPyTextDropTarget *result; | |
23780 | char *kwnames[] = { | |
23781 | NULL | |
23782 | }; | |
23783 | ||
23784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
23785 | { | |
23786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23787 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
23788 | ||
23789 | wxPyEndAllowThreads(__tstate); | |
23790 | if (PyErr_Occurred()) SWIG_fail; | |
23791 | } | |
23792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1); | |
23793 | return resultobj; | |
23794 | fail: | |
23795 | return NULL; | |
23796 | } | |
23797 | ||
23798 | ||
23799 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23800 | PyObject *resultobj; | |
23801 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23802 | PyObject *arg2 = (PyObject *) 0 ; | |
23803 | PyObject *arg3 = (PyObject *) 0 ; | |
23804 | PyObject * obj0 = 0 ; | |
23805 | PyObject * obj1 = 0 ; | |
23806 | PyObject * obj2 = 0 ; | |
23807 | char *kwnames[] = { | |
23808 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23809 | }; | |
23810 | ||
23811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23813 | arg2 = obj1; | |
23814 | arg3 = obj2; | |
23815 | { | |
23816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23817 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23818 | ||
23819 | wxPyEndAllowThreads(__tstate); | |
23820 | if (PyErr_Occurred()) SWIG_fail; | |
23821 | } | |
23822 | Py_INCREF(Py_None); resultobj = Py_None; | |
23823 | return resultobj; | |
23824 | fail: | |
23825 | return NULL; | |
23826 | } | |
23827 | ||
23828 | ||
23829 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23830 | PyObject *resultobj; | |
23831 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
23832 | int arg2 ; |
23833 | int arg3 ; | |
d14a1e28 RD |
23834 | int arg4 ; |
23835 | int result; | |
23836 | PyObject * obj0 = 0 ; | |
23837 | char *kwnames[] = { | |
23838 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23839 | }; | |
23840 | ||
23841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23843 | { | |
23844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23845 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23846 | ||
23847 | wxPyEndAllowThreads(__tstate); | |
23848 | if (PyErr_Occurred()) SWIG_fail; | |
23849 | } | |
23850 | resultobj = PyInt_FromLong((long)result); | |
23851 | return resultobj; | |
23852 | fail: | |
23853 | return NULL; | |
23854 | } | |
23855 | ||
23856 | ||
23857 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23858 | PyObject *resultobj; | |
23859 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
23860 | int arg2 ; |
23861 | int arg3 ; | |
d14a1e28 RD |
23862 | int arg4 ; |
23863 | int result; | |
23864 | PyObject * obj0 = 0 ; | |
23865 | char *kwnames[] = { | |
23866 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23867 | }; | |
23868 | ||
23869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23871 | { | |
23872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23873 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23874 | ||
23875 | wxPyEndAllowThreads(__tstate); | |
23876 | if (PyErr_Occurred()) SWIG_fail; | |
23877 | } | |
23878 | resultobj = PyInt_FromLong((long)result); | |
23879 | return resultobj; | |
23880 | fail: | |
23881 | return NULL; | |
23882 | } | |
23883 | ||
23884 | ||
23885 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23886 | PyObject *resultobj; | |
23887 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23888 | PyObject * obj0 = 0 ; | |
23889 | char *kwnames[] = { | |
23890 | (char *) "self", NULL | |
23891 | }; | |
23892 | ||
23893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23895 | { | |
23896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23897 | (arg1)->base_OnLeave(); | |
23898 | ||
23899 | wxPyEndAllowThreads(__tstate); | |
23900 | if (PyErr_Occurred()) SWIG_fail; | |
23901 | } | |
23902 | Py_INCREF(Py_None); resultobj = Py_None; | |
23903 | return resultobj; | |
23904 | fail: | |
23905 | return NULL; | |
23906 | } | |
23907 | ||
23908 | ||
23909 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23910 | PyObject *resultobj; | |
23911 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
23912 | int arg2 ; |
23913 | int arg3 ; | |
d14a1e28 RD |
23914 | bool result; |
23915 | PyObject * obj0 = 0 ; | |
23916 | char *kwnames[] = { | |
23917 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23918 | }; | |
23919 | ||
23920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:TextDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23922 | { | |
23923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23924 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23925 | ||
23926 | wxPyEndAllowThreads(__tstate); | |
23927 | if (PyErr_Occurred()) SWIG_fail; | |
23928 | } | |
23929 | resultobj = PyInt_FromLong((long)result); | |
23930 | return resultobj; | |
23931 | fail: | |
23932 | return NULL; | |
23933 | } | |
23934 | ||
23935 | ||
23936 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23937 | PyObject *resultobj; | |
23938 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
23939 | int arg2 ; |
23940 | int arg3 ; | |
d14a1e28 RD |
23941 | int arg4 ; |
23942 | int result; | |
23943 | PyObject * obj0 = 0 ; | |
23944 | char *kwnames[] = { | |
23945 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23946 | }; | |
23947 | ||
23948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23950 | { | |
23951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23952 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
23953 | ||
23954 | wxPyEndAllowThreads(__tstate); | |
23955 | if (PyErr_Occurred()) SWIG_fail; | |
23956 | } | |
23957 | resultobj = PyInt_FromLong((long)result); | |
23958 | return resultobj; | |
23959 | fail: | |
23960 | return NULL; | |
23961 | } | |
23962 | ||
23963 | ||
23964 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
23965 | PyObject *obj; | |
23966 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23967 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
23968 | Py_INCREF(obj); | |
23969 | return Py_BuildValue((char *)""); | |
23970 | } | |
23971 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23972 | PyObject *resultobj; | |
23973 | wxPyFileDropTarget *result; | |
23974 | char *kwnames[] = { | |
23975 | NULL | |
23976 | }; | |
23977 | ||
23978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
23979 | { | |
23980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23981 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
23982 | ||
23983 | wxPyEndAllowThreads(__tstate); | |
23984 | if (PyErr_Occurred()) SWIG_fail; | |
23985 | } | |
23986 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1); | |
23987 | return resultobj; | |
23988 | fail: | |
23989 | return NULL; | |
23990 | } | |
23991 | ||
23992 | ||
23993 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23994 | PyObject *resultobj; | |
23995 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
23996 | PyObject *arg2 = (PyObject *) 0 ; | |
23997 | PyObject *arg3 = (PyObject *) 0 ; | |
23998 | PyObject * obj0 = 0 ; | |
23999 | PyObject * obj1 = 0 ; | |
24000 | PyObject * obj2 = 0 ; | |
24001 | char *kwnames[] = { | |
24002 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24003 | }; | |
24004 | ||
24005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24007 | arg2 = obj1; | |
24008 | arg3 = obj2; | |
24009 | { | |
24010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24011 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24012 | ||
24013 | wxPyEndAllowThreads(__tstate); | |
24014 | if (PyErr_Occurred()) SWIG_fail; | |
24015 | } | |
24016 | Py_INCREF(Py_None); resultobj = Py_None; | |
24017 | return resultobj; | |
24018 | fail: | |
24019 | return NULL; | |
24020 | } | |
24021 | ||
24022 | ||
24023 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24024 | PyObject *resultobj; | |
24025 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
24026 | int arg2 ; |
24027 | int arg3 ; | |
d14a1e28 RD |
24028 | int arg4 ; |
24029 | int result; | |
24030 | PyObject * obj0 = 0 ; | |
24031 | char *kwnames[] = { | |
24032 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24033 | }; | |
24034 | ||
24035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24037 | { | |
24038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24039 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
24040 | ||
24041 | wxPyEndAllowThreads(__tstate); | |
24042 | if (PyErr_Occurred()) SWIG_fail; | |
24043 | } | |
24044 | resultobj = PyInt_FromLong((long)result); | |
24045 | return resultobj; | |
24046 | fail: | |
24047 | return NULL; | |
24048 | } | |
24049 | ||
24050 | ||
24051 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24052 | PyObject *resultobj; | |
24053 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
24054 | int arg2 ; |
24055 | int arg3 ; | |
d14a1e28 RD |
24056 | int arg4 ; |
24057 | int result; | |
24058 | PyObject * obj0 = 0 ; | |
24059 | char *kwnames[] = { | |
24060 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24061 | }; | |
24062 | ||
24063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24065 | { | |
24066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24067 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
24068 | ||
24069 | wxPyEndAllowThreads(__tstate); | |
24070 | if (PyErr_Occurred()) SWIG_fail; | |
24071 | } | |
24072 | resultobj = PyInt_FromLong((long)result); | |
24073 | return resultobj; | |
24074 | fail: | |
24075 | return NULL; | |
24076 | } | |
24077 | ||
24078 | ||
24079 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24080 | PyObject *resultobj; | |
24081 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
24082 | PyObject * obj0 = 0 ; | |
24083 | char *kwnames[] = { | |
24084 | (char *) "self", NULL | |
24085 | }; | |
24086 | ||
24087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
24088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24089 | { | |
24090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24091 | (arg1)->base_OnLeave(); | |
24092 | ||
24093 | wxPyEndAllowThreads(__tstate); | |
24094 | if (PyErr_Occurred()) SWIG_fail; | |
24095 | } | |
24096 | Py_INCREF(Py_None); resultobj = Py_None; | |
24097 | return resultobj; | |
24098 | fail: | |
24099 | return NULL; | |
24100 | } | |
24101 | ||
24102 | ||
24103 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24104 | PyObject *resultobj; | |
24105 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
24106 | int arg2 ; |
24107 | int arg3 ; | |
d14a1e28 RD |
24108 | bool result; |
24109 | PyObject * obj0 = 0 ; | |
24110 | char *kwnames[] = { | |
24111 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24112 | }; | |
24113 | ||
24114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:FileDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24116 | { | |
24117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24118 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
24119 | ||
24120 | wxPyEndAllowThreads(__tstate); | |
24121 | if (PyErr_Occurred()) SWIG_fail; | |
24122 | } | |
24123 | resultobj = PyInt_FromLong((long)result); | |
24124 | return resultobj; | |
24125 | fail: | |
24126 | return NULL; | |
24127 | } | |
24128 | ||
24129 | ||
24130 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24131 | PyObject *resultobj; | |
24132 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
24133 | int arg2 ; |
24134 | int arg3 ; | |
d14a1e28 RD |
24135 | int arg4 ; |
24136 | int result; | |
24137 | PyObject * obj0 = 0 ; | |
24138 | char *kwnames[] = { | |
24139 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24140 | }; | |
24141 | ||
24142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24144 | { | |
24145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24146 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
24147 | ||
24148 | wxPyEndAllowThreads(__tstate); | |
24149 | if (PyErr_Occurred()) SWIG_fail; | |
24150 | } | |
24151 | resultobj = PyInt_FromLong((long)result); | |
24152 | return resultobj; | |
24153 | fail: | |
24154 | return NULL; | |
24155 | } | |
24156 | ||
24157 | ||
24158 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
24159 | PyObject *obj; | |
24160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24161 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
24162 | Py_INCREF(obj); | |
24163 | return Py_BuildValue((char *)""); | |
24164 | } | |
24165 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24166 | PyObject *resultobj; | |
24167 | wxClipboard *result; | |
24168 | char *kwnames[] = { | |
24169 | NULL | |
24170 | }; | |
24171 | ||
24172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
24173 | { | |
24174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24175 | result = (wxClipboard *)new wxClipboard(); | |
24176 | ||
24177 | wxPyEndAllowThreads(__tstate); | |
24178 | if (PyErr_Occurred()) SWIG_fail; | |
24179 | } | |
24180 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1); | |
24181 | return resultobj; | |
24182 | fail: | |
24183 | return NULL; | |
24184 | } | |
24185 | ||
24186 | ||
24187 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24188 | PyObject *resultobj; | |
24189 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24190 | PyObject * obj0 = 0 ; | |
24191 | char *kwnames[] = { | |
24192 | (char *) "self", NULL | |
24193 | }; | |
24194 | ||
24195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
24196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24197 | { | |
24198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24199 | delete arg1; | |
24200 | ||
24201 | wxPyEndAllowThreads(__tstate); | |
24202 | if (PyErr_Occurred()) SWIG_fail; | |
24203 | } | |
24204 | Py_INCREF(Py_None); resultobj = Py_None; | |
24205 | return resultobj; | |
24206 | fail: | |
24207 | return NULL; | |
24208 | } | |
24209 | ||
24210 | ||
24211 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24212 | PyObject *resultobj; | |
24213 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24214 | bool result; | |
24215 | PyObject * obj0 = 0 ; | |
24216 | char *kwnames[] = { | |
24217 | (char *) "self", NULL | |
24218 | }; | |
24219 | ||
24220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
24221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24222 | { | |
24223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24224 | result = (bool)(arg1)->Open(); | |
24225 | ||
24226 | wxPyEndAllowThreads(__tstate); | |
24227 | if (PyErr_Occurred()) SWIG_fail; | |
24228 | } | |
24229 | resultobj = PyInt_FromLong((long)result); | |
24230 | return resultobj; | |
24231 | fail: | |
24232 | return NULL; | |
24233 | } | |
24234 | ||
24235 | ||
24236 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24237 | PyObject *resultobj; | |
24238 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24239 | PyObject * obj0 = 0 ; | |
24240 | char *kwnames[] = { | |
24241 | (char *) "self", NULL | |
24242 | }; | |
24243 | ||
24244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
24245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24246 | { | |
24247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24248 | (arg1)->Close(); | |
24249 | ||
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
24253 | Py_INCREF(Py_None); resultobj = Py_None; | |
24254 | return resultobj; | |
24255 | fail: | |
24256 | return NULL; | |
24257 | } | |
24258 | ||
24259 | ||
24260 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24261 | PyObject *resultobj; | |
24262 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24263 | bool result; | |
24264 | PyObject * obj0 = 0 ; | |
24265 | char *kwnames[] = { | |
24266 | (char *) "self", NULL | |
24267 | }; | |
24268 | ||
24269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
24270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24271 | { | |
24272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24273 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
24274 | ||
24275 | wxPyEndAllowThreads(__tstate); | |
24276 | if (PyErr_Occurred()) SWIG_fail; | |
24277 | } | |
24278 | resultobj = PyInt_FromLong((long)result); | |
24279 | return resultobj; | |
24280 | fail: | |
24281 | return NULL; | |
24282 | } | |
24283 | ||
24284 | ||
24285 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24286 | PyObject *resultobj; | |
24287 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24288 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24289 | bool result; | |
24290 | PyObject * obj0 = 0 ; | |
24291 | PyObject * obj1 = 0 ; | |
24292 | char *kwnames[] = { | |
24293 | (char *) "self",(char *) "data", NULL | |
24294 | }; | |
24295 | ||
24296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
24297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24298 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24299 | { | |
24300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24301 | result = (bool)(arg1)->AddData(arg2); | |
24302 | ||
24303 | wxPyEndAllowThreads(__tstate); | |
24304 | if (PyErr_Occurred()) SWIG_fail; | |
24305 | } | |
24306 | resultobj = PyInt_FromLong((long)result); | |
24307 | return resultobj; | |
24308 | fail: | |
24309 | return NULL; | |
24310 | } | |
24311 | ||
24312 | ||
24313 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24314 | PyObject *resultobj; | |
24315 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24316 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24317 | bool result; | |
24318 | PyObject * obj0 = 0 ; | |
24319 | PyObject * obj1 = 0 ; | |
24320 | char *kwnames[] = { | |
24321 | (char *) "self",(char *) "data", NULL | |
24322 | }; | |
24323 | ||
24324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24326 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24327 | { | |
24328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24329 | result = (bool)(arg1)->SetData(arg2); | |
24330 | ||
24331 | wxPyEndAllowThreads(__tstate); | |
24332 | if (PyErr_Occurred()) SWIG_fail; | |
24333 | } | |
24334 | resultobj = PyInt_FromLong((long)result); | |
24335 | return resultobj; | |
24336 | fail: | |
24337 | return NULL; | |
24338 | } | |
24339 | ||
24340 | ||
24341 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24342 | PyObject *resultobj; | |
24343 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24344 | wxDataFormat *arg2 = 0 ; | |
24345 | bool result; | |
24346 | PyObject * obj0 = 0 ; | |
24347 | PyObject * obj1 = 0 ; | |
24348 | char *kwnames[] = { | |
24349 | (char *) "self",(char *) "format", NULL | |
24350 | }; | |
24351 | ||
24352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
24353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24354 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24355 | if (arg2 == NULL) { | |
24356 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24357 | } | |
24358 | { | |
24359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24360 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
24361 | ||
24362 | wxPyEndAllowThreads(__tstate); | |
24363 | if (PyErr_Occurred()) SWIG_fail; | |
24364 | } | |
24365 | resultobj = PyInt_FromLong((long)result); | |
24366 | return resultobj; | |
24367 | fail: | |
24368 | return NULL; | |
24369 | } | |
24370 | ||
24371 | ||
24372 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24373 | PyObject *resultobj; | |
24374 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24375 | wxDataObject *arg2 = 0 ; | |
24376 | bool result; | |
24377 | PyObject * obj0 = 0 ; | |
24378 | PyObject * obj1 = 0 ; | |
24379 | char *kwnames[] = { | |
24380 | (char *) "self",(char *) "data", NULL | |
24381 | }; | |
24382 | ||
24383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
24384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24385 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24386 | if (arg2 == NULL) { | |
24387 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24388 | } | |
24389 | { | |
24390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24391 | result = (bool)(arg1)->GetData(*arg2); | |
24392 | ||
24393 | wxPyEndAllowThreads(__tstate); | |
24394 | if (PyErr_Occurred()) SWIG_fail; | |
24395 | } | |
24396 | resultobj = PyInt_FromLong((long)result); | |
24397 | return resultobj; | |
24398 | fail: | |
24399 | return NULL; | |
24400 | } | |
24401 | ||
24402 | ||
24403 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24404 | PyObject *resultobj; | |
24405 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24406 | PyObject * obj0 = 0 ; | |
24407 | char *kwnames[] = { | |
24408 | (char *) "self", NULL | |
24409 | }; | |
24410 | ||
24411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
24412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24413 | { | |
24414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24415 | (arg1)->Clear(); | |
24416 | ||
24417 | wxPyEndAllowThreads(__tstate); | |
24418 | if (PyErr_Occurred()) SWIG_fail; | |
24419 | } | |
24420 | Py_INCREF(Py_None); resultobj = Py_None; | |
24421 | return resultobj; | |
24422 | fail: | |
24423 | return NULL; | |
24424 | } | |
24425 | ||
24426 | ||
24427 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24428 | PyObject *resultobj; | |
24429 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24430 | bool result; | |
24431 | PyObject * obj0 = 0 ; | |
24432 | char *kwnames[] = { | |
24433 | (char *) "self", NULL | |
24434 | }; | |
24435 | ||
24436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
24437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24438 | { | |
24439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24440 | result = (bool)(arg1)->Flush(); | |
24441 | ||
24442 | wxPyEndAllowThreads(__tstate); | |
24443 | if (PyErr_Occurred()) SWIG_fail; | |
24444 | } | |
24445 | resultobj = PyInt_FromLong((long)result); | |
24446 | return resultobj; | |
24447 | fail: | |
24448 | return NULL; | |
24449 | } | |
24450 | ||
24451 | ||
24452 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24453 | PyObject *resultobj; | |
24454 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
e811c8ce | 24455 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24456 | PyObject * obj0 = 0 ; |
24457 | PyObject * obj1 = 0 ; | |
24458 | char *kwnames[] = { | |
24459 | (char *) "self",(char *) "primary", NULL | |
24460 | }; | |
24461 | ||
24462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
24463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24464 | if (obj1) { | |
24465 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24466 | if (PyErr_Occurred()) SWIG_fail; | |
24467 | } | |
24468 | { | |
24469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24470 | (arg1)->UsePrimarySelection(arg2); | |
24471 | ||
24472 | wxPyEndAllowThreads(__tstate); | |
24473 | if (PyErr_Occurred()) SWIG_fail; | |
24474 | } | |
24475 | Py_INCREF(Py_None); resultobj = Py_None; | |
24476 | return resultobj; | |
24477 | fail: | |
24478 | return NULL; | |
24479 | } | |
24480 | ||
24481 | ||
24482 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
24483 | PyObject *obj; | |
24484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24485 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
24486 | Py_INCREF(obj); | |
24487 | return Py_BuildValue((char *)""); | |
24488 | } | |
24489 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
24490 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
24491 | return 1; | |
24492 | } | |
24493 | ||
24494 | ||
24495 | static PyObject *_wrap_TheClipboard_get() { | |
24496 | PyObject *pyobj; | |
24497 | ||
24498 | pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); | |
24499 | return pyobj; | |
24500 | } | |
24501 | ||
24502 | ||
24503 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24504 | PyObject *resultobj; | |
24505 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
24506 | wxClipboardLocker *result; | |
24507 | PyObject * obj0 = 0 ; | |
24508 | char *kwnames[] = { | |
24509 | (char *) "clipboard", NULL | |
24510 | }; | |
24511 | ||
24512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24513 | if (obj0) { | |
24514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24515 | } | |
24516 | { | |
24517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24518 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
24519 | ||
24520 | wxPyEndAllowThreads(__tstate); | |
24521 | if (PyErr_Occurred()) SWIG_fail; | |
24522 | } | |
24523 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1); | |
24524 | return resultobj; | |
24525 | fail: | |
24526 | return NULL; | |
24527 | } | |
24528 | ||
24529 | ||
24530 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24531 | PyObject *resultobj; | |
24532 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24533 | PyObject * obj0 = 0 ; | |
24534 | char *kwnames[] = { | |
24535 | (char *) "self", NULL | |
24536 | }; | |
24537 | ||
24538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24540 | { | |
24541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24542 | delete arg1; | |
24543 | ||
24544 | wxPyEndAllowThreads(__tstate); | |
24545 | if (PyErr_Occurred()) SWIG_fail; | |
24546 | } | |
24547 | Py_INCREF(Py_None); resultobj = Py_None; | |
24548 | return resultobj; | |
24549 | fail: | |
24550 | return NULL; | |
24551 | } | |
24552 | ||
24553 | ||
24554 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24555 | PyObject *resultobj; | |
24556 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24557 | bool result; | |
24558 | PyObject * obj0 = 0 ; | |
24559 | char *kwnames[] = { | |
24560 | (char *) "self", NULL | |
24561 | }; | |
24562 | ||
24563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
24564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24565 | { | |
24566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24567 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
24568 | ||
24569 | wxPyEndAllowThreads(__tstate); | |
24570 | if (PyErr_Occurred()) SWIG_fail; | |
24571 | } | |
24572 | resultobj = PyInt_FromLong((long)result); | |
24573 | return resultobj; | |
24574 | fail: | |
24575 | return NULL; | |
24576 | } | |
24577 | ||
24578 | ||
24579 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
24580 | PyObject *obj; | |
24581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24582 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
24583 | Py_INCREF(obj); | |
24584 | return Py_BuildValue((char *)""); | |
24585 | } | |
24586 | static PyMethodDef SwigMethods[] = { | |
24587 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24588 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
24589 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
24590 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
24591 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24592 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24593 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
24594 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
24595 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
24596 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24597 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
24598 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24599 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
24600 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
24601 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
24602 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
24603 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
24604 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
24605 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24606 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
24607 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
24608 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
24609 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
24610 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
24611 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
24612 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
24613 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
24614 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
24615 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
24616 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
24617 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
24618 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
24619 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
24620 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
24621 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
24622 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
24623 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
24624 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
24625 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
24626 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
24627 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
24628 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
24629 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24630 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24631 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24632 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
24633 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24634 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24635 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
24636 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
24637 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
24638 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24639 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
24640 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24641 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24642 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24643 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24644 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24645 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24646 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24647 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24648 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
24649 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24650 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
24651 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24652 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24653 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
39f61e25 | 24654 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24655 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
24656 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
24657 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
24658 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24659 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24660 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
24661 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
24662 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
24663 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
24664 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24665 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24666 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
24667 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
24668 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
24669 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24670 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24671 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24672 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 24673 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 24674 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 24675 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 24676 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24677 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
24678 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
24679 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
24680 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
24681 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24682 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
24683 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
24684 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
24685 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24686 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24687 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24688 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24689 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
24690 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24691 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24692 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
24693 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24694 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24695 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
24696 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
24697 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
24698 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
24699 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24700 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
24701 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
24702 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24703 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24704 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
24705 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
24706 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
24707 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
24708 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
24709 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
24710 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
24711 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
24712 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
24713 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
24714 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
24715 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
24716 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24717 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24718 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24719 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
24720 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
24721 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
24722 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
24723 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24724 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24725 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
24726 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
24727 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
24728 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24729 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24730 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
24731 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
24732 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24733 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
24734 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
7722248d | 24735 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24736 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
24737 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
24738 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
24739 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
24740 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24741 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 24742 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24743 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
24744 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
24745 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24746 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
24747 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
24748 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
24749 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
24750 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
24751 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
24752 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
24753 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
24754 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
24755 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
24756 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
24757 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24758 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24759 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
24760 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24761 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24762 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24763 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
24764 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24765 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24766 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24767 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24768 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24769 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24770 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24771 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24772 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24773 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24774 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24775 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
24776 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
24777 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
24778 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
24779 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
24780 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
24781 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
24782 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
24783 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
24784 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
24785 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
24786 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
24787 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24788 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24789 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24790 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
24791 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
24792 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
24793 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24794 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24795 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24796 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
24797 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
24798 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
24799 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
24800 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
24801 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
24802 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
24803 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
24804 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
24805 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24806 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
24807 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
24808 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 24809 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
24810 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
24811 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
24812 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24813 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24814 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
24815 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
24816 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24817 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
24818 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
24819 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
24820 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
24821 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
24822 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24823 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
24824 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
24825 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
24826 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
24827 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
24828 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
24829 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
24830 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
24831 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
24832 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24833 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24834 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
24835 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
24836 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
24837 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
24838 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
24839 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
24840 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
24841 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
24842 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
24843 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
24844 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24845 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24846 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24847 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24848 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24849 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24850 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
24851 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
24852 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
24853 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24854 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24855 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24856 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24857 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
24858 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
24859 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
24860 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
24861 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
24862 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
24863 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
24864 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
24865 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
24866 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
24867 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
24868 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
24869 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
24870 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
24871 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
24872 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
24873 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
24874 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
24875 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
24876 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
24877 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
24878 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
24879 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
24880 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
24881 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
24882 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
24883 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
24884 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
24885 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
24887 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
24888 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
24889 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
24890 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
24891 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
24892 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
24897 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
24898 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
24899 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
24900 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24901 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24902 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24905 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24906 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24907 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24908 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24909 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24910 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
24911 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
24912 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
24913 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
24914 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
24915 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
24916 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
24917 | { (char *)"new_Wave", (PyCFunction) _wrap_new_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24918 | { (char *)"new_WaveData", (PyCFunction) _wrap_new_WaveData, METH_VARARGS | METH_KEYWORDS }, | |
24919 | { (char *)"delete_Wave", (PyCFunction) _wrap_delete_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24920 | { (char *)"Wave_IsOk", (PyCFunction) _wrap_Wave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"Wave_Play", (PyCFunction) _wrap_Wave_Play, METH_VARARGS | METH_KEYWORDS }, | |
24922 | { (char *)"Wave_swigregister", Wave_swigregister, METH_VARARGS }, | |
24923 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24924 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
24925 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24926 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
24927 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24928 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24929 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24931 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24932 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
24936 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
24937 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
24938 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
24939 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24940 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24941 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24942 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
24943 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24944 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24945 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
24946 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24947 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24948 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24949 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
24950 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
24951 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
24952 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
24953 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
24954 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
24955 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
24956 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
24957 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24958 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
24959 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
24960 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24961 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
24962 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
24963 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
24964 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
24965 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
24966 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
24967 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
24968 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
24969 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
24970 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
24971 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
24972 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
24973 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
24974 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24975 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 | 24976 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24977 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
24978 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
24979 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
24980 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
24981 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
24982 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
24983 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24984 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24985 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
24986 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
24987 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
24988 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
24989 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
24990 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
24991 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
24992 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
24993 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
24994 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
24995 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
24996 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
24997 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
24998 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
24999 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
25000 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
25001 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
25002 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
25003 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25004 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
25005 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
25006 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
25007 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
25008 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
25009 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25010 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25011 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
25012 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
25013 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25014 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
25015 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
25016 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
25017 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
25018 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25019 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25020 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
25021 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
25022 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
25023 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
25024 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
25025 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
25026 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
25027 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
25028 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
25029 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
25030 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
25031 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25032 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
25033 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
25034 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
25035 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
25036 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
25037 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
25038 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
25039 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
25040 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
25041 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
25042 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
25043 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
25044 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
25045 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
25046 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
25047 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
25048 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
25049 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
25050 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
25051 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
25052 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
25053 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
25054 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
25055 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
25056 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
25057 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
25058 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
25059 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
25060 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
25061 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
25062 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
25063 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
25064 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
25065 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
25066 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
25067 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
25068 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
25069 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
25070 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
25071 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
25072 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25073 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25074 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25075 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25076 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25077 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25078 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25079 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
25080 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
25081 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
25082 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
25083 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
25084 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
25085 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
25086 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
25087 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
25088 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
25089 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
25090 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
25091 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
25092 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
25093 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
25094 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
25095 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
25097 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
25098 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
25099 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
25100 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25101 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
25102 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
25103 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25107 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
25108 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
25109 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
25111 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
25113 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
25114 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
25115 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
25116 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
25119 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25122 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
25123 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
25124 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
25125 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
25126 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
25127 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
25128 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
25129 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
25130 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
25131 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
25132 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
25133 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
25134 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
25135 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
25137 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
25138 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
25141 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
25143 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
25146 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
25149 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25150 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25151 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25152 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25153 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25154 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25155 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25156 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25157 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25158 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25159 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
25160 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25161 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25162 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25163 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25164 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25165 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25166 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25167 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25168 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
25170 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
25171 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
25172 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25173 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25174 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
25175 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
25176 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
25177 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25178 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
25179 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
25180 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25182 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
25184 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
25186 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
25187 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
25188 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25189 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25190 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25192 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
25195 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
25196 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
25197 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
25198 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25200 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25201 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
25202 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
25203 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25204 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25205 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
25207 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25208 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25209 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25211 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25212 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25213 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25215 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25217 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25218 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25219 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25220 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25221 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
25222 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
25223 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
25224 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
25225 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
25226 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25227 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25228 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25229 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
25230 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
25231 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
25232 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
25233 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
25234 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
25235 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
25236 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
25237 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
25238 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
25239 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25240 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
25241 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
25242 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
25243 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25244 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
25245 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25246 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25247 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25248 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
25249 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25250 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25251 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
25252 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
25253 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
25254 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
25255 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25256 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
25257 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
25258 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
25259 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
25260 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25261 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25262 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
25263 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25264 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25265 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25266 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
25267 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25268 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25269 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
25270 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25271 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
25272 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
25273 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25274 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
25275 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25276 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
25277 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25278 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
25279 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25280 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
25281 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
25282 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
25283 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25284 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
25285 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
25286 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25287 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25288 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25289 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25290 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25291 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
25292 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
25293 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
25294 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
196addbf | 25295 | { (char *)"new_PyDropTarget", (PyCFunction) _wrap_new_PyDropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
25296 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
25297 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25298 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25299 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25300 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25301 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25302 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25303 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25304 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25305 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
25306 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25307 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25308 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25309 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25310 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25311 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25312 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25313 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
25314 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25315 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25316 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25317 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25318 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25319 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25320 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25321 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
25322 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25323 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25324 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
25325 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
25326 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
25327 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
25328 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25329 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25330 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25331 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25332 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25333 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
25334 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
25335 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25336 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25337 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
25338 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
25339 | { NULL, NULL } | |
25340 | }; | |
25341 | ||
25342 | ||
25343 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25344 | ||
25345 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25346 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25347 | } | |
25348 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25349 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25350 | } | |
25351 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25352 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25353 | } | |
25354 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25355 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25356 | } | |
25357 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25358 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25359 | } | |
25360 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25361 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25362 | } | |
25363 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
25364 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
25365 | } | |
25366 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25367 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25368 | } | |
25369 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25370 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25371 | } | |
25372 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25373 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25374 | } | |
25375 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25376 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25377 | } | |
25378 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
25379 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
25380 | } | |
25381 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25382 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25383 | } | |
25384 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25385 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25386 | } | |
25387 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25388 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25389 | } | |
25390 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25391 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25392 | } | |
25393 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25394 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25395 | } | |
25396 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25397 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25398 | } | |
25399 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25400 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25401 | } | |
25402 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25403 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25404 | } | |
25405 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25406 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25407 | } | |
25408 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25409 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25410 | } | |
25411 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25412 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25413 | } | |
25414 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25415 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25416 | } | |
25417 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25418 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25419 | } | |
25420 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25421 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25422 | } | |
25423 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25424 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25425 | } | |
25426 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25427 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25428 | } | |
25429 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25430 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25431 | } | |
25432 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25433 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25434 | } | |
25435 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
25436 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
25437 | } | |
25438 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25439 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25440 | } | |
25441 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25442 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25443 | } | |
25444 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25445 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25446 | } | |
25447 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25448 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25449 | } | |
25450 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25451 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25452 | } | |
25453 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25454 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25455 | } | |
25456 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25457 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25458 | } | |
25459 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
25460 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
25461 | } | |
25462 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
25463 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
25464 | } | |
25465 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
25466 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25467 | } | |
25468 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
25469 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25470 | } | |
25471 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25472 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
25473 | } | |
25474 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25475 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25476 | } | |
25477 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
25478 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
25479 | } | |
25480 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
25481 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25482 | } | |
25483 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
25484 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25485 | } | |
25486 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25487 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25488 | } | |
25489 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25490 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25491 | } | |
25492 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
25493 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25494 | } | |
25495 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
25496 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25497 | } | |
25498 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
25499 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25500 | } | |
25501 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
25502 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25503 | } | |
25504 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
25505 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25506 | } | |
25507 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
25508 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25509 | } | |
25510 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25511 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25512 | } | |
25513 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25514 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25515 | } | |
25516 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25517 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25518 | } | |
25519 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25520 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25521 | } | |
25522 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25523 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25524 | } | |
25525 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25526 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25527 | } | |
25528 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25529 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25530 | } | |
25531 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25532 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25533 | } | |
25534 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25535 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25536 | } | |
25537 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25538 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25539 | } | |
25540 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25541 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25542 | } | |
25543 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
25544 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
25545 | } | |
25546 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25547 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25548 | } | |
25549 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25550 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25551 | } | |
25552 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25553 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25554 | } | |
25555 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25556 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25557 | } | |
25558 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
25559 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
25560 | } | |
25561 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
25562 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
25563 | } | |
25564 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25565 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25566 | } | |
25567 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25568 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25569 | } | |
25570 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25571 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25572 | } | |
25573 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25574 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25575 | } | |
25576 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25577 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25578 | } | |
25579 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25580 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25581 | } | |
25582 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25583 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25584 | } | |
25585 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25586 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25587 | } | |
25588 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25589 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25590 | } | |
25591 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
25592 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
25593 | } | |
25594 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25595 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25596 | } | |
25597 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25598 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25599 | } | |
25600 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25601 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25602 | } | |
25603 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25604 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25605 | } | |
25606 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25607 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25608 | } | |
25609 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25610 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25611 | } | |
25612 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25613 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25614 | } | |
25615 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25616 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25617 | } | |
25618 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25619 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25620 | } | |
25621 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25622 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25623 | } | |
25624 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25625 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25626 | } | |
25627 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25628 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25629 | } | |
25630 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25631 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25632 | } | |
25633 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
25634 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
25635 | } | |
25636 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25637 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25638 | } | |
25639 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
25640 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
25641 | } | |
25642 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25643 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25644 | } | |
25645 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25646 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25647 | } | |
25648 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25649 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25650 | } | |
25651 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25652 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25653 | } | |
25654 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
25655 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
25656 | } | |
25657 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25658 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25659 | } | |
25660 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25661 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25662 | } | |
25663 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25664 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25665 | } | |
25666 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25667 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25668 | } | |
25669 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25670 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25671 | } | |
25672 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25673 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25674 | } | |
25675 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25676 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25677 | } | |
25678 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25679 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25680 | } | |
25681 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25682 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25683 | } | |
25684 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25685 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25686 | } | |
25687 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25688 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25689 | } | |
25690 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25691 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25692 | } | |
25693 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25694 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25695 | } | |
25696 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25697 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25698 | } | |
25699 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25700 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25701 | } | |
25702 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25703 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25704 | } | |
25705 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25706 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25707 | } | |
25708 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25709 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25710 | } | |
25711 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25712 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25713 | } | |
25714 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25715 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25716 | } | |
25717 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25718 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25719 | } | |
25720 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25721 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25722 | } | |
1e0c8722 RD |
25723 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
25724 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
25725 | } | |
d14a1e28 RD |
25726 | static void *_p_wxImageTo_p_wxObject(void *x) { |
25727 | return (void *)((wxObject *) ((wxImage *) x)); | |
25728 | } | |
25729 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25730 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25731 | } | |
25732 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
25733 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
25734 | } | |
25735 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
25736 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
25737 | } | |
25738 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
25739 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25740 | } | |
25741 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
25742 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25743 | } | |
25744 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
25745 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
25746 | } | |
25747 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
25748 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
25749 | } | |
25750 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
25751 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
25752 | } | |
25753 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
25754 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
25755 | } | |
25756 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
25757 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
25758 | } | |
25759 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
25760 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
25761 | } | |
25762 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
25763 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25764 | } | |
25765 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
25766 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
25767 | } | |
25768 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
25769 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
25770 | } | |
25771 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
25772 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
25773 | } | |
25774 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
25775 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
25776 | } | |
25777 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
25778 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
25779 | } | |
25780 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
25781 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
25782 | } | |
25783 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
25784 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25785 | } | |
25786 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
25787 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
25788 | } | |
25789 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
25790 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
25791 | } | |
25792 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
25793 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
25794 | } | |
25795 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
25796 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25797 | } | |
25798 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
25799 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
25800 | } | |
25801 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
25802 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25803 | } | |
25804 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
25805 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
25806 | } | |
25807 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
25808 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
25809 | } | |
25810 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
25811 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
25812 | } | |
25813 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
25814 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
25815 | } | |
25816 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
25817 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
25818 | } | |
25819 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
25820 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
25821 | } | |
25822 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
25823 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
25824 | } | |
25825 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
25826 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
25827 | } | |
25828 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
25829 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
25830 | } | |
25831 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
25832 | return (void *)((wxWindow *) ((wxControl *) x)); | |
25833 | } | |
25834 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
25835 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
25836 | } | |
25837 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
25838 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
25839 | } | |
25840 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
25841 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
25842 | } | |
25843 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
25844 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
25845 | } | |
25846 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}}; | |
25847 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}}; | |
25848 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}}; | |
25849 | 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}}; | |
25850 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}}; | |
25851 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
25852 | 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}}; | |
25853 | 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}}; | |
25854 | static swig_type_info _swigt__p_wxWave[] = {{"_p_wxWave", 0, "wxWave *", 0},{"_p_wxWave"},{0}}; | |
25855 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}}; | |
25856 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}}; | |
25857 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
25858 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}}; | |
25859 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}}; | |
25860 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
25861 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
25862 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
25863 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}}; | |
25864 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}}; | |
25865 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
25866 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}}; | |
25867 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
25868 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}}; | |
25869 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}}; | |
25870 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
25871 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}}; | |
25872 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}}; | |
25873 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}}; | |
25874 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}}; | |
25875 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}}; | |
25876 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}}; | |
25877 | 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}}; | |
25878 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}}; | |
25879 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}}; | |
25880 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}}; | |
25881 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}}; | |
25882 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}}; | |
25883 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}}; | |
25884 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
25885 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}}; | |
25886 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
25887 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}}; | |
25888 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}}; | |
25889 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}}; | |
25890 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}}; | |
25891 | 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}}; | |
25892 | 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}}; | |
25893 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
25894 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}}; | |
25895 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}}; | |
25896 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
25897 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}}; | |
25898 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}}; | |
25899 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}}; | |
25900 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}}; | |
25901 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}}; | |
25902 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}}; | |
25903 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}}; | |
25904 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
25905 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}}; | |
25906 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
1e0c8722 | 25907 | 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 |
25908 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; |
25909 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
25910 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}}; | |
25911 | 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}}; | |
25912 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
25913 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}}; | |
25914 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
25915 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}}; | |
25916 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}}; | |
25917 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}}; | |
25918 | 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}}; | |
25919 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}}; | |
25920 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}}; | |
25921 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}}; | |
25922 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}}; | |
25923 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}}; | |
25924 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
25925 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}}; | |
25926 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}}; | |
25927 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}}; | |
25928 | ||
25929 | static swig_type_info *swig_types_initial[] = { | |
25930 | _swigt__p_wxLogChain, | |
25931 | _swigt__p_wxMutexGuiLocker, | |
25932 | _swigt__p_wxFileHistory, | |
25933 | _swigt__p_wxLog, | |
25934 | _swigt__p_wxDateTime__TimeZone, | |
25935 | _swigt__p_wxMenu, | |
25936 | _swigt__p_wxEvent, | |
25937 | _swigt__p_wxConfigBase, | |
25938 | _swigt__p_wxWave, | |
25939 | _swigt__p_wxFileType, | |
25940 | _swigt__p_wxLogGui, | |
25941 | _swigt__p_wxFont, | |
25942 | _swigt__p_wxDataFormat, | |
25943 | _swigt__p_wxTimerEvent, | |
25944 | _swigt__p_wxCaret, | |
25945 | _swigt__p_int, | |
25946 | _swigt__p_wxSize, | |
25947 | _swigt__p_wxClipboard, | |
25948 | _swigt__p_wxStopWatch, | |
25949 | _swigt__p_wxDC, | |
25950 | _swigt__p_wxClipboardLocker, | |
25951 | _swigt__p_wxIcon, | |
25952 | _swigt__p_wxLogStderr, | |
25953 | _swigt__p_wxLogTextCtrl, | |
25954 | _swigt__p_wxTextCtrl, | |
25955 | _swigt__p_wxBusyCursor, | |
25956 | _swigt__p_wxFileDataObject, | |
25957 | _swigt__p_wxPyBitmapDataObject, | |
25958 | _swigt__p_wxPyTextDataObject, | |
25959 | _swigt__p_wxBitmapDataObject, | |
25960 | _swigt__p_wxTextDataObject, | |
25961 | _swigt__p_wxDataObject, | |
25962 | _swigt__p_wxCustomDataObject, | |
25963 | _swigt__p_wxURLDataObject, | |
25964 | _swigt__p_wxMetafileDataObject, | |
25965 | _swigt__p_wxTimerRunner, | |
25966 | _swigt__p_wxLogWindow, | |
25967 | _swigt__p_wxTimeSpan, | |
25968 | _swigt__p_wxArrayString, | |
25969 | _swigt__p_wxWindowDisabler, | |
25970 | _swigt__p_wxToolTip, | |
25971 | _swigt__p_wxDataObjectComposite, | |
25972 | _swigt__p_wxFileConfig, | |
25973 | _swigt__p_wxSystemSettings, | |
25974 | _swigt__p_wxPyDataObjectSimple, | |
25975 | _swigt__p_wxDataObjectSimple, | |
25976 | _swigt__p_wxEvtHandler, | |
25977 | _swigt__p_wxRect, | |
25978 | _swigt__p_wxSingleInstanceChecker, | |
25979 | _swigt__p_wxFileTypeInfo, | |
25980 | _swigt__p_wxFrame, | |
25981 | _swigt__p_wxTimer, | |
25982 | _swigt__p_wxMimeTypesManager, | |
25983 | _swigt__p_wxPyArtProvider, | |
25984 | _swigt__p_wxPyTipProvider, | |
25985 | _swigt__p_wxTipProvider, | |
25986 | _swigt__p_wxJoystick, | |
25987 | _swigt__p_wxSystemOptions, | |
25988 | _swigt__p_wxPoint, | |
25989 | _swigt__p_wxJoystickEvent, | |
25990 | _swigt__p_wxCursor, | |
25991 | _swigt__p_wxObject, | |
25992 | _swigt__p_wxOutputStream, | |
25993 | _swigt__p_wxDateTime, | |
25994 | _swigt__p_wxPyDropSource, | |
25995 | _swigt__p_wxWindow, | |
25996 | _swigt__p_wxString, | |
25997 | _swigt__p_wxPyProcess, | |
25998 | _swigt__p_wxBitmap, | |
25999 | _swigt__p_wxConfig, | |
26000 | _swigt__p_wxChar, | |
26001 | _swigt__p_wxBusyInfo, | |
26002 | _swigt__p_wxPyDropTarget, | |
26003 | _swigt__p_wxPyTextDropTarget, | |
26004 | _swigt__p_wxPyFileDropTarget, | |
26005 | _swigt__p_wxProcessEvent, | |
26006 | _swigt__p_wxPyLog, | |
26007 | _swigt__p_wxLogNull, | |
26008 | _swigt__p_wxColour, | |
26009 | _swigt__p_wxConfigPathChanger, | |
26010 | _swigt__p_wxPyTimer, | |
26011 | _swigt__p_wxDateSpan, | |
26012 | 0 | |
26013 | }; | |
26014 | ||
26015 | ||
26016 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
26017 | ||
26018 | static swig_const_info swig_const_table[] = { | |
26019 | { SWIG_PY_INT, (char *)"SYS_OEM_FIXED_FONT", (long) wxSYS_OEM_FIXED_FONT, 0, 0, 0}, | |
26020 | { SWIG_PY_INT, (char *)"SYS_ANSI_FIXED_FONT", (long) wxSYS_ANSI_FIXED_FONT, 0, 0, 0}, | |
26021 | { SWIG_PY_INT, (char *)"SYS_ANSI_VAR_FONT", (long) wxSYS_ANSI_VAR_FONT, 0, 0, 0}, | |
26022 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FONT", (long) wxSYS_SYSTEM_FONT, 0, 0, 0}, | |
26023 | { SWIG_PY_INT, (char *)"SYS_DEVICE_DEFAULT_FONT", (long) wxSYS_DEVICE_DEFAULT_FONT, 0, 0, 0}, | |
26024 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_PALETTE", (long) wxSYS_DEFAULT_PALETTE, 0, 0, 0}, | |
26025 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FIXED_FONT", (long) wxSYS_SYSTEM_FIXED_FONT, 0, 0, 0}, | |
26026 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_GUI_FONT", (long) wxSYS_DEFAULT_GUI_FONT, 0, 0, 0}, | |
26027 | { SWIG_PY_INT, (char *)"SYS_ICONTITLE_FONT", (long) wxSYS_ICONTITLE_FONT, 0, 0, 0}, | |
26028 | { SWIG_PY_INT, (char *)"SYS_COLOUR_SCROLLBAR", (long) wxSYS_COLOUR_SCROLLBAR, 0, 0, 0}, | |
26029 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BACKGROUND", (long) wxSYS_COLOUR_BACKGROUND, 0, 0, 0}, | |
26030 | { SWIG_PY_INT, (char *)"SYS_COLOUR_DESKTOP", (long) wxSYS_COLOUR_DESKTOP, 0, 0, 0}, | |
26031 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVECAPTION", (long) wxSYS_COLOUR_ACTIVECAPTION, 0, 0, 0}, | |
26032 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTION", (long) wxSYS_COLOUR_INACTIVECAPTION, 0, 0, 0}, | |
26033 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENU", (long) wxSYS_COLOUR_MENU, 0, 0, 0}, | |
26034 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOW", (long) wxSYS_COLOUR_WINDOW, 0, 0, 0}, | |
26035 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWFRAME", (long) wxSYS_COLOUR_WINDOWFRAME, 0, 0, 0}, | |
26036 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUTEXT", (long) wxSYS_COLOUR_MENUTEXT, 0, 0, 0}, | |
26037 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWTEXT", (long) wxSYS_COLOUR_WINDOWTEXT, 0, 0, 0}, | |
26038 | { SWIG_PY_INT, (char *)"SYS_COLOUR_CAPTIONTEXT", (long) wxSYS_COLOUR_CAPTIONTEXT, 0, 0, 0}, | |
26039 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVEBORDER", (long) wxSYS_COLOUR_ACTIVEBORDER, 0, 0, 0}, | |
26040 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVEBORDER", (long) wxSYS_COLOUR_INACTIVEBORDER, 0, 0, 0}, | |
26041 | { SWIG_PY_INT, (char *)"SYS_COLOUR_APPWORKSPACE", (long) wxSYS_COLOUR_APPWORKSPACE, 0, 0, 0}, | |
26042 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHT", (long) wxSYS_COLOUR_HIGHLIGHT, 0, 0, 0}, | |
26043 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHTTEXT", (long) wxSYS_COLOUR_HIGHLIGHTTEXT, 0, 0, 0}, | |
26044 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNFACE", (long) wxSYS_COLOUR_BTNFACE, 0, 0, 0}, | |
26045 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DFACE", (long) wxSYS_COLOUR_3DFACE, 0, 0, 0}, | |
26046 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNSHADOW", (long) wxSYS_COLOUR_BTNSHADOW, 0, 0, 0}, | |
26047 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DSHADOW", (long) wxSYS_COLOUR_3DSHADOW, 0, 0, 0}, | |
26048 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRAYTEXT", (long) wxSYS_COLOUR_GRAYTEXT, 0, 0, 0}, | |
26049 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNTEXT", (long) wxSYS_COLOUR_BTNTEXT, 0, 0, 0}, | |
26050 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTIONTEXT", (long) wxSYS_COLOUR_INACTIVECAPTIONTEXT, 0, 0, 0}, | |
26051 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHIGHLIGHT", (long) wxSYS_COLOUR_BTNHIGHLIGHT, 0, 0, 0}, | |
26052 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHILIGHT", (long) wxSYS_COLOUR_BTNHILIGHT, 0, 0, 0}, | |
26053 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHIGHLIGHT", (long) wxSYS_COLOUR_3DHIGHLIGHT, 0, 0, 0}, | |
26054 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHILIGHT", (long) wxSYS_COLOUR_3DHILIGHT, 0, 0, 0}, | |
26055 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DDKSHADOW", (long) wxSYS_COLOUR_3DDKSHADOW, 0, 0, 0}, | |
26056 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DLIGHT", (long) wxSYS_COLOUR_3DLIGHT, 0, 0, 0}, | |
26057 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOTEXT", (long) wxSYS_COLOUR_INFOTEXT, 0, 0, 0}, | |
26058 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOBK", (long) wxSYS_COLOUR_INFOBK, 0, 0, 0}, | |
26059 | { SWIG_PY_INT, (char *)"SYS_COLOUR_LISTBOX", (long) wxSYS_COLOUR_LISTBOX, 0, 0, 0}, | |
26060 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HOTLIGHT", (long) wxSYS_COLOUR_HOTLIGHT, 0, 0, 0}, | |
26061 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTACTIVECAPTION, 0, 0, 0}, | |
26062 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTINACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION, 0, 0, 0}, | |
26063 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUHILIGHT", (long) wxSYS_COLOUR_MENUHILIGHT, 0, 0, 0}, | |
26064 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUBAR", (long) wxSYS_COLOUR_MENUBAR, 0, 0, 0}, | |
26065 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MAX", (long) wxSYS_COLOUR_MAX, 0, 0, 0}, | |
26066 | { SWIG_PY_INT, (char *)"SYS_MOUSE_BUTTONS", (long) wxSYS_MOUSE_BUTTONS, 0, 0, 0}, | |
26067 | { SWIG_PY_INT, (char *)"SYS_BORDER_X", (long) wxSYS_BORDER_X, 0, 0, 0}, | |
26068 | { SWIG_PY_INT, (char *)"SYS_BORDER_Y", (long) wxSYS_BORDER_Y, 0, 0, 0}, | |
26069 | { SWIG_PY_INT, (char *)"SYS_CURSOR_X", (long) wxSYS_CURSOR_X, 0, 0, 0}, | |
26070 | { SWIG_PY_INT, (char *)"SYS_CURSOR_Y", (long) wxSYS_CURSOR_Y, 0, 0, 0}, | |
26071 | { SWIG_PY_INT, (char *)"SYS_DCLICK_X", (long) wxSYS_DCLICK_X, 0, 0, 0}, | |
26072 | { SWIG_PY_INT, (char *)"SYS_DCLICK_Y", (long) wxSYS_DCLICK_Y, 0, 0, 0}, | |
26073 | { SWIG_PY_INT, (char *)"SYS_DRAG_X", (long) wxSYS_DRAG_X, 0, 0, 0}, | |
26074 | { SWIG_PY_INT, (char *)"SYS_DRAG_Y", (long) wxSYS_DRAG_Y, 0, 0, 0}, | |
26075 | { SWIG_PY_INT, (char *)"SYS_EDGE_X", (long) wxSYS_EDGE_X, 0, 0, 0}, | |
26076 | { SWIG_PY_INT, (char *)"SYS_EDGE_Y", (long) wxSYS_EDGE_Y, 0, 0, 0}, | |
26077 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_X", (long) wxSYS_HSCROLL_ARROW_X, 0, 0, 0}, | |
26078 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_Y", (long) wxSYS_HSCROLL_ARROW_Y, 0, 0, 0}, | |
26079 | { SWIG_PY_INT, (char *)"SYS_HTHUMB_X", (long) wxSYS_HTHUMB_X, 0, 0, 0}, | |
26080 | { SWIG_PY_INT, (char *)"SYS_ICON_X", (long) wxSYS_ICON_X, 0, 0, 0}, | |
26081 | { SWIG_PY_INT, (char *)"SYS_ICON_Y", (long) wxSYS_ICON_Y, 0, 0, 0}, | |
26082 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_X", (long) wxSYS_ICONSPACING_X, 0, 0, 0}, | |
26083 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_Y", (long) wxSYS_ICONSPACING_Y, 0, 0, 0}, | |
26084 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_X", (long) wxSYS_WINDOWMIN_X, 0, 0, 0}, | |
26085 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_Y", (long) wxSYS_WINDOWMIN_Y, 0, 0, 0}, | |
26086 | { SWIG_PY_INT, (char *)"SYS_SCREEN_X", (long) wxSYS_SCREEN_X, 0, 0, 0}, | |
26087 | { SWIG_PY_INT, (char *)"SYS_SCREEN_Y", (long) wxSYS_SCREEN_Y, 0, 0, 0}, | |
26088 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_X", (long) wxSYS_FRAMESIZE_X, 0, 0, 0}, | |
26089 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_Y", (long) wxSYS_FRAMESIZE_Y, 0, 0, 0}, | |
26090 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_X", (long) wxSYS_SMALLICON_X, 0, 0, 0}, | |
26091 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_Y", (long) wxSYS_SMALLICON_Y, 0, 0, 0}, | |
26092 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_Y", (long) wxSYS_HSCROLL_Y, 0, 0, 0}, | |
26093 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_X", (long) wxSYS_VSCROLL_X, 0, 0, 0}, | |
26094 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_X", (long) wxSYS_VSCROLL_ARROW_X, 0, 0, 0}, | |
26095 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_Y", (long) wxSYS_VSCROLL_ARROW_Y, 0, 0, 0}, | |
26096 | { SWIG_PY_INT, (char *)"SYS_VTHUMB_Y", (long) wxSYS_VTHUMB_Y, 0, 0, 0}, | |
26097 | { SWIG_PY_INT, (char *)"SYS_CAPTION_Y", (long) wxSYS_CAPTION_Y, 0, 0, 0}, | |
26098 | { SWIG_PY_INT, (char *)"SYS_MENU_Y", (long) wxSYS_MENU_Y, 0, 0, 0}, | |
26099 | { SWIG_PY_INT, (char *)"SYS_NETWORK_PRESENT", (long) wxSYS_NETWORK_PRESENT, 0, 0, 0}, | |
26100 | { SWIG_PY_INT, (char *)"SYS_PENWINDOWS_PRESENT", (long) wxSYS_PENWINDOWS_PRESENT, 0, 0, 0}, | |
26101 | { SWIG_PY_INT, (char *)"SYS_SHOW_SOUNDS", (long) wxSYS_SHOW_SOUNDS, 0, 0, 0}, | |
26102 | { SWIG_PY_INT, (char *)"SYS_SWAP_BUTTONS", (long) wxSYS_SWAP_BUTTONS, 0, 0, 0}, | |
26103 | { SWIG_PY_INT, (char *)"SYS_CAN_DRAW_FRAME_DECORATIONS", (long) wxSYS_CAN_DRAW_FRAME_DECORATIONS, 0, 0, 0}, | |
26104 | { SWIG_PY_INT, (char *)"SYS_CAN_ICONIZE_FRAME", (long) wxSYS_CAN_ICONIZE_FRAME, 0, 0, 0}, | |
26105 | { SWIG_PY_INT, (char *)"SYS_SCREEN_NONE", (long) wxSYS_SCREEN_NONE, 0, 0, 0}, | |
26106 | { SWIG_PY_INT, (char *)"SYS_SCREEN_TINY", (long) wxSYS_SCREEN_TINY, 0, 0, 0}, | |
26107 | { SWIG_PY_INT, (char *)"SYS_SCREEN_PDA", (long) wxSYS_SCREEN_PDA, 0, 0, 0}, | |
26108 | { SWIG_PY_INT, (char *)"SYS_SCREEN_SMALL", (long) wxSYS_SCREEN_SMALL, 0, 0, 0}, | |
26109 | { SWIG_PY_INT, (char *)"SYS_SCREEN_DESKTOP", (long) wxSYS_SCREEN_DESKTOP, 0, 0, 0}, | |
26110 | { SWIG_PY_INT, (char *)"SHUTDOWN_POWEROFF", (long) wxSHUTDOWN_POWEROFF, 0, 0, 0}, | |
26111 | { SWIG_PY_INT, (char *)"SHUTDOWN_REBOOT", (long) wxSHUTDOWN_REBOOT, 0, 0, 0}, | |
26112 | { SWIG_PY_INT, (char *)"TIMER_CONTINUOUS", (long) wxTIMER_CONTINUOUS, 0, 0, 0}, | |
26113 | { SWIG_PY_INT, (char *)"TIMER_ONE_SHOT", (long) wxTIMER_ONE_SHOT, 0, 0, 0}, | |
26114 | { SWIG_PY_INT, (char *)"wxEVT_TIMER", (long) wxEVT_TIMER, 0, 0, 0}, | |
26115 | { SWIG_PY_INT, (char *)"LOG_FatalError", (long) wxLOG_FatalError, 0, 0, 0}, | |
26116 | { SWIG_PY_INT, (char *)"LOG_Error", (long) wxLOG_Error, 0, 0, 0}, | |
26117 | { SWIG_PY_INT, (char *)"LOG_Warning", (long) wxLOG_Warning, 0, 0, 0}, | |
26118 | { SWIG_PY_INT, (char *)"LOG_Message", (long) wxLOG_Message, 0, 0, 0}, | |
26119 | { SWIG_PY_INT, (char *)"LOG_Status", (long) wxLOG_Status, 0, 0, 0}, | |
26120 | { SWIG_PY_INT, (char *)"LOG_Info", (long) wxLOG_Info, 0, 0, 0}, | |
26121 | { SWIG_PY_INT, (char *)"LOG_Debug", (long) wxLOG_Debug, 0, 0, 0}, | |
26122 | { SWIG_PY_INT, (char *)"LOG_Trace", (long) wxLOG_Trace, 0, 0, 0}, | |
26123 | { SWIG_PY_INT, (char *)"LOG_Progress", (long) wxLOG_Progress, 0, 0, 0}, | |
26124 | { SWIG_PY_INT, (char *)"LOG_User", (long) wxLOG_User, 0, 0, 0}, | |
26125 | { SWIG_PY_INT, (char *)"LOG_Max", (long) wxLOG_Max, 0, 0, 0}, | |
26126 | { SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0}, | |
26127 | { SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0}, | |
26128 | { SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0}, | |
26129 | { SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0}, | |
26130 | { SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0}, | |
26131 | { SWIG_PY_INT, (char *)"TraceMemAlloc", (long) 0x0001, 0, 0, 0}, | |
26132 | { SWIG_PY_INT, (char *)"TraceMessages", (long) 0x0002, 0, 0, 0}, | |
26133 | { SWIG_PY_INT, (char *)"TraceResAlloc", (long) 0x0004, 0, 0, 0}, | |
26134 | { SWIG_PY_INT, (char *)"TraceRefCount", (long) 0x0008, 0, 0, 0}, | |
26135 | { SWIG_PY_INT, (char *)"TraceOleCalls", (long) 0x0100, 0, 0, 0}, | |
26136 | { SWIG_PY_INT, (char *)"PROCESS_DEFAULT", (long) wxPROCESS_DEFAULT, 0, 0, 0}, | |
26137 | { SWIG_PY_INT, (char *)"PROCESS_REDIRECT", (long) wxPROCESS_REDIRECT, 0, 0, 0}, | |
26138 | { SWIG_PY_INT, (char *)"KILL_OK", (long) wxKILL_OK, 0, 0, 0}, | |
26139 | { SWIG_PY_INT, (char *)"KILL_BAD_SIGNAL", (long) wxKILL_BAD_SIGNAL, 0, 0, 0}, | |
26140 | { SWIG_PY_INT, (char *)"KILL_ACCESS_DENIED", (long) wxKILL_ACCESS_DENIED, 0, 0, 0}, | |
26141 | { SWIG_PY_INT, (char *)"KILL_NO_PROCESS", (long) wxKILL_NO_PROCESS, 0, 0, 0}, | |
26142 | { SWIG_PY_INT, (char *)"KILL_ERROR", (long) wxKILL_ERROR, 0, 0, 0}, | |
26143 | { SWIG_PY_INT, (char *)"SIGNONE", (long) wxSIGNONE, 0, 0, 0}, | |
26144 | { SWIG_PY_INT, (char *)"SIGHUP", (long) wxSIGHUP, 0, 0, 0}, | |
26145 | { SWIG_PY_INT, (char *)"SIGINT", (long) wxSIGINT, 0, 0, 0}, | |
26146 | { SWIG_PY_INT, (char *)"SIGQUIT", (long) wxSIGQUIT, 0, 0, 0}, | |
26147 | { SWIG_PY_INT, (char *)"SIGILL", (long) wxSIGILL, 0, 0, 0}, | |
26148 | { SWIG_PY_INT, (char *)"SIGTRAP", (long) wxSIGTRAP, 0, 0, 0}, | |
26149 | { SWIG_PY_INT, (char *)"SIGABRT", (long) wxSIGABRT, 0, 0, 0}, | |
26150 | { SWIG_PY_INT, (char *)"SIGIOT", (long) wxSIGIOT, 0, 0, 0}, | |
26151 | { SWIG_PY_INT, (char *)"SIGEMT", (long) wxSIGEMT, 0, 0, 0}, | |
26152 | { SWIG_PY_INT, (char *)"SIGFPE", (long) wxSIGFPE, 0, 0, 0}, | |
26153 | { SWIG_PY_INT, (char *)"SIGKILL", (long) wxSIGKILL, 0, 0, 0}, | |
26154 | { SWIG_PY_INT, (char *)"SIGBUS", (long) wxSIGBUS, 0, 0, 0}, | |
26155 | { SWIG_PY_INT, (char *)"SIGSEGV", (long) wxSIGSEGV, 0, 0, 0}, | |
26156 | { SWIG_PY_INT, (char *)"SIGSYS", (long) wxSIGSYS, 0, 0, 0}, | |
26157 | { SWIG_PY_INT, (char *)"SIGPIPE", (long) wxSIGPIPE, 0, 0, 0}, | |
26158 | { SWIG_PY_INT, (char *)"SIGALRM", (long) wxSIGALRM, 0, 0, 0}, | |
26159 | { SWIG_PY_INT, (char *)"SIGTERM", (long) wxSIGTERM, 0, 0, 0}, | |
26160 | { SWIG_PY_INT, (char *)"wxEVT_END_PROCESS", (long) wxEVT_END_PROCESS, 0, 0, 0}, | |
26161 | { SWIG_PY_INT, (char *)"EXEC_ASYNC", (long) wxEXEC_ASYNC, 0, 0, 0}, | |
26162 | { SWIG_PY_INT, (char *)"EXEC_SYNC", (long) wxEXEC_SYNC, 0, 0, 0}, | |
26163 | { SWIG_PY_INT, (char *)"EXEC_NOHIDE", (long) wxEXEC_NOHIDE, 0, 0, 0}, | |
26164 | { SWIG_PY_INT, (char *)"EXEC_MAKE_GROUP_LEADER", (long) wxEXEC_MAKE_GROUP_LEADER, 0, 0, 0}, | |
26165 | { SWIG_PY_INT, (char *)"JOYSTICK1", (long) wxJOYSTICK1, 0, 0, 0}, | |
26166 | { SWIG_PY_INT, (char *)"JOYSTICK2", (long) wxJOYSTICK2, 0, 0, 0}, | |
26167 | { SWIG_PY_INT, (char *)"JOY_BUTTON_ANY", (long) wxJOY_BUTTON_ANY, 0, 0, 0}, | |
26168 | { SWIG_PY_INT, (char *)"JOY_BUTTON1", (long) wxJOY_BUTTON1, 0, 0, 0}, | |
26169 | { SWIG_PY_INT, (char *)"JOY_BUTTON2", (long) wxJOY_BUTTON2, 0, 0, 0}, | |
26170 | { SWIG_PY_INT, (char *)"JOY_BUTTON3", (long) wxJOY_BUTTON3, 0, 0, 0}, | |
26171 | { SWIG_PY_INT, (char *)"JOY_BUTTON4", (long) wxJOY_BUTTON4, 0, 0, 0}, | |
26172 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_DOWN", (long) wxEVT_JOY_BUTTON_DOWN, 0, 0, 0}, | |
26173 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_UP", (long) wxEVT_JOY_BUTTON_UP, 0, 0, 0}, | |
26174 | { SWIG_PY_INT, (char *)"wxEVT_JOY_MOVE", (long) wxEVT_JOY_MOVE, 0, 0, 0}, | |
26175 | { SWIG_PY_INT, (char *)"wxEVT_JOY_ZMOVE", (long) wxEVT_JOY_ZMOVE, 0, 0, 0}, | |
26176 | { SWIG_PY_INT, (char *)"MAILCAP_STANDARD", (long) wxMAILCAP_STANDARD, 0, 0, 0}, | |
26177 | { SWIG_PY_INT, (char *)"MAILCAP_NETSCAPE", (long) wxMAILCAP_NETSCAPE, 0, 0, 0}, | |
26178 | { SWIG_PY_INT, (char *)"MAILCAP_KDE", (long) wxMAILCAP_KDE, 0, 0, 0}, | |
26179 | { SWIG_PY_INT, (char *)"MAILCAP_GNOME", (long) wxMAILCAP_GNOME, 0, 0, 0}, | |
26180 | { SWIG_PY_INT, (char *)"MAILCAP_ALL", (long) wxMAILCAP_ALL, 0, 0, 0}, | |
26181 | { SWIG_PY_INT, (char *)"CONFIG_USE_LOCAL_FILE", (long) wxCONFIG_USE_LOCAL_FILE, 0, 0, 0}, | |
26182 | { SWIG_PY_INT, (char *)"CONFIG_USE_GLOBAL_FILE", (long) wxCONFIG_USE_GLOBAL_FILE, 0, 0, 0}, | |
26183 | { SWIG_PY_INT, (char *)"CONFIG_USE_RELATIVE_PATH", (long) wxCONFIG_USE_RELATIVE_PATH, 0, 0, 0}, | |
26184 | { SWIG_PY_INT, (char *)"CONFIG_USE_NO_ESCAPE_CHARACTERS", (long) wxCONFIG_USE_NO_ESCAPE_CHARACTERS, 0, 0, 0}, | |
26185 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Unknown", (long) wxConfigBase::Type_Unknown, 0, 0, 0}, | |
26186 | { SWIG_PY_INT, (char *)"ConfigBase_Type_String", (long) wxConfigBase::Type_String, 0, 0, 0}, | |
26187 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Boolean", (long) wxConfigBase::Type_Boolean, 0, 0, 0}, | |
26188 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Integer", (long) wxConfigBase::Type_Integer, 0, 0, 0}, | |
26189 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Float", (long) wxConfigBase::Type_Float, 0, 0, 0}, | |
26190 | { SWIG_PY_INT, (char *)"DateTime_Local", (long) wxDateTime::Local, 0, 0, 0}, | |
26191 | { SWIG_PY_INT, (char *)"DateTime_GMT_12", (long) wxDateTime::GMT_12, 0, 0, 0}, | |
26192 | { SWIG_PY_INT, (char *)"DateTime_GMT_11", (long) wxDateTime::GMT_11, 0, 0, 0}, | |
26193 | { SWIG_PY_INT, (char *)"DateTime_GMT_10", (long) wxDateTime::GMT_10, 0, 0, 0}, | |
26194 | { SWIG_PY_INT, (char *)"DateTime_GMT_9", (long) wxDateTime::GMT_9, 0, 0, 0}, | |
26195 | { SWIG_PY_INT, (char *)"DateTime_GMT_8", (long) wxDateTime::GMT_8, 0, 0, 0}, | |
26196 | { SWIG_PY_INT, (char *)"DateTime_GMT_7", (long) wxDateTime::GMT_7, 0, 0, 0}, | |
26197 | { SWIG_PY_INT, (char *)"DateTime_GMT_6", (long) wxDateTime::GMT_6, 0, 0, 0}, | |
26198 | { SWIG_PY_INT, (char *)"DateTime_GMT_5", (long) wxDateTime::GMT_5, 0, 0, 0}, | |
26199 | { SWIG_PY_INT, (char *)"DateTime_GMT_4", (long) wxDateTime::GMT_4, 0, 0, 0}, | |
26200 | { SWIG_PY_INT, (char *)"DateTime_GMT_3", (long) wxDateTime::GMT_3, 0, 0, 0}, | |
26201 | { SWIG_PY_INT, (char *)"DateTime_GMT_2", (long) wxDateTime::GMT_2, 0, 0, 0}, | |
26202 | { SWIG_PY_INT, (char *)"DateTime_GMT_1", (long) wxDateTime::GMT_1, 0, 0, 0}, | |
26203 | { SWIG_PY_INT, (char *)"DateTime_GMT0", (long) wxDateTime::GMT0, 0, 0, 0}, | |
26204 | { SWIG_PY_INT, (char *)"DateTime_GMT1", (long) wxDateTime::GMT1, 0, 0, 0}, | |
26205 | { SWIG_PY_INT, (char *)"DateTime_GMT2", (long) wxDateTime::GMT2, 0, 0, 0}, | |
26206 | { SWIG_PY_INT, (char *)"DateTime_GMT3", (long) wxDateTime::GMT3, 0, 0, 0}, | |
26207 | { SWIG_PY_INT, (char *)"DateTime_GMT4", (long) wxDateTime::GMT4, 0, 0, 0}, | |
26208 | { SWIG_PY_INT, (char *)"DateTime_GMT5", (long) wxDateTime::GMT5, 0, 0, 0}, | |
26209 | { SWIG_PY_INT, (char *)"DateTime_GMT6", (long) wxDateTime::GMT6, 0, 0, 0}, | |
26210 | { SWIG_PY_INT, (char *)"DateTime_GMT7", (long) wxDateTime::GMT7, 0, 0, 0}, | |
26211 | { SWIG_PY_INT, (char *)"DateTime_GMT8", (long) wxDateTime::GMT8, 0, 0, 0}, | |
26212 | { SWIG_PY_INT, (char *)"DateTime_GMT9", (long) wxDateTime::GMT9, 0, 0, 0}, | |
26213 | { SWIG_PY_INT, (char *)"DateTime_GMT10", (long) wxDateTime::GMT10, 0, 0, 0}, | |
26214 | { SWIG_PY_INT, (char *)"DateTime_GMT11", (long) wxDateTime::GMT11, 0, 0, 0}, | |
26215 | { SWIG_PY_INT, (char *)"DateTime_GMT12", (long) wxDateTime::GMT12, 0, 0, 0}, | |
26216 | { SWIG_PY_INT, (char *)"DateTime_WET", (long) wxDateTime::WET, 0, 0, 0}, | |
26217 | { SWIG_PY_INT, (char *)"DateTime_WEST", (long) wxDateTime::WEST, 0, 0, 0}, | |
26218 | { SWIG_PY_INT, (char *)"DateTime_CET", (long) wxDateTime::CET, 0, 0, 0}, | |
26219 | { SWIG_PY_INT, (char *)"DateTime_CEST", (long) wxDateTime::CEST, 0, 0, 0}, | |
26220 | { SWIG_PY_INT, (char *)"DateTime_EET", (long) wxDateTime::EET, 0, 0, 0}, | |
26221 | { SWIG_PY_INT, (char *)"DateTime_EEST", (long) wxDateTime::EEST, 0, 0, 0}, | |
26222 | { SWIG_PY_INT, (char *)"DateTime_MSK", (long) wxDateTime::MSK, 0, 0, 0}, | |
26223 | { SWIG_PY_INT, (char *)"DateTime_MSD", (long) wxDateTime::MSD, 0, 0, 0}, | |
26224 | { SWIG_PY_INT, (char *)"DateTime_AST", (long) wxDateTime::AST, 0, 0, 0}, | |
26225 | { SWIG_PY_INT, (char *)"DateTime_ADT", (long) wxDateTime::ADT, 0, 0, 0}, | |
26226 | { SWIG_PY_INT, (char *)"DateTime_EST", (long) wxDateTime::EST, 0, 0, 0}, | |
26227 | { SWIG_PY_INT, (char *)"DateTime_EDT", (long) wxDateTime::EDT, 0, 0, 0}, | |
26228 | { SWIG_PY_INT, (char *)"DateTime_CST", (long) wxDateTime::CST, 0, 0, 0}, | |
26229 | { SWIG_PY_INT, (char *)"DateTime_CDT", (long) wxDateTime::CDT, 0, 0, 0}, | |
26230 | { SWIG_PY_INT, (char *)"DateTime_MST", (long) wxDateTime::MST, 0, 0, 0}, | |
26231 | { SWIG_PY_INT, (char *)"DateTime_MDT", (long) wxDateTime::MDT, 0, 0, 0}, | |
26232 | { SWIG_PY_INT, (char *)"DateTime_PST", (long) wxDateTime::PST, 0, 0, 0}, | |
26233 | { SWIG_PY_INT, (char *)"DateTime_PDT", (long) wxDateTime::PDT, 0, 0, 0}, | |
26234 | { SWIG_PY_INT, (char *)"DateTime_HST", (long) wxDateTime::HST, 0, 0, 0}, | |
26235 | { SWIG_PY_INT, (char *)"DateTime_AKST", (long) wxDateTime::AKST, 0, 0, 0}, | |
26236 | { SWIG_PY_INT, (char *)"DateTime_AKDT", (long) wxDateTime::AKDT, 0, 0, 0}, | |
26237 | { SWIG_PY_INT, (char *)"DateTime_A_WST", (long) wxDateTime::A_WST, 0, 0, 0}, | |
26238 | { SWIG_PY_INT, (char *)"DateTime_A_CST", (long) wxDateTime::A_CST, 0, 0, 0}, | |
26239 | { SWIG_PY_INT, (char *)"DateTime_A_EST", (long) wxDateTime::A_EST, 0, 0, 0}, | |
26240 | { SWIG_PY_INT, (char *)"DateTime_A_ESST", (long) wxDateTime::A_ESST, 0, 0, 0}, | |
26241 | { SWIG_PY_INT, (char *)"DateTime_UTC", (long) wxDateTime::UTC, 0, 0, 0}, | |
26242 | { SWIG_PY_INT, (char *)"DateTime_Gregorian", (long) wxDateTime::Gregorian, 0, 0, 0}, | |
26243 | { SWIG_PY_INT, (char *)"DateTime_Julian", (long) wxDateTime::Julian, 0, 0, 0}, | |
26244 | { SWIG_PY_INT, (char *)"DateTime_Gr_Unknown", (long) wxDateTime::Gr_Unknown, 0, 0, 0}, | |
26245 | { SWIG_PY_INT, (char *)"DateTime_Gr_Standard", (long) wxDateTime::Gr_Standard, 0, 0, 0}, | |
26246 | { SWIG_PY_INT, (char *)"DateTime_Gr_Alaska", (long) wxDateTime::Gr_Alaska, 0, 0, 0}, | |
26247 | { SWIG_PY_INT, (char *)"DateTime_Gr_Albania", (long) wxDateTime::Gr_Albania, 0, 0, 0}, | |
26248 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria", (long) wxDateTime::Gr_Austria, 0, 0, 0}, | |
26249 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Brixen", (long) wxDateTime::Gr_Austria_Brixen, 0, 0, 0}, | |
26250 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Salzburg", (long) wxDateTime::Gr_Austria_Salzburg, 0, 0, 0}, | |
26251 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Tyrol", (long) wxDateTime::Gr_Austria_Tyrol, 0, 0, 0}, | |
26252 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Carinthia", (long) wxDateTime::Gr_Austria_Carinthia, 0, 0, 0}, | |
26253 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Styria", (long) wxDateTime::Gr_Austria_Styria, 0, 0, 0}, | |
26254 | { SWIG_PY_INT, (char *)"DateTime_Gr_Belgium", (long) wxDateTime::Gr_Belgium, 0, 0, 0}, | |
26255 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria", (long) wxDateTime::Gr_Bulgaria, 0, 0, 0}, | |
26256 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_1", (long) wxDateTime::Gr_Bulgaria_1, 0, 0, 0}, | |
26257 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_2", (long) wxDateTime::Gr_Bulgaria_2, 0, 0, 0}, | |
26258 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_3", (long) wxDateTime::Gr_Bulgaria_3, 0, 0, 0}, | |
26259 | { SWIG_PY_INT, (char *)"DateTime_Gr_Canada", (long) wxDateTime::Gr_Canada, 0, 0, 0}, | |
26260 | { SWIG_PY_INT, (char *)"DateTime_Gr_China", (long) wxDateTime::Gr_China, 0, 0, 0}, | |
26261 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_1", (long) wxDateTime::Gr_China_1, 0, 0, 0}, | |
26262 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_2", (long) wxDateTime::Gr_China_2, 0, 0, 0}, | |
26263 | { SWIG_PY_INT, (char *)"DateTime_Gr_Czechoslovakia", (long) wxDateTime::Gr_Czechoslovakia, 0, 0, 0}, | |
26264 | { SWIG_PY_INT, (char *)"DateTime_Gr_Denmark", (long) wxDateTime::Gr_Denmark, 0, 0, 0}, | |
26265 | { SWIG_PY_INT, (char *)"DateTime_Gr_Egypt", (long) wxDateTime::Gr_Egypt, 0, 0, 0}, | |
26266 | { SWIG_PY_INT, (char *)"DateTime_Gr_Estonia", (long) wxDateTime::Gr_Estonia, 0, 0, 0}, | |
26267 | { SWIG_PY_INT, (char *)"DateTime_Gr_Finland", (long) wxDateTime::Gr_Finland, 0, 0, 0}, | |
26268 | { SWIG_PY_INT, (char *)"DateTime_Gr_France", (long) wxDateTime::Gr_France, 0, 0, 0}, | |
26269 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Alsace", (long) wxDateTime::Gr_France_Alsace, 0, 0, 0}, | |
26270 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Lorraine", (long) wxDateTime::Gr_France_Lorraine, 0, 0, 0}, | |
26271 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Strasbourg", (long) wxDateTime::Gr_France_Strasbourg, 0, 0, 0}, | |
26272 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany", (long) wxDateTime::Gr_Germany, 0, 0, 0}, | |
26273 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Catholic", (long) wxDateTime::Gr_Germany_Catholic, 0, 0, 0}, | |
26274 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Prussia", (long) wxDateTime::Gr_Germany_Prussia, 0, 0, 0}, | |
26275 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Protestant", (long) wxDateTime::Gr_Germany_Protestant, 0, 0, 0}, | |
26276 | { SWIG_PY_INT, (char *)"DateTime_Gr_GreatBritain", (long) wxDateTime::Gr_GreatBritain, 0, 0, 0}, | |
26277 | { SWIG_PY_INT, (char *)"DateTime_Gr_Greece", (long) wxDateTime::Gr_Greece, 0, 0, 0}, | |
26278 | { SWIG_PY_INT, (char *)"DateTime_Gr_Hungary", (long) wxDateTime::Gr_Hungary, 0, 0, 0}, | |
26279 | { SWIG_PY_INT, (char *)"DateTime_Gr_Ireland", (long) wxDateTime::Gr_Ireland, 0, 0, 0}, | |
26280 | { SWIG_PY_INT, (char *)"DateTime_Gr_Italy", (long) wxDateTime::Gr_Italy, 0, 0, 0}, | |
26281 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan", (long) wxDateTime::Gr_Japan, 0, 0, 0}, | |
26282 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_1", (long) wxDateTime::Gr_Japan_1, 0, 0, 0}, | |
26283 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_2", (long) wxDateTime::Gr_Japan_2, 0, 0, 0}, | |
26284 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_3", (long) wxDateTime::Gr_Japan_3, 0, 0, 0}, | |
26285 | { SWIG_PY_INT, (char *)"DateTime_Gr_Latvia", (long) wxDateTime::Gr_Latvia, 0, 0, 0}, | |
26286 | { SWIG_PY_INT, (char *)"DateTime_Gr_Lithuania", (long) wxDateTime::Gr_Lithuania, 0, 0, 0}, | |
26287 | { SWIG_PY_INT, (char *)"DateTime_Gr_Luxemburg", (long) wxDateTime::Gr_Luxemburg, 0, 0, 0}, | |
26288 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands", (long) wxDateTime::Gr_Netherlands, 0, 0, 0}, | |
26289 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Groningen", (long) wxDateTime::Gr_Netherlands_Groningen, 0, 0, 0}, | |
26290 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Gelderland", (long) wxDateTime::Gr_Netherlands_Gelderland, 0, 0, 0}, | |
26291 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Utrecht", (long) wxDateTime::Gr_Netherlands_Utrecht, 0, 0, 0}, | |
26292 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Friesland", (long) wxDateTime::Gr_Netherlands_Friesland, 0, 0, 0}, | |
26293 | { SWIG_PY_INT, (char *)"DateTime_Gr_Norway", (long) wxDateTime::Gr_Norway, 0, 0, 0}, | |
26294 | { SWIG_PY_INT, (char *)"DateTime_Gr_Poland", (long) wxDateTime::Gr_Poland, 0, 0, 0}, | |
26295 | { SWIG_PY_INT, (char *)"DateTime_Gr_Portugal", (long) wxDateTime::Gr_Portugal, 0, 0, 0}, | |
26296 | { SWIG_PY_INT, (char *)"DateTime_Gr_Romania", (long) wxDateTime::Gr_Romania, 0, 0, 0}, | |
26297 | { SWIG_PY_INT, (char *)"DateTime_Gr_Russia", (long) wxDateTime::Gr_Russia, 0, 0, 0}, | |
26298 | { SWIG_PY_INT, (char *)"DateTime_Gr_Scotland", (long) wxDateTime::Gr_Scotland, 0, 0, 0}, | |
26299 | { SWIG_PY_INT, (char *)"DateTime_Gr_Spain", (long) wxDateTime::Gr_Spain, 0, 0, 0}, | |
26300 | { SWIG_PY_INT, (char *)"DateTime_Gr_Sweden", (long) wxDateTime::Gr_Sweden, 0, 0, 0}, | |
26301 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland", (long) wxDateTime::Gr_Switzerland, 0, 0, 0}, | |
26302 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Catholic", (long) wxDateTime::Gr_Switzerland_Catholic, 0, 0, 0}, | |
26303 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Protestant", (long) wxDateTime::Gr_Switzerland_Protestant, 0, 0, 0}, | |
26304 | { SWIG_PY_INT, (char *)"DateTime_Gr_Turkey", (long) wxDateTime::Gr_Turkey, 0, 0, 0}, | |
26305 | { SWIG_PY_INT, (char *)"DateTime_Gr_USA", (long) wxDateTime::Gr_USA, 0, 0, 0}, | |
26306 | { SWIG_PY_INT, (char *)"DateTime_Gr_Wales", (long) wxDateTime::Gr_Wales, 0, 0, 0}, | |
26307 | { SWIG_PY_INT, (char *)"DateTime_Gr_Yugoslavia", (long) wxDateTime::Gr_Yugoslavia, 0, 0, 0}, | |
26308 | { SWIG_PY_INT, (char *)"DateTime_Country_Unknown", (long) wxDateTime::Country_Unknown, 0, 0, 0}, | |
26309 | { SWIG_PY_INT, (char *)"DateTime_Country_Default", (long) wxDateTime::Country_Default, 0, 0, 0}, | |
26310 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_Start", (long) wxDateTime::Country_WesternEurope_Start, 0, 0, 0}, | |
26311 | { SWIG_PY_INT, (char *)"DateTime_Country_EEC", (long) wxDateTime::Country_EEC, 0, 0, 0}, | |
26312 | { SWIG_PY_INT, (char *)"DateTime_France", (long) wxDateTime::France, 0, 0, 0}, | |
26313 | { SWIG_PY_INT, (char *)"DateTime_Germany", (long) wxDateTime::Germany, 0, 0, 0}, | |
26314 | { SWIG_PY_INT, (char *)"DateTime_UK", (long) wxDateTime::UK, 0, 0, 0}, | |
26315 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_End", (long) wxDateTime::Country_WesternEurope_End, 0, 0, 0}, | |
26316 | { SWIG_PY_INT, (char *)"DateTime_Russia", (long) wxDateTime::Russia, 0, 0, 0}, | |
26317 | { SWIG_PY_INT, (char *)"DateTime_USA", (long) wxDateTime::USA, 0, 0, 0}, | |
26318 | { SWIG_PY_INT, (char *)"DateTime_Jan", (long) wxDateTime::Jan, 0, 0, 0}, | |
26319 | { SWIG_PY_INT, (char *)"DateTime_Feb", (long) wxDateTime::Feb, 0, 0, 0}, | |
26320 | { SWIG_PY_INT, (char *)"DateTime_Mar", (long) wxDateTime::Mar, 0, 0, 0}, | |
26321 | { SWIG_PY_INT, (char *)"DateTime_Apr", (long) wxDateTime::Apr, 0, 0, 0}, | |
26322 | { SWIG_PY_INT, (char *)"DateTime_May", (long) wxDateTime::May, 0, 0, 0}, | |
26323 | { SWIG_PY_INT, (char *)"DateTime_Jun", (long) wxDateTime::Jun, 0, 0, 0}, | |
26324 | { SWIG_PY_INT, (char *)"DateTime_Jul", (long) wxDateTime::Jul, 0, 0, 0}, | |
26325 | { SWIG_PY_INT, (char *)"DateTime_Aug", (long) wxDateTime::Aug, 0, 0, 0}, | |
26326 | { SWIG_PY_INT, (char *)"DateTime_Sep", (long) wxDateTime::Sep, 0, 0, 0}, | |
26327 | { SWIG_PY_INT, (char *)"DateTime_Oct", (long) wxDateTime::Oct, 0, 0, 0}, | |
26328 | { SWIG_PY_INT, (char *)"DateTime_Nov", (long) wxDateTime::Nov, 0, 0, 0}, | |
26329 | { SWIG_PY_INT, (char *)"DateTime_Dec", (long) wxDateTime::Dec, 0, 0, 0}, | |
26330 | { SWIG_PY_INT, (char *)"DateTime_Inv_Month", (long) wxDateTime::Inv_Month, 0, 0, 0}, | |
26331 | { SWIG_PY_INT, (char *)"DateTime_Sun", (long) wxDateTime::Sun, 0, 0, 0}, | |
26332 | { SWIG_PY_INT, (char *)"DateTime_Mon", (long) wxDateTime::Mon, 0, 0, 0}, | |
26333 | { SWIG_PY_INT, (char *)"DateTime_Tue", (long) wxDateTime::Tue, 0, 0, 0}, | |
26334 | { SWIG_PY_INT, (char *)"DateTime_Wed", (long) wxDateTime::Wed, 0, 0, 0}, | |
26335 | { SWIG_PY_INT, (char *)"DateTime_Thu", (long) wxDateTime::Thu, 0, 0, 0}, | |
26336 | { SWIG_PY_INT, (char *)"DateTime_Fri", (long) wxDateTime::Fri, 0, 0, 0}, | |
26337 | { SWIG_PY_INT, (char *)"DateTime_Sat", (long) wxDateTime::Sat, 0, 0, 0}, | |
26338 | { SWIG_PY_INT, (char *)"DateTime_Inv_WeekDay", (long) wxDateTime::Inv_WeekDay, 0, 0, 0}, | |
26339 | { SWIG_PY_INT, (char *)"DateTime_Inv_Year", (long) wxDateTime::Inv_Year, 0, 0, 0}, | |
26340 | { SWIG_PY_INT, (char *)"DateTime_Name_Full", (long) wxDateTime::Name_Full, 0, 0, 0}, | |
26341 | { SWIG_PY_INT, (char *)"DateTime_Name_Abbr", (long) wxDateTime::Name_Abbr, 0, 0, 0}, | |
26342 | { SWIG_PY_INT, (char *)"DateTime_Default_First", (long) wxDateTime::Default_First, 0, 0, 0}, | |
26343 | { SWIG_PY_INT, (char *)"DateTime_Monday_First", (long) wxDateTime::Monday_First, 0, 0, 0}, | |
26344 | { SWIG_PY_INT, (char *)"DateTime_Sunday_First", (long) wxDateTime::Sunday_First, 0, 0, 0}, | |
26345 | { SWIG_PY_INT, (char *)"DF_INVALID", (long) wxDF_INVALID, 0, 0, 0}, | |
26346 | { SWIG_PY_INT, (char *)"DF_TEXT", (long) wxDF_TEXT, 0, 0, 0}, | |
26347 | { SWIG_PY_INT, (char *)"DF_BITMAP", (long) wxDF_BITMAP, 0, 0, 0}, | |
26348 | { SWIG_PY_INT, (char *)"DF_METAFILE", (long) wxDF_METAFILE, 0, 0, 0}, | |
26349 | { SWIG_PY_INT, (char *)"DF_SYLK", (long) wxDF_SYLK, 0, 0, 0}, | |
26350 | { SWIG_PY_INT, (char *)"DF_DIF", (long) wxDF_DIF, 0, 0, 0}, | |
26351 | { SWIG_PY_INT, (char *)"DF_TIFF", (long) wxDF_TIFF, 0, 0, 0}, | |
26352 | { SWIG_PY_INT, (char *)"DF_OEMTEXT", (long) wxDF_OEMTEXT, 0, 0, 0}, | |
26353 | { SWIG_PY_INT, (char *)"DF_DIB", (long) wxDF_DIB, 0, 0, 0}, | |
26354 | { SWIG_PY_INT, (char *)"DF_PALETTE", (long) wxDF_PALETTE, 0, 0, 0}, | |
26355 | { SWIG_PY_INT, (char *)"DF_PENDATA", (long) wxDF_PENDATA, 0, 0, 0}, | |
26356 | { SWIG_PY_INT, (char *)"DF_RIFF", (long) wxDF_RIFF, 0, 0, 0}, | |
26357 | { SWIG_PY_INT, (char *)"DF_WAVE", (long) wxDF_WAVE, 0, 0, 0}, | |
26358 | { SWIG_PY_INT, (char *)"DF_UNICODETEXT", (long) wxDF_UNICODETEXT, 0, 0, 0}, | |
26359 | { SWIG_PY_INT, (char *)"DF_ENHMETAFILE", (long) wxDF_ENHMETAFILE, 0, 0, 0}, | |
26360 | { SWIG_PY_INT, (char *)"DF_FILENAME", (long) wxDF_FILENAME, 0, 0, 0}, | |
26361 | { SWIG_PY_INT, (char *)"DF_LOCALE", (long) wxDF_LOCALE, 0, 0, 0}, | |
26362 | { SWIG_PY_INT, (char *)"DF_PRIVATE", (long) wxDF_PRIVATE, 0, 0, 0}, | |
26363 | { SWIG_PY_INT, (char *)"DF_HTML", (long) wxDF_HTML, 0, 0, 0}, | |
26364 | { SWIG_PY_INT, (char *)"DF_MAX", (long) wxDF_MAX, 0, 0, 0}, | |
26365 | { SWIG_PY_INT, (char *)"DataObject_Get", (long) wxDataObject::Get, 0, 0, 0}, | |
26366 | { SWIG_PY_INT, (char *)"DataObject_Set", (long) wxDataObject::Set, 0, 0, 0}, | |
26367 | { SWIG_PY_INT, (char *)"DataObject_Both", (long) wxDataObject::Both, 0, 0, 0}, | |
26368 | { SWIG_PY_INT, (char *)"Drag_CopyOnly", (long) wxDrag_CopyOnly, 0, 0, 0}, | |
26369 | { SWIG_PY_INT, (char *)"Drag_AllowMove", (long) wxDrag_AllowMove, 0, 0, 0}, | |
26370 | { SWIG_PY_INT, (char *)"Drag_DefaultMove", (long) wxDrag_DefaultMove, 0, 0, 0}, | |
26371 | { SWIG_PY_INT, (char *)"DragError", (long) wxDragError, 0, 0, 0}, | |
26372 | { SWIG_PY_INT, (char *)"DragNone", (long) wxDragNone, 0, 0, 0}, | |
26373 | { SWIG_PY_INT, (char *)"DragCopy", (long) wxDragCopy, 0, 0, 0}, | |
26374 | { SWIG_PY_INT, (char *)"DragMove", (long) wxDragMove, 0, 0, 0}, | |
26375 | { SWIG_PY_INT, (char *)"DragLink", (long) wxDragLink, 0, 0, 0}, | |
26376 | { SWIG_PY_INT, (char *)"DragCancel", (long) wxDragCancel, 0, 0, 0}, | |
26377 | {0}}; | |
26378 | ||
26379 | #ifdef __cplusplus | |
26380 | } | |
26381 | #endif | |
26382 | ||
26383 | #ifdef __cplusplus | |
26384 | extern "C" | |
26385 | #endif | |
26386 | SWIGEXPORT(void) SWIG_init(void) { | |
26387 | static PyObject *SWIG_globals = 0; | |
26388 | static int typeinit = 0; | |
26389 | PyObject *m, *d; | |
26390 | int i; | |
26391 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26392 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26393 | d = PyModule_GetDict(m); | |
26394 | ||
26395 | if (!typeinit) { | |
26396 | for (i = 0; swig_types_initial[i]; i++) { | |
26397 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26398 | } | |
26399 | typeinit = 1; | |
26400 | } | |
26401 | SWIG_InstallConstants(d,swig_const_table); | |
26402 | ||
b2dc1044 RD |
26403 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
26404 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
26405 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
26406 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
d14a1e28 RD |
26407 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
26408 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
26409 | ||
26410 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
26411 | ||
26412 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
26413 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
26414 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
26415 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
d14a1e28 RD |
26416 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
26417 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
26418 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
26419 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
26420 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
26421 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
26422 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
26423 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
26424 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
26425 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
26426 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
26427 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
26428 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
26429 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
26430 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
26431 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
26432 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
26433 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
26434 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
26435 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
26436 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
26437 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
26438 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
26439 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
26440 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
26441 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
26442 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
26443 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
26444 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
26445 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
26446 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
26447 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
26448 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
26449 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
26450 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
26451 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
26452 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
26453 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
26454 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
26455 | ||
26456 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
26457 | ||
b2dc1044 RD |
26458 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
26459 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
d14a1e28 RD |
26460 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
26461 | ||
26462 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
26463 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
26464 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
26465 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
26466 | ||
26467 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
26468 | } | |
26469 |