]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
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 | ||
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 | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
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 { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
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 *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | ||
127 | /*********************************************************************** | |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
137 | #include "Python.h" | |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
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[]); | |
197 | ||
198 | /* ----------------------------------------------------------------------------- | |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
219 | ||
220 | ||
221 | /* Contract support */ | |
222 | ||
223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
224 | ||
225 | #ifdef __cplusplus | |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
234 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
235 | #define SWIGTYPE_p_wxMetafile swig_types[2] | |
236 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
237 | #define SWIGTYPE_p_wxLog swig_types[4] | |
238 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] | |
239 | #define SWIGTYPE_p_wxMenu swig_types[6] | |
240 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
241 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
242 | #define SWIGTYPE_p_wxWave swig_types[9] | |
243 | #define SWIGTYPE_p_wxFileType swig_types[10] | |
244 | #define SWIGTYPE_p_wxLogGui swig_types[11] | |
245 | #define SWIGTYPE_p_wxFont swig_types[12] | |
246 | #define SWIGTYPE_p_wxDataFormat swig_types[13] | |
247 | #define SWIGTYPE_p_wxTimerEvent swig_types[14] | |
248 | #define SWIGTYPE_p_wxCaret swig_types[15] | |
249 | #define SWIGTYPE_p_int swig_types[16] | |
250 | #define SWIGTYPE_p_wxSize swig_types[17] | |
251 | #define SWIGTYPE_p_wxClipboard swig_types[18] | |
252 | #define SWIGTYPE_p_wxStopWatch swig_types[19] | |
253 | #define SWIGTYPE_p_wxDC swig_types[20] | |
254 | #define SWIGTYPE_p_wxClipboardLocker swig_types[21] | |
255 | #define SWIGTYPE_p_wxIcon swig_types[22] | |
256 | #define SWIGTYPE_p_wxLogStderr swig_types[23] | |
257 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[24] | |
258 | #define SWIGTYPE_p_wxTextCtrl swig_types[25] | |
259 | #define SWIGTYPE_p_wxBusyCursor swig_types[26] | |
260 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27] | |
261 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[28] | |
262 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[29] | |
263 | #define SWIGTYPE_p_wxTextDataObject swig_types[30] | |
264 | #define SWIGTYPE_p_wxDataObject swig_types[31] | |
265 | #define SWIGTYPE_p_wxFileDataObject swig_types[32] | |
266 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
267 | #define SWIGTYPE_p_wxURLDataObject swig_types[34] | |
268 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[35] | |
269 | #define SWIGTYPE_p_wxTimerRunner swig_types[36] | |
270 | #define SWIGTYPE_p_wxLogWindow swig_types[37] | |
271 | #define SWIGTYPE_p_wxTimeSpan swig_types[38] | |
272 | #define SWIGTYPE_p_wxArrayString swig_types[39] | |
273 | #define SWIGTYPE_p_wxWindowDisabler swig_types[40] | |
274 | #define SWIGTYPE_p_wxToolTip swig_types[41] | |
275 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[42] | |
276 | #define SWIGTYPE_p_wxFileConfig swig_types[43] | |
277 | #define SWIGTYPE_p_wxSystemSettings swig_types[44] | |
278 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[45] | |
279 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[46] | |
280 | #define SWIGTYPE_p_wxEvtHandler swig_types[47] | |
281 | #define SWIGTYPE_p_wxRect swig_types[48] | |
282 | #define SWIGTYPE_p_char swig_types[49] | |
283 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[50] | |
284 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[51] | |
285 | #define SWIGTYPE_p_wxFrame swig_types[52] | |
286 | #define SWIGTYPE_p_wxTimer swig_types[53] | |
287 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[54] | |
288 | #define SWIGTYPE_p_wxPyArtProvider swig_types[55] | |
289 | #define SWIGTYPE_p_wxPyTipProvider swig_types[56] | |
290 | #define SWIGTYPE_p_wxTipProvider swig_types[57] | |
291 | #define SWIGTYPE_p_wxJoystick swig_types[58] | |
292 | #define SWIGTYPE_p_wxSystemOptions swig_types[59] | |
293 | #define SWIGTYPE_p_wxPoint swig_types[60] | |
294 | #define SWIGTYPE_p_wxJoystickEvent swig_types[61] | |
295 | #define SWIGTYPE_p_wxCursor swig_types[62] | |
296 | #define SWIGTYPE_p_wxObject swig_types[63] | |
297 | #define SWIGTYPE_p_wxOutputStream swig_types[64] | |
298 | #define SWIGTYPE_p_wxDateTime swig_types[65] | |
299 | #define SWIGTYPE_p_wxPyDropSource swig_types[66] | |
300 | #define SWIGTYPE_p_wxWindow swig_types[67] | |
301 | #define SWIGTYPE_p_wxString swig_types[68] | |
302 | #define SWIGTYPE_p_wxPyProcess swig_types[69] | |
303 | #define SWIGTYPE_p_wxBitmap swig_types[70] | |
304 | #define SWIGTYPE_p_wxConfig swig_types[71] | |
305 | #define SWIGTYPE_p_wxChar swig_types[72] | |
306 | #define SWIGTYPE_p_wxBusyInfo swig_types[73] | |
307 | #define SWIGTYPE_p_wxPyDropTarget swig_types[74] | |
308 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[75] | |
309 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[76] | |
310 | #define SWIGTYPE_p_wxProcessEvent swig_types[77] | |
311 | #define SWIGTYPE_p_wxPyLog swig_types[78] | |
312 | #define SWIGTYPE_p_wxLogNull swig_types[79] | |
313 | #define SWIGTYPE_p_wxColour swig_types[80] | |
314 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[81] | |
315 | #define SWIGTYPE_p_wxPyTimer swig_types[82] | |
316 | #define SWIGTYPE_p_wxDateSpan swig_types[83] | |
317 | static swig_type_info *swig_types[85]; | |
318 | ||
319 | /* -------- TYPES TABLE (END) -------- */ | |
320 | ||
321 | ||
322 | /*----------------------------------------------- | |
323 | @(target):= _misc.so | |
324 | ------------------------------------------------*/ | |
325 | #define SWIG_init init_misc | |
326 | ||
327 | #define SWIG_name "_misc" | |
328 | ||
329 | #include <limits.h> | |
330 | #include <float.h> | |
331 | #include <string.h> | |
332 | ||
333 | #ifndef SWIGSTATIC | |
334 | #ifdef __cplusplus | |
335 | #define SWIGSTATIC(a) static inline a | |
336 | #else | |
337 | #define SWIGSTATIC(a) static a | |
338 | #endif | |
339 | #endif | |
340 | ||
341 | #ifndef numeric_cast | |
342 | #ifdef __cplusplus | |
343 | #ifdef HAVE_NUMERIC_CAST | |
344 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
345 | #else | |
346 | #define numeric_cast(type,a) static_cast<type>(a) | |
347 | #endif | |
348 | #else | |
349 | #define numeric_cast(type,a) (type)(a) | |
350 | #endif | |
351 | #endif | |
352 | ||
353 | ||
354 | ||
355 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
356 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
357 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
358 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
359 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
360 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
361 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
362 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
363 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
364 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
365 | ||
366 | ||
367 | #include "wx/wxPython/wxPython.h" | |
368 | #include "wx/wxPython/pyclasses.h" | |
369 | #include "wx/wxPython/pyistream.h" | |
370 | ||
371 | ||
372 | static const wxString wxPyEmptyString(wxEmptyString); | |
373 | ||
374 | ||
375 | ||
376 | SWIGSTATIC(int) | |
377 | SWIG_PyObj_AsInt(PyObject *obj) | |
378 | { | |
379 | return numeric_cast(int, | |
380 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
381 | } | |
382 | ||
383 | ||
384 | SWIGSTATIC(PyObject*) | |
385 | SWIG_PyObj_FromBool(bool value) | |
386 | { | |
387 | PyObject *obj = value ? Py_True : Py_False; | |
388 | Py_INCREF(obj); | |
389 | return obj; | |
390 | } | |
391 | ||
392 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
393 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
394 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
395 | ||
396 | SWIGSTATIC(long) | |
397 | SWIG_PyObj_AsLong(PyObject * obj) | |
398 | { | |
399 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
400 | } | |
401 | ||
402 | ||
403 | SWIGSTATIC(bool) | |
404 | SWIG_PyObj_AsBool(PyObject *obj) | |
405 | { | |
406 | return PyObject_IsTrue(obj) ? true : false; | |
407 | } | |
408 | ||
409 | ||
410 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
411 | PyObject* o2; | |
412 | PyObject* o3; | |
413 | ||
414 | if (!target) { | |
415 | target = o; | |
416 | } else if (target == Py_None) { | |
417 | Py_DECREF(Py_None); | |
418 | target = o; | |
419 | } else { | |
420 | if (!PyTuple_Check(target)) { | |
421 | o2 = target; | |
422 | target = PyTuple_New(1); | |
423 | PyTuple_SetItem(target, 0, o2); | |
424 | } | |
425 | o3 = PyTuple_New(1); | |
426 | PyTuple_SetItem(o3, 0, o); | |
427 | ||
428 | o2 = target; | |
429 | target = PySequence_Concat(o2, o3); | |
430 | Py_DECREF(o2); | |
431 | Py_DECREF(o3); | |
432 | } | |
433 | return target; | |
434 | } | |
435 | ||
436 | ||
437 | SWIGSTATIC(PyObject* ) | |
438 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
439 | { | |
440 | return (value > (unsigned long)(LONG_MAX)) ? | |
441 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
442 | } | |
443 | ||
444 | ||
445 | bool wxThread_IsMain() { | |
446 | #ifdef WXP_WITH_THREAD | |
447 | return wxThread::IsMain(); | |
448 | #else | |
449 | return True; | |
450 | #endif | |
451 | } | |
452 | ||
453 | ||
454 | int wxCaret_GetBlinkTime() { | |
455 | return wxCaret::GetBlinkTime(); | |
456 | } | |
457 | ||
458 | void wxCaret_SetBlinkTime(int milliseconds) { | |
459 | wxCaret::SetBlinkTime(milliseconds); | |
460 | } | |
461 | ||
462 | ||
463 | #include <wx/snglinst.h> | |
464 | ||
465 | ||
466 | #ifdef __WXMSW__ | |
467 | #include <wx/msw/private.h> | |
468 | #include <wx/dynload.h> | |
469 | #endif | |
470 | ||
471 | ||
472 | ||
473 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
474 | { | |
475 | #ifdef __WXMSW__ | |
476 | ||
477 | switch (method) | |
478 | { | |
479 | case 1: | |
480 | // This one only partially works. Appears to be an undocumented | |
481 | // "standard" convention that not all widgets adhear to. For | |
482 | // example, for some widgets backgrounds or non-client areas may | |
483 | // not be painted. | |
484 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
485 | break; | |
486 | ||
487 | case 2: | |
488 | // This one works much better, except for on XP. On Win2k nearly | |
489 | // all widgets and their children are captured correctly[**]. On | |
490 | // XP with Themes activated most native widgets draw only | |
491 | // partially, if at all. Without themes it works just like on | |
492 | // Win2k. | |
493 | // | |
494 | // ** For example the radio buttons in a wxRadioBox are not its | |
495 | // children by default, but you can capture it via the panel | |
496 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
497 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
498 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
499 | PRF_ERASEBKGND | PRF_OWNED ); | |
500 | break; | |
501 | ||
502 | case 3: | |
503 | // This one is only defined in the latest SDK and is only | |
504 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
505 | // so I expect that it will work similar to the above. Since it | |
506 | // is avaialble only on XP, it can't be compiled like this and | |
507 | // will have to be loaded dynamically. | |
508 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
509 | ||
510 | // fall through | |
511 | ||
512 | case 4: | |
513 | // Use PrintWindow if available, or fallback to WM_PRINT | |
514 | // otherwise. Unfortunately using PrintWindow is even worse than | |
515 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
516 | // at all, with or without Themes. | |
517 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
518 | static bool s_triedToLoad = False; | |
519 | static PrintWindow_t pfnPrintWindow = NULL; | |
520 | if ( !s_triedToLoad ) | |
521 | { | |
522 | ||
523 | s_triedToLoad = True; | |
524 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
525 | if ( dllUser32.IsLoaded() ) | |
526 | { | |
527 | wxLogNull nolog; // Don't report errors here | |
528 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
529 | } | |
530 | } | |
531 | if (pfnPrintWindow) | |
532 | { | |
533 | printf("Using PrintWindow\n"); | |
534 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
535 | } | |
536 | else | |
537 | { | |
538 | printf("Using WM_PRINT\n"); | |
539 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
540 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
541 | } | |
542 | } | |
543 | #endif | |
544 | } | |
545 | ||
546 | ||
547 | ||
548 | #include <wx/tipdlg.h> | |
549 | ||
550 | ||
551 | class wxPyTipProvider : public wxTipProvider { | |
552 | public: | |
553 | wxPyTipProvider(size_t currentTip) | |
554 | : wxTipProvider(currentTip) {} | |
555 | ||
556 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
557 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
558 | PYPRIVATE; | |
559 | }; | |
560 | ||
561 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
562 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
563 | ||
564 | ||
565 | IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
566 | ||
567 | ||
568 | SWIGSTATIC(unsigned int) | |
569 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
570 | { | |
571 | return numeric_cast(unsigned int, | |
572 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
573 | } | |
574 | ||
575 | wxString Log_TimeStamp(){ | |
576 | wxString msg; | |
577 | wxLog::TimeStamp(&msg); | |
578 | return msg; | |
579 | } | |
580 | void wxLog_Destroy(wxLog *self){ delete self; } | |
581 | ||
582 | // A wxLog class that can be derived from in wxPython | |
583 | class wxPyLog : public wxLog { | |
584 | public: | |
585 | wxPyLog() : wxLog() {} | |
586 | ||
587 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
588 | bool found; | |
589 | wxPyBeginBlockThreads(); | |
590 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
591 | PyObject* s = wx2PyString(szString); | |
592 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
593 | Py_DECREF(s); | |
594 | } | |
595 | wxPyEndBlockThreads(); | |
596 | if (! found) | |
597 | wxLog::DoLog(level, szString, t); | |
598 | } | |
599 | ||
600 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
601 | bool found; | |
602 | wxPyBeginBlockThreads(); | |
603 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
604 | PyObject* s = wx2PyString(szString); | |
605 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
606 | Py_DECREF(s); | |
607 | } | |
608 | wxPyEndBlockThreads(); | |
609 | if (! found) | |
610 | wxLog::DoLogString(szString, t); | |
611 | } | |
612 | ||
613 | PYPRIVATE; | |
614 | }; | |
615 | ||
616 | ||
617 | ||
618 | ||
619 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
620 | ||
621 | ||
622 | #include <wx/joystick.h> | |
623 | ||
624 | ||
625 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
626 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
627 | class wxJoystick : public wxObject { | |
628 | public: | |
629 | wxJoystick(int joystick = wxJOYSTICK1) { | |
630 | wxPyBeginBlockThreads(); | |
631 | PyErr_SetString(PyExc_NotImplementedError, | |
632 | "wxJoystick is not available on this platform."); | |
633 | wxPyEndBlockThreads(); | |
634 | } | |
635 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
636 | int GetZPosition() { return -1; } | |
637 | int GetButtonState() { return -1; } | |
638 | int GetPOVPosition() { return -1; } | |
639 | int GetPOVCTSPosition() { return -1; } | |
640 | int GetRudderPosition() { return -1; } | |
641 | int GetUPosition() { return -1; } | |
642 | int GetVPosition() { return -1; } | |
643 | int GetMovementThreshold() { return -1; } | |
644 | void SetMovementThreshold(int threshold) {} | |
645 | ||
646 | bool IsOk(void) { return False; } | |
647 | int GetNumberJoysticks() { return -1; } | |
648 | int GetManufacturerId() { return -1; } | |
649 | int GetProductId() { return -1; } | |
650 | wxString GetProductName() { return ""; } | |
651 | int GetXMin() { return -1; } | |
652 | int GetYMin() { return -1; } | |
653 | int GetZMin() { return -1; } | |
654 | int GetXMax() { return -1; } | |
655 | int GetYMax() { return -1; } | |
656 | int GetZMax() { return -1; } | |
657 | int GetNumberButtons() { return -1; } | |
658 | int GetNumberAxes() { return -1; } | |
659 | int GetMaxButtons() { return -1; } | |
660 | int GetMaxAxes() { return -1; } | |
661 | int GetPollingMin() { return -1; } | |
662 | int GetPollingMax() { return -1; } | |
663 | int GetRudderMin() { return -1; } | |
664 | int GetRudderMax() { return -1; } | |
665 | int GetUMin() { return -1; } | |
666 | int GetUMax() { return -1; } | |
667 | int GetVMin() { return -1; } | |
668 | int GetVMax() { return -1; } | |
669 | ||
670 | bool HasRudder() { return False; } | |
671 | bool HasZ() { return False; } | |
672 | bool HasU() { return False; } | |
673 | bool HasV() { return False; } | |
674 | bool HasPOV() { return False; } | |
675 | bool HasPOV4Dir() { return False; } | |
676 | bool HasPOVCTS() { return False; } | |
677 | ||
678 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } | |
679 | bool ReleaseCapture() { return False; } | |
680 | }; | |
681 | #endif | |
682 | ||
683 | ||
684 | #include <wx/wave.h> | |
685 | ||
686 | ||
687 | #if !wxUSE_WAVE | |
688 | // A C++ stub class for wxWave for platforms that don't have it. | |
689 | class wxWave : public wxObject | |
690 | { | |
691 | public: | |
692 | wxWave(const wxString& fileName, bool isResource = False) { | |
693 | wxPyBeginBlockThreads(); | |
694 | PyErr_SetString(PyExc_NotImplementedError, | |
695 | "wxWave is not available on this platform."); | |
696 | wxPyEndBlockThreads(); | |
697 | } | |
698 | wxWave(int size, const wxByte* data) { | |
699 | wxPyBeginBlockThreads(); | |
700 | PyErr_SetString(PyExc_NotImplementedError, | |
701 | "wxWave is not available on this platform."); | |
702 | wxPyEndBlockThreads(); | |
703 | } | |
704 | ||
705 | ~wxWave() {} | |
706 | ||
707 | bool IsOk() const { return False; } | |
708 | bool Play(bool async = True, bool looped = False) const { return False; } | |
709 | }; | |
710 | ||
711 | #endif | |
712 | ||
713 | wxWave *new_wxWave(wxString const &data){ | |
714 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
715 | } | |
716 | ||
717 | #include <wx/mimetype.h> | |
718 | ||
719 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
720 | wxString str; | |
721 | if (self->GetMimeType(&str)) | |
722 | return wx2PyString(str); | |
723 | else | |
724 | RETURN_NONE(); | |
725 | } | |
726 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
727 | wxArrayString arr; | |
728 | if (self->GetMimeTypes(arr)) | |
729 | return wxArrayString2PyList_helper(arr); | |
730 | else | |
731 | RETURN_NONE(); | |
732 | } | |
733 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
734 | wxArrayString arr; | |
735 | if (self->GetExtensions(arr)) | |
736 | return wxArrayString2PyList_helper(arr); | |
737 | else | |
738 | RETURN_NONE(); | |
739 | } | |
740 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
741 | wxIconLocation loc; | |
742 | if (self->GetIcon(&loc)) | |
743 | return new wxIcon(loc); | |
744 | else | |
745 | return NULL; | |
746 | } | |
747 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
748 | wxIconLocation loc; | |
749 | if (self->GetIcon(&loc)) { | |
750 | wxString iconFile = loc.GetFileName(); | |
751 | int iconIndex = -1; | |
752 | ||
753 | iconIndex = loc.GetIndex(); | |
754 | ||
755 | // Make a tuple and put the values in it | |
756 | wxPyBeginBlockThreads(); | |
757 | PyObject* tuple = PyTuple_New(3); | |
758 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
759 | wxT("wxIcon"), True)); | |
760 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
761 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
762 | wxPyEndBlockThreads(); | |
763 | return tuple; | |
764 | } | |
765 | else | |
766 | RETURN_NONE(); | |
767 | } | |
768 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
769 | wxString str; | |
770 | if (self->GetDescription(&str)) | |
771 | return wx2PyString(str); | |
772 | else | |
773 | RETURN_NONE(); | |
774 | } | |
775 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
776 | wxString str; | |
777 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
778 | return wx2PyString(str); | |
779 | else | |
780 | RETURN_NONE(); | |
781 | } | |
782 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
783 | wxString str; | |
784 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
785 | return wx2PyString(str); | |
786 | else | |
787 | RETURN_NONE(); | |
788 | } | |
789 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
790 | wxArrayString verbs; | |
791 | wxArrayString commands; | |
792 | if (self->GetAllCommands(&verbs, &commands, | |
793 | wxFileType::MessageParameters(filename, mimetype))) { | |
794 | wxPyBeginBlockThreads(); | |
795 | PyObject* tuple = PyTuple_New(2); | |
796 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
797 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
798 | wxPyEndBlockThreads(); | |
799 | return tuple; | |
800 | } | |
801 | else | |
802 | RETURN_NONE(); | |
803 | } | |
804 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
805 | return wxFileType::ExpandCommand(command, | |
806 | wxFileType::MessageParameters(filename, mimetype)); | |
807 | } | |
808 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
809 | wxArrayString arr; | |
810 | self->EnumAllFileTypes(arr); | |
811 | return wxArrayString2PyList_helper(arr); | |
812 | } | |
813 | ||
814 | #include <wx/artprov.h> | |
815 | ||
816 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
817 | static const wxString wxPyART_MENU(wxART_MENU); | |
818 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
819 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
820 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
821 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
822 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
823 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
824 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
825 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
826 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
827 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
828 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
829 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
830 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
831 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
832 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
833 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
834 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
835 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
836 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
837 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
838 | static const wxString wxPyART_HELP(wxART_HELP); | |
839 | static const wxString wxPyART_TIP(wxART_TIP); | |
840 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
841 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
842 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
843 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
844 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
845 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
846 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
847 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
848 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
849 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
850 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
851 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
852 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
853 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
854 | // Python aware wxArtProvider | |
855 | class wxPyArtProvider : public wxArtProvider { | |
856 | public: | |
857 | ||
858 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
859 | const wxArtClient& client, | |
860 | const wxSize& size) { | |
861 | wxBitmap rval = wxNullBitmap; | |
862 | wxPyBeginBlockThreads(); | |
863 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
864 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
865 | PyObject* ro; | |
866 | wxBitmap* ptr; | |
867 | PyObject* s1, *s2; | |
868 | s1 = wx2PyString(id); | |
869 | s2 = wx2PyString(client); | |
870 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
871 | Py_DECREF(so); | |
872 | Py_DECREF(s1); | |
873 | Py_DECREF(s2); | |
874 | if (ro) { | |
875 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
876 | rval = *ptr; | |
877 | Py_DECREF(ro); | |
878 | } | |
879 | } | |
880 | wxPyEndBlockThreads(); | |
881 | return rval; | |
882 | } | |
883 | ||
884 | PYPRIVATE; | |
885 | }; | |
886 | ||
887 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
888 | ||
889 | ||
890 | ||
891 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
892 | PyObject* ret = PyTuple_New(3); | |
893 | if (ret) { | |
894 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
895 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
896 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
897 | } | |
898 | return ret; | |
899 | } | |
900 | ||
901 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
902 | bool cont; | |
903 | long index = 0; | |
904 | wxString value; | |
905 | ||
906 | cont = self->GetFirstGroup(value, index); | |
907 | return __EnumerationHelper(cont, value, index); | |
908 | } | |
909 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
910 | bool cont; | |
911 | wxString value; | |
912 | ||
913 | cont = self->GetNextGroup(value, index); | |
914 | return __EnumerationHelper(cont, value, index); | |
915 | } | |
916 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
917 | bool cont; | |
918 | long index = 0; | |
919 | wxString value; | |
920 | ||
921 | cont = self->GetFirstEntry(value, index); | |
922 | return __EnumerationHelper(cont, value, index); | |
923 | } | |
924 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
925 | bool cont; | |
926 | wxString value; | |
927 | ||
928 | cont = self->GetNextEntry(value, index); | |
929 | return __EnumerationHelper(cont, value, index); | |
930 | } | |
931 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
932 | long rv; | |
933 | self->Read(key, &rv, defaultVal); | |
934 | return rv; | |
935 | } | |
936 | ||
937 | SWIGSTATIC(double) | |
938 | SWIG_PyObj_AsDouble(PyObject *obj) | |
939 | { | |
940 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
941 | #if HAVE_LONG_LONG | |
942 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
943 | #else | |
944 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
945 | #endif | |
946 | if (PyErr_Occurred()) { | |
947 | PyErr_Clear(); | |
948 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
949 | } | |
950 | } | |
951 | ||
952 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
953 | double rv; | |
954 | self->Read(key, &rv, defaultVal); | |
955 | return rv; | |
956 | } | |
957 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
958 | bool rv; | |
959 | self->Read(key, &rv, defaultVal); | |
960 | return rv; | |
961 | } | |
962 | ||
963 | #include <wx/datetime.h> | |
964 | ||
965 | ||
966 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
967 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
968 | ||
969 | #define LOCAL_TZ wxDateTime::Local | |
970 | ||
971 | ||
972 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
973 | ||
974 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
975 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
976 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
977 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
978 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
979 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; } | |
980 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; } | |
981 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; } | |
982 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; } | |
983 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; } | |
984 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; } | |
985 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
986 | const wxChar* rv; | |
987 | const wxChar* _date = date; | |
988 | rv = self->ParseRfc822Date(_date); | |
989 | if (rv == NULL) return -1; | |
990 | return rv - _date; | |
991 | } | |
992 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
993 | const wxChar* rv; | |
994 | const wxChar* _date = date; | |
995 | rv = self->ParseFormat(_date, format, dateDef); | |
996 | if (rv == NULL) return -1; | |
997 | return rv - _date; | |
998 | } | |
999 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1000 | const wxChar* rv; | |
1001 | const wxChar* _datetime = datetime; | |
1002 | rv = self->ParseDateTime(_datetime); | |
1003 | if (rv == NULL) return -1; | |
1004 | return rv - _datetime; | |
1005 | } | |
1006 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1007 | const wxChar* rv; | |
1008 | const wxChar* _date = date; | |
1009 | rv = self->ParseDate(_date); | |
1010 | if (rv == NULL) return -1; | |
1011 | return rv - _date; | |
1012 | } | |
1013 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1014 | const wxChar* rv; | |
1015 | const wxChar* _time = time; | |
1016 | rv = self->ParseTime(_time); | |
1017 | if (rv == NULL) return -1; | |
1018 | return rv - _time; | |
1019 | } | |
1020 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1021 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1022 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1023 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
1024 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; } | |
1025 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; } | |
1026 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; } | |
1027 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; } | |
1028 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; } | |
1029 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; } | |
1030 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
1031 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1032 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1033 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
1034 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; } | |
1035 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const &other){ return *self != other; } | |
1036 | ||
1037 | #include <wx/dataobj.h> | |
1038 | ||
1039 | // Create a new class for wxPython to use | |
1040 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1041 | public: | |
1042 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1043 | : wxDataObjectSimple(format) {} | |
1044 | ||
1045 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1046 | bool GetDataHere(void *buf) const; | |
1047 | bool SetData(size_t len, const void *buf) const; | |
1048 | PYPRIVATE; | |
1049 | }; | |
1050 | ||
1051 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1052 | ||
1053 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1054 | // We need to get the data for this object and write it to buf. I think | |
1055 | // the best way to do this for wxPython is to have the Python method | |
1056 | // return either a string or None and then act appropriately with the | |
1057 | // C++ version. | |
1058 | ||
1059 | bool rval = False; | |
1060 | wxPyBeginBlockThreads(); | |
1061 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1062 | PyObject* ro; | |
1063 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1064 | if (ro) { | |
1065 | rval = (ro != Py_None && PyString_Check(ro)); | |
1066 | if (rval) | |
1067 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1068 | Py_DECREF(ro); | |
1069 | } | |
1070 | } | |
1071 | wxPyEndBlockThreads(); | |
1072 | return rval; | |
1073 | } | |
1074 | ||
1075 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1076 | // For this one we simply need to make a string from buf and len | |
1077 | // and send it to the Python method. | |
1078 | bool rval = False; | |
1079 | wxPyBeginBlockThreads(); | |
1080 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1081 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1082 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1083 | Py_DECREF(data); | |
1084 | } | |
1085 | wxPyEndBlockThreads(); | |
1086 | return rval; | |
1087 | } | |
1088 | ||
1089 | // Create a new class for wxPython to use | |
1090 | class wxPyTextDataObject : public wxTextDataObject { | |
1091 | public: | |
1092 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1093 | : wxTextDataObject(text) {} | |
1094 | ||
1095 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1096 | DEC_PYCALLBACK_STRING__const(GetText); | |
1097 | DEC_PYCALLBACK__STRING(SetText); | |
1098 | PYPRIVATE; | |
1099 | }; | |
1100 | ||
1101 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1102 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1103 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1104 | ||
1105 | ||
1106 | // Create a new class for wxPython to use | |
1107 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1108 | public: | |
1109 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1110 | : wxBitmapDataObject(bitmap) {} | |
1111 | ||
1112 | wxBitmap GetBitmap() const; | |
1113 | void SetBitmap(const wxBitmap& bitmap); | |
1114 | PYPRIVATE; | |
1115 | }; | |
1116 | ||
1117 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1118 | wxBitmap* rval = &wxNullBitmap; | |
1119 | wxPyBeginBlockThreads(); | |
1120 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1121 | PyObject* ro; | |
1122 | wxBitmap* ptr; | |
1123 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1124 | if (ro) { | |
1125 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1126 | rval = ptr; | |
1127 | Py_DECREF(ro); | |
1128 | } | |
1129 | } | |
1130 | wxPyEndBlockThreads(); | |
1131 | return *rval; | |
1132 | } | |
1133 | ||
1134 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1135 | wxPyBeginBlockThreads(); | |
1136 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
1137 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); | |
1138 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
1139 | Py_DECREF(bo); | |
1140 | } | |
1141 | wxPyEndBlockThreads(); | |
1142 | } | |
1143 | ||
1144 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1145 | if (PyString_Check(data)) { | |
1146 | // for Python we just call SetData here since we always need it to make a copy. | |
1147 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1148 | } | |
1149 | else { | |
1150 | // raise a TypeError if not a string | |
1151 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1152 | } | |
1153 | } | |
1154 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1155 | if (PyString_Check(data)) { | |
1156 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1157 | } | |
1158 | else { | |
1159 | // raise a TypeError if not a string | |
1160 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1161 | return False; | |
1162 | } | |
1163 | } | |
1164 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1165 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1166 | } | |
1167 | ||
1168 | #include <wx/metafile.h> | |
1169 | ||
1170 | ||
1171 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1172 | ||
1173 | ||
1174 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1175 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1176 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1177 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1178 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1179 | ||
1180 | ||
1181 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1182 | public: | |
1183 | wxPyTextDropTarget() {} | |
1184 | ||
1185 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1186 | ||
1187 | DEC_PYCALLBACK__(OnLeave); | |
1188 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1189 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1190 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1191 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1192 | ||
1193 | PYPRIVATE; | |
1194 | }; | |
1195 | ||
1196 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1197 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1198 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1199 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1200 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1201 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1202 | ||
1203 | ||
1204 | ||
1205 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1206 | public: | |
1207 | wxPyFileDropTarget() {} | |
1208 | ||
1209 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1210 | ||
1211 | DEC_PYCALLBACK__(OnLeave); | |
1212 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1213 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1214 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1215 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1216 | ||
1217 | PYPRIVATE; | |
1218 | }; | |
1219 | ||
1220 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1221 | const wxArrayString& filenames) { | |
1222 | bool rval = False; | |
1223 | wxPyBeginBlockThreads(); | |
1224 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1225 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1226 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1227 | Py_DECREF(list); | |
1228 | } | |
1229 | wxPyEndBlockThreads(); | |
1230 | return rval; | |
1231 | } | |
1232 | ||
1233 | ||
1234 | ||
1235 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1236 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1237 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1238 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1239 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1240 | ||
1241 | ||
1242 | ||
1243 | ||
1244 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1245 | #ifdef __cplusplus | |
1246 | extern "C" { | |
1247 | #endif | |
1248 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1249 | PyObject *resultobj; | |
1250 | int arg1 ; | |
1251 | wxColour result; | |
1252 | PyObject * obj0 = 0 ; | |
1253 | char *kwnames[] = { | |
1254 | (char *) "index", NULL | |
1255 | }; | |
1256 | ||
1257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
1258 | { | |
1259 | arg1 = (wxSystemColour) SWIG_PyObj_AsInt(obj0); | |
1260 | if (PyErr_Occurred()) SWIG_fail; | |
1261 | } | |
1262 | { | |
1263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1264 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1265 | ||
1266 | wxPyEndAllowThreads(__tstate); | |
1267 | if (PyErr_Occurred()) SWIG_fail; | |
1268 | } | |
1269 | { | |
1270 | wxColour * resultptr; | |
1271 | resultptr = new wxColour((wxColour &) result); | |
1272 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1273 | } | |
1274 | return resultobj; | |
1275 | fail: | |
1276 | return NULL; | |
1277 | } | |
1278 | ||
1279 | ||
1280 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1281 | PyObject *resultobj; | |
1282 | int arg1 ; | |
1283 | wxFont result; | |
1284 | PyObject * obj0 = 0 ; | |
1285 | char *kwnames[] = { | |
1286 | (char *) "index", NULL | |
1287 | }; | |
1288 | ||
1289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
1290 | { | |
1291 | arg1 = (wxSystemFont) SWIG_PyObj_AsInt(obj0); | |
1292 | if (PyErr_Occurred()) SWIG_fail; | |
1293 | } | |
1294 | { | |
1295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1296 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1297 | ||
1298 | wxPyEndAllowThreads(__tstate); | |
1299 | if (PyErr_Occurred()) SWIG_fail; | |
1300 | } | |
1301 | { | |
1302 | wxFont * resultptr; | |
1303 | resultptr = new wxFont((wxFont &) result); | |
1304 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
1305 | } | |
1306 | return resultobj; | |
1307 | fail: | |
1308 | return NULL; | |
1309 | } | |
1310 | ||
1311 | ||
1312 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1313 | PyObject *resultobj; | |
1314 | int arg1 ; | |
1315 | int result; | |
1316 | PyObject * obj0 = 0 ; | |
1317 | char *kwnames[] = { | |
1318 | (char *) "index", NULL | |
1319 | }; | |
1320 | ||
1321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
1322 | { | |
1323 | arg1 = (wxSystemMetric) SWIG_PyObj_AsInt(obj0); | |
1324 | if (PyErr_Occurred()) SWIG_fail; | |
1325 | } | |
1326 | { | |
1327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1328 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1329 | ||
1330 | wxPyEndAllowThreads(__tstate); | |
1331 | if (PyErr_Occurred()) SWIG_fail; | |
1332 | } | |
1333 | resultobj = SWIG_PyObj_FromInt((int)result); | |
1334 | return resultobj; | |
1335 | fail: | |
1336 | return NULL; | |
1337 | } | |
1338 | ||
1339 | ||
1340 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1341 | PyObject *resultobj; | |
1342 | int arg1 ; | |
1343 | bool result; | |
1344 | PyObject * obj0 = 0 ; | |
1345 | char *kwnames[] = { | |
1346 | (char *) "index", NULL | |
1347 | }; | |
1348 | ||
1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
1350 | { | |
1351 | arg1 = (wxSystemFeature) SWIG_PyObj_AsInt(obj0); | |
1352 | if (PyErr_Occurred()) SWIG_fail; | |
1353 | } | |
1354 | { | |
1355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1356 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1357 | ||
1358 | wxPyEndAllowThreads(__tstate); | |
1359 | if (PyErr_Occurred()) SWIG_fail; | |
1360 | } | |
1361 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
1362 | return resultobj; | |
1363 | fail: | |
1364 | return NULL; | |
1365 | } | |
1366 | ||
1367 | ||
1368 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1369 | PyObject *resultobj; | |
1370 | int result; | |
1371 | char *kwnames[] = { | |
1372 | NULL | |
1373 | }; | |
1374 | ||
1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1376 | { | |
1377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1378 | result = (int)wxSystemSettings::GetScreenType(); | |
1379 | ||
1380 | wxPyEndAllowThreads(__tstate); | |
1381 | if (PyErr_Occurred()) SWIG_fail; | |
1382 | } | |
1383 | resultobj = SWIG_PyObj_FromInt((int)result); | |
1384 | return resultobj; | |
1385 | fail: | |
1386 | return NULL; | |
1387 | } | |
1388 | ||
1389 | ||
1390 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1391 | PyObject *resultobj; | |
1392 | int arg1 ; | |
1393 | PyObject * obj0 = 0 ; | |
1394 | char *kwnames[] = { | |
1395 | (char *) "screen", NULL | |
1396 | }; | |
1397 | ||
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
1399 | { | |
1400 | arg1 = (wxSystemScreenType) SWIG_PyObj_AsInt(obj0); | |
1401 | if (PyErr_Occurred()) SWIG_fail; | |
1402 | } | |
1403 | { | |
1404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1405 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1406 | ||
1407 | wxPyEndAllowThreads(__tstate); | |
1408 | if (PyErr_Occurred()) SWIG_fail; | |
1409 | } | |
1410 | Py_INCREF(Py_None); resultobj = Py_None; | |
1411 | return resultobj; | |
1412 | fail: | |
1413 | return NULL; | |
1414 | } | |
1415 | ||
1416 | ||
1417 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1418 | PyObject *obj; | |
1419 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1420 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1421 | Py_INCREF(obj); | |
1422 | return Py_BuildValue((char *)""); | |
1423 | } | |
1424 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1425 | PyObject *resultobj; | |
1426 | wxSystemOptions *result; | |
1427 | char *kwnames[] = { | |
1428 | NULL | |
1429 | }; | |
1430 | ||
1431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1432 | { | |
1433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1434 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1435 | ||
1436 | wxPyEndAllowThreads(__tstate); | |
1437 | if (PyErr_Occurred()) SWIG_fail; | |
1438 | } | |
1439 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1); | |
1440 | return resultobj; | |
1441 | fail: | |
1442 | return NULL; | |
1443 | } | |
1444 | ||
1445 | ||
1446 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1447 | PyObject *resultobj; | |
1448 | wxString *arg1 = 0 ; | |
1449 | wxString *arg2 = 0 ; | |
1450 | bool temp1 = False ; | |
1451 | bool temp2 = False ; | |
1452 | PyObject * obj0 = 0 ; | |
1453 | PyObject * obj1 = 0 ; | |
1454 | char *kwnames[] = { | |
1455 | (char *) "name",(char *) "value", NULL | |
1456 | }; | |
1457 | ||
1458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1459 | { | |
1460 | arg1 = wxString_in_helper(obj0); | |
1461 | if (arg1 == NULL) SWIG_fail; | |
1462 | temp1 = True; | |
1463 | } | |
1464 | { | |
1465 | arg2 = wxString_in_helper(obj1); | |
1466 | if (arg2 == NULL) SWIG_fail; | |
1467 | temp2 = True; | |
1468 | } | |
1469 | { | |
1470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1471 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1472 | ||
1473 | wxPyEndAllowThreads(__tstate); | |
1474 | if (PyErr_Occurred()) SWIG_fail; | |
1475 | } | |
1476 | Py_INCREF(Py_None); resultobj = Py_None; | |
1477 | { | |
1478 | if (temp1) | |
1479 | delete arg1; | |
1480 | } | |
1481 | { | |
1482 | if (temp2) | |
1483 | delete arg2; | |
1484 | } | |
1485 | return resultobj; | |
1486 | fail: | |
1487 | { | |
1488 | if (temp1) | |
1489 | delete arg1; | |
1490 | } | |
1491 | { | |
1492 | if (temp2) | |
1493 | delete arg2; | |
1494 | } | |
1495 | return NULL; | |
1496 | } | |
1497 | ||
1498 | ||
1499 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1500 | PyObject *resultobj; | |
1501 | wxString *arg1 = 0 ; | |
1502 | int arg2 ; | |
1503 | bool temp1 = False ; | |
1504 | PyObject * obj0 = 0 ; | |
1505 | PyObject * obj1 = 0 ; | |
1506 | char *kwnames[] = { | |
1507 | (char *) "name",(char *) "value", NULL | |
1508 | }; | |
1509 | ||
1510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
1511 | { | |
1512 | arg1 = wxString_in_helper(obj0); | |
1513 | if (arg1 == NULL) SWIG_fail; | |
1514 | temp1 = True; | |
1515 | } | |
1516 | { | |
1517 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1518 | if (PyErr_Occurred()) SWIG_fail; | |
1519 | } | |
1520 | { | |
1521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1522 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1523 | ||
1524 | wxPyEndAllowThreads(__tstate); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | } | |
1527 | Py_INCREF(Py_None); resultobj = Py_None; | |
1528 | { | |
1529 | if (temp1) | |
1530 | delete arg1; | |
1531 | } | |
1532 | return resultobj; | |
1533 | fail: | |
1534 | { | |
1535 | if (temp1) | |
1536 | delete arg1; | |
1537 | } | |
1538 | return NULL; | |
1539 | } | |
1540 | ||
1541 | ||
1542 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1543 | PyObject *resultobj; | |
1544 | wxString *arg1 = 0 ; | |
1545 | wxString result; | |
1546 | bool temp1 = False ; | |
1547 | PyObject * obj0 = 0 ; | |
1548 | char *kwnames[] = { | |
1549 | (char *) "name", NULL | |
1550 | }; | |
1551 | ||
1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1553 | { | |
1554 | arg1 = wxString_in_helper(obj0); | |
1555 | if (arg1 == NULL) SWIG_fail; | |
1556 | temp1 = True; | |
1557 | } | |
1558 | { | |
1559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1560 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1561 | ||
1562 | wxPyEndAllowThreads(__tstate); | |
1563 | if (PyErr_Occurred()) SWIG_fail; | |
1564 | } | |
1565 | { | |
1566 | #if wxUSE_UNICODE | |
1567 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1568 | #else | |
1569 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1570 | #endif | |
1571 | } | |
1572 | { | |
1573 | if (temp1) | |
1574 | delete arg1; | |
1575 | } | |
1576 | return resultobj; | |
1577 | fail: | |
1578 | { | |
1579 | if (temp1) | |
1580 | delete arg1; | |
1581 | } | |
1582 | return NULL; | |
1583 | } | |
1584 | ||
1585 | ||
1586 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1587 | PyObject *resultobj; | |
1588 | wxString *arg1 = 0 ; | |
1589 | int result; | |
1590 | bool temp1 = False ; | |
1591 | PyObject * obj0 = 0 ; | |
1592 | char *kwnames[] = { | |
1593 | (char *) "name", NULL | |
1594 | }; | |
1595 | ||
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1597 | { | |
1598 | arg1 = wxString_in_helper(obj0); | |
1599 | if (arg1 == NULL) SWIG_fail; | |
1600 | temp1 = True; | |
1601 | } | |
1602 | { | |
1603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1604 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1605 | ||
1606 | wxPyEndAllowThreads(__tstate); | |
1607 | if (PyErr_Occurred()) SWIG_fail; | |
1608 | } | |
1609 | resultobj = SWIG_PyObj_FromInt((int)result); | |
1610 | { | |
1611 | if (temp1) | |
1612 | delete arg1; | |
1613 | } | |
1614 | return resultobj; | |
1615 | fail: | |
1616 | { | |
1617 | if (temp1) | |
1618 | delete arg1; | |
1619 | } | |
1620 | return NULL; | |
1621 | } | |
1622 | ||
1623 | ||
1624 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1625 | PyObject *resultobj; | |
1626 | wxString *arg1 = 0 ; | |
1627 | bool result; | |
1628 | bool temp1 = False ; | |
1629 | PyObject * obj0 = 0 ; | |
1630 | char *kwnames[] = { | |
1631 | (char *) "name", NULL | |
1632 | }; | |
1633 | ||
1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1635 | { | |
1636 | arg1 = wxString_in_helper(obj0); | |
1637 | if (arg1 == NULL) SWIG_fail; | |
1638 | temp1 = True; | |
1639 | } | |
1640 | { | |
1641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1642 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1643 | ||
1644 | wxPyEndAllowThreads(__tstate); | |
1645 | if (PyErr_Occurred()) SWIG_fail; | |
1646 | } | |
1647 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
1648 | { | |
1649 | if (temp1) | |
1650 | delete arg1; | |
1651 | } | |
1652 | return resultobj; | |
1653 | fail: | |
1654 | { | |
1655 | if (temp1) | |
1656 | delete arg1; | |
1657 | } | |
1658 | return NULL; | |
1659 | } | |
1660 | ||
1661 | ||
1662 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1663 | PyObject *obj; | |
1664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1665 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1666 | Py_INCREF(obj); | |
1667 | return Py_BuildValue((char *)""); | |
1668 | } | |
1669 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { | |
1670 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1671 | return 1; | |
1672 | } | |
1673 | ||
1674 | ||
1675 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1676 | PyObject *pyobj; | |
1677 | ||
1678 | { | |
1679 | #if wxUSE_UNICODE | |
1680 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1681 | #else | |
1682 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1683 | #endif | |
1684 | } | |
1685 | return pyobj; | |
1686 | } | |
1687 | ||
1688 | ||
1689 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { | |
1690 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1691 | return 1; | |
1692 | } | |
1693 | ||
1694 | ||
1695 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1696 | PyObject *pyobj; | |
1697 | ||
1698 | { | |
1699 | #if wxUSE_UNICODE | |
1700 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1701 | #else | |
1702 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1703 | #endif | |
1704 | } | |
1705 | return pyobj; | |
1706 | } | |
1707 | ||
1708 | ||
1709 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { | |
1710 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1711 | return 1; | |
1712 | } | |
1713 | ||
1714 | ||
1715 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1716 | PyObject *pyobj; | |
1717 | ||
1718 | { | |
1719 | #if wxUSE_UNICODE | |
1720 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1721 | #else | |
1722 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1723 | #endif | |
1724 | } | |
1725 | return pyobj; | |
1726 | } | |
1727 | ||
1728 | ||
1729 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1730 | PyObject *resultobj; | |
1731 | long result; | |
1732 | char *kwnames[] = { | |
1733 | NULL | |
1734 | }; | |
1735 | ||
1736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1737 | { | |
1738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1739 | result = (long)wxNewId(); | |
1740 | ||
1741 | wxPyEndAllowThreads(__tstate); | |
1742 | if (PyErr_Occurred()) SWIG_fail; | |
1743 | } | |
1744 | resultobj = SWIG_PyObj_FromLong((long)result); | |
1745 | return resultobj; | |
1746 | fail: | |
1747 | return NULL; | |
1748 | } | |
1749 | ||
1750 | ||
1751 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1752 | PyObject *resultobj; | |
1753 | long arg1 ; | |
1754 | PyObject * obj0 = 0 ; | |
1755 | char *kwnames[] = { | |
1756 | (char *) "id", NULL | |
1757 | }; | |
1758 | ||
1759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
1760 | { | |
1761 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
1762 | if (PyErr_Occurred()) SWIG_fail; | |
1763 | } | |
1764 | { | |
1765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1766 | wxRegisterId(arg1); | |
1767 | ||
1768 | wxPyEndAllowThreads(__tstate); | |
1769 | if (PyErr_Occurred()) SWIG_fail; | |
1770 | } | |
1771 | Py_INCREF(Py_None); resultobj = Py_None; | |
1772 | return resultobj; | |
1773 | fail: | |
1774 | return NULL; | |
1775 | } | |
1776 | ||
1777 | ||
1778 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1779 | PyObject *resultobj; | |
1780 | long result; | |
1781 | char *kwnames[] = { | |
1782 | NULL | |
1783 | }; | |
1784 | ||
1785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1786 | { | |
1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1788 | result = (long)wxGetCurrentId(); | |
1789 | ||
1790 | wxPyEndAllowThreads(__tstate); | |
1791 | if (PyErr_Occurred()) SWIG_fail; | |
1792 | } | |
1793 | resultobj = SWIG_PyObj_FromLong((long)result); | |
1794 | return resultobj; | |
1795 | fail: | |
1796 | return NULL; | |
1797 | } | |
1798 | ||
1799 | ||
1800 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1801 | PyObject *resultobj; | |
1802 | char *kwnames[] = { | |
1803 | NULL | |
1804 | }; | |
1805 | ||
1806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1807 | { | |
1808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1809 | wxBell(); | |
1810 | ||
1811 | wxPyEndAllowThreads(__tstate); | |
1812 | if (PyErr_Occurred()) SWIG_fail; | |
1813 | } | |
1814 | Py_INCREF(Py_None); resultobj = Py_None; | |
1815 | return resultobj; | |
1816 | fail: | |
1817 | return NULL; | |
1818 | } | |
1819 | ||
1820 | ||
1821 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1822 | PyObject *resultobj; | |
1823 | char *kwnames[] = { | |
1824 | NULL | |
1825 | }; | |
1826 | ||
1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1828 | { | |
1829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1830 | wxEndBusyCursor(); | |
1831 | ||
1832 | wxPyEndAllowThreads(__tstate); | |
1833 | if (PyErr_Occurred()) SWIG_fail; | |
1834 | } | |
1835 | Py_INCREF(Py_None); resultobj = Py_None; | |
1836 | return resultobj; | |
1837 | fail: | |
1838 | return NULL; | |
1839 | } | |
1840 | ||
1841 | ||
1842 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1843 | PyObject *resultobj; | |
1844 | bool arg1 = (bool) True ; | |
1845 | long result; | |
1846 | PyObject * obj0 = 0 ; | |
1847 | char *kwnames[] = { | |
1848 | (char *) "resetTimer", NULL | |
1849 | }; | |
1850 | ||
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
1852 | if (obj0) { | |
1853 | { | |
1854 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | } | |
1857 | } | |
1858 | { | |
1859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1860 | result = (long)wxGetElapsedTime(arg1); | |
1861 | ||
1862 | wxPyEndAllowThreads(__tstate); | |
1863 | if (PyErr_Occurred()) SWIG_fail; | |
1864 | } | |
1865 | resultobj = SWIG_PyObj_FromLong((long)result); | |
1866 | return resultobj; | |
1867 | fail: | |
1868 | return NULL; | |
1869 | } | |
1870 | ||
1871 | ||
1872 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject *resultobj; | |
1874 | int *arg1 = (int *) 0 ; | |
1875 | int *arg2 = (int *) 0 ; | |
1876 | int temp1 ; | |
1877 | int temp2 ; | |
1878 | char *kwnames[] = { | |
1879 | NULL | |
1880 | }; | |
1881 | ||
1882 | arg1 = &temp1; | |
1883 | arg2 = &temp2; | |
1884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
1885 | { | |
1886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1887 | wxGetMousePosition(arg1,arg2); | |
1888 | ||
1889 | wxPyEndAllowThreads(__tstate); | |
1890 | if (PyErr_Occurred()) SWIG_fail; | |
1891 | } | |
1892 | Py_INCREF(Py_None); resultobj = Py_None; | |
1893 | { | |
1894 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1895 | resultobj = t_output_helper(resultobj,o); | |
1896 | } | |
1897 | { | |
1898 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1899 | resultobj = t_output_helper(resultobj,o); | |
1900 | } | |
1901 | return resultobj; | |
1902 | fail: | |
1903 | return NULL; | |
1904 | } | |
1905 | ||
1906 | ||
1907 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1908 | PyObject *resultobj; | |
1909 | bool result; | |
1910 | char *kwnames[] = { | |
1911 | NULL | |
1912 | }; | |
1913 | ||
1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
1915 | { | |
1916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1917 | result = (bool)wxIsBusy(); | |
1918 | ||
1919 | wxPyEndAllowThreads(__tstate); | |
1920 | if (PyErr_Occurred()) SWIG_fail; | |
1921 | } | |
1922 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
1923 | return resultobj; | |
1924 | fail: | |
1925 | return NULL; | |
1926 | } | |
1927 | ||
1928 | ||
1929 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject *resultobj; | |
1931 | wxString result; | |
1932 | char *kwnames[] = { | |
1933 | NULL | |
1934 | }; | |
1935 | ||
1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
1937 | { | |
1938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1939 | result = wxNow(); | |
1940 | ||
1941 | wxPyEndAllowThreads(__tstate); | |
1942 | if (PyErr_Occurred()) SWIG_fail; | |
1943 | } | |
1944 | { | |
1945 | #if wxUSE_UNICODE | |
1946 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1947 | #else | |
1948 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1949 | #endif | |
1950 | } | |
1951 | return resultobj; | |
1952 | fail: | |
1953 | return NULL; | |
1954 | } | |
1955 | ||
1956 | ||
1957 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1958 | PyObject *resultobj; | |
1959 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
1960 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
1961 | bool result; | |
1962 | bool temp1 = False ; | |
1963 | PyObject * obj0 = 0 ; | |
1964 | char *kwnames[] = { | |
1965 | (char *) "command", NULL | |
1966 | }; | |
1967 | ||
1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
1969 | if (obj0) { | |
1970 | { | |
1971 | arg1 = wxString_in_helper(obj0); | |
1972 | if (arg1 == NULL) SWIG_fail; | |
1973 | temp1 = True; | |
1974 | } | |
1975 | } | |
1976 | { | |
1977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1978 | result = (bool)wxShell((wxString const &)*arg1); | |
1979 | ||
1980 | wxPyEndAllowThreads(__tstate); | |
1981 | if (PyErr_Occurred()) SWIG_fail; | |
1982 | } | |
1983 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
1984 | { | |
1985 | if (temp1) | |
1986 | delete arg1; | |
1987 | } | |
1988 | return resultobj; | |
1989 | fail: | |
1990 | { | |
1991 | if (temp1) | |
1992 | delete arg1; | |
1993 | } | |
1994 | return NULL; | |
1995 | } | |
1996 | ||
1997 | ||
1998 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1999 | PyObject *resultobj; | |
2000 | char *kwnames[] = { | |
2001 | NULL | |
2002 | }; | |
2003 | ||
2004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2005 | { | |
2006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2007 | wxStartTimer(); | |
2008 | ||
2009 | wxPyEndAllowThreads(__tstate); | |
2010 | if (PyErr_Occurred()) SWIG_fail; | |
2011 | } | |
2012 | Py_INCREF(Py_None); resultobj = Py_None; | |
2013 | return resultobj; | |
2014 | fail: | |
2015 | return NULL; | |
2016 | } | |
2017 | ||
2018 | ||
2019 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2020 | PyObject *resultobj; | |
2021 | int *arg1 = (int *) 0 ; | |
2022 | int *arg2 = (int *) 0 ; | |
2023 | int result; | |
2024 | int temp1 ; | |
2025 | int temp2 ; | |
2026 | char *kwnames[] = { | |
2027 | NULL | |
2028 | }; | |
2029 | ||
2030 | arg1 = &temp1; | |
2031 | arg2 = &temp2; | |
2032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2033 | { | |
2034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2035 | result = (int)wxGetOsVersion(arg1,arg2); | |
2036 | ||
2037 | wxPyEndAllowThreads(__tstate); | |
2038 | if (PyErr_Occurred()) SWIG_fail; | |
2039 | } | |
2040 | resultobj = SWIG_PyObj_FromInt((int)result); | |
2041 | { | |
2042 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2043 | resultobj = t_output_helper(resultobj,o); | |
2044 | } | |
2045 | { | |
2046 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2047 | resultobj = t_output_helper(resultobj,o); | |
2048 | } | |
2049 | return resultobj; | |
2050 | fail: | |
2051 | return NULL; | |
2052 | } | |
2053 | ||
2054 | ||
2055 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2056 | PyObject *resultobj; | |
2057 | wxString result; | |
2058 | char *kwnames[] = { | |
2059 | NULL | |
2060 | }; | |
2061 | ||
2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2063 | { | |
2064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2065 | result = wxGetOsDescription(); | |
2066 | ||
2067 | wxPyEndAllowThreads(__tstate); | |
2068 | if (PyErr_Occurred()) SWIG_fail; | |
2069 | } | |
2070 | { | |
2071 | #if wxUSE_UNICODE | |
2072 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2073 | #else | |
2074 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2075 | #endif | |
2076 | } | |
2077 | return resultobj; | |
2078 | fail: | |
2079 | return NULL; | |
2080 | } | |
2081 | ||
2082 | ||
2083 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2084 | PyObject *resultobj; | |
2085 | long result; | |
2086 | char *kwnames[] = { | |
2087 | NULL | |
2088 | }; | |
2089 | ||
2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2091 | { | |
2092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2093 | result = (long)wxGetFreeMemory(); | |
2094 | ||
2095 | wxPyEndAllowThreads(__tstate); | |
2096 | if (PyErr_Occurred()) SWIG_fail; | |
2097 | } | |
2098 | resultobj = SWIG_PyObj_FromLong((long)result); | |
2099 | return resultobj; | |
2100 | fail: | |
2101 | return NULL; | |
2102 | } | |
2103 | ||
2104 | ||
2105 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2106 | PyObject *resultobj; | |
2107 | int arg1 ; | |
2108 | bool result; | |
2109 | PyObject * obj0 = 0 ; | |
2110 | char *kwnames[] = { | |
2111 | (char *) "wFlags", NULL | |
2112 | }; | |
2113 | ||
2114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
2115 | { | |
2116 | arg1 = (wxShutdownFlags) SWIG_PyObj_AsInt(obj0); | |
2117 | if (PyErr_Occurred()) SWIG_fail; | |
2118 | } | |
2119 | { | |
2120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2121 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2122 | ||
2123 | wxPyEndAllowThreads(__tstate); | |
2124 | if (PyErr_Occurred()) SWIG_fail; | |
2125 | } | |
2126 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
2127 | return resultobj; | |
2128 | fail: | |
2129 | return NULL; | |
2130 | } | |
2131 | ||
2132 | ||
2133 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2134 | PyObject *resultobj; | |
2135 | int arg1 ; | |
2136 | PyObject * obj0 = 0 ; | |
2137 | char *kwnames[] = { | |
2138 | (char *) "secs", NULL | |
2139 | }; | |
2140 | ||
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
2142 | { | |
2143 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2144 | if (PyErr_Occurred()) SWIG_fail; | |
2145 | } | |
2146 | { | |
2147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2148 | wxSleep(arg1); | |
2149 | ||
2150 | wxPyEndAllowThreads(__tstate); | |
2151 | if (PyErr_Occurred()) SWIG_fail; | |
2152 | } | |
2153 | Py_INCREF(Py_None); resultobj = Py_None; | |
2154 | return resultobj; | |
2155 | fail: | |
2156 | return NULL; | |
2157 | } | |
2158 | ||
2159 | ||
2160 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2161 | PyObject *resultobj; | |
2162 | unsigned long arg1 ; | |
2163 | PyObject * obj0 = 0 ; | |
2164 | char *kwnames[] = { | |
2165 | (char *) "milliseconds", NULL | |
2166 | }; | |
2167 | ||
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
2169 | { | |
2170 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); | |
2171 | if (PyErr_Occurred()) SWIG_fail; | |
2172 | } | |
2173 | { | |
2174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2175 | wxUsleep(arg1); | |
2176 | ||
2177 | wxPyEndAllowThreads(__tstate); | |
2178 | if (PyErr_Occurred()) SWIG_fail; | |
2179 | } | |
2180 | Py_INCREF(Py_None); resultobj = Py_None; | |
2181 | return resultobj; | |
2182 | fail: | |
2183 | return NULL; | |
2184 | } | |
2185 | ||
2186 | ||
2187 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2188 | PyObject *resultobj; | |
2189 | bool arg1 ; | |
2190 | PyObject * obj0 = 0 ; | |
2191 | char *kwnames[] = { | |
2192 | (char *) "enable", NULL | |
2193 | }; | |
2194 | ||
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2196 | { | |
2197 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); | |
2198 | if (PyErr_Occurred()) SWIG_fail; | |
2199 | } | |
2200 | { | |
2201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2202 | wxEnableTopLevelWindows(arg1); | |
2203 | ||
2204 | wxPyEndAllowThreads(__tstate); | |
2205 | if (PyErr_Occurred()) SWIG_fail; | |
2206 | } | |
2207 | Py_INCREF(Py_None); resultobj = Py_None; | |
2208 | return resultobj; | |
2209 | fail: | |
2210 | return NULL; | |
2211 | } | |
2212 | ||
2213 | ||
2214 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2215 | PyObject *resultobj; | |
2216 | wxString *arg1 = 0 ; | |
2217 | wxString result; | |
2218 | bool temp1 = False ; | |
2219 | PyObject * obj0 = 0 ; | |
2220 | char *kwnames[] = { | |
2221 | (char *) "in", NULL | |
2222 | }; | |
2223 | ||
2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2225 | { | |
2226 | arg1 = wxString_in_helper(obj0); | |
2227 | if (arg1 == NULL) SWIG_fail; | |
2228 | temp1 = True; | |
2229 | } | |
2230 | { | |
2231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2232 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2233 | ||
2234 | wxPyEndAllowThreads(__tstate); | |
2235 | if (PyErr_Occurred()) SWIG_fail; | |
2236 | } | |
2237 | { | |
2238 | #if wxUSE_UNICODE | |
2239 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2240 | #else | |
2241 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2242 | #endif | |
2243 | } | |
2244 | { | |
2245 | if (temp1) | |
2246 | delete arg1; | |
2247 | } | |
2248 | return resultobj; | |
2249 | fail: | |
2250 | { | |
2251 | if (temp1) | |
2252 | delete arg1; | |
2253 | } | |
2254 | return NULL; | |
2255 | } | |
2256 | ||
2257 | ||
2258 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2259 | PyObject *resultobj; | |
2260 | wxString result; | |
2261 | char *kwnames[] = { | |
2262 | NULL | |
2263 | }; | |
2264 | ||
2265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2266 | { | |
2267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2268 | result = wxGetEmailAddress(); | |
2269 | ||
2270 | wxPyEndAllowThreads(__tstate); | |
2271 | if (PyErr_Occurred()) SWIG_fail; | |
2272 | } | |
2273 | { | |
2274 | #if wxUSE_UNICODE | |
2275 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2276 | #else | |
2277 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2278 | #endif | |
2279 | } | |
2280 | return resultobj; | |
2281 | fail: | |
2282 | return NULL; | |
2283 | } | |
2284 | ||
2285 | ||
2286 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2287 | PyObject *resultobj; | |
2288 | wxString result; | |
2289 | char *kwnames[] = { | |
2290 | NULL | |
2291 | }; | |
2292 | ||
2293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2294 | { | |
2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2296 | result = wxGetHostName(); | |
2297 | ||
2298 | wxPyEndAllowThreads(__tstate); | |
2299 | if (PyErr_Occurred()) SWIG_fail; | |
2300 | } | |
2301 | { | |
2302 | #if wxUSE_UNICODE | |
2303 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2304 | #else | |
2305 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2306 | #endif | |
2307 | } | |
2308 | return resultobj; | |
2309 | fail: | |
2310 | return NULL; | |
2311 | } | |
2312 | ||
2313 | ||
2314 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2315 | PyObject *resultobj; | |
2316 | wxString result; | |
2317 | char *kwnames[] = { | |
2318 | NULL | |
2319 | }; | |
2320 | ||
2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2322 | { | |
2323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2324 | result = wxGetFullHostName(); | |
2325 | ||
2326 | wxPyEndAllowThreads(__tstate); | |
2327 | if (PyErr_Occurred()) SWIG_fail; | |
2328 | } | |
2329 | { | |
2330 | #if wxUSE_UNICODE | |
2331 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2332 | #else | |
2333 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2334 | #endif | |
2335 | } | |
2336 | return resultobj; | |
2337 | fail: | |
2338 | return NULL; | |
2339 | } | |
2340 | ||
2341 | ||
2342 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2343 | PyObject *resultobj; | |
2344 | wxString result; | |
2345 | char *kwnames[] = { | |
2346 | NULL | |
2347 | }; | |
2348 | ||
2349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2350 | { | |
2351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2352 | result = wxGetUserId(); | |
2353 | ||
2354 | wxPyEndAllowThreads(__tstate); | |
2355 | if (PyErr_Occurred()) SWIG_fail; | |
2356 | } | |
2357 | { | |
2358 | #if wxUSE_UNICODE | |
2359 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2360 | #else | |
2361 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2362 | #endif | |
2363 | } | |
2364 | return resultobj; | |
2365 | fail: | |
2366 | return NULL; | |
2367 | } | |
2368 | ||
2369 | ||
2370 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2371 | PyObject *resultobj; | |
2372 | wxString result; | |
2373 | char *kwnames[] = { | |
2374 | NULL | |
2375 | }; | |
2376 | ||
2377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2378 | { | |
2379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2380 | result = wxGetUserName(); | |
2381 | ||
2382 | wxPyEndAllowThreads(__tstate); | |
2383 | if (PyErr_Occurred()) SWIG_fail; | |
2384 | } | |
2385 | { | |
2386 | #if wxUSE_UNICODE | |
2387 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2388 | #else | |
2389 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2390 | #endif | |
2391 | } | |
2392 | return resultobj; | |
2393 | fail: | |
2394 | return NULL; | |
2395 | } | |
2396 | ||
2397 | ||
2398 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2399 | PyObject *resultobj; | |
2400 | wxString result; | |
2401 | char *kwnames[] = { | |
2402 | NULL | |
2403 | }; | |
2404 | ||
2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2406 | { | |
2407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2408 | result = wxGetHomeDir(); | |
2409 | ||
2410 | wxPyEndAllowThreads(__tstate); | |
2411 | if (PyErr_Occurred()) SWIG_fail; | |
2412 | } | |
2413 | { | |
2414 | #if wxUSE_UNICODE | |
2415 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2416 | #else | |
2417 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2418 | #endif | |
2419 | } | |
2420 | return resultobj; | |
2421 | fail: | |
2422 | return NULL; | |
2423 | } | |
2424 | ||
2425 | ||
2426 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2427 | PyObject *resultobj; | |
2428 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2429 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2430 | wxString result; | |
2431 | bool temp1 = False ; | |
2432 | PyObject * obj0 = 0 ; | |
2433 | char *kwnames[] = { | |
2434 | (char *) "user", NULL | |
2435 | }; | |
2436 | ||
2437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2438 | if (obj0) { | |
2439 | { | |
2440 | arg1 = wxString_in_helper(obj0); | |
2441 | if (arg1 == NULL) SWIG_fail; | |
2442 | temp1 = True; | |
2443 | } | |
2444 | } | |
2445 | { | |
2446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2447 | result = wxGetUserHome((wxString const &)*arg1); | |
2448 | ||
2449 | wxPyEndAllowThreads(__tstate); | |
2450 | if (PyErr_Occurred()) SWIG_fail; | |
2451 | } | |
2452 | { | |
2453 | #if wxUSE_UNICODE | |
2454 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2455 | #else | |
2456 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2457 | #endif | |
2458 | } | |
2459 | { | |
2460 | if (temp1) | |
2461 | delete arg1; | |
2462 | } | |
2463 | return resultobj; | |
2464 | fail: | |
2465 | { | |
2466 | if (temp1) | |
2467 | delete arg1; | |
2468 | } | |
2469 | return NULL; | |
2470 | } | |
2471 | ||
2472 | ||
2473 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2474 | PyObject *resultobj; | |
2475 | unsigned long result; | |
2476 | char *kwnames[] = { | |
2477 | NULL | |
2478 | }; | |
2479 | ||
2480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2481 | { | |
2482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2483 | result = (unsigned long)wxGetProcessId(); | |
2484 | ||
2485 | wxPyEndAllowThreads(__tstate); | |
2486 | if (PyErr_Occurred()) SWIG_fail; | |
2487 | } | |
2488 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
2489 | return resultobj; | |
2490 | fail: | |
2491 | return NULL; | |
2492 | } | |
2493 | ||
2494 | ||
2495 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2496 | PyObject *resultobj; | |
2497 | char *kwnames[] = { | |
2498 | NULL | |
2499 | }; | |
2500 | ||
2501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2502 | { | |
2503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2504 | wxTrap(); | |
2505 | ||
2506 | wxPyEndAllowThreads(__tstate); | |
2507 | if (PyErr_Occurred()) SWIG_fail; | |
2508 | } | |
2509 | Py_INCREF(Py_None); resultobj = Py_None; | |
2510 | return resultobj; | |
2511 | fail: | |
2512 | return NULL; | |
2513 | } | |
2514 | ||
2515 | ||
2516 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2517 | PyObject *resultobj; | |
2518 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2519 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2520 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2521 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2522 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2523 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2524 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2525 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2526 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2527 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2528 | int arg6 = (int) 0 ; | |
2529 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2530 | int arg8 = (int) -1 ; | |
2531 | int arg9 = (int) -1 ; | |
2532 | wxString result; | |
2533 | bool temp1 = False ; | |
2534 | bool temp2 = False ; | |
2535 | bool temp3 = False ; | |
2536 | bool temp4 = False ; | |
2537 | bool temp5 = False ; | |
2538 | PyObject * obj0 = 0 ; | |
2539 | PyObject * obj1 = 0 ; | |
2540 | PyObject * obj2 = 0 ; | |
2541 | PyObject * obj3 = 0 ; | |
2542 | PyObject * obj4 = 0 ; | |
2543 | PyObject * obj5 = 0 ; | |
2544 | PyObject * obj6 = 0 ; | |
2545 | PyObject * obj7 = 0 ; | |
2546 | PyObject * obj8 = 0 ; | |
2547 | char *kwnames[] = { | |
2548 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2549 | }; | |
2550 | ||
2551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2552 | if (obj0) { | |
2553 | { | |
2554 | arg1 = wxString_in_helper(obj0); | |
2555 | if (arg1 == NULL) SWIG_fail; | |
2556 | temp1 = True; | |
2557 | } | |
2558 | } | |
2559 | if (obj1) { | |
2560 | { | |
2561 | arg2 = wxString_in_helper(obj1); | |
2562 | if (arg2 == NULL) SWIG_fail; | |
2563 | temp2 = True; | |
2564 | } | |
2565 | } | |
2566 | if (obj2) { | |
2567 | { | |
2568 | arg3 = wxString_in_helper(obj2); | |
2569 | if (arg3 == NULL) SWIG_fail; | |
2570 | temp3 = True; | |
2571 | } | |
2572 | } | |
2573 | if (obj3) { | |
2574 | { | |
2575 | arg4 = wxString_in_helper(obj3); | |
2576 | if (arg4 == NULL) SWIG_fail; | |
2577 | temp4 = True; | |
2578 | } | |
2579 | } | |
2580 | if (obj4) { | |
2581 | { | |
2582 | arg5 = wxString_in_helper(obj4); | |
2583 | if (arg5 == NULL) SWIG_fail; | |
2584 | temp5 = True; | |
2585 | } | |
2586 | } | |
2587 | if (obj5) { | |
2588 | { | |
2589 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
2590 | if (PyErr_Occurred()) SWIG_fail; | |
2591 | } | |
2592 | } | |
2593 | if (obj6) { | |
2594 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2595 | } | |
2596 | if (obj7) { | |
2597 | { | |
2598 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
2599 | if (PyErr_Occurred()) SWIG_fail; | |
2600 | } | |
2601 | } | |
2602 | if (obj8) { | |
2603 | { | |
2604 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
2605 | if (PyErr_Occurred()) SWIG_fail; | |
2606 | } | |
2607 | } | |
2608 | { | |
2609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2610 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
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 | { | |
2635 | if (temp4) | |
2636 | delete arg4; | |
2637 | } | |
2638 | { | |
2639 | if (temp5) | |
2640 | delete arg5; | |
2641 | } | |
2642 | return resultobj; | |
2643 | fail: | |
2644 | { | |
2645 | if (temp1) | |
2646 | delete arg1; | |
2647 | } | |
2648 | { | |
2649 | if (temp2) | |
2650 | delete arg2; | |
2651 | } | |
2652 | { | |
2653 | if (temp3) | |
2654 | delete arg3; | |
2655 | } | |
2656 | { | |
2657 | if (temp4) | |
2658 | delete arg4; | |
2659 | } | |
2660 | { | |
2661 | if (temp5) | |
2662 | delete arg5; | |
2663 | } | |
2664 | return NULL; | |
2665 | } | |
2666 | ||
2667 | ||
2668 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2669 | PyObject *resultobj; | |
2670 | wxString *arg1 = 0 ; | |
2671 | wxString *arg2 = 0 ; | |
2672 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2673 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2674 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2675 | wxString result; | |
2676 | bool temp1 = False ; | |
2677 | bool temp2 = False ; | |
2678 | bool temp3 = False ; | |
2679 | PyObject * obj0 = 0 ; | |
2680 | PyObject * obj1 = 0 ; | |
2681 | PyObject * obj2 = 0 ; | |
2682 | PyObject * obj3 = 0 ; | |
2683 | char *kwnames[] = { | |
2684 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2685 | }; | |
2686 | ||
2687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2688 | { | |
2689 | arg1 = wxString_in_helper(obj0); | |
2690 | if (arg1 == NULL) SWIG_fail; | |
2691 | temp1 = True; | |
2692 | } | |
2693 | { | |
2694 | arg2 = wxString_in_helper(obj1); | |
2695 | if (arg2 == NULL) SWIG_fail; | |
2696 | temp2 = True; | |
2697 | } | |
2698 | if (obj2) { | |
2699 | { | |
2700 | arg3 = wxString_in_helper(obj2); | |
2701 | if (arg3 == NULL) SWIG_fail; | |
2702 | temp3 = True; | |
2703 | } | |
2704 | } | |
2705 | if (obj3) { | |
2706 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2707 | } | |
2708 | { | |
2709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2710 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2711 | ||
2712 | wxPyEndAllowThreads(__tstate); | |
2713 | if (PyErr_Occurred()) SWIG_fail; | |
2714 | } | |
2715 | { | |
2716 | #if wxUSE_UNICODE | |
2717 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2718 | #else | |
2719 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2720 | #endif | |
2721 | } | |
2722 | { | |
2723 | if (temp1) | |
2724 | delete arg1; | |
2725 | } | |
2726 | { | |
2727 | if (temp2) | |
2728 | delete arg2; | |
2729 | } | |
2730 | { | |
2731 | if (temp3) | |
2732 | delete arg3; | |
2733 | } | |
2734 | return resultobj; | |
2735 | fail: | |
2736 | { | |
2737 | if (temp1) | |
2738 | delete arg1; | |
2739 | } | |
2740 | { | |
2741 | if (temp2) | |
2742 | delete arg2; | |
2743 | } | |
2744 | { | |
2745 | if (temp3) | |
2746 | delete arg3; | |
2747 | } | |
2748 | return NULL; | |
2749 | } | |
2750 | ||
2751 | ||
2752 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2753 | PyObject *resultobj; | |
2754 | wxString *arg1 = 0 ; | |
2755 | wxString *arg2 = 0 ; | |
2756 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2757 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2758 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2759 | wxString result; | |
2760 | bool temp1 = False ; | |
2761 | bool temp2 = False ; | |
2762 | bool temp3 = False ; | |
2763 | PyObject * obj0 = 0 ; | |
2764 | PyObject * obj1 = 0 ; | |
2765 | PyObject * obj2 = 0 ; | |
2766 | PyObject * obj3 = 0 ; | |
2767 | char *kwnames[] = { | |
2768 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2769 | }; | |
2770 | ||
2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2772 | { | |
2773 | arg1 = wxString_in_helper(obj0); | |
2774 | if (arg1 == NULL) SWIG_fail; | |
2775 | temp1 = True; | |
2776 | } | |
2777 | { | |
2778 | arg2 = wxString_in_helper(obj1); | |
2779 | if (arg2 == NULL) SWIG_fail; | |
2780 | temp2 = True; | |
2781 | } | |
2782 | if (obj2) { | |
2783 | { | |
2784 | arg3 = wxString_in_helper(obj2); | |
2785 | if (arg3 == NULL) SWIG_fail; | |
2786 | temp3 = True; | |
2787 | } | |
2788 | } | |
2789 | if (obj3) { | |
2790 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2791 | } | |
2792 | { | |
2793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2794 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2795 | ||
2796 | wxPyEndAllowThreads(__tstate); | |
2797 | if (PyErr_Occurred()) SWIG_fail; | |
2798 | } | |
2799 | { | |
2800 | #if wxUSE_UNICODE | |
2801 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2802 | #else | |
2803 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2804 | #endif | |
2805 | } | |
2806 | { | |
2807 | if (temp1) | |
2808 | delete arg1; | |
2809 | } | |
2810 | { | |
2811 | if (temp2) | |
2812 | delete arg2; | |
2813 | } | |
2814 | { | |
2815 | if (temp3) | |
2816 | delete arg3; | |
2817 | } | |
2818 | return resultobj; | |
2819 | fail: | |
2820 | { | |
2821 | if (temp1) | |
2822 | delete arg1; | |
2823 | } | |
2824 | { | |
2825 | if (temp2) | |
2826 | delete arg2; | |
2827 | } | |
2828 | { | |
2829 | if (temp3) | |
2830 | delete arg3; | |
2831 | } | |
2832 | return NULL; | |
2833 | } | |
2834 | ||
2835 | ||
2836 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2837 | PyObject *resultobj; | |
2838 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2839 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2840 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2841 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2842 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
2843 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2844 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2845 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2846 | wxString result; | |
2847 | bool temp1 = False ; | |
2848 | bool temp2 = False ; | |
2849 | wxPoint temp4 ; | |
2850 | PyObject * obj0 = 0 ; | |
2851 | PyObject * obj1 = 0 ; | |
2852 | PyObject * obj2 = 0 ; | |
2853 | PyObject * obj3 = 0 ; | |
2854 | PyObject * obj4 = 0 ; | |
2855 | char *kwnames[] = { | |
2856 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
2857 | }; | |
2858 | ||
2859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2860 | if (obj0) { | |
2861 | { | |
2862 | arg1 = wxString_in_helper(obj0); | |
2863 | if (arg1 == NULL) SWIG_fail; | |
2864 | temp1 = True; | |
2865 | } | |
2866 | } | |
2867 | if (obj1) { | |
2868 | { | |
2869 | arg2 = wxString_in_helper(obj1); | |
2870 | if (arg2 == NULL) SWIG_fail; | |
2871 | temp2 = True; | |
2872 | } | |
2873 | } | |
2874 | if (obj2) { | |
2875 | { | |
2876 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
2877 | if (PyErr_Occurred()) SWIG_fail; | |
2878 | } | |
2879 | } | |
2880 | if (obj3) { | |
2881 | { | |
2882 | arg4 = &temp4; | |
2883 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2884 | } | |
2885 | } | |
2886 | if (obj4) { | |
2887 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2888 | } | |
2889 | { | |
2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2891 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
2892 | ||
2893 | wxPyEndAllowThreads(__tstate); | |
2894 | if (PyErr_Occurred()) SWIG_fail; | |
2895 | } | |
2896 | { | |
2897 | #if wxUSE_UNICODE | |
2898 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2899 | #else | |
2900 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2901 | #endif | |
2902 | } | |
2903 | { | |
2904 | if (temp1) | |
2905 | delete arg1; | |
2906 | } | |
2907 | { | |
2908 | if (temp2) | |
2909 | delete arg2; | |
2910 | } | |
2911 | return resultobj; | |
2912 | fail: | |
2913 | { | |
2914 | if (temp1) | |
2915 | delete arg1; | |
2916 | } | |
2917 | { | |
2918 | if (temp2) | |
2919 | delete arg2; | |
2920 | } | |
2921 | return NULL; | |
2922 | } | |
2923 | ||
2924 | ||
2925 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2926 | PyObject *resultobj; | |
2927 | wxString *arg1 = 0 ; | |
2928 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2929 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2930 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2931 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2932 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2933 | int arg5 = (int) -1 ; | |
2934 | int arg6 = (int) -1 ; | |
2935 | bool arg7 = (bool) True ; | |
2936 | wxString result; | |
2937 | bool temp1 = False ; | |
2938 | bool temp2 = False ; | |
2939 | bool temp3 = False ; | |
2940 | PyObject * obj0 = 0 ; | |
2941 | PyObject * obj1 = 0 ; | |
2942 | PyObject * obj2 = 0 ; | |
2943 | PyObject * obj3 = 0 ; | |
2944 | PyObject * obj4 = 0 ; | |
2945 | PyObject * obj5 = 0 ; | |
2946 | PyObject * obj6 = 0 ; | |
2947 | char *kwnames[] = { | |
2948 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
2949 | }; | |
2950 | ||
2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
2952 | { | |
2953 | arg1 = wxString_in_helper(obj0); | |
2954 | if (arg1 == NULL) SWIG_fail; | |
2955 | temp1 = True; | |
2956 | } | |
2957 | if (obj1) { | |
2958 | { | |
2959 | arg2 = wxString_in_helper(obj1); | |
2960 | if (arg2 == NULL) SWIG_fail; | |
2961 | temp2 = True; | |
2962 | } | |
2963 | } | |
2964 | if (obj2) { | |
2965 | { | |
2966 | arg3 = wxString_in_helper(obj2); | |
2967 | if (arg3 == NULL) SWIG_fail; | |
2968 | temp3 = True; | |
2969 | } | |
2970 | } | |
2971 | if (obj3) { | |
2972 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2973 | } | |
2974 | if (obj4) { | |
2975 | { | |
2976 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
2977 | if (PyErr_Occurred()) SWIG_fail; | |
2978 | } | |
2979 | } | |
2980 | if (obj5) { | |
2981 | { | |
2982 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
2983 | if (PyErr_Occurred()) SWIG_fail; | |
2984 | } | |
2985 | } | |
2986 | if (obj6) { | |
2987 | { | |
2988 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); | |
2989 | if (PyErr_Occurred()) SWIG_fail; | |
2990 | } | |
2991 | } | |
2992 | { | |
2993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2994 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
2995 | ||
2996 | wxPyEndAllowThreads(__tstate); | |
2997 | if (PyErr_Occurred()) SWIG_fail; | |
2998 | } | |
2999 | { | |
3000 | #if wxUSE_UNICODE | |
3001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3002 | #else | |
3003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3004 | #endif | |
3005 | } | |
3006 | { | |
3007 | if (temp1) | |
3008 | delete arg1; | |
3009 | } | |
3010 | { | |
3011 | if (temp2) | |
3012 | delete arg2; | |
3013 | } | |
3014 | { | |
3015 | if (temp3) | |
3016 | delete arg3; | |
3017 | } | |
3018 | return resultobj; | |
3019 | fail: | |
3020 | { | |
3021 | if (temp1) | |
3022 | delete arg1; | |
3023 | } | |
3024 | { | |
3025 | if (temp2) | |
3026 | delete arg2; | |
3027 | } | |
3028 | { | |
3029 | if (temp3) | |
3030 | delete arg3; | |
3031 | } | |
3032 | return NULL; | |
3033 | } | |
3034 | ||
3035 | ||
3036 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3037 | PyObject *resultobj; | |
3038 | wxString *arg1 = 0 ; | |
3039 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3040 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3041 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3042 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3043 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3044 | wxString result; | |
3045 | bool temp1 = False ; | |
3046 | bool temp2 = False ; | |
3047 | bool temp3 = False ; | |
3048 | PyObject * obj0 = 0 ; | |
3049 | PyObject * obj1 = 0 ; | |
3050 | PyObject * obj2 = 0 ; | |
3051 | PyObject * obj3 = 0 ; | |
3052 | char *kwnames[] = { | |
3053 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3054 | }; | |
3055 | ||
3056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3057 | { | |
3058 | arg1 = wxString_in_helper(obj0); | |
3059 | if (arg1 == NULL) SWIG_fail; | |
3060 | temp1 = True; | |
3061 | } | |
3062 | if (obj1) { | |
3063 | { | |
3064 | arg2 = wxString_in_helper(obj1); | |
3065 | if (arg2 == NULL) SWIG_fail; | |
3066 | temp2 = True; | |
3067 | } | |
3068 | } | |
3069 | if (obj2) { | |
3070 | { | |
3071 | arg3 = wxString_in_helper(obj2); | |
3072 | if (arg3 == NULL) SWIG_fail; | |
3073 | temp3 = True; | |
3074 | } | |
3075 | } | |
3076 | if (obj3) { | |
3077 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3078 | } | |
3079 | { | |
3080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3081 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3082 | ||
3083 | wxPyEndAllowThreads(__tstate); | |
3084 | if (PyErr_Occurred()) SWIG_fail; | |
3085 | } | |
3086 | { | |
3087 | #if wxUSE_UNICODE | |
3088 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3089 | #else | |
3090 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3091 | #endif | |
3092 | } | |
3093 | { | |
3094 | if (temp1) | |
3095 | delete arg1; | |
3096 | } | |
3097 | { | |
3098 | if (temp2) | |
3099 | delete arg2; | |
3100 | } | |
3101 | { | |
3102 | if (temp3) | |
3103 | delete arg3; | |
3104 | } | |
3105 | return resultobj; | |
3106 | fail: | |
3107 | { | |
3108 | if (temp1) | |
3109 | delete arg1; | |
3110 | } | |
3111 | { | |
3112 | if (temp2) | |
3113 | delete arg2; | |
3114 | } | |
3115 | { | |
3116 | if (temp3) | |
3117 | delete arg3; | |
3118 | } | |
3119 | return NULL; | |
3120 | } | |
3121 | ||
3122 | ||
3123 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3124 | PyObject *resultobj; | |
3125 | wxString *arg1 = 0 ; | |
3126 | wxString *arg2 = 0 ; | |
3127 | int arg3 ; | |
3128 | wxString *arg4 = (wxString *) 0 ; | |
3129 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3130 | int arg6 = (int) -1 ; | |
3131 | int arg7 = (int) -1 ; | |
3132 | bool arg8 = (bool) True ; | |
3133 | int arg9 = (int) 150 ; | |
3134 | int arg10 = (int) 200 ; | |
3135 | wxString result; | |
3136 | bool temp1 = False ; | |
3137 | bool temp2 = False ; | |
3138 | PyObject * obj0 = 0 ; | |
3139 | PyObject * obj1 = 0 ; | |
3140 | PyObject * obj2 = 0 ; | |
3141 | PyObject * obj3 = 0 ; | |
3142 | PyObject * obj4 = 0 ; | |
3143 | PyObject * obj5 = 0 ; | |
3144 | PyObject * obj6 = 0 ; | |
3145 | PyObject * obj7 = 0 ; | |
3146 | PyObject * obj8 = 0 ; | |
3147 | char *kwnames[] = { | |
3148 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3149 | }; | |
3150 | ||
3151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3152 | { | |
3153 | arg1 = wxString_in_helper(obj0); | |
3154 | if (arg1 == NULL) SWIG_fail; | |
3155 | temp1 = True; | |
3156 | } | |
3157 | { | |
3158 | arg2 = wxString_in_helper(obj1); | |
3159 | if (arg2 == NULL) SWIG_fail; | |
3160 | temp2 = True; | |
3161 | } | |
3162 | { | |
3163 | arg3 = PyList_Size(obj2); | |
3164 | arg4 = wxString_LIST_helper(obj2); | |
3165 | if (arg4 == NULL) SWIG_fail; | |
3166 | } | |
3167 | if (obj3) { | |
3168 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3169 | } | |
3170 | if (obj4) { | |
3171 | { | |
3172 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
3173 | if (PyErr_Occurred()) SWIG_fail; | |
3174 | } | |
3175 | } | |
3176 | if (obj5) { | |
3177 | { | |
3178 | arg7 = (int) SWIG_PyObj_AsInt(obj5); | |
3179 | if (PyErr_Occurred()) SWIG_fail; | |
3180 | } | |
3181 | } | |
3182 | if (obj6) { | |
3183 | { | |
3184 | arg8 = (bool) SWIG_PyObj_AsBool(obj6); | |
3185 | if (PyErr_Occurred()) SWIG_fail; | |
3186 | } | |
3187 | } | |
3188 | if (obj7) { | |
3189 | { | |
3190 | arg9 = (int) SWIG_PyObj_AsInt(obj7); | |
3191 | if (PyErr_Occurred()) SWIG_fail; | |
3192 | } | |
3193 | } | |
3194 | if (obj8) { | |
3195 | { | |
3196 | arg10 = (int) SWIG_PyObj_AsInt(obj8); | |
3197 | if (PyErr_Occurred()) SWIG_fail; | |
3198 | } | |
3199 | } | |
3200 | { | |
3201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3202 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3203 | ||
3204 | wxPyEndAllowThreads(__tstate); | |
3205 | if (PyErr_Occurred()) SWIG_fail; | |
3206 | } | |
3207 | { | |
3208 | #if wxUSE_UNICODE | |
3209 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3210 | #else | |
3211 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3212 | #endif | |
3213 | } | |
3214 | { | |
3215 | if (temp1) | |
3216 | delete arg1; | |
3217 | } | |
3218 | { | |
3219 | if (temp2) | |
3220 | delete arg2; | |
3221 | } | |
3222 | { | |
3223 | if (arg4) delete [] arg4; | |
3224 | } | |
3225 | return resultobj; | |
3226 | fail: | |
3227 | { | |
3228 | if (temp1) | |
3229 | delete arg1; | |
3230 | } | |
3231 | { | |
3232 | if (temp2) | |
3233 | delete arg2; | |
3234 | } | |
3235 | { | |
3236 | if (arg4) delete [] arg4; | |
3237 | } | |
3238 | return NULL; | |
3239 | } | |
3240 | ||
3241 | ||
3242 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3243 | PyObject *resultobj; | |
3244 | wxString *arg1 = 0 ; | |
3245 | wxString *arg2 = 0 ; | |
3246 | int arg3 ; | |
3247 | wxString *arg4 = (wxString *) 0 ; | |
3248 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3249 | int arg6 = (int) -1 ; | |
3250 | int arg7 = (int) -1 ; | |
3251 | bool arg8 = (bool) True ; | |
3252 | int arg9 = (int) 150 ; | |
3253 | int arg10 = (int) 200 ; | |
3254 | int result; | |
3255 | bool temp1 = False ; | |
3256 | bool temp2 = False ; | |
3257 | PyObject * obj0 = 0 ; | |
3258 | PyObject * obj1 = 0 ; | |
3259 | PyObject * obj2 = 0 ; | |
3260 | PyObject * obj3 = 0 ; | |
3261 | PyObject * obj4 = 0 ; | |
3262 | PyObject * obj5 = 0 ; | |
3263 | PyObject * obj6 = 0 ; | |
3264 | PyObject * obj7 = 0 ; | |
3265 | PyObject * obj8 = 0 ; | |
3266 | char *kwnames[] = { | |
3267 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3268 | }; | |
3269 | ||
3270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3271 | { | |
3272 | arg1 = wxString_in_helper(obj0); | |
3273 | if (arg1 == NULL) SWIG_fail; | |
3274 | temp1 = True; | |
3275 | } | |
3276 | { | |
3277 | arg2 = wxString_in_helper(obj1); | |
3278 | if (arg2 == NULL) SWIG_fail; | |
3279 | temp2 = True; | |
3280 | } | |
3281 | { | |
3282 | arg3 = PyList_Size(obj2); | |
3283 | arg4 = wxString_LIST_helper(obj2); | |
3284 | if (arg4 == NULL) SWIG_fail; | |
3285 | } | |
3286 | if (obj3) { | |
3287 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3288 | } | |
3289 | if (obj4) { | |
3290 | { | |
3291 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
3292 | if (PyErr_Occurred()) SWIG_fail; | |
3293 | } | |
3294 | } | |
3295 | if (obj5) { | |
3296 | { | |
3297 | arg7 = (int) SWIG_PyObj_AsInt(obj5); | |
3298 | if (PyErr_Occurred()) SWIG_fail; | |
3299 | } | |
3300 | } | |
3301 | if (obj6) { | |
3302 | { | |
3303 | arg8 = (bool) SWIG_PyObj_AsBool(obj6); | |
3304 | if (PyErr_Occurred()) SWIG_fail; | |
3305 | } | |
3306 | } | |
3307 | if (obj7) { | |
3308 | { | |
3309 | arg9 = (int) SWIG_PyObj_AsInt(obj7); | |
3310 | if (PyErr_Occurred()) SWIG_fail; | |
3311 | } | |
3312 | } | |
3313 | if (obj8) { | |
3314 | { | |
3315 | arg10 = (int) SWIG_PyObj_AsInt(obj8); | |
3316 | if (PyErr_Occurred()) SWIG_fail; | |
3317 | } | |
3318 | } | |
3319 | { | |
3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3321 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3322 | ||
3323 | wxPyEndAllowThreads(__tstate); | |
3324 | if (PyErr_Occurred()) SWIG_fail; | |
3325 | } | |
3326 | resultobj = SWIG_PyObj_FromInt((int)result); | |
3327 | { | |
3328 | if (temp1) | |
3329 | delete arg1; | |
3330 | } | |
3331 | { | |
3332 | if (temp2) | |
3333 | delete arg2; | |
3334 | } | |
3335 | { | |
3336 | if (arg4) delete [] arg4; | |
3337 | } | |
3338 | return resultobj; | |
3339 | fail: | |
3340 | { | |
3341 | if (temp1) | |
3342 | delete arg1; | |
3343 | } | |
3344 | { | |
3345 | if (temp2) | |
3346 | delete arg2; | |
3347 | } | |
3348 | { | |
3349 | if (arg4) delete [] arg4; | |
3350 | } | |
3351 | return NULL; | |
3352 | } | |
3353 | ||
3354 | ||
3355 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3356 | PyObject *resultobj; | |
3357 | wxString *arg1 = 0 ; | |
3358 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3359 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3360 | int arg3 = (int) wxOK|wxCENTRE ; | |
3361 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3362 | int arg5 = (int) -1 ; | |
3363 | int arg6 = (int) -1 ; | |
3364 | int result; | |
3365 | bool temp1 = False ; | |
3366 | bool temp2 = False ; | |
3367 | PyObject * obj0 = 0 ; | |
3368 | PyObject * obj1 = 0 ; | |
3369 | PyObject * obj2 = 0 ; | |
3370 | PyObject * obj3 = 0 ; | |
3371 | PyObject * obj4 = 0 ; | |
3372 | PyObject * obj5 = 0 ; | |
3373 | char *kwnames[] = { | |
3374 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3375 | }; | |
3376 | ||
3377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3378 | { | |
3379 | arg1 = wxString_in_helper(obj0); | |
3380 | if (arg1 == NULL) SWIG_fail; | |
3381 | temp1 = True; | |
3382 | } | |
3383 | if (obj1) { | |
3384 | { | |
3385 | arg2 = wxString_in_helper(obj1); | |
3386 | if (arg2 == NULL) SWIG_fail; | |
3387 | temp2 = True; | |
3388 | } | |
3389 | } | |
3390 | if (obj2) { | |
3391 | { | |
3392 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3393 | if (PyErr_Occurred()) SWIG_fail; | |
3394 | } | |
3395 | } | |
3396 | if (obj3) { | |
3397 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3398 | } | |
3399 | if (obj4) { | |
3400 | { | |
3401 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
3402 | if (PyErr_Occurred()) SWIG_fail; | |
3403 | } | |
3404 | } | |
3405 | if (obj5) { | |
3406 | { | |
3407 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
3408 | if (PyErr_Occurred()) SWIG_fail; | |
3409 | } | |
3410 | } | |
3411 | { | |
3412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3413 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3414 | ||
3415 | wxPyEndAllowThreads(__tstate); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | } | |
3418 | resultobj = SWIG_PyObj_FromInt((int)result); | |
3419 | { | |
3420 | if (temp1) | |
3421 | delete arg1; | |
3422 | } | |
3423 | { | |
3424 | if (temp2) | |
3425 | delete arg2; | |
3426 | } | |
3427 | return resultobj; | |
3428 | fail: | |
3429 | { | |
3430 | if (temp1) | |
3431 | delete arg1; | |
3432 | } | |
3433 | { | |
3434 | if (temp2) | |
3435 | delete arg2; | |
3436 | } | |
3437 | return NULL; | |
3438 | } | |
3439 | ||
3440 | ||
3441 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3442 | PyObject *resultobj; | |
3443 | wxString *arg1 = 0 ; | |
3444 | wxString *arg2 = 0 ; | |
3445 | wxString *arg3 = 0 ; | |
3446 | long arg4 ; | |
3447 | long arg5 = (long) 0 ; | |
3448 | long arg6 = (long) 100 ; | |
3449 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3450 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3451 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3452 | long result; | |
3453 | bool temp1 = False ; | |
3454 | bool temp2 = False ; | |
3455 | bool temp3 = False ; | |
3456 | wxPoint temp8 ; | |
3457 | PyObject * obj0 = 0 ; | |
3458 | PyObject * obj1 = 0 ; | |
3459 | PyObject * obj2 = 0 ; | |
3460 | PyObject * obj3 = 0 ; | |
3461 | PyObject * obj4 = 0 ; | |
3462 | PyObject * obj5 = 0 ; | |
3463 | PyObject * obj6 = 0 ; | |
3464 | PyObject * obj7 = 0 ; | |
3465 | char *kwnames[] = { | |
3466 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3467 | }; | |
3468 | ||
3469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3470 | { | |
3471 | arg1 = wxString_in_helper(obj0); | |
3472 | if (arg1 == NULL) SWIG_fail; | |
3473 | temp1 = True; | |
3474 | } | |
3475 | { | |
3476 | arg2 = wxString_in_helper(obj1); | |
3477 | if (arg2 == NULL) SWIG_fail; | |
3478 | temp2 = True; | |
3479 | } | |
3480 | { | |
3481 | arg3 = wxString_in_helper(obj2); | |
3482 | if (arg3 == NULL) SWIG_fail; | |
3483 | temp3 = True; | |
3484 | } | |
3485 | { | |
3486 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
3487 | if (PyErr_Occurred()) SWIG_fail; | |
3488 | } | |
3489 | if (obj4) { | |
3490 | { | |
3491 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
3492 | if (PyErr_Occurred()) SWIG_fail; | |
3493 | } | |
3494 | } | |
3495 | if (obj5) { | |
3496 | { | |
3497 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3498 | if (PyErr_Occurred()) SWIG_fail; | |
3499 | } | |
3500 | } | |
3501 | if (obj6) { | |
3502 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3503 | } | |
3504 | if (obj7) { | |
3505 | { | |
3506 | arg8 = &temp8; | |
3507 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3508 | } | |
3509 | } | |
3510 | { | |
3511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3512 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3513 | ||
3514 | wxPyEndAllowThreads(__tstate); | |
3515 | if (PyErr_Occurred()) SWIG_fail; | |
3516 | } | |
3517 | resultobj = SWIG_PyObj_FromLong((long)result); | |
3518 | { | |
3519 | if (temp1) | |
3520 | delete arg1; | |
3521 | } | |
3522 | { | |
3523 | if (temp2) | |
3524 | delete arg2; | |
3525 | } | |
3526 | { | |
3527 | if (temp3) | |
3528 | delete arg3; | |
3529 | } | |
3530 | return resultobj; | |
3531 | fail: | |
3532 | { | |
3533 | if (temp1) | |
3534 | delete arg1; | |
3535 | } | |
3536 | { | |
3537 | if (temp2) | |
3538 | delete arg2; | |
3539 | } | |
3540 | { | |
3541 | if (temp3) | |
3542 | delete arg3; | |
3543 | } | |
3544 | return NULL; | |
3545 | } | |
3546 | ||
3547 | ||
3548 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3549 | PyObject *resultobj; | |
3550 | bool result; | |
3551 | char *kwnames[] = { | |
3552 | NULL | |
3553 | }; | |
3554 | ||
3555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3556 | { | |
3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3558 | result = (bool)wxColourDisplay(); | |
3559 | ||
3560 | wxPyEndAllowThreads(__tstate); | |
3561 | if (PyErr_Occurred()) SWIG_fail; | |
3562 | } | |
3563 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
3564 | return resultobj; | |
3565 | fail: | |
3566 | return NULL; | |
3567 | } | |
3568 | ||
3569 | ||
3570 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3571 | PyObject *resultobj; | |
3572 | int result; | |
3573 | char *kwnames[] = { | |
3574 | NULL | |
3575 | }; | |
3576 | ||
3577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3578 | { | |
3579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3580 | result = (int)wxDisplayDepth(); | |
3581 | ||
3582 | wxPyEndAllowThreads(__tstate); | |
3583 | if (PyErr_Occurred()) SWIG_fail; | |
3584 | } | |
3585 | resultobj = SWIG_PyObj_FromInt((int)result); | |
3586 | return resultobj; | |
3587 | fail: | |
3588 | return NULL; | |
3589 | } | |
3590 | ||
3591 | ||
3592 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3593 | PyObject *resultobj; | |
3594 | int result; | |
3595 | char *kwnames[] = { | |
3596 | NULL | |
3597 | }; | |
3598 | ||
3599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3600 | { | |
3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3602 | result = (int)wxGetDisplayDepth(); | |
3603 | ||
3604 | wxPyEndAllowThreads(__tstate); | |
3605 | if (PyErr_Occurred()) SWIG_fail; | |
3606 | } | |
3607 | resultobj = SWIG_PyObj_FromInt((int)result); | |
3608 | return resultobj; | |
3609 | fail: | |
3610 | return NULL; | |
3611 | } | |
3612 | ||
3613 | ||
3614 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3615 | PyObject *resultobj; | |
3616 | int *arg1 = (int *) 0 ; | |
3617 | int *arg2 = (int *) 0 ; | |
3618 | int temp1 ; | |
3619 | int temp2 ; | |
3620 | char *kwnames[] = { | |
3621 | NULL | |
3622 | }; | |
3623 | ||
3624 | arg1 = &temp1; | |
3625 | arg2 = &temp2; | |
3626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3627 | { | |
3628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3629 | wxDisplaySize(arg1,arg2); | |
3630 | ||
3631 | wxPyEndAllowThreads(__tstate); | |
3632 | if (PyErr_Occurred()) SWIG_fail; | |
3633 | } | |
3634 | Py_INCREF(Py_None); resultobj = Py_None; | |
3635 | { | |
3636 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3637 | resultobj = t_output_helper(resultobj,o); | |
3638 | } | |
3639 | { | |
3640 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3641 | resultobj = t_output_helper(resultobj,o); | |
3642 | } | |
3643 | return resultobj; | |
3644 | fail: | |
3645 | return NULL; | |
3646 | } | |
3647 | ||
3648 | ||
3649 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3650 | PyObject *resultobj; | |
3651 | wxSize result; | |
3652 | char *kwnames[] = { | |
3653 | NULL | |
3654 | }; | |
3655 | ||
3656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3657 | { | |
3658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3659 | result = wxGetDisplaySize(); | |
3660 | ||
3661 | wxPyEndAllowThreads(__tstate); | |
3662 | if (PyErr_Occurred()) SWIG_fail; | |
3663 | } | |
3664 | { | |
3665 | wxSize * resultptr; | |
3666 | resultptr = new wxSize((wxSize &) result); | |
3667 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3668 | } | |
3669 | return resultobj; | |
3670 | fail: | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
3675 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3676 | PyObject *resultobj; | |
3677 | int *arg1 = (int *) 0 ; | |
3678 | int *arg2 = (int *) 0 ; | |
3679 | int temp1 ; | |
3680 | int temp2 ; | |
3681 | char *kwnames[] = { | |
3682 | NULL | |
3683 | }; | |
3684 | ||
3685 | arg1 = &temp1; | |
3686 | arg2 = &temp2; | |
3687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3688 | { | |
3689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3690 | wxDisplaySizeMM(arg1,arg2); | |
3691 | ||
3692 | wxPyEndAllowThreads(__tstate); | |
3693 | if (PyErr_Occurred()) SWIG_fail; | |
3694 | } | |
3695 | Py_INCREF(Py_None); resultobj = Py_None; | |
3696 | { | |
3697 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3698 | resultobj = t_output_helper(resultobj,o); | |
3699 | } | |
3700 | { | |
3701 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3702 | resultobj = t_output_helper(resultobj,o); | |
3703 | } | |
3704 | return resultobj; | |
3705 | fail: | |
3706 | return NULL; | |
3707 | } | |
3708 | ||
3709 | ||
3710 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3711 | PyObject *resultobj; | |
3712 | wxSize result; | |
3713 | char *kwnames[] = { | |
3714 | NULL | |
3715 | }; | |
3716 | ||
3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3718 | { | |
3719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3720 | result = wxGetDisplaySizeMM(); | |
3721 | ||
3722 | wxPyEndAllowThreads(__tstate); | |
3723 | if (PyErr_Occurred()) SWIG_fail; | |
3724 | } | |
3725 | { | |
3726 | wxSize * resultptr; | |
3727 | resultptr = new wxSize((wxSize &) result); | |
3728 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3729 | } | |
3730 | return resultobj; | |
3731 | fail: | |
3732 | return NULL; | |
3733 | } | |
3734 | ||
3735 | ||
3736 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3737 | PyObject *resultobj; | |
3738 | int *arg1 = (int *) 0 ; | |
3739 | int *arg2 = (int *) 0 ; | |
3740 | int *arg3 = (int *) 0 ; | |
3741 | int *arg4 = (int *) 0 ; | |
3742 | int temp1 ; | |
3743 | int temp2 ; | |
3744 | int temp3 ; | |
3745 | int temp4 ; | |
3746 | char *kwnames[] = { | |
3747 | NULL | |
3748 | }; | |
3749 | ||
3750 | arg1 = &temp1; | |
3751 | arg2 = &temp2; | |
3752 | arg3 = &temp3; | |
3753 | arg4 = &temp4; | |
3754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3755 | { | |
3756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3757 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3758 | ||
3759 | wxPyEndAllowThreads(__tstate); | |
3760 | if (PyErr_Occurred()) SWIG_fail; | |
3761 | } | |
3762 | Py_INCREF(Py_None); resultobj = Py_None; | |
3763 | { | |
3764 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3765 | resultobj = t_output_helper(resultobj,o); | |
3766 | } | |
3767 | { | |
3768 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3769 | resultobj = t_output_helper(resultobj,o); | |
3770 | } | |
3771 | { | |
3772 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3773 | resultobj = t_output_helper(resultobj,o); | |
3774 | } | |
3775 | { | |
3776 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3777 | resultobj = t_output_helper(resultobj,o); | |
3778 | } | |
3779 | return resultobj; | |
3780 | fail: | |
3781 | return NULL; | |
3782 | } | |
3783 | ||
3784 | ||
3785 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3786 | PyObject *resultobj; | |
3787 | wxRect result; | |
3788 | char *kwnames[] = { | |
3789 | NULL | |
3790 | }; | |
3791 | ||
3792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3793 | { | |
3794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3795 | result = wxGetClientDisplayRect(); | |
3796 | ||
3797 | wxPyEndAllowThreads(__tstate); | |
3798 | if (PyErr_Occurred()) SWIG_fail; | |
3799 | } | |
3800 | { | |
3801 | wxRect * resultptr; | |
3802 | resultptr = new wxRect((wxRect &) result); | |
3803 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3804 | } | |
3805 | return resultobj; | |
3806 | fail: | |
3807 | return NULL; | |
3808 | } | |
3809 | ||
3810 | ||
3811 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3812 | PyObject *resultobj; | |
3813 | wxCursor *arg1 = 0 ; | |
3814 | PyObject * obj0 = 0 ; | |
3815 | char *kwnames[] = { | |
3816 | (char *) "cursor", NULL | |
3817 | }; | |
3818 | ||
3819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3821 | if (arg1 == NULL) { | |
3822 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3823 | } | |
3824 | { | |
3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3826 | wxSetCursor(*arg1); | |
3827 | ||
3828 | wxPyEndAllowThreads(__tstate); | |
3829 | if (PyErr_Occurred()) SWIG_fail; | |
3830 | } | |
3831 | Py_INCREF(Py_None); resultobj = Py_None; | |
3832 | return resultobj; | |
3833 | fail: | |
3834 | return NULL; | |
3835 | } | |
3836 | ||
3837 | ||
3838 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3839 | PyObject *resultobj; | |
3840 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3841 | PyObject * obj0 = 0 ; | |
3842 | char *kwnames[] = { | |
3843 | (char *) "cursor", NULL | |
3844 | }; | |
3845 | ||
3846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3847 | if (obj0) { | |
3848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3849 | } | |
3850 | { | |
3851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3852 | wxBeginBusyCursor(arg1); | |
3853 | ||
3854 | wxPyEndAllowThreads(__tstate); | |
3855 | if (PyErr_Occurred()) SWIG_fail; | |
3856 | } | |
3857 | Py_INCREF(Py_None); resultobj = Py_None; | |
3858 | return resultobj; | |
3859 | fail: | |
3860 | return NULL; | |
3861 | } | |
3862 | ||
3863 | ||
3864 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3865 | PyObject *resultobj; | |
3866 | wxWindow *result; | |
3867 | char *kwnames[] = { | |
3868 | NULL | |
3869 | }; | |
3870 | ||
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
3872 | { | |
3873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3874 | result = (wxWindow *)wxGetActiveWindow(); | |
3875 | ||
3876 | wxPyEndAllowThreads(__tstate); | |
3877 | if (PyErr_Occurred()) SWIG_fail; | |
3878 | } | |
3879 | { | |
3880 | resultobj = wxPyMake_wxObject(result); | |
3881 | } | |
3882 | return resultobj; | |
3883 | fail: | |
3884 | return NULL; | |
3885 | } | |
3886 | ||
3887 | ||
3888 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3889 | PyObject *resultobj; | |
3890 | wxPoint *arg1 = 0 ; | |
3891 | wxWindow *result; | |
3892 | wxPoint temp1 ; | |
3893 | PyObject * obj0 = 0 ; | |
3894 | char *kwnames[] = { | |
3895 | (char *) "pt", NULL | |
3896 | }; | |
3897 | ||
3898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3899 | { | |
3900 | arg1 = &temp1; | |
3901 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3902 | } | |
3903 | { | |
3904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3905 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
3906 | ||
3907 | wxPyEndAllowThreads(__tstate); | |
3908 | if (PyErr_Occurred()) SWIG_fail; | |
3909 | } | |
3910 | { | |
3911 | resultobj = wxPyMake_wxObject(result); | |
3912 | } | |
3913 | return resultobj; | |
3914 | fail: | |
3915 | return NULL; | |
3916 | } | |
3917 | ||
3918 | ||
3919 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3920 | PyObject *resultobj; | |
3921 | wxPoint *arg1 = 0 ; | |
3922 | wxWindow *result; | |
3923 | wxPoint temp1 ; | |
3924 | PyObject * obj0 = 0 ; | |
3925 | char *kwnames[] = { | |
3926 | (char *) "pt", NULL | |
3927 | }; | |
3928 | ||
3929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3930 | { | |
3931 | arg1 = &temp1; | |
3932 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3933 | } | |
3934 | { | |
3935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3936 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
3937 | ||
3938 | wxPyEndAllowThreads(__tstate); | |
3939 | if (PyErr_Occurred()) SWIG_fail; | |
3940 | } | |
3941 | { | |
3942 | resultobj = wxPyMake_wxObject(result); | |
3943 | } | |
3944 | return resultobj; | |
3945 | fail: | |
3946 | return NULL; | |
3947 | } | |
3948 | ||
3949 | ||
3950 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3951 | PyObject *resultobj; | |
3952 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3953 | wxWindow *result; | |
3954 | PyObject * obj0 = 0 ; | |
3955 | char *kwnames[] = { | |
3956 | (char *) "win", NULL | |
3957 | }; | |
3958 | ||
3959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
3960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3961 | { | |
3962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3963 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
3964 | ||
3965 | wxPyEndAllowThreads(__tstate); | |
3966 | if (PyErr_Occurred()) SWIG_fail; | |
3967 | } | |
3968 | { | |
3969 | resultobj = wxPyMake_wxObject(result); | |
3970 | } | |
3971 | return resultobj; | |
3972 | fail: | |
3973 | return NULL; | |
3974 | } | |
3975 | ||
3976 | ||
3977 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3978 | PyObject *resultobj; | |
3979 | int arg1 ; | |
3980 | bool result; | |
3981 | PyObject * obj0 = 0 ; | |
3982 | char *kwnames[] = { | |
3983 | (char *) "key", NULL | |
3984 | }; | |
3985 | ||
3986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
3987 | { | |
3988 | arg1 = (wxKeyCode) SWIG_PyObj_AsInt(obj0); | |
3989 | if (PyErr_Occurred()) SWIG_fail; | |
3990 | } | |
3991 | { | |
3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3993 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
3994 | ||
3995 | wxPyEndAllowThreads(__tstate); | |
3996 | if (PyErr_Occurred()) SWIG_fail; | |
3997 | } | |
3998 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
3999 | return resultobj; | |
4000 | fail: | |
4001 | return NULL; | |
4002 | } | |
4003 | ||
4004 | ||
4005 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4006 | PyObject *resultobj; | |
4007 | char *kwnames[] = { | |
4008 | NULL | |
4009 | }; | |
4010 | ||
4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4012 | { | |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | wxWakeUpMainThread(); | |
4015 | ||
4016 | wxPyEndAllowThreads(__tstate); | |
4017 | if (PyErr_Occurred()) SWIG_fail; | |
4018 | } | |
4019 | Py_INCREF(Py_None); resultobj = Py_None; | |
4020 | return resultobj; | |
4021 | fail: | |
4022 | return NULL; | |
4023 | } | |
4024 | ||
4025 | ||
4026 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4027 | PyObject *resultobj; | |
4028 | char *kwnames[] = { | |
4029 | NULL | |
4030 | }; | |
4031 | ||
4032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4033 | { | |
4034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4035 | wxMutexGuiEnter(); | |
4036 | ||
4037 | wxPyEndAllowThreads(__tstate); | |
4038 | if (PyErr_Occurred()) SWIG_fail; | |
4039 | } | |
4040 | Py_INCREF(Py_None); resultobj = Py_None; | |
4041 | return resultobj; | |
4042 | fail: | |
4043 | return NULL; | |
4044 | } | |
4045 | ||
4046 | ||
4047 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4048 | PyObject *resultobj; | |
4049 | char *kwnames[] = { | |
4050 | NULL | |
4051 | }; | |
4052 | ||
4053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4054 | { | |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4056 | wxMutexGuiLeave(); | |
4057 | ||
4058 | wxPyEndAllowThreads(__tstate); | |
4059 | if (PyErr_Occurred()) SWIG_fail; | |
4060 | } | |
4061 | Py_INCREF(Py_None); resultobj = Py_None; | |
4062 | return resultobj; | |
4063 | fail: | |
4064 | return NULL; | |
4065 | } | |
4066 | ||
4067 | ||
4068 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4069 | PyObject *resultobj; | |
4070 | wxMutexGuiLocker *result; | |
4071 | char *kwnames[] = { | |
4072 | NULL | |
4073 | }; | |
4074 | ||
4075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4076 | { | |
4077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4078 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4079 | ||
4080 | wxPyEndAllowThreads(__tstate); | |
4081 | if (PyErr_Occurred()) SWIG_fail; | |
4082 | } | |
4083 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4084 | return resultobj; | |
4085 | fail: | |
4086 | return NULL; | |
4087 | } | |
4088 | ||
4089 | ||
4090 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4091 | PyObject *resultobj; | |
4092 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4093 | PyObject * obj0 = 0 ; | |
4094 | char *kwnames[] = { | |
4095 | (char *) "self", NULL | |
4096 | }; | |
4097 | ||
4098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4100 | { | |
4101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4102 | delete arg1; | |
4103 | ||
4104 | wxPyEndAllowThreads(__tstate); | |
4105 | if (PyErr_Occurred()) SWIG_fail; | |
4106 | } | |
4107 | Py_INCREF(Py_None); resultobj = Py_None; | |
4108 | return resultobj; | |
4109 | fail: | |
4110 | return NULL; | |
4111 | } | |
4112 | ||
4113 | ||
4114 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4115 | PyObject *obj; | |
4116 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4117 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4118 | Py_INCREF(obj); | |
4119 | return Py_BuildValue((char *)""); | |
4120 | } | |
4121 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4122 | PyObject *resultobj; | |
4123 | bool result; | |
4124 | char *kwnames[] = { | |
4125 | NULL | |
4126 | }; | |
4127 | ||
4128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4129 | { | |
4130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4131 | result = (bool)wxThread_IsMain(); | |
4132 | ||
4133 | wxPyEndAllowThreads(__tstate); | |
4134 | if (PyErr_Occurred()) SWIG_fail; | |
4135 | } | |
4136 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
4137 | return resultobj; | |
4138 | fail: | |
4139 | return NULL; | |
4140 | } | |
4141 | ||
4142 | ||
4143 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4144 | PyObject *resultobj; | |
4145 | wxString *arg1 = 0 ; | |
4146 | wxToolTip *result; | |
4147 | bool temp1 = False ; | |
4148 | PyObject * obj0 = 0 ; | |
4149 | char *kwnames[] = { | |
4150 | (char *) "tip", NULL | |
4151 | }; | |
4152 | ||
4153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4154 | { | |
4155 | arg1 = wxString_in_helper(obj0); | |
4156 | if (arg1 == NULL) SWIG_fail; | |
4157 | temp1 = True; | |
4158 | } | |
4159 | { | |
4160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4161 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4162 | ||
4163 | wxPyEndAllowThreads(__tstate); | |
4164 | if (PyErr_Occurred()) SWIG_fail; | |
4165 | } | |
4166 | { | |
4167 | resultobj = wxPyMake_wxObject(result); | |
4168 | } | |
4169 | { | |
4170 | if (temp1) | |
4171 | delete arg1; | |
4172 | } | |
4173 | return resultobj; | |
4174 | fail: | |
4175 | { | |
4176 | if (temp1) | |
4177 | delete arg1; | |
4178 | } | |
4179 | return NULL; | |
4180 | } | |
4181 | ||
4182 | ||
4183 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4184 | PyObject *resultobj; | |
4185 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4186 | wxString *arg2 = 0 ; | |
4187 | bool temp2 = False ; | |
4188 | PyObject * obj0 = 0 ; | |
4189 | PyObject * obj1 = 0 ; | |
4190 | char *kwnames[] = { | |
4191 | (char *) "self",(char *) "tip", NULL | |
4192 | }; | |
4193 | ||
4194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4196 | { | |
4197 | arg2 = wxString_in_helper(obj1); | |
4198 | if (arg2 == NULL) SWIG_fail; | |
4199 | temp2 = True; | |
4200 | } | |
4201 | { | |
4202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4203 | (arg1)->SetTip((wxString const &)*arg2); | |
4204 | ||
4205 | wxPyEndAllowThreads(__tstate); | |
4206 | if (PyErr_Occurred()) SWIG_fail; | |
4207 | } | |
4208 | Py_INCREF(Py_None); resultobj = Py_None; | |
4209 | { | |
4210 | if (temp2) | |
4211 | delete arg2; | |
4212 | } | |
4213 | return resultobj; | |
4214 | fail: | |
4215 | { | |
4216 | if (temp2) | |
4217 | delete arg2; | |
4218 | } | |
4219 | return NULL; | |
4220 | } | |
4221 | ||
4222 | ||
4223 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4224 | PyObject *resultobj; | |
4225 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4226 | wxString result; | |
4227 | PyObject * obj0 = 0 ; | |
4228 | char *kwnames[] = { | |
4229 | (char *) "self", NULL | |
4230 | }; | |
4231 | ||
4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4234 | { | |
4235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4236 | result = (arg1)->GetTip(); | |
4237 | ||
4238 | wxPyEndAllowThreads(__tstate); | |
4239 | if (PyErr_Occurred()) SWIG_fail; | |
4240 | } | |
4241 | { | |
4242 | #if wxUSE_UNICODE | |
4243 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4244 | #else | |
4245 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4246 | #endif | |
4247 | } | |
4248 | return resultobj; | |
4249 | fail: | |
4250 | return NULL; | |
4251 | } | |
4252 | ||
4253 | ||
4254 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4255 | PyObject *resultobj; | |
4256 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4257 | wxWindow *result; | |
4258 | PyObject * obj0 = 0 ; | |
4259 | char *kwnames[] = { | |
4260 | (char *) "self", NULL | |
4261 | }; | |
4262 | ||
4263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4265 | { | |
4266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4267 | result = (wxWindow *)(arg1)->GetWindow(); | |
4268 | ||
4269 | wxPyEndAllowThreads(__tstate); | |
4270 | if (PyErr_Occurred()) SWIG_fail; | |
4271 | } | |
4272 | { | |
4273 | resultobj = wxPyMake_wxObject(result); | |
4274 | } | |
4275 | return resultobj; | |
4276 | fail: | |
4277 | return NULL; | |
4278 | } | |
4279 | ||
4280 | ||
4281 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4282 | PyObject *resultobj; | |
4283 | bool arg1 ; | |
4284 | PyObject * obj0 = 0 ; | |
4285 | char *kwnames[] = { | |
4286 | (char *) "flag", NULL | |
4287 | }; | |
4288 | ||
4289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
4290 | { | |
4291 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); | |
4292 | if (PyErr_Occurred()) SWIG_fail; | |
4293 | } | |
4294 | { | |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | wxToolTip::Enable(arg1); | |
4297 | ||
4298 | wxPyEndAllowThreads(__tstate); | |
4299 | if (PyErr_Occurred()) SWIG_fail; | |
4300 | } | |
4301 | Py_INCREF(Py_None); resultobj = Py_None; | |
4302 | return resultobj; | |
4303 | fail: | |
4304 | return NULL; | |
4305 | } | |
4306 | ||
4307 | ||
4308 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4309 | PyObject *resultobj; | |
4310 | long arg1 ; | |
4311 | PyObject * obj0 = 0 ; | |
4312 | char *kwnames[] = { | |
4313 | (char *) "milliseconds", NULL | |
4314 | }; | |
4315 | ||
4316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
4317 | { | |
4318 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
4319 | if (PyErr_Occurred()) SWIG_fail; | |
4320 | } | |
4321 | { | |
4322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4323 | wxToolTip::SetDelay(arg1); | |
4324 | ||
4325 | wxPyEndAllowThreads(__tstate); | |
4326 | if (PyErr_Occurred()) SWIG_fail; | |
4327 | } | |
4328 | Py_INCREF(Py_None); resultobj = Py_None; | |
4329 | return resultobj; | |
4330 | fail: | |
4331 | return NULL; | |
4332 | } | |
4333 | ||
4334 | ||
4335 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4336 | PyObject *obj; | |
4337 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4338 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4339 | Py_INCREF(obj); | |
4340 | return Py_BuildValue((char *)""); | |
4341 | } | |
4342 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4343 | PyObject *resultobj; | |
4344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4345 | wxSize *arg2 = 0 ; | |
4346 | wxCaret *result; | |
4347 | wxSize temp2 ; | |
4348 | PyObject * obj0 = 0 ; | |
4349 | PyObject * obj1 = 0 ; | |
4350 | char *kwnames[] = { | |
4351 | (char *) "window",(char *) "size", NULL | |
4352 | }; | |
4353 | ||
4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4356 | { | |
4357 | arg2 = &temp2; | |
4358 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4359 | } | |
4360 | { | |
4361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4362 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4363 | ||
4364 | wxPyEndAllowThreads(__tstate); | |
4365 | if (PyErr_Occurred()) SWIG_fail; | |
4366 | } | |
4367 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1); | |
4368 | return resultobj; | |
4369 | fail: | |
4370 | return NULL; | |
4371 | } | |
4372 | ||
4373 | ||
4374 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4375 | PyObject *resultobj; | |
4376 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4377 | PyObject * obj0 = 0 ; | |
4378 | char *kwnames[] = { | |
4379 | (char *) "self", NULL | |
4380 | }; | |
4381 | ||
4382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4384 | { | |
4385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4386 | delete arg1; | |
4387 | ||
4388 | wxPyEndAllowThreads(__tstate); | |
4389 | if (PyErr_Occurred()) SWIG_fail; | |
4390 | } | |
4391 | Py_INCREF(Py_None); resultobj = Py_None; | |
4392 | return resultobj; | |
4393 | fail: | |
4394 | return NULL; | |
4395 | } | |
4396 | ||
4397 | ||
4398 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4399 | PyObject *resultobj; | |
4400 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4401 | bool result; | |
4402 | PyObject * obj0 = 0 ; | |
4403 | char *kwnames[] = { | |
4404 | (char *) "self", NULL | |
4405 | }; | |
4406 | ||
4407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4409 | { | |
4410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4411 | result = (bool)(arg1)->IsOk(); | |
4412 | ||
4413 | wxPyEndAllowThreads(__tstate); | |
4414 | if (PyErr_Occurred()) SWIG_fail; | |
4415 | } | |
4416 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
4417 | return resultobj; | |
4418 | fail: | |
4419 | return NULL; | |
4420 | } | |
4421 | ||
4422 | ||
4423 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4424 | PyObject *resultobj; | |
4425 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4426 | bool result; | |
4427 | PyObject * obj0 = 0 ; | |
4428 | char *kwnames[] = { | |
4429 | (char *) "self", NULL | |
4430 | }; | |
4431 | ||
4432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4434 | { | |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4436 | result = (bool)(arg1)->IsVisible(); | |
4437 | ||
4438 | wxPyEndAllowThreads(__tstate); | |
4439 | if (PyErr_Occurred()) SWIG_fail; | |
4440 | } | |
4441 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
4442 | return resultobj; | |
4443 | fail: | |
4444 | return NULL; | |
4445 | } | |
4446 | ||
4447 | ||
4448 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4449 | PyObject *resultobj; | |
4450 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4451 | wxPoint result; | |
4452 | PyObject * obj0 = 0 ; | |
4453 | char *kwnames[] = { | |
4454 | (char *) "self", NULL | |
4455 | }; | |
4456 | ||
4457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4459 | { | |
4460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4461 | result = (arg1)->GetPosition(); | |
4462 | ||
4463 | wxPyEndAllowThreads(__tstate); | |
4464 | if (PyErr_Occurred()) SWIG_fail; | |
4465 | } | |
4466 | { | |
4467 | wxPoint * resultptr; | |
4468 | resultptr = new wxPoint((wxPoint &) result); | |
4469 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
4470 | } | |
4471 | return resultobj; | |
4472 | fail: | |
4473 | return NULL; | |
4474 | } | |
4475 | ||
4476 | ||
4477 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4478 | PyObject *resultobj; | |
4479 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4480 | int *arg2 = (int *) 0 ; | |
4481 | int *arg3 = (int *) 0 ; | |
4482 | int temp2 ; | |
4483 | int temp3 ; | |
4484 | PyObject * obj0 = 0 ; | |
4485 | char *kwnames[] = { | |
4486 | (char *) "self", NULL | |
4487 | }; | |
4488 | ||
4489 | arg2 = &temp2; | |
4490 | arg3 = &temp3; | |
4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4493 | { | |
4494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4495 | (arg1)->GetPosition(arg2,arg3); | |
4496 | ||
4497 | wxPyEndAllowThreads(__tstate); | |
4498 | if (PyErr_Occurred()) SWIG_fail; | |
4499 | } | |
4500 | Py_INCREF(Py_None); resultobj = Py_None; | |
4501 | { | |
4502 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4503 | resultobj = t_output_helper(resultobj,o); | |
4504 | } | |
4505 | { | |
4506 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4507 | resultobj = t_output_helper(resultobj,o); | |
4508 | } | |
4509 | return resultobj; | |
4510 | fail: | |
4511 | return NULL; | |
4512 | } | |
4513 | ||
4514 | ||
4515 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4516 | PyObject *resultobj; | |
4517 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4518 | wxSize result; | |
4519 | PyObject * obj0 = 0 ; | |
4520 | char *kwnames[] = { | |
4521 | (char *) "self", NULL | |
4522 | }; | |
4523 | ||
4524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
4525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4526 | { | |
4527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4528 | result = (arg1)->GetSize(); | |
4529 | ||
4530 | wxPyEndAllowThreads(__tstate); | |
4531 | if (PyErr_Occurred()) SWIG_fail; | |
4532 | } | |
4533 | { | |
4534 | wxSize * resultptr; | |
4535 | resultptr = new wxSize((wxSize &) result); | |
4536 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
4537 | } | |
4538 | return resultobj; | |
4539 | fail: | |
4540 | return NULL; | |
4541 | } | |
4542 | ||
4543 | ||
4544 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4545 | PyObject *resultobj; | |
4546 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4547 | int *arg2 = (int *) 0 ; | |
4548 | int *arg3 = (int *) 0 ; | |
4549 | int temp2 ; | |
4550 | int temp3 ; | |
4551 | PyObject * obj0 = 0 ; | |
4552 | char *kwnames[] = { | |
4553 | (char *) "self", NULL | |
4554 | }; | |
4555 | ||
4556 | arg2 = &temp2; | |
4557 | arg3 = &temp3; | |
4558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4560 | { | |
4561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4562 | (arg1)->GetSize(arg2,arg3); | |
4563 | ||
4564 | wxPyEndAllowThreads(__tstate); | |
4565 | if (PyErr_Occurred()) SWIG_fail; | |
4566 | } | |
4567 | Py_INCREF(Py_None); resultobj = Py_None; | |
4568 | { | |
4569 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4570 | resultobj = t_output_helper(resultobj,o); | |
4571 | } | |
4572 | { | |
4573 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4574 | resultobj = t_output_helper(resultobj,o); | |
4575 | } | |
4576 | return resultobj; | |
4577 | fail: | |
4578 | return NULL; | |
4579 | } | |
4580 | ||
4581 | ||
4582 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4583 | PyObject *resultobj; | |
4584 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4585 | wxWindow *result; | |
4586 | PyObject * obj0 = 0 ; | |
4587 | char *kwnames[] = { | |
4588 | (char *) "self", NULL | |
4589 | }; | |
4590 | ||
4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4593 | { | |
4594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4595 | result = (wxWindow *)(arg1)->GetWindow(); | |
4596 | ||
4597 | wxPyEndAllowThreads(__tstate); | |
4598 | if (PyErr_Occurred()) SWIG_fail; | |
4599 | } | |
4600 | { | |
4601 | resultobj = wxPyMake_wxObject(result); | |
4602 | } | |
4603 | return resultobj; | |
4604 | fail: | |
4605 | return NULL; | |
4606 | } | |
4607 | ||
4608 | ||
4609 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4610 | PyObject *resultobj; | |
4611 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4612 | int arg2 ; | |
4613 | int arg3 ; | |
4614 | PyObject * obj0 = 0 ; | |
4615 | PyObject * obj1 = 0 ; | |
4616 | PyObject * obj2 = 0 ; | |
4617 | char *kwnames[] = { | |
4618 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4619 | }; | |
4620 | ||
4621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4623 | { | |
4624 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4625 | if (PyErr_Occurred()) SWIG_fail; | |
4626 | } | |
4627 | { | |
4628 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
4630 | } | |
4631 | { | |
4632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4633 | (arg1)->Move(arg2,arg3); | |
4634 | ||
4635 | wxPyEndAllowThreads(__tstate); | |
4636 | if (PyErr_Occurred()) SWIG_fail; | |
4637 | } | |
4638 | Py_INCREF(Py_None); resultobj = Py_None; | |
4639 | return resultobj; | |
4640 | fail: | |
4641 | return NULL; | |
4642 | } | |
4643 | ||
4644 | ||
4645 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4646 | PyObject *resultobj; | |
4647 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4648 | wxPoint *arg2 = 0 ; | |
4649 | wxPoint temp2 ; | |
4650 | PyObject * obj0 = 0 ; | |
4651 | PyObject * obj1 = 0 ; | |
4652 | char *kwnames[] = { | |
4653 | (char *) "self",(char *) "pt", NULL | |
4654 | }; | |
4655 | ||
4656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4658 | { | |
4659 | arg2 = &temp2; | |
4660 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4661 | } | |
4662 | { | |
4663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4664 | (arg1)->Move((wxPoint const &)*arg2); | |
4665 | ||
4666 | wxPyEndAllowThreads(__tstate); | |
4667 | if (PyErr_Occurred()) SWIG_fail; | |
4668 | } | |
4669 | Py_INCREF(Py_None); resultobj = Py_None; | |
4670 | return resultobj; | |
4671 | fail: | |
4672 | return NULL; | |
4673 | } | |
4674 | ||
4675 | ||
4676 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4677 | PyObject *resultobj; | |
4678 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4679 | int arg2 ; | |
4680 | int arg3 ; | |
4681 | PyObject * obj0 = 0 ; | |
4682 | PyObject * obj1 = 0 ; | |
4683 | PyObject * obj2 = 0 ; | |
4684 | char *kwnames[] = { | |
4685 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4686 | }; | |
4687 | ||
4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4690 | { | |
4691 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4692 | if (PyErr_Occurred()) SWIG_fail; | |
4693 | } | |
4694 | { | |
4695 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4696 | if (PyErr_Occurred()) SWIG_fail; | |
4697 | } | |
4698 | { | |
4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4700 | (arg1)->SetSize(arg2,arg3); | |
4701 | ||
4702 | wxPyEndAllowThreads(__tstate); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
4705 | Py_INCREF(Py_None); resultobj = Py_None; | |
4706 | return resultobj; | |
4707 | fail: | |
4708 | return NULL; | |
4709 | } | |
4710 | ||
4711 | ||
4712 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4713 | PyObject *resultobj; | |
4714 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4715 | wxSize *arg2 = 0 ; | |
4716 | wxSize temp2 ; | |
4717 | PyObject * obj0 = 0 ; | |
4718 | PyObject * obj1 = 0 ; | |
4719 | char *kwnames[] = { | |
4720 | (char *) "self",(char *) "size", NULL | |
4721 | }; | |
4722 | ||
4723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4725 | { | |
4726 | arg2 = &temp2; | |
4727 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4728 | } | |
4729 | { | |
4730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4731 | (arg1)->SetSize((wxSize const &)*arg2); | |
4732 | ||
4733 | wxPyEndAllowThreads(__tstate); | |
4734 | if (PyErr_Occurred()) SWIG_fail; | |
4735 | } | |
4736 | Py_INCREF(Py_None); resultobj = Py_None; | |
4737 | return resultobj; | |
4738 | fail: | |
4739 | return NULL; | |
4740 | } | |
4741 | ||
4742 | ||
4743 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4744 | PyObject *resultobj; | |
4745 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4746 | int arg2 = (int) True ; | |
4747 | PyObject * obj0 = 0 ; | |
4748 | PyObject * obj1 = 0 ; | |
4749 | char *kwnames[] = { | |
4750 | (char *) "self",(char *) "show", NULL | |
4751 | }; | |
4752 | ||
4753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
4754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4755 | if (obj1) { | |
4756 | { | |
4757 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4758 | if (PyErr_Occurred()) SWIG_fail; | |
4759 | } | |
4760 | } | |
4761 | { | |
4762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4763 | (arg1)->Show(arg2); | |
4764 | ||
4765 | wxPyEndAllowThreads(__tstate); | |
4766 | if (PyErr_Occurred()) SWIG_fail; | |
4767 | } | |
4768 | Py_INCREF(Py_None); resultobj = Py_None; | |
4769 | return resultobj; | |
4770 | fail: | |
4771 | return NULL; | |
4772 | } | |
4773 | ||
4774 | ||
4775 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4776 | PyObject *resultobj; | |
4777 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4778 | PyObject * obj0 = 0 ; | |
4779 | char *kwnames[] = { | |
4780 | (char *) "self", NULL | |
4781 | }; | |
4782 | ||
4783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4785 | { | |
4786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4787 | (arg1)->Hide(); | |
4788 | ||
4789 | wxPyEndAllowThreads(__tstate); | |
4790 | if (PyErr_Occurred()) SWIG_fail; | |
4791 | } | |
4792 | Py_INCREF(Py_None); resultobj = Py_None; | |
4793 | return resultobj; | |
4794 | fail: | |
4795 | return NULL; | |
4796 | } | |
4797 | ||
4798 | ||
4799 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4800 | PyObject *obj; | |
4801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4802 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4803 | Py_INCREF(obj); | |
4804 | return Py_BuildValue((char *)""); | |
4805 | } | |
4806 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4807 | PyObject *resultobj; | |
4808 | int result; | |
4809 | char *kwnames[] = { | |
4810 | NULL | |
4811 | }; | |
4812 | ||
4813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4814 | { | |
4815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4816 | result = (int)wxCaret_GetBlinkTime(); | |
4817 | ||
4818 | wxPyEndAllowThreads(__tstate); | |
4819 | if (PyErr_Occurred()) SWIG_fail; | |
4820 | } | |
4821 | resultobj = SWIG_PyObj_FromInt((int)result); | |
4822 | return resultobj; | |
4823 | fail: | |
4824 | return NULL; | |
4825 | } | |
4826 | ||
4827 | ||
4828 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4829 | PyObject *resultobj; | |
4830 | int arg1 ; | |
4831 | PyObject * obj0 = 0 ; | |
4832 | char *kwnames[] = { | |
4833 | (char *) "milliseconds", NULL | |
4834 | }; | |
4835 | ||
4836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
4837 | { | |
4838 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4839 | if (PyErr_Occurred()) SWIG_fail; | |
4840 | } | |
4841 | { | |
4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4843 | wxCaret_SetBlinkTime(arg1); | |
4844 | ||
4845 | wxPyEndAllowThreads(__tstate); | |
4846 | if (PyErr_Occurred()) SWIG_fail; | |
4847 | } | |
4848 | Py_INCREF(Py_None); resultobj = Py_None; | |
4849 | return resultobj; | |
4850 | fail: | |
4851 | return NULL; | |
4852 | } | |
4853 | ||
4854 | ||
4855 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4856 | PyObject *resultobj; | |
4857 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4858 | wxBusyCursor *result; | |
4859 | PyObject * obj0 = 0 ; | |
4860 | char *kwnames[] = { | |
4861 | (char *) "cursor", NULL | |
4862 | }; | |
4863 | ||
4864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4865 | if (obj0) { | |
4866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4867 | } | |
4868 | { | |
4869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4870 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
4871 | ||
4872 | wxPyEndAllowThreads(__tstate); | |
4873 | if (PyErr_Occurred()) SWIG_fail; | |
4874 | } | |
4875 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1); | |
4876 | return resultobj; | |
4877 | fail: | |
4878 | return NULL; | |
4879 | } | |
4880 | ||
4881 | ||
4882 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4883 | PyObject *resultobj; | |
4884 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
4885 | PyObject * obj0 = 0 ; | |
4886 | char *kwnames[] = { | |
4887 | (char *) "self", NULL | |
4888 | }; | |
4889 | ||
4890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
4891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4892 | { | |
4893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4894 | delete arg1; | |
4895 | ||
4896 | wxPyEndAllowThreads(__tstate); | |
4897 | if (PyErr_Occurred()) SWIG_fail; | |
4898 | } | |
4899 | Py_INCREF(Py_None); resultobj = Py_None; | |
4900 | return resultobj; | |
4901 | fail: | |
4902 | return NULL; | |
4903 | } | |
4904 | ||
4905 | ||
4906 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
4907 | PyObject *obj; | |
4908 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4909 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
4910 | Py_INCREF(obj); | |
4911 | return Py_BuildValue((char *)""); | |
4912 | } | |
4913 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4914 | PyObject *resultobj; | |
4915 | wxWindow *arg1 = (wxWindow *) NULL ; | |
4916 | wxWindowDisabler *result; | |
4917 | PyObject * obj0 = 0 ; | |
4918 | char *kwnames[] = { | |
4919 | (char *) "winToSkip", NULL | |
4920 | }; | |
4921 | ||
4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
4923 | if (obj0) { | |
4924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4925 | } | |
4926 | { | |
4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4928 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
4929 | ||
4930 | wxPyEndAllowThreads(__tstate); | |
4931 | if (PyErr_Occurred()) SWIG_fail; | |
4932 | } | |
4933 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1); | |
4934 | return resultobj; | |
4935 | fail: | |
4936 | return NULL; | |
4937 | } | |
4938 | ||
4939 | ||
4940 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4941 | PyObject *resultobj; | |
4942 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
4943 | PyObject * obj0 = 0 ; | |
4944 | char *kwnames[] = { | |
4945 | (char *) "self", NULL | |
4946 | }; | |
4947 | ||
4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
4949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4950 | { | |
4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4952 | delete arg1; | |
4953 | ||
4954 | wxPyEndAllowThreads(__tstate); | |
4955 | if (PyErr_Occurred()) SWIG_fail; | |
4956 | } | |
4957 | Py_INCREF(Py_None); resultobj = Py_None; | |
4958 | return resultobj; | |
4959 | fail: | |
4960 | return NULL; | |
4961 | } | |
4962 | ||
4963 | ||
4964 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
4965 | PyObject *obj; | |
4966 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4967 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
4968 | Py_INCREF(obj); | |
4969 | return Py_BuildValue((char *)""); | |
4970 | } | |
4971 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4972 | PyObject *resultobj; | |
4973 | wxString *arg1 = 0 ; | |
4974 | wxBusyInfo *result; | |
4975 | bool temp1 = False ; | |
4976 | PyObject * obj0 = 0 ; | |
4977 | char *kwnames[] = { | |
4978 | (char *) "message", NULL | |
4979 | }; | |
4980 | ||
4981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
4982 | { | |
4983 | arg1 = wxString_in_helper(obj0); | |
4984 | if (arg1 == NULL) SWIG_fail; | |
4985 | temp1 = True; | |
4986 | } | |
4987 | { | |
4988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4989 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
4990 | ||
4991 | wxPyEndAllowThreads(__tstate); | |
4992 | if (PyErr_Occurred()) SWIG_fail; | |
4993 | } | |
4994 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1); | |
4995 | { | |
4996 | if (temp1) | |
4997 | delete arg1; | |
4998 | } | |
4999 | return resultobj; | |
5000 | fail: | |
5001 | { | |
5002 | if (temp1) | |
5003 | delete arg1; | |
5004 | } | |
5005 | return NULL; | |
5006 | } | |
5007 | ||
5008 | ||
5009 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5010 | PyObject *resultobj; | |
5011 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5012 | PyObject * obj0 = 0 ; | |
5013 | char *kwnames[] = { | |
5014 | (char *) "self", NULL | |
5015 | }; | |
5016 | ||
5017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5019 | { | |
5020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5021 | delete arg1; | |
5022 | ||
5023 | wxPyEndAllowThreads(__tstate); | |
5024 | if (PyErr_Occurred()) SWIG_fail; | |
5025 | } | |
5026 | Py_INCREF(Py_None); resultobj = Py_None; | |
5027 | return resultobj; | |
5028 | fail: | |
5029 | return NULL; | |
5030 | } | |
5031 | ||
5032 | ||
5033 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5034 | PyObject *obj; | |
5035 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5036 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5037 | Py_INCREF(obj); | |
5038 | return Py_BuildValue((char *)""); | |
5039 | } | |
5040 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5041 | PyObject *resultobj; | |
5042 | wxStopWatch *result; | |
5043 | char *kwnames[] = { | |
5044 | NULL | |
5045 | }; | |
5046 | ||
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | result = (wxStopWatch *)new wxStopWatch(); | |
5051 | ||
5052 | wxPyEndAllowThreads(__tstate); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
5055 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1); | |
5056 | return resultobj; | |
5057 | fail: | |
5058 | return NULL; | |
5059 | } | |
5060 | ||
5061 | ||
5062 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5063 | PyObject *resultobj; | |
5064 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5065 | long arg2 = (long) 0 ; | |
5066 | PyObject * obj0 = 0 ; | |
5067 | PyObject * obj1 = 0 ; | |
5068 | char *kwnames[] = { | |
5069 | (char *) "self",(char *) "t0", NULL | |
5070 | }; | |
5071 | ||
5072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5074 | if (obj1) { | |
5075 | { | |
5076 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
5077 | if (PyErr_Occurred()) SWIG_fail; | |
5078 | } | |
5079 | } | |
5080 | { | |
5081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5082 | (arg1)->Start(arg2); | |
5083 | ||
5084 | wxPyEndAllowThreads(__tstate); | |
5085 | if (PyErr_Occurred()) SWIG_fail; | |
5086 | } | |
5087 | Py_INCREF(Py_None); resultobj = Py_None; | |
5088 | return resultobj; | |
5089 | fail: | |
5090 | return NULL; | |
5091 | } | |
5092 | ||
5093 | ||
5094 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5095 | PyObject *resultobj; | |
5096 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5097 | PyObject * obj0 = 0 ; | |
5098 | char *kwnames[] = { | |
5099 | (char *) "self", NULL | |
5100 | }; | |
5101 | ||
5102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5104 | { | |
5105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5106 | (arg1)->Pause(); | |
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_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5119 | PyObject *resultobj; | |
5120 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5121 | PyObject * obj0 = 0 ; | |
5122 | char *kwnames[] = { | |
5123 | (char *) "self", NULL | |
5124 | }; | |
5125 | ||
5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5128 | { | |
5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5130 | (arg1)->Resume(); | |
5131 | ||
5132 | wxPyEndAllowThreads(__tstate); | |
5133 | if (PyErr_Occurred()) SWIG_fail; | |
5134 | } | |
5135 | Py_INCREF(Py_None); resultobj = Py_None; | |
5136 | return resultobj; | |
5137 | fail: | |
5138 | return NULL; | |
5139 | } | |
5140 | ||
5141 | ||
5142 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5143 | PyObject *resultobj; | |
5144 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5145 | long result; | |
5146 | PyObject * obj0 = 0 ; | |
5147 | char *kwnames[] = { | |
5148 | (char *) "self", NULL | |
5149 | }; | |
5150 | ||
5151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5153 | { | |
5154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5155 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5156 | ||
5157 | wxPyEndAllowThreads(__tstate); | |
5158 | if (PyErr_Occurred()) SWIG_fail; | |
5159 | } | |
5160 | resultobj = SWIG_PyObj_FromLong((long)result); | |
5161 | return resultobj; | |
5162 | fail: | |
5163 | return NULL; | |
5164 | } | |
5165 | ||
5166 | ||
5167 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5168 | PyObject *obj; | |
5169 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5170 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5171 | Py_INCREF(obj); | |
5172 | return Py_BuildValue((char *)""); | |
5173 | } | |
5174 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5175 | PyObject *resultobj; | |
5176 | int arg1 = (int) 9 ; | |
5177 | wxFileHistory *result; | |
5178 | PyObject * obj0 = 0 ; | |
5179 | char *kwnames[] = { | |
5180 | (char *) "maxFiles", NULL | |
5181 | }; | |
5182 | ||
5183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; | |
5184 | if (obj0) { | |
5185 | { | |
5186 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
5189 | } | |
5190 | { | |
5191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5192 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5193 | ||
5194 | wxPyEndAllowThreads(__tstate); | |
5195 | if (PyErr_Occurred()) SWIG_fail; | |
5196 | } | |
5197 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1); | |
5198 | return resultobj; | |
5199 | fail: | |
5200 | return NULL; | |
5201 | } | |
5202 | ||
5203 | ||
5204 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5205 | PyObject *resultobj; | |
5206 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5207 | PyObject * obj0 = 0 ; | |
5208 | char *kwnames[] = { | |
5209 | (char *) "self", NULL | |
5210 | }; | |
5211 | ||
5212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5214 | { | |
5215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5216 | delete arg1; | |
5217 | ||
5218 | wxPyEndAllowThreads(__tstate); | |
5219 | if (PyErr_Occurred()) SWIG_fail; | |
5220 | } | |
5221 | Py_INCREF(Py_None); resultobj = Py_None; | |
5222 | return resultobj; | |
5223 | fail: | |
5224 | return NULL; | |
5225 | } | |
5226 | ||
5227 | ||
5228 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5229 | PyObject *resultobj; | |
5230 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5231 | wxString *arg2 = 0 ; | |
5232 | bool temp2 = False ; | |
5233 | PyObject * obj0 = 0 ; | |
5234 | PyObject * obj1 = 0 ; | |
5235 | char *kwnames[] = { | |
5236 | (char *) "self",(char *) "file", NULL | |
5237 | }; | |
5238 | ||
5239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5241 | { | |
5242 | arg2 = wxString_in_helper(obj1); | |
5243 | if (arg2 == NULL) SWIG_fail; | |
5244 | temp2 = True; | |
5245 | } | |
5246 | { | |
5247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5248 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5249 | ||
5250 | wxPyEndAllowThreads(__tstate); | |
5251 | if (PyErr_Occurred()) SWIG_fail; | |
5252 | } | |
5253 | Py_INCREF(Py_None); resultobj = Py_None; | |
5254 | { | |
5255 | if (temp2) | |
5256 | delete arg2; | |
5257 | } | |
5258 | return resultobj; | |
5259 | fail: | |
5260 | { | |
5261 | if (temp2) | |
5262 | delete arg2; | |
5263 | } | |
5264 | return NULL; | |
5265 | } | |
5266 | ||
5267 | ||
5268 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5269 | PyObject *resultobj; | |
5270 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5271 | int arg2 ; | |
5272 | PyObject * obj0 = 0 ; | |
5273 | PyObject * obj1 = 0 ; | |
5274 | char *kwnames[] = { | |
5275 | (char *) "self",(char *) "i", NULL | |
5276 | }; | |
5277 | ||
5278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5280 | { | |
5281 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5282 | if (PyErr_Occurred()) SWIG_fail; | |
5283 | } | |
5284 | { | |
5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5286 | (arg1)->RemoveFileFromHistory(arg2); | |
5287 | ||
5288 | wxPyEndAllowThreads(__tstate); | |
5289 | if (PyErr_Occurred()) SWIG_fail; | |
5290 | } | |
5291 | Py_INCREF(Py_None); resultobj = Py_None; | |
5292 | return resultobj; | |
5293 | fail: | |
5294 | return NULL; | |
5295 | } | |
5296 | ||
5297 | ||
5298 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5299 | PyObject *resultobj; | |
5300 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5301 | int result; | |
5302 | PyObject * obj0 = 0 ; | |
5303 | char *kwnames[] = { | |
5304 | (char *) "self", NULL | |
5305 | }; | |
5306 | ||
5307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5309 | { | |
5310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5311 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5312 | ||
5313 | wxPyEndAllowThreads(__tstate); | |
5314 | if (PyErr_Occurred()) SWIG_fail; | |
5315 | } | |
5316 | resultobj = SWIG_PyObj_FromInt((int)result); | |
5317 | return resultobj; | |
5318 | fail: | |
5319 | return NULL; | |
5320 | } | |
5321 | ||
5322 | ||
5323 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5324 | PyObject *resultobj; | |
5325 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5326 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5327 | PyObject * obj0 = 0 ; | |
5328 | PyObject * obj1 = 0 ; | |
5329 | char *kwnames[] = { | |
5330 | (char *) "self",(char *) "menu", NULL | |
5331 | }; | |
5332 | ||
5333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
5334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5335 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5336 | { | |
5337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5338 | (arg1)->UseMenu(arg2); | |
5339 | ||
5340 | wxPyEndAllowThreads(__tstate); | |
5341 | if (PyErr_Occurred()) SWIG_fail; | |
5342 | } | |
5343 | Py_INCREF(Py_None); resultobj = Py_None; | |
5344 | return resultobj; | |
5345 | fail: | |
5346 | return NULL; | |
5347 | } | |
5348 | ||
5349 | ||
5350 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5351 | PyObject *resultobj; | |
5352 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5353 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5354 | PyObject * obj0 = 0 ; | |
5355 | PyObject * obj1 = 0 ; | |
5356 | char *kwnames[] = { | |
5357 | (char *) "self",(char *) "menu", NULL | |
5358 | }; | |
5359 | ||
5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
5361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5362 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5363 | { | |
5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5365 | (arg1)->RemoveMenu(arg2); | |
5366 | ||
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | Py_INCREF(Py_None); resultobj = Py_None; | |
5371 | return resultobj; | |
5372 | fail: | |
5373 | return NULL; | |
5374 | } | |
5375 | ||
5376 | ||
5377 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5378 | PyObject *resultobj; | |
5379 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5380 | wxConfigBase *arg2 = 0 ; | |
5381 | PyObject * obj0 = 0 ; | |
5382 | PyObject * obj1 = 0 ; | |
5383 | char *kwnames[] = { | |
5384 | (char *) "self",(char *) "config", NULL | |
5385 | }; | |
5386 | ||
5387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5389 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5390 | if (arg2 == NULL) { | |
5391 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5392 | } | |
5393 | { | |
5394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5395 | (arg1)->Load(*arg2); | |
5396 | ||
5397 | wxPyEndAllowThreads(__tstate); | |
5398 | if (PyErr_Occurred()) SWIG_fail; | |
5399 | } | |
5400 | Py_INCREF(Py_None); resultobj = Py_None; | |
5401 | return resultobj; | |
5402 | fail: | |
5403 | return NULL; | |
5404 | } | |
5405 | ||
5406 | ||
5407 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5408 | PyObject *resultobj; | |
5409 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5410 | wxConfigBase *arg2 = 0 ; | |
5411 | PyObject * obj0 = 0 ; | |
5412 | PyObject * obj1 = 0 ; | |
5413 | char *kwnames[] = { | |
5414 | (char *) "self",(char *) "config", NULL | |
5415 | }; | |
5416 | ||
5417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5419 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5420 | if (arg2 == NULL) { | |
5421 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5422 | } | |
5423 | { | |
5424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5425 | (arg1)->Save(*arg2); | |
5426 | ||
5427 | wxPyEndAllowThreads(__tstate); | |
5428 | if (PyErr_Occurred()) SWIG_fail; | |
5429 | } | |
5430 | Py_INCREF(Py_None); resultobj = Py_None; | |
5431 | return resultobj; | |
5432 | fail: | |
5433 | return NULL; | |
5434 | } | |
5435 | ||
5436 | ||
5437 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5438 | PyObject *resultobj; | |
5439 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5440 | PyObject * obj0 = 0 ; | |
5441 | char *kwnames[] = { | |
5442 | (char *) "self", NULL | |
5443 | }; | |
5444 | ||
5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5447 | { | |
5448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5449 | (arg1)->AddFilesToMenu(); | |
5450 | ||
5451 | wxPyEndAllowThreads(__tstate); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | } | |
5454 | Py_INCREF(Py_None); resultobj = Py_None; | |
5455 | return resultobj; | |
5456 | fail: | |
5457 | return NULL; | |
5458 | } | |
5459 | ||
5460 | ||
5461 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5462 | PyObject *resultobj; | |
5463 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5464 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5465 | PyObject * obj0 = 0 ; | |
5466 | PyObject * obj1 = 0 ; | |
5467 | char *kwnames[] = { | |
5468 | (char *) "self",(char *) "menu", NULL | |
5469 | }; | |
5470 | ||
5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5473 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5474 | { | |
5475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5476 | (arg1)->AddFilesToMenu(arg2); | |
5477 | ||
5478 | wxPyEndAllowThreads(__tstate); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
5480 | } | |
5481 | Py_INCREF(Py_None); resultobj = Py_None; | |
5482 | return resultobj; | |
5483 | fail: | |
5484 | return NULL; | |
5485 | } | |
5486 | ||
5487 | ||
5488 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5489 | PyObject *resultobj; | |
5490 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5491 | int arg2 ; | |
5492 | wxString result; | |
5493 | PyObject * obj0 = 0 ; | |
5494 | PyObject * obj1 = 0 ; | |
5495 | char *kwnames[] = { | |
5496 | (char *) "self",(char *) "i", NULL | |
5497 | }; | |
5498 | ||
5499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
5500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5501 | { | |
5502 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5503 | if (PyErr_Occurred()) SWIG_fail; | |
5504 | } | |
5505 | { | |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5507 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5508 | ||
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | { | |
5513 | #if wxUSE_UNICODE | |
5514 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5515 | #else | |
5516 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5517 | #endif | |
5518 | } | |
5519 | return resultobj; | |
5520 | fail: | |
5521 | return NULL; | |
5522 | } | |
5523 | ||
5524 | ||
5525 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5526 | PyObject *resultobj; | |
5527 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5528 | int result; | |
5529 | PyObject * obj0 = 0 ; | |
5530 | char *kwnames[] = { | |
5531 | (char *) "self", NULL | |
5532 | }; | |
5533 | ||
5534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5536 | { | |
5537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5538 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5539 | ||
5540 | wxPyEndAllowThreads(__tstate); | |
5541 | if (PyErr_Occurred()) SWIG_fail; | |
5542 | } | |
5543 | resultobj = SWIG_PyObj_FromInt((int)result); | |
5544 | return resultobj; | |
5545 | fail: | |
5546 | return NULL; | |
5547 | } | |
5548 | ||
5549 | ||
5550 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5551 | PyObject *obj; | |
5552 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5553 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5554 | Py_INCREF(obj); | |
5555 | return Py_BuildValue((char *)""); | |
5556 | } | |
5557 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5558 | PyObject *resultobj; | |
5559 | wxString *arg1 = 0 ; | |
5560 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5561 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5562 | wxSingleInstanceChecker *result; | |
5563 | bool temp1 = False ; | |
5564 | bool temp2 = False ; | |
5565 | PyObject * obj0 = 0 ; | |
5566 | PyObject * obj1 = 0 ; | |
5567 | char *kwnames[] = { | |
5568 | (char *) "name",(char *) "path", NULL | |
5569 | }; | |
5570 | ||
5571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5572 | { | |
5573 | arg1 = wxString_in_helper(obj0); | |
5574 | if (arg1 == NULL) SWIG_fail; | |
5575 | temp1 = True; | |
5576 | } | |
5577 | if (obj1) { | |
5578 | { | |
5579 | arg2 = wxString_in_helper(obj1); | |
5580 | if (arg2 == NULL) SWIG_fail; | |
5581 | temp2 = True; | |
5582 | } | |
5583 | } | |
5584 | { | |
5585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5586 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5587 | ||
5588 | wxPyEndAllowThreads(__tstate); | |
5589 | if (PyErr_Occurred()) SWIG_fail; | |
5590 | } | |
5591 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5592 | { | |
5593 | if (temp1) | |
5594 | delete arg1; | |
5595 | } | |
5596 | { | |
5597 | if (temp2) | |
5598 | delete arg2; | |
5599 | } | |
5600 | return resultobj; | |
5601 | fail: | |
5602 | { | |
5603 | if (temp1) | |
5604 | delete arg1; | |
5605 | } | |
5606 | { | |
5607 | if (temp2) | |
5608 | delete arg2; | |
5609 | } | |
5610 | return NULL; | |
5611 | } | |
5612 | ||
5613 | ||
5614 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5615 | PyObject *resultobj; | |
5616 | wxSingleInstanceChecker *result; | |
5617 | char *kwnames[] = { | |
5618 | NULL | |
5619 | }; | |
5620 | ||
5621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5622 | { | |
5623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5624 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5625 | ||
5626 | wxPyEndAllowThreads(__tstate); | |
5627 | if (PyErr_Occurred()) SWIG_fail; | |
5628 | } | |
5629 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5630 | return resultobj; | |
5631 | fail: | |
5632 | return NULL; | |
5633 | } | |
5634 | ||
5635 | ||
5636 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5637 | PyObject *resultobj; | |
5638 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5639 | PyObject * obj0 = 0 ; | |
5640 | char *kwnames[] = { | |
5641 | (char *) "self", NULL | |
5642 | }; | |
5643 | ||
5644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5646 | { | |
5647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5648 | delete arg1; | |
5649 | ||
5650 | wxPyEndAllowThreads(__tstate); | |
5651 | if (PyErr_Occurred()) SWIG_fail; | |
5652 | } | |
5653 | Py_INCREF(Py_None); resultobj = Py_None; | |
5654 | return resultobj; | |
5655 | fail: | |
5656 | return NULL; | |
5657 | } | |
5658 | ||
5659 | ||
5660 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5661 | PyObject *resultobj; | |
5662 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5663 | wxString *arg2 = 0 ; | |
5664 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5665 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5666 | bool result; | |
5667 | bool temp2 = False ; | |
5668 | bool temp3 = False ; | |
5669 | PyObject * obj0 = 0 ; | |
5670 | PyObject * obj1 = 0 ; | |
5671 | PyObject * obj2 = 0 ; | |
5672 | char *kwnames[] = { | |
5673 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5674 | }; | |
5675 | ||
5676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5678 | { | |
5679 | arg2 = wxString_in_helper(obj1); | |
5680 | if (arg2 == NULL) SWIG_fail; | |
5681 | temp2 = True; | |
5682 | } | |
5683 | if (obj2) { | |
5684 | { | |
5685 | arg3 = wxString_in_helper(obj2); | |
5686 | if (arg3 == NULL) SWIG_fail; | |
5687 | temp3 = True; | |
5688 | } | |
5689 | } | |
5690 | { | |
5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5692 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5693 | ||
5694 | wxPyEndAllowThreads(__tstate); | |
5695 | if (PyErr_Occurred()) SWIG_fail; | |
5696 | } | |
5697 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
5698 | { | |
5699 | if (temp2) | |
5700 | delete arg2; | |
5701 | } | |
5702 | { | |
5703 | if (temp3) | |
5704 | delete arg3; | |
5705 | } | |
5706 | return resultobj; | |
5707 | fail: | |
5708 | { | |
5709 | if (temp2) | |
5710 | delete arg2; | |
5711 | } | |
5712 | { | |
5713 | if (temp3) | |
5714 | delete arg3; | |
5715 | } | |
5716 | return NULL; | |
5717 | } | |
5718 | ||
5719 | ||
5720 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5721 | PyObject *resultobj; | |
5722 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5723 | bool result; | |
5724 | PyObject * obj0 = 0 ; | |
5725 | char *kwnames[] = { | |
5726 | (char *) "self", NULL | |
5727 | }; | |
5728 | ||
5729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5731 | { | |
5732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5733 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5734 | ||
5735 | wxPyEndAllowThreads(__tstate); | |
5736 | if (PyErr_Occurred()) SWIG_fail; | |
5737 | } | |
5738 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
5739 | return resultobj; | |
5740 | fail: | |
5741 | return NULL; | |
5742 | } | |
5743 | ||
5744 | ||
5745 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5746 | PyObject *obj; | |
5747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5748 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5749 | Py_INCREF(obj); | |
5750 | return Py_BuildValue((char *)""); | |
5751 | } | |
5752 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5753 | PyObject *resultobj; | |
5754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5755 | wxDC *arg2 = 0 ; | |
5756 | int arg3 ; | |
5757 | PyObject * obj0 = 0 ; | |
5758 | PyObject * obj1 = 0 ; | |
5759 | PyObject * obj2 = 0 ; | |
5760 | char *kwnames[] = { | |
5761 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5762 | }; | |
5763 | ||
5764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5766 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5767 | if (arg2 == NULL) { | |
5768 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5769 | } | |
5770 | { | |
5771 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5772 | if (PyErr_Occurred()) SWIG_fail; | |
5773 | } | |
5774 | { | |
5775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5776 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5777 | ||
5778 | wxPyEndAllowThreads(__tstate); | |
5779 | if (PyErr_Occurred()) SWIG_fail; | |
5780 | } | |
5781 | Py_INCREF(Py_None); resultobj = Py_None; | |
5782 | return resultobj; | |
5783 | fail: | |
5784 | return NULL; | |
5785 | } | |
5786 | ||
5787 | ||
5788 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5789 | PyObject *resultobj; | |
5790 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5791 | PyObject * obj0 = 0 ; | |
5792 | char *kwnames[] = { | |
5793 | (char *) "self", NULL | |
5794 | }; | |
5795 | ||
5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
5797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5798 | { | |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5800 | delete arg1; | |
5801 | ||
5802 | wxPyEndAllowThreads(__tstate); | |
5803 | if (PyErr_Occurred()) SWIG_fail; | |
5804 | } | |
5805 | Py_INCREF(Py_None); resultobj = Py_None; | |
5806 | return resultobj; | |
5807 | fail: | |
5808 | return NULL; | |
5809 | } | |
5810 | ||
5811 | ||
5812 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5813 | PyObject *resultobj; | |
5814 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5815 | wxString result; | |
5816 | PyObject * obj0 = 0 ; | |
5817 | char *kwnames[] = { | |
5818 | (char *) "self", NULL | |
5819 | }; | |
5820 | ||
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
5822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5823 | { | |
5824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5825 | result = (arg1)->GetTip(); | |
5826 | ||
5827 | wxPyEndAllowThreads(__tstate); | |
5828 | if (PyErr_Occurred()) SWIG_fail; | |
5829 | } | |
5830 | { | |
5831 | #if wxUSE_UNICODE | |
5832 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5833 | #else | |
5834 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5835 | #endif | |
5836 | } | |
5837 | return resultobj; | |
5838 | fail: | |
5839 | return NULL; | |
5840 | } | |
5841 | ||
5842 | ||
5843 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5844 | PyObject *resultobj; | |
5845 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5846 | size_t result; | |
5847 | PyObject * obj0 = 0 ; | |
5848 | char *kwnames[] = { | |
5849 | (char *) "self", NULL | |
5850 | }; | |
5851 | ||
5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
5853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5854 | { | |
5855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5856 | result = (size_t)(arg1)->GetCurrentTip(); | |
5857 | ||
5858 | wxPyEndAllowThreads(__tstate); | |
5859 | if (PyErr_Occurred()) SWIG_fail; | |
5860 | } | |
5861 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
5862 | return resultobj; | |
5863 | fail: | |
5864 | return NULL; | |
5865 | } | |
5866 | ||
5867 | ||
5868 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5869 | PyObject *resultobj; | |
5870 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5871 | wxString *arg2 = 0 ; | |
5872 | wxString result; | |
5873 | bool temp2 = False ; | |
5874 | PyObject * obj0 = 0 ; | |
5875 | PyObject * obj1 = 0 ; | |
5876 | char *kwnames[] = { | |
5877 | (char *) "self",(char *) "tip", NULL | |
5878 | }; | |
5879 | ||
5880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
5881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5882 | { | |
5883 | arg2 = wxString_in_helper(obj1); | |
5884 | if (arg2 == NULL) SWIG_fail; | |
5885 | temp2 = True; | |
5886 | } | |
5887 | { | |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
5890 | ||
5891 | wxPyEndAllowThreads(__tstate); | |
5892 | if (PyErr_Occurred()) SWIG_fail; | |
5893 | } | |
5894 | { | |
5895 | #if wxUSE_UNICODE | |
5896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5897 | #else | |
5898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5899 | #endif | |
5900 | } | |
5901 | { | |
5902 | if (temp2) | |
5903 | delete arg2; | |
5904 | } | |
5905 | return resultobj; | |
5906 | fail: | |
5907 | { | |
5908 | if (temp2) | |
5909 | delete arg2; | |
5910 | } | |
5911 | return NULL; | |
5912 | } | |
5913 | ||
5914 | ||
5915 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
5916 | PyObject *obj; | |
5917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5918 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
5919 | Py_INCREF(obj); | |
5920 | return Py_BuildValue((char *)""); | |
5921 | } | |
5922 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5923 | PyObject *resultobj; | |
5924 | size_t arg1 ; | |
5925 | wxPyTipProvider *result; | |
5926 | PyObject * obj0 = 0 ; | |
5927 | char *kwnames[] = { | |
5928 | (char *) "currentTip", NULL | |
5929 | }; | |
5930 | ||
5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
5932 | { | |
5933 | arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0); | |
5934 | if (PyErr_Occurred()) SWIG_fail; | |
5935 | } | |
5936 | { | |
5937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5938 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
5939 | ||
5940 | wxPyEndAllowThreads(__tstate); | |
5941 | if (PyErr_Occurred()) SWIG_fail; | |
5942 | } | |
5943 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1); | |
5944 | return resultobj; | |
5945 | fail: | |
5946 | return NULL; | |
5947 | } | |
5948 | ||
5949 | ||
5950 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5951 | PyObject *resultobj; | |
5952 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
5953 | PyObject *arg2 = (PyObject *) 0 ; | |
5954 | PyObject *arg3 = (PyObject *) 0 ; | |
5955 | PyObject * obj0 = 0 ; | |
5956 | PyObject * obj1 = 0 ; | |
5957 | PyObject * obj2 = 0 ; | |
5958 | char *kwnames[] = { | |
5959 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5960 | }; | |
5961 | ||
5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5964 | arg2 = obj1; | |
5965 | arg3 = obj2; | |
5966 | { | |
5967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5968 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5969 | ||
5970 | wxPyEndAllowThreads(__tstate); | |
5971 | if (PyErr_Occurred()) SWIG_fail; | |
5972 | } | |
5973 | Py_INCREF(Py_None); resultobj = Py_None; | |
5974 | return resultobj; | |
5975 | fail: | |
5976 | return NULL; | |
5977 | } | |
5978 | ||
5979 | ||
5980 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
5981 | PyObject *obj; | |
5982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5983 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
5984 | Py_INCREF(obj); | |
5985 | return Py_BuildValue((char *)""); | |
5986 | } | |
5987 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5988 | PyObject *resultobj; | |
5989 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5990 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
5991 | bool arg3 = (bool) True ; | |
5992 | bool result; | |
5993 | PyObject * obj0 = 0 ; | |
5994 | PyObject * obj1 = 0 ; | |
5995 | PyObject * obj2 = 0 ; | |
5996 | char *kwnames[] = { | |
5997 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
5998 | }; | |
5999 | ||
6000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6002 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6003 | if (obj2) { | |
6004 | { | |
6005 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
6006 | if (PyErr_Occurred()) SWIG_fail; | |
6007 | } | |
6008 | } | |
6009 | { | |
6010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6011 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6012 | ||
6013 | wxPyEndAllowThreads(__tstate); | |
6014 | if (PyErr_Occurred()) SWIG_fail; | |
6015 | } | |
6016 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6017 | return resultobj; | |
6018 | fail: | |
6019 | return NULL; | |
6020 | } | |
6021 | ||
6022 | ||
6023 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6024 | PyObject *resultobj; | |
6025 | wxString *arg1 = 0 ; | |
6026 | size_t arg2 ; | |
6027 | wxTipProvider *result; | |
6028 | bool temp1 = False ; | |
6029 | PyObject * obj0 = 0 ; | |
6030 | PyObject * obj1 = 0 ; | |
6031 | char *kwnames[] = { | |
6032 | (char *) "filename",(char *) "currentTip", NULL | |
6033 | }; | |
6034 | ||
6035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6036 | { | |
6037 | arg1 = wxString_in_helper(obj0); | |
6038 | if (arg1 == NULL) SWIG_fail; | |
6039 | temp1 = True; | |
6040 | } | |
6041 | { | |
6042 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
6043 | if (PyErr_Occurred()) SWIG_fail; | |
6044 | } | |
6045 | { | |
6046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6047 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6048 | ||
6049 | wxPyEndAllowThreads(__tstate); | |
6050 | if (PyErr_Occurred()) SWIG_fail; | |
6051 | } | |
6052 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1); | |
6053 | { | |
6054 | if (temp1) | |
6055 | delete arg1; | |
6056 | } | |
6057 | return resultobj; | |
6058 | fail: | |
6059 | { | |
6060 | if (temp1) | |
6061 | delete arg1; | |
6062 | } | |
6063 | return NULL; | |
6064 | } | |
6065 | ||
6066 | ||
6067 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6068 | PyObject *resultobj; | |
6069 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6070 | int arg2 = (int) -1 ; | |
6071 | wxPyTimer *result; | |
6072 | PyObject * obj0 = 0 ; | |
6073 | PyObject * obj1 = 0 ; | |
6074 | char *kwnames[] = { | |
6075 | (char *) "owner",(char *) "id", NULL | |
6076 | }; | |
6077 | ||
6078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6079 | if (obj0) { | |
6080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6081 | } | |
6082 | if (obj1) { | |
6083 | { | |
6084 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6085 | if (PyErr_Occurred()) SWIG_fail; | |
6086 | } | |
6087 | } | |
6088 | { | |
6089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6090 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6091 | ||
6092 | wxPyEndAllowThreads(__tstate); | |
6093 | if (PyErr_Occurred()) SWIG_fail; | |
6094 | } | |
6095 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1); | |
6096 | return resultobj; | |
6097 | fail: | |
6098 | return NULL; | |
6099 | } | |
6100 | ||
6101 | ||
6102 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6103 | PyObject *resultobj; | |
6104 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6105 | PyObject * obj0 = 0 ; | |
6106 | char *kwnames[] = { | |
6107 | (char *) "self", NULL | |
6108 | }; | |
6109 | ||
6110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6112 | { | |
6113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6114 | delete arg1; | |
6115 | ||
6116 | wxPyEndAllowThreads(__tstate); | |
6117 | if (PyErr_Occurred()) SWIG_fail; | |
6118 | } | |
6119 | Py_INCREF(Py_None); resultobj = Py_None; | |
6120 | return resultobj; | |
6121 | fail: | |
6122 | return NULL; | |
6123 | } | |
6124 | ||
6125 | ||
6126 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6127 | PyObject *resultobj; | |
6128 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6129 | PyObject *arg2 = (PyObject *) 0 ; | |
6130 | PyObject *arg3 = (PyObject *) 0 ; | |
6131 | PyObject * obj0 = 0 ; | |
6132 | PyObject * obj1 = 0 ; | |
6133 | PyObject * obj2 = 0 ; | |
6134 | char *kwnames[] = { | |
6135 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6136 | }; | |
6137 | ||
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6140 | arg2 = obj1; | |
6141 | arg3 = obj2; | |
6142 | { | |
6143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6144 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6145 | ||
6146 | wxPyEndAllowThreads(__tstate); | |
6147 | if (PyErr_Occurred()) SWIG_fail; | |
6148 | } | |
6149 | Py_INCREF(Py_None); resultobj = Py_None; | |
6150 | return resultobj; | |
6151 | fail: | |
6152 | return NULL; | |
6153 | } | |
6154 | ||
6155 | ||
6156 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6157 | PyObject *resultobj; | |
6158 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6159 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6160 | int arg3 = (int) -1 ; | |
6161 | PyObject * obj0 = 0 ; | |
6162 | PyObject * obj1 = 0 ; | |
6163 | PyObject * obj2 = 0 ; | |
6164 | char *kwnames[] = { | |
6165 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6166 | }; | |
6167 | ||
6168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6170 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6171 | if (obj2) { | |
6172 | { | |
6173 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6174 | if (PyErr_Occurred()) SWIG_fail; | |
6175 | } | |
6176 | } | |
6177 | { | |
6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6179 | (arg1)->SetOwner(arg2,arg3); | |
6180 | ||
6181 | wxPyEndAllowThreads(__tstate); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
6183 | } | |
6184 | Py_INCREF(Py_None); resultobj = Py_None; | |
6185 | return resultobj; | |
6186 | fail: | |
6187 | return NULL; | |
6188 | } | |
6189 | ||
6190 | ||
6191 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6192 | PyObject *resultobj; | |
6193 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6194 | int arg2 = (int) -1 ; | |
6195 | bool arg3 = (bool) False ; | |
6196 | bool result; | |
6197 | PyObject * obj0 = 0 ; | |
6198 | PyObject * obj1 = 0 ; | |
6199 | PyObject * obj2 = 0 ; | |
6200 | char *kwnames[] = { | |
6201 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6202 | }; | |
6203 | ||
6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6206 | if (obj1) { | |
6207 | { | |
6208 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6209 | if (PyErr_Occurred()) SWIG_fail; | |
6210 | } | |
6211 | } | |
6212 | if (obj2) { | |
6213 | { | |
6214 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
6215 | if (PyErr_Occurred()) SWIG_fail; | |
6216 | } | |
6217 | } | |
6218 | { | |
6219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6220 | result = (bool)(arg1)->Start(arg2,arg3); | |
6221 | ||
6222 | wxPyEndAllowThreads(__tstate); | |
6223 | if (PyErr_Occurred()) SWIG_fail; | |
6224 | } | |
6225 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6226 | return resultobj; | |
6227 | fail: | |
6228 | return NULL; | |
6229 | } | |
6230 | ||
6231 | ||
6232 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6233 | PyObject *resultobj; | |
6234 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6235 | PyObject * obj0 = 0 ; | |
6236 | char *kwnames[] = { | |
6237 | (char *) "self", NULL | |
6238 | }; | |
6239 | ||
6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6242 | { | |
6243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6244 | (arg1)->Stop(); | |
6245 | ||
6246 | wxPyEndAllowThreads(__tstate); | |
6247 | if (PyErr_Occurred()) SWIG_fail; | |
6248 | } | |
6249 | Py_INCREF(Py_None); resultobj = Py_None; | |
6250 | return resultobj; | |
6251 | fail: | |
6252 | return NULL; | |
6253 | } | |
6254 | ||
6255 | ||
6256 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6257 | PyObject *resultobj; | |
6258 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6259 | bool result; | |
6260 | PyObject * obj0 = 0 ; | |
6261 | char *kwnames[] = { | |
6262 | (char *) "self", NULL | |
6263 | }; | |
6264 | ||
6265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
6266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6267 | { | |
6268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6269 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6270 | ||
6271 | wxPyEndAllowThreads(__tstate); | |
6272 | if (PyErr_Occurred()) SWIG_fail; | |
6273 | } | |
6274 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6275 | return resultobj; | |
6276 | fail: | |
6277 | return NULL; | |
6278 | } | |
6279 | ||
6280 | ||
6281 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6282 | PyObject *resultobj; | |
6283 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6284 | int result; | |
6285 | PyObject * obj0 = 0 ; | |
6286 | char *kwnames[] = { | |
6287 | (char *) "self", NULL | |
6288 | }; | |
6289 | ||
6290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
6291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6292 | { | |
6293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6294 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6295 | ||
6296 | wxPyEndAllowThreads(__tstate); | |
6297 | if (PyErr_Occurred()) SWIG_fail; | |
6298 | } | |
6299 | resultobj = SWIG_PyObj_FromInt((int)result); | |
6300 | return resultobj; | |
6301 | fail: | |
6302 | return NULL; | |
6303 | } | |
6304 | ||
6305 | ||
6306 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6307 | PyObject *resultobj; | |
6308 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6309 | bool result; | |
6310 | PyObject * obj0 = 0 ; | |
6311 | char *kwnames[] = { | |
6312 | (char *) "self", NULL | |
6313 | }; | |
6314 | ||
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
6316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6317 | { | |
6318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6319 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6320 | ||
6321 | wxPyEndAllowThreads(__tstate); | |
6322 | if (PyErr_Occurred()) SWIG_fail; | |
6323 | } | |
6324 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6325 | return resultobj; | |
6326 | fail: | |
6327 | return NULL; | |
6328 | } | |
6329 | ||
6330 | ||
6331 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6332 | PyObject *resultobj; | |
6333 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6334 | int result; | |
6335 | PyObject * obj0 = 0 ; | |
6336 | char *kwnames[] = { | |
6337 | (char *) "self", NULL | |
6338 | }; | |
6339 | ||
6340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
6341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6342 | { | |
6343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6344 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6345 | ||
6346 | wxPyEndAllowThreads(__tstate); | |
6347 | if (PyErr_Occurred()) SWIG_fail; | |
6348 | } | |
6349 | resultobj = SWIG_PyObj_FromInt((int)result); | |
6350 | return resultobj; | |
6351 | fail: | |
6352 | return NULL; | |
6353 | } | |
6354 | ||
6355 | ||
6356 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { | |
6357 | PyObject *obj; | |
6358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6359 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6360 | Py_INCREF(obj); | |
6361 | return Py_BuildValue((char *)""); | |
6362 | } | |
6363 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6364 | PyObject *resultobj; | |
6365 | int arg1 = (int) 0 ; | |
6366 | int arg2 = (int) 0 ; | |
6367 | wxTimerEvent *result; | |
6368 | PyObject * obj0 = 0 ; | |
6369 | PyObject * obj1 = 0 ; | |
6370 | char *kwnames[] = { | |
6371 | (char *) "timerid",(char *) "interval", NULL | |
6372 | }; | |
6373 | ||
6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
6375 | if (obj0) { | |
6376 | { | |
6377 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
6378 | if (PyErr_Occurred()) SWIG_fail; | |
6379 | } | |
6380 | } | |
6381 | if (obj1) { | |
6382 | { | |
6383 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6384 | if (PyErr_Occurred()) SWIG_fail; | |
6385 | } | |
6386 | } | |
6387 | { | |
6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6389 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6390 | ||
6391 | wxPyEndAllowThreads(__tstate); | |
6392 | if (PyErr_Occurred()) SWIG_fail; | |
6393 | } | |
6394 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1); | |
6395 | return resultobj; | |
6396 | fail: | |
6397 | return NULL; | |
6398 | } | |
6399 | ||
6400 | ||
6401 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6402 | PyObject *resultobj; | |
6403 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6404 | int result; | |
6405 | PyObject * obj0 = 0 ; | |
6406 | char *kwnames[] = { | |
6407 | (char *) "self", NULL | |
6408 | }; | |
6409 | ||
6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
6411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6412 | { | |
6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6414 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6415 | ||
6416 | wxPyEndAllowThreads(__tstate); | |
6417 | if (PyErr_Occurred()) SWIG_fail; | |
6418 | } | |
6419 | resultobj = SWIG_PyObj_FromInt((int)result); | |
6420 | return resultobj; | |
6421 | fail: | |
6422 | return NULL; | |
6423 | } | |
6424 | ||
6425 | ||
6426 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6427 | PyObject *obj; | |
6428 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6429 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6430 | Py_INCREF(obj); | |
6431 | return Py_BuildValue((char *)""); | |
6432 | } | |
6433 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6434 | PyObject *resultobj; | |
6435 | wxTimer *arg1 = 0 ; | |
6436 | wxTimerRunner *result; | |
6437 | PyObject * obj0 = 0 ; | |
6438 | ||
6439 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6441 | if (arg1 == NULL) { | |
6442 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6443 | } | |
6444 | { | |
6445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6446 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6447 | ||
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) SWIG_fail; | |
6450 | } | |
6451 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6452 | return resultobj; | |
6453 | fail: | |
6454 | return NULL; | |
6455 | } | |
6456 | ||
6457 | ||
6458 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6459 | PyObject *resultobj; | |
6460 | wxTimer *arg1 = 0 ; | |
6461 | int arg2 ; | |
6462 | bool arg3 = (bool) False ; | |
6463 | wxTimerRunner *result; | |
6464 | PyObject * obj0 = 0 ; | |
6465 | PyObject * obj1 = 0 ; | |
6466 | PyObject * obj2 = 0 ; | |
6467 | ||
6468 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
6469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6470 | if (arg1 == NULL) { | |
6471 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6472 | } | |
6473 | { | |
6474 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6475 | if (PyErr_Occurred()) SWIG_fail; | |
6476 | } | |
6477 | if (obj2) { | |
6478 | { | |
6479 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
6480 | if (PyErr_Occurred()) SWIG_fail; | |
6481 | } | |
6482 | } | |
6483 | { | |
6484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6485 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6486 | ||
6487 | wxPyEndAllowThreads(__tstate); | |
6488 | if (PyErr_Occurred()) SWIG_fail; | |
6489 | } | |
6490 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6491 | return resultobj; | |
6492 | fail: | |
6493 | return NULL; | |
6494 | } | |
6495 | ||
6496 | ||
6497 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6498 | int argc; | |
6499 | PyObject *argv[4]; | |
6500 | int ii; | |
6501 | ||
6502 | argc = PyObject_Length(args); | |
6503 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6504 | argv[ii] = PyTuple_GetItem(args,ii); | |
6505 | } | |
6506 | if (argc == 1) { | |
6507 | int _v; | |
6508 | { | |
6509 | void *ptr; | |
6510 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6511 | _v = 0; | |
6512 | PyErr_Clear(); | |
6513 | } else { | |
6514 | _v = 1; | |
6515 | } | |
6516 | } | |
6517 | if (_v) { | |
6518 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6519 | } | |
6520 | } | |
6521 | if ((argc >= 2) && (argc <= 3)) { | |
6522 | int _v; | |
6523 | { | |
6524 | void *ptr; | |
6525 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6526 | _v = 0; | |
6527 | PyErr_Clear(); | |
6528 | } else { | |
6529 | _v = 1; | |
6530 | } | |
6531 | } | |
6532 | if (_v) { | |
6533 | { | |
6534 | SWIG_PyObj_AsInt(argv[1]); | |
6535 | if (PyErr_Occurred()) { | |
6536 | _v = 0; | |
6537 | PyErr_Clear(); | |
6538 | } else { | |
6539 | _v = 1; | |
6540 | } | |
6541 | } | |
6542 | if (_v) { | |
6543 | if (argc <= 2) { | |
6544 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6545 | } | |
6546 | { | |
6547 | SWIG_PyObj_AsBool(argv[2]); | |
6548 | if (PyErr_Occurred()) { | |
6549 | _v = 0; | |
6550 | PyErr_Clear(); | |
6551 | } else { | |
6552 | _v = 1; | |
6553 | } | |
6554 | } | |
6555 | if (_v) { | |
6556 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6557 | } | |
6558 | } | |
6559 | } | |
6560 | } | |
6561 | ||
6562 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6563 | return NULL; | |
6564 | } | |
6565 | ||
6566 | ||
6567 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6568 | PyObject *resultobj; | |
6569 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6570 | PyObject * obj0 = 0 ; | |
6571 | char *kwnames[] = { | |
6572 | (char *) "self", NULL | |
6573 | }; | |
6574 | ||
6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6577 | { | |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6579 | delete arg1; | |
6580 | ||
6581 | wxPyEndAllowThreads(__tstate); | |
6582 | if (PyErr_Occurred()) SWIG_fail; | |
6583 | } | |
6584 | Py_INCREF(Py_None); resultobj = Py_None; | |
6585 | return resultobj; | |
6586 | fail: | |
6587 | return NULL; | |
6588 | } | |
6589 | ||
6590 | ||
6591 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6592 | PyObject *resultobj; | |
6593 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6594 | int arg2 ; | |
6595 | bool arg3 = (bool) False ; | |
6596 | PyObject * obj0 = 0 ; | |
6597 | PyObject * obj1 = 0 ; | |
6598 | PyObject * obj2 = 0 ; | |
6599 | char *kwnames[] = { | |
6600 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6601 | }; | |
6602 | ||
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6605 | { | |
6606 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6607 | if (PyErr_Occurred()) SWIG_fail; | |
6608 | } | |
6609 | if (obj2) { | |
6610 | { | |
6611 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
6612 | if (PyErr_Occurred()) SWIG_fail; | |
6613 | } | |
6614 | } | |
6615 | { | |
6616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6617 | (arg1)->Start(arg2,arg3); | |
6618 | ||
6619 | wxPyEndAllowThreads(__tstate); | |
6620 | if (PyErr_Occurred()) SWIG_fail; | |
6621 | } | |
6622 | Py_INCREF(Py_None); resultobj = Py_None; | |
6623 | return resultobj; | |
6624 | fail: | |
6625 | return NULL; | |
6626 | } | |
6627 | ||
6628 | ||
6629 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6630 | PyObject *obj; | |
6631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6632 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6633 | Py_INCREF(obj); | |
6634 | return Py_BuildValue((char *)""); | |
6635 | } | |
6636 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6637 | PyObject *resultobj; | |
6638 | wxLog *result; | |
6639 | char *kwnames[] = { | |
6640 | NULL | |
6641 | }; | |
6642 | ||
6643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6644 | { | |
6645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6646 | result = (wxLog *)new wxLog(); | |
6647 | ||
6648 | wxPyEndAllowThreads(__tstate); | |
6649 | if (PyErr_Occurred()) SWIG_fail; | |
6650 | } | |
6651 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1); | |
6652 | return resultobj; | |
6653 | fail: | |
6654 | return NULL; | |
6655 | } | |
6656 | ||
6657 | ||
6658 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6659 | PyObject *resultobj; | |
6660 | bool result; | |
6661 | char *kwnames[] = { | |
6662 | NULL | |
6663 | }; | |
6664 | ||
6665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6666 | { | |
6667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6668 | result = (bool)wxLog::IsEnabled(); | |
6669 | ||
6670 | wxPyEndAllowThreads(__tstate); | |
6671 | if (PyErr_Occurred()) SWIG_fail; | |
6672 | } | |
6673 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6674 | return resultobj; | |
6675 | fail: | |
6676 | return NULL; | |
6677 | } | |
6678 | ||
6679 | ||
6680 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6681 | PyObject *resultobj; | |
6682 | bool arg1 = (bool) True ; | |
6683 | bool result; | |
6684 | PyObject * obj0 = 0 ; | |
6685 | char *kwnames[] = { | |
6686 | (char *) "doIt", NULL | |
6687 | }; | |
6688 | ||
6689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6690 | if (obj0) { | |
6691 | { | |
6692 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); | |
6693 | if (PyErr_Occurred()) SWIG_fail; | |
6694 | } | |
6695 | } | |
6696 | { | |
6697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6698 | result = (bool)wxLog::EnableLogging(arg1); | |
6699 | ||
6700 | wxPyEndAllowThreads(__tstate); | |
6701 | if (PyErr_Occurred()) SWIG_fail; | |
6702 | } | |
6703 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6704 | return resultobj; | |
6705 | fail: | |
6706 | return NULL; | |
6707 | } | |
6708 | ||
6709 | ||
6710 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6711 | PyObject *resultobj; | |
6712 | wxLogLevel arg1 ; | |
6713 | wxChar *arg2 = (wxChar *) 0 ; | |
6714 | time_t arg3 ; | |
6715 | PyObject * obj0 = 0 ; | |
6716 | PyObject * obj1 = 0 ; | |
6717 | PyObject * obj2 = 0 ; | |
6718 | char *kwnames[] = { | |
6719 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6720 | }; | |
6721 | ||
6722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6723 | { | |
6724 | arg1 = (wxLogLevel) SWIG_PyObj_AsUnsignedLong(obj0); | |
6725 | if (PyErr_Occurred()) SWIG_fail; | |
6726 | } | |
6727 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6728 | { | |
6729 | arg3 = (time_t) SWIG_PyObj_AsUnsignedInt(obj2); | |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
6731 | } | |
6732 | { | |
6733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6734 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6735 | ||
6736 | wxPyEndAllowThreads(__tstate); | |
6737 | if (PyErr_Occurred()) SWIG_fail; | |
6738 | } | |
6739 | Py_INCREF(Py_None); resultobj = Py_None; | |
6740 | return resultobj; | |
6741 | fail: | |
6742 | return NULL; | |
6743 | } | |
6744 | ||
6745 | ||
6746 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6747 | PyObject *resultobj; | |
6748 | wxLog *arg1 = (wxLog *) 0 ; | |
6749 | PyObject * obj0 = 0 ; | |
6750 | char *kwnames[] = { | |
6751 | (char *) "self", NULL | |
6752 | }; | |
6753 | ||
6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6756 | { | |
6757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6758 | (arg1)->Flush(); | |
6759 | ||
6760 | wxPyEndAllowThreads(__tstate); | |
6761 | if (PyErr_Occurred()) SWIG_fail; | |
6762 | } | |
6763 | Py_INCREF(Py_None); resultobj = Py_None; | |
6764 | return resultobj; | |
6765 | fail: | |
6766 | return NULL; | |
6767 | } | |
6768 | ||
6769 | ||
6770 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6771 | PyObject *resultobj; | |
6772 | char *kwnames[] = { | |
6773 | NULL | |
6774 | }; | |
6775 | ||
6776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6777 | { | |
6778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6779 | wxLog::FlushActive(); | |
6780 | ||
6781 | wxPyEndAllowThreads(__tstate); | |
6782 | if (PyErr_Occurred()) SWIG_fail; | |
6783 | } | |
6784 | Py_INCREF(Py_None); resultobj = Py_None; | |
6785 | return resultobj; | |
6786 | fail: | |
6787 | return NULL; | |
6788 | } | |
6789 | ||
6790 | ||
6791 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6792 | PyObject *resultobj; | |
6793 | wxLog *result; | |
6794 | char *kwnames[] = { | |
6795 | NULL | |
6796 | }; | |
6797 | ||
6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6799 | { | |
6800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6801 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6802 | ||
6803 | wxPyEndAllowThreads(__tstate); | |
6804 | if (PyErr_Occurred()) SWIG_fail; | |
6805 | } | |
6806 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6807 | return resultobj; | |
6808 | fail: | |
6809 | return NULL; | |
6810 | } | |
6811 | ||
6812 | ||
6813 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6814 | PyObject *resultobj; | |
6815 | wxLog *arg1 = (wxLog *) 0 ; | |
6816 | wxLog *result; | |
6817 | PyObject * obj0 = 0 ; | |
6818 | char *kwnames[] = { | |
6819 | (char *) "pLogger", NULL | |
6820 | }; | |
6821 | ||
6822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
6823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6824 | { | |
6825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6826 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6827 | ||
6828 | wxPyEndAllowThreads(__tstate); | |
6829 | if (PyErr_Occurred()) SWIG_fail; | |
6830 | } | |
6831 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6832 | return resultobj; | |
6833 | fail: | |
6834 | return NULL; | |
6835 | } | |
6836 | ||
6837 | ||
6838 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6839 | PyObject *resultobj; | |
6840 | char *kwnames[] = { | |
6841 | NULL | |
6842 | }; | |
6843 | ||
6844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6845 | { | |
6846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6847 | wxLog::Suspend(); | |
6848 | ||
6849 | wxPyEndAllowThreads(__tstate); | |
6850 | if (PyErr_Occurred()) SWIG_fail; | |
6851 | } | |
6852 | Py_INCREF(Py_None); resultobj = Py_None; | |
6853 | return resultobj; | |
6854 | fail: | |
6855 | return NULL; | |
6856 | } | |
6857 | ||
6858 | ||
6859 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6860 | PyObject *resultobj; | |
6861 | char *kwnames[] = { | |
6862 | NULL | |
6863 | }; | |
6864 | ||
6865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
6866 | { | |
6867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6868 | wxLog::Resume(); | |
6869 | ||
6870 | wxPyEndAllowThreads(__tstate); | |
6871 | if (PyErr_Occurred()) SWIG_fail; | |
6872 | } | |
6873 | Py_INCREF(Py_None); resultobj = Py_None; | |
6874 | return resultobj; | |
6875 | fail: | |
6876 | return NULL; | |
6877 | } | |
6878 | ||
6879 | ||
6880 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6881 | PyObject *resultobj; | |
6882 | bool arg1 = (bool) True ; | |
6883 | PyObject * obj0 = 0 ; | |
6884 | char *kwnames[] = { | |
6885 | (char *) "bVerbose", NULL | |
6886 | }; | |
6887 | ||
6888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
6889 | if (obj0) { | |
6890 | { | |
6891 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); | |
6892 | if (PyErr_Occurred()) SWIG_fail; | |
6893 | } | |
6894 | } | |
6895 | { | |
6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6897 | wxLog::SetVerbose(arg1); | |
6898 | ||
6899 | wxPyEndAllowThreads(__tstate); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
6902 | Py_INCREF(Py_None); resultobj = Py_None; | |
6903 | return resultobj; | |
6904 | fail: | |
6905 | return NULL; | |
6906 | } | |
6907 | ||
6908 | ||
6909 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6910 | PyObject *resultobj; | |
6911 | wxLogLevel arg1 ; | |
6912 | PyObject * obj0 = 0 ; | |
6913 | char *kwnames[] = { | |
6914 | (char *) "logLevel", NULL | |
6915 | }; | |
6916 | ||
6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
6918 | { | |
6919 | arg1 = (wxLogLevel) SWIG_PyObj_AsUnsignedLong(obj0); | |
6920 | if (PyErr_Occurred()) SWIG_fail; | |
6921 | } | |
6922 | { | |
6923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6924 | wxLog::SetLogLevel(arg1); | |
6925 | ||
6926 | wxPyEndAllowThreads(__tstate); | |
6927 | if (PyErr_Occurred()) SWIG_fail; | |
6928 | } | |
6929 | Py_INCREF(Py_None); resultobj = Py_None; | |
6930 | return resultobj; | |
6931 | fail: | |
6932 | return NULL; | |
6933 | } | |
6934 | ||
6935 | ||
6936 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6937 | PyObject *resultobj; | |
6938 | char *kwnames[] = { | |
6939 | NULL | |
6940 | }; | |
6941 | ||
6942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
6943 | { | |
6944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6945 | wxLog::DontCreateOnDemand(); | |
6946 | ||
6947 | wxPyEndAllowThreads(__tstate); | |
6948 | if (PyErr_Occurred()) SWIG_fail; | |
6949 | } | |
6950 | Py_INCREF(Py_None); resultobj = Py_None; | |
6951 | return resultobj; | |
6952 | fail: | |
6953 | return NULL; | |
6954 | } | |
6955 | ||
6956 | ||
6957 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6958 | PyObject *resultobj; | |
6959 | wxTraceMask arg1 ; | |
6960 | PyObject * obj0 = 0 ; | |
6961 | char *kwnames[] = { | |
6962 | (char *) "ulMask", NULL | |
6963 | }; | |
6964 | ||
6965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
6966 | { | |
6967 | arg1 = (wxTraceMask) SWIG_PyObj_AsUnsignedLong(obj0); | |
6968 | if (PyErr_Occurred()) SWIG_fail; | |
6969 | } | |
6970 | { | |
6971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6972 | wxLog::SetTraceMask(arg1); | |
6973 | ||
6974 | wxPyEndAllowThreads(__tstate); | |
6975 | if (PyErr_Occurred()) SWIG_fail; | |
6976 | } | |
6977 | Py_INCREF(Py_None); resultobj = Py_None; | |
6978 | return resultobj; | |
6979 | fail: | |
6980 | return NULL; | |
6981 | } | |
6982 | ||
6983 | ||
6984 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6985 | PyObject *resultobj; | |
6986 | wxString *arg1 = 0 ; | |
6987 | bool temp1 = False ; | |
6988 | PyObject * obj0 = 0 ; | |
6989 | char *kwnames[] = { | |
6990 | (char *) "str", NULL | |
6991 | }; | |
6992 | ||
6993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
6994 | { | |
6995 | arg1 = wxString_in_helper(obj0); | |
6996 | if (arg1 == NULL) SWIG_fail; | |
6997 | temp1 = True; | |
6998 | } | |
6999 | { | |
7000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7001 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7002 | ||
7003 | wxPyEndAllowThreads(__tstate); | |
7004 | if (PyErr_Occurred()) SWIG_fail; | |
7005 | } | |
7006 | Py_INCREF(Py_None); resultobj = Py_None; | |
7007 | { | |
7008 | if (temp1) | |
7009 | delete arg1; | |
7010 | } | |
7011 | return resultobj; | |
7012 | fail: | |
7013 | { | |
7014 | if (temp1) | |
7015 | delete arg1; | |
7016 | } | |
7017 | return NULL; | |
7018 | } | |
7019 | ||
7020 | ||
7021 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7022 | PyObject *resultobj; | |
7023 | wxString *arg1 = 0 ; | |
7024 | bool temp1 = False ; | |
7025 | PyObject * obj0 = 0 ; | |
7026 | char *kwnames[] = { | |
7027 | (char *) "str", NULL | |
7028 | }; | |
7029 | ||
7030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7031 | { | |
7032 | arg1 = wxString_in_helper(obj0); | |
7033 | if (arg1 == NULL) SWIG_fail; | |
7034 | temp1 = True; | |
7035 | } | |
7036 | { | |
7037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7038 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7039 | ||
7040 | wxPyEndAllowThreads(__tstate); | |
7041 | if (PyErr_Occurred()) SWIG_fail; | |
7042 | } | |
7043 | Py_INCREF(Py_None); resultobj = Py_None; | |
7044 | { | |
7045 | if (temp1) | |
7046 | delete arg1; | |
7047 | } | |
7048 | return resultobj; | |
7049 | fail: | |
7050 | { | |
7051 | if (temp1) | |
7052 | delete arg1; | |
7053 | } | |
7054 | return NULL; | |
7055 | } | |
7056 | ||
7057 | ||
7058 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7059 | PyObject *resultobj; | |
7060 | char *kwnames[] = { | |
7061 | NULL | |
7062 | }; | |
7063 | ||
7064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7065 | { | |
7066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7067 | wxLog::ClearTraceMasks(); | |
7068 | ||
7069 | wxPyEndAllowThreads(__tstate); | |
7070 | if (PyErr_Occurred()) SWIG_fail; | |
7071 | } | |
7072 | Py_INCREF(Py_None); resultobj = Py_None; | |
7073 | return resultobj; | |
7074 | fail: | |
7075 | return NULL; | |
7076 | } | |
7077 | ||
7078 | ||
7079 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7080 | PyObject *resultobj; | |
7081 | wxArrayString *result; | |
7082 | char *kwnames[] = { | |
7083 | NULL | |
7084 | }; | |
7085 | ||
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | { | |
7090 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7091 | result = (wxArrayString *) &_result_ref; | |
7092 | } | |
7093 | ||
7094 | wxPyEndAllowThreads(__tstate); | |
7095 | if (PyErr_Occurred()) SWIG_fail; | |
7096 | } | |
7097 | { | |
7098 | resultobj = wxArrayString2PyList_helper(*result); | |
7099 | } | |
7100 | return resultobj; | |
7101 | fail: | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
7106 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7107 | PyObject *resultobj; | |
7108 | wxChar *arg1 = (wxChar *) 0 ; | |
7109 | PyObject * obj0 = 0 ; | |
7110 | char *kwnames[] = { | |
7111 | (char *) "ts", NULL | |
7112 | }; | |
7113 | ||
7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7116 | { | |
7117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7118 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7119 | ||
7120 | wxPyEndAllowThreads(__tstate); | |
7121 | if (PyErr_Occurred()) SWIG_fail; | |
7122 | } | |
7123 | Py_INCREF(Py_None); resultobj = Py_None; | |
7124 | return resultobj; | |
7125 | fail: | |
7126 | return NULL; | |
7127 | } | |
7128 | ||
7129 | ||
7130 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7131 | PyObject *resultobj; | |
7132 | bool result; | |
7133 | char *kwnames[] = { | |
7134 | NULL | |
7135 | }; | |
7136 | ||
7137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7138 | { | |
7139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7140 | result = (bool)wxLog::GetVerbose(); | |
7141 | ||
7142 | wxPyEndAllowThreads(__tstate); | |
7143 | if (PyErr_Occurred()) SWIG_fail; | |
7144 | } | |
7145 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7146 | return resultobj; | |
7147 | fail: | |
7148 | return NULL; | |
7149 | } | |
7150 | ||
7151 | ||
7152 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7153 | PyObject *resultobj; | |
7154 | wxTraceMask result; | |
7155 | char *kwnames[] = { | |
7156 | NULL | |
7157 | }; | |
7158 | ||
7159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7160 | { | |
7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7162 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7163 | ||
7164 | wxPyEndAllowThreads(__tstate); | |
7165 | if (PyErr_Occurred()) SWIG_fail; | |
7166 | } | |
7167 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
7168 | return resultobj; | |
7169 | fail: | |
7170 | return NULL; | |
7171 | } | |
7172 | ||
7173 | ||
7174 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7175 | PyObject *resultobj; | |
7176 | wxChar *arg1 = (wxChar *) 0 ; | |
7177 | bool result; | |
7178 | PyObject * obj0 = 0 ; | |
7179 | char *kwnames[] = { | |
7180 | (char *) "mask", NULL | |
7181 | }; | |
7182 | ||
7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7185 | { | |
7186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7187 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7188 | ||
7189 | wxPyEndAllowThreads(__tstate); | |
7190 | if (PyErr_Occurred()) SWIG_fail; | |
7191 | } | |
7192 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | return NULL; | |
7196 | } | |
7197 | ||
7198 | ||
7199 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7200 | PyObject *resultobj; | |
7201 | wxLogLevel result; | |
7202 | char *kwnames[] = { | |
7203 | NULL | |
7204 | }; | |
7205 | ||
7206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7207 | { | |
7208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7209 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7210 | ||
7211 | wxPyEndAllowThreads(__tstate); | |
7212 | if (PyErr_Occurred()) SWIG_fail; | |
7213 | } | |
7214 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
7215 | return resultobj; | |
7216 | fail: | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
7221 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7222 | PyObject *resultobj; | |
7223 | wxChar *result; | |
7224 | char *kwnames[] = { | |
7225 | NULL | |
7226 | }; | |
7227 | ||
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7229 | { | |
7230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7231 | result = (wxChar *)wxLog::GetTimestamp(); | |
7232 | ||
7233 | wxPyEndAllowThreads(__tstate); | |
7234 | if (PyErr_Occurred()) SWIG_fail; | |
7235 | } | |
7236 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0); | |
7237 | return resultobj; | |
7238 | fail: | |
7239 | return NULL; | |
7240 | } | |
7241 | ||
7242 | ||
7243 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7244 | PyObject *resultobj; | |
7245 | wxString result; | |
7246 | char *kwnames[] = { | |
7247 | NULL | |
7248 | }; | |
7249 | ||
7250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7251 | { | |
7252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7253 | result = Log_TimeStamp(); | |
7254 | ||
7255 | wxPyEndAllowThreads(__tstate); | |
7256 | if (PyErr_Occurred()) SWIG_fail; | |
7257 | } | |
7258 | { | |
7259 | #if wxUSE_UNICODE | |
7260 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7261 | #else | |
7262 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7263 | #endif | |
7264 | } | |
7265 | return resultobj; | |
7266 | fail: | |
7267 | return NULL; | |
7268 | } | |
7269 | ||
7270 | ||
7271 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7272 | PyObject *resultobj; | |
7273 | wxLog *arg1 = (wxLog *) 0 ; | |
7274 | PyObject * obj0 = 0 ; | |
7275 | char *kwnames[] = { | |
7276 | (char *) "self", NULL | |
7277 | }; | |
7278 | ||
7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
7280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7281 | { | |
7282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7283 | wxLog_Destroy(arg1); | |
7284 | ||
7285 | wxPyEndAllowThreads(__tstate); | |
7286 | if (PyErr_Occurred()) SWIG_fail; | |
7287 | } | |
7288 | Py_INCREF(Py_None); resultobj = Py_None; | |
7289 | return resultobj; | |
7290 | fail: | |
7291 | return NULL; | |
7292 | } | |
7293 | ||
7294 | ||
7295 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7296 | PyObject *obj; | |
7297 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7298 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7299 | Py_INCREF(obj); | |
7300 | return Py_BuildValue((char *)""); | |
7301 | } | |
7302 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7303 | PyObject *resultobj; | |
7304 | wxLogStderr *result; | |
7305 | char *kwnames[] = { | |
7306 | NULL | |
7307 | }; | |
7308 | ||
7309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7310 | { | |
7311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7312 | result = (wxLogStderr *)new wxLogStderr(); | |
7313 | ||
7314 | wxPyEndAllowThreads(__tstate); | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
7317 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1); | |
7318 | return resultobj; | |
7319 | fail: | |
7320 | return NULL; | |
7321 | } | |
7322 | ||
7323 | ||
7324 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7325 | PyObject *obj; | |
7326 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7327 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7328 | Py_INCREF(obj); | |
7329 | return Py_BuildValue((char *)""); | |
7330 | } | |
7331 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject *resultobj; | |
7333 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7334 | wxLogTextCtrl *result; | |
7335 | PyObject * obj0 = 0 ; | |
7336 | char *kwnames[] = { | |
7337 | (char *) "pTextCtrl", NULL | |
7338 | }; | |
7339 | ||
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
7341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7342 | { | |
7343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7344 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7345 | ||
7346 | wxPyEndAllowThreads(__tstate); | |
7347 | if (PyErr_Occurred()) SWIG_fail; | |
7348 | } | |
7349 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1); | |
7350 | return resultobj; | |
7351 | fail: | |
7352 | return NULL; | |
7353 | } | |
7354 | ||
7355 | ||
7356 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7357 | PyObject *obj; | |
7358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7359 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7360 | Py_INCREF(obj); | |
7361 | return Py_BuildValue((char *)""); | |
7362 | } | |
7363 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7364 | PyObject *resultobj; | |
7365 | wxLogGui *result; | |
7366 | char *kwnames[] = { | |
7367 | NULL | |
7368 | }; | |
7369 | ||
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7371 | { | |
7372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7373 | result = (wxLogGui *)new wxLogGui(); | |
7374 | ||
7375 | wxPyEndAllowThreads(__tstate); | |
7376 | if (PyErr_Occurred()) SWIG_fail; | |
7377 | } | |
7378 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1); | |
7379 | return resultobj; | |
7380 | fail: | |
7381 | return NULL; | |
7382 | } | |
7383 | ||
7384 | ||
7385 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7386 | PyObject *obj; | |
7387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7388 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7389 | Py_INCREF(obj); | |
7390 | return Py_BuildValue((char *)""); | |
7391 | } | |
7392 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7393 | PyObject *resultobj; | |
7394 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7395 | wxString *arg2 = 0 ; | |
7396 | bool arg3 = (bool) True ; | |
7397 | bool arg4 = (bool) True ; | |
7398 | wxLogWindow *result; | |
7399 | bool temp2 = False ; | |
7400 | PyObject * obj0 = 0 ; | |
7401 | PyObject * obj1 = 0 ; | |
7402 | PyObject * obj2 = 0 ; | |
7403 | PyObject * obj3 = 0 ; | |
7404 | char *kwnames[] = { | |
7405 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7406 | }; | |
7407 | ||
7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7410 | { | |
7411 | arg2 = wxString_in_helper(obj1); | |
7412 | if (arg2 == NULL) SWIG_fail; | |
7413 | temp2 = True; | |
7414 | } | |
7415 | if (obj2) { | |
7416 | { | |
7417 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
7418 | if (PyErr_Occurred()) SWIG_fail; | |
7419 | } | |
7420 | } | |
7421 | if (obj3) { | |
7422 | { | |
7423 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
7424 | if (PyErr_Occurred()) SWIG_fail; | |
7425 | } | |
7426 | } | |
7427 | { | |
7428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7429 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7430 | ||
7431 | wxPyEndAllowThreads(__tstate); | |
7432 | if (PyErr_Occurred()) SWIG_fail; | |
7433 | } | |
7434 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1); | |
7435 | { | |
7436 | if (temp2) | |
7437 | delete arg2; | |
7438 | } | |
7439 | return resultobj; | |
7440 | fail: | |
7441 | { | |
7442 | if (temp2) | |
7443 | delete arg2; | |
7444 | } | |
7445 | return NULL; | |
7446 | } | |
7447 | ||
7448 | ||
7449 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7450 | PyObject *resultobj; | |
7451 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7452 | bool arg2 = (bool) True ; | |
7453 | PyObject * obj0 = 0 ; | |
7454 | PyObject * obj1 = 0 ; | |
7455 | char *kwnames[] = { | |
7456 | (char *) "self",(char *) "bShow", NULL | |
7457 | }; | |
7458 | ||
7459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
7460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7461 | if (obj1) { | |
7462 | { | |
7463 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
7464 | if (PyErr_Occurred()) SWIG_fail; | |
7465 | } | |
7466 | } | |
7467 | { | |
7468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7469 | (arg1)->Show(arg2); | |
7470 | ||
7471 | wxPyEndAllowThreads(__tstate); | |
7472 | if (PyErr_Occurred()) SWIG_fail; | |
7473 | } | |
7474 | Py_INCREF(Py_None); resultobj = Py_None; | |
7475 | return resultobj; | |
7476 | fail: | |
7477 | return NULL; | |
7478 | } | |
7479 | ||
7480 | ||
7481 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7482 | PyObject *resultobj; | |
7483 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7484 | wxFrame *result; | |
7485 | PyObject * obj0 = 0 ; | |
7486 | char *kwnames[] = { | |
7487 | (char *) "self", NULL | |
7488 | }; | |
7489 | ||
7490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7492 | { | |
7493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7494 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7495 | ||
7496 | wxPyEndAllowThreads(__tstate); | |
7497 | if (PyErr_Occurred()) SWIG_fail; | |
7498 | } | |
7499 | { | |
7500 | resultobj = wxPyMake_wxObject(result); | |
7501 | } | |
7502 | return resultobj; | |
7503 | fail: | |
7504 | return NULL; | |
7505 | } | |
7506 | ||
7507 | ||
7508 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7509 | PyObject *resultobj; | |
7510 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7511 | wxLog *result; | |
7512 | PyObject * obj0 = 0 ; | |
7513 | char *kwnames[] = { | |
7514 | (char *) "self", NULL | |
7515 | }; | |
7516 | ||
7517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7519 | { | |
7520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7521 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7522 | ||
7523 | wxPyEndAllowThreads(__tstate); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | } | |
7526 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7527 | return resultobj; | |
7528 | fail: | |
7529 | return NULL; | |
7530 | } | |
7531 | ||
7532 | ||
7533 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7534 | PyObject *resultobj; | |
7535 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7536 | bool result; | |
7537 | PyObject * obj0 = 0 ; | |
7538 | char *kwnames[] = { | |
7539 | (char *) "self", NULL | |
7540 | }; | |
7541 | ||
7542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7544 | { | |
7545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7546 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7547 | ||
7548 | wxPyEndAllowThreads(__tstate); | |
7549 | if (PyErr_Occurred()) SWIG_fail; | |
7550 | } | |
7551 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7552 | return resultobj; | |
7553 | fail: | |
7554 | return NULL; | |
7555 | } | |
7556 | ||
7557 | ||
7558 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7559 | PyObject *resultobj; | |
7560 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7561 | bool arg2 ; | |
7562 | PyObject * obj0 = 0 ; | |
7563 | PyObject * obj1 = 0 ; | |
7564 | char *kwnames[] = { | |
7565 | (char *) "self",(char *) "bDoPass", NULL | |
7566 | }; | |
7567 | ||
7568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7570 | { | |
7571 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
7572 | if (PyErr_Occurred()) SWIG_fail; | |
7573 | } | |
7574 | { | |
7575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7576 | (arg1)->PassMessages(arg2); | |
7577 | ||
7578 | wxPyEndAllowThreads(__tstate); | |
7579 | if (PyErr_Occurred()) SWIG_fail; | |
7580 | } | |
7581 | Py_INCREF(Py_None); resultobj = Py_None; | |
7582 | return resultobj; | |
7583 | fail: | |
7584 | return NULL; | |
7585 | } | |
7586 | ||
7587 | ||
7588 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7589 | PyObject *obj; | |
7590 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7591 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7592 | Py_INCREF(obj); | |
7593 | return Py_BuildValue((char *)""); | |
7594 | } | |
7595 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7596 | PyObject *resultobj; | |
7597 | wxLog *arg1 = (wxLog *) 0 ; | |
7598 | wxLogChain *result; | |
7599 | PyObject * obj0 = 0 ; | |
7600 | char *kwnames[] = { | |
7601 | (char *) "logger", NULL | |
7602 | }; | |
7603 | ||
7604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7606 | { | |
7607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7608 | result = (wxLogChain *)new wxLogChain(arg1); | |
7609 | ||
7610 | wxPyEndAllowThreads(__tstate); | |
7611 | if (PyErr_Occurred()) SWIG_fail; | |
7612 | } | |
7613 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1); | |
7614 | return resultobj; | |
7615 | fail: | |
7616 | return NULL; | |
7617 | } | |
7618 | ||
7619 | ||
7620 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7621 | PyObject *resultobj; | |
7622 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7623 | wxLog *arg2 = (wxLog *) 0 ; | |
7624 | PyObject * obj0 = 0 ; | |
7625 | PyObject * obj1 = 0 ; | |
7626 | char *kwnames[] = { | |
7627 | (char *) "self",(char *) "logger", NULL | |
7628 | }; | |
7629 | ||
7630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7632 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7633 | { | |
7634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7635 | (arg1)->SetLog(arg2); | |
7636 | ||
7637 | wxPyEndAllowThreads(__tstate); | |
7638 | if (PyErr_Occurred()) SWIG_fail; | |
7639 | } | |
7640 | Py_INCREF(Py_None); resultobj = Py_None; | |
7641 | return resultobj; | |
7642 | fail: | |
7643 | return NULL; | |
7644 | } | |
7645 | ||
7646 | ||
7647 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7648 | PyObject *resultobj; | |
7649 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7650 | bool arg2 ; | |
7651 | PyObject * obj0 = 0 ; | |
7652 | PyObject * obj1 = 0 ; | |
7653 | char *kwnames[] = { | |
7654 | (char *) "self",(char *) "bDoPass", NULL | |
7655 | }; | |
7656 | ||
7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7659 | { | |
7660 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
7661 | if (PyErr_Occurred()) SWIG_fail; | |
7662 | } | |
7663 | { | |
7664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7665 | (arg1)->PassMessages(arg2); | |
7666 | ||
7667 | wxPyEndAllowThreads(__tstate); | |
7668 | if (PyErr_Occurred()) SWIG_fail; | |
7669 | } | |
7670 | Py_INCREF(Py_None); resultobj = Py_None; | |
7671 | return resultobj; | |
7672 | fail: | |
7673 | return NULL; | |
7674 | } | |
7675 | ||
7676 | ||
7677 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7678 | PyObject *resultobj; | |
7679 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7680 | bool result; | |
7681 | PyObject * obj0 = 0 ; | |
7682 | char *kwnames[] = { | |
7683 | (char *) "self", NULL | |
7684 | }; | |
7685 | ||
7686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7688 | { | |
7689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7690 | result = (bool)(arg1)->IsPassingMessages(); | |
7691 | ||
7692 | wxPyEndAllowThreads(__tstate); | |
7693 | if (PyErr_Occurred()) SWIG_fail; | |
7694 | } | |
7695 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7696 | return resultobj; | |
7697 | fail: | |
7698 | return NULL; | |
7699 | } | |
7700 | ||
7701 | ||
7702 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7703 | PyObject *resultobj; | |
7704 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7705 | wxLog *result; | |
7706 | PyObject * obj0 = 0 ; | |
7707 | char *kwnames[] = { | |
7708 | (char *) "self", NULL | |
7709 | }; | |
7710 | ||
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7713 | { | |
7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7715 | result = (wxLog *)(arg1)->GetOldLog(); | |
7716 | ||
7717 | wxPyEndAllowThreads(__tstate); | |
7718 | if (PyErr_Occurred()) SWIG_fail; | |
7719 | } | |
7720 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7721 | return resultobj; | |
7722 | fail: | |
7723 | return NULL; | |
7724 | } | |
7725 | ||
7726 | ||
7727 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7728 | PyObject *obj; | |
7729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7730 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7731 | Py_INCREF(obj); | |
7732 | return Py_BuildValue((char *)""); | |
7733 | } | |
7734 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7735 | PyObject *resultobj; | |
7736 | unsigned long result; | |
7737 | char *kwnames[] = { | |
7738 | NULL | |
7739 | }; | |
7740 | ||
7741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7742 | { | |
7743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7744 | result = (unsigned long)wxSysErrorCode(); | |
7745 | ||
7746 | wxPyEndAllowThreads(__tstate); | |
7747 | if (PyErr_Occurred()) SWIG_fail; | |
7748 | } | |
7749 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
7750 | return resultobj; | |
7751 | fail: | |
7752 | return NULL; | |
7753 | } | |
7754 | ||
7755 | ||
7756 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7757 | PyObject *resultobj; | |
7758 | unsigned long arg1 = (unsigned long) 0 ; | |
7759 | wxString result; | |
7760 | PyObject * obj0 = 0 ; | |
7761 | char *kwnames[] = { | |
7762 | (char *) "nErrCode", NULL | |
7763 | }; | |
7764 | ||
7765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7766 | if (obj0) { | |
7767 | { | |
7768 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); | |
7769 | if (PyErr_Occurred()) SWIG_fail; | |
7770 | } | |
7771 | } | |
7772 | { | |
7773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7774 | result = wxSysErrorMsg(arg1); | |
7775 | ||
7776 | wxPyEndAllowThreads(__tstate); | |
7777 | if (PyErr_Occurred()) SWIG_fail; | |
7778 | } | |
7779 | { | |
7780 | #if wxUSE_UNICODE | |
7781 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7782 | #else | |
7783 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7784 | #endif | |
7785 | } | |
7786 | return resultobj; | |
7787 | fail: | |
7788 | return NULL; | |
7789 | } | |
7790 | ||
7791 | ||
7792 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7793 | PyObject *resultobj; | |
7794 | wxString *arg1 = 0 ; | |
7795 | bool temp1 = False ; | |
7796 | PyObject * obj0 = 0 ; | |
7797 | char *kwnames[] = { | |
7798 | (char *) "msg", NULL | |
7799 | }; | |
7800 | ||
7801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7802 | { | |
7803 | arg1 = wxString_in_helper(obj0); | |
7804 | if (arg1 == NULL) SWIG_fail; | |
7805 | temp1 = True; | |
7806 | } | |
7807 | { | |
7808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7809 | wxLogFatalError((wxString const &)*arg1); | |
7810 | ||
7811 | wxPyEndAllowThreads(__tstate); | |
7812 | if (PyErr_Occurred()) SWIG_fail; | |
7813 | } | |
7814 | Py_INCREF(Py_None); resultobj = Py_None; | |
7815 | { | |
7816 | if (temp1) | |
7817 | delete arg1; | |
7818 | } | |
7819 | return resultobj; | |
7820 | fail: | |
7821 | { | |
7822 | if (temp1) | |
7823 | delete arg1; | |
7824 | } | |
7825 | return NULL; | |
7826 | } | |
7827 | ||
7828 | ||
7829 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7830 | PyObject *resultobj; | |
7831 | wxString *arg1 = 0 ; | |
7832 | bool temp1 = False ; | |
7833 | PyObject * obj0 = 0 ; | |
7834 | char *kwnames[] = { | |
7835 | (char *) "msg", NULL | |
7836 | }; | |
7837 | ||
7838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7839 | { | |
7840 | arg1 = wxString_in_helper(obj0); | |
7841 | if (arg1 == NULL) SWIG_fail; | |
7842 | temp1 = True; | |
7843 | } | |
7844 | { | |
7845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7846 | wxLogError((wxString const &)*arg1); | |
7847 | ||
7848 | wxPyEndAllowThreads(__tstate); | |
7849 | if (PyErr_Occurred()) SWIG_fail; | |
7850 | } | |
7851 | Py_INCREF(Py_None); resultobj = Py_None; | |
7852 | { | |
7853 | if (temp1) | |
7854 | delete arg1; | |
7855 | } | |
7856 | return resultobj; | |
7857 | fail: | |
7858 | { | |
7859 | if (temp1) | |
7860 | delete arg1; | |
7861 | } | |
7862 | return NULL; | |
7863 | } | |
7864 | ||
7865 | ||
7866 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7867 | PyObject *resultobj; | |
7868 | wxString *arg1 = 0 ; | |
7869 | bool temp1 = False ; | |
7870 | PyObject * obj0 = 0 ; | |
7871 | char *kwnames[] = { | |
7872 | (char *) "msg", NULL | |
7873 | }; | |
7874 | ||
7875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
7876 | { | |
7877 | arg1 = wxString_in_helper(obj0); | |
7878 | if (arg1 == NULL) SWIG_fail; | |
7879 | temp1 = True; | |
7880 | } | |
7881 | { | |
7882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7883 | wxLogWarning((wxString const &)*arg1); | |
7884 | ||
7885 | wxPyEndAllowThreads(__tstate); | |
7886 | if (PyErr_Occurred()) SWIG_fail; | |
7887 | } | |
7888 | Py_INCREF(Py_None); resultobj = Py_None; | |
7889 | { | |
7890 | if (temp1) | |
7891 | delete arg1; | |
7892 | } | |
7893 | return resultobj; | |
7894 | fail: | |
7895 | { | |
7896 | if (temp1) | |
7897 | delete arg1; | |
7898 | } | |
7899 | return NULL; | |
7900 | } | |
7901 | ||
7902 | ||
7903 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7904 | PyObject *resultobj; | |
7905 | wxString *arg1 = 0 ; | |
7906 | bool temp1 = False ; | |
7907 | PyObject * obj0 = 0 ; | |
7908 | char *kwnames[] = { | |
7909 | (char *) "msg", NULL | |
7910 | }; | |
7911 | ||
7912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
7913 | { | |
7914 | arg1 = wxString_in_helper(obj0); | |
7915 | if (arg1 == NULL) SWIG_fail; | |
7916 | temp1 = True; | |
7917 | } | |
7918 | { | |
7919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7920 | wxLogMessage((wxString const &)*arg1); | |
7921 | ||
7922 | wxPyEndAllowThreads(__tstate); | |
7923 | if (PyErr_Occurred()) SWIG_fail; | |
7924 | } | |
7925 | Py_INCREF(Py_None); resultobj = Py_None; | |
7926 | { | |
7927 | if (temp1) | |
7928 | delete arg1; | |
7929 | } | |
7930 | return resultobj; | |
7931 | fail: | |
7932 | { | |
7933 | if (temp1) | |
7934 | delete arg1; | |
7935 | } | |
7936 | return NULL; | |
7937 | } | |
7938 | ||
7939 | ||
7940 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7941 | PyObject *resultobj; | |
7942 | wxString *arg1 = 0 ; | |
7943 | bool temp1 = False ; | |
7944 | PyObject * obj0 = 0 ; | |
7945 | char *kwnames[] = { | |
7946 | (char *) "msg", NULL | |
7947 | }; | |
7948 | ||
7949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
7950 | { | |
7951 | arg1 = wxString_in_helper(obj0); | |
7952 | if (arg1 == NULL) SWIG_fail; | |
7953 | temp1 = True; | |
7954 | } | |
7955 | { | |
7956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7957 | wxLogInfo((wxString const &)*arg1); | |
7958 | ||
7959 | wxPyEndAllowThreads(__tstate); | |
7960 | if (PyErr_Occurred()) SWIG_fail; | |
7961 | } | |
7962 | Py_INCREF(Py_None); resultobj = Py_None; | |
7963 | { | |
7964 | if (temp1) | |
7965 | delete arg1; | |
7966 | } | |
7967 | return resultobj; | |
7968 | fail: | |
7969 | { | |
7970 | if (temp1) | |
7971 | delete arg1; | |
7972 | } | |
7973 | return NULL; | |
7974 | } | |
7975 | ||
7976 | ||
7977 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7978 | PyObject *resultobj; | |
7979 | wxString *arg1 = 0 ; | |
7980 | bool temp1 = False ; | |
7981 | PyObject * obj0 = 0 ; | |
7982 | char *kwnames[] = { | |
7983 | (char *) "msg", NULL | |
7984 | }; | |
7985 | ||
7986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
7987 | { | |
7988 | arg1 = wxString_in_helper(obj0); | |
7989 | if (arg1 == NULL) SWIG_fail; | |
7990 | temp1 = True; | |
7991 | } | |
7992 | { | |
7993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7994 | wxLogDebug((wxString const &)*arg1); | |
7995 | ||
7996 | wxPyEndAllowThreads(__tstate); | |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
7998 | } | |
7999 | Py_INCREF(Py_None); resultobj = Py_None; | |
8000 | { | |
8001 | if (temp1) | |
8002 | delete arg1; | |
8003 | } | |
8004 | return resultobj; | |
8005 | fail: | |
8006 | { | |
8007 | if (temp1) | |
8008 | delete arg1; | |
8009 | } | |
8010 | return NULL; | |
8011 | } | |
8012 | ||
8013 | ||
8014 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8015 | PyObject *resultobj; | |
8016 | wxString *arg1 = 0 ; | |
8017 | bool temp1 = False ; | |
8018 | PyObject * obj0 = 0 ; | |
8019 | char *kwnames[] = { | |
8020 | (char *) "msg", NULL | |
8021 | }; | |
8022 | ||
8023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8024 | { | |
8025 | arg1 = wxString_in_helper(obj0); | |
8026 | if (arg1 == NULL) SWIG_fail; | |
8027 | temp1 = True; | |
8028 | } | |
8029 | { | |
8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8031 | wxLogVerbose((wxString const &)*arg1); | |
8032 | ||
8033 | wxPyEndAllowThreads(__tstate); | |
8034 | if (PyErr_Occurred()) SWIG_fail; | |
8035 | } | |
8036 | Py_INCREF(Py_None); resultobj = Py_None; | |
8037 | { | |
8038 | if (temp1) | |
8039 | delete arg1; | |
8040 | } | |
8041 | return resultobj; | |
8042 | fail: | |
8043 | { | |
8044 | if (temp1) | |
8045 | delete arg1; | |
8046 | } | |
8047 | return NULL; | |
8048 | } | |
8049 | ||
8050 | ||
8051 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8052 | PyObject *resultobj; | |
8053 | wxString *arg1 = 0 ; | |
8054 | bool temp1 = False ; | |
8055 | PyObject * obj0 = 0 ; | |
8056 | char *kwnames[] = { | |
8057 | (char *) "msg", NULL | |
8058 | }; | |
8059 | ||
8060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8061 | { | |
8062 | arg1 = wxString_in_helper(obj0); | |
8063 | if (arg1 == NULL) SWIG_fail; | |
8064 | temp1 = True; | |
8065 | } | |
8066 | { | |
8067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8068 | wxLogStatus((wxString const &)*arg1); | |
8069 | ||
8070 | wxPyEndAllowThreads(__tstate); | |
8071 | if (PyErr_Occurred()) SWIG_fail; | |
8072 | } | |
8073 | Py_INCREF(Py_None); resultobj = Py_None; | |
8074 | { | |
8075 | if (temp1) | |
8076 | delete arg1; | |
8077 | } | |
8078 | return resultobj; | |
8079 | fail: | |
8080 | { | |
8081 | if (temp1) | |
8082 | delete arg1; | |
8083 | } | |
8084 | return NULL; | |
8085 | } | |
8086 | ||
8087 | ||
8088 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8089 | PyObject *resultobj; | |
8090 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8091 | wxString *arg2 = 0 ; | |
8092 | bool temp2 = False ; | |
8093 | PyObject * obj0 = 0 ; | |
8094 | PyObject * obj1 = 0 ; | |
8095 | char *kwnames[] = { | |
8096 | (char *) "pFrame",(char *) "msg", NULL | |
8097 | }; | |
8098 | ||
8099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8101 | { | |
8102 | arg2 = wxString_in_helper(obj1); | |
8103 | if (arg2 == NULL) SWIG_fail; | |
8104 | temp2 = True; | |
8105 | } | |
8106 | { | |
8107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8108 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8109 | ||
8110 | wxPyEndAllowThreads(__tstate); | |
8111 | if (PyErr_Occurred()) SWIG_fail; | |
8112 | } | |
8113 | Py_INCREF(Py_None); resultobj = Py_None; | |
8114 | { | |
8115 | if (temp2) | |
8116 | delete arg2; | |
8117 | } | |
8118 | return resultobj; | |
8119 | fail: | |
8120 | { | |
8121 | if (temp2) | |
8122 | delete arg2; | |
8123 | } | |
8124 | return NULL; | |
8125 | } | |
8126 | ||
8127 | ||
8128 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8129 | PyObject *resultobj; | |
8130 | wxString *arg1 = 0 ; | |
8131 | bool temp1 = False ; | |
8132 | PyObject * obj0 = 0 ; | |
8133 | char *kwnames[] = { | |
8134 | (char *) "msg", NULL | |
8135 | }; | |
8136 | ||
8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8138 | { | |
8139 | arg1 = wxString_in_helper(obj0); | |
8140 | if (arg1 == NULL) SWIG_fail; | |
8141 | temp1 = True; | |
8142 | } | |
8143 | { | |
8144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8145 | wxLogSysError((wxString const &)*arg1); | |
8146 | ||
8147 | wxPyEndAllowThreads(__tstate); | |
8148 | if (PyErr_Occurred()) SWIG_fail; | |
8149 | } | |
8150 | Py_INCREF(Py_None); resultobj = Py_None; | |
8151 | { | |
8152 | if (temp1) | |
8153 | delete arg1; | |
8154 | } | |
8155 | return resultobj; | |
8156 | fail: | |
8157 | { | |
8158 | if (temp1) | |
8159 | delete arg1; | |
8160 | } | |
8161 | return NULL; | |
8162 | } | |
8163 | ||
8164 | ||
8165 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { | |
8166 | PyObject *resultobj; | |
8167 | unsigned long arg1 ; | |
8168 | wxString *arg2 = 0 ; | |
8169 | bool temp2 = False ; | |
8170 | PyObject * obj0 = 0 ; | |
8171 | PyObject * obj1 = 0 ; | |
8172 | ||
8173 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8174 | { | |
8175 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); | |
8176 | if (PyErr_Occurred()) SWIG_fail; | |
8177 | } | |
8178 | { | |
8179 | arg2 = wxString_in_helper(obj1); | |
8180 | if (arg2 == NULL) SWIG_fail; | |
8181 | temp2 = True; | |
8182 | } | |
8183 | { | |
8184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8185 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8186 | ||
8187 | wxPyEndAllowThreads(__tstate); | |
8188 | if (PyErr_Occurred()) SWIG_fail; | |
8189 | } | |
8190 | Py_INCREF(Py_None); resultobj = Py_None; | |
8191 | { | |
8192 | if (temp2) | |
8193 | delete arg2; | |
8194 | } | |
8195 | return resultobj; | |
8196 | fail: | |
8197 | { | |
8198 | if (temp2) | |
8199 | delete arg2; | |
8200 | } | |
8201 | return NULL; | |
8202 | } | |
8203 | ||
8204 | ||
8205 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { | |
8206 | PyObject *resultobj; | |
8207 | wxString *arg1 = 0 ; | |
8208 | wxString *arg2 = 0 ; | |
8209 | bool temp1 = False ; | |
8210 | bool temp2 = False ; | |
8211 | PyObject * obj0 = 0 ; | |
8212 | PyObject * obj1 = 0 ; | |
8213 | ||
8214 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8215 | { | |
8216 | arg1 = wxString_in_helper(obj0); | |
8217 | if (arg1 == NULL) SWIG_fail; | |
8218 | temp1 = True; | |
8219 | } | |
8220 | { | |
8221 | arg2 = wxString_in_helper(obj1); | |
8222 | if (arg2 == NULL) SWIG_fail; | |
8223 | temp2 = True; | |
8224 | } | |
8225 | { | |
8226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8227 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8228 | ||
8229 | wxPyEndAllowThreads(__tstate); | |
8230 | if (PyErr_Occurred()) SWIG_fail; | |
8231 | } | |
8232 | Py_INCREF(Py_None); resultobj = Py_None; | |
8233 | { | |
8234 | if (temp1) | |
8235 | delete arg1; | |
8236 | } | |
8237 | { | |
8238 | if (temp2) | |
8239 | delete arg2; | |
8240 | } | |
8241 | return resultobj; | |
8242 | fail: | |
8243 | { | |
8244 | if (temp1) | |
8245 | delete arg1; | |
8246 | } | |
8247 | { | |
8248 | if (temp2) | |
8249 | delete arg2; | |
8250 | } | |
8251 | return NULL; | |
8252 | } | |
8253 | ||
8254 | ||
8255 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
8256 | int argc; | |
8257 | PyObject *argv[3]; | |
8258 | int ii; | |
8259 | ||
8260 | argc = PyObject_Length(args); | |
8261 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8262 | argv[ii] = PyTuple_GetItem(args,ii); | |
8263 | } | |
8264 | if (argc == 2) { | |
8265 | int _v; | |
8266 | { | |
8267 | void *ptr; | |
8268 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
8269 | _v = 0; | |
8270 | PyErr_Clear(); | |
8271 | } else { | |
8272 | _v = 1; | |
8273 | } | |
8274 | } | |
8275 | if (_v) { | |
8276 | { | |
8277 | void *ptr; | |
8278 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
8279 | _v = 0; | |
8280 | PyErr_Clear(); | |
8281 | } else { | |
8282 | _v = 1; | |
8283 | } | |
8284 | } | |
8285 | if (_v) { | |
8286 | return _wrap_LogTrace__SWIG_1(self,args); | |
8287 | } | |
8288 | } | |
8289 | } | |
8290 | if (argc == 2) { | |
8291 | int _v; | |
8292 | { | |
8293 | SWIG_PyObj_AsUnsignedLong(argv[0]); | |
8294 | if (PyErr_Occurred()) { | |
8295 | _v = 0; | |
8296 | PyErr_Clear(); | |
8297 | } else { | |
8298 | _v = 1; | |
8299 | } | |
8300 | } | |
8301 | if (_v) { | |
8302 | { | |
8303 | void *ptr; | |
8304 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
8305 | _v = 0; | |
8306 | PyErr_Clear(); | |
8307 | } else { | |
8308 | _v = 1; | |
8309 | } | |
8310 | } | |
8311 | if (_v) { | |
8312 | return _wrap_LogTrace__SWIG_0(self,args); | |
8313 | } | |
8314 | } | |
8315 | } | |
8316 | ||
8317 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8318 | return NULL; | |
8319 | } | |
8320 | ||
8321 | ||
8322 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8323 | PyObject *resultobj; | |
8324 | unsigned long arg1 ; | |
8325 | wxString *arg2 = 0 ; | |
8326 | bool temp2 = False ; | |
8327 | PyObject * obj0 = 0 ; | |
8328 | PyObject * obj1 = 0 ; | |
8329 | char *kwnames[] = { | |
8330 | (char *) "level",(char *) "msg", NULL | |
8331 | }; | |
8332 | ||
8333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
8334 | { | |
8335 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); | |
8336 | if (PyErr_Occurred()) SWIG_fail; | |
8337 | } | |
8338 | { | |
8339 | arg2 = wxString_in_helper(obj1); | |
8340 | if (arg2 == NULL) SWIG_fail; | |
8341 | temp2 = True; | |
8342 | } | |
8343 | { | |
8344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8345 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8346 | ||
8347 | wxPyEndAllowThreads(__tstate); | |
8348 | if (PyErr_Occurred()) SWIG_fail; | |
8349 | } | |
8350 | Py_INCREF(Py_None); resultobj = Py_None; | |
8351 | { | |
8352 | if (temp2) | |
8353 | delete arg2; | |
8354 | } | |
8355 | return resultobj; | |
8356 | fail: | |
8357 | { | |
8358 | if (temp2) | |
8359 | delete arg2; | |
8360 | } | |
8361 | return NULL; | |
8362 | } | |
8363 | ||
8364 | ||
8365 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8366 | PyObject *resultobj; | |
8367 | wxString *arg1 = 0 ; | |
8368 | wxString *arg2 = 0 ; | |
8369 | bool temp1 = False ; | |
8370 | bool temp2 = False ; | |
8371 | PyObject * obj0 = 0 ; | |
8372 | PyObject * obj1 = 0 ; | |
8373 | char *kwnames[] = { | |
8374 | (char *) "title",(char *) "text", NULL | |
8375 | }; | |
8376 | ||
8377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8378 | { | |
8379 | arg1 = wxString_in_helper(obj0); | |
8380 | if (arg1 == NULL) SWIG_fail; | |
8381 | temp1 = True; | |
8382 | } | |
8383 | { | |
8384 | arg2 = wxString_in_helper(obj1); | |
8385 | if (arg2 == NULL) SWIG_fail; | |
8386 | temp2 = True; | |
8387 | } | |
8388 | { | |
8389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8390 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8391 | ||
8392 | wxPyEndAllowThreads(__tstate); | |
8393 | if (PyErr_Occurred()) SWIG_fail; | |
8394 | } | |
8395 | Py_INCREF(Py_None); resultobj = Py_None; | |
8396 | { | |
8397 | if (temp1) | |
8398 | delete arg1; | |
8399 | } | |
8400 | { | |
8401 | if (temp2) | |
8402 | delete arg2; | |
8403 | } | |
8404 | return resultobj; | |
8405 | fail: | |
8406 | { | |
8407 | if (temp1) | |
8408 | delete arg1; | |
8409 | } | |
8410 | { | |
8411 | if (temp2) | |
8412 | delete arg2; | |
8413 | } | |
8414 | return NULL; | |
8415 | } | |
8416 | ||
8417 | ||
8418 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8419 | PyObject *resultobj; | |
8420 | wxLogNull *result; | |
8421 | char *kwnames[] = { | |
8422 | NULL | |
8423 | }; | |
8424 | ||
8425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8426 | { | |
8427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8428 | result = (wxLogNull *)new wxLogNull(); | |
8429 | ||
8430 | wxPyEndAllowThreads(__tstate); | |
8431 | if (PyErr_Occurred()) SWIG_fail; | |
8432 | } | |
8433 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1); | |
8434 | return resultobj; | |
8435 | fail: | |
8436 | return NULL; | |
8437 | } | |
8438 | ||
8439 | ||
8440 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8441 | PyObject *resultobj; | |
8442 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8443 | PyObject * obj0 = 0 ; | |
8444 | char *kwnames[] = { | |
8445 | (char *) "self", NULL | |
8446 | }; | |
8447 | ||
8448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
8449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8450 | { | |
8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8452 | delete arg1; | |
8453 | ||
8454 | wxPyEndAllowThreads(__tstate); | |
8455 | if (PyErr_Occurred()) SWIG_fail; | |
8456 | } | |
8457 | Py_INCREF(Py_None); resultobj = Py_None; | |
8458 | return resultobj; | |
8459 | fail: | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
8464 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8465 | PyObject *obj; | |
8466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8467 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8468 | Py_INCREF(obj); | |
8469 | return Py_BuildValue((char *)""); | |
8470 | } | |
8471 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8472 | PyObject *resultobj; | |
8473 | wxPyLog *result; | |
8474 | char *kwnames[] = { | |
8475 | NULL | |
8476 | }; | |
8477 | ||
8478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8479 | { | |
8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8481 | result = (wxPyLog *)new wxPyLog(); | |
8482 | ||
8483 | wxPyEndAllowThreads(__tstate); | |
8484 | if (PyErr_Occurred()) SWIG_fail; | |
8485 | } | |
8486 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1); | |
8487 | return resultobj; | |
8488 | fail: | |
8489 | return NULL; | |
8490 | } | |
8491 | ||
8492 | ||
8493 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8494 | PyObject *resultobj; | |
8495 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8496 | PyObject *arg2 = (PyObject *) 0 ; | |
8497 | PyObject *arg3 = (PyObject *) 0 ; | |
8498 | PyObject * obj0 = 0 ; | |
8499 | PyObject * obj1 = 0 ; | |
8500 | PyObject * obj2 = 0 ; | |
8501 | char *kwnames[] = { | |
8502 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8503 | }; | |
8504 | ||
8505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8507 | arg2 = obj1; | |
8508 | arg3 = obj2; | |
8509 | { | |
8510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8511 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8512 | ||
8513 | wxPyEndAllowThreads(__tstate); | |
8514 | if (PyErr_Occurred()) SWIG_fail; | |
8515 | } | |
8516 | Py_INCREF(Py_None); resultobj = Py_None; | |
8517 | return resultobj; | |
8518 | fail: | |
8519 | return NULL; | |
8520 | } | |
8521 | ||
8522 | ||
8523 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8524 | PyObject *obj; | |
8525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8526 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8527 | Py_INCREF(obj); | |
8528 | return Py_BuildValue((char *)""); | |
8529 | } | |
8530 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8531 | PyObject *resultobj; | |
8532 | int arg1 ; | |
8533 | int arg2 = (int) wxSIGTERM ; | |
8534 | int result; | |
8535 | PyObject * obj0 = 0 ; | |
8536 | PyObject * obj1 = 0 ; | |
8537 | char *kwnames[] = { | |
8538 | (char *) "pid",(char *) "sig", NULL | |
8539 | }; | |
8540 | ||
8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
8542 | { | |
8543 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8544 | if (PyErr_Occurred()) SWIG_fail; | |
8545 | } | |
8546 | if (obj1) { | |
8547 | { | |
8548 | arg2 = (wxSignal) SWIG_PyObj_AsInt(obj1); | |
8549 | if (PyErr_Occurred()) SWIG_fail; | |
8550 | } | |
8551 | } | |
8552 | { | |
8553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8554 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8555 | ||
8556 | wxPyEndAllowThreads(__tstate); | |
8557 | if (PyErr_Occurred()) SWIG_fail; | |
8558 | } | |
8559 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8560 | return resultobj; | |
8561 | fail: | |
8562 | return NULL; | |
8563 | } | |
8564 | ||
8565 | ||
8566 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8567 | PyObject *resultobj; | |
8568 | int arg1 ; | |
8569 | bool result; | |
8570 | PyObject * obj0 = 0 ; | |
8571 | char *kwnames[] = { | |
8572 | (char *) "pid", NULL | |
8573 | }; | |
8574 | ||
8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
8576 | { | |
8577 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8578 | if (PyErr_Occurred()) SWIG_fail; | |
8579 | } | |
8580 | { | |
8581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8582 | result = (bool)wxPyProcess::Exists(arg1); | |
8583 | ||
8584 | wxPyEndAllowThreads(__tstate); | |
8585 | if (PyErr_Occurred()) SWIG_fail; | |
8586 | } | |
8587 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8588 | return resultobj; | |
8589 | fail: | |
8590 | return NULL; | |
8591 | } | |
8592 | ||
8593 | ||
8594 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8595 | PyObject *resultobj; | |
8596 | wxString *arg1 = 0 ; | |
8597 | int arg2 = (int) wxEXEC_ASYNC ; | |
8598 | wxPyProcess *result; | |
8599 | bool temp1 = False ; | |
8600 | PyObject * obj0 = 0 ; | |
8601 | PyObject * obj1 = 0 ; | |
8602 | char *kwnames[] = { | |
8603 | (char *) "cmd",(char *) "flags", NULL | |
8604 | }; | |
8605 | ||
8606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
8607 | { | |
8608 | arg1 = wxString_in_helper(obj0); | |
8609 | if (arg1 == NULL) SWIG_fail; | |
8610 | temp1 = True; | |
8611 | } | |
8612 | if (obj1) { | |
8613 | { | |
8614 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8615 | if (PyErr_Occurred()) SWIG_fail; | |
8616 | } | |
8617 | } | |
8618 | { | |
8619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8620 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8621 | ||
8622 | wxPyEndAllowThreads(__tstate); | |
8623 | if (PyErr_Occurred()) SWIG_fail; | |
8624 | } | |
8625 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0); | |
8626 | { | |
8627 | if (temp1) | |
8628 | delete arg1; | |
8629 | } | |
8630 | return resultobj; | |
8631 | fail: | |
8632 | { | |
8633 | if (temp1) | |
8634 | delete arg1; | |
8635 | } | |
8636 | return NULL; | |
8637 | } | |
8638 | ||
8639 | ||
8640 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8641 | PyObject *resultobj; | |
8642 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8643 | int arg2 = (int) -1 ; | |
8644 | wxPyProcess *result; | |
8645 | PyObject * obj0 = 0 ; | |
8646 | PyObject * obj1 = 0 ; | |
8647 | char *kwnames[] = { | |
8648 | (char *) "parent",(char *) "id", NULL | |
8649 | }; | |
8650 | ||
8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
8652 | if (obj0) { | |
8653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8654 | } | |
8655 | if (obj1) { | |
8656 | { | |
8657 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8658 | if (PyErr_Occurred()) SWIG_fail; | |
8659 | } | |
8660 | } | |
8661 | { | |
8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8663 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8664 | ||
8665 | wxPyEndAllowThreads(__tstate); | |
8666 | if (PyErr_Occurred()) SWIG_fail; | |
8667 | } | |
8668 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1); | |
8669 | return resultobj; | |
8670 | fail: | |
8671 | return NULL; | |
8672 | } | |
8673 | ||
8674 | ||
8675 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8676 | PyObject *resultobj; | |
8677 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8678 | PyObject *arg2 = (PyObject *) 0 ; | |
8679 | PyObject *arg3 = (PyObject *) 0 ; | |
8680 | PyObject * obj0 = 0 ; | |
8681 | PyObject * obj1 = 0 ; | |
8682 | PyObject * obj2 = 0 ; | |
8683 | char *kwnames[] = { | |
8684 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8685 | }; | |
8686 | ||
8687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8689 | arg2 = obj1; | |
8690 | arg3 = obj2; | |
8691 | { | |
8692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8693 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8694 | ||
8695 | wxPyEndAllowThreads(__tstate); | |
8696 | if (PyErr_Occurred()) SWIG_fail; | |
8697 | } | |
8698 | Py_INCREF(Py_None); resultobj = Py_None; | |
8699 | return resultobj; | |
8700 | fail: | |
8701 | return NULL; | |
8702 | } | |
8703 | ||
8704 | ||
8705 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8706 | PyObject *resultobj; | |
8707 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8708 | int arg2 ; | |
8709 | int arg3 ; | |
8710 | PyObject * obj0 = 0 ; | |
8711 | PyObject * obj1 = 0 ; | |
8712 | PyObject * obj2 = 0 ; | |
8713 | char *kwnames[] = { | |
8714 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8715 | }; | |
8716 | ||
8717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8719 | { | |
8720 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8721 | if (PyErr_Occurred()) SWIG_fail; | |
8722 | } | |
8723 | { | |
8724 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
8726 | } | |
8727 | { | |
8728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8729 | (arg1)->base_OnTerminate(arg2,arg3); | |
8730 | ||
8731 | wxPyEndAllowThreads(__tstate); | |
8732 | if (PyErr_Occurred()) SWIG_fail; | |
8733 | } | |
8734 | Py_INCREF(Py_None); resultobj = Py_None; | |
8735 | return resultobj; | |
8736 | fail: | |
8737 | return NULL; | |
8738 | } | |
8739 | ||
8740 | ||
8741 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8742 | PyObject *resultobj; | |
8743 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8744 | PyObject * obj0 = 0 ; | |
8745 | char *kwnames[] = { | |
8746 | (char *) "self", NULL | |
8747 | }; | |
8748 | ||
8749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8751 | { | |
8752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8753 | (arg1)->Redirect(); | |
8754 | ||
8755 | wxPyEndAllowThreads(__tstate); | |
8756 | if (PyErr_Occurred()) SWIG_fail; | |
8757 | } | |
8758 | Py_INCREF(Py_None); resultobj = Py_None; | |
8759 | return resultobj; | |
8760 | fail: | |
8761 | return NULL; | |
8762 | } | |
8763 | ||
8764 | ||
8765 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8766 | PyObject *resultobj; | |
8767 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8768 | bool result; | |
8769 | PyObject * obj0 = 0 ; | |
8770 | char *kwnames[] = { | |
8771 | (char *) "self", NULL | |
8772 | }; | |
8773 | ||
8774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8776 | { | |
8777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8778 | result = (bool)(arg1)->IsRedirected(); | |
8779 | ||
8780 | wxPyEndAllowThreads(__tstate); | |
8781 | if (PyErr_Occurred()) SWIG_fail; | |
8782 | } | |
8783 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8784 | return resultobj; | |
8785 | fail: | |
8786 | return NULL; | |
8787 | } | |
8788 | ||
8789 | ||
8790 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8791 | PyObject *resultobj; | |
8792 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8793 | PyObject * obj0 = 0 ; | |
8794 | char *kwnames[] = { | |
8795 | (char *) "self", NULL | |
8796 | }; | |
8797 | ||
8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8800 | { | |
8801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8802 | (arg1)->Detach(); | |
8803 | ||
8804 | wxPyEndAllowThreads(__tstate); | |
8805 | if (PyErr_Occurred()) SWIG_fail; | |
8806 | } | |
8807 | Py_INCREF(Py_None); resultobj = Py_None; | |
8808 | return resultobj; | |
8809 | fail: | |
8810 | return NULL; | |
8811 | } | |
8812 | ||
8813 | ||
8814 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8815 | PyObject *resultobj; | |
8816 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8817 | wxInputStream *result; | |
8818 | PyObject * obj0 = 0 ; | |
8819 | char *kwnames[] = { | |
8820 | (char *) "self", NULL | |
8821 | }; | |
8822 | ||
8823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
8824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8825 | { | |
8826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8827 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8828 | ||
8829 | wxPyEndAllowThreads(__tstate); | |
8830 | if (PyErr_Occurred()) SWIG_fail; | |
8831 | } | |
8832 | { | |
8833 | wxPyInputStream * _ptr = NULL; | |
8834 | ||
8835 | if (result) { | |
8836 | _ptr = new wxPyInputStream(result); | |
8837 | } | |
8838 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
8839 | } | |
8840 | return resultobj; | |
8841 | fail: | |
8842 | return NULL; | |
8843 | } | |
8844 | ||
8845 | ||
8846 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8847 | PyObject *resultobj; | |
8848 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8849 | wxInputStream *result; | |
8850 | PyObject * obj0 = 0 ; | |
8851 | char *kwnames[] = { | |
8852 | (char *) "self", NULL | |
8853 | }; | |
8854 | ||
8855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
8856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8857 | { | |
8858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8859 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8860 | ||
8861 | wxPyEndAllowThreads(__tstate); | |
8862 | if (PyErr_Occurred()) SWIG_fail; | |
8863 | } | |
8864 | { | |
8865 | wxPyInputStream * _ptr = NULL; | |
8866 | ||
8867 | if (result) { | |
8868 | _ptr = new wxPyInputStream(result); | |
8869 | } | |
8870 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
8871 | } | |
8872 | return resultobj; | |
8873 | fail: | |
8874 | return NULL; | |
8875 | } | |
8876 | ||
8877 | ||
8878 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8879 | PyObject *resultobj; | |
8880 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8881 | wxOutputStream *result; | |
8882 | PyObject * obj0 = 0 ; | |
8883 | char *kwnames[] = { | |
8884 | (char *) "self", NULL | |
8885 | }; | |
8886 | ||
8887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
8888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8889 | { | |
8890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8891 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
8892 | ||
8893 | wxPyEndAllowThreads(__tstate); | |
8894 | if (PyErr_Occurred()) SWIG_fail; | |
8895 | } | |
8896 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0); | |
8897 | return resultobj; | |
8898 | fail: | |
8899 | return NULL; | |
8900 | } | |
8901 | ||
8902 | ||
8903 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8904 | PyObject *resultobj; | |
8905 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8906 | PyObject * obj0 = 0 ; | |
8907 | char *kwnames[] = { | |
8908 | (char *) "self", NULL | |
8909 | }; | |
8910 | ||
8911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
8912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8913 | { | |
8914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8915 | (arg1)->CloseOutput(); | |
8916 | ||
8917 | wxPyEndAllowThreads(__tstate); | |
8918 | if (PyErr_Occurred()) SWIG_fail; | |
8919 | } | |
8920 | Py_INCREF(Py_None); resultobj = Py_None; | |
8921 | return resultobj; | |
8922 | fail: | |
8923 | return NULL; | |
8924 | } | |
8925 | ||
8926 | ||
8927 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8928 | PyObject *resultobj; | |
8929 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8930 | bool result; | |
8931 | PyObject * obj0 = 0 ; | |
8932 | char *kwnames[] = { | |
8933 | (char *) "self", NULL | |
8934 | }; | |
8935 | ||
8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
8937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8938 | { | |
8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8940 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
8941 | ||
8942 | wxPyEndAllowThreads(__tstate); | |
8943 | if (PyErr_Occurred()) SWIG_fail; | |
8944 | } | |
8945 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8946 | return resultobj; | |
8947 | fail: | |
8948 | return NULL; | |
8949 | } | |
8950 | ||
8951 | ||
8952 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8953 | PyObject *resultobj; | |
8954 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8955 | bool result; | |
8956 | PyObject * obj0 = 0 ; | |
8957 | char *kwnames[] = { | |
8958 | (char *) "self", NULL | |
8959 | }; | |
8960 | ||
8961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
8962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8963 | { | |
8964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8965 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
8966 | ||
8967 | wxPyEndAllowThreads(__tstate); | |
8968 | if (PyErr_Occurred()) SWIG_fail; | |
8969 | } | |
8970 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8971 | return resultobj; | |
8972 | fail: | |
8973 | return NULL; | |
8974 | } | |
8975 | ||
8976 | ||
8977 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8978 | PyObject *resultobj; | |
8979 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8980 | bool result; | |
8981 | PyObject * obj0 = 0 ; | |
8982 | char *kwnames[] = { | |
8983 | (char *) "self", NULL | |
8984 | }; | |
8985 | ||
8986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
8987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8988 | { | |
8989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8990 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
8991 | ||
8992 | wxPyEndAllowThreads(__tstate); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | } | |
8995 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8996 | return resultobj; | |
8997 | fail: | |
8998 | return NULL; | |
8999 | } | |
9000 | ||
9001 | ||
9002 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9003 | PyObject *obj; | |
9004 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9005 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9006 | Py_INCREF(obj); | |
9007 | return Py_BuildValue((char *)""); | |
9008 | } | |
9009 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9010 | PyObject *resultobj; | |
9011 | int arg1 = (int) 0 ; | |
9012 | int arg2 = (int) 0 ; | |
9013 | int arg3 = (int) 0 ; | |
9014 | wxProcessEvent *result; | |
9015 | PyObject * obj0 = 0 ; | |
9016 | PyObject * obj1 = 0 ; | |
9017 | PyObject * obj2 = 0 ; | |
9018 | char *kwnames[] = { | |
9019 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9020 | }; | |
9021 | ||
9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9023 | if (obj0) { | |
9024 | { | |
9025 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9026 | if (PyErr_Occurred()) SWIG_fail; | |
9027 | } | |
9028 | } | |
9029 | if (obj1) { | |
9030 | { | |
9031 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9032 | if (PyErr_Occurred()) SWIG_fail; | |
9033 | } | |
9034 | } | |
9035 | if (obj2) { | |
9036 | { | |
9037 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9038 | if (PyErr_Occurred()) SWIG_fail; | |
9039 | } | |
9040 | } | |
9041 | { | |
9042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9043 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9044 | ||
9045 | wxPyEndAllowThreads(__tstate); | |
9046 | if (PyErr_Occurred()) SWIG_fail; | |
9047 | } | |
9048 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1); | |
9049 | return resultobj; | |
9050 | fail: | |
9051 | return NULL; | |
9052 | } | |
9053 | ||
9054 | ||
9055 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9056 | PyObject *resultobj; | |
9057 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9058 | int result; | |
9059 | PyObject * obj0 = 0 ; | |
9060 | char *kwnames[] = { | |
9061 | (char *) "self", NULL | |
9062 | }; | |
9063 | ||
9064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9066 | { | |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | result = (int)(arg1)->GetPid(); | |
9069 | ||
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
9080 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9081 | PyObject *resultobj; | |
9082 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9083 | int result; | |
9084 | PyObject * obj0 = 0 ; | |
9085 | char *kwnames[] = { | |
9086 | (char *) "self", NULL | |
9087 | }; | |
9088 | ||
9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9091 | { | |
9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9093 | result = (int)(arg1)->GetExitCode(); | |
9094 | ||
9095 | wxPyEndAllowThreads(__tstate); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
9097 | } | |
9098 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9099 | return resultobj; | |
9100 | fail: | |
9101 | return NULL; | |
9102 | } | |
9103 | ||
9104 | ||
9105 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9106 | PyObject *resultobj; | |
9107 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9108 | int arg2 ; | |
9109 | PyObject * obj0 = 0 ; | |
9110 | PyObject * obj1 = 0 ; | |
9111 | char *kwnames[] = { | |
9112 | (char *) "self",(char *) "m_pid", NULL | |
9113 | }; | |
9114 | ||
9115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9117 | { | |
9118 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9119 | if (PyErr_Occurred()) SWIG_fail; | |
9120 | } | |
9121 | if (arg1) (arg1)->m_pid = arg2; | |
9122 | ||
9123 | Py_INCREF(Py_None); resultobj = Py_None; | |
9124 | return resultobj; | |
9125 | fail: | |
9126 | return NULL; | |
9127 | } | |
9128 | ||
9129 | ||
9130 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9131 | PyObject *resultobj; | |
9132 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9133 | int result; | |
9134 | PyObject * obj0 = 0 ; | |
9135 | char *kwnames[] = { | |
9136 | (char *) "self", NULL | |
9137 | }; | |
9138 | ||
9139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9141 | result = (int) ((arg1)->m_pid); | |
9142 | ||
9143 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9144 | return resultobj; | |
9145 | fail: | |
9146 | return NULL; | |
9147 | } | |
9148 | ||
9149 | ||
9150 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9151 | PyObject *resultobj; | |
9152 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9153 | int arg2 ; | |
9154 | PyObject * obj0 = 0 ; | |
9155 | PyObject * obj1 = 0 ; | |
9156 | char *kwnames[] = { | |
9157 | (char *) "self",(char *) "m_exitcode", NULL | |
9158 | }; | |
9159 | ||
9160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9162 | { | |
9163 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | } | |
9166 | if (arg1) (arg1)->m_exitcode = arg2; | |
9167 | ||
9168 | Py_INCREF(Py_None); resultobj = Py_None; | |
9169 | return resultobj; | |
9170 | fail: | |
9171 | return NULL; | |
9172 | } | |
9173 | ||
9174 | ||
9175 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9176 | PyObject *resultobj; | |
9177 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9178 | int result; | |
9179 | PyObject * obj0 = 0 ; | |
9180 | char *kwnames[] = { | |
9181 | (char *) "self", NULL | |
9182 | }; | |
9183 | ||
9184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9186 | result = (int) ((arg1)->m_exitcode); | |
9187 | ||
9188 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9189 | return resultobj; | |
9190 | fail: | |
9191 | return NULL; | |
9192 | } | |
9193 | ||
9194 | ||
9195 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9196 | PyObject *obj; | |
9197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9198 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9199 | Py_INCREF(obj); | |
9200 | return Py_BuildValue((char *)""); | |
9201 | } | |
9202 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9203 | PyObject *resultobj; | |
9204 | wxString *arg1 = 0 ; | |
9205 | int arg2 = (int) wxEXEC_ASYNC ; | |
9206 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9207 | long result; | |
9208 | bool temp1 = False ; | |
9209 | PyObject * obj0 = 0 ; | |
9210 | PyObject * obj1 = 0 ; | |
9211 | PyObject * obj2 = 0 ; | |
9212 | char *kwnames[] = { | |
9213 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9214 | }; | |
9215 | ||
9216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9217 | { | |
9218 | arg1 = wxString_in_helper(obj0); | |
9219 | if (arg1 == NULL) SWIG_fail; | |
9220 | temp1 = True; | |
9221 | } | |
9222 | if (obj1) { | |
9223 | { | |
9224 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9225 | if (PyErr_Occurred()) SWIG_fail; | |
9226 | } | |
9227 | } | |
9228 | if (obj2) { | |
9229 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9230 | } | |
9231 | { | |
9232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9233 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9234 | ||
9235 | wxPyEndAllowThreads(__tstate); | |
9236 | if (PyErr_Occurred()) SWIG_fail; | |
9237 | } | |
9238 | resultobj = SWIG_PyObj_FromLong((long)result); | |
9239 | { | |
9240 | if (temp1) | |
9241 | delete arg1; | |
9242 | } | |
9243 | return resultobj; | |
9244 | fail: | |
9245 | { | |
9246 | if (temp1) | |
9247 | delete arg1; | |
9248 | } | |
9249 | return NULL; | |
9250 | } | |
9251 | ||
9252 | ||
9253 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9254 | PyObject *resultobj; | |
9255 | int arg1 = (int) wxJOYSTICK1 ; | |
9256 | wxJoystick *result; | |
9257 | PyObject * obj0 = 0 ; | |
9258 | char *kwnames[] = { | |
9259 | (char *) "joystick", NULL | |
9260 | }; | |
9261 | ||
9262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9263 | if (obj0) { | |
9264 | { | |
9265 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9266 | if (PyErr_Occurred()) SWIG_fail; | |
9267 | } | |
9268 | } | |
9269 | { | |
9270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9271 | result = (wxJoystick *)new wxJoystick(arg1); | |
9272 | ||
9273 | wxPyEndAllowThreads(__tstate); | |
9274 | if (PyErr_Occurred()) SWIG_fail; | |
9275 | } | |
9276 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1); | |
9277 | return resultobj; | |
9278 | fail: | |
9279 | return NULL; | |
9280 | } | |
9281 | ||
9282 | ||
9283 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9284 | PyObject *resultobj; | |
9285 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9286 | PyObject * obj0 = 0 ; | |
9287 | char *kwnames[] = { | |
9288 | (char *) "self", NULL | |
9289 | }; | |
9290 | ||
9291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
9292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9293 | { | |
9294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9295 | delete arg1; | |
9296 | ||
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
9300 | Py_INCREF(Py_None); resultobj = Py_None; | |
9301 | return resultobj; | |
9302 | fail: | |
9303 | return NULL; | |
9304 | } | |
9305 | ||
9306 | ||
9307 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9308 | PyObject *resultobj; | |
9309 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9310 | wxPoint result; | |
9311 | PyObject * obj0 = 0 ; | |
9312 | char *kwnames[] = { | |
9313 | (char *) "self", NULL | |
9314 | }; | |
9315 | ||
9316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
9317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9318 | { | |
9319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9320 | result = (arg1)->GetPosition(); | |
9321 | ||
9322 | wxPyEndAllowThreads(__tstate); | |
9323 | if (PyErr_Occurred()) SWIG_fail; | |
9324 | } | |
9325 | { | |
9326 | wxPoint * resultptr; | |
9327 | resultptr = new wxPoint((wxPoint &) result); | |
9328 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
9329 | } | |
9330 | return resultobj; | |
9331 | fail: | |
9332 | return NULL; | |
9333 | } | |
9334 | ||
9335 | ||
9336 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9337 | PyObject *resultobj; | |
9338 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9339 | int result; | |
9340 | PyObject * obj0 = 0 ; | |
9341 | char *kwnames[] = { | |
9342 | (char *) "self", NULL | |
9343 | }; | |
9344 | ||
9345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
9346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9347 | { | |
9348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9349 | result = (int)(arg1)->GetZPosition(); | |
9350 | ||
9351 | wxPyEndAllowThreads(__tstate); | |
9352 | if (PyErr_Occurred()) SWIG_fail; | |
9353 | } | |
9354 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9355 | return resultobj; | |
9356 | fail: | |
9357 | return NULL; | |
9358 | } | |
9359 | ||
9360 | ||
9361 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9362 | PyObject *resultobj; | |
9363 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9364 | int result; | |
9365 | PyObject * obj0 = 0 ; | |
9366 | char *kwnames[] = { | |
9367 | (char *) "self", NULL | |
9368 | }; | |
9369 | ||
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
9371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9372 | { | |
9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9374 | result = (int)(arg1)->GetButtonState(); | |
9375 | ||
9376 | wxPyEndAllowThreads(__tstate); | |
9377 | if (PyErr_Occurred()) SWIG_fail; | |
9378 | } | |
9379 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9380 | return resultobj; | |
9381 | fail: | |
9382 | return NULL; | |
9383 | } | |
9384 | ||
9385 | ||
9386 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9387 | PyObject *resultobj; | |
9388 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9389 | int result; | |
9390 | PyObject * obj0 = 0 ; | |
9391 | char *kwnames[] = { | |
9392 | (char *) "self", NULL | |
9393 | }; | |
9394 | ||
9395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
9396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9397 | { | |
9398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9399 | result = (int)(arg1)->GetPOVPosition(); | |
9400 | ||
9401 | wxPyEndAllowThreads(__tstate); | |
9402 | if (PyErr_Occurred()) SWIG_fail; | |
9403 | } | |
9404 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9405 | return resultobj; | |
9406 | fail: | |
9407 | return NULL; | |
9408 | } | |
9409 | ||
9410 | ||
9411 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9412 | PyObject *resultobj; | |
9413 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9414 | int result; | |
9415 | PyObject * obj0 = 0 ; | |
9416 | char *kwnames[] = { | |
9417 | (char *) "self", NULL | |
9418 | }; | |
9419 | ||
9420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
9421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9422 | { | |
9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9424 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9425 | ||
9426 | wxPyEndAllowThreads(__tstate); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
9429 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9430 | return resultobj; | |
9431 | fail: | |
9432 | return NULL; | |
9433 | } | |
9434 | ||
9435 | ||
9436 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9437 | PyObject *resultobj; | |
9438 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9439 | int result; | |
9440 | PyObject * obj0 = 0 ; | |
9441 | char *kwnames[] = { | |
9442 | (char *) "self", NULL | |
9443 | }; | |
9444 | ||
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
9446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9447 | { | |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9449 | result = (int)(arg1)->GetRudderPosition(); | |
9450 | ||
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
9454 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9455 | return resultobj; | |
9456 | fail: | |
9457 | return NULL; | |
9458 | } | |
9459 | ||
9460 | ||
9461 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9462 | PyObject *resultobj; | |
9463 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9464 | int result; | |
9465 | PyObject * obj0 = 0 ; | |
9466 | char *kwnames[] = { | |
9467 | (char *) "self", NULL | |
9468 | }; | |
9469 | ||
9470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
9471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9472 | { | |
9473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9474 | result = (int)(arg1)->GetUPosition(); | |
9475 | ||
9476 | wxPyEndAllowThreads(__tstate); | |
9477 | if (PyErr_Occurred()) SWIG_fail; | |
9478 | } | |
9479 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9480 | return resultobj; | |
9481 | fail: | |
9482 | return NULL; | |
9483 | } | |
9484 | ||
9485 | ||
9486 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9487 | PyObject *resultobj; | |
9488 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9489 | int result; | |
9490 | PyObject * obj0 = 0 ; | |
9491 | char *kwnames[] = { | |
9492 | (char *) "self", NULL | |
9493 | }; | |
9494 | ||
9495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
9496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9497 | { | |
9498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9499 | result = (int)(arg1)->GetVPosition(); | |
9500 | ||
9501 | wxPyEndAllowThreads(__tstate); | |
9502 | if (PyErr_Occurred()) SWIG_fail; | |
9503 | } | |
9504 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9505 | return resultobj; | |
9506 | fail: | |
9507 | return NULL; | |
9508 | } | |
9509 | ||
9510 | ||
9511 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9512 | PyObject *resultobj; | |
9513 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9514 | int result; | |
9515 | PyObject * obj0 = 0 ; | |
9516 | char *kwnames[] = { | |
9517 | (char *) "self", NULL | |
9518 | }; | |
9519 | ||
9520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
9521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9522 | { | |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | result = (int)(arg1)->GetMovementThreshold(); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
9529 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9530 | return resultobj; | |
9531 | fail: | |
9532 | return NULL; | |
9533 | } | |
9534 | ||
9535 | ||
9536 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9537 | PyObject *resultobj; | |
9538 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9539 | int arg2 ; | |
9540 | PyObject * obj0 = 0 ; | |
9541 | PyObject * obj1 = 0 ; | |
9542 | char *kwnames[] = { | |
9543 | (char *) "self",(char *) "threshold", NULL | |
9544 | }; | |
9545 | ||
9546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
9547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9548 | { | |
9549 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9550 | if (PyErr_Occurred()) SWIG_fail; | |
9551 | } | |
9552 | { | |
9553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9554 | (arg1)->SetMovementThreshold(arg2); | |
9555 | ||
9556 | wxPyEndAllowThreads(__tstate); | |
9557 | if (PyErr_Occurred()) SWIG_fail; | |
9558 | } | |
9559 | Py_INCREF(Py_None); resultobj = Py_None; | |
9560 | return resultobj; | |
9561 | fail: | |
9562 | return NULL; | |
9563 | } | |
9564 | ||
9565 | ||
9566 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9567 | PyObject *resultobj; | |
9568 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9569 | bool result; | |
9570 | PyObject * obj0 = 0 ; | |
9571 | char *kwnames[] = { | |
9572 | (char *) "self", NULL | |
9573 | }; | |
9574 | ||
9575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9577 | { | |
9578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9579 | result = (bool)(arg1)->IsOk(); | |
9580 | ||
9581 | wxPyEndAllowThreads(__tstate); | |
9582 | if (PyErr_Occurred()) SWIG_fail; | |
9583 | } | |
9584 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
9585 | return resultobj; | |
9586 | fail: | |
9587 | return NULL; | |
9588 | } | |
9589 | ||
9590 | ||
9591 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9592 | PyObject *resultobj; | |
9593 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9594 | int result; | |
9595 | PyObject * obj0 = 0 ; | |
9596 | char *kwnames[] = { | |
9597 | (char *) "self", NULL | |
9598 | }; | |
9599 | ||
9600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9602 | { | |
9603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9604 | result = (int)(arg1)->GetNumberJoysticks(); | |
9605 | ||
9606 | wxPyEndAllowThreads(__tstate); | |
9607 | if (PyErr_Occurred()) SWIG_fail; | |
9608 | } | |
9609 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9610 | return resultobj; | |
9611 | fail: | |
9612 | return NULL; | |
9613 | } | |
9614 | ||
9615 | ||
9616 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9617 | PyObject *resultobj; | |
9618 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9619 | int result; | |
9620 | PyObject * obj0 = 0 ; | |
9621 | char *kwnames[] = { | |
9622 | (char *) "self", NULL | |
9623 | }; | |
9624 | ||
9625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9627 | { | |
9628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9629 | result = (int)(arg1)->GetManufacturerId(); | |
9630 | ||
9631 | wxPyEndAllowThreads(__tstate); | |
9632 | if (PyErr_Occurred()) SWIG_fail; | |
9633 | } | |
9634 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9635 | return resultobj; | |
9636 | fail: | |
9637 | return NULL; | |
9638 | } | |
9639 | ||
9640 | ||
9641 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9642 | PyObject *resultobj; | |
9643 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9644 | int result; | |
9645 | PyObject * obj0 = 0 ; | |
9646 | char *kwnames[] = { | |
9647 | (char *) "self", NULL | |
9648 | }; | |
9649 | ||
9650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9652 | { | |
9653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9654 | result = (int)(arg1)->GetProductId(); | |
9655 | ||
9656 | wxPyEndAllowThreads(__tstate); | |
9657 | if (PyErr_Occurred()) SWIG_fail; | |
9658 | } | |
9659 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9660 | return resultobj; | |
9661 | fail: | |
9662 | return NULL; | |
9663 | } | |
9664 | ||
9665 | ||
9666 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9667 | PyObject *resultobj; | |
9668 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9669 | wxString result; | |
9670 | PyObject * obj0 = 0 ; | |
9671 | char *kwnames[] = { | |
9672 | (char *) "self", NULL | |
9673 | }; | |
9674 | ||
9675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9677 | { | |
9678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9679 | result = (arg1)->GetProductName(); | |
9680 | ||
9681 | wxPyEndAllowThreads(__tstate); | |
9682 | if (PyErr_Occurred()) SWIG_fail; | |
9683 | } | |
9684 | { | |
9685 | #if wxUSE_UNICODE | |
9686 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9687 | #else | |
9688 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9689 | #endif | |
9690 | } | |
9691 | return resultobj; | |
9692 | fail: | |
9693 | return NULL; | |
9694 | } | |
9695 | ||
9696 | ||
9697 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9698 | PyObject *resultobj; | |
9699 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9700 | int result; | |
9701 | PyObject * obj0 = 0 ; | |
9702 | char *kwnames[] = { | |
9703 | (char *) "self", NULL | |
9704 | }; | |
9705 | ||
9706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9708 | { | |
9709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9710 | result = (int)(arg1)->GetXMin(); | |
9711 | ||
9712 | wxPyEndAllowThreads(__tstate); | |
9713 | if (PyErr_Occurred()) SWIG_fail; | |
9714 | } | |
9715 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9716 | return resultobj; | |
9717 | fail: | |
9718 | return NULL; | |
9719 | } | |
9720 | ||
9721 | ||
9722 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9723 | PyObject *resultobj; | |
9724 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9725 | int result; | |
9726 | PyObject * obj0 = 0 ; | |
9727 | char *kwnames[] = { | |
9728 | (char *) "self", NULL | |
9729 | }; | |
9730 | ||
9731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9733 | { | |
9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9735 | result = (int)(arg1)->GetYMin(); | |
9736 | ||
9737 | wxPyEndAllowThreads(__tstate); | |
9738 | if (PyErr_Occurred()) SWIG_fail; | |
9739 | } | |
9740 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9741 | return resultobj; | |
9742 | fail: | |
9743 | return NULL; | |
9744 | } | |
9745 | ||
9746 | ||
9747 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9748 | PyObject *resultobj; | |
9749 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9750 | int result; | |
9751 | PyObject * obj0 = 0 ; | |
9752 | char *kwnames[] = { | |
9753 | (char *) "self", NULL | |
9754 | }; | |
9755 | ||
9756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9758 | { | |
9759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9760 | result = (int)(arg1)->GetZMin(); | |
9761 | ||
9762 | wxPyEndAllowThreads(__tstate); | |
9763 | if (PyErr_Occurred()) SWIG_fail; | |
9764 | } | |
9765 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9766 | return resultobj; | |
9767 | fail: | |
9768 | return NULL; | |
9769 | } | |
9770 | ||
9771 | ||
9772 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9773 | PyObject *resultobj; | |
9774 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9775 | int result; | |
9776 | PyObject * obj0 = 0 ; | |
9777 | char *kwnames[] = { | |
9778 | (char *) "self", NULL | |
9779 | }; | |
9780 | ||
9781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9783 | { | |
9784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9785 | result = (int)(arg1)->GetXMax(); | |
9786 | ||
9787 | wxPyEndAllowThreads(__tstate); | |
9788 | if (PyErr_Occurred()) SWIG_fail; | |
9789 | } | |
9790 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9791 | return resultobj; | |
9792 | fail: | |
9793 | return NULL; | |
9794 | } | |
9795 | ||
9796 | ||
9797 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9798 | PyObject *resultobj; | |
9799 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9800 | int result; | |
9801 | PyObject * obj0 = 0 ; | |
9802 | char *kwnames[] = { | |
9803 | (char *) "self", NULL | |
9804 | }; | |
9805 | ||
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
9807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9808 | { | |
9809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9810 | result = (int)(arg1)->GetYMax(); | |
9811 | ||
9812 | wxPyEndAllowThreads(__tstate); | |
9813 | if (PyErr_Occurred()) SWIG_fail; | |
9814 | } | |
9815 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9816 | return resultobj; | |
9817 | fail: | |
9818 | return NULL; | |
9819 | } | |
9820 | ||
9821 | ||
9822 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9823 | PyObject *resultobj; | |
9824 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9825 | int result; | |
9826 | PyObject * obj0 = 0 ; | |
9827 | char *kwnames[] = { | |
9828 | (char *) "self", NULL | |
9829 | }; | |
9830 | ||
9831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
9832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9833 | { | |
9834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9835 | result = (int)(arg1)->GetZMax(); | |
9836 | ||
9837 | wxPyEndAllowThreads(__tstate); | |
9838 | if (PyErr_Occurred()) SWIG_fail; | |
9839 | } | |
9840 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9841 | return resultobj; | |
9842 | fail: | |
9843 | return NULL; | |
9844 | } | |
9845 | ||
9846 | ||
9847 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9848 | PyObject *resultobj; | |
9849 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9850 | int result; | |
9851 | PyObject * obj0 = 0 ; | |
9852 | char *kwnames[] = { | |
9853 | (char *) "self", NULL | |
9854 | }; | |
9855 | ||
9856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
9857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9858 | { | |
9859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9860 | result = (int)(arg1)->GetNumberButtons(); | |
9861 | ||
9862 | wxPyEndAllowThreads(__tstate); | |
9863 | if (PyErr_Occurred()) SWIG_fail; | |
9864 | } | |
9865 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9866 | return resultobj; | |
9867 | fail: | |
9868 | return NULL; | |
9869 | } | |
9870 | ||
9871 | ||
9872 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9873 | PyObject *resultobj; | |
9874 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9875 | int result; | |
9876 | PyObject * obj0 = 0 ; | |
9877 | char *kwnames[] = { | |
9878 | (char *) "self", NULL | |
9879 | }; | |
9880 | ||
9881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
9882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9883 | { | |
9884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9885 | result = (int)(arg1)->GetNumberAxes(); | |
9886 | ||
9887 | wxPyEndAllowThreads(__tstate); | |
9888 | if (PyErr_Occurred()) SWIG_fail; | |
9889 | } | |
9890 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9891 | return resultobj; | |
9892 | fail: | |
9893 | return NULL; | |
9894 | } | |
9895 | ||
9896 | ||
9897 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9898 | PyObject *resultobj; | |
9899 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9900 | int result; | |
9901 | PyObject * obj0 = 0 ; | |
9902 | char *kwnames[] = { | |
9903 | (char *) "self", NULL | |
9904 | }; | |
9905 | ||
9906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
9907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9908 | { | |
9909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9910 | result = (int)(arg1)->GetMaxButtons(); | |
9911 | ||
9912 | wxPyEndAllowThreads(__tstate); | |
9913 | if (PyErr_Occurred()) SWIG_fail; | |
9914 | } | |
9915 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9916 | return resultobj; | |
9917 | fail: | |
9918 | return NULL; | |
9919 | } | |
9920 | ||
9921 | ||
9922 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9923 | PyObject *resultobj; | |
9924 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9925 | int result; | |
9926 | PyObject * obj0 = 0 ; | |
9927 | char *kwnames[] = { | |
9928 | (char *) "self", NULL | |
9929 | }; | |
9930 | ||
9931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
9932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9933 | { | |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9935 | result = (int)(arg1)->GetMaxAxes(); | |
9936 | ||
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
9940 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9941 | return resultobj; | |
9942 | fail: | |
9943 | return NULL; | |
9944 | } | |
9945 | ||
9946 | ||
9947 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9948 | PyObject *resultobj; | |
9949 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9950 | int result; | |
9951 | PyObject * obj0 = 0 ; | |
9952 | char *kwnames[] = { | |
9953 | (char *) "self", NULL | |
9954 | }; | |
9955 | ||
9956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
9957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9958 | { | |
9959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9960 | result = (int)(arg1)->GetPollingMin(); | |
9961 | ||
9962 | wxPyEndAllowThreads(__tstate); | |
9963 | if (PyErr_Occurred()) SWIG_fail; | |
9964 | } | |
9965 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9966 | return resultobj; | |
9967 | fail: | |
9968 | return NULL; | |
9969 | } | |
9970 | ||
9971 | ||
9972 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject *resultobj; | |
9974 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9975 | int result; | |
9976 | PyObject * obj0 = 0 ; | |
9977 | char *kwnames[] = { | |
9978 | (char *) "self", NULL | |
9979 | }; | |
9980 | ||
9981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
9982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9983 | { | |
9984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9985 | result = (int)(arg1)->GetPollingMax(); | |
9986 | ||
9987 | wxPyEndAllowThreads(__tstate); | |
9988 | if (PyErr_Occurred()) SWIG_fail; | |
9989 | } | |
9990 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9991 | return resultobj; | |
9992 | fail: | |
9993 | return NULL; | |
9994 | } | |
9995 | ||
9996 | ||
9997 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9998 | PyObject *resultobj; | |
9999 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10000 | int result; | |
10001 | PyObject * obj0 = 0 ; | |
10002 | char *kwnames[] = { | |
10003 | (char *) "self", NULL | |
10004 | }; | |
10005 | ||
10006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10008 | { | |
10009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10010 | result = (int)(arg1)->GetRudderMin(); | |
10011 | ||
10012 | wxPyEndAllowThreads(__tstate); | |
10013 | if (PyErr_Occurred()) SWIG_fail; | |
10014 | } | |
10015 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10016 | return resultobj; | |
10017 | fail: | |
10018 | return NULL; | |
10019 | } | |
10020 | ||
10021 | ||
10022 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10023 | PyObject *resultobj; | |
10024 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10025 | int result; | |
10026 | PyObject * obj0 = 0 ; | |
10027 | char *kwnames[] = { | |
10028 | (char *) "self", NULL | |
10029 | }; | |
10030 | ||
10031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10033 | { | |
10034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10035 | result = (int)(arg1)->GetRudderMax(); | |
10036 | ||
10037 | wxPyEndAllowThreads(__tstate); | |
10038 | if (PyErr_Occurred()) SWIG_fail; | |
10039 | } | |
10040 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10041 | return resultobj; | |
10042 | fail: | |
10043 | return NULL; | |
10044 | } | |
10045 | ||
10046 | ||
10047 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10048 | PyObject *resultobj; | |
10049 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10050 | int result; | |
10051 | PyObject * obj0 = 0 ; | |
10052 | char *kwnames[] = { | |
10053 | (char *) "self", NULL | |
10054 | }; | |
10055 | ||
10056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10058 | { | |
10059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10060 | result = (int)(arg1)->GetUMin(); | |
10061 | ||
10062 | wxPyEndAllowThreads(__tstate); | |
10063 | if (PyErr_Occurred()) SWIG_fail; | |
10064 | } | |
10065 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10066 | return resultobj; | |
10067 | fail: | |
10068 | return NULL; | |
10069 | } | |
10070 | ||
10071 | ||
10072 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10073 | PyObject *resultobj; | |
10074 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10075 | int result; | |
10076 | PyObject * obj0 = 0 ; | |
10077 | char *kwnames[] = { | |
10078 | (char *) "self", NULL | |
10079 | }; | |
10080 | ||
10081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10083 | { | |
10084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10085 | result = (int)(arg1)->GetUMax(); | |
10086 | ||
10087 | wxPyEndAllowThreads(__tstate); | |
10088 | if (PyErr_Occurred()) SWIG_fail; | |
10089 | } | |
10090 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10091 | return resultobj; | |
10092 | fail: | |
10093 | return NULL; | |
10094 | } | |
10095 | ||
10096 | ||
10097 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10098 | PyObject *resultobj; | |
10099 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10100 | int result; | |
10101 | PyObject * obj0 = 0 ; | |
10102 | char *kwnames[] = { | |
10103 | (char *) "self", NULL | |
10104 | }; | |
10105 | ||
10106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10108 | { | |
10109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10110 | result = (int)(arg1)->GetVMin(); | |
10111 | ||
10112 | wxPyEndAllowThreads(__tstate); | |
10113 | if (PyErr_Occurred()) SWIG_fail; | |
10114 | } | |
10115 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10116 | return resultobj; | |
10117 | fail: | |
10118 | return NULL; | |
10119 | } | |
10120 | ||
10121 | ||
10122 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10123 | PyObject *resultobj; | |
10124 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10125 | int result; | |
10126 | PyObject * obj0 = 0 ; | |
10127 | char *kwnames[] = { | |
10128 | (char *) "self", NULL | |
10129 | }; | |
10130 | ||
10131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10133 | { | |
10134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10135 | result = (int)(arg1)->GetVMax(); | |
10136 | ||
10137 | wxPyEndAllowThreads(__tstate); | |
10138 | if (PyErr_Occurred()) SWIG_fail; | |
10139 | } | |
10140 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10141 | return resultobj; | |
10142 | fail: | |
10143 | return NULL; | |
10144 | } | |
10145 | ||
10146 | ||
10147 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10148 | PyObject *resultobj; | |
10149 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10150 | bool result; | |
10151 | PyObject * obj0 = 0 ; | |
10152 | char *kwnames[] = { | |
10153 | (char *) "self", NULL | |
10154 | }; | |
10155 | ||
10156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10158 | { | |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | result = (bool)(arg1)->HasRudder(); | |
10161 | ||
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10166 | return resultobj; | |
10167 | fail: | |
10168 | return NULL; | |
10169 | } | |
10170 | ||
10171 | ||
10172 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10173 | PyObject *resultobj; | |
10174 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10175 | bool result; | |
10176 | PyObject * obj0 = 0 ; | |
10177 | char *kwnames[] = { | |
10178 | (char *) "self", NULL | |
10179 | }; | |
10180 | ||
10181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10183 | { | |
10184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10185 | result = (bool)(arg1)->HasZ(); | |
10186 | ||
10187 | wxPyEndAllowThreads(__tstate); | |
10188 | if (PyErr_Occurred()) SWIG_fail; | |
10189 | } | |
10190 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10191 | return resultobj; | |
10192 | fail: | |
10193 | return NULL; | |
10194 | } | |
10195 | ||
10196 | ||
10197 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10198 | PyObject *resultobj; | |
10199 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10200 | bool result; | |
10201 | PyObject * obj0 = 0 ; | |
10202 | char *kwnames[] = { | |
10203 | (char *) "self", NULL | |
10204 | }; | |
10205 | ||
10206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10208 | { | |
10209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10210 | result = (bool)(arg1)->HasU(); | |
10211 | ||
10212 | wxPyEndAllowThreads(__tstate); | |
10213 | if (PyErr_Occurred()) SWIG_fail; | |
10214 | } | |
10215 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10216 | return resultobj; | |
10217 | fail: | |
10218 | return NULL; | |
10219 | } | |
10220 | ||
10221 | ||
10222 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10223 | PyObject *resultobj; | |
10224 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10225 | bool result; | |
10226 | PyObject * obj0 = 0 ; | |
10227 | char *kwnames[] = { | |
10228 | (char *) "self", NULL | |
10229 | }; | |
10230 | ||
10231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10233 | { | |
10234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10235 | result = (bool)(arg1)->HasV(); | |
10236 | ||
10237 | wxPyEndAllowThreads(__tstate); | |
10238 | if (PyErr_Occurred()) SWIG_fail; | |
10239 | } | |
10240 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10241 | return resultobj; | |
10242 | fail: | |
10243 | return NULL; | |
10244 | } | |
10245 | ||
10246 | ||
10247 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10248 | PyObject *resultobj; | |
10249 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10250 | bool result; | |
10251 | PyObject * obj0 = 0 ; | |
10252 | char *kwnames[] = { | |
10253 | (char *) "self", NULL | |
10254 | }; | |
10255 | ||
10256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
10257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10258 | { | |
10259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10260 | result = (bool)(arg1)->HasPOV(); | |
10261 | ||
10262 | wxPyEndAllowThreads(__tstate); | |
10263 | if (PyErr_Occurred()) SWIG_fail; | |
10264 | } | |
10265 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10266 | return resultobj; | |
10267 | fail: | |
10268 | return NULL; | |
10269 | } | |
10270 | ||
10271 | ||
10272 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10273 | PyObject *resultobj; | |
10274 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10275 | bool result; | |
10276 | PyObject * obj0 = 0 ; | |
10277 | char *kwnames[] = { | |
10278 | (char *) "self", NULL | |
10279 | }; | |
10280 | ||
10281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
10282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10283 | { | |
10284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10285 | result = (bool)(arg1)->HasPOV4Dir(); | |
10286 | ||
10287 | wxPyEndAllowThreads(__tstate); | |
10288 | if (PyErr_Occurred()) SWIG_fail; | |
10289 | } | |
10290 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10291 | return resultobj; | |
10292 | fail: | |
10293 | return NULL; | |
10294 | } | |
10295 | ||
10296 | ||
10297 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10298 | PyObject *resultobj; | |
10299 | wxJoystick *arg1 = (wxJoystick *) 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:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
10307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10308 | { | |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | result = (bool)(arg1)->HasPOVCTS(); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
10315 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10316 | return resultobj; | |
10317 | fail: | |
10318 | return NULL; | |
10319 | } | |
10320 | ||
10321 | ||
10322 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10323 | PyObject *resultobj; | |
10324 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10325 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10326 | int arg3 = (int) 0 ; | |
10327 | bool result; | |
10328 | PyObject * obj0 = 0 ; | |
10329 | PyObject * obj1 = 0 ; | |
10330 | PyObject * obj2 = 0 ; | |
10331 | char *kwnames[] = { | |
10332 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10333 | }; | |
10334 | ||
10335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10337 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10338 | if (obj2) { | |
10339 | { | |
10340 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10341 | if (PyErr_Occurred()) SWIG_fail; | |
10342 | } | |
10343 | } | |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10352 | return resultobj; | |
10353 | fail: | |
10354 | return NULL; | |
10355 | } | |
10356 | ||
10357 | ||
10358 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10359 | PyObject *resultobj; | |
10360 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10361 | bool result; | |
10362 | PyObject * obj0 = 0 ; | |
10363 | char *kwnames[] = { | |
10364 | (char *) "self", NULL | |
10365 | }; | |
10366 | ||
10367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
10368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10369 | { | |
10370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10371 | result = (bool)(arg1)->ReleaseCapture(); | |
10372 | ||
10373 | wxPyEndAllowThreads(__tstate); | |
10374 | if (PyErr_Occurred()) SWIG_fail; | |
10375 | } | |
10376 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10377 | return resultobj; | |
10378 | fail: | |
10379 | return NULL; | |
10380 | } | |
10381 | ||
10382 | ||
10383 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10384 | PyObject *obj; | |
10385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10386 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10387 | Py_INCREF(obj); | |
10388 | return Py_BuildValue((char *)""); | |
10389 | } | |
10390 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10391 | PyObject *resultobj; | |
10392 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10393 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10394 | PyObject * obj0 = 0 ; | |
10395 | PyObject * obj1 = 0 ; | |
10396 | char *kwnames[] = { | |
10397 | (char *) "self",(char *) "m_pos", NULL | |
10398 | }; | |
10399 | ||
10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
10401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10402 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10403 | if (arg1) (arg1)->m_pos = *arg2; | |
10404 | ||
10405 | Py_INCREF(Py_None); resultobj = Py_None; | |
10406 | return resultobj; | |
10407 | fail: | |
10408 | return NULL; | |
10409 | } | |
10410 | ||
10411 | ||
10412 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10413 | PyObject *resultobj; | |
10414 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10415 | wxPoint *result; | |
10416 | PyObject * obj0 = 0 ; | |
10417 | char *kwnames[] = { | |
10418 | (char *) "self", NULL | |
10419 | }; | |
10420 | ||
10421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
10422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10423 | result = (wxPoint *)& ((arg1)->m_pos); | |
10424 | ||
10425 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
10426 | return resultobj; | |
10427 | fail: | |
10428 | return NULL; | |
10429 | } | |
10430 | ||
10431 | ||
10432 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10433 | PyObject *resultobj; | |
10434 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10435 | int arg2 ; | |
10436 | PyObject * obj0 = 0 ; | |
10437 | PyObject * obj1 = 0 ; | |
10438 | char *kwnames[] = { | |
10439 | (char *) "self",(char *) "m_zPosition", NULL | |
10440 | }; | |
10441 | ||
10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
10443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10444 | { | |
10445 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10446 | if (PyErr_Occurred()) SWIG_fail; | |
10447 | } | |
10448 | if (arg1) (arg1)->m_zPosition = arg2; | |
10449 | ||
10450 | Py_INCREF(Py_None); resultobj = Py_None; | |
10451 | return resultobj; | |
10452 | fail: | |
10453 | return NULL; | |
10454 | } | |
10455 | ||
10456 | ||
10457 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10458 | PyObject *resultobj; | |
10459 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10460 | int result; | |
10461 | PyObject * obj0 = 0 ; | |
10462 | char *kwnames[] = { | |
10463 | (char *) "self", NULL | |
10464 | }; | |
10465 | ||
10466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
10467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10468 | result = (int) ((arg1)->m_zPosition); | |
10469 | ||
10470 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10471 | return resultobj; | |
10472 | fail: | |
10473 | return NULL; | |
10474 | } | |
10475 | ||
10476 | ||
10477 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10478 | PyObject *resultobj; | |
10479 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10480 | int arg2 ; | |
10481 | PyObject * obj0 = 0 ; | |
10482 | PyObject * obj1 = 0 ; | |
10483 | char *kwnames[] = { | |
10484 | (char *) "self",(char *) "m_buttonChange", NULL | |
10485 | }; | |
10486 | ||
10487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
10488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10489 | { | |
10490 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10491 | if (PyErr_Occurred()) SWIG_fail; | |
10492 | } | |
10493 | if (arg1) (arg1)->m_buttonChange = arg2; | |
10494 | ||
10495 | Py_INCREF(Py_None); resultobj = Py_None; | |
10496 | return resultobj; | |
10497 | fail: | |
10498 | return NULL; | |
10499 | } | |
10500 | ||
10501 | ||
10502 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10503 | PyObject *resultobj; | |
10504 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10505 | int result; | |
10506 | PyObject * obj0 = 0 ; | |
10507 | char *kwnames[] = { | |
10508 | (char *) "self", NULL | |
10509 | }; | |
10510 | ||
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
10512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10513 | result = (int) ((arg1)->m_buttonChange); | |
10514 | ||
10515 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10516 | return resultobj; | |
10517 | fail: | |
10518 | return NULL; | |
10519 | } | |
10520 | ||
10521 | ||
10522 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10523 | PyObject *resultobj; | |
10524 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10525 | int arg2 ; | |
10526 | PyObject * obj0 = 0 ; | |
10527 | PyObject * obj1 = 0 ; | |
10528 | char *kwnames[] = { | |
10529 | (char *) "self",(char *) "m_buttonState", NULL | |
10530 | }; | |
10531 | ||
10532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
10533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10534 | { | |
10535 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10536 | if (PyErr_Occurred()) SWIG_fail; | |
10537 | } | |
10538 | if (arg1) (arg1)->m_buttonState = arg2; | |
10539 | ||
10540 | Py_INCREF(Py_None); resultobj = Py_None; | |
10541 | return resultobj; | |
10542 | fail: | |
10543 | return NULL; | |
10544 | } | |
10545 | ||
10546 | ||
10547 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10548 | PyObject *resultobj; | |
10549 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10550 | int result; | |
10551 | PyObject * obj0 = 0 ; | |
10552 | char *kwnames[] = { | |
10553 | (char *) "self", NULL | |
10554 | }; | |
10555 | ||
10556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
10557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10558 | result = (int) ((arg1)->m_buttonState); | |
10559 | ||
10560 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10561 | return resultobj; | |
10562 | fail: | |
10563 | return NULL; | |
10564 | } | |
10565 | ||
10566 | ||
10567 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10568 | PyObject *resultobj; | |
10569 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10570 | int arg2 ; | |
10571 | PyObject * obj0 = 0 ; | |
10572 | PyObject * obj1 = 0 ; | |
10573 | char *kwnames[] = { | |
10574 | (char *) "self",(char *) "m_joyStick", NULL | |
10575 | }; | |
10576 | ||
10577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
10578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10579 | { | |
10580 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10581 | if (PyErr_Occurred()) SWIG_fail; | |
10582 | } | |
10583 | if (arg1) (arg1)->m_joyStick = arg2; | |
10584 | ||
10585 | Py_INCREF(Py_None); resultobj = Py_None; | |
10586 | return resultobj; | |
10587 | fail: | |
10588 | return NULL; | |
10589 | } | |
10590 | ||
10591 | ||
10592 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10593 | PyObject *resultobj; | |
10594 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10595 | int result; | |
10596 | PyObject * obj0 = 0 ; | |
10597 | char *kwnames[] = { | |
10598 | (char *) "self", NULL | |
10599 | }; | |
10600 | ||
10601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
10602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10603 | result = (int) ((arg1)->m_joyStick); | |
10604 | ||
10605 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10606 | return resultobj; | |
10607 | fail: | |
10608 | return NULL; | |
10609 | } | |
10610 | ||
10611 | ||
10612 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10613 | PyObject *resultobj; | |
10614 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10615 | int arg2 = (int) 0 ; | |
10616 | int arg3 = (int) wxJOYSTICK1 ; | |
10617 | int arg4 = (int) 0 ; | |
10618 | wxJoystickEvent *result; | |
10619 | PyObject * obj0 = 0 ; | |
10620 | PyObject * obj1 = 0 ; | |
10621 | PyObject * obj2 = 0 ; | |
10622 | PyObject * obj3 = 0 ; | |
10623 | char *kwnames[] = { | |
10624 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10625 | }; | |
10626 | ||
10627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10628 | if (obj0) { | |
10629 | { | |
10630 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10631 | if (PyErr_Occurred()) SWIG_fail; | |
10632 | } | |
10633 | } | |
10634 | if (obj1) { | |
10635 | { | |
10636 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10637 | if (PyErr_Occurred()) SWIG_fail; | |
10638 | } | |
10639 | } | |
10640 | if (obj2) { | |
10641 | { | |
10642 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10643 | if (PyErr_Occurred()) SWIG_fail; | |
10644 | } | |
10645 | } | |
10646 | if (obj3) { | |
10647 | { | |
10648 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10649 | if (PyErr_Occurred()) SWIG_fail; | |
10650 | } | |
10651 | } | |
10652 | { | |
10653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10654 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10655 | ||
10656 | wxPyEndAllowThreads(__tstate); | |
10657 | if (PyErr_Occurred()) SWIG_fail; | |
10658 | } | |
10659 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1); | |
10660 | return resultobj; | |
10661 | fail: | |
10662 | return NULL; | |
10663 | } | |
10664 | ||
10665 | ||
10666 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10667 | PyObject *resultobj; | |
10668 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10669 | wxPoint result; | |
10670 | PyObject * obj0 = 0 ; | |
10671 | char *kwnames[] = { | |
10672 | (char *) "self", NULL | |
10673 | }; | |
10674 | ||
10675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10677 | { | |
10678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10679 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10680 | ||
10681 | wxPyEndAllowThreads(__tstate); | |
10682 | if (PyErr_Occurred()) SWIG_fail; | |
10683 | } | |
10684 | { | |
10685 | wxPoint * resultptr; | |
10686 | resultptr = new wxPoint((wxPoint &) result); | |
10687 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
10688 | } | |
10689 | return resultobj; | |
10690 | fail: | |
10691 | return NULL; | |
10692 | } | |
10693 | ||
10694 | ||
10695 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10696 | PyObject *resultobj; | |
10697 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10698 | int result; | |
10699 | PyObject * obj0 = 0 ; | |
10700 | char *kwnames[] = { | |
10701 | (char *) "self", NULL | |
10702 | }; | |
10703 | ||
10704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
10705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10706 | { | |
10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10708 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10709 | ||
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
10713 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10714 | return resultobj; | |
10715 | fail: | |
10716 | return NULL; | |
10717 | } | |
10718 | ||
10719 | ||
10720 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10721 | PyObject *resultobj; | |
10722 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10723 | int result; | |
10724 | PyObject * obj0 = 0 ; | |
10725 | char *kwnames[] = { | |
10726 | (char *) "self", NULL | |
10727 | }; | |
10728 | ||
10729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
10730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10731 | { | |
10732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10733 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10734 | ||
10735 | wxPyEndAllowThreads(__tstate); | |
10736 | if (PyErr_Occurred()) SWIG_fail; | |
10737 | } | |
10738 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10739 | return resultobj; | |
10740 | fail: | |
10741 | return NULL; | |
10742 | } | |
10743 | ||
10744 | ||
10745 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10746 | PyObject *resultobj; | |
10747 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10748 | int result; | |
10749 | PyObject * obj0 = 0 ; | |
10750 | char *kwnames[] = { | |
10751 | (char *) "self", NULL | |
10752 | }; | |
10753 | ||
10754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
10755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10756 | { | |
10757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10758 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
10759 | ||
10760 | wxPyEndAllowThreads(__tstate); | |
10761 | if (PyErr_Occurred()) SWIG_fail; | |
10762 | } | |
10763 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10764 | return resultobj; | |
10765 | fail: | |
10766 | return NULL; | |
10767 | } | |
10768 | ||
10769 | ||
10770 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10771 | PyObject *resultobj; | |
10772 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10773 | int result; | |
10774 | PyObject * obj0 = 0 ; | |
10775 | char *kwnames[] = { | |
10776 | (char *) "self", NULL | |
10777 | }; | |
10778 | ||
10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
10780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10781 | { | |
10782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10783 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
10784 | ||
10785 | wxPyEndAllowThreads(__tstate); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | } | |
10788 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10789 | return resultobj; | |
10790 | fail: | |
10791 | return NULL; | |
10792 | } | |
10793 | ||
10794 | ||
10795 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10796 | PyObject *resultobj; | |
10797 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10798 | int arg2 ; | |
10799 | PyObject * obj0 = 0 ; | |
10800 | PyObject * obj1 = 0 ; | |
10801 | char *kwnames[] = { | |
10802 | (char *) "self",(char *) "stick", NULL | |
10803 | }; | |
10804 | ||
10805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
10806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10807 | { | |
10808 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10809 | if (PyErr_Occurred()) SWIG_fail; | |
10810 | } | |
10811 | { | |
10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10813 | (arg1)->SetJoystick(arg2); | |
10814 | ||
10815 | wxPyEndAllowThreads(__tstate); | |
10816 | if (PyErr_Occurred()) SWIG_fail; | |
10817 | } | |
10818 | Py_INCREF(Py_None); resultobj = Py_None; | |
10819 | return resultobj; | |
10820 | fail: | |
10821 | return NULL; | |
10822 | } | |
10823 | ||
10824 | ||
10825 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10826 | PyObject *resultobj; | |
10827 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10828 | int arg2 ; | |
10829 | PyObject * obj0 = 0 ; | |
10830 | PyObject * obj1 = 0 ; | |
10831 | char *kwnames[] = { | |
10832 | (char *) "self",(char *) "state", NULL | |
10833 | }; | |
10834 | ||
10835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
10836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10837 | { | |
10838 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10839 | if (PyErr_Occurred()) SWIG_fail; | |
10840 | } | |
10841 | { | |
10842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10843 | (arg1)->SetButtonState(arg2); | |
10844 | ||
10845 | wxPyEndAllowThreads(__tstate); | |
10846 | if (PyErr_Occurred()) SWIG_fail; | |
10847 | } | |
10848 | Py_INCREF(Py_None); resultobj = Py_None; | |
10849 | return resultobj; | |
10850 | fail: | |
10851 | return NULL; | |
10852 | } | |
10853 | ||
10854 | ||
10855 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10856 | PyObject *resultobj; | |
10857 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10858 | int arg2 ; | |
10859 | PyObject * obj0 = 0 ; | |
10860 | PyObject * obj1 = 0 ; | |
10861 | char *kwnames[] = { | |
10862 | (char *) "self",(char *) "change", NULL | |
10863 | }; | |
10864 | ||
10865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
10866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10867 | { | |
10868 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10869 | if (PyErr_Occurred()) SWIG_fail; | |
10870 | } | |
10871 | { | |
10872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10873 | (arg1)->SetButtonChange(arg2); | |
10874 | ||
10875 | wxPyEndAllowThreads(__tstate); | |
10876 | if (PyErr_Occurred()) SWIG_fail; | |
10877 | } | |
10878 | Py_INCREF(Py_None); resultobj = Py_None; | |
10879 | return resultobj; | |
10880 | fail: | |
10881 | return NULL; | |
10882 | } | |
10883 | ||
10884 | ||
10885 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10886 | PyObject *resultobj; | |
10887 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10888 | wxPoint *arg2 = 0 ; | |
10889 | wxPoint temp2 ; | |
10890 | PyObject * obj0 = 0 ; | |
10891 | PyObject * obj1 = 0 ; | |
10892 | char *kwnames[] = { | |
10893 | (char *) "self",(char *) "pos", NULL | |
10894 | }; | |
10895 | ||
10896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10898 | { | |
10899 | arg2 = &temp2; | |
10900 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10901 | } | |
10902 | { | |
10903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10904 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
10905 | ||
10906 | wxPyEndAllowThreads(__tstate); | |
10907 | if (PyErr_Occurred()) SWIG_fail; | |
10908 | } | |
10909 | Py_INCREF(Py_None); resultobj = Py_None; | |
10910 | return resultobj; | |
10911 | fail: | |
10912 | return NULL; | |
10913 | } | |
10914 | ||
10915 | ||
10916 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10917 | PyObject *resultobj; | |
10918 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10919 | int arg2 ; | |
10920 | PyObject * obj0 = 0 ; | |
10921 | PyObject * obj1 = 0 ; | |
10922 | char *kwnames[] = { | |
10923 | (char *) "self",(char *) "zPos", NULL | |
10924 | }; | |
10925 | ||
10926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
10927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10928 | { | |
10929 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | } | |
10932 | { | |
10933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10934 | (arg1)->SetZPosition(arg2); | |
10935 | ||
10936 | wxPyEndAllowThreads(__tstate); | |
10937 | if (PyErr_Occurred()) SWIG_fail; | |
10938 | } | |
10939 | Py_INCREF(Py_None); resultobj = Py_None; | |
10940 | return resultobj; | |
10941 | fail: | |
10942 | return NULL; | |
10943 | } | |
10944 | ||
10945 | ||
10946 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10947 | PyObject *resultobj; | |
10948 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10949 | bool result; | |
10950 | PyObject * obj0 = 0 ; | |
10951 | char *kwnames[] = { | |
10952 | (char *) "self", NULL | |
10953 | }; | |
10954 | ||
10955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
10956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10957 | { | |
10958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10959 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
10960 | ||
10961 | wxPyEndAllowThreads(__tstate); | |
10962 | if (PyErr_Occurred()) SWIG_fail; | |
10963 | } | |
10964 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10965 | return resultobj; | |
10966 | fail: | |
10967 | return NULL; | |
10968 | } | |
10969 | ||
10970 | ||
10971 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10972 | PyObject *resultobj; | |
10973 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10974 | bool result; | |
10975 | PyObject * obj0 = 0 ; | |
10976 | char *kwnames[] = { | |
10977 | (char *) "self", NULL | |
10978 | }; | |
10979 | ||
10980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
10981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10982 | { | |
10983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10984 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
10985 | ||
10986 | wxPyEndAllowThreads(__tstate); | |
10987 | if (PyErr_Occurred()) SWIG_fail; | |
10988 | } | |
10989 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10990 | return resultobj; | |
10991 | fail: | |
10992 | return NULL; | |
10993 | } | |
10994 | ||
10995 | ||
10996 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10997 | PyObject *resultobj; | |
10998 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10999 | bool result; | |
11000 | PyObject * obj0 = 0 ; | |
11001 | char *kwnames[] = { | |
11002 | (char *) "self", NULL | |
11003 | }; | |
11004 | ||
11005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11007 | { | |
11008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11009 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11010 | ||
11011 | wxPyEndAllowThreads(__tstate); | |
11012 | if (PyErr_Occurred()) SWIG_fail; | |
11013 | } | |
11014 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11015 | return resultobj; | |
11016 | fail: | |
11017 | return NULL; | |
11018 | } | |
11019 | ||
11020 | ||
11021 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11022 | PyObject *resultobj; | |
11023 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11024 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11025 | bool result; | |
11026 | PyObject * obj0 = 0 ; | |
11027 | PyObject * obj1 = 0 ; | |
11028 | char *kwnames[] = { | |
11029 | (char *) "self",(char *) "but", NULL | |
11030 | }; | |
11031 | ||
11032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11034 | if (obj1) { | |
11035 | { | |
11036 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11037 | if (PyErr_Occurred()) SWIG_fail; | |
11038 | } | |
11039 | } | |
11040 | { | |
11041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11042 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11043 | ||
11044 | wxPyEndAllowThreads(__tstate); | |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
11046 | } | |
11047 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11048 | return resultobj; | |
11049 | fail: | |
11050 | return NULL; | |
11051 | } | |
11052 | ||
11053 | ||
11054 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject *resultobj; | |
11056 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11057 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11058 | bool result; | |
11059 | PyObject * obj0 = 0 ; | |
11060 | PyObject * obj1 = 0 ; | |
11061 | char *kwnames[] = { | |
11062 | (char *) "self",(char *) "but", NULL | |
11063 | }; | |
11064 | ||
11065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11067 | if (obj1) { | |
11068 | { | |
11069 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11070 | if (PyErr_Occurred()) SWIG_fail; | |
11071 | } | |
11072 | } | |
11073 | { | |
11074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11075 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11076 | ||
11077 | wxPyEndAllowThreads(__tstate); | |
11078 | if (PyErr_Occurred()) SWIG_fail; | |
11079 | } | |
11080 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11081 | return resultobj; | |
11082 | fail: | |
11083 | return NULL; | |
11084 | } | |
11085 | ||
11086 | ||
11087 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11088 | PyObject *resultobj; | |
11089 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11090 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11091 | bool result; | |
11092 | PyObject * obj0 = 0 ; | |
11093 | PyObject * obj1 = 0 ; | |
11094 | char *kwnames[] = { | |
11095 | (char *) "self",(char *) "but", NULL | |
11096 | }; | |
11097 | ||
11098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11100 | if (obj1) { | |
11101 | { | |
11102 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11103 | if (PyErr_Occurred()) SWIG_fail; | |
11104 | } | |
11105 | } | |
11106 | { | |
11107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11108 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11109 | ||
11110 | wxPyEndAllowThreads(__tstate); | |
11111 | if (PyErr_Occurred()) SWIG_fail; | |
11112 | } | |
11113 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11114 | return resultobj; | |
11115 | fail: | |
11116 | return NULL; | |
11117 | } | |
11118 | ||
11119 | ||
11120 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11121 | PyObject *obj; | |
11122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11123 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11124 | Py_INCREF(obj); | |
11125 | return Py_BuildValue((char *)""); | |
11126 | } | |
11127 | static PyObject *_wrap_new_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11128 | PyObject *resultobj; | |
11129 | wxString *arg1 = 0 ; | |
11130 | bool arg2 = (bool) False ; | |
11131 | wxWave *result; | |
11132 | bool temp1 = False ; | |
11133 | PyObject * obj0 = 0 ; | |
11134 | PyObject * obj1 = 0 ; | |
11135 | char *kwnames[] = { | |
11136 | (char *) "fileName",(char *) "isResource", NULL | |
11137 | }; | |
11138 | ||
11139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Wave",kwnames,&obj0,&obj1)) goto fail; | |
11140 | { | |
11141 | arg1 = wxString_in_helper(obj0); | |
11142 | if (arg1 == NULL) SWIG_fail; | |
11143 | temp1 = True; | |
11144 | } | |
11145 | if (obj1) { | |
11146 | { | |
11147 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
11148 | if (PyErr_Occurred()) SWIG_fail; | |
11149 | } | |
11150 | } | |
11151 | { | |
11152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11153 | result = (wxWave *)new wxWave((wxString const &)*arg1,arg2); | |
11154 | ||
11155 | wxPyEndAllowThreads(__tstate); | |
11156 | if (PyErr_Occurred()) SWIG_fail; | |
11157 | } | |
11158 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
11159 | { | |
11160 | if (temp1) | |
11161 | delete arg1; | |
11162 | } | |
11163 | return resultobj; | |
11164 | fail: | |
11165 | { | |
11166 | if (temp1) | |
11167 | delete arg1; | |
11168 | } | |
11169 | return NULL; | |
11170 | } | |
11171 | ||
11172 | ||
11173 | static PyObject *_wrap_new_WaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11174 | PyObject *resultobj; | |
11175 | wxString *arg1 = 0 ; | |
11176 | wxWave *result; | |
11177 | bool temp1 = False ; | |
11178 | PyObject * obj0 = 0 ; | |
11179 | char *kwnames[] = { | |
11180 | (char *) "data", NULL | |
11181 | }; | |
11182 | ||
11183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WaveData",kwnames,&obj0)) goto fail; | |
11184 | { | |
11185 | arg1 = wxString_in_helper(obj0); | |
11186 | if (arg1 == NULL) SWIG_fail; | |
11187 | temp1 = True; | |
11188 | } | |
11189 | { | |
11190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11191 | result = (wxWave *)new_wxWave((wxString const &)*arg1); | |
11192 | ||
11193 | wxPyEndAllowThreads(__tstate); | |
11194 | if (PyErr_Occurred()) SWIG_fail; | |
11195 | } | |
11196 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
11197 | { | |
11198 | if (temp1) | |
11199 | delete arg1; | |
11200 | } | |
11201 | return resultobj; | |
11202 | fail: | |
11203 | { | |
11204 | if (temp1) | |
11205 | delete arg1; | |
11206 | } | |
11207 | return NULL; | |
11208 | } | |
11209 | ||
11210 | ||
11211 | static PyObject *_wrap_delete_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11212 | PyObject *resultobj; | |
11213 | wxWave *arg1 = (wxWave *) 0 ; | |
11214 | PyObject * obj0 = 0 ; | |
11215 | char *kwnames[] = { | |
11216 | (char *) "self", NULL | |
11217 | }; | |
11218 | ||
11219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Wave",kwnames,&obj0)) goto fail; | |
11220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11221 | { | |
11222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11223 | delete arg1; | |
11224 | ||
11225 | wxPyEndAllowThreads(__tstate); | |
11226 | if (PyErr_Occurred()) SWIG_fail; | |
11227 | } | |
11228 | Py_INCREF(Py_None); resultobj = Py_None; | |
11229 | return resultobj; | |
11230 | fail: | |
11231 | return NULL; | |
11232 | } | |
11233 | ||
11234 | ||
11235 | static PyObject *_wrap_Wave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11236 | PyObject *resultobj; | |
11237 | wxWave *arg1 = (wxWave *) 0 ; | |
11238 | bool result; | |
11239 | PyObject * obj0 = 0 ; | |
11240 | char *kwnames[] = { | |
11241 | (char *) "self", NULL | |
11242 | }; | |
11243 | ||
11244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Wave_IsOk",kwnames,&obj0)) goto fail; | |
11245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11246 | { | |
11247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11248 | result = (bool)((wxWave const *)arg1)->IsOk(); | |
11249 | ||
11250 | wxPyEndAllowThreads(__tstate); | |
11251 | if (PyErr_Occurred()) SWIG_fail; | |
11252 | } | |
11253 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11254 | return resultobj; | |
11255 | fail: | |
11256 | return NULL; | |
11257 | } | |
11258 | ||
11259 | ||
11260 | static PyObject *_wrap_Wave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11261 | PyObject *resultobj; | |
11262 | wxWave *arg1 = (wxWave *) 0 ; | |
11263 | bool arg2 = (bool) True ; | |
11264 | bool arg3 = (bool) False ; | |
11265 | bool result; | |
11266 | PyObject * obj0 = 0 ; | |
11267 | PyObject * obj1 = 0 ; | |
11268 | PyObject * obj2 = 0 ; | |
11269 | char *kwnames[] = { | |
11270 | (char *) "self",(char *) "async",(char *) "looped", NULL | |
11271 | }; | |
11272 | ||
11273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Wave_Play",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11275 | if (obj1) { | |
11276 | { | |
11277 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
11279 | } | |
11280 | } | |
11281 | if (obj2) { | |
11282 | { | |
11283 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
11286 | } | |
11287 | { | |
11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11289 | result = (bool)(arg1)->Play(arg2,arg3); | |
11290 | ||
11291 | wxPyEndAllowThreads(__tstate); | |
11292 | if (PyErr_Occurred()) SWIG_fail; | |
11293 | } | |
11294 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11295 | return resultobj; | |
11296 | fail: | |
11297 | return NULL; | |
11298 | } | |
11299 | ||
11300 | ||
11301 | static PyObject * Wave_swigregister(PyObject *self, PyObject *args) { | |
11302 | PyObject *obj; | |
11303 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11304 | SWIG_TypeClientData(SWIGTYPE_p_wxWave, obj); | |
11305 | Py_INCREF(obj); | |
11306 | return Py_BuildValue((char *)""); | |
11307 | } | |
11308 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11309 | PyObject *resultobj; | |
11310 | wxString *arg1 = 0 ; | |
11311 | wxString *arg2 = 0 ; | |
11312 | wxString *arg3 = 0 ; | |
11313 | wxString *arg4 = 0 ; | |
11314 | wxFileTypeInfo *result; | |
11315 | bool temp1 = False ; | |
11316 | bool temp2 = False ; | |
11317 | bool temp3 = False ; | |
11318 | bool temp4 = False ; | |
11319 | PyObject * obj0 = 0 ; | |
11320 | PyObject * obj1 = 0 ; | |
11321 | PyObject * obj2 = 0 ; | |
11322 | PyObject * obj3 = 0 ; | |
11323 | char *kwnames[] = { | |
11324 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11325 | }; | |
11326 | ||
11327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11328 | { | |
11329 | arg1 = wxString_in_helper(obj0); | |
11330 | if (arg1 == NULL) SWIG_fail; | |
11331 | temp1 = True; | |
11332 | } | |
11333 | { | |
11334 | arg2 = wxString_in_helper(obj1); | |
11335 | if (arg2 == NULL) SWIG_fail; | |
11336 | temp2 = True; | |
11337 | } | |
11338 | { | |
11339 | arg3 = wxString_in_helper(obj2); | |
11340 | if (arg3 == NULL) SWIG_fail; | |
11341 | temp3 = True; | |
11342 | } | |
11343 | { | |
11344 | arg4 = wxString_in_helper(obj3); | |
11345 | if (arg4 == NULL) SWIG_fail; | |
11346 | temp4 = True; | |
11347 | } | |
11348 | { | |
11349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11350 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11351 | ||
11352 | wxPyEndAllowThreads(__tstate); | |
11353 | if (PyErr_Occurred()) SWIG_fail; | |
11354 | } | |
11355 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11356 | { | |
11357 | if (temp1) | |
11358 | delete arg1; | |
11359 | } | |
11360 | { | |
11361 | if (temp2) | |
11362 | delete arg2; | |
11363 | } | |
11364 | { | |
11365 | if (temp3) | |
11366 | delete arg3; | |
11367 | } | |
11368 | { | |
11369 | if (temp4) | |
11370 | delete arg4; | |
11371 | } | |
11372 | return resultobj; | |
11373 | fail: | |
11374 | { | |
11375 | if (temp1) | |
11376 | delete arg1; | |
11377 | } | |
11378 | { | |
11379 | if (temp2) | |
11380 | delete arg2; | |
11381 | } | |
11382 | { | |
11383 | if (temp3) | |
11384 | delete arg3; | |
11385 | } | |
11386 | { | |
11387 | if (temp4) | |
11388 | delete arg4; | |
11389 | } | |
11390 | return NULL; | |
11391 | } | |
11392 | ||
11393 | ||
11394 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11395 | PyObject *resultobj; | |
11396 | wxArrayString *arg1 = 0 ; | |
11397 | wxFileTypeInfo *result; | |
11398 | PyObject * obj0 = 0 ; | |
11399 | char *kwnames[] = { | |
11400 | (char *) "sArray", NULL | |
11401 | }; | |
11402 | ||
11403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11404 | { | |
11405 | if (! PySequence_Check(obj0)) { | |
11406 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11407 | SWIG_fail; | |
11408 | } | |
11409 | arg1 = new wxArrayString; | |
11410 | int i, len=PySequence_Length(obj0); | |
11411 | for (i=0; i<len; i++) { | |
11412 | PyObject* item = PySequence_GetItem(obj0, i); | |
11413 | #if wxUSE_UNICODE | |
11414 | PyObject* str = PyObject_Unicode(item); | |
11415 | #else | |
11416 | PyObject* str = PyObject_Str(item); | |
11417 | #endif | |
11418 | arg1->Add(Py2wxString(str)); | |
11419 | Py_DECREF(item); | |
11420 | Py_DECREF(str); | |
11421 | } | |
11422 | } | |
11423 | { | |
11424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11425 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11426 | ||
11427 | wxPyEndAllowThreads(__tstate); | |
11428 | if (PyErr_Occurred()) SWIG_fail; | |
11429 | } | |
11430 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11431 | { | |
11432 | if (arg1) delete arg1; | |
11433 | } | |
11434 | return resultobj; | |
11435 | fail: | |
11436 | { | |
11437 | if (arg1) delete arg1; | |
11438 | } | |
11439 | return NULL; | |
11440 | } | |
11441 | ||
11442 | ||
11443 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11444 | PyObject *resultobj; | |
11445 | wxFileTypeInfo *result; | |
11446 | char *kwnames[] = { | |
11447 | NULL | |
11448 | }; | |
11449 | ||
11450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11451 | { | |
11452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11453 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11454 | ||
11455 | wxPyEndAllowThreads(__tstate); | |
11456 | if (PyErr_Occurred()) SWIG_fail; | |
11457 | } | |
11458 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11459 | return resultobj; | |
11460 | fail: | |
11461 | return NULL; | |
11462 | } | |
11463 | ||
11464 | ||
11465 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11466 | PyObject *resultobj; | |
11467 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11468 | bool result; | |
11469 | PyObject * obj0 = 0 ; | |
11470 | char *kwnames[] = { | |
11471 | (char *) "self", NULL | |
11472 | }; | |
11473 | ||
11474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
11475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11476 | { | |
11477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11478 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
11479 | ||
11480 | wxPyEndAllowThreads(__tstate); | |
11481 | if (PyErr_Occurred()) SWIG_fail; | |
11482 | } | |
11483 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11484 | return resultobj; | |
11485 | fail: | |
11486 | return NULL; | |
11487 | } | |
11488 | ||
11489 | ||
11490 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11491 | PyObject *resultobj; | |
11492 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11493 | wxString *arg2 = 0 ; | |
11494 | int arg3 = (int) 0 ; | |
11495 | bool temp2 = False ; | |
11496 | PyObject * obj0 = 0 ; | |
11497 | PyObject * obj1 = 0 ; | |
11498 | PyObject * obj2 = 0 ; | |
11499 | char *kwnames[] = { | |
11500 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
11501 | }; | |
11502 | ||
11503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11505 | { | |
11506 | arg2 = wxString_in_helper(obj1); | |
11507 | if (arg2 == NULL) SWIG_fail; | |
11508 | temp2 = True; | |
11509 | } | |
11510 | if (obj2) { | |
11511 | { | |
11512 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11513 | if (PyErr_Occurred()) SWIG_fail; | |
11514 | } | |
11515 | } | |
11516 | { | |
11517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11518 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
11519 | ||
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
11523 | Py_INCREF(Py_None); resultobj = Py_None; | |
11524 | { | |
11525 | if (temp2) | |
11526 | delete arg2; | |
11527 | } | |
11528 | return resultobj; | |
11529 | fail: | |
11530 | { | |
11531 | if (temp2) | |
11532 | delete arg2; | |
11533 | } | |
11534 | return NULL; | |
11535 | } | |
11536 | ||
11537 | ||
11538 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11539 | PyObject *resultobj; | |
11540 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11541 | wxString *arg2 = 0 ; | |
11542 | bool temp2 = False ; | |
11543 | PyObject * obj0 = 0 ; | |
11544 | PyObject * obj1 = 0 ; | |
11545 | char *kwnames[] = { | |
11546 | (char *) "self",(char *) "shortDesc", NULL | |
11547 | }; | |
11548 | ||
11549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
11550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11551 | { | |
11552 | arg2 = wxString_in_helper(obj1); | |
11553 | if (arg2 == NULL) SWIG_fail; | |
11554 | temp2 = True; | |
11555 | } | |
11556 | { | |
11557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11558 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
11559 | ||
11560 | wxPyEndAllowThreads(__tstate); | |
11561 | if (PyErr_Occurred()) SWIG_fail; | |
11562 | } | |
11563 | Py_INCREF(Py_None); resultobj = Py_None; | |
11564 | { | |
11565 | if (temp2) | |
11566 | delete arg2; | |
11567 | } | |
11568 | return resultobj; | |
11569 | fail: | |
11570 | { | |
11571 | if (temp2) | |
11572 | delete arg2; | |
11573 | } | |
11574 | return NULL; | |
11575 | } | |
11576 | ||
11577 | ||
11578 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11579 | PyObject *resultobj; | |
11580 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11581 | wxString *result; | |
11582 | PyObject * obj0 = 0 ; | |
11583 | char *kwnames[] = { | |
11584 | (char *) "self", NULL | |
11585 | }; | |
11586 | ||
11587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
11588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11589 | { | |
11590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11591 | { | |
11592 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
11593 | result = (wxString *) &_result_ref; | |
11594 | } | |
11595 | ||
11596 | wxPyEndAllowThreads(__tstate); | |
11597 | if (PyErr_Occurred()) SWIG_fail; | |
11598 | } | |
11599 | { | |
11600 | #if wxUSE_UNICODE | |
11601 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11602 | #else | |
11603 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11604 | #endif | |
11605 | } | |
11606 | return resultobj; | |
11607 | fail: | |
11608 | return NULL; | |
11609 | } | |
11610 | ||
11611 | ||
11612 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11613 | PyObject *resultobj; | |
11614 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11615 | wxString *result; | |
11616 | PyObject * obj0 = 0 ; | |
11617 | char *kwnames[] = { | |
11618 | (char *) "self", NULL | |
11619 | }; | |
11620 | ||
11621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
11622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11623 | { | |
11624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11625 | { | |
11626 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
11627 | result = (wxString *) &_result_ref; | |
11628 | } | |
11629 | ||
11630 | wxPyEndAllowThreads(__tstate); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
11632 | } | |
11633 | { | |
11634 | #if wxUSE_UNICODE | |
11635 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11636 | #else | |
11637 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11638 | #endif | |
11639 | } | |
11640 | return resultobj; | |
11641 | fail: | |
11642 | return NULL; | |
11643 | } | |
11644 | ||
11645 | ||
11646 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11647 | PyObject *resultobj; | |
11648 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11649 | wxString *result; | |
11650 | PyObject * obj0 = 0 ; | |
11651 | char *kwnames[] = { | |
11652 | (char *) "self", NULL | |
11653 | }; | |
11654 | ||
11655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
11656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11657 | { | |
11658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11659 | { | |
11660 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
11661 | result = (wxString *) &_result_ref; | |
11662 | } | |
11663 | ||
11664 | wxPyEndAllowThreads(__tstate); | |
11665 | if (PyErr_Occurred()) SWIG_fail; | |
11666 | } | |
11667 | { | |
11668 | #if wxUSE_UNICODE | |
11669 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11670 | #else | |
11671 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11672 | #endif | |
11673 | } | |
11674 | return resultobj; | |
11675 | fail: | |
11676 | return NULL; | |
11677 | } | |
11678 | ||
11679 | ||
11680 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11681 | PyObject *resultobj; | |
11682 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11683 | wxString *result; | |
11684 | PyObject * obj0 = 0 ; | |
11685 | char *kwnames[] = { | |
11686 | (char *) "self", NULL | |
11687 | }; | |
11688 | ||
11689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
11690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11691 | { | |
11692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11693 | { | |
11694 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
11695 | result = (wxString *) &_result_ref; | |
11696 | } | |
11697 | ||
11698 | wxPyEndAllowThreads(__tstate); | |
11699 | if (PyErr_Occurred()) SWIG_fail; | |
11700 | } | |
11701 | { | |
11702 | #if wxUSE_UNICODE | |
11703 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11704 | #else | |
11705 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11706 | #endif | |
11707 | } | |
11708 | return resultobj; | |
11709 | fail: | |
11710 | return NULL; | |
11711 | } | |
11712 | ||
11713 | ||
11714 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11715 | PyObject *resultobj; | |
11716 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11717 | wxString *result; | |
11718 | PyObject * obj0 = 0 ; | |
11719 | char *kwnames[] = { | |
11720 | (char *) "self", NULL | |
11721 | }; | |
11722 | ||
11723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
11724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11725 | { | |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | { | |
11728 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
11729 | result = (wxString *) &_result_ref; | |
11730 | } | |
11731 | ||
11732 | wxPyEndAllowThreads(__tstate); | |
11733 | if (PyErr_Occurred()) SWIG_fail; | |
11734 | } | |
11735 | { | |
11736 | #if wxUSE_UNICODE | |
11737 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11738 | #else | |
11739 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11740 | #endif | |
11741 | } | |
11742 | return resultobj; | |
11743 | fail: | |
11744 | return NULL; | |
11745 | } | |
11746 | ||
11747 | ||
11748 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11749 | PyObject *resultobj; | |
11750 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11751 | wxArrayString *result; | |
11752 | PyObject * obj0 = 0 ; | |
11753 | char *kwnames[] = { | |
11754 | (char *) "self", NULL | |
11755 | }; | |
11756 | ||
11757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
11758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11759 | { | |
11760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11761 | { | |
11762 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
11763 | result = (wxArrayString *) &_result_ref; | |
11764 | } | |
11765 | ||
11766 | wxPyEndAllowThreads(__tstate); | |
11767 | if (PyErr_Occurred()) SWIG_fail; | |
11768 | } | |
11769 | { | |
11770 | resultobj = wxArrayString2PyList_helper(*result); | |
11771 | } | |
11772 | return resultobj; | |
11773 | fail: | |
11774 | return NULL; | |
11775 | } | |
11776 | ||
11777 | ||
11778 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11779 | PyObject *resultobj; | |
11780 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11781 | int result; | |
11782 | PyObject * obj0 = 0 ; | |
11783 | char *kwnames[] = { | |
11784 | (char *) "self", NULL | |
11785 | }; | |
11786 | ||
11787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
11788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11789 | { | |
11790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11791 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
11792 | ||
11793 | wxPyEndAllowThreads(__tstate); | |
11794 | if (PyErr_Occurred()) SWIG_fail; | |
11795 | } | |
11796 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11797 | return resultobj; | |
11798 | fail: | |
11799 | return NULL; | |
11800 | } | |
11801 | ||
11802 | ||
11803 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11804 | PyObject *resultobj; | |
11805 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11806 | wxString *result; | |
11807 | PyObject * obj0 = 0 ; | |
11808 | char *kwnames[] = { | |
11809 | (char *) "self", NULL | |
11810 | }; | |
11811 | ||
11812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
11813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11814 | { | |
11815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11816 | { | |
11817 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
11818 | result = (wxString *) &_result_ref; | |
11819 | } | |
11820 | ||
11821 | wxPyEndAllowThreads(__tstate); | |
11822 | if (PyErr_Occurred()) SWIG_fail; | |
11823 | } | |
11824 | { | |
11825 | #if wxUSE_UNICODE | |
11826 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11827 | #else | |
11828 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11829 | #endif | |
11830 | } | |
11831 | return resultobj; | |
11832 | fail: | |
11833 | return NULL; | |
11834 | } | |
11835 | ||
11836 | ||
11837 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11838 | PyObject *resultobj; | |
11839 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11840 | int result; | |
11841 | PyObject * obj0 = 0 ; | |
11842 | char *kwnames[] = { | |
11843 | (char *) "self", NULL | |
11844 | }; | |
11845 | ||
11846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
11847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11848 | { | |
11849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11850 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
11851 | ||
11852 | wxPyEndAllowThreads(__tstate); | |
11853 | if (PyErr_Occurred()) SWIG_fail; | |
11854 | } | |
11855 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11856 | return resultobj; | |
11857 | fail: | |
11858 | return NULL; | |
11859 | } | |
11860 | ||
11861 | ||
11862 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
11863 | PyObject *obj; | |
11864 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11865 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
11866 | Py_INCREF(obj); | |
11867 | return Py_BuildValue((char *)""); | |
11868 | } | |
11869 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11870 | PyObject *resultobj; | |
11871 | wxFileTypeInfo *arg1 = 0 ; | |
11872 | wxFileType *result; | |
11873 | PyObject * obj0 = 0 ; | |
11874 | char *kwnames[] = { | |
11875 | (char *) "ftInfo", NULL | |
11876 | }; | |
11877 | ||
11878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
11879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11880 | if (arg1 == NULL) { | |
11881 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11882 | } | |
11883 | { | |
11884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11885 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
11886 | ||
11887 | wxPyEndAllowThreads(__tstate); | |
11888 | if (PyErr_Occurred()) SWIG_fail; | |
11889 | } | |
11890 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11891 | return resultobj; | |
11892 | fail: | |
11893 | return NULL; | |
11894 | } | |
11895 | ||
11896 | ||
11897 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11898 | PyObject *resultobj; | |
11899 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11900 | PyObject * obj0 = 0 ; | |
11901 | char *kwnames[] = { | |
11902 | (char *) "self", NULL | |
11903 | }; | |
11904 | ||
11905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
11906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11907 | { | |
11908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11909 | delete arg1; | |
11910 | ||
11911 | wxPyEndAllowThreads(__tstate); | |
11912 | if (PyErr_Occurred()) SWIG_fail; | |
11913 | } | |
11914 | Py_INCREF(Py_None); resultobj = Py_None; | |
11915 | return resultobj; | |
11916 | fail: | |
11917 | return NULL; | |
11918 | } | |
11919 | ||
11920 | ||
11921 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11922 | PyObject *resultobj; | |
11923 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11924 | PyObject *result; | |
11925 | PyObject * obj0 = 0 ; | |
11926 | char *kwnames[] = { | |
11927 | (char *) "self", NULL | |
11928 | }; | |
11929 | ||
11930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
11931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11932 | { | |
11933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11934 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
11935 | ||
11936 | wxPyEndAllowThreads(__tstate); | |
11937 | if (PyErr_Occurred()) SWIG_fail; | |
11938 | } | |
11939 | resultobj = result; | |
11940 | return resultobj; | |
11941 | fail: | |
11942 | return NULL; | |
11943 | } | |
11944 | ||
11945 | ||
11946 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11947 | PyObject *resultobj; | |
11948 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11949 | PyObject *result; | |
11950 | PyObject * obj0 = 0 ; | |
11951 | char *kwnames[] = { | |
11952 | (char *) "self", NULL | |
11953 | }; | |
11954 | ||
11955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
11956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11957 | { | |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
11960 | ||
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
11964 | resultobj = result; | |
11965 | return resultobj; | |
11966 | fail: | |
11967 | return NULL; | |
11968 | } | |
11969 | ||
11970 | ||
11971 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11972 | PyObject *resultobj; | |
11973 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11974 | PyObject *result; | |
11975 | PyObject * obj0 = 0 ; | |
11976 | char *kwnames[] = { | |
11977 | (char *) "self", NULL | |
11978 | }; | |
11979 | ||
11980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
11981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11982 | { | |
11983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11984 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
11985 | ||
11986 | wxPyEndAllowThreads(__tstate); | |
11987 | if (PyErr_Occurred()) SWIG_fail; | |
11988 | } | |
11989 | resultobj = result; | |
11990 | return resultobj; | |
11991 | fail: | |
11992 | return NULL; | |
11993 | } | |
11994 | ||
11995 | ||
11996 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11997 | PyObject *resultobj; | |
11998 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11999 | wxIcon *result; | |
12000 | PyObject * obj0 = 0 ; | |
12001 | char *kwnames[] = { | |
12002 | (char *) "self", NULL | |
12003 | }; | |
12004 | ||
12005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12007 | { | |
12008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12009 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12010 | ||
12011 | wxPyEndAllowThreads(__tstate); | |
12012 | if (PyErr_Occurred()) SWIG_fail; | |
12013 | } | |
12014 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
12015 | return resultobj; | |
12016 | fail: | |
12017 | return NULL; | |
12018 | } | |
12019 | ||
12020 | ||
12021 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12022 | PyObject *resultobj; | |
12023 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12024 | PyObject *result; | |
12025 | PyObject * obj0 = 0 ; | |
12026 | char *kwnames[] = { | |
12027 | (char *) "self", NULL | |
12028 | }; | |
12029 | ||
12030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12032 | { | |
12033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12034 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12035 | ||
12036 | wxPyEndAllowThreads(__tstate); | |
12037 | if (PyErr_Occurred()) SWIG_fail; | |
12038 | } | |
12039 | resultobj = result; | |
12040 | return resultobj; | |
12041 | fail: | |
12042 | return NULL; | |
12043 | } | |
12044 | ||
12045 | ||
12046 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12047 | PyObject *resultobj; | |
12048 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12049 | PyObject *result; | |
12050 | PyObject * obj0 = 0 ; | |
12051 | char *kwnames[] = { | |
12052 | (char *) "self", NULL | |
12053 | }; | |
12054 | ||
12055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12057 | { | |
12058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12059 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12060 | ||
12061 | wxPyEndAllowThreads(__tstate); | |
12062 | if (PyErr_Occurred()) SWIG_fail; | |
12063 | } | |
12064 | resultobj = result; | |
12065 | return resultobj; | |
12066 | fail: | |
12067 | return NULL; | |
12068 | } | |
12069 | ||
12070 | ||
12071 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12072 | PyObject *resultobj; | |
12073 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12074 | wxString *arg2 = 0 ; | |
12075 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12076 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12077 | PyObject *result; | |
12078 | bool temp2 = False ; | |
12079 | bool temp3 = False ; | |
12080 | PyObject * obj0 = 0 ; | |
12081 | PyObject * obj1 = 0 ; | |
12082 | PyObject * obj2 = 0 ; | |
12083 | char *kwnames[] = { | |
12084 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12085 | }; | |
12086 | ||
12087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12089 | { | |
12090 | arg2 = wxString_in_helper(obj1); | |
12091 | if (arg2 == NULL) SWIG_fail; | |
12092 | temp2 = True; | |
12093 | } | |
12094 | if (obj2) { | |
12095 | { | |
12096 | arg3 = wxString_in_helper(obj2); | |
12097 | if (arg3 == NULL) SWIG_fail; | |
12098 | temp3 = True; | |
12099 | } | |
12100 | } | |
12101 | { | |
12102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12103 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12104 | ||
12105 | wxPyEndAllowThreads(__tstate); | |
12106 | if (PyErr_Occurred()) SWIG_fail; | |
12107 | } | |
12108 | resultobj = result; | |
12109 | { | |
12110 | if (temp2) | |
12111 | delete arg2; | |
12112 | } | |
12113 | { | |
12114 | if (temp3) | |
12115 | delete arg3; | |
12116 | } | |
12117 | return resultobj; | |
12118 | fail: | |
12119 | { | |
12120 | if (temp2) | |
12121 | delete arg2; | |
12122 | } | |
12123 | { | |
12124 | if (temp3) | |
12125 | delete arg3; | |
12126 | } | |
12127 | return NULL; | |
12128 | } | |
12129 | ||
12130 | ||
12131 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12132 | PyObject *resultobj; | |
12133 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12134 | wxString *arg2 = 0 ; | |
12135 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12136 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12137 | PyObject *result; | |
12138 | bool temp2 = False ; | |
12139 | bool temp3 = False ; | |
12140 | PyObject * obj0 = 0 ; | |
12141 | PyObject * obj1 = 0 ; | |
12142 | PyObject * obj2 = 0 ; | |
12143 | char *kwnames[] = { | |
12144 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12145 | }; | |
12146 | ||
12147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12149 | { | |
12150 | arg2 = wxString_in_helper(obj1); | |
12151 | if (arg2 == NULL) SWIG_fail; | |
12152 | temp2 = True; | |
12153 | } | |
12154 | if (obj2) { | |
12155 | { | |
12156 | arg3 = wxString_in_helper(obj2); | |
12157 | if (arg3 == NULL) SWIG_fail; | |
12158 | temp3 = True; | |
12159 | } | |
12160 | } | |
12161 | { | |
12162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12163 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12164 | ||
12165 | wxPyEndAllowThreads(__tstate); | |
12166 | if (PyErr_Occurred()) SWIG_fail; | |
12167 | } | |
12168 | resultobj = result; | |
12169 | { | |
12170 | if (temp2) | |
12171 | delete arg2; | |
12172 | } | |
12173 | { | |
12174 | if (temp3) | |
12175 | delete arg3; | |
12176 | } | |
12177 | return resultobj; | |
12178 | fail: | |
12179 | { | |
12180 | if (temp2) | |
12181 | delete arg2; | |
12182 | } | |
12183 | { | |
12184 | if (temp3) | |
12185 | delete arg3; | |
12186 | } | |
12187 | return NULL; | |
12188 | } | |
12189 | ||
12190 | ||
12191 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12192 | PyObject *resultobj; | |
12193 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12194 | wxString *arg2 = 0 ; | |
12195 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12196 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12197 | PyObject *result; | |
12198 | bool temp2 = False ; | |
12199 | bool temp3 = False ; | |
12200 | PyObject * obj0 = 0 ; | |
12201 | PyObject * obj1 = 0 ; | |
12202 | PyObject * obj2 = 0 ; | |
12203 | char *kwnames[] = { | |
12204 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12205 | }; | |
12206 | ||
12207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12209 | { | |
12210 | arg2 = wxString_in_helper(obj1); | |
12211 | if (arg2 == NULL) SWIG_fail; | |
12212 | temp2 = True; | |
12213 | } | |
12214 | if (obj2) { | |
12215 | { | |
12216 | arg3 = wxString_in_helper(obj2); | |
12217 | if (arg3 == NULL) SWIG_fail; | |
12218 | temp3 = True; | |
12219 | } | |
12220 | } | |
12221 | { | |
12222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12223 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12224 | ||
12225 | wxPyEndAllowThreads(__tstate); | |
12226 | if (PyErr_Occurred()) SWIG_fail; | |
12227 | } | |
12228 | resultobj = result; | |
12229 | { | |
12230 | if (temp2) | |
12231 | delete arg2; | |
12232 | } | |
12233 | { | |
12234 | if (temp3) | |
12235 | delete arg3; | |
12236 | } | |
12237 | return resultobj; | |
12238 | fail: | |
12239 | { | |
12240 | if (temp2) | |
12241 | delete arg2; | |
12242 | } | |
12243 | { | |
12244 | if (temp3) | |
12245 | delete arg3; | |
12246 | } | |
12247 | return NULL; | |
12248 | } | |
12249 | ||
12250 | ||
12251 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12252 | PyObject *resultobj; | |
12253 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12254 | wxString *arg2 = 0 ; | |
12255 | wxString *arg3 = 0 ; | |
12256 | bool arg4 = (bool) True ; | |
12257 | bool result; | |
12258 | bool temp2 = False ; | |
12259 | bool temp3 = False ; | |
12260 | PyObject * obj0 = 0 ; | |
12261 | PyObject * obj1 = 0 ; | |
12262 | PyObject * obj2 = 0 ; | |
12263 | PyObject * obj3 = 0 ; | |
12264 | char *kwnames[] = { | |
12265 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12266 | }; | |
12267 | ||
12268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12270 | { | |
12271 | arg2 = wxString_in_helper(obj1); | |
12272 | if (arg2 == NULL) SWIG_fail; | |
12273 | temp2 = True; | |
12274 | } | |
12275 | { | |
12276 | arg3 = wxString_in_helper(obj2); | |
12277 | if (arg3 == NULL) SWIG_fail; | |
12278 | temp3 = True; | |
12279 | } | |
12280 | if (obj3) { | |
12281 | { | |
12282 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
12283 | if (PyErr_Occurred()) SWIG_fail; | |
12284 | } | |
12285 | } | |
12286 | { | |
12287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12288 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12289 | ||
12290 | wxPyEndAllowThreads(__tstate); | |
12291 | if (PyErr_Occurred()) SWIG_fail; | |
12292 | } | |
12293 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12294 | { | |
12295 | if (temp2) | |
12296 | delete arg2; | |
12297 | } | |
12298 | { | |
12299 | if (temp3) | |
12300 | delete arg3; | |
12301 | } | |
12302 | return resultobj; | |
12303 | fail: | |
12304 | { | |
12305 | if (temp2) | |
12306 | delete arg2; | |
12307 | } | |
12308 | { | |
12309 | if (temp3) | |
12310 | delete arg3; | |
12311 | } | |
12312 | return NULL; | |
12313 | } | |
12314 | ||
12315 | ||
12316 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12317 | PyObject *resultobj; | |
12318 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12319 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12320 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12321 | int arg3 = (int) 0 ; | |
12322 | bool result; | |
12323 | bool temp2 = False ; | |
12324 | PyObject * obj0 = 0 ; | |
12325 | PyObject * obj1 = 0 ; | |
12326 | PyObject * obj2 = 0 ; | |
12327 | char *kwnames[] = { | |
12328 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12329 | }; | |
12330 | ||
12331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12333 | if (obj1) { | |
12334 | { | |
12335 | arg2 = wxString_in_helper(obj1); | |
12336 | if (arg2 == NULL) SWIG_fail; | |
12337 | temp2 = True; | |
12338 | } | |
12339 | } | |
12340 | if (obj2) { | |
12341 | { | |
12342 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | } | |
12345 | } | |
12346 | { | |
12347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12348 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12349 | ||
12350 | wxPyEndAllowThreads(__tstate); | |
12351 | if (PyErr_Occurred()) SWIG_fail; | |
12352 | } | |
12353 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12354 | { | |
12355 | if (temp2) | |
12356 | delete arg2; | |
12357 | } | |
12358 | return resultobj; | |
12359 | fail: | |
12360 | { | |
12361 | if (temp2) | |
12362 | delete arg2; | |
12363 | } | |
12364 | return NULL; | |
12365 | } | |
12366 | ||
12367 | ||
12368 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12369 | PyObject *resultobj; | |
12370 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12371 | bool result; | |
12372 | PyObject * obj0 = 0 ; | |
12373 | char *kwnames[] = { | |
12374 | (char *) "self", NULL | |
12375 | }; | |
12376 | ||
12377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
12378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12379 | { | |
12380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12381 | result = (bool)(arg1)->Unassociate(); | |
12382 | ||
12383 | wxPyEndAllowThreads(__tstate); | |
12384 | if (PyErr_Occurred()) SWIG_fail; | |
12385 | } | |
12386 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12387 | return resultobj; | |
12388 | fail: | |
12389 | return NULL; | |
12390 | } | |
12391 | ||
12392 | ||
12393 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12394 | PyObject *resultobj; | |
12395 | wxString *arg1 = 0 ; | |
12396 | wxString *arg2 = 0 ; | |
12397 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12398 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12399 | wxString result; | |
12400 | bool temp1 = False ; | |
12401 | bool temp2 = False ; | |
12402 | bool temp3 = False ; | |
12403 | PyObject * obj0 = 0 ; | |
12404 | PyObject * obj1 = 0 ; | |
12405 | PyObject * obj2 = 0 ; | |
12406 | char *kwnames[] = { | |
12407 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12408 | }; | |
12409 | ||
12410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12411 | { | |
12412 | arg1 = wxString_in_helper(obj0); | |
12413 | if (arg1 == NULL) SWIG_fail; | |
12414 | temp1 = True; | |
12415 | } | |
12416 | { | |
12417 | arg2 = wxString_in_helper(obj1); | |
12418 | if (arg2 == NULL) SWIG_fail; | |
12419 | temp2 = True; | |
12420 | } | |
12421 | if (obj2) { | |
12422 | { | |
12423 | arg3 = wxString_in_helper(obj2); | |
12424 | if (arg3 == NULL) SWIG_fail; | |
12425 | temp3 = True; | |
12426 | } | |
12427 | } | |
12428 | { | |
12429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12430 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12431 | ||
12432 | wxPyEndAllowThreads(__tstate); | |
12433 | if (PyErr_Occurred()) SWIG_fail; | |
12434 | } | |
12435 | { | |
12436 | #if wxUSE_UNICODE | |
12437 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12438 | #else | |
12439 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12440 | #endif | |
12441 | } | |
12442 | { | |
12443 | if (temp1) | |
12444 | delete arg1; | |
12445 | } | |
12446 | { | |
12447 | if (temp2) | |
12448 | delete arg2; | |
12449 | } | |
12450 | { | |
12451 | if (temp3) | |
12452 | delete arg3; | |
12453 | } | |
12454 | return resultobj; | |
12455 | fail: | |
12456 | { | |
12457 | if (temp1) | |
12458 | delete arg1; | |
12459 | } | |
12460 | { | |
12461 | if (temp2) | |
12462 | delete arg2; | |
12463 | } | |
12464 | { | |
12465 | if (temp3) | |
12466 | delete arg3; | |
12467 | } | |
12468 | return NULL; | |
12469 | } | |
12470 | ||
12471 | ||
12472 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
12473 | PyObject *obj; | |
12474 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12475 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
12476 | Py_INCREF(obj); | |
12477 | return Py_BuildValue((char *)""); | |
12478 | } | |
12479 | static int _wrap_TheMimeTypesManager_set(PyObject *) { | |
12480 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
12481 | return 1; | |
12482 | } | |
12483 | ||
12484 | ||
12485 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
12486 | PyObject *pyobj; | |
12487 | ||
12488 | pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0); | |
12489 | return pyobj; | |
12490 | } | |
12491 | ||
12492 | ||
12493 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12494 | PyObject *resultobj; | |
12495 | wxString *arg1 = 0 ; | |
12496 | wxString *arg2 = 0 ; | |
12497 | bool result; | |
12498 | bool temp1 = False ; | |
12499 | bool temp2 = False ; | |
12500 | PyObject * obj0 = 0 ; | |
12501 | PyObject * obj1 = 0 ; | |
12502 | char *kwnames[] = { | |
12503 | (char *) "mimeType",(char *) "wildcard", NULL | |
12504 | }; | |
12505 | ||
12506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
12507 | { | |
12508 | arg1 = wxString_in_helper(obj0); | |
12509 | if (arg1 == NULL) SWIG_fail; | |
12510 | temp1 = True; | |
12511 | } | |
12512 | { | |
12513 | arg2 = wxString_in_helper(obj1); | |
12514 | if (arg2 == NULL) SWIG_fail; | |
12515 | temp2 = True; | |
12516 | } | |
12517 | { | |
12518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12519 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
12520 | ||
12521 | wxPyEndAllowThreads(__tstate); | |
12522 | if (PyErr_Occurred()) SWIG_fail; | |
12523 | } | |
12524 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12525 | { | |
12526 | if (temp1) | |
12527 | delete arg1; | |
12528 | } | |
12529 | { | |
12530 | if (temp2) | |
12531 | delete arg2; | |
12532 | } | |
12533 | return resultobj; | |
12534 | fail: | |
12535 | { | |
12536 | if (temp1) | |
12537 | delete arg1; | |
12538 | } | |
12539 | { | |
12540 | if (temp2) | |
12541 | delete arg2; | |
12542 | } | |
12543 | return NULL; | |
12544 | } | |
12545 | ||
12546 | ||
12547 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12548 | PyObject *resultobj; | |
12549 | wxMimeTypesManager *result; | |
12550 | char *kwnames[] = { | |
12551 | NULL | |
12552 | }; | |
12553 | ||
12554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
12555 | { | |
12556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12557 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
12558 | ||
12559 | wxPyEndAllowThreads(__tstate); | |
12560 | if (PyErr_Occurred()) SWIG_fail; | |
12561 | } | |
12562 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1); | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | return NULL; | |
12566 | } | |
12567 | ||
12568 | ||
12569 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12570 | PyObject *resultobj; | |
12571 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12572 | int arg2 = (int) wxMAILCAP_ALL ; | |
12573 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12574 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12575 | bool temp3 = False ; | |
12576 | PyObject * obj0 = 0 ; | |
12577 | PyObject * obj1 = 0 ; | |
12578 | PyObject * obj2 = 0 ; | |
12579 | char *kwnames[] = { | |
12580 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
12581 | }; | |
12582 | ||
12583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12585 | if (obj1) { | |
12586 | { | |
12587 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12588 | if (PyErr_Occurred()) SWIG_fail; | |
12589 | } | |
12590 | } | |
12591 | if (obj2) { | |
12592 | { | |
12593 | arg3 = wxString_in_helper(obj2); | |
12594 | if (arg3 == NULL) SWIG_fail; | |
12595 | temp3 = True; | |
12596 | } | |
12597 | } | |
12598 | { | |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12600 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
12601 | ||
12602 | wxPyEndAllowThreads(__tstate); | |
12603 | if (PyErr_Occurred()) SWIG_fail; | |
12604 | } | |
12605 | Py_INCREF(Py_None); resultobj = Py_None; | |
12606 | { | |
12607 | if (temp3) | |
12608 | delete arg3; | |
12609 | } | |
12610 | return resultobj; | |
12611 | fail: | |
12612 | { | |
12613 | if (temp3) | |
12614 | delete arg3; | |
12615 | } | |
12616 | return NULL; | |
12617 | } | |
12618 | ||
12619 | ||
12620 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12621 | PyObject *resultobj; | |
12622 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12623 | PyObject * obj0 = 0 ; | |
12624 | char *kwnames[] = { | |
12625 | (char *) "self", NULL | |
12626 | }; | |
12627 | ||
12628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
12629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12630 | { | |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | (arg1)->ClearData(); | |
12633 | ||
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
12637 | Py_INCREF(Py_None); resultobj = Py_None; | |
12638 | return resultobj; | |
12639 | fail: | |
12640 | return NULL; | |
12641 | } | |
12642 | ||
12643 | ||
12644 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12645 | PyObject *resultobj; | |
12646 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12647 | wxString *arg2 = 0 ; | |
12648 | wxFileType *result; | |
12649 | bool temp2 = False ; | |
12650 | PyObject * obj0 = 0 ; | |
12651 | PyObject * obj1 = 0 ; | |
12652 | char *kwnames[] = { | |
12653 | (char *) "self",(char *) "ext", NULL | |
12654 | }; | |
12655 | ||
12656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
12657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12658 | { | |
12659 | arg2 = wxString_in_helper(obj1); | |
12660 | if (arg2 == NULL) SWIG_fail; | |
12661 | temp2 = True; | |
12662 | } | |
12663 | { | |
12664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12665 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
12666 | ||
12667 | wxPyEndAllowThreads(__tstate); | |
12668 | if (PyErr_Occurred()) SWIG_fail; | |
12669 | } | |
12670 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12671 | { | |
12672 | if (temp2) | |
12673 | delete arg2; | |
12674 | } | |
12675 | return resultobj; | |
12676 | fail: | |
12677 | { | |
12678 | if (temp2) | |
12679 | delete arg2; | |
12680 | } | |
12681 | return NULL; | |
12682 | } | |
12683 | ||
12684 | ||
12685 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12686 | PyObject *resultobj; | |
12687 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12688 | wxString *arg2 = 0 ; | |
12689 | wxFileType *result; | |
12690 | bool temp2 = False ; | |
12691 | PyObject * obj0 = 0 ; | |
12692 | PyObject * obj1 = 0 ; | |
12693 | char *kwnames[] = { | |
12694 | (char *) "self",(char *) "mimeType", NULL | |
12695 | }; | |
12696 | ||
12697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
12698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12699 | { | |
12700 | arg2 = wxString_in_helper(obj1); | |
12701 | if (arg2 == NULL) SWIG_fail; | |
12702 | temp2 = True; | |
12703 | } | |
12704 | { | |
12705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12706 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
12707 | ||
12708 | wxPyEndAllowThreads(__tstate); | |
12709 | if (PyErr_Occurred()) SWIG_fail; | |
12710 | } | |
12711 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12712 | { | |
12713 | if (temp2) | |
12714 | delete arg2; | |
12715 | } | |
12716 | return resultobj; | |
12717 | fail: | |
12718 | { | |
12719 | if (temp2) | |
12720 | delete arg2; | |
12721 | } | |
12722 | return NULL; | |
12723 | } | |
12724 | ||
12725 | ||
12726 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12727 | PyObject *resultobj; | |
12728 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12729 | wxString *arg2 = 0 ; | |
12730 | bool arg3 = (bool) False ; | |
12731 | bool result; | |
12732 | bool temp2 = False ; | |
12733 | PyObject * obj0 = 0 ; | |
12734 | PyObject * obj1 = 0 ; | |
12735 | PyObject * obj2 = 0 ; | |
12736 | char *kwnames[] = { | |
12737 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
12738 | }; | |
12739 | ||
12740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12742 | { | |
12743 | arg2 = wxString_in_helper(obj1); | |
12744 | if (arg2 == NULL) SWIG_fail; | |
12745 | temp2 = True; | |
12746 | } | |
12747 | if (obj2) { | |
12748 | { | |
12749 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
12750 | if (PyErr_Occurred()) SWIG_fail; | |
12751 | } | |
12752 | } | |
12753 | { | |
12754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12755 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
12756 | ||
12757 | wxPyEndAllowThreads(__tstate); | |
12758 | if (PyErr_Occurred()) SWIG_fail; | |
12759 | } | |
12760 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12761 | { | |
12762 | if (temp2) | |
12763 | delete arg2; | |
12764 | } | |
12765 | return resultobj; | |
12766 | fail: | |
12767 | { | |
12768 | if (temp2) | |
12769 | delete arg2; | |
12770 | } | |
12771 | return NULL; | |
12772 | } | |
12773 | ||
12774 | ||
12775 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12776 | PyObject *resultobj; | |
12777 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12778 | wxString *arg2 = 0 ; | |
12779 | bool result; | |
12780 | bool temp2 = False ; | |
12781 | PyObject * obj0 = 0 ; | |
12782 | PyObject * obj1 = 0 ; | |
12783 | char *kwnames[] = { | |
12784 | (char *) "self",(char *) "filename", NULL | |
12785 | }; | |
12786 | ||
12787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
12788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12789 | { | |
12790 | arg2 = wxString_in_helper(obj1); | |
12791 | if (arg2 == NULL) SWIG_fail; | |
12792 | temp2 = True; | |
12793 | } | |
12794 | { | |
12795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12796 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
12797 | ||
12798 | wxPyEndAllowThreads(__tstate); | |
12799 | if (PyErr_Occurred()) SWIG_fail; | |
12800 | } | |
12801 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12802 | { | |
12803 | if (temp2) | |
12804 | delete arg2; | |
12805 | } | |
12806 | return resultobj; | |
12807 | fail: | |
12808 | { | |
12809 | if (temp2) | |
12810 | delete arg2; | |
12811 | } | |
12812 | return NULL; | |
12813 | } | |
12814 | ||
12815 | ||
12816 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12817 | PyObject *resultobj; | |
12818 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12819 | PyObject *result; | |
12820 | PyObject * obj0 = 0 ; | |
12821 | char *kwnames[] = { | |
12822 | (char *) "self", NULL | |
12823 | }; | |
12824 | ||
12825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
12826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12827 | { | |
12828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12829 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
12830 | ||
12831 | wxPyEndAllowThreads(__tstate); | |
12832 | if (PyErr_Occurred()) SWIG_fail; | |
12833 | } | |
12834 | resultobj = result; | |
12835 | return resultobj; | |
12836 | fail: | |
12837 | return NULL; | |
12838 | } | |
12839 | ||
12840 | ||
12841 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12842 | PyObject *resultobj; | |
12843 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12844 | wxFileTypeInfo *arg2 = 0 ; | |
12845 | PyObject * obj0 = 0 ; | |
12846 | PyObject * obj1 = 0 ; | |
12847 | char *kwnames[] = { | |
12848 | (char *) "self",(char *) "ft", NULL | |
12849 | }; | |
12850 | ||
12851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
12852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12853 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12854 | if (arg2 == NULL) { | |
12855 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12856 | } | |
12857 | { | |
12858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12859 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
12860 | ||
12861 | wxPyEndAllowThreads(__tstate); | |
12862 | if (PyErr_Occurred()) SWIG_fail; | |
12863 | } | |
12864 | Py_INCREF(Py_None); resultobj = Py_None; | |
12865 | return resultobj; | |
12866 | fail: | |
12867 | return NULL; | |
12868 | } | |
12869 | ||
12870 | ||
12871 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12872 | PyObject *resultobj; | |
12873 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12874 | wxFileTypeInfo *arg2 = 0 ; | |
12875 | wxFileType *result; | |
12876 | PyObject * obj0 = 0 ; | |
12877 | PyObject * obj1 = 0 ; | |
12878 | char *kwnames[] = { | |
12879 | (char *) "self",(char *) "ftInfo", NULL | |
12880 | }; | |
12881 | ||
12882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
12883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12884 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12885 | if (arg2 == NULL) { | |
12886 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12887 | } | |
12888 | { | |
12889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12890 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
12891 | ||
12892 | wxPyEndAllowThreads(__tstate); | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
12894 | } | |
12895 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12896 | return resultobj; | |
12897 | fail: | |
12898 | return NULL; | |
12899 | } | |
12900 | ||
12901 | ||
12902 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12903 | PyObject *resultobj; | |
12904 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12905 | wxFileType *arg2 = (wxFileType *) 0 ; | |
12906 | bool result; | |
12907 | PyObject * obj0 = 0 ; | |
12908 | PyObject * obj1 = 0 ; | |
12909 | char *kwnames[] = { | |
12910 | (char *) "self",(char *) "ft", NULL | |
12911 | }; | |
12912 | ||
12913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
12914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12915 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12916 | { | |
12917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12918 | result = (bool)(arg1)->Unassociate(arg2); | |
12919 | ||
12920 | wxPyEndAllowThreads(__tstate); | |
12921 | if (PyErr_Occurred()) SWIG_fail; | |
12922 | } | |
12923 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12924 | return resultobj; | |
12925 | fail: | |
12926 | return NULL; | |
12927 | } | |
12928 | ||
12929 | ||
12930 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12931 | PyObject *resultobj; | |
12932 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12933 | PyObject * obj0 = 0 ; | |
12934 | char *kwnames[] = { | |
12935 | (char *) "self", NULL | |
12936 | }; | |
12937 | ||
12938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
12939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12940 | { | |
12941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12942 | delete arg1; | |
12943 | ||
12944 | wxPyEndAllowThreads(__tstate); | |
12945 | if (PyErr_Occurred()) SWIG_fail; | |
12946 | } | |
12947 | Py_INCREF(Py_None); resultobj = Py_None; | |
12948 | return resultobj; | |
12949 | fail: | |
12950 | return NULL; | |
12951 | } | |
12952 | ||
12953 | ||
12954 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
12955 | PyObject *obj; | |
12956 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12957 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
12958 | Py_INCREF(obj); | |
12959 | return Py_BuildValue((char *)""); | |
12960 | } | |
12961 | static int _wrap_ART_TOOLBAR_set(PyObject *) { | |
12962 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
12963 | return 1; | |
12964 | } | |
12965 | ||
12966 | ||
12967 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
12968 | PyObject *pyobj; | |
12969 | ||
12970 | { | |
12971 | #if wxUSE_UNICODE | |
12972 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12973 | #else | |
12974 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12975 | #endif | |
12976 | } | |
12977 | return pyobj; | |
12978 | } | |
12979 | ||
12980 | ||
12981 | static int _wrap_ART_MENU_set(PyObject *) { | |
12982 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
12983 | return 1; | |
12984 | } | |
12985 | ||
12986 | ||
12987 | static PyObject *_wrap_ART_MENU_get() { | |
12988 | PyObject *pyobj; | |
12989 | ||
12990 | { | |
12991 | #if wxUSE_UNICODE | |
12992 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12993 | #else | |
12994 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12995 | #endif | |
12996 | } | |
12997 | return pyobj; | |
12998 | } | |
12999 | ||
13000 | ||
13001 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { | |
13002 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13003 | return 1; | |
13004 | } | |
13005 | ||
13006 | ||
13007 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13008 | PyObject *pyobj; | |
13009 | ||
13010 | { | |
13011 | #if wxUSE_UNICODE | |
13012 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13013 | #else | |
13014 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13015 | #endif | |
13016 | } | |
13017 | return pyobj; | |
13018 | } | |
13019 | ||
13020 | ||
13021 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { | |
13022 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13023 | return 1; | |
13024 | } | |
13025 | ||
13026 | ||
13027 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13028 | PyObject *pyobj; | |
13029 | ||
13030 | { | |
13031 | #if wxUSE_UNICODE | |
13032 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13033 | #else | |
13034 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13035 | #endif | |
13036 | } | |
13037 | return pyobj; | |
13038 | } | |
13039 | ||
13040 | ||
13041 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { | |
13042 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13043 | return 1; | |
13044 | } | |
13045 | ||
13046 | ||
13047 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13048 | PyObject *pyobj; | |
13049 | ||
13050 | { | |
13051 | #if wxUSE_UNICODE | |
13052 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13053 | #else | |
13054 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13055 | #endif | |
13056 | } | |
13057 | return pyobj; | |
13058 | } | |
13059 | ||
13060 | ||
13061 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { | |
13062 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13063 | return 1; | |
13064 | } | |
13065 | ||
13066 | ||
13067 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13068 | PyObject *pyobj; | |
13069 | ||
13070 | { | |
13071 | #if wxUSE_UNICODE | |
13072 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13073 | #else | |
13074 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13075 | #endif | |
13076 | } | |
13077 | return pyobj; | |
13078 | } | |
13079 | ||
13080 | ||
13081 | static int _wrap_ART_OTHER_set(PyObject *) { | |
13082 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13083 | return 1; | |
13084 | } | |
13085 | ||
13086 | ||
13087 | static PyObject *_wrap_ART_OTHER_get() { | |
13088 | PyObject *pyobj; | |
13089 | ||
13090 | { | |
13091 | #if wxUSE_UNICODE | |
13092 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13093 | #else | |
13094 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13095 | #endif | |
13096 | } | |
13097 | return pyobj; | |
13098 | } | |
13099 | ||
13100 | ||
13101 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { | |
13102 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13103 | return 1; | |
13104 | } | |
13105 | ||
13106 | ||
13107 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13108 | PyObject *pyobj; | |
13109 | ||
13110 | { | |
13111 | #if wxUSE_UNICODE | |
13112 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13113 | #else | |
13114 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13115 | #endif | |
13116 | } | |
13117 | return pyobj; | |
13118 | } | |
13119 | ||
13120 | ||
13121 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { | |
13122 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13123 | return 1; | |
13124 | } | |
13125 | ||
13126 | ||
13127 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13128 | PyObject *pyobj; | |
13129 | ||
13130 | { | |
13131 | #if wxUSE_UNICODE | |
13132 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13133 | #else | |
13134 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13135 | #endif | |
13136 | } | |
13137 | return pyobj; | |
13138 | } | |
13139 | ||
13140 | ||
13141 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { | |
13142 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13143 | return 1; | |
13144 | } | |
13145 | ||
13146 | ||
13147 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13148 | PyObject *pyobj; | |
13149 | ||
13150 | { | |
13151 | #if wxUSE_UNICODE | |
13152 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13153 | #else | |
13154 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13155 | #endif | |
13156 | } | |
13157 | return pyobj; | |
13158 | } | |
13159 | ||
13160 | ||
13161 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { | |
13162 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13163 | return 1; | |
13164 | } | |
13165 | ||
13166 | ||
13167 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13168 | PyObject *pyobj; | |
13169 | ||
13170 | { | |
13171 | #if wxUSE_UNICODE | |
13172 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13173 | #else | |
13174 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13175 | #endif | |
13176 | } | |
13177 | return pyobj; | |
13178 | } | |
13179 | ||
13180 | ||
13181 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { | |
13182 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13183 | return 1; | |
13184 | } | |
13185 | ||
13186 | ||
13187 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13188 | PyObject *pyobj; | |
13189 | ||
13190 | { | |
13191 | #if wxUSE_UNICODE | |
13192 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13193 | #else | |
13194 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13195 | #endif | |
13196 | } | |
13197 | return pyobj; | |
13198 | } | |
13199 | ||
13200 | ||
13201 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { | |
13202 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13203 | return 1; | |
13204 | } | |
13205 | ||
13206 | ||
13207 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13208 | PyObject *pyobj; | |
13209 | ||
13210 | { | |
13211 | #if wxUSE_UNICODE | |
13212 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13213 | #else | |
13214 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13215 | #endif | |
13216 | } | |
13217 | return pyobj; | |
13218 | } | |
13219 | ||
13220 | ||
13221 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { | |
13222 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13223 | return 1; | |
13224 | } | |
13225 | ||
13226 | ||
13227 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13228 | PyObject *pyobj; | |
13229 | ||
13230 | { | |
13231 | #if wxUSE_UNICODE | |
13232 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13233 | #else | |
13234 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13235 | #endif | |
13236 | } | |
13237 | return pyobj; | |
13238 | } | |
13239 | ||
13240 | ||
13241 | static int _wrap_ART_GO_BACK_set(PyObject *) { | |
13242 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13243 | return 1; | |
13244 | } | |
13245 | ||
13246 | ||
13247 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13248 | PyObject *pyobj; | |
13249 | ||
13250 | { | |
13251 | #if wxUSE_UNICODE | |
13252 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13253 | #else | |
13254 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13255 | #endif | |
13256 | } | |
13257 | return pyobj; | |
13258 | } | |
13259 | ||
13260 | ||
13261 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { | |
13262 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13263 | return 1; | |
13264 | } | |
13265 | ||
13266 | ||
13267 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13268 | PyObject *pyobj; | |
13269 | ||
13270 | { | |
13271 | #if wxUSE_UNICODE | |
13272 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13273 | #else | |
13274 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13275 | #endif | |
13276 | } | |
13277 | return pyobj; | |
13278 | } | |
13279 | ||
13280 | ||
13281 | static int _wrap_ART_GO_UP_set(PyObject *) { | |
13282 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13283 | return 1; | |
13284 | } | |
13285 | ||
13286 | ||
13287 | static PyObject *_wrap_ART_GO_UP_get() { | |
13288 | PyObject *pyobj; | |
13289 | ||
13290 | { | |
13291 | #if wxUSE_UNICODE | |
13292 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13293 | #else | |
13294 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13295 | #endif | |
13296 | } | |
13297 | return pyobj; | |
13298 | } | |
13299 | ||
13300 | ||
13301 | static int _wrap_ART_GO_DOWN_set(PyObject *) { | |
13302 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13303 | return 1; | |
13304 | } | |
13305 | ||
13306 | ||
13307 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13308 | PyObject *pyobj; | |
13309 | ||
13310 | { | |
13311 | #if wxUSE_UNICODE | |
13312 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13313 | #else | |
13314 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13315 | #endif | |
13316 | } | |
13317 | return pyobj; | |
13318 | } | |
13319 | ||
13320 | ||
13321 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { | |
13322 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13323 | return 1; | |
13324 | } | |
13325 | ||
13326 | ||
13327 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13328 | PyObject *pyobj; | |
13329 | ||
13330 | { | |
13331 | #if wxUSE_UNICODE | |
13332 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13333 | #else | |
13334 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13335 | #endif | |
13336 | } | |
13337 | return pyobj; | |
13338 | } | |
13339 | ||
13340 | ||
13341 | static int _wrap_ART_GO_HOME_set(PyObject *) { | |
13342 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13343 | return 1; | |
13344 | } | |
13345 | ||
13346 | ||
13347 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13348 | PyObject *pyobj; | |
13349 | ||
13350 | { | |
13351 | #if wxUSE_UNICODE | |
13352 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13353 | #else | |
13354 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13355 | #endif | |
13356 | } | |
13357 | return pyobj; | |
13358 | } | |
13359 | ||
13360 | ||
13361 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { | |
13362 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13363 | return 1; | |
13364 | } | |
13365 | ||
13366 | ||
13367 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13368 | PyObject *pyobj; | |
13369 | ||
13370 | { | |
13371 | #if wxUSE_UNICODE | |
13372 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13373 | #else | |
13374 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13375 | #endif | |
13376 | } | |
13377 | return pyobj; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static int _wrap_ART_PRINT_set(PyObject *) { | |
13382 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13383 | return 1; | |
13384 | } | |
13385 | ||
13386 | ||
13387 | static PyObject *_wrap_ART_PRINT_get() { | |
13388 | PyObject *pyobj; | |
13389 | ||
13390 | { | |
13391 | #if wxUSE_UNICODE | |
13392 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13393 | #else | |
13394 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13395 | #endif | |
13396 | } | |
13397 | return pyobj; | |
13398 | } | |
13399 | ||
13400 | ||
13401 | static int _wrap_ART_HELP_set(PyObject *) { | |
13402 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13403 | return 1; | |
13404 | } | |
13405 | ||
13406 | ||
13407 | static PyObject *_wrap_ART_HELP_get() { | |
13408 | PyObject *pyobj; | |
13409 | ||
13410 | { | |
13411 | #if wxUSE_UNICODE | |
13412 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13413 | #else | |
13414 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13415 | #endif | |
13416 | } | |
13417 | return pyobj; | |
13418 | } | |
13419 | ||
13420 | ||
13421 | static int _wrap_ART_TIP_set(PyObject *) { | |
13422 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
13423 | return 1; | |
13424 | } | |
13425 | ||
13426 | ||
13427 | static PyObject *_wrap_ART_TIP_get() { | |
13428 | PyObject *pyobj; | |
13429 | ||
13430 | { | |
13431 | #if wxUSE_UNICODE | |
13432 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13433 | #else | |
13434 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13435 | #endif | |
13436 | } | |
13437 | return pyobj; | |
13438 | } | |
13439 | ||
13440 | ||
13441 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { | |
13442 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
13443 | return 1; | |
13444 | } | |
13445 | ||
13446 | ||
13447 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
13448 | PyObject *pyobj; | |
13449 | ||
13450 | { | |
13451 | #if wxUSE_UNICODE | |
13452 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13453 | #else | |
13454 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13455 | #endif | |
13456 | } | |
13457 | return pyobj; | |
13458 | } | |
13459 | ||
13460 | ||
13461 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { | |
13462 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
13463 | return 1; | |
13464 | } | |
13465 | ||
13466 | ||
13467 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
13468 | PyObject *pyobj; | |
13469 | ||
13470 | { | |
13471 | #if wxUSE_UNICODE | |
13472 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13473 | #else | |
13474 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13475 | #endif | |
13476 | } | |
13477 | return pyobj; | |
13478 | } | |
13479 | ||
13480 | ||
13481 | static int _wrap_ART_NEW_DIR_set(PyObject *) { | |
13482 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
13483 | return 1; | |
13484 | } | |
13485 | ||
13486 | ||
13487 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
13488 | PyObject *pyobj; | |
13489 | ||
13490 | { | |
13491 | #if wxUSE_UNICODE | |
13492 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13493 | #else | |
13494 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13495 | #endif | |
13496 | } | |
13497 | return pyobj; | |
13498 | } | |
13499 | ||
13500 | ||
13501 | static int _wrap_ART_FOLDER_set(PyObject *) { | |
13502 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
13503 | return 1; | |
13504 | } | |
13505 | ||
13506 | ||
13507 | static PyObject *_wrap_ART_FOLDER_get() { | |
13508 | PyObject *pyobj; | |
13509 | ||
13510 | { | |
13511 | #if wxUSE_UNICODE | |
13512 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13513 | #else | |
13514 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13515 | #endif | |
13516 | } | |
13517 | return pyobj; | |
13518 | } | |
13519 | ||
13520 | ||
13521 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { | |
13522 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
13523 | return 1; | |
13524 | } | |
13525 | ||
13526 | ||
13527 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
13528 | PyObject *pyobj; | |
13529 | ||
13530 | { | |
13531 | #if wxUSE_UNICODE | |
13532 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13533 | #else | |
13534 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13535 | #endif | |
13536 | } | |
13537 | return pyobj; | |
13538 | } | |
13539 | ||
13540 | ||
13541 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { | |
13542 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
13543 | return 1; | |
13544 | } | |
13545 | ||
13546 | ||
13547 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
13548 | PyObject *pyobj; | |
13549 | ||
13550 | { | |
13551 | #if wxUSE_UNICODE | |
13552 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13553 | #else | |
13554 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13555 | #endif | |
13556 | } | |
13557 | return pyobj; | |
13558 | } | |
13559 | ||
13560 | ||
13561 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { | |
13562 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
13563 | return 1; | |
13564 | } | |
13565 | ||
13566 | ||
13567 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
13568 | PyObject *pyobj; | |
13569 | ||
13570 | { | |
13571 | #if wxUSE_UNICODE | |
13572 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
13573 | #else | |
13574 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
13575 | #endif | |
13576 | } | |
13577 | return pyobj; | |
13578 | } | |
13579 | ||
13580 | ||
13581 | static int _wrap_ART_TICK_MARK_set(PyObject *) { | |
13582 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
13583 | return 1; | |
13584 | } | |
13585 | ||
13586 | ||
13587 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
13588 | PyObject *pyobj; | |
13589 | ||
13590 | { | |
13591 | #if wxUSE_UNICODE | |
13592 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
13593 | #else | |
13594 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
13595 | #endif | |
13596 | } | |
13597 | return pyobj; | |
13598 | } | |
13599 | ||
13600 | ||
13601 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { | |
13602 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
13603 | return 1; | |
13604 | } | |
13605 | ||
13606 | ||
13607 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
13608 | PyObject *pyobj; | |
13609 | ||
13610 | { | |
13611 | #if wxUSE_UNICODE | |
13612 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
13613 | #else | |
13614 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
13615 | #endif | |
13616 | } | |
13617 | return pyobj; | |
13618 | } | |
13619 | ||
13620 | ||
13621 | static int _wrap_ART_ERROR_set(PyObject *) { | |
13622 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
13623 | return 1; | |
13624 | } | |
13625 | ||
13626 | ||
13627 | static PyObject *_wrap_ART_ERROR_get() { | |
13628 | PyObject *pyobj; | |
13629 | ||
13630 | { | |
13631 | #if wxUSE_UNICODE | |
13632 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
13633 | #else | |
13634 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
13635 | #endif | |
13636 | } | |
13637 | return pyobj; | |
13638 | } | |
13639 | ||
13640 | ||
13641 | static int _wrap_ART_QUESTION_set(PyObject *) { | |
13642 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
13643 | return 1; | |
13644 | } | |
13645 | ||
13646 | ||
13647 | static PyObject *_wrap_ART_QUESTION_get() { | |
13648 | PyObject *pyobj; | |
13649 | ||
13650 | { | |
13651 | #if wxUSE_UNICODE | |
13652 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
13653 | #else | |
13654 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
13655 | #endif | |
13656 | } | |
13657 | return pyobj; | |
13658 | } | |
13659 | ||
13660 | ||
13661 | static int _wrap_ART_WARNING_set(PyObject *) { | |
13662 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
13663 | return 1; | |
13664 | } | |
13665 | ||
13666 | ||
13667 | static PyObject *_wrap_ART_WARNING_get() { | |
13668 | PyObject *pyobj; | |
13669 | ||
13670 | { | |
13671 | #if wxUSE_UNICODE | |
13672 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
13673 | #else | |
13674 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
13675 | #endif | |
13676 | } | |
13677 | return pyobj; | |
13678 | } | |
13679 | ||
13680 | ||
13681 | static int _wrap_ART_INFORMATION_set(PyObject *) { | |
13682 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
13683 | return 1; | |
13684 | } | |
13685 | ||
13686 | ||
13687 | static PyObject *_wrap_ART_INFORMATION_get() { | |
13688 | PyObject *pyobj; | |
13689 | ||
13690 | { | |
13691 | #if wxUSE_UNICODE | |
13692 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
13693 | #else | |
13694 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
13695 | #endif | |
13696 | } | |
13697 | return pyobj; | |
13698 | } | |
13699 | ||
13700 | ||
13701 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { | |
13702 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
13703 | return 1; | |
13704 | } | |
13705 | ||
13706 | ||
13707 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
13708 | PyObject *pyobj; | |
13709 | ||
13710 | { | |
13711 | #if wxUSE_UNICODE | |
13712 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13713 | #else | |
13714 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13715 | #endif | |
13716 | } | |
13717 | return pyobj; | |
13718 | } | |
13719 | ||
13720 | ||
13721 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13722 | PyObject *resultobj; | |
13723 | wxPyArtProvider *result; | |
13724 | char *kwnames[] = { | |
13725 | NULL | |
13726 | }; | |
13727 | ||
13728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
13729 | { | |
13730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13731 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
13732 | ||
13733 | wxPyEndAllowThreads(__tstate); | |
13734 | if (PyErr_Occurred()) SWIG_fail; | |
13735 | } | |
13736 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1); | |
13737 | return resultobj; | |
13738 | fail: | |
13739 | return NULL; | |
13740 | } | |
13741 | ||
13742 | ||
13743 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13744 | PyObject *resultobj; | |
13745 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13746 | PyObject *arg2 = (PyObject *) 0 ; | |
13747 | PyObject *arg3 = (PyObject *) 0 ; | |
13748 | PyObject * obj0 = 0 ; | |
13749 | PyObject * obj1 = 0 ; | |
13750 | PyObject * obj2 = 0 ; | |
13751 | char *kwnames[] = { | |
13752 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13753 | }; | |
13754 | ||
13755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13757 | arg2 = obj1; | |
13758 | arg3 = obj2; | |
13759 | { | |
13760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13761 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13762 | ||
13763 | wxPyEndAllowThreads(__tstate); | |
13764 | if (PyErr_Occurred()) SWIG_fail; | |
13765 | } | |
13766 | Py_INCREF(Py_None); resultobj = Py_None; | |
13767 | return resultobj; | |
13768 | fail: | |
13769 | return NULL; | |
13770 | } | |
13771 | ||
13772 | ||
13773 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13774 | PyObject *resultobj; | |
13775 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13776 | PyObject * obj0 = 0 ; | |
13777 | char *kwnames[] = { | |
13778 | (char *) "provider", NULL | |
13779 | }; | |
13780 | ||
13781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
13782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13783 | { | |
13784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13785 | wxPyArtProvider::PushProvider(arg1); | |
13786 | ||
13787 | wxPyEndAllowThreads(__tstate); | |
13788 | if (PyErr_Occurred()) SWIG_fail; | |
13789 | } | |
13790 | Py_INCREF(Py_None); resultobj = Py_None; | |
13791 | return resultobj; | |
13792 | fail: | |
13793 | return NULL; | |
13794 | } | |
13795 | ||
13796 | ||
13797 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13798 | PyObject *resultobj; | |
13799 | bool result; | |
13800 | char *kwnames[] = { | |
13801 | NULL | |
13802 | }; | |
13803 | ||
13804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
13805 | { | |
13806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13807 | result = (bool)wxPyArtProvider::PopProvider(); | |
13808 | ||
13809 | wxPyEndAllowThreads(__tstate); | |
13810 | if (PyErr_Occurred()) SWIG_fail; | |
13811 | } | |
13812 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
13813 | return resultobj; | |
13814 | fail: | |
13815 | return NULL; | |
13816 | } | |
13817 | ||
13818 | ||
13819 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13820 | PyObject *resultobj; | |
13821 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13822 | bool result; | |
13823 | PyObject * obj0 = 0 ; | |
13824 | char *kwnames[] = { | |
13825 | (char *) "provider", NULL | |
13826 | }; | |
13827 | ||
13828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
13829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13830 | { | |
13831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13832 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
13833 | ||
13834 | wxPyEndAllowThreads(__tstate); | |
13835 | if (PyErr_Occurred()) SWIG_fail; | |
13836 | } | |
13837 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
13838 | return resultobj; | |
13839 | fail: | |
13840 | return NULL; | |
13841 | } | |
13842 | ||
13843 | ||
13844 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13845 | PyObject *resultobj; | |
13846 | wxString *arg1 = 0 ; | |
13847 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13848 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13849 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13850 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13851 | wxBitmap result; | |
13852 | bool temp1 = False ; | |
13853 | bool temp2 = False ; | |
13854 | wxSize temp3 ; | |
13855 | PyObject * obj0 = 0 ; | |
13856 | PyObject * obj1 = 0 ; | |
13857 | PyObject * obj2 = 0 ; | |
13858 | char *kwnames[] = { | |
13859 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13860 | }; | |
13861 | ||
13862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13863 | { | |
13864 | arg1 = wxString_in_helper(obj0); | |
13865 | if (arg1 == NULL) SWIG_fail; | |
13866 | temp1 = True; | |
13867 | } | |
13868 | if (obj1) { | |
13869 | { | |
13870 | arg2 = wxString_in_helper(obj1); | |
13871 | if (arg2 == NULL) SWIG_fail; | |
13872 | temp2 = True; | |
13873 | } | |
13874 | } | |
13875 | if (obj2) { | |
13876 | { | |
13877 | arg3 = &temp3; | |
13878 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13879 | } | |
13880 | } | |
13881 | { | |
13882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13883 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13884 | ||
13885 | wxPyEndAllowThreads(__tstate); | |
13886 | if (PyErr_Occurred()) SWIG_fail; | |
13887 | } | |
13888 | { | |
13889 | wxBitmap * resultptr; | |
13890 | resultptr = new wxBitmap((wxBitmap &) result); | |
13891 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
13892 | } | |
13893 | { | |
13894 | if (temp1) | |
13895 | delete arg1; | |
13896 | } | |
13897 | { | |
13898 | if (temp2) | |
13899 | delete arg2; | |
13900 | } | |
13901 | return resultobj; | |
13902 | fail: | |
13903 | { | |
13904 | if (temp1) | |
13905 | delete arg1; | |
13906 | } | |
13907 | { | |
13908 | if (temp2) | |
13909 | delete arg2; | |
13910 | } | |
13911 | return NULL; | |
13912 | } | |
13913 | ||
13914 | ||
13915 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13916 | PyObject *resultobj; | |
13917 | wxString *arg1 = 0 ; | |
13918 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13919 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13920 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13921 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13922 | wxIcon result; | |
13923 | bool temp1 = False ; | |
13924 | bool temp2 = False ; | |
13925 | wxSize temp3 ; | |
13926 | PyObject * obj0 = 0 ; | |
13927 | PyObject * obj1 = 0 ; | |
13928 | PyObject * obj2 = 0 ; | |
13929 | char *kwnames[] = { | |
13930 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13931 | }; | |
13932 | ||
13933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13934 | { | |
13935 | arg1 = wxString_in_helper(obj0); | |
13936 | if (arg1 == NULL) SWIG_fail; | |
13937 | temp1 = True; | |
13938 | } | |
13939 | if (obj1) { | |
13940 | { | |
13941 | arg2 = wxString_in_helper(obj1); | |
13942 | if (arg2 == NULL) SWIG_fail; | |
13943 | temp2 = True; | |
13944 | } | |
13945 | } | |
13946 | if (obj2) { | |
13947 | { | |
13948 | arg3 = &temp3; | |
13949 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13950 | } | |
13951 | } | |
13952 | { | |
13953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13954 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13955 | ||
13956 | wxPyEndAllowThreads(__tstate); | |
13957 | if (PyErr_Occurred()) SWIG_fail; | |
13958 | } | |
13959 | { | |
13960 | wxIcon * resultptr; | |
13961 | resultptr = new wxIcon((wxIcon &) result); | |
13962 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
13963 | } | |
13964 | { | |
13965 | if (temp1) | |
13966 | delete arg1; | |
13967 | } | |
13968 | { | |
13969 | if (temp2) | |
13970 | delete arg2; | |
13971 | } | |
13972 | return resultobj; | |
13973 | fail: | |
13974 | { | |
13975 | if (temp1) | |
13976 | delete arg1; | |
13977 | } | |
13978 | { | |
13979 | if (temp2) | |
13980 | delete arg2; | |
13981 | } | |
13982 | return NULL; | |
13983 | } | |
13984 | ||
13985 | ||
13986 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13987 | PyObject *resultobj; | |
13988 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13989 | PyObject * obj0 = 0 ; | |
13990 | char *kwnames[] = { | |
13991 | (char *) "self", NULL | |
13992 | }; | |
13993 | ||
13994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
13995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13996 | { | |
13997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13998 | wxPyArtProvider_Destroy(arg1); | |
13999 | ||
14000 | wxPyEndAllowThreads(__tstate); | |
14001 | if (PyErr_Occurred()) SWIG_fail; | |
14002 | } | |
14003 | Py_INCREF(Py_None); resultobj = Py_None; | |
14004 | return resultobj; | |
14005 | fail: | |
14006 | return NULL; | |
14007 | } | |
14008 | ||
14009 | ||
14010 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { | |
14011 | PyObject *obj; | |
14012 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14013 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14014 | Py_INCREF(obj); | |
14015 | return Py_BuildValue((char *)""); | |
14016 | } | |
14017 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14018 | PyObject *resultobj; | |
14019 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14020 | PyObject * obj0 = 0 ; | |
14021 | char *kwnames[] = { | |
14022 | (char *) "self", NULL | |
14023 | }; | |
14024 | ||
14025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
14026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14027 | { | |
14028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14029 | delete arg1; | |
14030 | ||
14031 | wxPyEndAllowThreads(__tstate); | |
14032 | if (PyErr_Occurred()) SWIG_fail; | |
14033 | } | |
14034 | Py_INCREF(Py_None); resultobj = Py_None; | |
14035 | return resultobj; | |
14036 | fail: | |
14037 | return NULL; | |
14038 | } | |
14039 | ||
14040 | ||
14041 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14042 | PyObject *resultobj; | |
14043 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14044 | wxConfigBase *result; | |
14045 | PyObject * obj0 = 0 ; | |
14046 | char *kwnames[] = { | |
14047 | (char *) "pConfig", NULL | |
14048 | }; | |
14049 | ||
14050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
14051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14052 | { | |
14053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14054 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14055 | ||
14056 | wxPyEndAllowThreads(__tstate); | |
14057 | if (PyErr_Occurred()) SWIG_fail; | |
14058 | } | |
14059 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
14060 | return resultobj; | |
14061 | fail: | |
14062 | return NULL; | |
14063 | } | |
14064 | ||
14065 | ||
14066 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14067 | PyObject *resultobj; | |
14068 | bool arg1 = (bool) True ; | |
14069 | wxConfigBase *result; | |
14070 | PyObject * obj0 = 0 ; | |
14071 | char *kwnames[] = { | |
14072 | (char *) "createOnDemand", NULL | |
14073 | }; | |
14074 | ||
14075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14076 | if (obj0) { | |
14077 | { | |
14078 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); | |
14079 | if (PyErr_Occurred()) SWIG_fail; | |
14080 | } | |
14081 | } | |
14082 | { | |
14083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14084 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14085 | ||
14086 | wxPyEndAllowThreads(__tstate); | |
14087 | if (PyErr_Occurred()) SWIG_fail; | |
14088 | } | |
14089 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
14090 | return resultobj; | |
14091 | fail: | |
14092 | return NULL; | |
14093 | } | |
14094 | ||
14095 | ||
14096 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14097 | PyObject *resultobj; | |
14098 | wxConfigBase *result; | |
14099 | char *kwnames[] = { | |
14100 | NULL | |
14101 | }; | |
14102 | ||
14103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14104 | { | |
14105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14106 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14107 | ||
14108 | wxPyEndAllowThreads(__tstate); | |
14109 | if (PyErr_Occurred()) SWIG_fail; | |
14110 | } | |
14111 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
14112 | return resultobj; | |
14113 | fail: | |
14114 | return NULL; | |
14115 | } | |
14116 | ||
14117 | ||
14118 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14119 | PyObject *resultobj; | |
14120 | char *kwnames[] = { | |
14121 | NULL | |
14122 | }; | |
14123 | ||
14124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14125 | { | |
14126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14127 | wxConfigBase::DontCreateOnDemand(); | |
14128 | ||
14129 | wxPyEndAllowThreads(__tstate); | |
14130 | if (PyErr_Occurred()) SWIG_fail; | |
14131 | } | |
14132 | Py_INCREF(Py_None); resultobj = Py_None; | |
14133 | return resultobj; | |
14134 | fail: | |
14135 | return NULL; | |
14136 | } | |
14137 | ||
14138 | ||
14139 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14140 | PyObject *resultobj; | |
14141 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14142 | wxString *arg2 = 0 ; | |
14143 | bool temp2 = False ; | |
14144 | PyObject * obj0 = 0 ; | |
14145 | PyObject * obj1 = 0 ; | |
14146 | char *kwnames[] = { | |
14147 | (char *) "self",(char *) "strPath", NULL | |
14148 | }; | |
14149 | ||
14150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
14151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14152 | { | |
14153 | arg2 = wxString_in_helper(obj1); | |
14154 | if (arg2 == NULL) SWIG_fail; | |
14155 | temp2 = True; | |
14156 | } | |
14157 | { | |
14158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14159 | (arg1)->SetPath((wxString const &)*arg2); | |
14160 | ||
14161 | wxPyEndAllowThreads(__tstate); | |
14162 | if (PyErr_Occurred()) SWIG_fail; | |
14163 | } | |
14164 | Py_INCREF(Py_None); resultobj = Py_None; | |
14165 | { | |
14166 | if (temp2) | |
14167 | delete arg2; | |
14168 | } | |
14169 | return resultobj; | |
14170 | fail: | |
14171 | { | |
14172 | if (temp2) | |
14173 | delete arg2; | |
14174 | } | |
14175 | return NULL; | |
14176 | } | |
14177 | ||
14178 | ||
14179 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14180 | PyObject *resultobj; | |
14181 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14182 | wxString *result; | |
14183 | PyObject * obj0 = 0 ; | |
14184 | char *kwnames[] = { | |
14185 | (char *) "self", NULL | |
14186 | }; | |
14187 | ||
14188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
14189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14190 | { | |
14191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14192 | { | |
14193 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14194 | result = (wxString *) &_result_ref; | |
14195 | } | |
14196 | ||
14197 | wxPyEndAllowThreads(__tstate); | |
14198 | if (PyErr_Occurred()) SWIG_fail; | |
14199 | } | |
14200 | { | |
14201 | #if wxUSE_UNICODE | |
14202 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14203 | #else | |
14204 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14205 | #endif | |
14206 | } | |
14207 | return resultobj; | |
14208 | fail: | |
14209 | return NULL; | |
14210 | } | |
14211 | ||
14212 | ||
14213 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14214 | PyObject *resultobj; | |
14215 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14216 | PyObject *result; | |
14217 | PyObject * obj0 = 0 ; | |
14218 | char *kwnames[] = { | |
14219 | (char *) "self", NULL | |
14220 | }; | |
14221 | ||
14222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
14223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14224 | { | |
14225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14226 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14227 | ||
14228 | wxPyEndAllowThreads(__tstate); | |
14229 | if (PyErr_Occurred()) SWIG_fail; | |
14230 | } | |
14231 | resultobj = result; | |
14232 | return resultobj; | |
14233 | fail: | |
14234 | return NULL; | |
14235 | } | |
14236 | ||
14237 | ||
14238 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14239 | PyObject *resultobj; | |
14240 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14241 | long arg2 ; | |
14242 | PyObject *result; | |
14243 | PyObject * obj0 = 0 ; | |
14244 | PyObject * obj1 = 0 ; | |
14245 | char *kwnames[] = { | |
14246 | (char *) "self",(char *) "index", NULL | |
14247 | }; | |
14248 | ||
14249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
14250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14251 | { | |
14252 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
14253 | if (PyErr_Occurred()) SWIG_fail; | |
14254 | } | |
14255 | { | |
14256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14257 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14258 | ||
14259 | wxPyEndAllowThreads(__tstate); | |
14260 | if (PyErr_Occurred()) SWIG_fail; | |
14261 | } | |
14262 | resultobj = result; | |
14263 | return resultobj; | |
14264 | fail: | |
14265 | return NULL; | |
14266 | } | |
14267 | ||
14268 | ||
14269 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14270 | PyObject *resultobj; | |
14271 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14272 | PyObject *result; | |
14273 | PyObject * obj0 = 0 ; | |
14274 | char *kwnames[] = { | |
14275 | (char *) "self", NULL | |
14276 | }; | |
14277 | ||
14278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
14279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14280 | { | |
14281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14282 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14283 | ||
14284 | wxPyEndAllowThreads(__tstate); | |
14285 | if (PyErr_Occurred()) SWIG_fail; | |
14286 | } | |
14287 | resultobj = result; | |
14288 | return resultobj; | |
14289 | fail: | |
14290 | return NULL; | |
14291 | } | |
14292 | ||
14293 | ||
14294 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14295 | PyObject *resultobj; | |
14296 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14297 | long arg2 ; | |
14298 | PyObject *result; | |
14299 | PyObject * obj0 = 0 ; | |
14300 | PyObject * obj1 = 0 ; | |
14301 | char *kwnames[] = { | |
14302 | (char *) "self",(char *) "index", NULL | |
14303 | }; | |
14304 | ||
14305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
14306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14307 | { | |
14308 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
14309 | if (PyErr_Occurred()) SWIG_fail; | |
14310 | } | |
14311 | { | |
14312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14313 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14314 | ||
14315 | wxPyEndAllowThreads(__tstate); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | } | |
14318 | resultobj = result; | |
14319 | return resultobj; | |
14320 | fail: | |
14321 | return NULL; | |
14322 | } | |
14323 | ||
14324 | ||
14325 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14326 | PyObject *resultobj; | |
14327 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14328 | bool arg2 = (bool) False ; | |
14329 | size_t result; | |
14330 | PyObject * obj0 = 0 ; | |
14331 | PyObject * obj1 = 0 ; | |
14332 | char *kwnames[] = { | |
14333 | (char *) "self",(char *) "bRecursive", NULL | |
14334 | }; | |
14335 | ||
14336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
14337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14338 | if (obj1) { | |
14339 | { | |
14340 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
14341 | if (PyErr_Occurred()) SWIG_fail; | |
14342 | } | |
14343 | } | |
14344 | { | |
14345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14346 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14347 | ||
14348 | wxPyEndAllowThreads(__tstate); | |
14349 | if (PyErr_Occurred()) SWIG_fail; | |
14350 | } | |
14351 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
14352 | return resultobj; | |
14353 | fail: | |
14354 | return NULL; | |
14355 | } | |
14356 | ||
14357 | ||
14358 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14359 | PyObject *resultobj; | |
14360 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14361 | bool arg2 = (bool) False ; | |
14362 | size_t result; | |
14363 | PyObject * obj0 = 0 ; | |
14364 | PyObject * obj1 = 0 ; | |
14365 | char *kwnames[] = { | |
14366 | (char *) "self",(char *) "bRecursive", NULL | |
14367 | }; | |
14368 | ||
14369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
14370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14371 | if (obj1) { | |
14372 | { | |
14373 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
14374 | if (PyErr_Occurred()) SWIG_fail; | |
14375 | } | |
14376 | } | |
14377 | { | |
14378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14379 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14380 | ||
14381 | wxPyEndAllowThreads(__tstate); | |
14382 | if (PyErr_Occurred()) SWIG_fail; | |
14383 | } | |
14384 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
14385 | return resultobj; | |
14386 | fail: | |
14387 | return NULL; | |
14388 | } | |
14389 | ||
14390 | ||
14391 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14392 | PyObject *resultobj; | |
14393 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14394 | wxString *arg2 = 0 ; | |
14395 | bool result; | |
14396 | bool temp2 = False ; | |
14397 | PyObject * obj0 = 0 ; | |
14398 | PyObject * obj1 = 0 ; | |
14399 | char *kwnames[] = { | |
14400 | (char *) "self",(char *) "strName", NULL | |
14401 | }; | |
14402 | ||
14403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
14404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14405 | { | |
14406 | arg2 = wxString_in_helper(obj1); | |
14407 | if (arg2 == NULL) SWIG_fail; | |
14408 | temp2 = True; | |
14409 | } | |
14410 | { | |
14411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14412 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
14413 | ||
14414 | wxPyEndAllowThreads(__tstate); | |
14415 | if (PyErr_Occurred()) SWIG_fail; | |
14416 | } | |
14417 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14418 | { | |
14419 | if (temp2) | |
14420 | delete arg2; | |
14421 | } | |
14422 | return resultobj; | |
14423 | fail: | |
14424 | { | |
14425 | if (temp2) | |
14426 | delete arg2; | |
14427 | } | |
14428 | return NULL; | |
14429 | } | |
14430 | ||
14431 | ||
14432 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14433 | PyObject *resultobj; | |
14434 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14435 | wxString *arg2 = 0 ; | |
14436 | bool result; | |
14437 | bool temp2 = False ; | |
14438 | PyObject * obj0 = 0 ; | |
14439 | PyObject * obj1 = 0 ; | |
14440 | char *kwnames[] = { | |
14441 | (char *) "self",(char *) "strName", NULL | |
14442 | }; | |
14443 | ||
14444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
14445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14446 | { | |
14447 | arg2 = wxString_in_helper(obj1); | |
14448 | if (arg2 == NULL) SWIG_fail; | |
14449 | temp2 = True; | |
14450 | } | |
14451 | { | |
14452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14453 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
14454 | ||
14455 | wxPyEndAllowThreads(__tstate); | |
14456 | if (PyErr_Occurred()) SWIG_fail; | |
14457 | } | |
14458 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14459 | { | |
14460 | if (temp2) | |
14461 | delete arg2; | |
14462 | } | |
14463 | return resultobj; | |
14464 | fail: | |
14465 | { | |
14466 | if (temp2) | |
14467 | delete arg2; | |
14468 | } | |
14469 | return NULL; | |
14470 | } | |
14471 | ||
14472 | ||
14473 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14474 | PyObject *resultobj; | |
14475 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14476 | wxString *arg2 = 0 ; | |
14477 | bool result; | |
14478 | bool temp2 = False ; | |
14479 | PyObject * obj0 = 0 ; | |
14480 | PyObject * obj1 = 0 ; | |
14481 | char *kwnames[] = { | |
14482 | (char *) "self",(char *) "strName", NULL | |
14483 | }; | |
14484 | ||
14485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
14486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14487 | { | |
14488 | arg2 = wxString_in_helper(obj1); | |
14489 | if (arg2 == NULL) SWIG_fail; | |
14490 | temp2 = True; | |
14491 | } | |
14492 | { | |
14493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14494 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
14495 | ||
14496 | wxPyEndAllowThreads(__tstate); | |
14497 | if (PyErr_Occurred()) SWIG_fail; | |
14498 | } | |
14499 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14500 | { | |
14501 | if (temp2) | |
14502 | delete arg2; | |
14503 | } | |
14504 | return resultobj; | |
14505 | fail: | |
14506 | { | |
14507 | if (temp2) | |
14508 | delete arg2; | |
14509 | } | |
14510 | return NULL; | |
14511 | } | |
14512 | ||
14513 | ||
14514 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14515 | PyObject *resultobj; | |
14516 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14517 | wxString *arg2 = 0 ; | |
14518 | int result; | |
14519 | bool temp2 = False ; | |
14520 | PyObject * obj0 = 0 ; | |
14521 | PyObject * obj1 = 0 ; | |
14522 | char *kwnames[] = { | |
14523 | (char *) "self",(char *) "name", NULL | |
14524 | }; | |
14525 | ||
14526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
14527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14528 | { | |
14529 | arg2 = wxString_in_helper(obj1); | |
14530 | if (arg2 == NULL) SWIG_fail; | |
14531 | temp2 = True; | |
14532 | } | |
14533 | { | |
14534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14535 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
14536 | ||
14537 | wxPyEndAllowThreads(__tstate); | |
14538 | if (PyErr_Occurred()) SWIG_fail; | |
14539 | } | |
14540 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14541 | { | |
14542 | if (temp2) | |
14543 | delete arg2; | |
14544 | } | |
14545 | return resultobj; | |
14546 | fail: | |
14547 | { | |
14548 | if (temp2) | |
14549 | delete arg2; | |
14550 | } | |
14551 | return NULL; | |
14552 | } | |
14553 | ||
14554 | ||
14555 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14556 | PyObject *resultobj; | |
14557 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14558 | wxString *arg2 = 0 ; | |
14559 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14560 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14561 | wxString result; | |
14562 | bool temp2 = False ; | |
14563 | bool temp3 = False ; | |
14564 | PyObject * obj0 = 0 ; | |
14565 | PyObject * obj1 = 0 ; | |
14566 | PyObject * obj2 = 0 ; | |
14567 | char *kwnames[] = { | |
14568 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14569 | }; | |
14570 | ||
14571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14573 | { | |
14574 | arg2 = wxString_in_helper(obj1); | |
14575 | if (arg2 == NULL) SWIG_fail; | |
14576 | temp2 = True; | |
14577 | } | |
14578 | if (obj2) { | |
14579 | { | |
14580 | arg3 = wxString_in_helper(obj2); | |
14581 | if (arg3 == NULL) SWIG_fail; | |
14582 | temp3 = True; | |
14583 | } | |
14584 | } | |
14585 | { | |
14586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14587 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
14588 | ||
14589 | wxPyEndAllowThreads(__tstate); | |
14590 | if (PyErr_Occurred()) SWIG_fail; | |
14591 | } | |
14592 | { | |
14593 | #if wxUSE_UNICODE | |
14594 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14595 | #else | |
14596 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14597 | #endif | |
14598 | } | |
14599 | { | |
14600 | if (temp2) | |
14601 | delete arg2; | |
14602 | } | |
14603 | { | |
14604 | if (temp3) | |
14605 | delete arg3; | |
14606 | } | |
14607 | return resultobj; | |
14608 | fail: | |
14609 | { | |
14610 | if (temp2) | |
14611 | delete arg2; | |
14612 | } | |
14613 | { | |
14614 | if (temp3) | |
14615 | delete arg3; | |
14616 | } | |
14617 | return NULL; | |
14618 | } | |
14619 | ||
14620 | ||
14621 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14622 | PyObject *resultobj; | |
14623 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14624 | wxString *arg2 = 0 ; | |
14625 | long arg3 = (long) 0 ; | |
14626 | long result; | |
14627 | bool temp2 = False ; | |
14628 | PyObject * obj0 = 0 ; | |
14629 | PyObject * obj1 = 0 ; | |
14630 | PyObject * obj2 = 0 ; | |
14631 | char *kwnames[] = { | |
14632 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14633 | }; | |
14634 | ||
14635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14637 | { | |
14638 | arg2 = wxString_in_helper(obj1); | |
14639 | if (arg2 == NULL) SWIG_fail; | |
14640 | temp2 = True; | |
14641 | } | |
14642 | if (obj2) { | |
14643 | { | |
14644 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
14645 | if (PyErr_Occurred()) SWIG_fail; | |
14646 | } | |
14647 | } | |
14648 | { | |
14649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14650 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
14651 | ||
14652 | wxPyEndAllowThreads(__tstate); | |
14653 | if (PyErr_Occurred()) SWIG_fail; | |
14654 | } | |
14655 | resultobj = SWIG_PyObj_FromLong((long)result); | |
14656 | { | |
14657 | if (temp2) | |
14658 | delete arg2; | |
14659 | } | |
14660 | return resultobj; | |
14661 | fail: | |
14662 | { | |
14663 | if (temp2) | |
14664 | delete arg2; | |
14665 | } | |
14666 | return NULL; | |
14667 | } | |
14668 | ||
14669 | ||
14670 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14671 | PyObject *resultobj; | |
14672 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14673 | wxString *arg2 = 0 ; | |
14674 | double arg3 = (double) 0.0 ; | |
14675 | double result; | |
14676 | bool temp2 = False ; | |
14677 | PyObject * obj0 = 0 ; | |
14678 | PyObject * obj1 = 0 ; | |
14679 | PyObject * obj2 = 0 ; | |
14680 | char *kwnames[] = { | |
14681 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14682 | }; | |
14683 | ||
14684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14686 | { | |
14687 | arg2 = wxString_in_helper(obj1); | |
14688 | if (arg2 == NULL) SWIG_fail; | |
14689 | temp2 = True; | |
14690 | } | |
14691 | if (obj2) { | |
14692 | { | |
14693 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
14695 | } | |
14696 | } | |
14697 | { | |
14698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14699 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
14700 | ||
14701 | wxPyEndAllowThreads(__tstate); | |
14702 | if (PyErr_Occurred()) SWIG_fail; | |
14703 | } | |
14704 | resultobj = SWIG_PyObj_FromDouble((double)result); | |
14705 | { | |
14706 | if (temp2) | |
14707 | delete arg2; | |
14708 | } | |
14709 | return resultobj; | |
14710 | fail: | |
14711 | { | |
14712 | if (temp2) | |
14713 | delete arg2; | |
14714 | } | |
14715 | return NULL; | |
14716 | } | |
14717 | ||
14718 | ||
14719 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14720 | PyObject *resultobj; | |
14721 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14722 | wxString *arg2 = 0 ; | |
14723 | bool arg3 = (bool) False ; | |
14724 | bool result; | |
14725 | bool temp2 = False ; | |
14726 | PyObject * obj0 = 0 ; | |
14727 | PyObject * obj1 = 0 ; | |
14728 | PyObject * obj2 = 0 ; | |
14729 | char *kwnames[] = { | |
14730 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14731 | }; | |
14732 | ||
14733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14735 | { | |
14736 | arg2 = wxString_in_helper(obj1); | |
14737 | if (arg2 == NULL) SWIG_fail; | |
14738 | temp2 = True; | |
14739 | } | |
14740 | if (obj2) { | |
14741 | { | |
14742 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
14743 | if (PyErr_Occurred()) SWIG_fail; | |
14744 | } | |
14745 | } | |
14746 | { | |
14747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14748 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
14749 | ||
14750 | wxPyEndAllowThreads(__tstate); | |
14751 | if (PyErr_Occurred()) SWIG_fail; | |
14752 | } | |
14753 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14754 | { | |
14755 | if (temp2) | |
14756 | delete arg2; | |
14757 | } | |
14758 | return resultobj; | |
14759 | fail: | |
14760 | { | |
14761 | if (temp2) | |
14762 | delete arg2; | |
14763 | } | |
14764 | return NULL; | |
14765 | } | |
14766 | ||
14767 | ||
14768 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14769 | PyObject *resultobj; | |
14770 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14771 | wxString *arg2 = 0 ; | |
14772 | wxString *arg3 = 0 ; | |
14773 | bool result; | |
14774 | bool temp2 = False ; | |
14775 | bool temp3 = False ; | |
14776 | PyObject * obj0 = 0 ; | |
14777 | PyObject * obj1 = 0 ; | |
14778 | PyObject * obj2 = 0 ; | |
14779 | char *kwnames[] = { | |
14780 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14781 | }; | |
14782 | ||
14783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14785 | { | |
14786 | arg2 = wxString_in_helper(obj1); | |
14787 | if (arg2 == NULL) SWIG_fail; | |
14788 | temp2 = True; | |
14789 | } | |
14790 | { | |
14791 | arg3 = wxString_in_helper(obj2); | |
14792 | if (arg3 == NULL) SWIG_fail; | |
14793 | temp3 = True; | |
14794 | } | |
14795 | { | |
14796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14797 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
14798 | ||
14799 | wxPyEndAllowThreads(__tstate); | |
14800 | if (PyErr_Occurred()) SWIG_fail; | |
14801 | } | |
14802 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14803 | { | |
14804 | if (temp2) | |
14805 | delete arg2; | |
14806 | } | |
14807 | { | |
14808 | if (temp3) | |
14809 | delete arg3; | |
14810 | } | |
14811 | return resultobj; | |
14812 | fail: | |
14813 | { | |
14814 | if (temp2) | |
14815 | delete arg2; | |
14816 | } | |
14817 | { | |
14818 | if (temp3) | |
14819 | delete arg3; | |
14820 | } | |
14821 | return NULL; | |
14822 | } | |
14823 | ||
14824 | ||
14825 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14826 | PyObject *resultobj; | |
14827 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14828 | wxString *arg2 = 0 ; | |
14829 | long arg3 ; | |
14830 | bool result; | |
14831 | bool temp2 = False ; | |
14832 | PyObject * obj0 = 0 ; | |
14833 | PyObject * obj1 = 0 ; | |
14834 | PyObject * obj2 = 0 ; | |
14835 | char *kwnames[] = { | |
14836 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14837 | }; | |
14838 | ||
14839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14841 | { | |
14842 | arg2 = wxString_in_helper(obj1); | |
14843 | if (arg2 == NULL) SWIG_fail; | |
14844 | temp2 = True; | |
14845 | } | |
14846 | { | |
14847 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
14848 | if (PyErr_Occurred()) SWIG_fail; | |
14849 | } | |
14850 | { | |
14851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14852 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14853 | ||
14854 | wxPyEndAllowThreads(__tstate); | |
14855 | if (PyErr_Occurred()) SWIG_fail; | |
14856 | } | |
14857 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14858 | { | |
14859 | if (temp2) | |
14860 | delete arg2; | |
14861 | } | |
14862 | return resultobj; | |
14863 | fail: | |
14864 | { | |
14865 | if (temp2) | |
14866 | delete arg2; | |
14867 | } | |
14868 | return NULL; | |
14869 | } | |
14870 | ||
14871 | ||
14872 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14873 | PyObject *resultobj; | |
14874 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14875 | wxString *arg2 = 0 ; | |
14876 | double arg3 ; | |
14877 | bool result; | |
14878 | bool temp2 = False ; | |
14879 | PyObject * obj0 = 0 ; | |
14880 | PyObject * obj1 = 0 ; | |
14881 | PyObject * obj2 = 0 ; | |
14882 | char *kwnames[] = { | |
14883 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14884 | }; | |
14885 | ||
14886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14888 | { | |
14889 | arg2 = wxString_in_helper(obj1); | |
14890 | if (arg2 == NULL) SWIG_fail; | |
14891 | temp2 = True; | |
14892 | } | |
14893 | { | |
14894 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
14895 | if (PyErr_Occurred()) SWIG_fail; | |
14896 | } | |
14897 | { | |
14898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14899 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14900 | ||
14901 | wxPyEndAllowThreads(__tstate); | |
14902 | if (PyErr_Occurred()) SWIG_fail; | |
14903 | } | |
14904 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14905 | { | |
14906 | if (temp2) | |
14907 | delete arg2; | |
14908 | } | |
14909 | return resultobj; | |
14910 | fail: | |
14911 | { | |
14912 | if (temp2) | |
14913 | delete arg2; | |
14914 | } | |
14915 | return NULL; | |
14916 | } | |
14917 | ||
14918 | ||
14919 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14920 | PyObject *resultobj; | |
14921 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14922 | wxString *arg2 = 0 ; | |
14923 | bool arg3 ; | |
14924 | bool result; | |
14925 | bool temp2 = False ; | |
14926 | PyObject * obj0 = 0 ; | |
14927 | PyObject * obj1 = 0 ; | |
14928 | PyObject * obj2 = 0 ; | |
14929 | char *kwnames[] = { | |
14930 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14931 | }; | |
14932 | ||
14933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14935 | { | |
14936 | arg2 = wxString_in_helper(obj1); | |
14937 | if (arg2 == NULL) SWIG_fail; | |
14938 | temp2 = True; | |
14939 | } | |
14940 | { | |
14941 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
14942 | if (PyErr_Occurred()) SWIG_fail; | |
14943 | } | |
14944 | { | |
14945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14946 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14947 | ||
14948 | wxPyEndAllowThreads(__tstate); | |
14949 | if (PyErr_Occurred()) SWIG_fail; | |
14950 | } | |
14951 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14952 | { | |
14953 | if (temp2) | |
14954 | delete arg2; | |
14955 | } | |
14956 | return resultobj; | |
14957 | fail: | |
14958 | { | |
14959 | if (temp2) | |
14960 | delete arg2; | |
14961 | } | |
14962 | return NULL; | |
14963 | } | |
14964 | ||
14965 | ||
14966 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14967 | PyObject *resultobj; | |
14968 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14969 | bool arg2 = (bool) False ; | |
14970 | bool result; | |
14971 | PyObject * obj0 = 0 ; | |
14972 | PyObject * obj1 = 0 ; | |
14973 | char *kwnames[] = { | |
14974 | (char *) "self",(char *) "bCurrentOnly", NULL | |
14975 | }; | |
14976 | ||
14977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
14978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14979 | if (obj1) { | |
14980 | { | |
14981 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | } | |
14984 | } | |
14985 | { | |
14986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14987 | result = (bool)(arg1)->Flush(arg2); | |
14988 | ||
14989 | wxPyEndAllowThreads(__tstate); | |
14990 | if (PyErr_Occurred()) SWIG_fail; | |
14991 | } | |
14992 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14993 | return resultobj; | |
14994 | fail: | |
14995 | return NULL; | |
14996 | } | |
14997 | ||
14998 | ||
14999 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15000 | PyObject *resultobj; | |
15001 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15002 | wxString *arg2 = 0 ; | |
15003 | wxString *arg3 = 0 ; | |
15004 | bool result; | |
15005 | bool temp2 = False ; | |
15006 | bool temp3 = False ; | |
15007 | PyObject * obj0 = 0 ; | |
15008 | PyObject * obj1 = 0 ; | |
15009 | PyObject * obj2 = 0 ; | |
15010 | char *kwnames[] = { | |
15011 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15012 | }; | |
15013 | ||
15014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15016 | { | |
15017 | arg2 = wxString_in_helper(obj1); | |
15018 | if (arg2 == NULL) SWIG_fail; | |
15019 | temp2 = True; | |
15020 | } | |
15021 | { | |
15022 | arg3 = wxString_in_helper(obj2); | |
15023 | if (arg3 == NULL) SWIG_fail; | |
15024 | temp3 = True; | |
15025 | } | |
15026 | { | |
15027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15028 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15029 | ||
15030 | wxPyEndAllowThreads(__tstate); | |
15031 | if (PyErr_Occurred()) SWIG_fail; | |
15032 | } | |
15033 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15034 | { | |
15035 | if (temp2) | |
15036 | delete arg2; | |
15037 | } | |
15038 | { | |
15039 | if (temp3) | |
15040 | delete arg3; | |
15041 | } | |
15042 | return resultobj; | |
15043 | fail: | |
15044 | { | |
15045 | if (temp2) | |
15046 | delete arg2; | |
15047 | } | |
15048 | { | |
15049 | if (temp3) | |
15050 | delete arg3; | |
15051 | } | |
15052 | return NULL; | |
15053 | } | |
15054 | ||
15055 | ||
15056 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15057 | PyObject *resultobj; | |
15058 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15059 | wxString *arg2 = 0 ; | |
15060 | wxString *arg3 = 0 ; | |
15061 | bool result; | |
15062 | bool temp2 = False ; | |
15063 | bool temp3 = False ; | |
15064 | PyObject * obj0 = 0 ; | |
15065 | PyObject * obj1 = 0 ; | |
15066 | PyObject * obj2 = 0 ; | |
15067 | char *kwnames[] = { | |
15068 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15069 | }; | |
15070 | ||
15071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15073 | { | |
15074 | arg2 = wxString_in_helper(obj1); | |
15075 | if (arg2 == NULL) SWIG_fail; | |
15076 | temp2 = True; | |
15077 | } | |
15078 | { | |
15079 | arg3 = wxString_in_helper(obj2); | |
15080 | if (arg3 == NULL) SWIG_fail; | |
15081 | temp3 = True; | |
15082 | } | |
15083 | { | |
15084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15085 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15086 | ||
15087 | wxPyEndAllowThreads(__tstate); | |
15088 | if (PyErr_Occurred()) SWIG_fail; | |
15089 | } | |
15090 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15091 | { | |
15092 | if (temp2) | |
15093 | delete arg2; | |
15094 | } | |
15095 | { | |
15096 | if (temp3) | |
15097 | delete arg3; | |
15098 | } | |
15099 | return resultobj; | |
15100 | fail: | |
15101 | { | |
15102 | if (temp2) | |
15103 | delete arg2; | |
15104 | } | |
15105 | { | |
15106 | if (temp3) | |
15107 | delete arg3; | |
15108 | } | |
15109 | return NULL; | |
15110 | } | |
15111 | ||
15112 | ||
15113 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15114 | PyObject *resultobj; | |
15115 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15116 | wxString *arg2 = 0 ; | |
15117 | bool arg3 = (bool) True ; | |
15118 | bool result; | |
15119 | bool temp2 = False ; | |
15120 | PyObject * obj0 = 0 ; | |
15121 | PyObject * obj1 = 0 ; | |
15122 | PyObject * obj2 = 0 ; | |
15123 | char *kwnames[] = { | |
15124 | (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL | |
15125 | }; | |
15126 | ||
15127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15129 | { | |
15130 | arg2 = wxString_in_helper(obj1); | |
15131 | if (arg2 == NULL) SWIG_fail; | |
15132 | temp2 = True; | |
15133 | } | |
15134 | if (obj2) { | |
15135 | { | |
15136 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
15137 | if (PyErr_Occurred()) SWIG_fail; | |
15138 | } | |
15139 | } | |
15140 | { | |
15141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15142 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15143 | ||
15144 | wxPyEndAllowThreads(__tstate); | |
15145 | if (PyErr_Occurred()) SWIG_fail; | |
15146 | } | |
15147 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15148 | { | |
15149 | if (temp2) | |
15150 | delete arg2; | |
15151 | } | |
15152 | return resultobj; | |
15153 | fail: | |
15154 | { | |
15155 | if (temp2) | |
15156 | delete arg2; | |
15157 | } | |
15158 | return NULL; | |
15159 | } | |
15160 | ||
15161 | ||
15162 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15163 | PyObject *resultobj; | |
15164 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15165 | wxString *arg2 = 0 ; | |
15166 | bool result; | |
15167 | bool temp2 = False ; | |
15168 | PyObject * obj0 = 0 ; | |
15169 | PyObject * obj1 = 0 ; | |
15170 | char *kwnames[] = { | |
15171 | (char *) "self",(char *) "key", NULL | |
15172 | }; | |
15173 | ||
15174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15176 | { | |
15177 | arg2 = wxString_in_helper(obj1); | |
15178 | if (arg2 == NULL) SWIG_fail; | |
15179 | temp2 = True; | |
15180 | } | |
15181 | { | |
15182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15183 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15184 | ||
15185 | wxPyEndAllowThreads(__tstate); | |
15186 | if (PyErr_Occurred()) SWIG_fail; | |
15187 | } | |
15188 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15189 | { | |
15190 | if (temp2) | |
15191 | delete arg2; | |
15192 | } | |
15193 | return resultobj; | |
15194 | fail: | |
15195 | { | |
15196 | if (temp2) | |
15197 | delete arg2; | |
15198 | } | |
15199 | return NULL; | |
15200 | } | |
15201 | ||
15202 | ||
15203 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15204 | PyObject *resultobj; | |
15205 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15206 | bool result; | |
15207 | PyObject * obj0 = 0 ; | |
15208 | char *kwnames[] = { | |
15209 | (char *) "self", NULL | |
15210 | }; | |
15211 | ||
15212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15214 | { | |
15215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15216 | result = (bool)(arg1)->DeleteAll(); | |
15217 | ||
15218 | wxPyEndAllowThreads(__tstate); | |
15219 | if (PyErr_Occurred()) SWIG_fail; | |
15220 | } | |
15221 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15222 | return resultobj; | |
15223 | fail: | |
15224 | return NULL; | |
15225 | } | |
15226 | ||
15227 | ||
15228 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15229 | PyObject *resultobj; | |
15230 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15231 | bool result; | |
15232 | PyObject * obj0 = 0 ; | |
15233 | char *kwnames[] = { | |
15234 | (char *) "self", NULL | |
15235 | }; | |
15236 | ||
15237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
15238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15239 | { | |
15240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15241 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
15242 | ||
15243 | wxPyEndAllowThreads(__tstate); | |
15244 | if (PyErr_Occurred()) SWIG_fail; | |
15245 | } | |
15246 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15247 | return resultobj; | |
15248 | fail: | |
15249 | return NULL; | |
15250 | } | |
15251 | ||
15252 | ||
15253 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15254 | PyObject *resultobj; | |
15255 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15256 | bool arg2 = (bool) True ; | |
15257 | PyObject * obj0 = 0 ; | |
15258 | PyObject * obj1 = 0 ; | |
15259 | char *kwnames[] = { | |
15260 | (char *) "self",(char *) "bDoIt", NULL | |
15261 | }; | |
15262 | ||
15263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15265 | if (obj1) { | |
15266 | { | |
15267 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
15268 | if (PyErr_Occurred()) SWIG_fail; | |
15269 | } | |
15270 | } | |
15271 | { | |
15272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15273 | (arg1)->SetExpandEnvVars(arg2); | |
15274 | ||
15275 | wxPyEndAllowThreads(__tstate); | |
15276 | if (PyErr_Occurred()) SWIG_fail; | |
15277 | } | |
15278 | Py_INCREF(Py_None); resultobj = Py_None; | |
15279 | return resultobj; | |
15280 | fail: | |
15281 | return NULL; | |
15282 | } | |
15283 | ||
15284 | ||
15285 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15286 | PyObject *resultobj; | |
15287 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15288 | bool arg2 = (bool) True ; | |
15289 | PyObject * obj0 = 0 ; | |
15290 | PyObject * obj1 = 0 ; | |
15291 | char *kwnames[] = { | |
15292 | (char *) "self",(char *) "bDoIt", NULL | |
15293 | }; | |
15294 | ||
15295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15297 | if (obj1) { | |
15298 | { | |
15299 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
15300 | if (PyErr_Occurred()) SWIG_fail; | |
15301 | } | |
15302 | } | |
15303 | { | |
15304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15305 | (arg1)->SetRecordDefaults(arg2); | |
15306 | ||
15307 | wxPyEndAllowThreads(__tstate); | |
15308 | if (PyErr_Occurred()) SWIG_fail; | |
15309 | } | |
15310 | Py_INCREF(Py_None); resultobj = Py_None; | |
15311 | return resultobj; | |
15312 | fail: | |
15313 | return NULL; | |
15314 | } | |
15315 | ||
15316 | ||
15317 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15318 | PyObject *resultobj; | |
15319 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15320 | bool result; | |
15321 | PyObject * obj0 = 0 ; | |
15322 | char *kwnames[] = { | |
15323 | (char *) "self", NULL | |
15324 | }; | |
15325 | ||
15326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15328 | { | |
15329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15330 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15331 | ||
15332 | wxPyEndAllowThreads(__tstate); | |
15333 | if (PyErr_Occurred()) SWIG_fail; | |
15334 | } | |
15335 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15336 | return resultobj; | |
15337 | fail: | |
15338 | return NULL; | |
15339 | } | |
15340 | ||
15341 | ||
15342 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15343 | PyObject *resultobj; | |
15344 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15345 | wxString *arg2 = 0 ; | |
15346 | wxString result; | |
15347 | bool temp2 = False ; | |
15348 | PyObject * obj0 = 0 ; | |
15349 | PyObject * obj1 = 0 ; | |
15350 | char *kwnames[] = { | |
15351 | (char *) "self",(char *) "str", NULL | |
15352 | }; | |
15353 | ||
15354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15356 | { | |
15357 | arg2 = wxString_in_helper(obj1); | |
15358 | if (arg2 == NULL) SWIG_fail; | |
15359 | temp2 = True; | |
15360 | } | |
15361 | { | |
15362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15363 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15364 | ||
15365 | wxPyEndAllowThreads(__tstate); | |
15366 | if (PyErr_Occurred()) SWIG_fail; | |
15367 | } | |
15368 | { | |
15369 | #if wxUSE_UNICODE | |
15370 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15371 | #else | |
15372 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15373 | #endif | |
15374 | } | |
15375 | { | |
15376 | if (temp2) | |
15377 | delete arg2; | |
15378 | } | |
15379 | return resultobj; | |
15380 | fail: | |
15381 | { | |
15382 | if (temp2) | |
15383 | delete arg2; | |
15384 | } | |
15385 | return NULL; | |
15386 | } | |
15387 | ||
15388 | ||
15389 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15390 | PyObject *resultobj; | |
15391 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15392 | wxString result; | |
15393 | PyObject * obj0 = 0 ; | |
15394 | char *kwnames[] = { | |
15395 | (char *) "self", NULL | |
15396 | }; | |
15397 | ||
15398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15400 | { | |
15401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15402 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
15403 | ||
15404 | wxPyEndAllowThreads(__tstate); | |
15405 | if (PyErr_Occurred()) SWIG_fail; | |
15406 | } | |
15407 | { | |
15408 | #if wxUSE_UNICODE | |
15409 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15410 | #else | |
15411 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15412 | #endif | |
15413 | } | |
15414 | return resultobj; | |
15415 | fail: | |
15416 | return NULL; | |
15417 | } | |
15418 | ||
15419 | ||
15420 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15421 | PyObject *resultobj; | |
15422 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15423 | wxString result; | |
15424 | PyObject * obj0 = 0 ; | |
15425 | char *kwnames[] = { | |
15426 | (char *) "self", NULL | |
15427 | }; | |
15428 | ||
15429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15431 | { | |
15432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15433 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
15434 | ||
15435 | wxPyEndAllowThreads(__tstate); | |
15436 | if (PyErr_Occurred()) SWIG_fail; | |
15437 | } | |
15438 | { | |
15439 | #if wxUSE_UNICODE | |
15440 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15441 | #else | |
15442 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15443 | #endif | |
15444 | } | |
15445 | return resultobj; | |
15446 | fail: | |
15447 | return NULL; | |
15448 | } | |
15449 | ||
15450 | ||
15451 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15452 | PyObject *resultobj; | |
15453 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15454 | wxString *arg2 = 0 ; | |
15455 | bool temp2 = False ; | |
15456 | PyObject * obj0 = 0 ; | |
15457 | PyObject * obj1 = 0 ; | |
15458 | char *kwnames[] = { | |
15459 | (char *) "self",(char *) "appName", NULL | |
15460 | }; | |
15461 | ||
15462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15464 | { | |
15465 | arg2 = wxString_in_helper(obj1); | |
15466 | if (arg2 == NULL) SWIG_fail; | |
15467 | temp2 = True; | |
15468 | } | |
15469 | { | |
15470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15471 | (arg1)->SetAppName((wxString const &)*arg2); | |
15472 | ||
15473 | wxPyEndAllowThreads(__tstate); | |
15474 | if (PyErr_Occurred()) SWIG_fail; | |
15475 | } | |
15476 | Py_INCREF(Py_None); resultobj = Py_None; | |
15477 | { | |
15478 | if (temp2) | |
15479 | delete arg2; | |
15480 | } | |
15481 | return resultobj; | |
15482 | fail: | |
15483 | { | |
15484 | if (temp2) | |
15485 | delete arg2; | |
15486 | } | |
15487 | return NULL; | |
15488 | } | |
15489 | ||
15490 | ||
15491 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15492 | PyObject *resultobj; | |
15493 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15494 | wxString *arg2 = 0 ; | |
15495 | bool temp2 = False ; | |
15496 | PyObject * obj0 = 0 ; | |
15497 | PyObject * obj1 = 0 ; | |
15498 | char *kwnames[] = { | |
15499 | (char *) "self",(char *) "vendorName", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15504 | { | |
15505 | arg2 = wxString_in_helper(obj1); | |
15506 | if (arg2 == NULL) SWIG_fail; | |
15507 | temp2 = True; | |
15508 | } | |
15509 | { | |
15510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15511 | (arg1)->SetVendorName((wxString const &)*arg2); | |
15512 | ||
15513 | wxPyEndAllowThreads(__tstate); | |
15514 | if (PyErr_Occurred()) SWIG_fail; | |
15515 | } | |
15516 | Py_INCREF(Py_None); resultobj = Py_None; | |
15517 | { | |
15518 | if (temp2) | |
15519 | delete arg2; | |
15520 | } | |
15521 | return resultobj; | |
15522 | fail: | |
15523 | { | |
15524 | if (temp2) | |
15525 | delete arg2; | |
15526 | } | |
15527 | return NULL; | |
15528 | } | |
15529 | ||
15530 | ||
15531 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15532 | PyObject *resultobj; | |
15533 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15534 | long arg2 ; | |
15535 | PyObject * obj0 = 0 ; | |
15536 | PyObject * obj1 = 0 ; | |
15537 | char *kwnames[] = { | |
15538 | (char *) "self",(char *) "style", NULL | |
15539 | }; | |
15540 | ||
15541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
15542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15543 | { | |
15544 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
15545 | if (PyErr_Occurred()) SWIG_fail; | |
15546 | } | |
15547 | { | |
15548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15549 | (arg1)->SetStyle(arg2); | |
15550 | ||
15551 | wxPyEndAllowThreads(__tstate); | |
15552 | if (PyErr_Occurred()) SWIG_fail; | |
15553 | } | |
15554 | Py_INCREF(Py_None); resultobj = Py_None; | |
15555 | return resultobj; | |
15556 | fail: | |
15557 | return NULL; | |
15558 | } | |
15559 | ||
15560 | ||
15561 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15562 | PyObject *resultobj; | |
15563 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15564 | long result; | |
15565 | PyObject * obj0 = 0 ; | |
15566 | char *kwnames[] = { | |
15567 | (char *) "self", NULL | |
15568 | }; | |
15569 | ||
15570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15572 | { | |
15573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15574 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
15575 | ||
15576 | wxPyEndAllowThreads(__tstate); | |
15577 | if (PyErr_Occurred()) SWIG_fail; | |
15578 | } | |
15579 | resultobj = SWIG_PyObj_FromLong((long)result); | |
15580 | return resultobj; | |
15581 | fail: | |
15582 | return NULL; | |
15583 | } | |
15584 | ||
15585 | ||
15586 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
15587 | PyObject *obj; | |
15588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15589 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
15590 | Py_INCREF(obj); | |
15591 | return Py_BuildValue((char *)""); | |
15592 | } | |
15593 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15594 | PyObject *resultobj; | |
15595 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15596 | wxString *arg2 = 0 ; | |
15597 | wxConfigPathChanger *result; | |
15598 | bool temp2 = False ; | |
15599 | PyObject * obj0 = 0 ; | |
15600 | PyObject * obj1 = 0 ; | |
15601 | char *kwnames[] = { | |
15602 | (char *) "pContainer",(char *) "strEntry", NULL | |
15603 | }; | |
15604 | ||
15605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15607 | { | |
15608 | arg2 = wxString_in_helper(obj1); | |
15609 | if (arg2 == NULL) SWIG_fail; | |
15610 | temp2 = True; | |
15611 | } | |
15612 | { | |
15613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15614 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
15615 | ||
15616 | wxPyEndAllowThreads(__tstate); | |
15617 | if (PyErr_Occurred()) SWIG_fail; | |
15618 | } | |
15619 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1); | |
15620 | { | |
15621 | if (temp2) | |
15622 | delete arg2; | |
15623 | } | |
15624 | return resultobj; | |
15625 | fail: | |
15626 | { | |
15627 | if (temp2) | |
15628 | delete arg2; | |
15629 | } | |
15630 | return NULL; | |
15631 | } | |
15632 | ||
15633 | ||
15634 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15635 | PyObject *resultobj; | |
15636 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
15637 | PyObject * obj0 = 0 ; | |
15638 | char *kwnames[] = { | |
15639 | (char *) "self", NULL | |
15640 | }; | |
15641 | ||
15642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15644 | { | |
15645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15646 | delete arg1; | |
15647 | ||
15648 | wxPyEndAllowThreads(__tstate); | |
15649 | if (PyErr_Occurred()) SWIG_fail; | |
15650 | } | |
15651 | Py_INCREF(Py_None); resultobj = Py_None; | |
15652 | return resultobj; | |
15653 | fail: | |
15654 | return NULL; | |
15655 | } | |
15656 | ||
15657 | ||
15658 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15659 | PyObject *resultobj; | |
15660 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
15661 | wxString *result; | |
15662 | PyObject * obj0 = 0 ; | |
15663 | char *kwnames[] = { | |
15664 | (char *) "self", NULL | |
15665 | }; | |
15666 | ||
15667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15669 | { | |
15670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15671 | { | |
15672 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
15673 | result = (wxString *) &_result_ref; | |
15674 | } | |
15675 | ||
15676 | wxPyEndAllowThreads(__tstate); | |
15677 | if (PyErr_Occurred()) SWIG_fail; | |
15678 | } | |
15679 | { | |
15680 | #if wxUSE_UNICODE | |
15681 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15682 | #else | |
15683 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15684 | #endif | |
15685 | } | |
15686 | return resultobj; | |
15687 | fail: | |
15688 | return NULL; | |
15689 | } | |
15690 | ||
15691 | ||
15692 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
15693 | PyObject *obj; | |
15694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15695 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
15696 | Py_INCREF(obj); | |
15697 | return Py_BuildValue((char *)""); | |
15698 | } | |
15699 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15700 | PyObject *resultobj; | |
15701 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15702 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15703 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15704 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15705 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15706 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15707 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15708 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15709 | long arg5 = (long) 0 ; | |
15710 | wxConfig *result; | |
15711 | bool temp1 = False ; | |
15712 | bool temp2 = False ; | |
15713 | bool temp3 = False ; | |
15714 | bool temp4 = False ; | |
15715 | PyObject * obj0 = 0 ; | |
15716 | PyObject * obj1 = 0 ; | |
15717 | PyObject * obj2 = 0 ; | |
15718 | PyObject * obj3 = 0 ; | |
15719 | PyObject * obj4 = 0 ; | |
15720 | char *kwnames[] = { | |
15721 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
15722 | }; | |
15723 | ||
15724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15725 | if (obj0) { | |
15726 | { | |
15727 | arg1 = wxString_in_helper(obj0); | |
15728 | if (arg1 == NULL) SWIG_fail; | |
15729 | temp1 = True; | |
15730 | } | |
15731 | } | |
15732 | if (obj1) { | |
15733 | { | |
15734 | arg2 = wxString_in_helper(obj1); | |
15735 | if (arg2 == NULL) SWIG_fail; | |
15736 | temp2 = True; | |
15737 | } | |
15738 | } | |
15739 | if (obj2) { | |
15740 | { | |
15741 | arg3 = wxString_in_helper(obj2); | |
15742 | if (arg3 == NULL) SWIG_fail; | |
15743 | temp3 = True; | |
15744 | } | |
15745 | } | |
15746 | if (obj3) { | |
15747 | { | |
15748 | arg4 = wxString_in_helper(obj3); | |
15749 | if (arg4 == NULL) SWIG_fail; | |
15750 | temp4 = True; | |
15751 | } | |
15752 | } | |
15753 | if (obj4) { | |
15754 | { | |
15755 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
15756 | if (PyErr_Occurred()) SWIG_fail; | |
15757 | } | |
15758 | } | |
15759 | { | |
15760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15761 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
15762 | ||
15763 | wxPyEndAllowThreads(__tstate); | |
15764 | if (PyErr_Occurred()) SWIG_fail; | |
15765 | } | |
15766 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1); | |
15767 | { | |
15768 | if (temp1) | |
15769 | delete arg1; | |
15770 | } | |
15771 | { | |
15772 | if (temp2) | |
15773 | delete arg2; | |
15774 | } | |
15775 | { | |
15776 | if (temp3) | |
15777 | delete arg3; | |
15778 | } | |
15779 | { | |
15780 | if (temp4) | |
15781 | delete arg4; | |
15782 | } | |
15783 | return resultobj; | |
15784 | fail: | |
15785 | { | |
15786 | if (temp1) | |
15787 | delete arg1; | |
15788 | } | |
15789 | { | |
15790 | if (temp2) | |
15791 | delete arg2; | |
15792 | } | |
15793 | { | |
15794 | if (temp3) | |
15795 | delete arg3; | |
15796 | } | |
15797 | { | |
15798 | if (temp4) | |
15799 | delete arg4; | |
15800 | } | |
15801 | return NULL; | |
15802 | } | |
15803 | ||
15804 | ||
15805 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15806 | PyObject *resultobj; | |
15807 | wxConfig *arg1 = (wxConfig *) 0 ; | |
15808 | PyObject * obj0 = 0 ; | |
15809 | char *kwnames[] = { | |
15810 | (char *) "self", NULL | |
15811 | }; | |
15812 | ||
15813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15815 | { | |
15816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817 | delete arg1; | |
15818 | ||
15819 | wxPyEndAllowThreads(__tstate); | |
15820 | if (PyErr_Occurred()) SWIG_fail; | |
15821 | } | |
15822 | Py_INCREF(Py_None); resultobj = Py_None; | |
15823 | return resultobj; | |
15824 | fail: | |
15825 | return NULL; | |
15826 | } | |
15827 | ||
15828 | ||
15829 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
15830 | PyObject *obj; | |
15831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15832 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
15833 | Py_INCREF(obj); | |
15834 | return Py_BuildValue((char *)""); | |
15835 | } | |
15836 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15837 | PyObject *resultobj; | |
15838 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15839 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15840 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15841 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15842 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15843 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15844 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15845 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15846 | long arg5 = (long) 0 ; | |
15847 | wxFileConfig *result; | |
15848 | bool temp1 = False ; | |
15849 | bool temp2 = False ; | |
15850 | bool temp3 = False ; | |
15851 | bool temp4 = False ; | |
15852 | PyObject * obj0 = 0 ; | |
15853 | PyObject * obj1 = 0 ; | |
15854 | PyObject * obj2 = 0 ; | |
15855 | PyObject * obj3 = 0 ; | |
15856 | PyObject * obj4 = 0 ; | |
15857 | char *kwnames[] = { | |
15858 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
15859 | }; | |
15860 | ||
15861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15862 | if (obj0) { | |
15863 | { | |
15864 | arg1 = wxString_in_helper(obj0); | |
15865 | if (arg1 == NULL) SWIG_fail; | |
15866 | temp1 = True; | |
15867 | } | |
15868 | } | |
15869 | if (obj1) { | |
15870 | { | |
15871 | arg2 = wxString_in_helper(obj1); | |
15872 | if (arg2 == NULL) SWIG_fail; | |
15873 | temp2 = True; | |
15874 | } | |
15875 | } | |
15876 | if (obj2) { | |
15877 | { | |
15878 | arg3 = wxString_in_helper(obj2); | |
15879 | if (arg3 == NULL) SWIG_fail; | |
15880 | temp3 = True; | |
15881 | } | |
15882 | } | |
15883 | if (obj3) { | |
15884 | { | |
15885 | arg4 = wxString_in_helper(obj3); | |
15886 | if (arg4 == NULL) SWIG_fail; | |
15887 | temp4 = True; | |
15888 | } | |
15889 | } | |
15890 | if (obj4) { | |
15891 | { | |
15892 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
15893 | if (PyErr_Occurred()) SWIG_fail; | |
15894 | } | |
15895 | } | |
15896 | { | |
15897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15898 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
15899 | ||
15900 | wxPyEndAllowThreads(__tstate); | |
15901 | if (PyErr_Occurred()) SWIG_fail; | |
15902 | } | |
15903 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1); | |
15904 | { | |
15905 | if (temp1) | |
15906 | delete arg1; | |
15907 | } | |
15908 | { | |
15909 | if (temp2) | |
15910 | delete arg2; | |
15911 | } | |
15912 | { | |
15913 | if (temp3) | |
15914 | delete arg3; | |
15915 | } | |
15916 | { | |
15917 | if (temp4) | |
15918 | delete arg4; | |
15919 | } | |
15920 | return resultobj; | |
15921 | fail: | |
15922 | { | |
15923 | if (temp1) | |
15924 | delete arg1; | |
15925 | } | |
15926 | { | |
15927 | if (temp2) | |
15928 | delete arg2; | |
15929 | } | |
15930 | { | |
15931 | if (temp3) | |
15932 | delete arg3; | |
15933 | } | |
15934 | { | |
15935 | if (temp4) | |
15936 | delete arg4; | |
15937 | } | |
15938 | return NULL; | |
15939 | } | |
15940 | ||
15941 | ||
15942 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15943 | PyObject *resultobj; | |
15944 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
15945 | PyObject * obj0 = 0 ; | |
15946 | char *kwnames[] = { | |
15947 | (char *) "self", NULL | |
15948 | }; | |
15949 | ||
15950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15952 | { | |
15953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15954 | delete arg1; | |
15955 | ||
15956 | wxPyEndAllowThreads(__tstate); | |
15957 | if (PyErr_Occurred()) SWIG_fail; | |
15958 | } | |
15959 | Py_INCREF(Py_None); resultobj = Py_None; | |
15960 | return resultobj; | |
15961 | fail: | |
15962 | return NULL; | |
15963 | } | |
15964 | ||
15965 | ||
15966 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
15967 | PyObject *obj; | |
15968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15969 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
15970 | Py_INCREF(obj); | |
15971 | return Py_BuildValue((char *)""); | |
15972 | } | |
15973 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15974 | PyObject *resultobj; | |
15975 | wxString *arg1 = 0 ; | |
15976 | wxString result; | |
15977 | bool temp1 = False ; | |
15978 | PyObject * obj0 = 0 ; | |
15979 | char *kwnames[] = { | |
15980 | (char *) "sz", NULL | |
15981 | }; | |
15982 | ||
15983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
15984 | { | |
15985 | arg1 = wxString_in_helper(obj0); | |
15986 | if (arg1 == NULL) SWIG_fail; | |
15987 | temp1 = True; | |
15988 | } | |
15989 | { | |
15990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15991 | result = wxExpandEnvVars((wxString const &)*arg1); | |
15992 | ||
15993 | wxPyEndAllowThreads(__tstate); | |
15994 | if (PyErr_Occurred()) SWIG_fail; | |
15995 | } | |
15996 | { | |
15997 | #if wxUSE_UNICODE | |
15998 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15999 | #else | |
16000 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16001 | #endif | |
16002 | } | |
16003 | { | |
16004 | if (temp1) | |
16005 | delete arg1; | |
16006 | } | |
16007 | return resultobj; | |
16008 | fail: | |
16009 | { | |
16010 | if (temp1) | |
16011 | delete arg1; | |
16012 | } | |
16013 | return NULL; | |
16014 | } | |
16015 | ||
16016 | ||
16017 | static int _wrap_DateFormatStr_set(PyObject *) { | |
16018 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16019 | return 1; | |
16020 | } | |
16021 | ||
16022 | ||
16023 | static PyObject *_wrap_DateFormatStr_get() { | |
16024 | PyObject *pyobj; | |
16025 | ||
16026 | { | |
16027 | #if wxUSE_UNICODE | |
16028 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16029 | #else | |
16030 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16031 | #endif | |
16032 | } | |
16033 | return pyobj; | |
16034 | } | |
16035 | ||
16036 | ||
16037 | static int _wrap_TimeSpanFormatStr_set(PyObject *) { | |
16038 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16039 | return 1; | |
16040 | } | |
16041 | ||
16042 | ||
16043 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16044 | PyObject *pyobj; | |
16045 | ||
16046 | { | |
16047 | #if wxUSE_UNICODE | |
16048 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16049 | #else | |
16050 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16051 | #endif | |
16052 | } | |
16053 | return pyobj; | |
16054 | } | |
16055 | ||
16056 | ||
16057 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16058 | PyObject *resultobj; | |
16059 | int arg1 ; | |
16060 | PyObject * obj0 = 0 ; | |
16061 | char *kwnames[] = { | |
16062 | (char *) "country", NULL | |
16063 | }; | |
16064 | ||
16065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
16066 | { | |
16067 | arg1 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj0); | |
16068 | if (PyErr_Occurred()) SWIG_fail; | |
16069 | } | |
16070 | { | |
16071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16072 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16073 | ||
16074 | wxPyEndAllowThreads(__tstate); | |
16075 | if (PyErr_Occurred()) SWIG_fail; | |
16076 | } | |
16077 | Py_INCREF(Py_None); resultobj = Py_None; | |
16078 | return resultobj; | |
16079 | fail: | |
16080 | return NULL; | |
16081 | } | |
16082 | ||
16083 | ||
16084 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16085 | PyObject *resultobj; | |
16086 | int result; | |
16087 | char *kwnames[] = { | |
16088 | NULL | |
16089 | }; | |
16090 | ||
16091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16092 | { | |
16093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16094 | result = (int)wxDateTime::GetCountry(); | |
16095 | ||
16096 | wxPyEndAllowThreads(__tstate); | |
16097 | if (PyErr_Occurred()) SWIG_fail; | |
16098 | } | |
16099 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16100 | return resultobj; | |
16101 | fail: | |
16102 | return NULL; | |
16103 | } | |
16104 | ||
16105 | ||
16106 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16107 | PyObject *resultobj; | |
16108 | int arg1 = (int) wxDateTime::Country_Default ; | |
16109 | bool result; | |
16110 | PyObject * obj0 = 0 ; | |
16111 | char *kwnames[] = { | |
16112 | (char *) "country", NULL | |
16113 | }; | |
16114 | ||
16115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
16116 | if (obj0) { | |
16117 | { | |
16118 | arg1 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj0); | |
16119 | if (PyErr_Occurred()) SWIG_fail; | |
16120 | } | |
16121 | } | |
16122 | { | |
16123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16124 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16125 | ||
16126 | wxPyEndAllowThreads(__tstate); | |
16127 | if (PyErr_Occurred()) SWIG_fail; | |
16128 | } | |
16129 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
16130 | return resultobj; | |
16131 | fail: | |
16132 | return NULL; | |
16133 | } | |
16134 | ||
16135 | ||
16136 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16137 | PyObject *resultobj; | |
16138 | int arg1 = (int) wxDateTime::Gregorian ; | |
16139 | int result; | |
16140 | PyObject * obj0 = 0 ; | |
16141 | char *kwnames[] = { | |
16142 | (char *) "cal", NULL | |
16143 | }; | |
16144 | ||
16145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
16146 | if (obj0) { | |
16147 | { | |
16148 | arg1 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj0); | |
16149 | if (PyErr_Occurred()) SWIG_fail; | |
16150 | } | |
16151 | } | |
16152 | { | |
16153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16154 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16155 | ||
16156 | wxPyEndAllowThreads(__tstate); | |
16157 | if (PyErr_Occurred()) SWIG_fail; | |
16158 | } | |
16159 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16160 | return resultobj; | |
16161 | fail: | |
16162 | return NULL; | |
16163 | } | |
16164 | ||
16165 | ||
16166 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16167 | PyObject *resultobj; | |
16168 | int arg1 ; | |
16169 | int result; | |
16170 | PyObject * obj0 = 0 ; | |
16171 | char *kwnames[] = { | |
16172 | (char *) "year", NULL | |
16173 | }; | |
16174 | ||
16175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
16176 | { | |
16177 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16178 | if (PyErr_Occurred()) SWIG_fail; | |
16179 | } | |
16180 | { | |
16181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16182 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16183 | ||
16184 | wxPyEndAllowThreads(__tstate); | |
16185 | if (PyErr_Occurred()) SWIG_fail; | |
16186 | } | |
16187 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16188 | return resultobj; | |
16189 | fail: | |
16190 | return NULL; | |
16191 | } | |
16192 | ||
16193 | ||
16194 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16195 | PyObject *resultobj; | |
16196 | int arg1 = (int) wxDateTime::Gregorian ; | |
16197 | int result; | |
16198 | PyObject * obj0 = 0 ; | |
16199 | char *kwnames[] = { | |
16200 | (char *) "cal", NULL | |
16201 | }; | |
16202 | ||
16203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
16204 | if (obj0) { | |
16205 | { | |
16206 | arg1 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj0); | |
16207 | if (PyErr_Occurred()) SWIG_fail; | |
16208 | } | |
16209 | } | |
16210 | { | |
16211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16212 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16213 | ||
16214 | wxPyEndAllowThreads(__tstate); | |
16215 | if (PyErr_Occurred()) SWIG_fail; | |
16216 | } | |
16217 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16218 | return resultobj; | |
16219 | fail: | |
16220 | return NULL; | |
16221 | } | |
16222 | ||
16223 | ||
16224 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16225 | PyObject *resultobj; | |
16226 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16227 | int arg2 = (int) wxDateTime::Gregorian ; | |
16228 | bool result; | |
16229 | PyObject * obj0 = 0 ; | |
16230 | PyObject * obj1 = 0 ; | |
16231 | char *kwnames[] = { | |
16232 | (char *) "year",(char *) "cal", NULL | |
16233 | }; | |
16234 | ||
16235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
16236 | if (obj0) { | |
16237 | { | |
16238 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16239 | if (PyErr_Occurred()) SWIG_fail; | |
16240 | } | |
16241 | } | |
16242 | if (obj1) { | |
16243 | { | |
16244 | arg2 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj1); | |
16245 | if (PyErr_Occurred()) SWIG_fail; | |
16246 | } | |
16247 | } | |
16248 | { | |
16249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16250 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16251 | ||
16252 | wxPyEndAllowThreads(__tstate); | |
16253 | if (PyErr_Occurred()) SWIG_fail; | |
16254 | } | |
16255 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
16256 | return resultobj; | |
16257 | fail: | |
16258 | return NULL; | |
16259 | } | |
16260 | ||
16261 | ||
16262 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16263 | PyObject *resultobj; | |
16264 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16265 | int result; | |
16266 | PyObject * obj0 = 0 ; | |
16267 | char *kwnames[] = { | |
16268 | (char *) "year", NULL | |
16269 | }; | |
16270 | ||
16271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
16272 | if (obj0) { | |
16273 | { | |
16274 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16275 | if (PyErr_Occurred()) SWIG_fail; | |
16276 | } | |
16277 | } | |
16278 | { | |
16279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16280 | result = (int)wxDateTime::GetCentury(arg1); | |
16281 | ||
16282 | wxPyEndAllowThreads(__tstate); | |
16283 | if (PyErr_Occurred()) SWIG_fail; | |
16284 | } | |
16285 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16286 | return resultobj; | |
16287 | fail: | |
16288 | return NULL; | |
16289 | } | |
16290 | ||
16291 | ||
16292 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16293 | PyObject *resultobj; | |
16294 | int arg1 ; | |
16295 | int arg2 = (int) wxDateTime::Gregorian ; | |
16296 | int result; | |
16297 | PyObject * obj0 = 0 ; | |
16298 | PyObject * obj1 = 0 ; | |
16299 | char *kwnames[] = { | |
16300 | (char *) "year",(char *) "cal", NULL | |
16301 | }; | |
16302 | ||
16303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
16304 | { | |
16305 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16306 | if (PyErr_Occurred()) SWIG_fail; | |
16307 | } | |
16308 | if (obj1) { | |
16309 | { | |
16310 | arg2 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj1); | |
16311 | if (PyErr_Occurred()) SWIG_fail; | |
16312 | } | |
16313 | } | |
16314 | { | |
16315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16316 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
16317 | ||
16318 | wxPyEndAllowThreads(__tstate); | |
16319 | if (PyErr_Occurred()) SWIG_fail; | |
16320 | } | |
16321 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16322 | return resultobj; | |
16323 | fail: | |
16324 | return NULL; | |
16325 | } | |
16326 | ||
16327 | ||
16328 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16329 | PyObject *resultobj; | |
16330 | int arg1 ; | |
16331 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16332 | int arg3 = (int) wxDateTime::Gregorian ; | |
16333 | int result; | |
16334 | PyObject * obj0 = 0 ; | |
16335 | PyObject * obj1 = 0 ; | |
16336 | PyObject * obj2 = 0 ; | |
16337 | char *kwnames[] = { | |
16338 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16339 | }; | |
16340 | ||
16341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16342 | { | |
16343 | arg1 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj0); | |
16344 | if (PyErr_Occurred()) SWIG_fail; | |
16345 | } | |
16346 | if (obj1) { | |
16347 | { | |
16348 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16349 | if (PyErr_Occurred()) SWIG_fail; | |
16350 | } | |
16351 | } | |
16352 | if (obj2) { | |
16353 | { | |
16354 | arg3 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj2); | |
16355 | if (PyErr_Occurred()) SWIG_fail; | |
16356 | } | |
16357 | } | |
16358 | { | |
16359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16360 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
16361 | ||
16362 | wxPyEndAllowThreads(__tstate); | |
16363 | if (PyErr_Occurred()) SWIG_fail; | |
16364 | } | |
16365 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16366 | return resultobj; | |
16367 | fail: | |
16368 | return NULL; | |
16369 | } | |
16370 | ||
16371 | ||
16372 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16373 | PyObject *resultobj; | |
16374 | int arg1 ; | |
16375 | int arg2 = (int) wxDateTime::Name_Full ; | |
16376 | wxString result; | |
16377 | PyObject * obj0 = 0 ; | |
16378 | PyObject * obj1 = 0 ; | |
16379 | char *kwnames[] = { | |
16380 | (char *) "month",(char *) "flags", NULL | |
16381 | }; | |
16382 | ||
16383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
16384 | { | |
16385 | arg1 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj0); | |
16386 | if (PyErr_Occurred()) SWIG_fail; | |
16387 | } | |
16388 | if (obj1) { | |
16389 | { | |
16390 | arg2 = (wxDateTime::NameFlags) SWIG_PyObj_AsInt(obj1); | |
16391 | if (PyErr_Occurred()) SWIG_fail; | |
16392 | } | |
16393 | } | |
16394 | { | |
16395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16396 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
16397 | ||
16398 | wxPyEndAllowThreads(__tstate); | |
16399 | if (PyErr_Occurred()) SWIG_fail; | |
16400 | } | |
16401 | { | |
16402 | #if wxUSE_UNICODE | |
16403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16404 | #else | |
16405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16406 | #endif | |
16407 | } | |
16408 | return resultobj; | |
16409 | fail: | |
16410 | return NULL; | |
16411 | } | |
16412 | ||
16413 | ||
16414 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16415 | PyObject *resultobj; | |
16416 | int arg1 ; | |
16417 | int arg2 = (int) wxDateTime::Name_Full ; | |
16418 | wxString result; | |
16419 | PyObject * obj0 = 0 ; | |
16420 | PyObject * obj1 = 0 ; | |
16421 | char *kwnames[] = { | |
16422 | (char *) "weekday",(char *) "flags", NULL | |
16423 | }; | |
16424 | ||
16425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
16426 | { | |
16427 | arg1 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj0); | |
16428 | if (PyErr_Occurred()) SWIG_fail; | |
16429 | } | |
16430 | if (obj1) { | |
16431 | { | |
16432 | arg2 = (wxDateTime::NameFlags) SWIG_PyObj_AsInt(obj1); | |
16433 | if (PyErr_Occurred()) SWIG_fail; | |
16434 | } | |
16435 | } | |
16436 | { | |
16437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16438 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
16439 | ||
16440 | wxPyEndAllowThreads(__tstate); | |
16441 | if (PyErr_Occurred()) SWIG_fail; | |
16442 | } | |
16443 | { | |
16444 | #if wxUSE_UNICODE | |
16445 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16446 | #else | |
16447 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16448 | #endif | |
16449 | } | |
16450 | return resultobj; | |
16451 | fail: | |
16452 | return NULL; | |
16453 | } | |
16454 | ||
16455 | ||
16456 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16457 | PyObject *resultobj; | |
16458 | wxString *arg1 = (wxString *) 0 ; | |
16459 | wxString *arg2 = (wxString *) 0 ; | |
16460 | bool temp1 = False ; | |
16461 | bool temp2 = False ; | |
16462 | PyObject * obj0 = 0 ; | |
16463 | PyObject * obj1 = 0 ; | |
16464 | char *kwnames[] = { | |
16465 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
16466 | }; | |
16467 | ||
16468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
16469 | { | |
16470 | arg1 = wxString_in_helper(obj0); | |
16471 | if (arg1 == NULL) SWIG_fail; | |
16472 | temp1 = True; | |
16473 | } | |
16474 | { | |
16475 | arg2 = wxString_in_helper(obj1); | |
16476 | if (arg2 == NULL) SWIG_fail; | |
16477 | temp2 = True; | |
16478 | } | |
16479 | { | |
16480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16481 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
16482 | ||
16483 | wxPyEndAllowThreads(__tstate); | |
16484 | if (PyErr_Occurred()) SWIG_fail; | |
16485 | } | |
16486 | Py_INCREF(Py_None); resultobj = Py_None; | |
16487 | { | |
16488 | if (temp1) | |
16489 | delete arg1; | |
16490 | } | |
16491 | { | |
16492 | if (temp2) | |
16493 | delete arg2; | |
16494 | } | |
16495 | return resultobj; | |
16496 | fail: | |
16497 | { | |
16498 | if (temp1) | |
16499 | delete arg1; | |
16500 | } | |
16501 | { | |
16502 | if (temp2) | |
16503 | delete arg2; | |
16504 | } | |
16505 | return NULL; | |
16506 | } | |
16507 | ||
16508 | ||
16509 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16510 | PyObject *resultobj; | |
16511 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16512 | int arg2 = (int) wxDateTime::Country_Default ; | |
16513 | bool result; | |
16514 | PyObject * obj0 = 0 ; | |
16515 | PyObject * obj1 = 0 ; | |
16516 | char *kwnames[] = { | |
16517 | (char *) "year",(char *) "country", NULL | |
16518 | }; | |
16519 | ||
16520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
16521 | if (obj0) { | |
16522 | { | |
16523 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16524 | if (PyErr_Occurred()) SWIG_fail; | |
16525 | } | |
16526 | } | |
16527 | if (obj1) { | |
16528 | { | |
16529 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
16530 | if (PyErr_Occurred()) SWIG_fail; | |
16531 | } | |
16532 | } | |
16533 | { | |
16534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16535 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
16536 | ||
16537 | wxPyEndAllowThreads(__tstate); | |
16538 | if (PyErr_Occurred()) SWIG_fail; | |
16539 | } | |
16540 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
16541 | return resultobj; | |
16542 | fail: | |
16543 | return NULL; | |
16544 | } | |
16545 | ||
16546 | ||
16547 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16548 | PyObject *resultobj; | |
16549 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16550 | int arg2 = (int) wxDateTime::Country_Default ; | |
16551 | wxDateTime result; | |
16552 | PyObject * obj0 = 0 ; | |
16553 | PyObject * obj1 = 0 ; | |
16554 | char *kwnames[] = { | |
16555 | (char *) "year",(char *) "country", NULL | |
16556 | }; | |
16557 | ||
16558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
16559 | if (obj0) { | |
16560 | { | |
16561 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16562 | if (PyErr_Occurred()) SWIG_fail; | |
16563 | } | |
16564 | } | |
16565 | if (obj1) { | |
16566 | { | |
16567 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
16568 | if (PyErr_Occurred()) SWIG_fail; | |
16569 | } | |
16570 | } | |
16571 | { | |
16572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16573 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
16574 | ||
16575 | wxPyEndAllowThreads(__tstate); | |
16576 | if (PyErr_Occurred()) SWIG_fail; | |
16577 | } | |
16578 | { | |
16579 | wxDateTime * resultptr; | |
16580 | resultptr = new wxDateTime((wxDateTime &) result); | |
16581 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16582 | } | |
16583 | return resultobj; | |
16584 | fail: | |
16585 | return NULL; | |
16586 | } | |
16587 | ||
16588 | ||
16589 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16590 | PyObject *resultobj; | |
16591 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16592 | int arg2 = (int) wxDateTime::Country_Default ; | |
16593 | wxDateTime result; | |
16594 | PyObject * obj0 = 0 ; | |
16595 | PyObject * obj1 = 0 ; | |
16596 | char *kwnames[] = { | |
16597 | (char *) "year",(char *) "country", NULL | |
16598 | }; | |
16599 | ||
16600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
16601 | if (obj0) { | |
16602 | { | |
16603 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16604 | if (PyErr_Occurred()) SWIG_fail; | |
16605 | } | |
16606 | } | |
16607 | if (obj1) { | |
16608 | { | |
16609 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
16610 | if (PyErr_Occurred()) SWIG_fail; | |
16611 | } | |
16612 | } | |
16613 | { | |
16614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16615 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
16616 | ||
16617 | wxPyEndAllowThreads(__tstate); | |
16618 | if (PyErr_Occurred()) SWIG_fail; | |
16619 | } | |
16620 | { | |
16621 | wxDateTime * resultptr; | |
16622 | resultptr = new wxDateTime((wxDateTime &) result); | |
16623 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16624 | } | |
16625 | return resultobj; | |
16626 | fail: | |
16627 | return NULL; | |
16628 | } | |
16629 | ||
16630 | ||
16631 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16632 | PyObject *resultobj; | |
16633 | wxDateTime result; | |
16634 | char *kwnames[] = { | |
16635 | NULL | |
16636 | }; | |
16637 | ||
16638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
16639 | { | |
16640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16641 | result = wxDateTime::Now(); | |
16642 | ||
16643 | wxPyEndAllowThreads(__tstate); | |
16644 | if (PyErr_Occurred()) SWIG_fail; | |
16645 | } | |
16646 | { | |
16647 | wxDateTime * resultptr; | |
16648 | resultptr = new wxDateTime((wxDateTime &) result); | |
16649 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16650 | } | |
16651 | return resultobj; | |
16652 | fail: | |
16653 | return NULL; | |
16654 | } | |
16655 | ||
16656 | ||
16657 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16658 | PyObject *resultobj; | |
16659 | wxDateTime result; | |
16660 | char *kwnames[] = { | |
16661 | NULL | |
16662 | }; | |
16663 | ||
16664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
16665 | { | |
16666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16667 | result = wxDateTime::UNow(); | |
16668 | ||
16669 | wxPyEndAllowThreads(__tstate); | |
16670 | if (PyErr_Occurred()) SWIG_fail; | |
16671 | } | |
16672 | { | |
16673 | wxDateTime * resultptr; | |
16674 | resultptr = new wxDateTime((wxDateTime &) result); | |
16675 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16676 | } | |
16677 | return resultobj; | |
16678 | fail: | |
16679 | return NULL; | |
16680 | } | |
16681 | ||
16682 | ||
16683 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16684 | PyObject *resultobj; | |
16685 | wxDateTime result; | |
16686 | char *kwnames[] = { | |
16687 | NULL | |
16688 | }; | |
16689 | ||
16690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
16691 | { | |
16692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16693 | result = wxDateTime::Today(); | |
16694 | ||
16695 | wxPyEndAllowThreads(__tstate); | |
16696 | if (PyErr_Occurred()) SWIG_fail; | |
16697 | } | |
16698 | { | |
16699 | wxDateTime * resultptr; | |
16700 | resultptr = new wxDateTime((wxDateTime &) result); | |
16701 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16702 | } | |
16703 | return resultobj; | |
16704 | fail: | |
16705 | return NULL; | |
16706 | } | |
16707 | ||
16708 | ||
16709 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16710 | PyObject *resultobj; | |
16711 | wxDateTime *result; | |
16712 | char *kwnames[] = { | |
16713 | NULL | |
16714 | }; | |
16715 | ||
16716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
16717 | { | |
16718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16719 | result = (wxDateTime *)new wxDateTime(); | |
16720 | ||
16721 | wxPyEndAllowThreads(__tstate); | |
16722 | if (PyErr_Occurred()) SWIG_fail; | |
16723 | } | |
16724 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16725 | return resultobj; | |
16726 | fail: | |
16727 | return NULL; | |
16728 | } | |
16729 | ||
16730 | ||
16731 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16732 | PyObject *resultobj; | |
16733 | time_t arg1 ; | |
16734 | wxDateTime *result; | |
16735 | PyObject * obj0 = 0 ; | |
16736 | char *kwnames[] = { | |
16737 | (char *) "timet", NULL | |
16738 | }; | |
16739 | ||
16740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
16741 | { | |
16742 | arg1 = (time_t) SWIG_PyObj_AsUnsignedInt(obj0); | |
16743 | if (PyErr_Occurred()) SWIG_fail; | |
16744 | } | |
16745 | { | |
16746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16747 | result = (wxDateTime *)new wxDateTime(arg1); | |
16748 | ||
16749 | wxPyEndAllowThreads(__tstate); | |
16750 | if (PyErr_Occurred()) SWIG_fail; | |
16751 | } | |
16752 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16753 | return resultobj; | |
16754 | fail: | |
16755 | return NULL; | |
16756 | } | |
16757 | ||
16758 | ||
16759 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16760 | PyObject *resultobj; | |
16761 | double arg1 ; | |
16762 | wxDateTime *result; | |
16763 | PyObject * obj0 = 0 ; | |
16764 | char *kwnames[] = { | |
16765 | (char *) "jdn", NULL | |
16766 | }; | |
16767 | ||
16768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
16769 | { | |
16770 | arg1 = (double) SWIG_PyObj_AsDouble(obj0); | |
16771 | if (PyErr_Occurred()) SWIG_fail; | |
16772 | } | |
16773 | { | |
16774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16775 | result = (wxDateTime *)new wxDateTime(arg1); | |
16776 | ||
16777 | wxPyEndAllowThreads(__tstate); | |
16778 | if (PyErr_Occurred()) SWIG_fail; | |
16779 | } | |
16780 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16781 | return resultobj; | |
16782 | fail: | |
16783 | return NULL; | |
16784 | } | |
16785 | ||
16786 | ||
16787 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16788 | PyObject *resultobj; | |
16789 | int arg1 ; | |
16790 | int arg2 = (int) 0 ; | |
16791 | int arg3 = (int) 0 ; | |
16792 | int arg4 = (int) 0 ; | |
16793 | wxDateTime *result; | |
16794 | PyObject * obj0 = 0 ; | |
16795 | PyObject * obj1 = 0 ; | |
16796 | PyObject * obj2 = 0 ; | |
16797 | PyObject * obj3 = 0 ; | |
16798 | char *kwnames[] = { | |
16799 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16800 | }; | |
16801 | ||
16802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16803 | { | |
16804 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16805 | if (PyErr_Occurred()) SWIG_fail; | |
16806 | } | |
16807 | if (obj1) { | |
16808 | { | |
16809 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
16812 | } | |
16813 | if (obj2) { | |
16814 | { | |
16815 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16816 | if (PyErr_Occurred()) SWIG_fail; | |
16817 | } | |
16818 | } | |
16819 | if (obj3) { | |
16820 | { | |
16821 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16822 | if (PyErr_Occurred()) SWIG_fail; | |
16823 | } | |
16824 | } | |
16825 | { | |
16826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16827 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
16828 | ||
16829 | wxPyEndAllowThreads(__tstate); | |
16830 | if (PyErr_Occurred()) SWIG_fail; | |
16831 | } | |
16832 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16833 | return resultobj; | |
16834 | fail: | |
16835 | return NULL; | |
16836 | } | |
16837 | ||
16838 | ||
16839 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16840 | PyObject *resultobj; | |
16841 | int arg1 ; | |
16842 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16843 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16844 | int arg4 = (int) 0 ; | |
16845 | int arg5 = (int) 0 ; | |
16846 | int arg6 = (int) 0 ; | |
16847 | int arg7 = (int) 0 ; | |
16848 | wxDateTime *result; | |
16849 | PyObject * obj0 = 0 ; | |
16850 | PyObject * obj1 = 0 ; | |
16851 | PyObject * obj2 = 0 ; | |
16852 | PyObject * obj3 = 0 ; | |
16853 | PyObject * obj4 = 0 ; | |
16854 | PyObject * obj5 = 0 ; | |
16855 | PyObject * obj6 = 0 ; | |
16856 | char *kwnames[] = { | |
16857 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16858 | }; | |
16859 | ||
16860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16861 | { | |
16862 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16863 | if (PyErr_Occurred()) SWIG_fail; | |
16864 | } | |
16865 | if (obj1) { | |
16866 | { | |
16867 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
16868 | if (PyErr_Occurred()) SWIG_fail; | |
16869 | } | |
16870 | } | |
16871 | if (obj2) { | |
16872 | { | |
16873 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16874 | if (PyErr_Occurred()) SWIG_fail; | |
16875 | } | |
16876 | } | |
16877 | if (obj3) { | |
16878 | { | |
16879 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16880 | if (PyErr_Occurred()) SWIG_fail; | |
16881 | } | |
16882 | } | |
16883 | if (obj4) { | |
16884 | { | |
16885 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
16886 | if (PyErr_Occurred()) SWIG_fail; | |
16887 | } | |
16888 | } | |
16889 | if (obj5) { | |
16890 | { | |
16891 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | } | |
16895 | if (obj6) { | |
16896 | { | |
16897 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
16898 | if (PyErr_Occurred()) SWIG_fail; | |
16899 | } | |
16900 | } | |
16901 | { | |
16902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16903 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
16904 | ||
16905 | wxPyEndAllowThreads(__tstate); | |
16906 | if (PyErr_Occurred()) SWIG_fail; | |
16907 | } | |
16908 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16909 | return resultobj; | |
16910 | fail: | |
16911 | return NULL; | |
16912 | } | |
16913 | ||
16914 | ||
16915 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16916 | PyObject *resultobj; | |
16917 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16918 | PyObject * obj0 = 0 ; | |
16919 | char *kwnames[] = { | |
16920 | (char *) "self", NULL | |
16921 | }; | |
16922 | ||
16923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
16924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16925 | { | |
16926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16927 | delete arg1; | |
16928 | ||
16929 | wxPyEndAllowThreads(__tstate); | |
16930 | if (PyErr_Occurred()) SWIG_fail; | |
16931 | } | |
16932 | Py_INCREF(Py_None); resultobj = Py_None; | |
16933 | return resultobj; | |
16934 | fail: | |
16935 | return NULL; | |
16936 | } | |
16937 | ||
16938 | ||
16939 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16940 | PyObject *resultobj; | |
16941 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16942 | wxDateTime *result; | |
16943 | PyObject * obj0 = 0 ; | |
16944 | char *kwnames[] = { | |
16945 | (char *) "self", NULL | |
16946 | }; | |
16947 | ||
16948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
16949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16950 | { | |
16951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16952 | { | |
16953 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
16954 | result = (wxDateTime *) &_result_ref; | |
16955 | } | |
16956 | ||
16957 | wxPyEndAllowThreads(__tstate); | |
16958 | if (PyErr_Occurred()) SWIG_fail; | |
16959 | } | |
16960 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16961 | return resultobj; | |
16962 | fail: | |
16963 | return NULL; | |
16964 | } | |
16965 | ||
16966 | ||
16967 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16968 | PyObject *resultobj; | |
16969 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16970 | time_t arg2 ; | |
16971 | wxDateTime *result; | |
16972 | PyObject * obj0 = 0 ; | |
16973 | PyObject * obj1 = 0 ; | |
16974 | char *kwnames[] = { | |
16975 | (char *) "self",(char *) "timet", NULL | |
16976 | }; | |
16977 | ||
16978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
16979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16980 | { | |
16981 | arg2 = (time_t) SWIG_PyObj_AsUnsignedInt(obj1); | |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
16983 | } | |
16984 | { | |
16985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16986 | { | |
16987 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
16988 | result = (wxDateTime *) &_result_ref; | |
16989 | } | |
16990 | ||
16991 | wxPyEndAllowThreads(__tstate); | |
16992 | if (PyErr_Occurred()) SWIG_fail; | |
16993 | } | |
16994 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16995 | return resultobj; | |
16996 | fail: | |
16997 | return NULL; | |
16998 | } | |
16999 | ||
17000 | ||
17001 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17002 | PyObject *resultobj; | |
17003 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17004 | double arg2 ; | |
17005 | wxDateTime *result; | |
17006 | PyObject * obj0 = 0 ; | |
17007 | PyObject * obj1 = 0 ; | |
17008 | char *kwnames[] = { | |
17009 | (char *) "self",(char *) "jdn", NULL | |
17010 | }; | |
17011 | ||
17012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17014 | { | |
17015 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
17016 | if (PyErr_Occurred()) SWIG_fail; | |
17017 | } | |
17018 | { | |
17019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17020 | { | |
17021 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17022 | result = (wxDateTime *) &_result_ref; | |
17023 | } | |
17024 | ||
17025 | wxPyEndAllowThreads(__tstate); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17029 | return resultobj; | |
17030 | fail: | |
17031 | return NULL; | |
17032 | } | |
17033 | ||
17034 | ||
17035 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17036 | PyObject *resultobj; | |
17037 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17038 | int arg2 ; | |
17039 | int arg3 = (int) 0 ; | |
17040 | int arg4 = (int) 0 ; | |
17041 | int arg5 = (int) 0 ; | |
17042 | wxDateTime *result; | |
17043 | PyObject * obj0 = 0 ; | |
17044 | PyObject * obj1 = 0 ; | |
17045 | PyObject * obj2 = 0 ; | |
17046 | PyObject * obj3 = 0 ; | |
17047 | PyObject * obj4 = 0 ; | |
17048 | char *kwnames[] = { | |
17049 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17050 | }; | |
17051 | ||
17052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17054 | { | |
17055 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17056 | if (PyErr_Occurred()) SWIG_fail; | |
17057 | } | |
17058 | if (obj2) { | |
17059 | { | |
17060 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17061 | if (PyErr_Occurred()) SWIG_fail; | |
17062 | } | |
17063 | } | |
17064 | if (obj3) { | |
17065 | { | |
17066 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17067 | if (PyErr_Occurred()) SWIG_fail; | |
17068 | } | |
17069 | } | |
17070 | if (obj4) { | |
17071 | { | |
17072 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17073 | if (PyErr_Occurred()) SWIG_fail; | |
17074 | } | |
17075 | } | |
17076 | { | |
17077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17078 | { | |
17079 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17080 | result = (wxDateTime *) &_result_ref; | |
17081 | } | |
17082 | ||
17083 | wxPyEndAllowThreads(__tstate); | |
17084 | if (PyErr_Occurred()) SWIG_fail; | |
17085 | } | |
17086 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17087 | return resultobj; | |
17088 | fail: | |
17089 | return NULL; | |
17090 | } | |
17091 | ||
17092 | ||
17093 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17094 | PyObject *resultobj; | |
17095 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17096 | int arg2 ; | |
17097 | int arg3 = (int) wxDateTime::Inv_Month ; | |
17098 | int arg4 = (int) wxDateTime::Inv_Year ; | |
17099 | int arg5 = (int) 0 ; | |
17100 | int arg6 = (int) 0 ; | |
17101 | int arg7 = (int) 0 ; | |
17102 | int arg8 = (int) 0 ; | |
17103 | wxDateTime *result; | |
17104 | PyObject * obj0 = 0 ; | |
17105 | PyObject * obj1 = 0 ; | |
17106 | PyObject * obj2 = 0 ; | |
17107 | PyObject * obj3 = 0 ; | |
17108 | PyObject * obj4 = 0 ; | |
17109 | PyObject * obj5 = 0 ; | |
17110 | PyObject * obj6 = 0 ; | |
17111 | PyObject * obj7 = 0 ; | |
17112 | char *kwnames[] = { | |
17113 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17114 | }; | |
17115 | ||
17116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
17117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17118 | { | |
17119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17120 | if (PyErr_Occurred()) SWIG_fail; | |
17121 | } | |
17122 | if (obj2) { | |
17123 | { | |
17124 | arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2); | |
17125 | if (PyErr_Occurred()) SWIG_fail; | |
17126 | } | |
17127 | } | |
17128 | if (obj3) { | |
17129 | { | |
17130 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17131 | if (PyErr_Occurred()) SWIG_fail; | |
17132 | } | |
17133 | } | |
17134 | if (obj4) { | |
17135 | { | |
17136 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
17139 | } | |
17140 | if (obj5) { | |
17141 | { | |
17142 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
17143 | if (PyErr_Occurred()) SWIG_fail; | |
17144 | } | |
17145 | } | |
17146 | if (obj6) { | |
17147 | { | |
17148 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
17149 | if (PyErr_Occurred()) SWIG_fail; | |
17150 | } | |
17151 | } | |
17152 | if (obj7) { | |
17153 | { | |
17154 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
17155 | if (PyErr_Occurred()) SWIG_fail; | |
17156 | } | |
17157 | } | |
17158 | { | |
17159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17160 | { | |
17161 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17162 | result = (wxDateTime *) &_result_ref; | |
17163 | } | |
17164 | ||
17165 | wxPyEndAllowThreads(__tstate); | |
17166 | if (PyErr_Occurred()) SWIG_fail; | |
17167 | } | |
17168 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17169 | return resultobj; | |
17170 | fail: | |
17171 | return NULL; | |
17172 | } | |
17173 | ||
17174 | ||
17175 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17176 | PyObject *resultobj; | |
17177 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17178 | wxDateTime *result; | |
17179 | PyObject * obj0 = 0 ; | |
17180 | char *kwnames[] = { | |
17181 | (char *) "self", NULL | |
17182 | }; | |
17183 | ||
17184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
17185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17186 | { | |
17187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17188 | { | |
17189 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17190 | result = (wxDateTime *) &_result_ref; | |
17191 | } | |
17192 | ||
17193 | wxPyEndAllowThreads(__tstate); | |
17194 | if (PyErr_Occurred()) SWIG_fail; | |
17195 | } | |
17196 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17197 | return resultobj; | |
17198 | fail: | |
17199 | return NULL; | |
17200 | } | |
17201 | ||
17202 | ||
17203 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17204 | PyObject *resultobj; | |
17205 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17206 | int arg2 ; | |
17207 | wxDateTime *result; | |
17208 | PyObject * obj0 = 0 ; | |
17209 | PyObject * obj1 = 0 ; | |
17210 | char *kwnames[] = { | |
17211 | (char *) "self",(char *) "year", NULL | |
17212 | }; | |
17213 | ||
17214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
17215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17216 | { | |
17217 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17218 | if (PyErr_Occurred()) SWIG_fail; | |
17219 | } | |
17220 | { | |
17221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17222 | { | |
17223 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17224 | result = (wxDateTime *) &_result_ref; | |
17225 | } | |
17226 | ||
17227 | wxPyEndAllowThreads(__tstate); | |
17228 | if (PyErr_Occurred()) SWIG_fail; | |
17229 | } | |
17230 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17231 | return resultobj; | |
17232 | fail: | |
17233 | return NULL; | |
17234 | } | |
17235 | ||
17236 | ||
17237 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17238 | PyObject *resultobj; | |
17239 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17240 | int arg2 ; | |
17241 | wxDateTime *result; | |
17242 | PyObject * obj0 = 0 ; | |
17243 | PyObject * obj1 = 0 ; | |
17244 | char *kwnames[] = { | |
17245 | (char *) "self",(char *) "month", NULL | |
17246 | }; | |
17247 | ||
17248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17250 | { | |
17251 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
17252 | if (PyErr_Occurred()) SWIG_fail; | |
17253 | } | |
17254 | { | |
17255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17256 | { | |
17257 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17258 | result = (wxDateTime *) &_result_ref; | |
17259 | } | |
17260 | ||
17261 | wxPyEndAllowThreads(__tstate); | |
17262 | if (PyErr_Occurred()) SWIG_fail; | |
17263 | } | |
17264 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17265 | return resultobj; | |
17266 | fail: | |
17267 | return NULL; | |
17268 | } | |
17269 | ||
17270 | ||
17271 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17272 | PyObject *resultobj; | |
17273 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17274 | int arg2 ; | |
17275 | wxDateTime *result; | |
17276 | PyObject * obj0 = 0 ; | |
17277 | PyObject * obj1 = 0 ; | |
17278 | char *kwnames[] = { | |
17279 | (char *) "self",(char *) "day", NULL | |
17280 | }; | |
17281 | ||
17282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
17283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17284 | { | |
17285 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17286 | if (PyErr_Occurred()) SWIG_fail; | |
17287 | } | |
17288 | { | |
17289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17290 | { | |
17291 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17292 | result = (wxDateTime *) &_result_ref; | |
17293 | } | |
17294 | ||
17295 | wxPyEndAllowThreads(__tstate); | |
17296 | if (PyErr_Occurred()) SWIG_fail; | |
17297 | } | |
17298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17299 | return resultobj; | |
17300 | fail: | |
17301 | return NULL; | |
17302 | } | |
17303 | ||
17304 | ||
17305 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17306 | PyObject *resultobj; | |
17307 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17308 | int arg2 ; | |
17309 | wxDateTime *result; | |
17310 | PyObject * obj0 = 0 ; | |
17311 | PyObject * obj1 = 0 ; | |
17312 | char *kwnames[] = { | |
17313 | (char *) "self",(char *) "hour", NULL | |
17314 | }; | |
17315 | ||
17316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
17317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17318 | { | |
17319 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17320 | if (PyErr_Occurred()) SWIG_fail; | |
17321 | } | |
17322 | { | |
17323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17324 | { | |
17325 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17326 | result = (wxDateTime *) &_result_ref; | |
17327 | } | |
17328 | ||
17329 | wxPyEndAllowThreads(__tstate); | |
17330 | if (PyErr_Occurred()) SWIG_fail; | |
17331 | } | |
17332 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17333 | return resultobj; | |
17334 | fail: | |
17335 | return NULL; | |
17336 | } | |
17337 | ||
17338 | ||
17339 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17340 | PyObject *resultobj; | |
17341 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17342 | int arg2 ; | |
17343 | wxDateTime *result; | |
17344 | PyObject * obj0 = 0 ; | |
17345 | PyObject * obj1 = 0 ; | |
17346 | char *kwnames[] = { | |
17347 | (char *) "self",(char *) "minute", NULL | |
17348 | }; | |
17349 | ||
17350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17352 | { | |
17353 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17354 | if (PyErr_Occurred()) SWIG_fail; | |
17355 | } | |
17356 | { | |
17357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17358 | { | |
17359 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17360 | result = (wxDateTime *) &_result_ref; | |
17361 | } | |
17362 | ||
17363 | wxPyEndAllowThreads(__tstate); | |
17364 | if (PyErr_Occurred()) SWIG_fail; | |
17365 | } | |
17366 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17367 | return resultobj; | |
17368 | fail: | |
17369 | return NULL; | |
17370 | } | |
17371 | ||
17372 | ||
17373 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17374 | PyObject *resultobj; | |
17375 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17376 | int arg2 ; | |
17377 | wxDateTime *result; | |
17378 | PyObject * obj0 = 0 ; | |
17379 | PyObject * obj1 = 0 ; | |
17380 | char *kwnames[] = { | |
17381 | (char *) "self",(char *) "second", NULL | |
17382 | }; | |
17383 | ||
17384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17386 | { | |
17387 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
17389 | } | |
17390 | { | |
17391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17392 | { | |
17393 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17394 | result = (wxDateTime *) &_result_ref; | |
17395 | } | |
17396 | ||
17397 | wxPyEndAllowThreads(__tstate); | |
17398 | if (PyErr_Occurred()) SWIG_fail; | |
17399 | } | |
17400 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17401 | return resultobj; | |
17402 | fail: | |
17403 | return NULL; | |
17404 | } | |
17405 | ||
17406 | ||
17407 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17408 | PyObject *resultobj; | |
17409 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17410 | int arg2 ; | |
17411 | wxDateTime *result; | |
17412 | PyObject * obj0 = 0 ; | |
17413 | PyObject * obj1 = 0 ; | |
17414 | char *kwnames[] = { | |
17415 | (char *) "self",(char *) "millisecond", NULL | |
17416 | }; | |
17417 | ||
17418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17420 | { | |
17421 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17422 | if (PyErr_Occurred()) SWIG_fail; | |
17423 | } | |
17424 | { | |
17425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17426 | { | |
17427 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17428 | result = (wxDateTime *) &_result_ref; | |
17429 | } | |
17430 | ||
17431 | wxPyEndAllowThreads(__tstate); | |
17432 | if (PyErr_Occurred()) SWIG_fail; | |
17433 | } | |
17434 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17435 | return resultobj; | |
17436 | fail: | |
17437 | return NULL; | |
17438 | } | |
17439 | ||
17440 | ||
17441 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17442 | PyObject *resultobj; | |
17443 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17444 | int arg2 ; | |
17445 | int arg3 = (int) wxDateTime::Monday_First ; | |
17446 | wxDateTime *result; | |
17447 | PyObject * obj0 = 0 ; | |
17448 | PyObject * obj1 = 0 ; | |
17449 | PyObject * obj2 = 0 ; | |
17450 | char *kwnames[] = { | |
17451 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17452 | }; | |
17453 | ||
17454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17456 | { | |
17457 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17458 | if (PyErr_Occurred()) SWIG_fail; | |
17459 | } | |
17460 | if (obj2) { | |
17461 | { | |
17462 | arg3 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj2); | |
17463 | if (PyErr_Occurred()) SWIG_fail; | |
17464 | } | |
17465 | } | |
17466 | { | |
17467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17468 | { | |
17469 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17470 | result = (wxDateTime *) &_result_ref; | |
17471 | } | |
17472 | ||
17473 | wxPyEndAllowThreads(__tstate); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
17476 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17477 | return resultobj; | |
17478 | fail: | |
17479 | return NULL; | |
17480 | } | |
17481 | ||
17482 | ||
17483 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17484 | PyObject *resultobj; | |
17485 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17486 | int arg2 ; | |
17487 | int arg3 = (int) wxDateTime::Monday_First ; | |
17488 | wxDateTime result; | |
17489 | PyObject * obj0 = 0 ; | |
17490 | PyObject * obj1 = 0 ; | |
17491 | PyObject * obj2 = 0 ; | |
17492 | char *kwnames[] = { | |
17493 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17494 | }; | |
17495 | ||
17496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17498 | { | |
17499 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17500 | if (PyErr_Occurred()) SWIG_fail; | |
17501 | } | |
17502 | if (obj2) { | |
17503 | { | |
17504 | arg3 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj2); | |
17505 | if (PyErr_Occurred()) SWIG_fail; | |
17506 | } | |
17507 | } | |
17508 | { | |
17509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17510 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17511 | ||
17512 | wxPyEndAllowThreads(__tstate); | |
17513 | if (PyErr_Occurred()) SWIG_fail; | |
17514 | } | |
17515 | { | |
17516 | wxDateTime * resultptr; | |
17517 | resultptr = new wxDateTime((wxDateTime &) result); | |
17518 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17519 | } | |
17520 | return resultobj; | |
17521 | fail: | |
17522 | return NULL; | |
17523 | } | |
17524 | ||
17525 | ||
17526 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17527 | PyObject *resultobj; | |
17528 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17529 | int arg2 ; | |
17530 | wxDateTime *result; | |
17531 | PyObject * obj0 = 0 ; | |
17532 | PyObject * obj1 = 0 ; | |
17533 | char *kwnames[] = { | |
17534 | (char *) "self",(char *) "weekday", NULL | |
17535 | }; | |
17536 | ||
17537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17539 | { | |
17540 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17541 | if (PyErr_Occurred()) SWIG_fail; | |
17542 | } | |
17543 | { | |
17544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17545 | { | |
17546 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
17547 | result = (wxDateTime *) &_result_ref; | |
17548 | } | |
17549 | ||
17550 | wxPyEndAllowThreads(__tstate); | |
17551 | if (PyErr_Occurred()) SWIG_fail; | |
17552 | } | |
17553 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17554 | return resultobj; | |
17555 | fail: | |
17556 | return NULL; | |
17557 | } | |
17558 | ||
17559 | ||
17560 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17561 | PyObject *resultobj; | |
17562 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17563 | int arg2 ; | |
17564 | wxDateTime result; | |
17565 | PyObject * obj0 = 0 ; | |
17566 | PyObject * obj1 = 0 ; | |
17567 | char *kwnames[] = { | |
17568 | (char *) "self",(char *) "weekday", NULL | |
17569 | }; | |
17570 | ||
17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17573 | { | |
17574 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17575 | if (PyErr_Occurred()) SWIG_fail; | |
17576 | } | |
17577 | { | |
17578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17579 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
17580 | ||
17581 | wxPyEndAllowThreads(__tstate); | |
17582 | if (PyErr_Occurred()) SWIG_fail; | |
17583 | } | |
17584 | { | |
17585 | wxDateTime * resultptr; | |
17586 | resultptr = new wxDateTime((wxDateTime &) result); | |
17587 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17588 | } | |
17589 | return resultobj; | |
17590 | fail: | |
17591 | return NULL; | |
17592 | } | |
17593 | ||
17594 | ||
17595 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17596 | PyObject *resultobj; | |
17597 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17598 | int arg2 ; | |
17599 | wxDateTime *result; | |
17600 | PyObject * obj0 = 0 ; | |
17601 | PyObject * obj1 = 0 ; | |
17602 | char *kwnames[] = { | |
17603 | (char *) "self",(char *) "weekday", NULL | |
17604 | }; | |
17605 | ||
17606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17608 | { | |
17609 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17610 | if (PyErr_Occurred()) SWIG_fail; | |
17611 | } | |
17612 | { | |
17613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17614 | { | |
17615 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
17616 | result = (wxDateTime *) &_result_ref; | |
17617 | } | |
17618 | ||
17619 | wxPyEndAllowThreads(__tstate); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
17622 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17623 | return resultobj; | |
17624 | fail: | |
17625 | return NULL; | |
17626 | } | |
17627 | ||
17628 | ||
17629 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17630 | PyObject *resultobj; | |
17631 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17632 | int arg2 ; | |
17633 | wxDateTime result; | |
17634 | PyObject * obj0 = 0 ; | |
17635 | PyObject * obj1 = 0 ; | |
17636 | char *kwnames[] = { | |
17637 | (char *) "self",(char *) "weekday", NULL | |
17638 | }; | |
17639 | ||
17640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17642 | { | |
17643 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17644 | if (PyErr_Occurred()) SWIG_fail; | |
17645 | } | |
17646 | { | |
17647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17648 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
17649 | ||
17650 | wxPyEndAllowThreads(__tstate); | |
17651 | if (PyErr_Occurred()) SWIG_fail; | |
17652 | } | |
17653 | { | |
17654 | wxDateTime * resultptr; | |
17655 | resultptr = new wxDateTime((wxDateTime &) result); | |
17656 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17657 | } | |
17658 | return resultobj; | |
17659 | fail: | |
17660 | return NULL; | |
17661 | } | |
17662 | ||
17663 | ||
17664 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17665 | PyObject *resultobj; | |
17666 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17667 | int arg2 ; | |
17668 | int arg3 = (int) 1 ; | |
17669 | int arg4 = (int) wxDateTime::Inv_Month ; | |
17670 | int arg5 = (int) wxDateTime::Inv_Year ; | |
17671 | bool result; | |
17672 | PyObject * obj0 = 0 ; | |
17673 | PyObject * obj1 = 0 ; | |
17674 | PyObject * obj2 = 0 ; | |
17675 | PyObject * obj3 = 0 ; | |
17676 | PyObject * obj4 = 0 ; | |
17677 | char *kwnames[] = { | |
17678 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
17679 | }; | |
17680 | ||
17681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17683 | { | |
17684 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17685 | if (PyErr_Occurred()) SWIG_fail; | |
17686 | } | |
17687 | if (obj2) { | |
17688 | { | |
17689 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
17691 | } | |
17692 | } | |
17693 | if (obj3) { | |
17694 | { | |
17695 | arg4 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj3); | |
17696 | if (PyErr_Occurred()) SWIG_fail; | |
17697 | } | |
17698 | } | |
17699 | if (obj4) { | |
17700 | { | |
17701 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17702 | if (PyErr_Occurred()) SWIG_fail; | |
17703 | } | |
17704 | } | |
17705 | { | |
17706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17707 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
17708 | ||
17709 | wxPyEndAllowThreads(__tstate); | |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
17711 | } | |
17712 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
17713 | return resultobj; | |
17714 | fail: | |
17715 | return NULL; | |
17716 | } | |
17717 | ||
17718 | ||
17719 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17720 | PyObject *resultobj; | |
17721 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17722 | int arg2 ; | |
17723 | int arg3 = (int) wxDateTime::Inv_Month ; | |
17724 | int arg4 = (int) wxDateTime::Inv_Year ; | |
17725 | bool result; | |
17726 | PyObject * obj0 = 0 ; | |
17727 | PyObject * obj1 = 0 ; | |
17728 | PyObject * obj2 = 0 ; | |
17729 | PyObject * obj3 = 0 ; | |
17730 | char *kwnames[] = { | |
17731 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
17732 | }; | |
17733 | ||
17734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17736 | { | |
17737 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17738 | if (PyErr_Occurred()) SWIG_fail; | |
17739 | } | |
17740 | if (obj2) { | |
17741 | { | |
17742 | arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2); | |
17743 | if (PyErr_Occurred()) SWIG_fail; | |
17744 | } | |
17745 | } | |
17746 | if (obj3) { | |
17747 | { | |
17748 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17749 | if (PyErr_Occurred()) SWIG_fail; | |
17750 | } | |
17751 | } | |
17752 | { | |
17753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17754 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
17755 | ||
17756 | wxPyEndAllowThreads(__tstate); | |
17757 | if (PyErr_Occurred()) SWIG_fail; | |
17758 | } | |
17759 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
17760 | return resultobj; | |
17761 | fail: | |
17762 | return NULL; | |
17763 | } | |
17764 | ||
17765 | ||
17766 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17767 | PyObject *resultobj; | |
17768 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17769 | int arg2 ; | |
17770 | int arg3 = (int) wxDateTime::Inv_Month ; | |
17771 | int arg4 = (int) wxDateTime::Inv_Year ; | |
17772 | wxDateTime result; | |
17773 | PyObject * obj0 = 0 ; | |
17774 | PyObject * obj1 = 0 ; | |
17775 | PyObject * obj2 = 0 ; | |
17776 | PyObject * obj3 = 0 ; | |
17777 | char *kwnames[] = { | |
17778 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
17779 | }; | |
17780 | ||
17781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17783 | { | |
17784 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17785 | if (PyErr_Occurred()) SWIG_fail; | |
17786 | } | |
17787 | if (obj2) { | |
17788 | { | |
17789 | arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2); | |
17790 | if (PyErr_Occurred()) SWIG_fail; | |
17791 | } | |
17792 | } | |
17793 | if (obj3) { | |
17794 | { | |
17795 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17796 | if (PyErr_Occurred()) SWIG_fail; | |
17797 | } | |
17798 | } | |
17799 | { | |
17800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17801 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
17802 | ||
17803 | wxPyEndAllowThreads(__tstate); | |
17804 | if (PyErr_Occurred()) SWIG_fail; | |
17805 | } | |
17806 | { | |
17807 | wxDateTime * resultptr; | |
17808 | resultptr = new wxDateTime((wxDateTime &) result); | |
17809 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17810 | } | |
17811 | return resultobj; | |
17812 | fail: | |
17813 | return NULL; | |
17814 | } | |
17815 | ||
17816 | ||
17817 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17818 | PyObject *resultobj; | |
17819 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17820 | int arg2 ; | |
17821 | int arg3 = (int) wxDateTime::Mon ; | |
17822 | int arg4 = (int) wxDateTime::Monday_First ; | |
17823 | bool result; | |
17824 | PyObject * obj0 = 0 ; | |
17825 | PyObject * obj1 = 0 ; | |
17826 | PyObject * obj2 = 0 ; | |
17827 | PyObject * obj3 = 0 ; | |
17828 | char *kwnames[] = { | |
17829 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
17830 | }; | |
17831 | ||
17832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17834 | { | |
17835 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17836 | if (PyErr_Occurred()) SWIG_fail; | |
17837 | } | |
17838 | if (obj2) { | |
17839 | { | |
17840 | arg3 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj2); | |
17841 | if (PyErr_Occurred()) SWIG_fail; | |
17842 | } | |
17843 | } | |
17844 | if (obj3) { | |
17845 | { | |
17846 | arg4 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj3); | |
17847 | if (PyErr_Occurred()) SWIG_fail; | |
17848 | } | |
17849 | } | |
17850 | { | |
17851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17852 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
17853 | ||
17854 | wxPyEndAllowThreads(__tstate); | |
17855 | if (PyErr_Occurred()) SWIG_fail; | |
17856 | } | |
17857 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
17858 | return resultobj; | |
17859 | fail: | |
17860 | return NULL; | |
17861 | } | |
17862 | ||
17863 | ||
17864 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17865 | PyObject *resultobj; | |
17866 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17867 | int arg2 ; | |
17868 | int arg3 = (int) wxDateTime::Mon ; | |
17869 | int arg4 = (int) wxDateTime::Monday_First ; | |
17870 | wxDateTime result; | |
17871 | PyObject * obj0 = 0 ; | |
17872 | PyObject * obj1 = 0 ; | |
17873 | PyObject * obj2 = 0 ; | |
17874 | PyObject * obj3 = 0 ; | |
17875 | char *kwnames[] = { | |
17876 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
17877 | }; | |
17878 | ||
17879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17881 | { | |
17882 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17883 | if (PyErr_Occurred()) SWIG_fail; | |
17884 | } | |
17885 | if (obj2) { | |
17886 | { | |
17887 | arg3 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj2); | |
17888 | if (PyErr_Occurred()) SWIG_fail; | |
17889 | } | |
17890 | } | |
17891 | if (obj3) { | |
17892 | { | |
17893 | arg4 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj3); | |
17894 | if (PyErr_Occurred()) SWIG_fail; | |
17895 | } | |
17896 | } | |
17897 | { | |
17898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17899 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
17900 | ||
17901 | wxPyEndAllowThreads(__tstate); | |
17902 | if (PyErr_Occurred()) SWIG_fail; | |
17903 | } | |
17904 | { | |
17905 | wxDateTime * resultptr; | |
17906 | resultptr = new wxDateTime((wxDateTime &) result); | |
17907 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17908 | } | |
17909 | return resultobj; | |
17910 | fail: | |
17911 | return NULL; | |
17912 | } | |
17913 | ||
17914 | ||
17915 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17916 | PyObject *resultobj; | |
17917 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17918 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17919 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17920 | wxDateTime *result; | |
17921 | PyObject * obj0 = 0 ; | |
17922 | PyObject * obj1 = 0 ; | |
17923 | PyObject * obj2 = 0 ; | |
17924 | char *kwnames[] = { | |
17925 | (char *) "self",(char *) "month",(char *) "year", NULL | |
17926 | }; | |
17927 | ||
17928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17930 | if (obj1) { | |
17931 | { | |
17932 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
17933 | if (PyErr_Occurred()) SWIG_fail; | |
17934 | } | |
17935 | } | |
17936 | if (obj2) { | |
17937 | { | |
17938 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17939 | if (PyErr_Occurred()) SWIG_fail; | |
17940 | } | |
17941 | } | |
17942 | { | |
17943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17944 | { | |
17945 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
17946 | result = (wxDateTime *) &_result_ref; | |
17947 | } | |
17948 | ||
17949 | wxPyEndAllowThreads(__tstate); | |
17950 | if (PyErr_Occurred()) SWIG_fail; | |
17951 | } | |
17952 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17953 | return resultobj; | |
17954 | fail: | |
17955 | return NULL; | |
17956 | } | |
17957 | ||
17958 | ||
17959 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17960 | PyObject *resultobj; | |
17961 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17962 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17963 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17964 | wxDateTime result; | |
17965 | PyObject * obj0 = 0 ; | |
17966 | PyObject * obj1 = 0 ; | |
17967 | PyObject * obj2 = 0 ; | |
17968 | char *kwnames[] = { | |
17969 | (char *) "self",(char *) "month",(char *) "year", NULL | |
17970 | }; | |
17971 | ||
17972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17974 | if (obj1) { | |
17975 | { | |
17976 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
17977 | if (PyErr_Occurred()) SWIG_fail; | |
17978 | } | |
17979 | } | |
17980 | if (obj2) { | |
17981 | { | |
17982 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | } | |
17985 | } | |
17986 | { | |
17987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17988 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
17989 | ||
17990 | wxPyEndAllowThreads(__tstate); | |
17991 | if (PyErr_Occurred()) SWIG_fail; | |
17992 | } | |
17993 | { | |
17994 | wxDateTime * resultptr; | |
17995 | resultptr = new wxDateTime((wxDateTime &) result); | |
17996 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17997 | } | |
17998 | return resultobj; | |
17999 | fail: | |
18000 | return NULL; | |
18001 | } | |
18002 | ||
18003 | ||
18004 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18005 | PyObject *resultobj; | |
18006 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18007 | int arg2 ; | |
18008 | wxDateTime *result; | |
18009 | PyObject * obj0 = 0 ; | |
18010 | PyObject * obj1 = 0 ; | |
18011 | char *kwnames[] = { | |
18012 | (char *) "self",(char *) "yday", NULL | |
18013 | }; | |
18014 | ||
18015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18017 | { | |
18018 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18019 | if (PyErr_Occurred()) SWIG_fail; | |
18020 | } | |
18021 | { | |
18022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18023 | { | |
18024 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18025 | result = (wxDateTime *) &_result_ref; | |
18026 | } | |
18027 | ||
18028 | wxPyEndAllowThreads(__tstate); | |
18029 | if (PyErr_Occurred()) SWIG_fail; | |
18030 | } | |
18031 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18032 | return resultobj; | |
18033 | fail: | |
18034 | return NULL; | |
18035 | } | |
18036 | ||
18037 | ||
18038 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18039 | PyObject *resultobj; | |
18040 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18041 | int arg2 ; | |
18042 | wxDateTime result; | |
18043 | PyObject * obj0 = 0 ; | |
18044 | PyObject * obj1 = 0 ; | |
18045 | char *kwnames[] = { | |
18046 | (char *) "self",(char *) "yday", NULL | |
18047 | }; | |
18048 | ||
18049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18051 | { | |
18052 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18053 | if (PyErr_Occurred()) SWIG_fail; | |
18054 | } | |
18055 | { | |
18056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18057 | result = (arg1)->GetYearDay(arg2); | |
18058 | ||
18059 | wxPyEndAllowThreads(__tstate); | |
18060 | if (PyErr_Occurred()) SWIG_fail; | |
18061 | } | |
18062 | { | |
18063 | wxDateTime * resultptr; | |
18064 | resultptr = new wxDateTime((wxDateTime &) result); | |
18065 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18066 | } | |
18067 | return resultobj; | |
18068 | fail: | |
18069 | return NULL; | |
18070 | } | |
18071 | ||
18072 | ||
18073 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18074 | PyObject *resultobj; | |
18075 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18076 | double result; | |
18077 | PyObject * obj0 = 0 ; | |
18078 | char *kwnames[] = { | |
18079 | (char *) "self", NULL | |
18080 | }; | |
18081 | ||
18082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
18083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18084 | { | |
18085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18086 | result = (double)(arg1)->GetJulianDayNumber(); | |
18087 | ||
18088 | wxPyEndAllowThreads(__tstate); | |
18089 | if (PyErr_Occurred()) SWIG_fail; | |
18090 | } | |
18091 | resultobj = SWIG_PyObj_FromDouble((double)result); | |
18092 | return resultobj; | |
18093 | fail: | |
18094 | return NULL; | |
18095 | } | |
18096 | ||
18097 | ||
18098 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18099 | PyObject *resultobj; | |
18100 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18101 | double result; | |
18102 | PyObject * obj0 = 0 ; | |
18103 | char *kwnames[] = { | |
18104 | (char *) "self", NULL | |
18105 | }; | |
18106 | ||
18107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
18108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18109 | { | |
18110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18111 | result = (double)(arg1)->GetJDN(); | |
18112 | ||
18113 | wxPyEndAllowThreads(__tstate); | |
18114 | if (PyErr_Occurred()) SWIG_fail; | |
18115 | } | |
18116 | resultobj = SWIG_PyObj_FromDouble((double)result); | |
18117 | return resultobj; | |
18118 | fail: | |
18119 | return NULL; | |
18120 | } | |
18121 | ||
18122 | ||
18123 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18124 | PyObject *resultobj; | |
18125 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18126 | double result; | |
18127 | PyObject * obj0 = 0 ; | |
18128 | char *kwnames[] = { | |
18129 | (char *) "self", NULL | |
18130 | }; | |
18131 | ||
18132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
18133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18134 | { | |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
18141 | resultobj = SWIG_PyObj_FromDouble((double)result); | |
18142 | return resultobj; | |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
18148 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18149 | PyObject *resultobj; | |
18150 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18151 | double result; | |
18152 | PyObject * obj0 = 0 ; | |
18153 | char *kwnames[] = { | |
18154 | (char *) "self", NULL | |
18155 | }; | |
18156 | ||
18157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
18158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18159 | { | |
18160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18161 | result = (double)(arg1)->GetMJD(); | |
18162 | ||
18163 | wxPyEndAllowThreads(__tstate); | |
18164 | if (PyErr_Occurred()) SWIG_fail; | |
18165 | } | |
18166 | resultobj = SWIG_PyObj_FromDouble((double)result); | |
18167 | return resultobj; | |
18168 | fail: | |
18169 | return NULL; | |
18170 | } | |
18171 | ||
18172 | ||
18173 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18174 | PyObject *resultobj; | |
18175 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18176 | double result; | |
18177 | PyObject * obj0 = 0 ; | |
18178 | char *kwnames[] = { | |
18179 | (char *) "self", NULL | |
18180 | }; | |
18181 | ||
18182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
18183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18184 | { | |
18185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18186 | result = (double)(arg1)->GetRataDie(); | |
18187 | ||
18188 | wxPyEndAllowThreads(__tstate); | |
18189 | if (PyErr_Occurred()) SWIG_fail; | |
18190 | } | |
18191 | resultobj = SWIG_PyObj_FromDouble((double)result); | |
18192 | return resultobj; | |
18193 | fail: | |
18194 | return NULL; | |
18195 | } | |
18196 | ||
18197 | ||
18198 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18199 | PyObject *resultobj; | |
18200 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18201 | wxDateTime::TimeZone *arg2 = 0 ; | |
18202 | bool arg3 = (bool) False ; | |
18203 | wxDateTime result; | |
18204 | bool temp2 = False ; | |
18205 | PyObject * obj0 = 0 ; | |
18206 | PyObject * obj1 = 0 ; | |
18207 | PyObject * obj2 = 0 ; | |
18208 | char *kwnames[] = { | |
18209 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18210 | }; | |
18211 | ||
18212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18214 | { | |
18215 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18216 | temp2 = True; | |
18217 | } | |
18218 | if (obj2) { | |
18219 | { | |
18220 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
18221 | if (PyErr_Occurred()) SWIG_fail; | |
18222 | } | |
18223 | } | |
18224 | { | |
18225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18226 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18227 | ||
18228 | wxPyEndAllowThreads(__tstate); | |
18229 | if (PyErr_Occurred()) SWIG_fail; | |
18230 | } | |
18231 | { | |
18232 | wxDateTime * resultptr; | |
18233 | resultptr = new wxDateTime((wxDateTime &) result); | |
18234 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18235 | } | |
18236 | { | |
18237 | if (temp2) delete arg2; | |
18238 | } | |
18239 | return resultobj; | |
18240 | fail: | |
18241 | { | |
18242 | if (temp2) delete arg2; | |
18243 | } | |
18244 | return NULL; | |
18245 | } | |
18246 | ||
18247 | ||
18248 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18249 | PyObject *resultobj; | |
18250 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18251 | wxDateTime::TimeZone *arg2 = 0 ; | |
18252 | bool arg3 = (bool) False ; | |
18253 | wxDateTime *result; | |
18254 | bool temp2 = False ; | |
18255 | PyObject * obj0 = 0 ; | |
18256 | PyObject * obj1 = 0 ; | |
18257 | PyObject * obj2 = 0 ; | |
18258 | char *kwnames[] = { | |
18259 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18260 | }; | |
18261 | ||
18262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18264 | { | |
18265 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18266 | temp2 = True; | |
18267 | } | |
18268 | if (obj2) { | |
18269 | { | |
18270 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
18271 | if (PyErr_Occurred()) SWIG_fail; | |
18272 | } | |
18273 | } | |
18274 | { | |
18275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18276 | { | |
18277 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18278 | result = (wxDateTime *) &_result_ref; | |
18279 | } | |
18280 | ||
18281 | wxPyEndAllowThreads(__tstate); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
18283 | } | |
18284 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18285 | { | |
18286 | if (temp2) delete arg2; | |
18287 | } | |
18288 | return resultobj; | |
18289 | fail: | |
18290 | { | |
18291 | if (temp2) delete arg2; | |
18292 | } | |
18293 | return NULL; | |
18294 | } | |
18295 | ||
18296 | ||
18297 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18298 | PyObject *resultobj; | |
18299 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18300 | bool arg2 = (bool) False ; | |
18301 | wxDateTime result; | |
18302 | PyObject * obj0 = 0 ; | |
18303 | PyObject * obj1 = 0 ; | |
18304 | char *kwnames[] = { | |
18305 | (char *) "self",(char *) "noDST", NULL | |
18306 | }; | |
18307 | ||
18308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
18309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18310 | if (obj1) { | |
18311 | { | |
18312 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
18313 | if (PyErr_Occurred()) SWIG_fail; | |
18314 | } | |
18315 | } | |
18316 | { | |
18317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18318 | result = (arg1)->ToGMT(arg2); | |
18319 | ||
18320 | wxPyEndAllowThreads(__tstate); | |
18321 | if (PyErr_Occurred()) SWIG_fail; | |
18322 | } | |
18323 | { | |
18324 | wxDateTime * resultptr; | |
18325 | resultptr = new wxDateTime((wxDateTime &) result); | |
18326 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18327 | } | |
18328 | return resultobj; | |
18329 | fail: | |
18330 | return NULL; | |
18331 | } | |
18332 | ||
18333 | ||
18334 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18335 | PyObject *resultobj; | |
18336 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18337 | bool arg2 = (bool) False ; | |
18338 | wxDateTime *result; | |
18339 | PyObject * obj0 = 0 ; | |
18340 | PyObject * obj1 = 0 ; | |
18341 | char *kwnames[] = { | |
18342 | (char *) "self",(char *) "noDST", NULL | |
18343 | }; | |
18344 | ||
18345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
18346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18347 | if (obj1) { | |
18348 | { | |
18349 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
18350 | if (PyErr_Occurred()) SWIG_fail; | |
18351 | } | |
18352 | } | |
18353 | { | |
18354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18355 | { | |
18356 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18357 | result = (wxDateTime *) &_result_ref; | |
18358 | } | |
18359 | ||
18360 | wxPyEndAllowThreads(__tstate); | |
18361 | if (PyErr_Occurred()) SWIG_fail; | |
18362 | } | |
18363 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18364 | return resultobj; | |
18365 | fail: | |
18366 | return NULL; | |
18367 | } | |
18368 | ||
18369 | ||
18370 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18371 | PyObject *resultobj; | |
18372 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18373 | int arg2 = (int) wxDateTime::Country_Default ; | |
18374 | int result; | |
18375 | PyObject * obj0 = 0 ; | |
18376 | PyObject * obj1 = 0 ; | |
18377 | char *kwnames[] = { | |
18378 | (char *) "self",(char *) "country", NULL | |
18379 | }; | |
18380 | ||
18381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
18382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18383 | if (obj1) { | |
18384 | { | |
18385 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
18386 | if (PyErr_Occurred()) SWIG_fail; | |
18387 | } | |
18388 | } | |
18389 | { | |
18390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18391 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18392 | ||
18393 | wxPyEndAllowThreads(__tstate); | |
18394 | if (PyErr_Occurred()) SWIG_fail; | |
18395 | } | |
18396 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18397 | return resultobj; | |
18398 | fail: | |
18399 | return NULL; | |
18400 | } | |
18401 | ||
18402 | ||
18403 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18404 | PyObject *resultobj; | |
18405 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18406 | bool result; | |
18407 | PyObject * obj0 = 0 ; | |
18408 | char *kwnames[] = { | |
18409 | (char *) "self", NULL | |
18410 | }; | |
18411 | ||
18412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
18413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18414 | { | |
18415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18416 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18417 | ||
18418 | wxPyEndAllowThreads(__tstate); | |
18419 | if (PyErr_Occurred()) SWIG_fail; | |
18420 | } | |
18421 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
18422 | return resultobj; | |
18423 | fail: | |
18424 | return NULL; | |
18425 | } | |
18426 | ||
18427 | ||
18428 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18429 | PyObject *resultobj; | |
18430 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18431 | time_t result; | |
18432 | PyObject * obj0 = 0 ; | |
18433 | char *kwnames[] = { | |
18434 | (char *) "self", NULL | |
18435 | }; | |
18436 | ||
18437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
18438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18439 | { | |
18440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18441 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18442 | ||
18443 | wxPyEndAllowThreads(__tstate); | |
18444 | if (PyErr_Occurred()) SWIG_fail; | |
18445 | } | |
18446 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); | |
18447 | return resultobj; | |
18448 | fail: | |
18449 | return NULL; | |
18450 | } | |
18451 | ||
18452 | ||
18453 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18454 | PyObject *resultobj; | |
18455 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18456 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18457 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18458 | int result; | |
18459 | bool temp2 = False ; | |
18460 | PyObject * obj0 = 0 ; | |
18461 | PyObject * obj1 = 0 ; | |
18462 | char *kwnames[] = { | |
18463 | (char *) "self",(char *) "tz", NULL | |
18464 | }; | |
18465 | ||
18466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
18467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18468 | if (obj1) { | |
18469 | { | |
18470 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18471 | temp2 = True; | |
18472 | } | |
18473 | } | |
18474 | { | |
18475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18476 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18477 | ||
18478 | wxPyEndAllowThreads(__tstate); | |
18479 | if (PyErr_Occurred()) SWIG_fail; | |
18480 | } | |
18481 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18482 | { | |
18483 | if (temp2) delete arg2; | |
18484 | } | |
18485 | return resultobj; | |
18486 | fail: | |
18487 | { | |
18488 | if (temp2) delete arg2; | |
18489 | } | |
18490 | return NULL; | |
18491 | } | |
18492 | ||
18493 | ||
18494 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18495 | PyObject *resultobj; | |
18496 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18497 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18498 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18499 | int result; | |
18500 | bool temp2 = False ; | |
18501 | PyObject * obj0 = 0 ; | |
18502 | PyObject * obj1 = 0 ; | |
18503 | char *kwnames[] = { | |
18504 | (char *) "self",(char *) "tz", NULL | |
18505 | }; | |
18506 | ||
18507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18509 | if (obj1) { | |
18510 | { | |
18511 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18512 | temp2 = True; | |
18513 | } | |
18514 | } | |
18515 | { | |
18516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18517 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
18518 | ||
18519 | wxPyEndAllowThreads(__tstate); | |
18520 | if (PyErr_Occurred()) SWIG_fail; | |
18521 | } | |
18522 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18523 | { | |
18524 | if (temp2) delete arg2; | |
18525 | } | |
18526 | return resultobj; | |
18527 | fail: | |
18528 | { | |
18529 | if (temp2) delete arg2; | |
18530 | } | |
18531 | return NULL; | |
18532 | } | |
18533 | ||
18534 | ||
18535 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18536 | PyObject *resultobj; | |
18537 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18538 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18539 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18540 | int result; | |
18541 | bool temp2 = False ; | |
18542 | PyObject * obj0 = 0 ; | |
18543 | PyObject * obj1 = 0 ; | |
18544 | char *kwnames[] = { | |
18545 | (char *) "self",(char *) "tz", NULL | |
18546 | }; | |
18547 | ||
18548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
18549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18550 | if (obj1) { | |
18551 | { | |
18552 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18553 | temp2 = True; | |
18554 | } | |
18555 | } | |
18556 | { | |
18557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18558 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
18559 | ||
18560 | wxPyEndAllowThreads(__tstate); | |
18561 | if (PyErr_Occurred()) SWIG_fail; | |
18562 | } | |
18563 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18564 | { | |
18565 | if (temp2) delete arg2; | |
18566 | } | |
18567 | return resultobj; | |
18568 | fail: | |
18569 | { | |
18570 | if (temp2) delete arg2; | |
18571 | } | |
18572 | return NULL; | |
18573 | } | |
18574 | ||
18575 | ||
18576 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18577 | PyObject *resultobj; | |
18578 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18579 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18580 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18581 | int result; | |
18582 | bool temp2 = False ; | |
18583 | PyObject * obj0 = 0 ; | |
18584 | PyObject * obj1 = 0 ; | |
18585 | char *kwnames[] = { | |
18586 | (char *) "self",(char *) "tz", NULL | |
18587 | }; | |
18588 | ||
18589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18591 | if (obj1) { | |
18592 | { | |
18593 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18594 | temp2 = True; | |
18595 | } | |
18596 | } | |
18597 | { | |
18598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18599 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
18600 | ||
18601 | wxPyEndAllowThreads(__tstate); | |
18602 | if (PyErr_Occurred()) SWIG_fail; | |
18603 | } | |
18604 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18605 | { | |
18606 | if (temp2) delete arg2; | |
18607 | } | |
18608 | return resultobj; | |
18609 | fail: | |
18610 | { | |
18611 | if (temp2) delete arg2; | |
18612 | } | |
18613 | return NULL; | |
18614 | } | |
18615 | ||
18616 | ||
18617 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18618 | PyObject *resultobj; | |
18619 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18620 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18621 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18622 | int result; | |
18623 | bool temp2 = False ; | |
18624 | PyObject * obj0 = 0 ; | |
18625 | PyObject * obj1 = 0 ; | |
18626 | char *kwnames[] = { | |
18627 | (char *) "self",(char *) "tz", NULL | |
18628 | }; | |
18629 | ||
18630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
18631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18632 | if (obj1) { | |
18633 | { | |
18634 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18635 | temp2 = True; | |
18636 | } | |
18637 | } | |
18638 | { | |
18639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18640 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
18641 | ||
18642 | wxPyEndAllowThreads(__tstate); | |
18643 | if (PyErr_Occurred()) SWIG_fail; | |
18644 | } | |
18645 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18646 | { | |
18647 | if (temp2) delete arg2; | |
18648 | } | |
18649 | return resultobj; | |
18650 | fail: | |
18651 | { | |
18652 | if (temp2) delete arg2; | |
18653 | } | |
18654 | return NULL; | |
18655 | } | |
18656 | ||
18657 | ||
18658 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18659 | PyObject *resultobj; | |
18660 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18661 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18662 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18663 | int result; | |
18664 | bool temp2 = False ; | |
18665 | PyObject * obj0 = 0 ; | |
18666 | PyObject * obj1 = 0 ; | |
18667 | char *kwnames[] = { | |
18668 | (char *) "self",(char *) "tz", NULL | |
18669 | }; | |
18670 | ||
18671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
18672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18673 | if (obj1) { | |
18674 | { | |
18675 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18676 | temp2 = True; | |
18677 | } | |
18678 | } | |
18679 | { | |
18680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18681 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
18682 | ||
18683 | wxPyEndAllowThreads(__tstate); | |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
18685 | } | |
18686 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18687 | { | |
18688 | if (temp2) delete arg2; | |
18689 | } | |
18690 | return resultobj; | |
18691 | fail: | |
18692 | { | |
18693 | if (temp2) delete arg2; | |
18694 | } | |
18695 | return NULL; | |
18696 | } | |
18697 | ||
18698 | ||
18699 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18700 | PyObject *resultobj; | |
18701 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18702 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18703 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18704 | int result; | |
18705 | bool temp2 = False ; | |
18706 | PyObject * obj0 = 0 ; | |
18707 | PyObject * obj1 = 0 ; | |
18708 | char *kwnames[] = { | |
18709 | (char *) "self",(char *) "tz", NULL | |
18710 | }; | |
18711 | ||
18712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
18713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18714 | if (obj1) { | |
18715 | { | |
18716 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18717 | temp2 = True; | |
18718 | } | |
18719 | } | |
18720 | { | |
18721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18722 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
18723 | ||
18724 | wxPyEndAllowThreads(__tstate); | |
18725 | if (PyErr_Occurred()) SWIG_fail; | |
18726 | } | |
18727 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18728 | { | |
18729 | if (temp2) delete arg2; | |
18730 | } | |
18731 | return resultobj; | |
18732 | fail: | |
18733 | { | |
18734 | if (temp2) delete arg2; | |
18735 | } | |
18736 | return NULL; | |
18737 | } | |
18738 | ||
18739 | ||
18740 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18741 | PyObject *resultobj; | |
18742 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18743 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18744 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18745 | int result; | |
18746 | bool temp2 = False ; | |
18747 | PyObject * obj0 = 0 ; | |
18748 | PyObject * obj1 = 0 ; | |
18749 | char *kwnames[] = { | |
18750 | (char *) "self",(char *) "tz", NULL | |
18751 | }; | |
18752 | ||
18753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
18754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18755 | if (obj1) { | |
18756 | { | |
18757 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18758 | temp2 = True; | |
18759 | } | |
18760 | } | |
18761 | { | |
18762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18763 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
18764 | ||
18765 | wxPyEndAllowThreads(__tstate); | |
18766 | if (PyErr_Occurred()) SWIG_fail; | |
18767 | } | |
18768 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18769 | { | |
18770 | if (temp2) delete arg2; | |
18771 | } | |
18772 | return resultobj; | |
18773 | fail: | |
18774 | { | |
18775 | if (temp2) delete arg2; | |
18776 | } | |
18777 | return NULL; | |
18778 | } | |
18779 | ||
18780 | ||
18781 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18782 | PyObject *resultobj; | |
18783 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18784 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18785 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18786 | int result; | |
18787 | bool temp2 = False ; | |
18788 | PyObject * obj0 = 0 ; | |
18789 | PyObject * obj1 = 0 ; | |
18790 | char *kwnames[] = { | |
18791 | (char *) "self",(char *) "tz", NULL | |
18792 | }; | |
18793 | ||
18794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
18795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18796 | if (obj1) { | |
18797 | { | |
18798 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18799 | temp2 = True; | |
18800 | } | |
18801 | } | |
18802 | { | |
18803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18804 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
18805 | ||
18806 | wxPyEndAllowThreads(__tstate); | |
18807 | if (PyErr_Occurred()) SWIG_fail; | |
18808 | } | |
18809 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18810 | { | |
18811 | if (temp2) delete arg2; | |
18812 | } | |
18813 | return resultobj; | |
18814 | fail: | |
18815 | { | |
18816 | if (temp2) delete arg2; | |
18817 | } | |
18818 | return NULL; | |
18819 | } | |
18820 | ||
18821 | ||
18822 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18823 | PyObject *resultobj; | |
18824 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18825 | int arg2 = (int) wxDateTime::Monday_First ; | |
18826 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
18827 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
18828 | int result; | |
18829 | bool temp3 = False ; | |
18830 | PyObject * obj0 = 0 ; | |
18831 | PyObject * obj1 = 0 ; | |
18832 | PyObject * obj2 = 0 ; | |
18833 | char *kwnames[] = { | |
18834 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
18835 | }; | |
18836 | ||
18837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18839 | if (obj1) { | |
18840 | { | |
18841 | arg2 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj1); | |
18842 | if (PyErr_Occurred()) SWIG_fail; | |
18843 | } | |
18844 | } | |
18845 | if (obj2) { | |
18846 | { | |
18847 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
18848 | temp3 = True; | |
18849 | } | |
18850 | } | |
18851 | { | |
18852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18853 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
18854 | ||
18855 | wxPyEndAllowThreads(__tstate); | |
18856 | if (PyErr_Occurred()) SWIG_fail; | |
18857 | } | |
18858 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18859 | { | |
18860 | if (temp3) delete arg3; | |
18861 | } | |
18862 | return resultobj; | |
18863 | fail: | |
18864 | { | |
18865 | if (temp3) delete arg3; | |
18866 | } | |
18867 | return NULL; | |
18868 | } | |
18869 | ||
18870 | ||
18871 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18872 | PyObject *resultobj; | |
18873 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18874 | int arg2 = (int) wxDateTime::Monday_First ; | |
18875 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
18876 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
18877 | int result; | |
18878 | bool temp3 = False ; | |
18879 | PyObject * obj0 = 0 ; | |
18880 | PyObject * obj1 = 0 ; | |
18881 | PyObject * obj2 = 0 ; | |
18882 | char *kwnames[] = { | |
18883 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
18884 | }; | |
18885 | ||
18886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18888 | if (obj1) { | |
18889 | { | |
18890 | arg2 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj1); | |
18891 | if (PyErr_Occurred()) SWIG_fail; | |
18892 | } | |
18893 | } | |
18894 | if (obj2) { | |
18895 | { | |
18896 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
18897 | temp3 = True; | |
18898 | } | |
18899 | } | |
18900 | { | |
18901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18902 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
18903 | ||
18904 | wxPyEndAllowThreads(__tstate); | |
18905 | if (PyErr_Occurred()) SWIG_fail; | |
18906 | } | |
18907 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18908 | { | |
18909 | if (temp3) delete arg3; | |
18910 | } | |
18911 | return resultobj; | |
18912 | fail: | |
18913 | { | |
18914 | if (temp3) delete arg3; | |
18915 | } | |
18916 | return NULL; | |
18917 | } | |
18918 | ||
18919 | ||
18920 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18921 | PyObject *resultobj; | |
18922 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18923 | int arg2 = (int) wxDateTime::Country_Default ; | |
18924 | bool result; | |
18925 | PyObject * obj0 = 0 ; | |
18926 | PyObject * obj1 = 0 ; | |
18927 | char *kwnames[] = { | |
18928 | (char *) "self",(char *) "country", NULL | |
18929 | }; | |
18930 | ||
18931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
18932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18933 | if (obj1) { | |
18934 | { | |
18935 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
18936 | if (PyErr_Occurred()) SWIG_fail; | |
18937 | } | |
18938 | } | |
18939 | { | |
18940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18941 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
18942 | ||
18943 | wxPyEndAllowThreads(__tstate); | |
18944 | if (PyErr_Occurred()) SWIG_fail; | |
18945 | } | |
18946 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
18947 | return resultobj; | |
18948 | fail: | |
18949 | return NULL; | |
18950 | } | |
18951 | ||
18952 | ||
18953 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18954 | PyObject *resultobj; | |
18955 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18956 | wxDateTime *arg2 = 0 ; | |
18957 | bool result; | |
18958 | PyObject * obj0 = 0 ; | |
18959 | PyObject * obj1 = 0 ; | |
18960 | char *kwnames[] = { | |
18961 | (char *) "self",(char *) "datetime", NULL | |
18962 | }; | |
18963 | ||
18964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
18965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18966 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18967 | if (arg2 == NULL) { | |
18968 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18969 | } | |
18970 | { | |
18971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18972 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
18973 | ||
18974 | wxPyEndAllowThreads(__tstate); | |
18975 | if (PyErr_Occurred()) SWIG_fail; | |
18976 | } | |
18977 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
18978 | return resultobj; | |
18979 | fail: | |
18980 | return NULL; | |
18981 | } | |
18982 | ||
18983 | ||
18984 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18985 | PyObject *resultobj; | |
18986 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18987 | wxDateTime *arg2 = 0 ; | |
18988 | bool result; | |
18989 | PyObject * obj0 = 0 ; | |
18990 | PyObject * obj1 = 0 ; | |
18991 | char *kwnames[] = { | |
18992 | (char *) "self",(char *) "datetime", NULL | |
18993 | }; | |
18994 | ||
18995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
18996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18997 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18998 | if (arg2 == NULL) { | |
18999 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19000 | } | |
19001 | { | |
19002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19003 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19004 | ||
19005 | wxPyEndAllowThreads(__tstate); | |
19006 | if (PyErr_Occurred()) SWIG_fail; | |
19007 | } | |
19008 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19009 | return resultobj; | |
19010 | fail: | |
19011 | return NULL; | |
19012 | } | |
19013 | ||
19014 | ||
19015 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19016 | PyObject *resultobj; | |
19017 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19018 | wxDateTime *arg2 = 0 ; | |
19019 | bool result; | |
19020 | PyObject * obj0 = 0 ; | |
19021 | PyObject * obj1 = 0 ; | |
19022 | char *kwnames[] = { | |
19023 | (char *) "self",(char *) "datetime", NULL | |
19024 | }; | |
19025 | ||
19026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
19027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19028 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19029 | if (arg2 == NULL) { | |
19030 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19031 | } | |
19032 | { | |
19033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19034 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19035 | ||
19036 | wxPyEndAllowThreads(__tstate); | |
19037 | if (PyErr_Occurred()) SWIG_fail; | |
19038 | } | |
19039 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19040 | return resultobj; | |
19041 | fail: | |
19042 | return NULL; | |
19043 | } | |
19044 | ||
19045 | ||
19046 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19047 | PyObject *resultobj; | |
19048 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19049 | wxDateTime *arg2 = 0 ; | |
19050 | wxDateTime *arg3 = 0 ; | |
19051 | bool result; | |
19052 | PyObject * obj0 = 0 ; | |
19053 | PyObject * obj1 = 0 ; | |
19054 | PyObject * obj2 = 0 ; | |
19055 | char *kwnames[] = { | |
19056 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19057 | }; | |
19058 | ||
19059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19062 | if (arg2 == NULL) { | |
19063 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19064 | } | |
19065 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19066 | if (arg3 == NULL) { | |
19067 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19068 | } | |
19069 | { | |
19070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19071 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19072 | ||
19073 | wxPyEndAllowThreads(__tstate); | |
19074 | if (PyErr_Occurred()) SWIG_fail; | |
19075 | } | |
19076 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19077 | return resultobj; | |
19078 | fail: | |
19079 | return NULL; | |
19080 | } | |
19081 | ||
19082 | ||
19083 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19084 | PyObject *resultobj; | |
19085 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19086 | wxDateTime *arg2 = 0 ; | |
19087 | wxDateTime *arg3 = 0 ; | |
19088 | bool result; | |
19089 | PyObject * obj0 = 0 ; | |
19090 | PyObject * obj1 = 0 ; | |
19091 | PyObject * obj2 = 0 ; | |
19092 | char *kwnames[] = { | |
19093 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19094 | }; | |
19095 | ||
19096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19099 | if (arg2 == NULL) { | |
19100 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19101 | } | |
19102 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19103 | if (arg3 == NULL) { | |
19104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19105 | } | |
19106 | { | |
19107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19108 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19109 | ||
19110 | wxPyEndAllowThreads(__tstate); | |
19111 | if (PyErr_Occurred()) SWIG_fail; | |
19112 | } | |
19113 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19114 | return resultobj; | |
19115 | fail: | |
19116 | return NULL; | |
19117 | } | |
19118 | ||
19119 | ||
19120 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19121 | PyObject *resultobj; | |
19122 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19123 | wxDateTime *arg2 = 0 ; | |
19124 | bool result; | |
19125 | PyObject * obj0 = 0 ; | |
19126 | PyObject * obj1 = 0 ; | |
19127 | char *kwnames[] = { | |
19128 | (char *) "self",(char *) "dt", NULL | |
19129 | }; | |
19130 | ||
19131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
19132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19133 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19134 | if (arg2 == NULL) { | |
19135 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19136 | } | |
19137 | { | |
19138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19139 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19140 | ||
19141 | wxPyEndAllowThreads(__tstate); | |
19142 | if (PyErr_Occurred()) SWIG_fail; | |
19143 | } | |
19144 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19145 | return resultobj; | |
19146 | fail: | |
19147 | return NULL; | |
19148 | } | |
19149 | ||
19150 | ||
19151 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19152 | PyObject *resultobj; | |
19153 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19154 | wxDateTime *arg2 = 0 ; | |
19155 | bool result; | |
19156 | PyObject * obj0 = 0 ; | |
19157 | PyObject * obj1 = 0 ; | |
19158 | char *kwnames[] = { | |
19159 | (char *) "self",(char *) "dt", NULL | |
19160 | }; | |
19161 | ||
19162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
19163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19164 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19165 | if (arg2 == NULL) { | |
19166 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19167 | } | |
19168 | { | |
19169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19170 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19171 | ||
19172 | wxPyEndAllowThreads(__tstate); | |
19173 | if (PyErr_Occurred()) SWIG_fail; | |
19174 | } | |
19175 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19176 | return resultobj; | |
19177 | fail: | |
19178 | return NULL; | |
19179 | } | |
19180 | ||
19181 | ||
19182 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19183 | PyObject *resultobj; | |
19184 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19185 | wxDateTime *arg2 = 0 ; | |
19186 | wxTimeSpan *arg3 = 0 ; | |
19187 | bool result; | |
19188 | PyObject * obj0 = 0 ; | |
19189 | PyObject * obj1 = 0 ; | |
19190 | PyObject * obj2 = 0 ; | |
19191 | char *kwnames[] = { | |
19192 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19193 | }; | |
19194 | ||
19195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19197 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19198 | if (arg2 == NULL) { | |
19199 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19200 | } | |
19201 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19202 | if (arg3 == NULL) { | |
19203 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19204 | } | |
19205 | { | |
19206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19207 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19208 | ||
19209 | wxPyEndAllowThreads(__tstate); | |
19210 | if (PyErr_Occurred()) SWIG_fail; | |
19211 | } | |
19212 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19213 | return resultobj; | |
19214 | fail: | |
19215 | return NULL; | |
19216 | } | |
19217 | ||
19218 | ||
19219 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19220 | PyObject *resultobj; | |
19221 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19222 | wxTimeSpan *arg2 = 0 ; | |
19223 | wxDateTime *result; | |
19224 | PyObject * obj0 = 0 ; | |
19225 | PyObject * obj1 = 0 ; | |
19226 | char *kwnames[] = { | |
19227 | (char *) "self",(char *) "diff", NULL | |
19228 | }; | |
19229 | ||
19230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
19231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19232 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19233 | if (arg2 == NULL) { | |
19234 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19235 | } | |
19236 | { | |
19237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19238 | { | |
19239 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19240 | result = (wxDateTime *) &_result_ref; | |
19241 | } | |
19242 | ||
19243 | wxPyEndAllowThreads(__tstate); | |
19244 | if (PyErr_Occurred()) SWIG_fail; | |
19245 | } | |
19246 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19247 | return resultobj; | |
19248 | fail: | |
19249 | return NULL; | |
19250 | } | |
19251 | ||
19252 | ||
19253 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19254 | PyObject *resultobj; | |
19255 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19256 | wxDateSpan *arg2 = 0 ; | |
19257 | wxDateTime *result; | |
19258 | PyObject * obj0 = 0 ; | |
19259 | PyObject * obj1 = 0 ; | |
19260 | char *kwnames[] = { | |
19261 | (char *) "self",(char *) "diff", NULL | |
19262 | }; | |
19263 | ||
19264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
19265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19266 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19267 | if (arg2 == NULL) { | |
19268 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19269 | } | |
19270 | { | |
19271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272 | { | |
19273 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19274 | result = (wxDateTime *) &_result_ref; | |
19275 | } | |
19276 | ||
19277 | wxPyEndAllowThreads(__tstate); | |
19278 | if (PyErr_Occurred()) SWIG_fail; | |
19279 | } | |
19280 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19281 | return resultobj; | |
19282 | fail: | |
19283 | return NULL; | |
19284 | } | |
19285 | ||
19286 | ||
19287 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19288 | PyObject *resultobj; | |
19289 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19290 | wxTimeSpan *arg2 = 0 ; | |
19291 | wxDateTime *result; | |
19292 | PyObject * obj0 = 0 ; | |
19293 | PyObject * obj1 = 0 ; | |
19294 | char *kwnames[] = { | |
19295 | (char *) "self",(char *) "diff", NULL | |
19296 | }; | |
19297 | ||
19298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
19299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19300 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19301 | if (arg2 == NULL) { | |
19302 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19303 | } | |
19304 | { | |
19305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19306 | { | |
19307 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19308 | result = (wxDateTime *) &_result_ref; | |
19309 | } | |
19310 | ||
19311 | wxPyEndAllowThreads(__tstate); | |
19312 | if (PyErr_Occurred()) SWIG_fail; | |
19313 | } | |
19314 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19315 | return resultobj; | |
19316 | fail: | |
19317 | return NULL; | |
19318 | } | |
19319 | ||
19320 | ||
19321 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19322 | PyObject *resultobj; | |
19323 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19324 | wxDateSpan *arg2 = 0 ; | |
19325 | wxDateTime *result; | |
19326 | PyObject * obj0 = 0 ; | |
19327 | PyObject * obj1 = 0 ; | |
19328 | char *kwnames[] = { | |
19329 | (char *) "self",(char *) "diff", NULL | |
19330 | }; | |
19331 | ||
19332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
19333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19334 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19335 | if (arg2 == NULL) { | |
19336 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19337 | } | |
19338 | { | |
19339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19340 | { | |
19341 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19342 | result = (wxDateTime *) &_result_ref; | |
19343 | } | |
19344 | ||
19345 | wxPyEndAllowThreads(__tstate); | |
19346 | if (PyErr_Occurred()) SWIG_fail; | |
19347 | } | |
19348 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19349 | return resultobj; | |
19350 | fail: | |
19351 | return NULL; | |
19352 | } | |
19353 | ||
19354 | ||
19355 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19356 | PyObject *resultobj; | |
19357 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19358 | wxDateTime *arg2 = 0 ; | |
19359 | wxTimeSpan result; | |
19360 | PyObject * obj0 = 0 ; | |
19361 | PyObject * obj1 = 0 ; | |
19362 | char *kwnames[] = { | |
19363 | (char *) "self",(char *) "dt", NULL | |
19364 | }; | |
19365 | ||
19366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19368 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19369 | if (arg2 == NULL) { | |
19370 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19371 | } | |
19372 | { | |
19373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19374 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19375 | ||
19376 | wxPyEndAllowThreads(__tstate); | |
19377 | if (PyErr_Occurred()) SWIG_fail; | |
19378 | } | |
19379 | { | |
19380 | wxTimeSpan * resultptr; | |
19381 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19382 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19383 | } | |
19384 | return resultobj; | |
19385 | fail: | |
19386 | return NULL; | |
19387 | } | |
19388 | ||
19389 | ||
19390 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19391 | PyObject *resultobj; | |
19392 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19393 | wxTimeSpan *arg2 = 0 ; | |
19394 | wxDateTime *result; | |
19395 | PyObject * obj0 = 0 ; | |
19396 | PyObject * obj1 = 0 ; | |
19397 | ||
19398 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19400 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19401 | if (arg2 == NULL) { | |
19402 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19403 | } | |
19404 | { | |
19405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19406 | { | |
19407 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19408 | result = (wxDateTime *) &_result_ref; | |
19409 | } | |
19410 | ||
19411 | wxPyEndAllowThreads(__tstate); | |
19412 | if (PyErr_Occurred()) SWIG_fail; | |
19413 | } | |
19414 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19415 | return resultobj; | |
19416 | fail: | |
19417 | return NULL; | |
19418 | } | |
19419 | ||
19420 | ||
19421 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
19422 | PyObject *resultobj; | |
19423 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19424 | wxDateSpan *arg2 = 0 ; | |
19425 | wxDateTime *result; | |
19426 | PyObject * obj0 = 0 ; | |
19427 | PyObject * obj1 = 0 ; | |
19428 | ||
19429 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19431 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19432 | if (arg2 == NULL) { | |
19433 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19434 | } | |
19435 | { | |
19436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19437 | { | |
19438 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
19439 | result = (wxDateTime *) &_result_ref; | |
19440 | } | |
19441 | ||
19442 | wxPyEndAllowThreads(__tstate); | |
19443 | if (PyErr_Occurred()) SWIG_fail; | |
19444 | } | |
19445 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19446 | return resultobj; | |
19447 | fail: | |
19448 | return NULL; | |
19449 | } | |
19450 | ||
19451 | ||
19452 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
19453 | int argc; | |
19454 | PyObject *argv[3]; | |
19455 | int ii; | |
19456 | ||
19457 | argc = PyObject_Length(args); | |
19458 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19459 | argv[ii] = PyTuple_GetItem(args,ii); | |
19460 | } | |
19461 | if (argc == 2) { | |
19462 | int _v; | |
19463 | { | |
19464 | void *ptr; | |
19465 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19466 | _v = 0; | |
19467 | PyErr_Clear(); | |
19468 | } else { | |
19469 | _v = 1; | |
19470 | } | |
19471 | } | |
19472 | if (_v) { | |
19473 | { | |
19474 | void *ptr; | |
19475 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19476 | _v = 0; | |
19477 | PyErr_Clear(); | |
19478 | } else { | |
19479 | _v = 1; | |
19480 | } | |
19481 | } | |
19482 | if (_v) { | |
19483 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
19484 | } | |
19485 | } | |
19486 | } | |
19487 | if (argc == 2) { | |
19488 | int _v; | |
19489 | { | |
19490 | void *ptr; | |
19491 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19492 | _v = 0; | |
19493 | PyErr_Clear(); | |
19494 | } else { | |
19495 | _v = 1; | |
19496 | } | |
19497 | } | |
19498 | if (_v) { | |
19499 | { | |
19500 | void *ptr; | |
19501 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
19502 | _v = 0; | |
19503 | PyErr_Clear(); | |
19504 | } else { | |
19505 | _v = 1; | |
19506 | } | |
19507 | } | |
19508 | if (_v) { | |
19509 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
19510 | } | |
19511 | } | |
19512 | } | |
19513 | ||
19514 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
19515 | return NULL; | |
19516 | } | |
19517 | ||
19518 | ||
19519 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
19520 | PyObject *resultobj; | |
19521 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19522 | wxTimeSpan *arg2 = 0 ; | |
19523 | wxDateTime *result; | |
19524 | PyObject * obj0 = 0 ; | |
19525 | PyObject * obj1 = 0 ; | |
19526 | ||
19527 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
19528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19529 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19530 | if (arg2 == NULL) { | |
19531 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19532 | } | |
19533 | { | |
19534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19535 | { | |
19536 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
19537 | result = (wxDateTime *) &_result_ref; | |
19538 | } | |
19539 | ||
19540 | wxPyEndAllowThreads(__tstate); | |
19541 | if (PyErr_Occurred()) SWIG_fail; | |
19542 | } | |
19543 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19544 | return resultobj; | |
19545 | fail: | |
19546 | return NULL; | |
19547 | } | |
19548 | ||
19549 | ||
19550 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
19551 | PyObject *resultobj; | |
19552 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19553 | wxDateSpan *arg2 = 0 ; | |
19554 | wxDateTime *result; | |
19555 | PyObject * obj0 = 0 ; | |
19556 | PyObject * obj1 = 0 ; | |
19557 | ||
19558 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
19559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19560 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19561 | if (arg2 == NULL) { | |
19562 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19563 | } | |
19564 | { | |
19565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19566 | { | |
19567 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
19568 | result = (wxDateTime *) &_result_ref; | |
19569 | } | |
19570 | ||
19571 | wxPyEndAllowThreads(__tstate); | |
19572 | if (PyErr_Occurred()) SWIG_fail; | |
19573 | } | |
19574 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19575 | return resultobj; | |
19576 | fail: | |
19577 | return NULL; | |
19578 | } | |
19579 | ||
19580 | ||
19581 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
19582 | int argc; | |
19583 | PyObject *argv[3]; | |
19584 | int ii; | |
19585 | ||
19586 | argc = PyObject_Length(args); | |
19587 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19588 | argv[ii] = PyTuple_GetItem(args,ii); | |
19589 | } | |
19590 | if (argc == 2) { | |
19591 | int _v; | |
19592 | { | |
19593 | void *ptr; | |
19594 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19595 | _v = 0; | |
19596 | PyErr_Clear(); | |
19597 | } else { | |
19598 | _v = 1; | |
19599 | } | |
19600 | } | |
19601 | if (_v) { | |
19602 | { | |
19603 | void *ptr; | |
19604 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19605 | _v = 0; | |
19606 | PyErr_Clear(); | |
19607 | } else { | |
19608 | _v = 1; | |
19609 | } | |
19610 | } | |
19611 | if (_v) { | |
19612 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
19613 | } | |
19614 | } | |
19615 | } | |
19616 | if (argc == 2) { | |
19617 | int _v; | |
19618 | { | |
19619 | void *ptr; | |
19620 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19621 | _v = 0; | |
19622 | PyErr_Clear(); | |
19623 | } else { | |
19624 | _v = 1; | |
19625 | } | |
19626 | } | |
19627 | if (_v) { | |
19628 | { | |
19629 | void *ptr; | |
19630 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
19631 | _v = 0; | |
19632 | PyErr_Clear(); | |
19633 | } else { | |
19634 | _v = 1; | |
19635 | } | |
19636 | } | |
19637 | if (_v) { | |
19638 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
19639 | } | |
19640 | } | |
19641 | } | |
19642 | ||
19643 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
19644 | return NULL; | |
19645 | } | |
19646 | ||
19647 | ||
19648 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
19649 | PyObject *resultobj; | |
19650 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19651 | wxTimeSpan *arg2 = 0 ; | |
19652 | wxDateTime result; | |
19653 | PyObject * obj0 = 0 ; | |
19654 | PyObject * obj1 = 0 ; | |
19655 | ||
19656 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
19657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19658 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19659 | if (arg2 == NULL) { | |
19660 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19661 | } | |
19662 | { | |
19663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19664 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
19665 | ||
19666 | wxPyEndAllowThreads(__tstate); | |
19667 | if (PyErr_Occurred()) SWIG_fail; | |
19668 | } | |
19669 | { | |
19670 | wxDateTime * resultptr; | |
19671 | resultptr = new wxDateTime((wxDateTime &) result); | |
19672 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
19673 | } | |
19674 | return resultobj; | |
19675 | fail: | |
19676 | return NULL; | |
19677 | } | |
19678 | ||
19679 | ||
19680 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
19681 | PyObject *resultobj; | |
19682 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19683 | wxDateSpan *arg2 = 0 ; | |
19684 | wxDateTime result; | |
19685 | PyObject * obj0 = 0 ; | |
19686 | PyObject * obj1 = 0 ; | |
19687 | ||
19688 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
19689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19690 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19691 | if (arg2 == NULL) { | |
19692 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19693 | } | |
19694 | { | |
19695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19696 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
19697 | ||
19698 | wxPyEndAllowThreads(__tstate); | |
19699 | if (PyErr_Occurred()) SWIG_fail; | |
19700 | } | |
19701 | { | |
19702 | wxDateTime * resultptr; | |
19703 | resultptr = new wxDateTime((wxDateTime &) result); | |
19704 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
19705 | } | |
19706 | return resultobj; | |
19707 | fail: | |
19708 | return NULL; | |
19709 | } | |
19710 | ||
19711 | ||
19712 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
19713 | int argc; | |
19714 | PyObject *argv[3]; | |
19715 | int ii; | |
19716 | ||
19717 | argc = PyObject_Length(args); | |
19718 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19719 | argv[ii] = PyTuple_GetItem(args,ii); | |
19720 | } | |
19721 | if (argc == 2) { | |
19722 | int _v; | |
19723 | { | |
19724 | void *ptr; | |
19725 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19726 | _v = 0; | |
19727 | PyErr_Clear(); | |
19728 | } else { | |
19729 | _v = 1; | |
19730 | } | |
19731 | } | |
19732 | if (_v) { | |
19733 | { | |
19734 | void *ptr; | |
19735 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19736 | _v = 0; | |
19737 | PyErr_Clear(); | |
19738 | } else { | |
19739 | _v = 1; | |
19740 | } | |
19741 | } | |
19742 | if (_v) { | |
19743 | return _wrap_DateTime___add____SWIG_0(self,args); | |
19744 | } | |
19745 | } | |
19746 | } | |
19747 | if (argc == 2) { | |
19748 | int _v; | |
19749 | { | |
19750 | void *ptr; | |
19751 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19752 | _v = 0; | |
19753 | PyErr_Clear(); | |
19754 | } else { | |
19755 | _v = 1; | |
19756 | } | |
19757 | } | |
19758 | if (_v) { | |
19759 | { | |
19760 | void *ptr; | |
19761 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
19762 | _v = 0; | |
19763 | PyErr_Clear(); | |
19764 | } else { | |
19765 | _v = 1; | |
19766 | } | |
19767 | } | |
19768 | if (_v) { | |
19769 | return _wrap_DateTime___add____SWIG_1(self,args); | |
19770 | } | |
19771 | } | |
19772 | } | |
19773 | ||
19774 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
19775 | return NULL; | |
19776 | } | |
19777 | ||
19778 | ||
19779 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
19780 | PyObject *resultobj; | |
19781 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19782 | wxDateTime *arg2 = 0 ; | |
19783 | wxTimeSpan result; | |
19784 | PyObject * obj0 = 0 ; | |
19785 | PyObject * obj1 = 0 ; | |
19786 | ||
19787 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
19788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19789 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19790 | if (arg2 == NULL) { | |
19791 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19792 | } | |
19793 | { | |
19794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19795 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
19796 | ||
19797 | wxPyEndAllowThreads(__tstate); | |
19798 | if (PyErr_Occurred()) SWIG_fail; | |
19799 | } | |
19800 | { | |
19801 | wxTimeSpan * resultptr; | |
19802 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19803 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19804 | } | |
19805 | return resultobj; | |
19806 | fail: | |
19807 | return NULL; | |
19808 | } | |
19809 | ||
19810 | ||
19811 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
19812 | PyObject *resultobj; | |
19813 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19814 | wxTimeSpan *arg2 = 0 ; | |
19815 | wxDateTime result; | |
19816 | PyObject * obj0 = 0 ; | |
19817 | PyObject * obj1 = 0 ; | |
19818 | ||
19819 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
19820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19821 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19822 | if (arg2 == NULL) { | |
19823 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19824 | } | |
19825 | { | |
19826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19827 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
19828 | ||
19829 | wxPyEndAllowThreads(__tstate); | |
19830 | if (PyErr_Occurred()) SWIG_fail; | |
19831 | } | |
19832 | { | |
19833 | wxDateTime * resultptr; | |
19834 | resultptr = new wxDateTime((wxDateTime &) result); | |
19835 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
19836 | } | |
19837 | return resultobj; | |
19838 | fail: | |
19839 | return NULL; | |
19840 | } | |
19841 | ||
19842 | ||
19843 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
19844 | PyObject *resultobj; | |
19845 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19846 | wxDateSpan *arg2 = 0 ; | |
19847 | wxDateTime result; | |
19848 | PyObject * obj0 = 0 ; | |
19849 | PyObject * obj1 = 0 ; | |
19850 | ||
19851 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
19852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19853 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19854 | if (arg2 == NULL) { | |
19855 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19856 | } | |
19857 | { | |
19858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19859 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
19860 | ||
19861 | wxPyEndAllowThreads(__tstate); | |
19862 | if (PyErr_Occurred()) SWIG_fail; | |
19863 | } | |
19864 | { | |
19865 | wxDateTime * resultptr; | |
19866 | resultptr = new wxDateTime((wxDateTime &) result); | |
19867 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
19868 | } | |
19869 | return resultobj; | |
19870 | fail: | |
19871 | return NULL; | |
19872 | } | |
19873 | ||
19874 | ||
19875 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
19876 | int argc; | |
19877 | PyObject *argv[3]; | |
19878 | int ii; | |
19879 | ||
19880 | argc = PyObject_Length(args); | |
19881 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19882 | argv[ii] = PyTuple_GetItem(args,ii); | |
19883 | } | |
19884 | if (argc == 2) { | |
19885 | int _v; | |
19886 | { | |
19887 | void *ptr; | |
19888 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19889 | _v = 0; | |
19890 | PyErr_Clear(); | |
19891 | } else { | |
19892 | _v = 1; | |
19893 | } | |
19894 | } | |
19895 | if (_v) { | |
19896 | { | |
19897 | void *ptr; | |
19898 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19899 | _v = 0; | |
19900 | PyErr_Clear(); | |
19901 | } else { | |
19902 | _v = 1; | |
19903 | } | |
19904 | } | |
19905 | if (_v) { | |
19906 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
19907 | } | |
19908 | } | |
19909 | } | |
19910 | if (argc == 2) { | |
19911 | int _v; | |
19912 | { | |
19913 | void *ptr; | |
19914 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19915 | _v = 0; | |
19916 | PyErr_Clear(); | |
19917 | } else { | |
19918 | _v = 1; | |
19919 | } | |
19920 | } | |
19921 | if (_v) { | |
19922 | { | |
19923 | void *ptr; | |
19924 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19925 | _v = 0; | |
19926 | PyErr_Clear(); | |
19927 | } else { | |
19928 | _v = 1; | |
19929 | } | |
19930 | } | |
19931 | if (_v) { | |
19932 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
19933 | } | |
19934 | } | |
19935 | } | |
19936 | if (argc == 2) { | |
19937 | int _v; | |
19938 | { | |
19939 | void *ptr; | |
19940 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19941 | _v = 0; | |
19942 | PyErr_Clear(); | |
19943 | } else { | |
19944 | _v = 1; | |
19945 | } | |
19946 | } | |
19947 | if (_v) { | |
19948 | { | |
19949 | void *ptr; | |
19950 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
19951 | _v = 0; | |
19952 | PyErr_Clear(); | |
19953 | } else { | |
19954 | _v = 1; | |
19955 | } | |
19956 | } | |
19957 | if (_v) { | |
19958 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
19959 | } | |
19960 | } | |
19961 | } | |
19962 | ||
19963 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
19964 | return NULL; | |
19965 | } | |
19966 | ||
19967 | ||
19968 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
19969 | PyObject *resultobj; | |
19970 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19971 | wxDateTime *arg2 = 0 ; | |
19972 | bool result; | |
19973 | PyObject * obj0 = 0 ; | |
19974 | PyObject * obj1 = 0 ; | |
19975 | ||
19976 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
19977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19978 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19979 | if (arg2 == NULL) { | |
19980 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19981 | } | |
19982 | { | |
19983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19984 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2); | |
19985 | ||
19986 | wxPyEndAllowThreads(__tstate); | |
19987 | if (PyErr_Occurred()) SWIG_fail; | |
19988 | } | |
19989 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19990 | return resultobj; | |
19991 | fail: | |
19992 | return NULL; | |
19993 | } | |
19994 | ||
19995 | ||
19996 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
19997 | PyObject *resultobj; | |
19998 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19999 | wxDateTime *arg2 = 0 ; | |
20000 | bool result; | |
20001 | PyObject * obj0 = 0 ; | |
20002 | PyObject * obj1 = 0 ; | |
20003 | ||
20004 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
20005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20006 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20007 | if (arg2 == NULL) { | |
20008 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20009 | } | |
20010 | { | |
20011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20012 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2); | |
20013 | ||
20014 | wxPyEndAllowThreads(__tstate); | |
20015 | if (PyErr_Occurred()) SWIG_fail; | |
20016 | } | |
20017 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20018 | return resultobj; | |
20019 | fail: | |
20020 | return NULL; | |
20021 | } | |
20022 | ||
20023 | ||
20024 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20025 | PyObject *resultobj; | |
20026 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20027 | wxDateTime *arg2 = 0 ; | |
20028 | bool result; | |
20029 | PyObject * obj0 = 0 ; | |
20030 | PyObject * obj1 = 0 ; | |
20031 | ||
20032 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
20033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20034 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20035 | if (arg2 == NULL) { | |
20036 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20037 | } | |
20038 | { | |
20039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20040 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2); | |
20041 | ||
20042 | wxPyEndAllowThreads(__tstate); | |
20043 | if (PyErr_Occurred()) SWIG_fail; | |
20044 | } | |
20045 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20046 | return resultobj; | |
20047 | fail: | |
20048 | return NULL; | |
20049 | } | |
20050 | ||
20051 | ||
20052 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20053 | PyObject *resultobj; | |
20054 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20055 | wxDateTime *arg2 = 0 ; | |
20056 | bool result; | |
20057 | PyObject * obj0 = 0 ; | |
20058 | PyObject * obj1 = 0 ; | |
20059 | ||
20060 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
20061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20062 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20063 | if (arg2 == NULL) { | |
20064 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20065 | } | |
20066 | { | |
20067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20068 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2); | |
20069 | ||
20070 | wxPyEndAllowThreads(__tstate); | |
20071 | if (PyErr_Occurred()) SWIG_fail; | |
20072 | } | |
20073 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20074 | return resultobj; | |
20075 | fail: | |
20076 | return NULL; | |
20077 | } | |
20078 | ||
20079 | ||
20080 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20081 | PyObject *resultobj; | |
20082 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20083 | wxDateTime *arg2 = 0 ; | |
20084 | bool result; | |
20085 | PyObject * obj0 = 0 ; | |
20086 | PyObject * obj1 = 0 ; | |
20087 | ||
20088 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
20089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20090 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20091 | if (arg2 == NULL) { | |
20092 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20093 | } | |
20094 | { | |
20095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20096 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2); | |
20097 | ||
20098 | wxPyEndAllowThreads(__tstate); | |
20099 | if (PyErr_Occurred()) SWIG_fail; | |
20100 | } | |
20101 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20102 | return resultobj; | |
20103 | fail: | |
20104 | return NULL; | |
20105 | } | |
20106 | ||
20107 | ||
20108 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20109 | PyObject *resultobj; | |
20110 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20111 | wxDateTime *arg2 = 0 ; | |
20112 | bool result; | |
20113 | PyObject * obj0 = 0 ; | |
20114 | PyObject * obj1 = 0 ; | |
20115 | ||
20116 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
20117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20118 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20119 | if (arg2 == NULL) { | |
20120 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20121 | } | |
20122 | { | |
20123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20124 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2); | |
20125 | ||
20126 | wxPyEndAllowThreads(__tstate); | |
20127 | if (PyErr_Occurred()) SWIG_fail; | |
20128 | } | |
20129 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20130 | return resultobj; | |
20131 | fail: | |
20132 | return NULL; | |
20133 | } | |
20134 | ||
20135 | ||
20136 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20137 | PyObject *resultobj; | |
20138 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20139 | wxString *arg2 = 0 ; | |
20140 | int result; | |
20141 | bool temp2 = False ; | |
20142 | PyObject * obj0 = 0 ; | |
20143 | PyObject * obj1 = 0 ; | |
20144 | char *kwnames[] = { | |
20145 | (char *) "self",(char *) "date", NULL | |
20146 | }; | |
20147 | ||
20148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
20149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20150 | { | |
20151 | arg2 = wxString_in_helper(obj1); | |
20152 | if (arg2 == NULL) SWIG_fail; | |
20153 | temp2 = True; | |
20154 | } | |
20155 | { | |
20156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20157 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20158 | ||
20159 | wxPyEndAllowThreads(__tstate); | |
20160 | if (PyErr_Occurred()) SWIG_fail; | |
20161 | } | |
20162 | resultobj = SWIG_PyObj_FromInt((int)result); | |
20163 | { | |
20164 | if (temp2) | |
20165 | delete arg2; | |
20166 | } | |
20167 | return resultobj; | |
20168 | fail: | |
20169 | { | |
20170 | if (temp2) | |
20171 | delete arg2; | |
20172 | } | |
20173 | return NULL; | |
20174 | } | |
20175 | ||
20176 | ||
20177 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20178 | PyObject *resultobj; | |
20179 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20180 | wxString *arg2 = 0 ; | |
20181 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20182 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20183 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20184 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20185 | int result; | |
20186 | bool temp2 = False ; | |
20187 | bool temp3 = False ; | |
20188 | PyObject * obj0 = 0 ; | |
20189 | PyObject * obj1 = 0 ; | |
20190 | PyObject * obj2 = 0 ; | |
20191 | PyObject * obj3 = 0 ; | |
20192 | char *kwnames[] = { | |
20193 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20194 | }; | |
20195 | ||
20196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20198 | { | |
20199 | arg2 = wxString_in_helper(obj1); | |
20200 | if (arg2 == NULL) SWIG_fail; | |
20201 | temp2 = True; | |
20202 | } | |
20203 | if (obj2) { | |
20204 | { | |
20205 | arg3 = wxString_in_helper(obj2); | |
20206 | if (arg3 == NULL) SWIG_fail; | |
20207 | temp3 = True; | |
20208 | } | |
20209 | } | |
20210 | if (obj3) { | |
20211 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20212 | if (arg4 == NULL) { | |
20213 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20214 | } | |
20215 | } | |
20216 | { | |
20217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20218 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20219 | ||
20220 | wxPyEndAllowThreads(__tstate); | |
20221 | if (PyErr_Occurred()) SWIG_fail; | |
20222 | } | |
20223 | resultobj = SWIG_PyObj_FromInt((int)result); | |
20224 | { | |
20225 | if (temp2) | |
20226 | delete arg2; | |
20227 | } | |
20228 | { | |
20229 | if (temp3) | |
20230 | delete arg3; | |
20231 | } | |
20232 | return resultobj; | |
20233 | fail: | |
20234 | { | |
20235 | if (temp2) | |
20236 | delete arg2; | |
20237 | } | |
20238 | { | |
20239 | if (temp3) | |
20240 | delete arg3; | |
20241 | } | |
20242 | return NULL; | |
20243 | } | |
20244 | ||
20245 | ||
20246 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20247 | PyObject *resultobj; | |
20248 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20249 | wxString *arg2 = 0 ; | |
20250 | int result; | |
20251 | bool temp2 = False ; | |
20252 | PyObject * obj0 = 0 ; | |
20253 | PyObject * obj1 = 0 ; | |
20254 | char *kwnames[] = { | |
20255 | (char *) "self",(char *) "datetime", NULL | |
20256 | }; | |
20257 | ||
20258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
20259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20260 | { | |
20261 | arg2 = wxString_in_helper(obj1); | |
20262 | if (arg2 == NULL) SWIG_fail; | |
20263 | temp2 = True; | |
20264 | } | |
20265 | { | |
20266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20267 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20268 | ||
20269 | wxPyEndAllowThreads(__tstate); | |
20270 | if (PyErr_Occurred()) SWIG_fail; | |
20271 | } | |
20272 | resultobj = SWIG_PyObj_FromInt((int)result); | |
20273 | { | |
20274 | if (temp2) | |
20275 | delete arg2; | |
20276 | } | |
20277 | return resultobj; | |
20278 | fail: | |
20279 | { | |
20280 | if (temp2) | |
20281 | delete arg2; | |
20282 | } | |
20283 | return NULL; | |
20284 | } | |
20285 | ||
20286 | ||
20287 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20288 | PyObject *resultobj; | |
20289 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20290 | wxString *arg2 = 0 ; | |
20291 | int result; | |
20292 | bool temp2 = False ; | |
20293 | PyObject * obj0 = 0 ; | |
20294 | PyObject * obj1 = 0 ; | |
20295 | char *kwnames[] = { | |
20296 | (char *) "self",(char *) "date", NULL | |
20297 | }; | |
20298 | ||
20299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
20300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20301 | { | |
20302 | arg2 = wxString_in_helper(obj1); | |
20303 | if (arg2 == NULL) SWIG_fail; | |
20304 | temp2 = True; | |
20305 | } | |
20306 | { | |
20307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20308 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20309 | ||
20310 | wxPyEndAllowThreads(__tstate); | |
20311 | if (PyErr_Occurred()) SWIG_fail; | |
20312 | } | |
20313 | resultobj = SWIG_PyObj_FromInt((int)result); | |
20314 | { | |
20315 | if (temp2) | |
20316 | delete arg2; | |
20317 | } | |
20318 | return resultobj; | |
20319 | fail: | |
20320 | { | |
20321 | if (temp2) | |
20322 | delete arg2; | |
20323 | } | |
20324 | return NULL; | |
20325 | } | |
20326 | ||
20327 | ||
20328 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20329 | PyObject *resultobj; | |
20330 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20331 | wxString *arg2 = 0 ; | |
20332 | int result; | |
20333 | bool temp2 = False ; | |
20334 | PyObject * obj0 = 0 ; | |
20335 | PyObject * obj1 = 0 ; | |
20336 | char *kwnames[] = { | |
20337 | (char *) "self",(char *) "time", NULL | |
20338 | }; | |
20339 | ||
20340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
20341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20342 | { | |
20343 | arg2 = wxString_in_helper(obj1); | |
20344 | if (arg2 == NULL) SWIG_fail; | |
20345 | temp2 = True; | |
20346 | } | |
20347 | { | |
20348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20349 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20350 | ||
20351 | wxPyEndAllowThreads(__tstate); | |
20352 | if (PyErr_Occurred()) SWIG_fail; | |
20353 | } | |
20354 | resultobj = SWIG_PyObj_FromInt((int)result); | |
20355 | { | |
20356 | if (temp2) | |
20357 | delete arg2; | |
20358 | } | |
20359 | return resultobj; | |
20360 | fail: | |
20361 | { | |
20362 | if (temp2) | |
20363 | delete arg2; | |
20364 | } | |
20365 | return NULL; | |
20366 | } | |
20367 | ||
20368 | ||
20369 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20370 | PyObject *resultobj; | |
20371 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20372 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
20373 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20374 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20375 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20376 | wxString result; | |
20377 | bool temp2 = False ; | |
20378 | bool temp3 = False ; | |
20379 | PyObject * obj0 = 0 ; | |
20380 | PyObject * obj1 = 0 ; | |
20381 | PyObject * obj2 = 0 ; | |
20382 | char *kwnames[] = { | |
20383 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
20384 | }; | |
20385 | ||
20386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20388 | if (obj1) { | |
20389 | { | |
20390 | arg2 = wxString_in_helper(obj1); | |
20391 | if (arg2 == NULL) SWIG_fail; | |
20392 | temp2 = True; | |
20393 | } | |
20394 | } | |
20395 | if (obj2) { | |
20396 | { | |
20397 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
20398 | temp3 = True; | |
20399 | } | |
20400 | } | |
20401 | { | |
20402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20403 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
20404 | ||
20405 | wxPyEndAllowThreads(__tstate); | |
20406 | if (PyErr_Occurred()) SWIG_fail; | |
20407 | } | |
20408 | { | |
20409 | #if wxUSE_UNICODE | |
20410 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20411 | #else | |
20412 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20413 | #endif | |
20414 | } | |
20415 | { | |
20416 | if (temp2) | |
20417 | delete arg2; | |
20418 | } | |
20419 | { | |
20420 | if (temp3) delete arg3; | |
20421 | } | |
20422 | return resultobj; | |
20423 | fail: | |
20424 | { | |
20425 | if (temp2) | |
20426 | delete arg2; | |
20427 | } | |
20428 | { | |
20429 | if (temp3) delete arg3; | |
20430 | } | |
20431 | return NULL; | |
20432 | } | |
20433 | ||
20434 | ||
20435 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20436 | PyObject *resultobj; | |
20437 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20438 | wxString result; | |
20439 | PyObject * obj0 = 0 ; | |
20440 | char *kwnames[] = { | |
20441 | (char *) "self", NULL | |
20442 | }; | |
20443 | ||
20444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
20445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20446 | { | |
20447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20448 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
20449 | ||
20450 | wxPyEndAllowThreads(__tstate); | |
20451 | if (PyErr_Occurred()) SWIG_fail; | |
20452 | } | |
20453 | { | |
20454 | #if wxUSE_UNICODE | |
20455 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20456 | #else | |
20457 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20458 | #endif | |
20459 | } | |
20460 | return resultobj; | |
20461 | fail: | |
20462 | return NULL; | |
20463 | } | |
20464 | ||
20465 | ||
20466 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20467 | PyObject *resultobj; | |
20468 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20469 | wxString result; | |
20470 | PyObject * obj0 = 0 ; | |
20471 | char *kwnames[] = { | |
20472 | (char *) "self", NULL | |
20473 | }; | |
20474 | ||
20475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
20476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20477 | { | |
20478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20479 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
20480 | ||
20481 | wxPyEndAllowThreads(__tstate); | |
20482 | if (PyErr_Occurred()) SWIG_fail; | |
20483 | } | |
20484 | { | |
20485 | #if wxUSE_UNICODE | |
20486 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20487 | #else | |
20488 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20489 | #endif | |
20490 | } | |
20491 | return resultobj; | |
20492 | fail: | |
20493 | return NULL; | |
20494 | } | |
20495 | ||
20496 | ||
20497 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20498 | PyObject *resultobj; | |
20499 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20500 | wxString result; | |
20501 | PyObject * obj0 = 0 ; | |
20502 | char *kwnames[] = { | |
20503 | (char *) "self", NULL | |
20504 | }; | |
20505 | ||
20506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
20507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20508 | { | |
20509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20510 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
20511 | ||
20512 | wxPyEndAllowThreads(__tstate); | |
20513 | if (PyErr_Occurred()) SWIG_fail; | |
20514 | } | |
20515 | { | |
20516 | #if wxUSE_UNICODE | |
20517 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20518 | #else | |
20519 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20520 | #endif | |
20521 | } | |
20522 | return resultobj; | |
20523 | fail: | |
20524 | return NULL; | |
20525 | } | |
20526 | ||
20527 | ||
20528 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20529 | PyObject *resultobj; | |
20530 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20531 | wxString result; | |
20532 | PyObject * obj0 = 0 ; | |
20533 | char *kwnames[] = { | |
20534 | (char *) "self", NULL | |
20535 | }; | |
20536 | ||
20537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
20538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20539 | { | |
20540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20541 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
20542 | ||
20543 | wxPyEndAllowThreads(__tstate); | |
20544 | if (PyErr_Occurred()) SWIG_fail; | |
20545 | } | |
20546 | { | |
20547 | #if wxUSE_UNICODE | |
20548 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20549 | #else | |
20550 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20551 | #endif | |
20552 | } | |
20553 | return resultobj; | |
20554 | fail: | |
20555 | return NULL; | |
20556 | } | |
20557 | ||
20558 | ||
20559 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
20560 | PyObject *obj; | |
20561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20562 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
20563 | Py_INCREF(obj); | |
20564 | return Py_BuildValue((char *)""); | |
20565 | } | |
20566 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20567 | PyObject *resultobj; | |
20568 | long arg1 ; | |
20569 | wxTimeSpan result; | |
20570 | PyObject * obj0 = 0 ; | |
20571 | char *kwnames[] = { | |
20572 | (char *) "sec", NULL | |
20573 | }; | |
20574 | ||
20575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
20576 | { | |
20577 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20578 | if (PyErr_Occurred()) SWIG_fail; | |
20579 | } | |
20580 | { | |
20581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20582 | result = wxTimeSpan::Seconds(arg1); | |
20583 | ||
20584 | wxPyEndAllowThreads(__tstate); | |
20585 | if (PyErr_Occurred()) SWIG_fail; | |
20586 | } | |
20587 | { | |
20588 | wxTimeSpan * resultptr; | |
20589 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20590 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20591 | } | |
20592 | return resultobj; | |
20593 | fail: | |
20594 | return NULL; | |
20595 | } | |
20596 | ||
20597 | ||
20598 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20599 | PyObject *resultobj; | |
20600 | wxTimeSpan result; | |
20601 | char *kwnames[] = { | |
20602 | NULL | |
20603 | }; | |
20604 | ||
20605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
20606 | { | |
20607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20608 | result = wxTimeSpan::Second(); | |
20609 | ||
20610 | wxPyEndAllowThreads(__tstate); | |
20611 | if (PyErr_Occurred()) SWIG_fail; | |
20612 | } | |
20613 | { | |
20614 | wxTimeSpan * resultptr; | |
20615 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20616 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20617 | } | |
20618 | return resultobj; | |
20619 | fail: | |
20620 | return NULL; | |
20621 | } | |
20622 | ||
20623 | ||
20624 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20625 | PyObject *resultobj; | |
20626 | long arg1 ; | |
20627 | wxTimeSpan result; | |
20628 | PyObject * obj0 = 0 ; | |
20629 | char *kwnames[] = { | |
20630 | (char *) "min", NULL | |
20631 | }; | |
20632 | ||
20633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
20634 | { | |
20635 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20636 | if (PyErr_Occurred()) SWIG_fail; | |
20637 | } | |
20638 | { | |
20639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20640 | result = wxTimeSpan::Minutes(arg1); | |
20641 | ||
20642 | wxPyEndAllowThreads(__tstate); | |
20643 | if (PyErr_Occurred()) SWIG_fail; | |
20644 | } | |
20645 | { | |
20646 | wxTimeSpan * resultptr; | |
20647 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20648 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20649 | } | |
20650 | return resultobj; | |
20651 | fail: | |
20652 | return NULL; | |
20653 | } | |
20654 | ||
20655 | ||
20656 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20657 | PyObject *resultobj; | |
20658 | wxTimeSpan result; | |
20659 | char *kwnames[] = { | |
20660 | NULL | |
20661 | }; | |
20662 | ||
20663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
20664 | { | |
20665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20666 | result = wxTimeSpan::Minute(); | |
20667 | ||
20668 | wxPyEndAllowThreads(__tstate); | |
20669 | if (PyErr_Occurred()) SWIG_fail; | |
20670 | } | |
20671 | { | |
20672 | wxTimeSpan * resultptr; | |
20673 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20674 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20675 | } | |
20676 | return resultobj; | |
20677 | fail: | |
20678 | return NULL; | |
20679 | } | |
20680 | ||
20681 | ||
20682 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20683 | PyObject *resultobj; | |
20684 | long arg1 ; | |
20685 | wxTimeSpan result; | |
20686 | PyObject * obj0 = 0 ; | |
20687 | char *kwnames[] = { | |
20688 | (char *) "hours", NULL | |
20689 | }; | |
20690 | ||
20691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
20692 | { | |
20693 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20694 | if (PyErr_Occurred()) SWIG_fail; | |
20695 | } | |
20696 | { | |
20697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20698 | result = wxTimeSpan::Hours(arg1); | |
20699 | ||
20700 | wxPyEndAllowThreads(__tstate); | |
20701 | if (PyErr_Occurred()) SWIG_fail; | |
20702 | } | |
20703 | { | |
20704 | wxTimeSpan * resultptr; | |
20705 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20706 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20707 | } | |
20708 | return resultobj; | |
20709 | fail: | |
20710 | return NULL; | |
20711 | } | |
20712 | ||
20713 | ||
20714 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20715 | PyObject *resultobj; | |
20716 | wxTimeSpan result; | |
20717 | char *kwnames[] = { | |
20718 | NULL | |
20719 | }; | |
20720 | ||
20721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
20722 | { | |
20723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20724 | result = wxTimeSpan::Hour(); | |
20725 | ||
20726 | wxPyEndAllowThreads(__tstate); | |
20727 | if (PyErr_Occurred()) SWIG_fail; | |
20728 | } | |
20729 | { | |
20730 | wxTimeSpan * resultptr; | |
20731 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20732 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20733 | } | |
20734 | return resultobj; | |
20735 | fail: | |
20736 | return NULL; | |
20737 | } | |
20738 | ||
20739 | ||
20740 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20741 | PyObject *resultobj; | |
20742 | long arg1 ; | |
20743 | wxTimeSpan result; | |
20744 | PyObject * obj0 = 0 ; | |
20745 | char *kwnames[] = { | |
20746 | (char *) "days", NULL | |
20747 | }; | |
20748 | ||
20749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
20750 | { | |
20751 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20752 | if (PyErr_Occurred()) SWIG_fail; | |
20753 | } | |
20754 | { | |
20755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20756 | result = wxTimeSpan::Days(arg1); | |
20757 | ||
20758 | wxPyEndAllowThreads(__tstate); | |
20759 | if (PyErr_Occurred()) SWIG_fail; | |
20760 | } | |
20761 | { | |
20762 | wxTimeSpan * resultptr; | |
20763 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20764 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20765 | } | |
20766 | return resultobj; | |
20767 | fail: | |
20768 | return NULL; | |
20769 | } | |
20770 | ||
20771 | ||
20772 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20773 | PyObject *resultobj; | |
20774 | wxTimeSpan result; | |
20775 | char *kwnames[] = { | |
20776 | NULL | |
20777 | }; | |
20778 | ||
20779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
20780 | { | |
20781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20782 | result = wxTimeSpan::Day(); | |
20783 | ||
20784 | wxPyEndAllowThreads(__tstate); | |
20785 | if (PyErr_Occurred()) SWIG_fail; | |
20786 | } | |
20787 | { | |
20788 | wxTimeSpan * resultptr; | |
20789 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20790 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20791 | } | |
20792 | return resultobj; | |
20793 | fail: | |
20794 | return NULL; | |
20795 | } | |
20796 | ||
20797 | ||
20798 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20799 | PyObject *resultobj; | |
20800 | long arg1 ; | |
20801 | wxTimeSpan result; | |
20802 | PyObject * obj0 = 0 ; | |
20803 | char *kwnames[] = { | |
20804 | (char *) "days", NULL | |
20805 | }; | |
20806 | ||
20807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
20808 | { | |
20809 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20810 | if (PyErr_Occurred()) SWIG_fail; | |
20811 | } | |
20812 | { | |
20813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20814 | result = wxTimeSpan::Weeks(arg1); | |
20815 | ||
20816 | wxPyEndAllowThreads(__tstate); | |
20817 | if (PyErr_Occurred()) SWIG_fail; | |
20818 | } | |
20819 | { | |
20820 | wxTimeSpan * resultptr; | |
20821 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20822 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20823 | } | |
20824 | return resultobj; | |
20825 | fail: | |
20826 | return NULL; | |
20827 | } | |
20828 | ||
20829 | ||
20830 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20831 | PyObject *resultobj; | |
20832 | wxTimeSpan result; | |
20833 | char *kwnames[] = { | |
20834 | NULL | |
20835 | }; | |
20836 | ||
20837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
20838 | { | |
20839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20840 | result = wxTimeSpan::Week(); | |
20841 | ||
20842 | wxPyEndAllowThreads(__tstate); | |
20843 | if (PyErr_Occurred()) SWIG_fail; | |
20844 | } | |
20845 | { | |
20846 | wxTimeSpan * resultptr; | |
20847 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20848 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20849 | } | |
20850 | return resultobj; | |
20851 | fail: | |
20852 | return NULL; | |
20853 | } | |
20854 | ||
20855 | ||
20856 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20857 | PyObject *resultobj; | |
20858 | long arg1 = (long) 0 ; | |
20859 | long arg2 = (long) 0 ; | |
20860 | long arg3 = (long) 0 ; | |
20861 | long arg4 = (long) 0 ; | |
20862 | wxTimeSpan *result; | |
20863 | PyObject * obj0 = 0 ; | |
20864 | PyObject * obj1 = 0 ; | |
20865 | PyObject * obj2 = 0 ; | |
20866 | PyObject * obj3 = 0 ; | |
20867 | char *kwnames[] = { | |
20868 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
20869 | }; | |
20870 | ||
20871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20872 | if (obj0) { | |
20873 | { | |
20874 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | } | |
20877 | } | |
20878 | if (obj1) { | |
20879 | { | |
20880 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20881 | if (PyErr_Occurred()) SWIG_fail; | |
20882 | } | |
20883 | } | |
20884 | if (obj2) { | |
20885 | { | |
20886 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20887 | if (PyErr_Occurred()) SWIG_fail; | |
20888 | } | |
20889 | } | |
20890 | if (obj3) { | |
20891 | { | |
20892 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
20893 | if (PyErr_Occurred()) SWIG_fail; | |
20894 | } | |
20895 | } | |
20896 | { | |
20897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20898 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
20899 | ||
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
20903 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1); | |
20904 | return resultobj; | |
20905 | fail: | |
20906 | return NULL; | |
20907 | } | |
20908 | ||
20909 | ||
20910 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20911 | PyObject *resultobj; | |
20912 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20913 | PyObject * obj0 = 0 ; | |
20914 | char *kwnames[] = { | |
20915 | (char *) "self", NULL | |
20916 | }; | |
20917 | ||
20918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
20919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20920 | { | |
20921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20922 | delete arg1; | |
20923 | ||
20924 | wxPyEndAllowThreads(__tstate); | |
20925 | if (PyErr_Occurred()) SWIG_fail; | |
20926 | } | |
20927 | Py_INCREF(Py_None); resultobj = Py_None; | |
20928 | return resultobj; | |
20929 | fail: | |
20930 | return NULL; | |
20931 | } | |
20932 | ||
20933 | ||
20934 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20935 | PyObject *resultobj; | |
20936 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20937 | wxTimeSpan *arg2 = 0 ; | |
20938 | wxTimeSpan *result; | |
20939 | PyObject * obj0 = 0 ; | |
20940 | PyObject * obj1 = 0 ; | |
20941 | char *kwnames[] = { | |
20942 | (char *) "self",(char *) "diff", NULL | |
20943 | }; | |
20944 | ||
20945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
20946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20947 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20948 | if (arg2 == NULL) { | |
20949 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20950 | } | |
20951 | { | |
20952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20953 | { | |
20954 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
20955 | result = (wxTimeSpan *) &_result_ref; | |
20956 | } | |
20957 | ||
20958 | wxPyEndAllowThreads(__tstate); | |
20959 | if (PyErr_Occurred()) SWIG_fail; | |
20960 | } | |
20961 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
20962 | return resultobj; | |
20963 | fail: | |
20964 | return NULL; | |
20965 | } | |
20966 | ||
20967 | ||
20968 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20969 | PyObject *resultobj; | |
20970 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20971 | wxTimeSpan *arg2 = 0 ; | |
20972 | wxTimeSpan *result; | |
20973 | PyObject * obj0 = 0 ; | |
20974 | PyObject * obj1 = 0 ; | |
20975 | char *kwnames[] = { | |
20976 | (char *) "self",(char *) "diff", NULL | |
20977 | }; | |
20978 | ||
20979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20981 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20982 | if (arg2 == NULL) { | |
20983 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20984 | } | |
20985 | { | |
20986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20987 | { | |
20988 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
20989 | result = (wxTimeSpan *) &_result_ref; | |
20990 | } | |
20991 | ||
20992 | wxPyEndAllowThreads(__tstate); | |
20993 | if (PyErr_Occurred()) SWIG_fail; | |
20994 | } | |
20995 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
20996 | return resultobj; | |
20997 | fail: | |
20998 | return NULL; | |
20999 | } | |
21000 | ||
21001 | ||
21002 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21003 | PyObject *resultobj; | |
21004 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21005 | int arg2 ; | |
21006 | wxTimeSpan *result; | |
21007 | PyObject * obj0 = 0 ; | |
21008 | PyObject * obj1 = 0 ; | |
21009 | char *kwnames[] = { | |
21010 | (char *) "self",(char *) "n", NULL | |
21011 | }; | |
21012 | ||
21013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
21014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21015 | { | |
21016 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21017 | if (PyErr_Occurred()) SWIG_fail; | |
21018 | } | |
21019 | { | |
21020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21021 | { | |
21022 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21023 | result = (wxTimeSpan *) &_result_ref; | |
21024 | } | |
21025 | ||
21026 | wxPyEndAllowThreads(__tstate); | |
21027 | if (PyErr_Occurred()) SWIG_fail; | |
21028 | } | |
21029 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21030 | return resultobj; | |
21031 | fail: | |
21032 | return NULL; | |
21033 | } | |
21034 | ||
21035 | ||
21036 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21037 | PyObject *resultobj; | |
21038 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21039 | wxTimeSpan *result; | |
21040 | PyObject * obj0 = 0 ; | |
21041 | char *kwnames[] = { | |
21042 | (char *) "self", NULL | |
21043 | }; | |
21044 | ||
21045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
21046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21047 | { | |
21048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21049 | { | |
21050 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21051 | result = (wxTimeSpan *) &_result_ref; | |
21052 | } | |
21053 | ||
21054 | wxPyEndAllowThreads(__tstate); | |
21055 | if (PyErr_Occurred()) SWIG_fail; | |
21056 | } | |
21057 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21058 | return resultobj; | |
21059 | fail: | |
21060 | return NULL; | |
21061 | } | |
21062 | ||
21063 | ||
21064 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21065 | PyObject *resultobj; | |
21066 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21067 | wxTimeSpan result; | |
21068 | PyObject * obj0 = 0 ; | |
21069 | char *kwnames[] = { | |
21070 | (char *) "self", NULL | |
21071 | }; | |
21072 | ||
21073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
21074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21075 | { | |
21076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21077 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21078 | ||
21079 | wxPyEndAllowThreads(__tstate); | |
21080 | if (PyErr_Occurred()) SWIG_fail; | |
21081 | } | |
21082 | { | |
21083 | wxTimeSpan * resultptr; | |
21084 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21085 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21086 | } | |
21087 | return resultobj; | |
21088 | fail: | |
21089 | return NULL; | |
21090 | } | |
21091 | ||
21092 | ||
21093 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21094 | PyObject *resultobj; | |
21095 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21096 | wxTimeSpan *arg2 = 0 ; | |
21097 | wxTimeSpan *result; | |
21098 | PyObject * obj0 = 0 ; | |
21099 | PyObject * obj1 = 0 ; | |
21100 | char *kwnames[] = { | |
21101 | (char *) "self",(char *) "diff", NULL | |
21102 | }; | |
21103 | ||
21104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21106 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21107 | if (arg2 == NULL) { | |
21108 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21109 | } | |
21110 | { | |
21111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21112 | { | |
21113 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21114 | result = (wxTimeSpan *) &_result_ref; | |
21115 | } | |
21116 | ||
21117 | wxPyEndAllowThreads(__tstate); | |
21118 | if (PyErr_Occurred()) SWIG_fail; | |
21119 | } | |
21120 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21121 | return resultobj; | |
21122 | fail: | |
21123 | return NULL; | |
21124 | } | |
21125 | ||
21126 | ||
21127 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21128 | PyObject *resultobj; | |
21129 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21130 | wxTimeSpan *arg2 = 0 ; | |
21131 | wxTimeSpan *result; | |
21132 | PyObject * obj0 = 0 ; | |
21133 | PyObject * obj1 = 0 ; | |
21134 | char *kwnames[] = { | |
21135 | (char *) "self",(char *) "diff", NULL | |
21136 | }; | |
21137 | ||
21138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21140 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21141 | if (arg2 == NULL) { | |
21142 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21143 | } | |
21144 | { | |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21146 | { | |
21147 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21148 | result = (wxTimeSpan *) &_result_ref; | |
21149 | } | |
21150 | ||
21151 | wxPyEndAllowThreads(__tstate); | |
21152 | if (PyErr_Occurred()) SWIG_fail; | |
21153 | } | |
21154 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21155 | return resultobj; | |
21156 | fail: | |
21157 | return NULL; | |
21158 | } | |
21159 | ||
21160 | ||
21161 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21162 | PyObject *resultobj; | |
21163 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21164 | int arg2 ; | |
21165 | wxTimeSpan *result; | |
21166 | PyObject * obj0 = 0 ; | |
21167 | PyObject * obj1 = 0 ; | |
21168 | char *kwnames[] = { | |
21169 | (char *) "self",(char *) "n", NULL | |
21170 | }; | |
21171 | ||
21172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
21173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21174 | { | |
21175 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21176 | if (PyErr_Occurred()) SWIG_fail; | |
21177 | } | |
21178 | { | |
21179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21180 | { | |
21181 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21182 | result = (wxTimeSpan *) &_result_ref; | |
21183 | } | |
21184 | ||
21185 | wxPyEndAllowThreads(__tstate); | |
21186 | if (PyErr_Occurred()) SWIG_fail; | |
21187 | } | |
21188 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21189 | return resultobj; | |
21190 | fail: | |
21191 | return NULL; | |
21192 | } | |
21193 | ||
21194 | ||
21195 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21196 | PyObject *resultobj; | |
21197 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21198 | wxTimeSpan *result; | |
21199 | PyObject * obj0 = 0 ; | |
21200 | char *kwnames[] = { | |
21201 | (char *) "self", NULL | |
21202 | }; | |
21203 | ||
21204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
21205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21206 | { | |
21207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21208 | { | |
21209 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21210 | result = (wxTimeSpan *) &_result_ref; | |
21211 | } | |
21212 | ||
21213 | wxPyEndAllowThreads(__tstate); | |
21214 | if (PyErr_Occurred()) SWIG_fail; | |
21215 | } | |
21216 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21217 | return resultobj; | |
21218 | fail: | |
21219 | return NULL; | |
21220 | } | |
21221 | ||
21222 | ||
21223 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21224 | PyObject *resultobj; | |
21225 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21226 | wxTimeSpan *arg2 = 0 ; | |
21227 | wxTimeSpan result; | |
21228 | PyObject * obj0 = 0 ; | |
21229 | PyObject * obj1 = 0 ; | |
21230 | char *kwnames[] = { | |
21231 | (char *) "self",(char *) "other", NULL | |
21232 | }; | |
21233 | ||
21234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21236 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21237 | if (arg2 == NULL) { | |
21238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21239 | } | |
21240 | { | |
21241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21242 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21243 | ||
21244 | wxPyEndAllowThreads(__tstate); | |
21245 | if (PyErr_Occurred()) SWIG_fail; | |
21246 | } | |
21247 | { | |
21248 | wxTimeSpan * resultptr; | |
21249 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21250 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21251 | } | |
21252 | return resultobj; | |
21253 | fail: | |
21254 | return NULL; | |
21255 | } | |
21256 | ||
21257 | ||
21258 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21259 | PyObject *resultobj; | |
21260 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21261 | wxTimeSpan *arg2 = 0 ; | |
21262 | wxTimeSpan result; | |
21263 | PyObject * obj0 = 0 ; | |
21264 | PyObject * obj1 = 0 ; | |
21265 | char *kwnames[] = { | |
21266 | (char *) "self",(char *) "other", NULL | |
21267 | }; | |
21268 | ||
21269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21271 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21272 | if (arg2 == NULL) { | |
21273 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21274 | } | |
21275 | { | |
21276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21277 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21278 | ||
21279 | wxPyEndAllowThreads(__tstate); | |
21280 | if (PyErr_Occurred()) SWIG_fail; | |
21281 | } | |
21282 | { | |
21283 | wxTimeSpan * resultptr; | |
21284 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21285 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21286 | } | |
21287 | return resultobj; | |
21288 | fail: | |
21289 | return NULL; | |
21290 | } | |
21291 | ||
21292 | ||
21293 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21294 | PyObject *resultobj; | |
21295 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21296 | int arg2 ; | |
21297 | wxTimeSpan result; | |
21298 | PyObject * obj0 = 0 ; | |
21299 | PyObject * obj1 = 0 ; | |
21300 | char *kwnames[] = { | |
21301 | (char *) "self",(char *) "n", NULL | |
21302 | }; | |
21303 | ||
21304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
21305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21306 | { | |
21307 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21308 | if (PyErr_Occurred()) SWIG_fail; | |
21309 | } | |
21310 | { | |
21311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21312 | result = wxTimeSpan___mul__(arg1,arg2); | |
21313 | ||
21314 | wxPyEndAllowThreads(__tstate); | |
21315 | if (PyErr_Occurred()) SWIG_fail; | |
21316 | } | |
21317 | { | |
21318 | wxTimeSpan * resultptr; | |
21319 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21320 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21321 | } | |
21322 | return resultobj; | |
21323 | fail: | |
21324 | return NULL; | |
21325 | } | |
21326 | ||
21327 | ||
21328 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21329 | PyObject *resultobj; | |
21330 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21331 | int arg2 ; | |
21332 | wxTimeSpan result; | |
21333 | PyObject * obj0 = 0 ; | |
21334 | PyObject * obj1 = 0 ; | |
21335 | char *kwnames[] = { | |
21336 | (char *) "self",(char *) "n", NULL | |
21337 | }; | |
21338 | ||
21339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
21340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21341 | { | |
21342 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21343 | if (PyErr_Occurred()) SWIG_fail; | |
21344 | } | |
21345 | { | |
21346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21347 | result = wxTimeSpan___rmul__(arg1,arg2); | |
21348 | ||
21349 | wxPyEndAllowThreads(__tstate); | |
21350 | if (PyErr_Occurred()) SWIG_fail; | |
21351 | } | |
21352 | { | |
21353 | wxTimeSpan * resultptr; | |
21354 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21355 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21356 | } | |
21357 | return resultobj; | |
21358 | fail: | |
21359 | return NULL; | |
21360 | } | |
21361 | ||
21362 | ||
21363 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21364 | PyObject *resultobj; | |
21365 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21366 | wxTimeSpan *arg2 = 0 ; | |
21367 | bool result; | |
21368 | PyObject * obj0 = 0 ; | |
21369 | PyObject * obj1 = 0 ; | |
21370 | char *kwnames[] = { | |
21371 | (char *) "self",(char *) "other", NULL | |
21372 | }; | |
21373 | ||
21374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
21375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21376 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21377 | if (arg2 == NULL) { | |
21378 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21379 | } | |
21380 | { | |
21381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21382 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2); | |
21383 | ||
21384 | wxPyEndAllowThreads(__tstate); | |
21385 | if (PyErr_Occurred()) SWIG_fail; | |
21386 | } | |
21387 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21388 | return resultobj; | |
21389 | fail: | |
21390 | return NULL; | |
21391 | } | |
21392 | ||
21393 | ||
21394 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21395 | PyObject *resultobj; | |
21396 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21397 | wxTimeSpan *arg2 = 0 ; | |
21398 | bool result; | |
21399 | PyObject * obj0 = 0 ; | |
21400 | PyObject * obj1 = 0 ; | |
21401 | char *kwnames[] = { | |
21402 | (char *) "self",(char *) "other", NULL | |
21403 | }; | |
21404 | ||
21405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
21406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21407 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21408 | if (arg2 == NULL) { | |
21409 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21410 | } | |
21411 | { | |
21412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21413 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2); | |
21414 | ||
21415 | wxPyEndAllowThreads(__tstate); | |
21416 | if (PyErr_Occurred()) SWIG_fail; | |
21417 | } | |
21418 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21419 | return resultobj; | |
21420 | fail: | |
21421 | return NULL; | |
21422 | } | |
21423 | ||
21424 | ||
21425 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21426 | PyObject *resultobj; | |
21427 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21428 | wxTimeSpan *arg2 = 0 ; | |
21429 | bool result; | |
21430 | PyObject * obj0 = 0 ; | |
21431 | PyObject * obj1 = 0 ; | |
21432 | char *kwnames[] = { | |
21433 | (char *) "self",(char *) "other", NULL | |
21434 | }; | |
21435 | ||
21436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
21437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21438 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21439 | if (arg2 == NULL) { | |
21440 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21441 | } | |
21442 | { | |
21443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21444 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2); | |
21445 | ||
21446 | wxPyEndAllowThreads(__tstate); | |
21447 | if (PyErr_Occurred()) SWIG_fail; | |
21448 | } | |
21449 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21450 | return resultobj; | |
21451 | fail: | |
21452 | return NULL; | |
21453 | } | |
21454 | ||
21455 | ||
21456 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21457 | PyObject *resultobj; | |
21458 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21459 | wxTimeSpan *arg2 = 0 ; | |
21460 | bool result; | |
21461 | PyObject * obj0 = 0 ; | |
21462 | PyObject * obj1 = 0 ; | |
21463 | char *kwnames[] = { | |
21464 | (char *) "self",(char *) "other", NULL | |
21465 | }; | |
21466 | ||
21467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
21468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21469 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21470 | if (arg2 == NULL) { | |
21471 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21472 | } | |
21473 | { | |
21474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21475 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2); | |
21476 | ||
21477 | wxPyEndAllowThreads(__tstate); | |
21478 | if (PyErr_Occurred()) SWIG_fail; | |
21479 | } | |
21480 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21481 | return resultobj; | |
21482 | fail: | |
21483 | return NULL; | |
21484 | } | |
21485 | ||
21486 | ||
21487 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21488 | PyObject *resultobj; | |
21489 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21490 | wxTimeSpan *arg2 = 0 ; | |
21491 | bool result; | |
21492 | PyObject * obj0 = 0 ; | |
21493 | PyObject * obj1 = 0 ; | |
21494 | char *kwnames[] = { | |
21495 | (char *) "self",(char *) "other", NULL | |
21496 | }; | |
21497 | ||
21498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
21499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21500 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21501 | if (arg2 == NULL) { | |
21502 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21503 | } | |
21504 | { | |
21505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21506 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2); | |
21507 | ||
21508 | wxPyEndAllowThreads(__tstate); | |
21509 | if (PyErr_Occurred()) SWIG_fail; | |
21510 | } | |
21511 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21512 | return resultobj; | |
21513 | fail: | |
21514 | return NULL; | |
21515 | } | |
21516 | ||
21517 | ||
21518 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21519 | PyObject *resultobj; | |
21520 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21521 | wxTimeSpan *arg2 = 0 ; | |
21522 | bool result; | |
21523 | PyObject * obj0 = 0 ; | |
21524 | PyObject * obj1 = 0 ; | |
21525 | char *kwnames[] = { | |
21526 | (char *) "self",(char *) "other", NULL | |
21527 | }; | |
21528 | ||
21529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
21530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21531 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21532 | if (arg2 == NULL) { | |
21533 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21534 | } | |
21535 | { | |
21536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21537 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2); | |
21538 | ||
21539 | wxPyEndAllowThreads(__tstate); | |
21540 | if (PyErr_Occurred()) SWIG_fail; | |
21541 | } | |
21542 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21543 | return resultobj; | |
21544 | fail: | |
21545 | return NULL; | |
21546 | } | |
21547 | ||
21548 | ||
21549 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21550 | PyObject *resultobj; | |
21551 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21552 | bool result; | |
21553 | PyObject * obj0 = 0 ; | |
21554 | char *kwnames[] = { | |
21555 | (char *) "self", NULL | |
21556 | }; | |
21557 | ||
21558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
21559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21560 | { | |
21561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21562 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
21563 | ||
21564 | wxPyEndAllowThreads(__tstate); | |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
21566 | } | |
21567 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21568 | return resultobj; | |
21569 | fail: | |
21570 | return NULL; | |
21571 | } | |
21572 | ||
21573 | ||
21574 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21575 | PyObject *resultobj; | |
21576 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21577 | bool result; | |
21578 | PyObject * obj0 = 0 ; | |
21579 | char *kwnames[] = { | |
21580 | (char *) "self", NULL | |
21581 | }; | |
21582 | ||
21583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
21584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21585 | { | |
21586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21587 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
21588 | ||
21589 | wxPyEndAllowThreads(__tstate); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
21591 | } | |
21592 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21593 | return resultobj; | |
21594 | fail: | |
21595 | return NULL; | |
21596 | } | |
21597 | ||
21598 | ||
21599 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21600 | PyObject *resultobj; | |
21601 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21602 | bool result; | |
21603 | PyObject * obj0 = 0 ; | |
21604 | char *kwnames[] = { | |
21605 | (char *) "self", NULL | |
21606 | }; | |
21607 | ||
21608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
21609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21610 | { | |
21611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21612 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
21613 | ||
21614 | wxPyEndAllowThreads(__tstate); | |
21615 | if (PyErr_Occurred()) SWIG_fail; | |
21616 | } | |
21617 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21618 | return resultobj; | |
21619 | fail: | |
21620 | return NULL; | |
21621 | } | |
21622 | ||
21623 | ||
21624 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21625 | PyObject *resultobj; | |
21626 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21627 | wxTimeSpan *arg2 = 0 ; | |
21628 | bool result; | |
21629 | PyObject * obj0 = 0 ; | |
21630 | PyObject * obj1 = 0 ; | |
21631 | char *kwnames[] = { | |
21632 | (char *) "self",(char *) "ts", NULL | |
21633 | }; | |
21634 | ||
21635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
21636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21637 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21638 | if (arg2 == NULL) { | |
21639 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21640 | } | |
21641 | { | |
21642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21643 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
21644 | ||
21645 | wxPyEndAllowThreads(__tstate); | |
21646 | if (PyErr_Occurred()) SWIG_fail; | |
21647 | } | |
21648 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21649 | return resultobj; | |
21650 | fail: | |
21651 | return NULL; | |
21652 | } | |
21653 | ||
21654 | ||
21655 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21656 | PyObject *resultobj; | |
21657 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21658 | wxTimeSpan *arg2 = 0 ; | |
21659 | bool result; | |
21660 | PyObject * obj0 = 0 ; | |
21661 | PyObject * obj1 = 0 ; | |
21662 | char *kwnames[] = { | |
21663 | (char *) "self",(char *) "ts", NULL | |
21664 | }; | |
21665 | ||
21666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
21667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21668 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21669 | if (arg2 == NULL) { | |
21670 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21671 | } | |
21672 | { | |
21673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21674 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
21675 | ||
21676 | wxPyEndAllowThreads(__tstate); | |
21677 | if (PyErr_Occurred()) SWIG_fail; | |
21678 | } | |
21679 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21680 | return resultobj; | |
21681 | fail: | |
21682 | return NULL; | |
21683 | } | |
21684 | ||
21685 | ||
21686 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21687 | PyObject *resultobj; | |
21688 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21689 | wxTimeSpan *arg2 = 0 ; | |
21690 | bool result; | |
21691 | PyObject * obj0 = 0 ; | |
21692 | PyObject * obj1 = 0 ; | |
21693 | char *kwnames[] = { | |
21694 | (char *) "self",(char *) "t", NULL | |
21695 | }; | |
21696 | ||
21697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
21698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21699 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21700 | if (arg2 == NULL) { | |
21701 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21702 | } | |
21703 | { | |
21704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21705 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
21706 | ||
21707 | wxPyEndAllowThreads(__tstate); | |
21708 | if (PyErr_Occurred()) SWIG_fail; | |
21709 | } | |
21710 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21711 | return resultobj; | |
21712 | fail: | |
21713 | return NULL; | |
21714 | } | |
21715 | ||
21716 | ||
21717 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21718 | PyObject *resultobj; | |
21719 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21720 | int result; | |
21721 | PyObject * obj0 = 0 ; | |
21722 | char *kwnames[] = { | |
21723 | (char *) "self", NULL | |
21724 | }; | |
21725 | ||
21726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
21727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21728 | { | |
21729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21730 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
21731 | ||
21732 | wxPyEndAllowThreads(__tstate); | |
21733 | if (PyErr_Occurred()) SWIG_fail; | |
21734 | } | |
21735 | resultobj = SWIG_PyObj_FromInt((int)result); | |
21736 | return resultobj; | |
21737 | fail: | |
21738 | return NULL; | |
21739 | } | |
21740 | ||
21741 | ||
21742 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21743 | PyObject *resultobj; | |
21744 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21745 | int result; | |
21746 | PyObject * obj0 = 0 ; | |
21747 | char *kwnames[] = { | |
21748 | (char *) "self", NULL | |
21749 | }; | |
21750 | ||
21751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
21752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21753 | { | |
21754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21755 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
21756 | ||
21757 | wxPyEndAllowThreads(__tstate); | |
21758 | if (PyErr_Occurred()) SWIG_fail; | |
21759 | } | |
21760 | resultobj = SWIG_PyObj_FromInt((int)result); | |
21761 | return resultobj; | |
21762 | fail: | |
21763 | return NULL; | |
21764 | } | |
21765 | ||
21766 | ||
21767 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21768 | PyObject *resultobj; | |
21769 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21770 | int result; | |
21771 | PyObject * obj0 = 0 ; | |
21772 | char *kwnames[] = { | |
21773 | (char *) "self", NULL | |
21774 | }; | |
21775 | ||
21776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
21777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21778 | { | |
21779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21780 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
21781 | ||
21782 | wxPyEndAllowThreads(__tstate); | |
21783 | if (PyErr_Occurred()) SWIG_fail; | |
21784 | } | |
21785 | resultobj = SWIG_PyObj_FromInt((int)result); | |
21786 | return resultobj; | |
21787 | fail: | |
21788 | return NULL; | |
21789 | } | |
21790 | ||
21791 | ||
21792 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21793 | PyObject *resultobj; | |
21794 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21795 | int result; | |
21796 | PyObject * obj0 = 0 ; | |
21797 | char *kwnames[] = { | |
21798 | (char *) "self", NULL | |
21799 | }; | |
21800 | ||
21801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
21802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21803 | { | |
21804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21805 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
21806 | ||
21807 | wxPyEndAllowThreads(__tstate); | |
21808 | if (PyErr_Occurred()) SWIG_fail; | |
21809 | } | |
21810 | resultobj = SWIG_PyObj_FromInt((int)result); | |
21811 | return resultobj; | |
21812 | fail: | |
21813 | return NULL; | |
21814 | } | |
21815 | ||
21816 | ||
21817 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21818 | PyObject *resultobj; | |
21819 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21820 | wxLongLong result; | |
21821 | PyObject * obj0 = 0 ; | |
21822 | char *kwnames[] = { | |
21823 | (char *) "self", NULL | |
21824 | }; | |
21825 | ||
21826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
21827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21828 | { | |
21829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21830 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
21831 | ||
21832 | wxPyEndAllowThreads(__tstate); | |
21833 | if (PyErr_Occurred()) SWIG_fail; | |
21834 | } | |
21835 | { | |
21836 | PyObject *hi, *lo, *shifter, *shifted; | |
21837 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
21838 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
21839 | shifter = PyLong_FromLong(32); | |
21840 | shifted = PyNumber_Lshift(hi, shifter); | |
21841 | resultobj = PyNumber_Or(shifted, lo); | |
21842 | Py_DECREF(hi); | |
21843 | Py_DECREF(lo); | |
21844 | Py_DECREF(shifter); | |
21845 | Py_DECREF(shifted); | |
21846 | } | |
21847 | return resultobj; | |
21848 | fail: | |
21849 | return NULL; | |
21850 | } | |
21851 | ||
21852 | ||
21853 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21854 | PyObject *resultobj; | |
21855 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21856 | wxLongLong result; | |
21857 | PyObject * obj0 = 0 ; | |
21858 | char *kwnames[] = { | |
21859 | (char *) "self", NULL | |
21860 | }; | |
21861 | ||
21862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
21863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21864 | { | |
21865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21866 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
21867 | ||
21868 | wxPyEndAllowThreads(__tstate); | |
21869 | if (PyErr_Occurred()) SWIG_fail; | |
21870 | } | |
21871 | { | |
21872 | PyObject *hi, *lo, *shifter, *shifted; | |
21873 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
21874 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
21875 | shifter = PyLong_FromLong(32); | |
21876 | shifted = PyNumber_Lshift(hi, shifter); | |
21877 | resultobj = PyNumber_Or(shifted, lo); | |
21878 | Py_DECREF(hi); | |
21879 | Py_DECREF(lo); | |
21880 | Py_DECREF(shifter); | |
21881 | Py_DECREF(shifted); | |
21882 | } | |
21883 | return resultobj; | |
21884 | fail: | |
21885 | return NULL; | |
21886 | } | |
21887 | ||
21888 | ||
21889 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21890 | PyObject *resultobj; | |
21891 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21892 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
21893 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21894 | wxString result; | |
21895 | bool temp2 = False ; | |
21896 | PyObject * obj0 = 0 ; | |
21897 | PyObject * obj1 = 0 ; | |
21898 | char *kwnames[] = { | |
21899 | (char *) "self",(char *) "format", NULL | |
21900 | }; | |
21901 | ||
21902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
21903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21904 | if (obj1) { | |
21905 | { | |
21906 | arg2 = wxString_in_helper(obj1); | |
21907 | if (arg2 == NULL) SWIG_fail; | |
21908 | temp2 = True; | |
21909 | } | |
21910 | } | |
21911 | { | |
21912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21913 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
21914 | ||
21915 | wxPyEndAllowThreads(__tstate); | |
21916 | if (PyErr_Occurred()) SWIG_fail; | |
21917 | } | |
21918 | { | |
21919 | #if wxUSE_UNICODE | |
21920 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21921 | #else | |
21922 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21923 | #endif | |
21924 | } | |
21925 | { | |
21926 | if (temp2) | |
21927 | delete arg2; | |
21928 | } | |
21929 | return resultobj; | |
21930 | fail: | |
21931 | { | |
21932 | if (temp2) | |
21933 | delete arg2; | |
21934 | } | |
21935 | return NULL; | |
21936 | } | |
21937 | ||
21938 | ||
21939 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
21940 | PyObject *obj; | |
21941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21942 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
21943 | Py_INCREF(obj); | |
21944 | return Py_BuildValue((char *)""); | |
21945 | } | |
21946 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21947 | PyObject *resultobj; | |
21948 | int arg1 = (int) 0 ; | |
21949 | int arg2 = (int) 0 ; | |
21950 | int arg3 = (int) 0 ; | |
21951 | int arg4 = (int) 0 ; | |
21952 | wxDateSpan *result; | |
21953 | PyObject * obj0 = 0 ; | |
21954 | PyObject * obj1 = 0 ; | |
21955 | PyObject * obj2 = 0 ; | |
21956 | PyObject * obj3 = 0 ; | |
21957 | char *kwnames[] = { | |
21958 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
21959 | }; | |
21960 | ||
21961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21962 | if (obj0) { | |
21963 | { | |
21964 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
21965 | if (PyErr_Occurred()) SWIG_fail; | |
21966 | } | |
21967 | } | |
21968 | if (obj1) { | |
21969 | { | |
21970 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21971 | if (PyErr_Occurred()) SWIG_fail; | |
21972 | } | |
21973 | } | |
21974 | if (obj2) { | |
21975 | { | |
21976 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21977 | if (PyErr_Occurred()) SWIG_fail; | |
21978 | } | |
21979 | } | |
21980 | if (obj3) { | |
21981 | { | |
21982 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21983 | if (PyErr_Occurred()) SWIG_fail; | |
21984 | } | |
21985 | } | |
21986 | { | |
21987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21988 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
21989 | ||
21990 | wxPyEndAllowThreads(__tstate); | |
21991 | if (PyErr_Occurred()) SWIG_fail; | |
21992 | } | |
21993 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1); | |
21994 | return resultobj; | |
21995 | fail: | |
21996 | return NULL; | |
21997 | } | |
21998 | ||
21999 | ||
22000 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22001 | PyObject *resultobj; | |
22002 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22003 | PyObject * obj0 = 0 ; | |
22004 | char *kwnames[] = { | |
22005 | (char *) "self", NULL | |
22006 | }; | |
22007 | ||
22008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
22009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22012 | delete arg1; | |
22013 | ||
22014 | wxPyEndAllowThreads(__tstate); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | } | |
22017 | Py_INCREF(Py_None); resultobj = Py_None; | |
22018 | return resultobj; | |
22019 | fail: | |
22020 | return NULL; | |
22021 | } | |
22022 | ||
22023 | ||
22024 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22025 | PyObject *resultobj; | |
22026 | int arg1 ; | |
22027 | wxDateSpan result; | |
22028 | PyObject * obj0 = 0 ; | |
22029 | char *kwnames[] = { | |
22030 | (char *) "days", NULL | |
22031 | }; | |
22032 | ||
22033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
22034 | { | |
22035 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22036 | if (PyErr_Occurred()) SWIG_fail; | |
22037 | } | |
22038 | { | |
22039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22040 | result = wxDateSpan::Days(arg1); | |
22041 | ||
22042 | wxPyEndAllowThreads(__tstate); | |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
22044 | } | |
22045 | { | |
22046 | wxDateSpan * resultptr; | |
22047 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22048 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22049 | } | |
22050 | return resultobj; | |
22051 | fail: | |
22052 | return NULL; | |
22053 | } | |
22054 | ||
22055 | ||
22056 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22057 | PyObject *resultobj; | |
22058 | wxDateSpan result; | |
22059 | char *kwnames[] = { | |
22060 | NULL | |
22061 | }; | |
22062 | ||
22063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22064 | { | |
22065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22066 | result = wxDateSpan::Day(); | |
22067 | ||
22068 | wxPyEndAllowThreads(__tstate); | |
22069 | if (PyErr_Occurred()) SWIG_fail; | |
22070 | } | |
22071 | { | |
22072 | wxDateSpan * resultptr; | |
22073 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22074 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22075 | } | |
22076 | return resultobj; | |
22077 | fail: | |
22078 | return NULL; | |
22079 | } | |
22080 | ||
22081 | ||
22082 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22083 | PyObject *resultobj; | |
22084 | int arg1 ; | |
22085 | wxDateSpan result; | |
22086 | PyObject * obj0 = 0 ; | |
22087 | char *kwnames[] = { | |
22088 | (char *) "weeks", NULL | |
22089 | }; | |
22090 | ||
22091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
22092 | { | |
22093 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22094 | if (PyErr_Occurred()) SWIG_fail; | |
22095 | } | |
22096 | { | |
22097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22098 | result = wxDateSpan::Weeks(arg1); | |
22099 | ||
22100 | wxPyEndAllowThreads(__tstate); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
22103 | { | |
22104 | wxDateSpan * resultptr; | |
22105 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22106 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22107 | } | |
22108 | return resultobj; | |
22109 | fail: | |
22110 | return NULL; | |
22111 | } | |
22112 | ||
22113 | ||
22114 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22115 | PyObject *resultobj; | |
22116 | wxDateSpan result; | |
22117 | char *kwnames[] = { | |
22118 | NULL | |
22119 | }; | |
22120 | ||
22121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22122 | { | |
22123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22124 | result = wxDateSpan::Week(); | |
22125 | ||
22126 | wxPyEndAllowThreads(__tstate); | |
22127 | if (PyErr_Occurred()) SWIG_fail; | |
22128 | } | |
22129 | { | |
22130 | wxDateSpan * resultptr; | |
22131 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22132 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22133 | } | |
22134 | return resultobj; | |
22135 | fail: | |
22136 | return NULL; | |
22137 | } | |
22138 | ||
22139 | ||
22140 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22141 | PyObject *resultobj; | |
22142 | int arg1 ; | |
22143 | wxDateSpan result; | |
22144 | PyObject * obj0 = 0 ; | |
22145 | char *kwnames[] = { | |
22146 | (char *) "mon", NULL | |
22147 | }; | |
22148 | ||
22149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
22150 | { | |
22151 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22152 | if (PyErr_Occurred()) SWIG_fail; | |
22153 | } | |
22154 | { | |
22155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22156 | result = wxDateSpan::Months(arg1); | |
22157 | ||
22158 | wxPyEndAllowThreads(__tstate); | |
22159 | if (PyErr_Occurred()) SWIG_fail; | |
22160 | } | |
22161 | { | |
22162 | wxDateSpan * resultptr; | |
22163 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22164 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22165 | } | |
22166 | return resultobj; | |
22167 | fail: | |
22168 | return NULL; | |
22169 | } | |
22170 | ||
22171 | ||
22172 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22173 | PyObject *resultobj; | |
22174 | wxDateSpan result; | |
22175 | char *kwnames[] = { | |
22176 | NULL | |
22177 | }; | |
22178 | ||
22179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22180 | { | |
22181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22182 | result = wxDateSpan::Month(); | |
22183 | ||
22184 | wxPyEndAllowThreads(__tstate); | |
22185 | if (PyErr_Occurred()) SWIG_fail; | |
22186 | } | |
22187 | { | |
22188 | wxDateSpan * resultptr; | |
22189 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22190 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22191 | } | |
22192 | return resultobj; | |
22193 | fail: | |
22194 | return NULL; | |
22195 | } | |
22196 | ||
22197 | ||
22198 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22199 | PyObject *resultobj; | |
22200 | int arg1 ; | |
22201 | wxDateSpan result; | |
22202 | PyObject * obj0 = 0 ; | |
22203 | char *kwnames[] = { | |
22204 | (char *) "years", NULL | |
22205 | }; | |
22206 | ||
22207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
22208 | { | |
22209 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22210 | if (PyErr_Occurred()) SWIG_fail; | |
22211 | } | |
22212 | { | |
22213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22214 | result = wxDateSpan::Years(arg1); | |
22215 | ||
22216 | wxPyEndAllowThreads(__tstate); | |
22217 | if (PyErr_Occurred()) SWIG_fail; | |
22218 | } | |
22219 | { | |
22220 | wxDateSpan * resultptr; | |
22221 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22222 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22223 | } | |
22224 | return resultobj; | |
22225 | fail: | |
22226 | return NULL; | |
22227 | } | |
22228 | ||
22229 | ||
22230 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22231 | PyObject *resultobj; | |
22232 | wxDateSpan result; | |
22233 | char *kwnames[] = { | |
22234 | NULL | |
22235 | }; | |
22236 | ||
22237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22238 | { | |
22239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22240 | result = wxDateSpan::Year(); | |
22241 | ||
22242 | wxPyEndAllowThreads(__tstate); | |
22243 | if (PyErr_Occurred()) SWIG_fail; | |
22244 | } | |
22245 | { | |
22246 | wxDateSpan * resultptr; | |
22247 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22248 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22249 | } | |
22250 | return resultobj; | |
22251 | fail: | |
22252 | return NULL; | |
22253 | } | |
22254 | ||
22255 | ||
22256 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22257 | PyObject *resultobj; | |
22258 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22259 | int arg2 ; | |
22260 | wxDateSpan *result; | |
22261 | PyObject * obj0 = 0 ; | |
22262 | PyObject * obj1 = 0 ; | |
22263 | char *kwnames[] = { | |
22264 | (char *) "self",(char *) "n", NULL | |
22265 | }; | |
22266 | ||
22267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
22268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22269 | { | |
22270 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22271 | if (PyErr_Occurred()) SWIG_fail; | |
22272 | } | |
22273 | { | |
22274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22275 | { | |
22276 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22277 | result = (wxDateSpan *) &_result_ref; | |
22278 | } | |
22279 | ||
22280 | wxPyEndAllowThreads(__tstate); | |
22281 | if (PyErr_Occurred()) SWIG_fail; | |
22282 | } | |
22283 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22284 | return resultobj; | |
22285 | fail: | |
22286 | return NULL; | |
22287 | } | |
22288 | ||
22289 | ||
22290 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22291 | PyObject *resultobj; | |
22292 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22293 | int arg2 ; | |
22294 | wxDateSpan *result; | |
22295 | PyObject * obj0 = 0 ; | |
22296 | PyObject * obj1 = 0 ; | |
22297 | char *kwnames[] = { | |
22298 | (char *) "self",(char *) "n", NULL | |
22299 | }; | |
22300 | ||
22301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
22302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22303 | { | |
22304 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22305 | if (PyErr_Occurred()) SWIG_fail; | |
22306 | } | |
22307 | { | |
22308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22309 | { | |
22310 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22311 | result = (wxDateSpan *) &_result_ref; | |
22312 | } | |
22313 | ||
22314 | wxPyEndAllowThreads(__tstate); | |
22315 | if (PyErr_Occurred()) SWIG_fail; | |
22316 | } | |
22317 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22318 | return resultobj; | |
22319 | fail: | |
22320 | return NULL; | |
22321 | } | |
22322 | ||
22323 | ||
22324 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22325 | PyObject *resultobj; | |
22326 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22327 | int arg2 ; | |
22328 | wxDateSpan *result; | |
22329 | PyObject * obj0 = 0 ; | |
22330 | PyObject * obj1 = 0 ; | |
22331 | char *kwnames[] = { | |
22332 | (char *) "self",(char *) "n", NULL | |
22333 | }; | |
22334 | ||
22335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
22336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22337 | { | |
22338 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22339 | if (PyErr_Occurred()) SWIG_fail; | |
22340 | } | |
22341 | { | |
22342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22343 | { | |
22344 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
22345 | result = (wxDateSpan *) &_result_ref; | |
22346 | } | |
22347 | ||
22348 | wxPyEndAllowThreads(__tstate); | |
22349 | if (PyErr_Occurred()) SWIG_fail; | |
22350 | } | |
22351 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22352 | return resultobj; | |
22353 | fail: | |
22354 | return NULL; | |
22355 | } | |
22356 | ||
22357 | ||
22358 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22359 | PyObject *resultobj; | |
22360 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22361 | int arg2 ; | |
22362 | wxDateSpan *result; | |
22363 | PyObject * obj0 = 0 ; | |
22364 | PyObject * obj1 = 0 ; | |
22365 | char *kwnames[] = { | |
22366 | (char *) "self",(char *) "n", NULL | |
22367 | }; | |
22368 | ||
22369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
22370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22371 | { | |
22372 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22373 | if (PyErr_Occurred()) SWIG_fail; | |
22374 | } | |
22375 | { | |
22376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22377 | { | |
22378 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
22379 | result = (wxDateSpan *) &_result_ref; | |
22380 | } | |
22381 | ||
22382 | wxPyEndAllowThreads(__tstate); | |
22383 | if (PyErr_Occurred()) SWIG_fail; | |
22384 | } | |
22385 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22386 | return resultobj; | |
22387 | fail: | |
22388 | return NULL; | |
22389 | } | |
22390 | ||
22391 | ||
22392 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22393 | PyObject *resultobj; | |
22394 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22395 | int result; | |
22396 | PyObject * obj0 = 0 ; | |
22397 | char *kwnames[] = { | |
22398 | (char *) "self", NULL | |
22399 | }; | |
22400 | ||
22401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
22402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22403 | { | |
22404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22405 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
22406 | ||
22407 | wxPyEndAllowThreads(__tstate); | |
22408 | if (PyErr_Occurred()) SWIG_fail; | |
22409 | } | |
22410 | resultobj = SWIG_PyObj_FromInt((int)result); | |
22411 | return resultobj; | |
22412 | fail: | |
22413 | return NULL; | |
22414 | } | |
22415 | ||
22416 | ||
22417 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22418 | PyObject *resultobj; | |
22419 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22420 | int result; | |
22421 | PyObject * obj0 = 0 ; | |
22422 | char *kwnames[] = { | |
22423 | (char *) "self", NULL | |
22424 | }; | |
22425 | ||
22426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
22427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22428 | { | |
22429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22430 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
22431 | ||
22432 | wxPyEndAllowThreads(__tstate); | |
22433 | if (PyErr_Occurred()) SWIG_fail; | |
22434 | } | |
22435 | resultobj = SWIG_PyObj_FromInt((int)result); | |
22436 | return resultobj; | |
22437 | fail: | |
22438 | return NULL; | |
22439 | } | |
22440 | ||
22441 | ||
22442 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22443 | PyObject *resultobj; | |
22444 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22445 | int result; | |
22446 | PyObject * obj0 = 0 ; | |
22447 | char *kwnames[] = { | |
22448 | (char *) "self", NULL | |
22449 | }; | |
22450 | ||
22451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22453 | { | |
22454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22455 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
22456 | ||
22457 | wxPyEndAllowThreads(__tstate); | |
22458 | if (PyErr_Occurred()) SWIG_fail; | |
22459 | } | |
22460 | resultobj = SWIG_PyObj_FromInt((int)result); | |
22461 | return resultobj; | |
22462 | fail: | |
22463 | return NULL; | |
22464 | } | |
22465 | ||
22466 | ||
22467 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22468 | PyObject *resultobj; | |
22469 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22470 | int result; | |
22471 | PyObject * obj0 = 0 ; | |
22472 | char *kwnames[] = { | |
22473 | (char *) "self", NULL | |
22474 | }; | |
22475 | ||
22476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
22477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22478 | { | |
22479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22480 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
22481 | ||
22482 | wxPyEndAllowThreads(__tstate); | |
22483 | if (PyErr_Occurred()) SWIG_fail; | |
22484 | } | |
22485 | resultobj = SWIG_PyObj_FromInt((int)result); | |
22486 | return resultobj; | |
22487 | fail: | |
22488 | return NULL; | |
22489 | } | |
22490 | ||
22491 | ||
22492 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22493 | PyObject *resultobj; | |
22494 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22495 | int result; | |
22496 | PyObject * obj0 = 0 ; | |
22497 | char *kwnames[] = { | |
22498 | (char *) "self", NULL | |
22499 | }; | |
22500 | ||
22501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
22502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22503 | { | |
22504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22505 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
22506 | ||
22507 | wxPyEndAllowThreads(__tstate); | |
22508 | if (PyErr_Occurred()) SWIG_fail; | |
22509 | } | |
22510 | resultobj = SWIG_PyObj_FromInt((int)result); | |
22511 | return resultobj; | |
22512 | fail: | |
22513 | return NULL; | |
22514 | } | |
22515 | ||
22516 | ||
22517 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22518 | PyObject *resultobj; | |
22519 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22520 | wxDateSpan *arg2 = 0 ; | |
22521 | wxDateSpan *result; | |
22522 | PyObject * obj0 = 0 ; | |
22523 | PyObject * obj1 = 0 ; | |
22524 | char *kwnames[] = { | |
22525 | (char *) "self",(char *) "other", NULL | |
22526 | }; | |
22527 | ||
22528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
22529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22530 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22531 | if (arg2 == NULL) { | |
22532 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22533 | } | |
22534 | { | |
22535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22536 | { | |
22537 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
22538 | result = (wxDateSpan *) &_result_ref; | |
22539 | } | |
22540 | ||
22541 | wxPyEndAllowThreads(__tstate); | |
22542 | if (PyErr_Occurred()) SWIG_fail; | |
22543 | } | |
22544 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22545 | return resultobj; | |
22546 | fail: | |
22547 | return NULL; | |
22548 | } | |
22549 | ||
22550 | ||
22551 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22552 | PyObject *resultobj; | |
22553 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22554 | wxDateSpan *arg2 = 0 ; | |
22555 | wxDateSpan *result; | |
22556 | PyObject * obj0 = 0 ; | |
22557 | PyObject * obj1 = 0 ; | |
22558 | char *kwnames[] = { | |
22559 | (char *) "self",(char *) "other", NULL | |
22560 | }; | |
22561 | ||
22562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
22563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22564 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22565 | if (arg2 == NULL) { | |
22566 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22567 | } | |
22568 | { | |
22569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22570 | { | |
22571 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
22572 | result = (wxDateSpan *) &_result_ref; | |
22573 | } | |
22574 | ||
22575 | wxPyEndAllowThreads(__tstate); | |
22576 | if (PyErr_Occurred()) SWIG_fail; | |
22577 | } | |
22578 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22579 | return resultobj; | |
22580 | fail: | |
22581 | return NULL; | |
22582 | } | |
22583 | ||
22584 | ||
22585 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22586 | PyObject *resultobj; | |
22587 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22588 | wxDateSpan *result; | |
22589 | PyObject * obj0 = 0 ; | |
22590 | char *kwnames[] = { | |
22591 | (char *) "self", NULL | |
22592 | }; | |
22593 | ||
22594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
22595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22596 | { | |
22597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22598 | { | |
22599 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
22600 | result = (wxDateSpan *) &_result_ref; | |
22601 | } | |
22602 | ||
22603 | wxPyEndAllowThreads(__tstate); | |
22604 | if (PyErr_Occurred()) SWIG_fail; | |
22605 | } | |
22606 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22607 | return resultobj; | |
22608 | fail: | |
22609 | return NULL; | |
22610 | } | |
22611 | ||
22612 | ||
22613 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22614 | PyObject *resultobj; | |
22615 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22616 | int arg2 ; | |
22617 | wxDateSpan *result; | |
22618 | PyObject * obj0 = 0 ; | |
22619 | PyObject * obj1 = 0 ; | |
22620 | char *kwnames[] = { | |
22621 | (char *) "self",(char *) "factor", NULL | |
22622 | }; | |
22623 | ||
22624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
22625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22626 | { | |
22627 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22628 | if (PyErr_Occurred()) SWIG_fail; | |
22629 | } | |
22630 | { | |
22631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22632 | { | |
22633 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
22634 | result = (wxDateSpan *) &_result_ref; | |
22635 | } | |
22636 | ||
22637 | wxPyEndAllowThreads(__tstate); | |
22638 | if (PyErr_Occurred()) SWIG_fail; | |
22639 | } | |
22640 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22641 | return resultobj; | |
22642 | fail: | |
22643 | return NULL; | |
22644 | } | |
22645 | ||
22646 | ||
22647 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22648 | PyObject *resultobj; | |
22649 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22650 | wxDateSpan *arg2 = 0 ; | |
22651 | wxDateSpan *result; | |
22652 | PyObject * obj0 = 0 ; | |
22653 | PyObject * obj1 = 0 ; | |
22654 | char *kwnames[] = { | |
22655 | (char *) "self",(char *) "other", NULL | |
22656 | }; | |
22657 | ||
22658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
22659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22660 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22661 | if (arg2 == NULL) { | |
22662 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22663 | } | |
22664 | { | |
22665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22666 | { | |
22667 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
22668 | result = (wxDateSpan *) &_result_ref; | |
22669 | } | |
22670 | ||
22671 | wxPyEndAllowThreads(__tstate); | |
22672 | if (PyErr_Occurred()) SWIG_fail; | |
22673 | } | |
22674 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22675 | return resultobj; | |
22676 | fail: | |
22677 | return NULL; | |
22678 | } | |
22679 | ||
22680 | ||
22681 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22682 | PyObject *resultobj; | |
22683 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22684 | wxDateSpan *arg2 = 0 ; | |
22685 | wxDateSpan *result; | |
22686 | PyObject * obj0 = 0 ; | |
22687 | PyObject * obj1 = 0 ; | |
22688 | char *kwnames[] = { | |
22689 | (char *) "self",(char *) "other", NULL | |
22690 | }; | |
22691 | ||
22692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
22693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22694 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22695 | if (arg2 == NULL) { | |
22696 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22697 | } | |
22698 | { | |
22699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22700 | { | |
22701 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
22702 | result = (wxDateSpan *) &_result_ref; | |
22703 | } | |
22704 | ||
22705 | wxPyEndAllowThreads(__tstate); | |
22706 | if (PyErr_Occurred()) SWIG_fail; | |
22707 | } | |
22708 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22709 | return resultobj; | |
22710 | fail: | |
22711 | return NULL; | |
22712 | } | |
22713 | ||
22714 | ||
22715 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22716 | PyObject *resultobj; | |
22717 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22718 | wxDateSpan *result; | |
22719 | PyObject * obj0 = 0 ; | |
22720 | char *kwnames[] = { | |
22721 | (char *) "self", NULL | |
22722 | }; | |
22723 | ||
22724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
22725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22726 | { | |
22727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22728 | { | |
22729 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
22730 | result = (wxDateSpan *) &_result_ref; | |
22731 | } | |
22732 | ||
22733 | wxPyEndAllowThreads(__tstate); | |
22734 | if (PyErr_Occurred()) SWIG_fail; | |
22735 | } | |
22736 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22737 | return resultobj; | |
22738 | fail: | |
22739 | return NULL; | |
22740 | } | |
22741 | ||
22742 | ||
22743 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22744 | PyObject *resultobj; | |
22745 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22746 | int arg2 ; | |
22747 | wxDateSpan *result; | |
22748 | PyObject * obj0 = 0 ; | |
22749 | PyObject * obj1 = 0 ; | |
22750 | char *kwnames[] = { | |
22751 | (char *) "self",(char *) "factor", NULL | |
22752 | }; | |
22753 | ||
22754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
22755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22756 | { | |
22757 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22758 | if (PyErr_Occurred()) SWIG_fail; | |
22759 | } | |
22760 | { | |
22761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22762 | { | |
22763 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
22764 | result = (wxDateSpan *) &_result_ref; | |
22765 | } | |
22766 | ||
22767 | wxPyEndAllowThreads(__tstate); | |
22768 | if (PyErr_Occurred()) SWIG_fail; | |
22769 | } | |
22770 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22771 | return resultobj; | |
22772 | fail: | |
22773 | return NULL; | |
22774 | } | |
22775 | ||
22776 | ||
22777 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22778 | PyObject *resultobj; | |
22779 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22780 | wxDateSpan *arg2 = 0 ; | |
22781 | wxDateSpan result; | |
22782 | PyObject * obj0 = 0 ; | |
22783 | PyObject * obj1 = 0 ; | |
22784 | char *kwnames[] = { | |
22785 | (char *) "self",(char *) "other", NULL | |
22786 | }; | |
22787 | ||
22788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
22789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22790 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22791 | if (arg2 == NULL) { | |
22792 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22793 | } | |
22794 | { | |
22795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22796 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
22797 | ||
22798 | wxPyEndAllowThreads(__tstate); | |
22799 | if (PyErr_Occurred()) SWIG_fail; | |
22800 | } | |
22801 | { | |
22802 | wxDateSpan * resultptr; | |
22803 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22804 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22805 | } | |
22806 | return resultobj; | |
22807 | fail: | |
22808 | return NULL; | |
22809 | } | |
22810 | ||
22811 | ||
22812 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22813 | PyObject *resultobj; | |
22814 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22815 | wxDateSpan *arg2 = 0 ; | |
22816 | wxDateSpan result; | |
22817 | PyObject * obj0 = 0 ; | |
22818 | PyObject * obj1 = 0 ; | |
22819 | char *kwnames[] = { | |
22820 | (char *) "self",(char *) "other", NULL | |
22821 | }; | |
22822 | ||
22823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
22824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22825 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22826 | if (arg2 == NULL) { | |
22827 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22828 | } | |
22829 | { | |
22830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22831 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
22832 | ||
22833 | wxPyEndAllowThreads(__tstate); | |
22834 | if (PyErr_Occurred()) SWIG_fail; | |
22835 | } | |
22836 | { | |
22837 | wxDateSpan * resultptr; | |
22838 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22839 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22840 | } | |
22841 | return resultobj; | |
22842 | fail: | |
22843 | return NULL; | |
22844 | } | |
22845 | ||
22846 | ||
22847 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22848 | PyObject *resultobj; | |
22849 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22850 | int arg2 ; | |
22851 | wxDateSpan result; | |
22852 | PyObject * obj0 = 0 ; | |
22853 | PyObject * obj1 = 0 ; | |
22854 | char *kwnames[] = { | |
22855 | (char *) "self",(char *) "n", NULL | |
22856 | }; | |
22857 | ||
22858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
22859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22860 | { | |
22861 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22862 | if (PyErr_Occurred()) SWIG_fail; | |
22863 | } | |
22864 | { | |
22865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22866 | result = wxDateSpan___mul__(arg1,arg2); | |
22867 | ||
22868 | wxPyEndAllowThreads(__tstate); | |
22869 | if (PyErr_Occurred()) SWIG_fail; | |
22870 | } | |
22871 | { | |
22872 | wxDateSpan * resultptr; | |
22873 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22874 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22875 | } | |
22876 | return resultobj; | |
22877 | fail: | |
22878 | return NULL; | |
22879 | } | |
22880 | ||
22881 | ||
22882 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22883 | PyObject *resultobj; | |
22884 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22885 | int arg2 ; | |
22886 | wxDateSpan result; | |
22887 | PyObject * obj0 = 0 ; | |
22888 | PyObject * obj1 = 0 ; | |
22889 | char *kwnames[] = { | |
22890 | (char *) "self",(char *) "n", NULL | |
22891 | }; | |
22892 | ||
22893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
22894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22895 | { | |
22896 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22897 | if (PyErr_Occurred()) SWIG_fail; | |
22898 | } | |
22899 | { | |
22900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22901 | result = wxDateSpan___rmul__(arg1,arg2); | |
22902 | ||
22903 | wxPyEndAllowThreads(__tstate); | |
22904 | if (PyErr_Occurred()) SWIG_fail; | |
22905 | } | |
22906 | { | |
22907 | wxDateSpan * resultptr; | |
22908 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22909 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22910 | } | |
22911 | return resultobj; | |
22912 | fail: | |
22913 | return NULL; | |
22914 | } | |
22915 | ||
22916 | ||
22917 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22918 | PyObject *resultobj; | |
22919 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22920 | wxDateSpan *arg2 = 0 ; | |
22921 | bool result; | |
22922 | PyObject * obj0 = 0 ; | |
22923 | PyObject * obj1 = 0 ; | |
22924 | char *kwnames[] = { | |
22925 | (char *) "self",(char *) "other", NULL | |
22926 | }; | |
22927 | ||
22928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22930 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22931 | if (arg2 == NULL) { | |
22932 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22933 | } | |
22934 | { | |
22935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22936 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2); | |
22937 | ||
22938 | wxPyEndAllowThreads(__tstate); | |
22939 | if (PyErr_Occurred()) SWIG_fail; | |
22940 | } | |
22941 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
22942 | return resultobj; | |
22943 | fail: | |
22944 | return NULL; | |
22945 | } | |
22946 | ||
22947 | ||
22948 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22949 | PyObject *resultobj; | |
22950 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22951 | wxDateSpan *arg2 = 0 ; | |
22952 | bool result; | |
22953 | PyObject * obj0 = 0 ; | |
22954 | PyObject * obj1 = 0 ; | |
22955 | char *kwnames[] = { | |
22956 | (char *) "self",(char *) "other", NULL | |
22957 | }; | |
22958 | ||
22959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22961 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22962 | if (arg2 == NULL) { | |
22963 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22964 | } | |
22965 | { | |
22966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22967 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2); | |
22968 | ||
22969 | wxPyEndAllowThreads(__tstate); | |
22970 | if (PyErr_Occurred()) SWIG_fail; | |
22971 | } | |
22972 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
22973 | return resultobj; | |
22974 | fail: | |
22975 | return NULL; | |
22976 | } | |
22977 | ||
22978 | ||
22979 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
22980 | PyObject *obj; | |
22981 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22982 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
22983 | Py_INCREF(obj); | |
22984 | return Py_BuildValue((char *)""); | |
22985 | } | |
22986 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22987 | PyObject *resultobj; | |
22988 | long result; | |
22989 | char *kwnames[] = { | |
22990 | NULL | |
22991 | }; | |
22992 | ||
22993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
22994 | { | |
22995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22996 | result = (long)wxGetLocalTime(); | |
22997 | ||
22998 | wxPyEndAllowThreads(__tstate); | |
22999 | if (PyErr_Occurred()) SWIG_fail; | |
23000 | } | |
23001 | resultobj = SWIG_PyObj_FromLong((long)result); | |
23002 | return resultobj; | |
23003 | fail: | |
23004 | return NULL; | |
23005 | } | |
23006 | ||
23007 | ||
23008 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23009 | PyObject *resultobj; | |
23010 | long result; | |
23011 | char *kwnames[] = { | |
23012 | NULL | |
23013 | }; | |
23014 | ||
23015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23016 | { | |
23017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23018 | result = (long)wxGetUTCTime(); | |
23019 | ||
23020 | wxPyEndAllowThreads(__tstate); | |
23021 | if (PyErr_Occurred()) SWIG_fail; | |
23022 | } | |
23023 | resultobj = SWIG_PyObj_FromLong((long)result); | |
23024 | return resultobj; | |
23025 | fail: | |
23026 | return NULL; | |
23027 | } | |
23028 | ||
23029 | ||
23030 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23031 | PyObject *resultobj; | |
23032 | long result; | |
23033 | char *kwnames[] = { | |
23034 | NULL | |
23035 | }; | |
23036 | ||
23037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23038 | { | |
23039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23040 | result = (long)wxGetCurrentTime(); | |
23041 | ||
23042 | wxPyEndAllowThreads(__tstate); | |
23043 | if (PyErr_Occurred()) SWIG_fail; | |
23044 | } | |
23045 | resultobj = SWIG_PyObj_FromLong((long)result); | |
23046 | return resultobj; | |
23047 | fail: | |
23048 | return NULL; | |
23049 | } | |
23050 | ||
23051 | ||
23052 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23053 | PyObject *resultobj; | |
23054 | wxLongLong result; | |
23055 | char *kwnames[] = { | |
23056 | NULL | |
23057 | }; | |
23058 | ||
23059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23060 | { | |
23061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23062 | result = wxGetLocalTimeMillis(); | |
23063 | ||
23064 | wxPyEndAllowThreads(__tstate); | |
23065 | if (PyErr_Occurred()) SWIG_fail; | |
23066 | } | |
23067 | { | |
23068 | PyObject *hi, *lo, *shifter, *shifted; | |
23069 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23070 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23071 | shifter = PyLong_FromLong(32); | |
23072 | shifted = PyNumber_Lshift(hi, shifter); | |
23073 | resultobj = PyNumber_Or(shifted, lo); | |
23074 | Py_DECREF(hi); | |
23075 | Py_DECREF(lo); | |
23076 | Py_DECREF(shifter); | |
23077 | Py_DECREF(shifted); | |
23078 | } | |
23079 | return resultobj; | |
23080 | fail: | |
23081 | return NULL; | |
23082 | } | |
23083 | ||
23084 | ||
23085 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23086 | PyObject *resultobj; | |
23087 | int arg1 ; | |
23088 | wxDataFormat *result; | |
23089 | PyObject * obj0 = 0 ; | |
23090 | char *kwnames[] = { | |
23091 | (char *) "type", NULL | |
23092 | }; | |
23093 | ||
23094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
23095 | { | |
23096 | arg1 = (wxDataFormatId) SWIG_PyObj_AsInt(obj0); | |
23097 | if (PyErr_Occurred()) SWIG_fail; | |
23098 | } | |
23099 | { | |
23100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23101 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23102 | ||
23103 | wxPyEndAllowThreads(__tstate); | |
23104 | if (PyErr_Occurred()) SWIG_fail; | |
23105 | } | |
23106 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
23107 | return resultobj; | |
23108 | fail: | |
23109 | return NULL; | |
23110 | } | |
23111 | ||
23112 | ||
23113 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23114 | PyObject *resultobj; | |
23115 | wxString *arg1 = 0 ; | |
23116 | wxDataFormat *result; | |
23117 | bool temp1 = False ; | |
23118 | PyObject * obj0 = 0 ; | |
23119 | char *kwnames[] = { | |
23120 | (char *) "format", NULL | |
23121 | }; | |
23122 | ||
23123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23124 | { | |
23125 | arg1 = wxString_in_helper(obj0); | |
23126 | if (arg1 == NULL) SWIG_fail; | |
23127 | temp1 = True; | |
23128 | } | |
23129 | { | |
23130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23131 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23132 | ||
23133 | wxPyEndAllowThreads(__tstate); | |
23134 | if (PyErr_Occurred()) SWIG_fail; | |
23135 | } | |
23136 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
23137 | { | |
23138 | if (temp1) | |
23139 | delete arg1; | |
23140 | } | |
23141 | return resultobj; | |
23142 | fail: | |
23143 | { | |
23144 | if (temp1) | |
23145 | delete arg1; | |
23146 | } | |
23147 | return NULL; | |
23148 | } | |
23149 | ||
23150 | ||
23151 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23152 | PyObject *resultobj; | |
23153 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23154 | PyObject * obj0 = 0 ; | |
23155 | char *kwnames[] = { | |
23156 | (char *) "self", NULL | |
23157 | }; | |
23158 | ||
23159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
23160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23161 | { | |
23162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23163 | delete arg1; | |
23164 | ||
23165 | wxPyEndAllowThreads(__tstate); | |
23166 | if (PyErr_Occurred()) SWIG_fail; | |
23167 | } | |
23168 | Py_INCREF(Py_None); resultobj = Py_None; | |
23169 | return resultobj; | |
23170 | fail: | |
23171 | return NULL; | |
23172 | } | |
23173 | ||
23174 | ||
23175 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23176 | PyObject *resultobj; | |
23177 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23178 | int arg2 ; | |
23179 | bool result; | |
23180 | PyObject * obj0 = 0 ; | |
23181 | PyObject * obj1 = 0 ; | |
23182 | ||
23183 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23185 | { | |
23186 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23187 | if (PyErr_Occurred()) SWIG_fail; | |
23188 | } | |
23189 | { | |
23190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23191 | result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2); | |
23192 | ||
23193 | wxPyEndAllowThreads(__tstate); | |
23194 | if (PyErr_Occurred()) SWIG_fail; | |
23195 | } | |
23196 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
23197 | return resultobj; | |
23198 | fail: | |
23199 | return NULL; | |
23200 | } | |
23201 | ||
23202 | ||
23203 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23204 | PyObject *resultobj; | |
23205 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23206 | int arg2 ; | |
23207 | bool result; | |
23208 | PyObject * obj0 = 0 ; | |
23209 | PyObject * obj1 = 0 ; | |
23210 | ||
23211 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23213 | { | |
23214 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23215 | if (PyErr_Occurred()) SWIG_fail; | |
23216 | } | |
23217 | { | |
23218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23219 | result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2); | |
23220 | ||
23221 | wxPyEndAllowThreads(__tstate); | |
23222 | if (PyErr_Occurred()) SWIG_fail; | |
23223 | } | |
23224 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
23225 | return resultobj; | |
23226 | fail: | |
23227 | return NULL; | |
23228 | } | |
23229 | ||
23230 | ||
23231 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23232 | PyObject *resultobj; | |
23233 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23234 | wxDataFormat *arg2 = 0 ; | |
23235 | bool result; | |
23236 | PyObject * obj0 = 0 ; | |
23237 | PyObject * obj1 = 0 ; | |
23238 | ||
23239 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23241 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23242 | if (arg2 == NULL) { | |
23243 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23244 | } | |
23245 | { | |
23246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23247 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23248 | ||
23249 | wxPyEndAllowThreads(__tstate); | |
23250 | if (PyErr_Occurred()) SWIG_fail; | |
23251 | } | |
23252 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
23253 | return resultobj; | |
23254 | fail: | |
23255 | return NULL; | |
23256 | } | |
23257 | ||
23258 | ||
23259 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23260 | int argc; | |
23261 | PyObject *argv[3]; | |
23262 | int ii; | |
23263 | ||
23264 | argc = PyObject_Length(args); | |
23265 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23266 | argv[ii] = PyTuple_GetItem(args,ii); | |
23267 | } | |
23268 | if (argc == 2) { | |
23269 | int _v; | |
23270 | { | |
23271 | void *ptr; | |
23272 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23273 | _v = 0; | |
23274 | PyErr_Clear(); | |
23275 | } else { | |
23276 | _v = 1; | |
23277 | } | |
23278 | } | |
23279 | if (_v) { | |
23280 | { | |
23281 | void *ptr; | |
23282 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23283 | _v = 0; | |
23284 | PyErr_Clear(); | |
23285 | } else { | |
23286 | _v = 1; | |
23287 | } | |
23288 | } | |
23289 | if (_v) { | |
23290 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
23291 | } | |
23292 | } | |
23293 | } | |
23294 | if (argc == 2) { | |
23295 | int _v; | |
23296 | { | |
23297 | void *ptr; | |
23298 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23299 | _v = 0; | |
23300 | PyErr_Clear(); | |
23301 | } else { | |
23302 | _v = 1; | |
23303 | } | |
23304 | } | |
23305 | if (_v) { | |
23306 | { | |
23307 | SWIG_PyObj_AsInt(argv[1]); | |
23308 | if (PyErr_Occurred()) { | |
23309 | _v = 0; | |
23310 | PyErr_Clear(); | |
23311 | } else { | |
23312 | _v = 1; | |
23313 | } | |
23314 | } | |
23315 | if (_v) { | |
23316 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
23317 | } | |
23318 | } | |
23319 | } | |
23320 | ||
23321 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
23322 | return NULL; | |
23323 | } | |
23324 | ||
23325 | ||
23326 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
23327 | PyObject *resultobj; | |
23328 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23329 | wxDataFormat *arg2 = 0 ; | |
23330 | bool result; | |
23331 | PyObject * obj0 = 0 ; | |
23332 | PyObject * obj1 = 0 ; | |
23333 | ||
23334 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23336 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23337 | if (arg2 == NULL) { | |
23338 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23339 | } | |
23340 | { | |
23341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23342 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
23343 | ||
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
23347 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
23348 | return resultobj; | |
23349 | fail: | |
23350 | return NULL; | |
23351 | } | |
23352 | ||
23353 | ||
23354 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
23355 | int argc; | |
23356 | PyObject *argv[3]; | |
23357 | int ii; | |
23358 | ||
23359 | argc = PyObject_Length(args); | |
23360 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23361 | argv[ii] = PyTuple_GetItem(args,ii); | |
23362 | } | |
23363 | if (argc == 2) { | |
23364 | int _v; | |
23365 | { | |
23366 | void *ptr; | |
23367 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23368 | _v = 0; | |
23369 | PyErr_Clear(); | |
23370 | } else { | |
23371 | _v = 1; | |
23372 | } | |
23373 | } | |
23374 | if (_v) { | |
23375 | { | |
23376 | void *ptr; | |
23377 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23378 | _v = 0; | |
23379 | PyErr_Clear(); | |
23380 | } else { | |
23381 | _v = 1; | |
23382 | } | |
23383 | } | |
23384 | if (_v) { | |
23385 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
23386 | } | |
23387 | } | |
23388 | } | |
23389 | if (argc == 2) { | |
23390 | int _v; | |
23391 | { | |
23392 | void *ptr; | |
23393 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23394 | _v = 0; | |
23395 | PyErr_Clear(); | |
23396 | } else { | |
23397 | _v = 1; | |
23398 | } | |
23399 | } | |
23400 | if (_v) { | |
23401 | { | |
23402 | SWIG_PyObj_AsInt(argv[1]); | |
23403 | if (PyErr_Occurred()) { | |
23404 | _v = 0; | |
23405 | PyErr_Clear(); | |
23406 | } else { | |
23407 | _v = 1; | |
23408 | } | |
23409 | } | |
23410 | if (_v) { | |
23411 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
23412 | } | |
23413 | } | |
23414 | } | |
23415 | ||
23416 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
23417 | return NULL; | |
23418 | } | |
23419 | ||
23420 | ||
23421 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23422 | PyObject *resultobj; | |
23423 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23424 | int arg2 ; | |
23425 | PyObject * obj0 = 0 ; | |
23426 | PyObject * obj1 = 0 ; | |
23427 | char *kwnames[] = { | |
23428 | (char *) "self",(char *) "format", NULL | |
23429 | }; | |
23430 | ||
23431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
23432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23433 | { | |
23434 | arg2 = (wxDataFormatId) SWIG_PyObj_AsInt(obj1); | |
23435 | if (PyErr_Occurred()) SWIG_fail; | |
23436 | } | |
23437 | { | |
23438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23439 | (arg1)->SetType((wxDataFormatId )arg2); | |
23440 | ||
23441 | wxPyEndAllowThreads(__tstate); | |
23442 | if (PyErr_Occurred()) SWIG_fail; | |
23443 | } | |
23444 | Py_INCREF(Py_None); resultobj = Py_None; | |
23445 | return resultobj; | |
23446 | fail: | |
23447 | return NULL; | |
23448 | } | |
23449 | ||
23450 | ||
23451 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23452 | PyObject *resultobj; | |
23453 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23454 | int result; | |
23455 | PyObject * obj0 = 0 ; | |
23456 | char *kwnames[] = { | |
23457 | (char *) "self", NULL | |
23458 | }; | |
23459 | ||
23460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
23461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23462 | { | |
23463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23464 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
23465 | ||
23466 | wxPyEndAllowThreads(__tstate); | |
23467 | if (PyErr_Occurred()) SWIG_fail; | |
23468 | } | |
23469 | resultobj = SWIG_PyObj_FromInt((int)result); | |
23470 | return resultobj; | |
23471 | fail: | |
23472 | return NULL; | |
23473 | } | |
23474 | ||
23475 | ||
23476 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23477 | PyObject *resultobj; | |
23478 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23479 | wxString result; | |
23480 | PyObject * obj0 = 0 ; | |
23481 | char *kwnames[] = { | |
23482 | (char *) "self", NULL | |
23483 | }; | |
23484 | ||
23485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
23486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23487 | { | |
23488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23489 | result = ((wxDataFormat const *)arg1)->GetId(); | |
23490 | ||
23491 | wxPyEndAllowThreads(__tstate); | |
23492 | if (PyErr_Occurred()) SWIG_fail; | |
23493 | } | |
23494 | { | |
23495 | #if wxUSE_UNICODE | |
23496 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23497 | #else | |
23498 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23499 | #endif | |
23500 | } | |
23501 | return resultobj; | |
23502 | fail: | |
23503 | return NULL; | |
23504 | } | |
23505 | ||
23506 | ||
23507 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23508 | PyObject *resultobj; | |
23509 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23510 | wxString *arg2 = 0 ; | |
23511 | bool temp2 = False ; | |
23512 | PyObject * obj0 = 0 ; | |
23513 | PyObject * obj1 = 0 ; | |
23514 | char *kwnames[] = { | |
23515 | (char *) "self",(char *) "format", NULL | |
23516 | }; | |
23517 | ||
23518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
23519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23520 | { | |
23521 | arg2 = wxString_in_helper(obj1); | |
23522 | if (arg2 == NULL) SWIG_fail; | |
23523 | temp2 = True; | |
23524 | } | |
23525 | { | |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | (arg1)->SetId((wxString const &)*arg2); | |
23528 | ||
23529 | wxPyEndAllowThreads(__tstate); | |
23530 | if (PyErr_Occurred()) SWIG_fail; | |
23531 | } | |
23532 | Py_INCREF(Py_None); resultobj = Py_None; | |
23533 | { | |
23534 | if (temp2) | |
23535 | delete arg2; | |
23536 | } | |
23537 | return resultobj; | |
23538 | fail: | |
23539 | { | |
23540 | if (temp2) | |
23541 | delete arg2; | |
23542 | } | |
23543 | return NULL; | |
23544 | } | |
23545 | ||
23546 | ||
23547 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
23548 | PyObject *obj; | |
23549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23550 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
23551 | Py_INCREF(obj); | |
23552 | return Py_BuildValue((char *)""); | |
23553 | } | |
23554 | static int _wrap_FormatInvalid_set(PyObject *) { | |
23555 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
23556 | return 1; | |
23557 | } | |
23558 | ||
23559 | ||
23560 | static PyObject *_wrap_FormatInvalid_get() { | |
23561 | PyObject *pyobj; | |
23562 | ||
23563 | pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0); | |
23564 | return pyobj; | |
23565 | } | |
23566 | ||
23567 | ||
23568 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23569 | PyObject *resultobj; | |
23570 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23571 | PyObject * obj0 = 0 ; | |
23572 | char *kwnames[] = { | |
23573 | (char *) "self", NULL | |
23574 | }; | |
23575 | ||
23576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
23577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23578 | { | |
23579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23580 | delete arg1; | |
23581 | ||
23582 | wxPyEndAllowThreads(__tstate); | |
23583 | if (PyErr_Occurred()) SWIG_fail; | |
23584 | } | |
23585 | Py_INCREF(Py_None); resultobj = Py_None; | |
23586 | return resultobj; | |
23587 | fail: | |
23588 | return NULL; | |
23589 | } | |
23590 | ||
23591 | ||
23592 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23593 | PyObject *resultobj; | |
23594 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23595 | int arg2 = (int) wxDataObject::Get ; | |
23596 | SwigValueWrapper< wxDataFormat > result; | |
23597 | PyObject * obj0 = 0 ; | |
23598 | PyObject * obj1 = 0 ; | |
23599 | char *kwnames[] = { | |
23600 | (char *) "self",(char *) "dir", NULL | |
23601 | }; | |
23602 | ||
23603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
23604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23605 | if (obj1) { | |
23606 | { | |
23607 | arg2 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj1); | |
23608 | if (PyErr_Occurred()) SWIG_fail; | |
23609 | } | |
23610 | } | |
23611 | { | |
23612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23613 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
23614 | ||
23615 | wxPyEndAllowThreads(__tstate); | |
23616 | if (PyErr_Occurred()) SWIG_fail; | |
23617 | } | |
23618 | { | |
23619 | wxDataFormat * resultptr; | |
23620 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
23621 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1); | |
23622 | } | |
23623 | return resultobj; | |
23624 | fail: | |
23625 | return NULL; | |
23626 | } | |
23627 | ||
23628 | ||
23629 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23630 | PyObject *resultobj; | |
23631 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23632 | int arg2 = (int) wxDataObject::Get ; | |
23633 | size_t result; | |
23634 | PyObject * obj0 = 0 ; | |
23635 | PyObject * obj1 = 0 ; | |
23636 | char *kwnames[] = { | |
23637 | (char *) "self",(char *) "dir", NULL | |
23638 | }; | |
23639 | ||
23640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
23641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23642 | if (obj1) { | |
23643 | { | |
23644 | arg2 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj1); | |
23645 | if (PyErr_Occurred()) SWIG_fail; | |
23646 | } | |
23647 | } | |
23648 | { | |
23649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23650 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
23651 | ||
23652 | wxPyEndAllowThreads(__tstate); | |
23653 | if (PyErr_Occurred()) SWIG_fail; | |
23654 | } | |
23655 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
23656 | return resultobj; | |
23657 | fail: | |
23658 | return NULL; | |
23659 | } | |
23660 | ||
23661 | ||
23662 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23663 | PyObject *resultobj; | |
23664 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23665 | wxDataFormat *arg2 = 0 ; | |
23666 | int arg3 = (int) wxDataObject::Get ; | |
23667 | bool result; | |
23668 | PyObject * obj0 = 0 ; | |
23669 | PyObject * obj1 = 0 ; | |
23670 | PyObject * obj2 = 0 ; | |
23671 | char *kwnames[] = { | |
23672 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
23673 | }; | |
23674 | ||
23675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23677 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23678 | if (arg2 == NULL) { | |
23679 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23680 | } | |
23681 | if (obj2) { | |
23682 | { | |
23683 | arg3 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj2); | |
23684 | if (PyErr_Occurred()) SWIG_fail; | |
23685 | } | |
23686 | } | |
23687 | { | |
23688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23689 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
23690 | ||
23691 | wxPyEndAllowThreads(__tstate); | |
23692 | if (PyErr_Occurred()) SWIG_fail; | |
23693 | } | |
23694 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
23695 | return resultobj; | |
23696 | fail: | |
23697 | return NULL; | |
23698 | } | |
23699 | ||
23700 | ||
23701 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23702 | PyObject *resultobj; | |
23703 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23704 | wxDataFormat *arg2 = 0 ; | |
23705 | size_t result; | |
23706 | PyObject * obj0 = 0 ; | |
23707 | PyObject * obj1 = 0 ; | |
23708 | char *kwnames[] = { | |
23709 | (char *) "self",(char *) "format", NULL | |
23710 | }; | |
23711 | ||
23712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
23713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23714 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23715 | if (arg2 == NULL) { | |
23716 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23717 | } | |
23718 | { | |
23719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23720 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
23721 | ||
23722 | wxPyEndAllowThreads(__tstate); | |
23723 | if (PyErr_Occurred()) SWIG_fail; | |
23724 | } | |
23725 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
23726 | return resultobj; | |
23727 | fail: | |
23728 | return NULL; | |
23729 | } | |
23730 | ||
23731 | ||
23732 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23733 | PyObject *resultobj; | |
23734 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23735 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
23736 | int arg3 = (int) wxDataObject::Get ; | |
23737 | PyObject * obj0 = 0 ; | |
23738 | PyObject * obj1 = 0 ; | |
23739 | PyObject * obj2 = 0 ; | |
23740 | char *kwnames[] = { | |
23741 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
23742 | }; | |
23743 | ||
23744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23746 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23747 | if (obj2) { | |
23748 | { | |
23749 | arg3 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj2); | |
23750 | if (PyErr_Occurred()) SWIG_fail; | |
23751 | } | |
23752 | } | |
23753 | { | |
23754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23755 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
23756 | ||
23757 | wxPyEndAllowThreads(__tstate); | |
23758 | if (PyErr_Occurred()) SWIG_fail; | |
23759 | } | |
23760 | Py_INCREF(Py_None); resultobj = Py_None; | |
23761 | return resultobj; | |
23762 | fail: | |
23763 | return NULL; | |
23764 | } | |
23765 | ||
23766 | ||
23767 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23768 | PyObject *resultobj; | |
23769 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23770 | wxDataFormat *arg2 = 0 ; | |
23771 | void *arg3 = (void *) 0 ; | |
23772 | bool result; | |
23773 | PyObject * obj0 = 0 ; | |
23774 | PyObject * obj1 = 0 ; | |
23775 | PyObject * obj2 = 0 ; | |
23776 | char *kwnames[] = { | |
23777 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
23778 | }; | |
23779 | ||
23780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23782 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23783 | if (arg2 == NULL) { | |
23784 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23785 | } | |
23786 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23787 | { | |
23788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23789 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
23790 | ||
23791 | wxPyEndAllowThreads(__tstate); | |
23792 | if (PyErr_Occurred()) SWIG_fail; | |
23793 | } | |
23794 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
23795 | return resultobj; | |
23796 | fail: | |
23797 | return NULL; | |
23798 | } | |
23799 | ||
23800 | ||
23801 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23802 | PyObject *resultobj; | |
23803 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23804 | wxDataFormat *arg2 = 0 ; | |
23805 | size_t arg3 ; | |
23806 | void *arg4 = (void *) 0 ; | |
23807 | bool result; | |
23808 | PyObject * obj0 = 0 ; | |
23809 | PyObject * obj1 = 0 ; | |
23810 | PyObject * obj2 = 0 ; | |
23811 | PyObject * obj3 = 0 ; | |
23812 | char *kwnames[] = { | |
23813 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
23814 | }; | |
23815 | ||
23816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23818 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23819 | if (arg2 == NULL) { | |
23820 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23821 | } | |
23822 | { | |
23823 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
23824 | if (PyErr_Occurred()) SWIG_fail; | |
23825 | } | |
23826 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23827 | { | |
23828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23829 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
23830 | ||
23831 | wxPyEndAllowThreads(__tstate); | |
23832 | if (PyErr_Occurred()) SWIG_fail; | |
23833 | } | |
23834 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
23835 | return resultobj; | |
23836 | fail: | |
23837 | return NULL; | |
23838 | } | |
23839 | ||
23840 | ||
23841 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
23842 | PyObject *obj; | |
23843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23844 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
23845 | Py_INCREF(obj); | |
23846 | return Py_BuildValue((char *)""); | |
23847 | } | |
23848 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23849 | PyObject *resultobj; | |
23850 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
23851 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
23852 | wxDataObjectSimple *result; | |
23853 | PyObject * obj0 = 0 ; | |
23854 | char *kwnames[] = { | |
23855 | (char *) "format", NULL | |
23856 | }; | |
23857 | ||
23858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
23859 | if (obj0) { | |
23860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23861 | if (arg1 == NULL) { | |
23862 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23863 | } | |
23864 | } | |
23865 | { | |
23866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23867 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
23868 | ||
23869 | wxPyEndAllowThreads(__tstate); | |
23870 | if (PyErr_Occurred()) SWIG_fail; | |
23871 | } | |
23872 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1); | |
23873 | return resultobj; | |
23874 | fail: | |
23875 | return NULL; | |
23876 | } | |
23877 | ||
23878 | ||
23879 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23880 | PyObject *resultobj; | |
23881 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
23882 | wxDataFormat *result; | |
23883 | PyObject * obj0 = 0 ; | |
23884 | char *kwnames[] = { | |
23885 | (char *) "self", NULL | |
23886 | }; | |
23887 | ||
23888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
23889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23890 | { | |
23891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23892 | { | |
23893 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
23894 | result = (wxDataFormat *) &_result_ref; | |
23895 | } | |
23896 | ||
23897 | wxPyEndAllowThreads(__tstate); | |
23898 | if (PyErr_Occurred()) SWIG_fail; | |
23899 | } | |
23900 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0); | |
23901 | return resultobj; | |
23902 | fail: | |
23903 | return NULL; | |
23904 | } | |
23905 | ||
23906 | ||
23907 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23908 | PyObject *resultobj; | |
23909 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
23910 | wxDataFormat *arg2 = 0 ; | |
23911 | PyObject * obj0 = 0 ; | |
23912 | PyObject * obj1 = 0 ; | |
23913 | char *kwnames[] = { | |
23914 | (char *) "self",(char *) "format", NULL | |
23915 | }; | |
23916 | ||
23917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
23918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23919 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23920 | if (arg2 == NULL) { | |
23921 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23922 | } | |
23923 | { | |
23924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23925 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
23926 | ||
23927 | wxPyEndAllowThreads(__tstate); | |
23928 | if (PyErr_Occurred()) SWIG_fail; | |
23929 | } | |
23930 | Py_INCREF(Py_None); resultobj = Py_None; | |
23931 | return resultobj; | |
23932 | fail: | |
23933 | return NULL; | |
23934 | } | |
23935 | ||
23936 | ||
23937 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
23938 | PyObject *obj; | |
23939 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23940 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
23941 | Py_INCREF(obj); | |
23942 | return Py_BuildValue((char *)""); | |
23943 | } | |
23944 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23945 | PyObject *resultobj; | |
23946 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
23947 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
23948 | wxPyDataObjectSimple *result; | |
23949 | PyObject * obj0 = 0 ; | |
23950 | char *kwnames[] = { | |
23951 | (char *) "format", NULL | |
23952 | }; | |
23953 | ||
23954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
23955 | if (obj0) { | |
23956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23957 | if (arg1 == NULL) { | |
23958 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23959 | } | |
23960 | } | |
23961 | { | |
23962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23963 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
23964 | ||
23965 | wxPyEndAllowThreads(__tstate); | |
23966 | if (PyErr_Occurred()) SWIG_fail; | |
23967 | } | |
23968 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
23969 | return resultobj; | |
23970 | fail: | |
23971 | return NULL; | |
23972 | } | |
23973 | ||
23974 | ||
23975 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23976 | PyObject *resultobj; | |
23977 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
23978 | PyObject *arg2 = (PyObject *) 0 ; | |
23979 | PyObject *arg3 = (PyObject *) 0 ; | |
23980 | PyObject * obj0 = 0 ; | |
23981 | PyObject * obj1 = 0 ; | |
23982 | PyObject * obj2 = 0 ; | |
23983 | char *kwnames[] = { | |
23984 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23985 | }; | |
23986 | ||
23987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23989 | arg2 = obj1; | |
23990 | arg3 = obj2; | |
23991 | { | |
23992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23993 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23994 | ||
23995 | wxPyEndAllowThreads(__tstate); | |
23996 | if (PyErr_Occurred()) SWIG_fail; | |
23997 | } | |
23998 | Py_INCREF(Py_None); resultobj = Py_None; | |
23999 | return resultobj; | |
24000 | fail: | |
24001 | return NULL; | |
24002 | } | |
24003 | ||
24004 | ||
24005 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24006 | PyObject *obj; | |
24007 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24008 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24009 | Py_INCREF(obj); | |
24010 | return Py_BuildValue((char *)""); | |
24011 | } | |
24012 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24013 | PyObject *resultobj; | |
24014 | wxDataObjectComposite *result; | |
24015 | char *kwnames[] = { | |
24016 | NULL | |
24017 | }; | |
24018 | ||
24019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24020 | { | |
24021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24022 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24023 | ||
24024 | wxPyEndAllowThreads(__tstate); | |
24025 | if (PyErr_Occurred()) SWIG_fail; | |
24026 | } | |
24027 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1); | |
24028 | return resultobj; | |
24029 | fail: | |
24030 | return NULL; | |
24031 | } | |
24032 | ||
24033 | ||
24034 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24035 | PyObject *resultobj; | |
24036 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24037 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
24038 | int arg3 = (int) False ; | |
24039 | PyObject * obj0 = 0 ; | |
24040 | PyObject * obj1 = 0 ; | |
24041 | PyObject * obj2 = 0 ; | |
24042 | char *kwnames[] = { | |
24043 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24044 | }; | |
24045 | ||
24046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24048 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
24049 | if (obj2) { | |
24050 | { | |
24051 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24052 | if (PyErr_Occurred()) SWIG_fail; | |
24053 | } | |
24054 | } | |
24055 | { | |
24056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24057 | (arg1)->Add(arg2,arg3); | |
24058 | ||
24059 | wxPyEndAllowThreads(__tstate); | |
24060 | if (PyErr_Occurred()) SWIG_fail; | |
24061 | } | |
24062 | Py_INCREF(Py_None); resultobj = Py_None; | |
24063 | return resultobj; | |
24064 | fail: | |
24065 | return NULL; | |
24066 | } | |
24067 | ||
24068 | ||
24069 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24070 | PyObject *obj; | |
24071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24072 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24073 | Py_INCREF(obj); | |
24074 | return Py_BuildValue((char *)""); | |
24075 | } | |
24076 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24077 | PyObject *resultobj; | |
24078 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24079 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24080 | wxTextDataObject *result; | |
24081 | bool temp1 = False ; | |
24082 | PyObject * obj0 = 0 ; | |
24083 | char *kwnames[] = { | |
24084 | (char *) "text", NULL | |
24085 | }; | |
24086 | ||
24087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24088 | if (obj0) { | |
24089 | { | |
24090 | arg1 = wxString_in_helper(obj0); | |
24091 | if (arg1 == NULL) SWIG_fail; | |
24092 | temp1 = True; | |
24093 | } | |
24094 | } | |
24095 | { | |
24096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24097 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24098 | ||
24099 | wxPyEndAllowThreads(__tstate); | |
24100 | if (PyErr_Occurred()) SWIG_fail; | |
24101 | } | |
24102 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1); | |
24103 | { | |
24104 | if (temp1) | |
24105 | delete arg1; | |
24106 | } | |
24107 | return resultobj; | |
24108 | fail: | |
24109 | { | |
24110 | if (temp1) | |
24111 | delete arg1; | |
24112 | } | |
24113 | return NULL; | |
24114 | } | |
24115 | ||
24116 | ||
24117 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24118 | PyObject *resultobj; | |
24119 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24120 | size_t result; | |
24121 | PyObject * obj0 = 0 ; | |
24122 | char *kwnames[] = { | |
24123 | (char *) "self", NULL | |
24124 | }; | |
24125 | ||
24126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
24127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24128 | { | |
24129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24130 | result = (size_t)(arg1)->GetTextLength(); | |
24131 | ||
24132 | wxPyEndAllowThreads(__tstate); | |
24133 | if (PyErr_Occurred()) SWIG_fail; | |
24134 | } | |
24135 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
24136 | return resultobj; | |
24137 | fail: | |
24138 | return NULL; | |
24139 | } | |
24140 | ||
24141 | ||
24142 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24143 | PyObject *resultobj; | |
24144 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24145 | wxString result; | |
24146 | PyObject * obj0 = 0 ; | |
24147 | char *kwnames[] = { | |
24148 | (char *) "self", NULL | |
24149 | }; | |
24150 | ||
24151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
24152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24153 | { | |
24154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24155 | result = (arg1)->GetText(); | |
24156 | ||
24157 | wxPyEndAllowThreads(__tstate); | |
24158 | if (PyErr_Occurred()) SWIG_fail; | |
24159 | } | |
24160 | { | |
24161 | #if wxUSE_UNICODE | |
24162 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24163 | #else | |
24164 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24165 | #endif | |
24166 | } | |
24167 | return resultobj; | |
24168 | fail: | |
24169 | return NULL; | |
24170 | } | |
24171 | ||
24172 | ||
24173 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24174 | PyObject *resultobj; | |
24175 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24176 | wxString *arg2 = 0 ; | |
24177 | bool temp2 = False ; | |
24178 | PyObject * obj0 = 0 ; | |
24179 | PyObject * obj1 = 0 ; | |
24180 | char *kwnames[] = { | |
24181 | (char *) "self",(char *) "text", NULL | |
24182 | }; | |
24183 | ||
24184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
24185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24186 | { | |
24187 | arg2 = wxString_in_helper(obj1); | |
24188 | if (arg2 == NULL) SWIG_fail; | |
24189 | temp2 = True; | |
24190 | } | |
24191 | { | |
24192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24193 | (arg1)->SetText((wxString const &)*arg2); | |
24194 | ||
24195 | wxPyEndAllowThreads(__tstate); | |
24196 | if (PyErr_Occurred()) SWIG_fail; | |
24197 | } | |
24198 | Py_INCREF(Py_None); resultobj = Py_None; | |
24199 | { | |
24200 | if (temp2) | |
24201 | delete arg2; | |
24202 | } | |
24203 | return resultobj; | |
24204 | fail: | |
24205 | { | |
24206 | if (temp2) | |
24207 | delete arg2; | |
24208 | } | |
24209 | return NULL; | |
24210 | } | |
24211 | ||
24212 | ||
24213 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24214 | PyObject *obj; | |
24215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24216 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24217 | Py_INCREF(obj); | |
24218 | return Py_BuildValue((char *)""); | |
24219 | } | |
24220 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24221 | PyObject *resultobj; | |
24222 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24223 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24224 | wxPyTextDataObject *result; | |
24225 | bool temp1 = False ; | |
24226 | PyObject * obj0 = 0 ; | |
24227 | char *kwnames[] = { | |
24228 | (char *) "text", NULL | |
24229 | }; | |
24230 | ||
24231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24232 | if (obj0) { | |
24233 | { | |
24234 | arg1 = wxString_in_helper(obj0); | |
24235 | if (arg1 == NULL) SWIG_fail; | |
24236 | temp1 = True; | |
24237 | } | |
24238 | } | |
24239 | { | |
24240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24241 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24242 | ||
24243 | wxPyEndAllowThreads(__tstate); | |
24244 | if (PyErr_Occurred()) SWIG_fail; | |
24245 | } | |
24246 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1); | |
24247 | { | |
24248 | if (temp1) | |
24249 | delete arg1; | |
24250 | } | |
24251 | return resultobj; | |
24252 | fail: | |
24253 | { | |
24254 | if (temp1) | |
24255 | delete arg1; | |
24256 | } | |
24257 | return NULL; | |
24258 | } | |
24259 | ||
24260 | ||
24261 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24262 | PyObject *resultobj; | |
24263 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
24264 | PyObject *arg2 = (PyObject *) 0 ; | |
24265 | PyObject *arg3 = (PyObject *) 0 ; | |
24266 | PyObject * obj0 = 0 ; | |
24267 | PyObject * obj1 = 0 ; | |
24268 | PyObject * obj2 = 0 ; | |
24269 | char *kwnames[] = { | |
24270 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24271 | }; | |
24272 | ||
24273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24275 | arg2 = obj1; | |
24276 | arg3 = obj2; | |
24277 | { | |
24278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24279 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24280 | ||
24281 | wxPyEndAllowThreads(__tstate); | |
24282 | if (PyErr_Occurred()) SWIG_fail; | |
24283 | } | |
24284 | Py_INCREF(Py_None); resultobj = Py_None; | |
24285 | return resultobj; | |
24286 | fail: | |
24287 | return NULL; | |
24288 | } | |
24289 | ||
24290 | ||
24291 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24292 | PyObject *obj; | |
24293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24294 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
24295 | Py_INCREF(obj); | |
24296 | return Py_BuildValue((char *)""); | |
24297 | } | |
24298 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24299 | PyObject *resultobj; | |
24300 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24301 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24302 | wxBitmapDataObject *result; | |
24303 | PyObject * obj0 = 0 ; | |
24304 | char *kwnames[] = { | |
24305 | (char *) "bitmap", NULL | |
24306 | }; | |
24307 | ||
24308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
24309 | if (obj0) { | |
24310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24311 | if (arg1 == NULL) { | |
24312 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24313 | } | |
24314 | } | |
24315 | { | |
24316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24317 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
24318 | ||
24319 | wxPyEndAllowThreads(__tstate); | |
24320 | if (PyErr_Occurred()) SWIG_fail; | |
24321 | } | |
24322 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1); | |
24323 | return resultobj; | |
24324 | fail: | |
24325 | return NULL; | |
24326 | } | |
24327 | ||
24328 | ||
24329 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24330 | PyObject *resultobj; | |
24331 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24332 | wxBitmap result; | |
24333 | PyObject * obj0 = 0 ; | |
24334 | char *kwnames[] = { | |
24335 | (char *) "self", NULL | |
24336 | }; | |
24337 | ||
24338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
24339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24340 | { | |
24341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24342 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
24343 | ||
24344 | wxPyEndAllowThreads(__tstate); | |
24345 | if (PyErr_Occurred()) SWIG_fail; | |
24346 | } | |
24347 | { | |
24348 | wxBitmap * resultptr; | |
24349 | resultptr = new wxBitmap((wxBitmap &) result); | |
24350 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
24351 | } | |
24352 | return resultobj; | |
24353 | fail: | |
24354 | return NULL; | |
24355 | } | |
24356 | ||
24357 | ||
24358 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24359 | PyObject *resultobj; | |
24360 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24361 | wxBitmap *arg2 = 0 ; | |
24362 | PyObject * obj0 = 0 ; | |
24363 | PyObject * obj1 = 0 ; | |
24364 | char *kwnames[] = { | |
24365 | (char *) "self",(char *) "bitmap", NULL | |
24366 | }; | |
24367 | ||
24368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
24369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24370 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24371 | if (arg2 == NULL) { | |
24372 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24373 | } | |
24374 | { | |
24375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24376 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
24377 | ||
24378 | wxPyEndAllowThreads(__tstate); | |
24379 | if (PyErr_Occurred()) SWIG_fail; | |
24380 | } | |
24381 | Py_INCREF(Py_None); resultobj = Py_None; | |
24382 | return resultobj; | |
24383 | fail: | |
24384 | return NULL; | |
24385 | } | |
24386 | ||
24387 | ||
24388 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
24389 | PyObject *obj; | |
24390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24391 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
24392 | Py_INCREF(obj); | |
24393 | return Py_BuildValue((char *)""); | |
24394 | } | |
24395 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24396 | PyObject *resultobj; | |
24397 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24398 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24399 | wxPyBitmapDataObject *result; | |
24400 | PyObject * obj0 = 0 ; | |
24401 | char *kwnames[] = { | |
24402 | (char *) "bitmap", NULL | |
24403 | }; | |
24404 | ||
24405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
24406 | if (obj0) { | |
24407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24408 | if (arg1 == NULL) { | |
24409 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24410 | } | |
24411 | } | |
24412 | { | |
24413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24414 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
24415 | ||
24416 | wxPyEndAllowThreads(__tstate); | |
24417 | if (PyErr_Occurred()) SWIG_fail; | |
24418 | } | |
24419 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
24420 | return resultobj; | |
24421 | fail: | |
24422 | return NULL; | |
24423 | } | |
24424 | ||
24425 | ||
24426 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24427 | PyObject *resultobj; | |
24428 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
24429 | PyObject *arg2 = (PyObject *) 0 ; | |
24430 | PyObject *arg3 = (PyObject *) 0 ; | |
24431 | PyObject * obj0 = 0 ; | |
24432 | PyObject * obj1 = 0 ; | |
24433 | PyObject * obj2 = 0 ; | |
24434 | char *kwnames[] = { | |
24435 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24436 | }; | |
24437 | ||
24438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24440 | arg2 = obj1; | |
24441 | arg3 = obj2; | |
24442 | { | |
24443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24444 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24445 | ||
24446 | wxPyEndAllowThreads(__tstate); | |
24447 | if (PyErr_Occurred()) SWIG_fail; | |
24448 | } | |
24449 | Py_INCREF(Py_None); resultobj = Py_None; | |
24450 | return resultobj; | |
24451 | fail: | |
24452 | return NULL; | |
24453 | } | |
24454 | ||
24455 | ||
24456 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
24457 | PyObject *obj; | |
24458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24459 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
24460 | Py_INCREF(obj); | |
24461 | return Py_BuildValue((char *)""); | |
24462 | } | |
24463 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24464 | PyObject *resultobj; | |
24465 | wxFileDataObject *result; | |
24466 | char *kwnames[] = { | |
24467 | NULL | |
24468 | }; | |
24469 | ||
24470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
24471 | { | |
24472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24473 | result = (wxFileDataObject *)new wxFileDataObject(); | |
24474 | ||
24475 | wxPyEndAllowThreads(__tstate); | |
24476 | if (PyErr_Occurred()) SWIG_fail; | |
24477 | } | |
24478 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1); | |
24479 | return resultobj; | |
24480 | fail: | |
24481 | return NULL; | |
24482 | } | |
24483 | ||
24484 | ||
24485 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24486 | PyObject *resultobj; | |
24487 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
24488 | wxArrayString *result; | |
24489 | PyObject * obj0 = 0 ; | |
24490 | char *kwnames[] = { | |
24491 | (char *) "self", NULL | |
24492 | }; | |
24493 | ||
24494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
24495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24496 | { | |
24497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24498 | { | |
24499 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
24500 | result = (wxArrayString *) &_result_ref; | |
24501 | } | |
24502 | ||
24503 | wxPyEndAllowThreads(__tstate); | |
24504 | if (PyErr_Occurred()) SWIG_fail; | |
24505 | } | |
24506 | { | |
24507 | resultobj = wxArrayString2PyList_helper(*result); | |
24508 | } | |
24509 | return resultobj; | |
24510 | fail: | |
24511 | return NULL; | |
24512 | } | |
24513 | ||
24514 | ||
24515 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24516 | PyObject *resultobj; | |
24517 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
24518 | wxString *arg2 = 0 ; | |
24519 | bool temp2 = False ; | |
24520 | PyObject * obj0 = 0 ; | |
24521 | PyObject * obj1 = 0 ; | |
24522 | char *kwnames[] = { | |
24523 | (char *) "self",(char *) "filename", NULL | |
24524 | }; | |
24525 | ||
24526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
24527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24528 | { | |
24529 | arg2 = wxString_in_helper(obj1); | |
24530 | if (arg2 == NULL) SWIG_fail; | |
24531 | temp2 = True; | |
24532 | } | |
24533 | { | |
24534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24535 | (arg1)->AddFile((wxString const &)*arg2); | |
24536 | ||
24537 | wxPyEndAllowThreads(__tstate); | |
24538 | if (PyErr_Occurred()) SWIG_fail; | |
24539 | } | |
24540 | Py_INCREF(Py_None); resultobj = Py_None; | |
24541 | { | |
24542 | if (temp2) | |
24543 | delete arg2; | |
24544 | } | |
24545 | return resultobj; | |
24546 | fail: | |
24547 | { | |
24548 | if (temp2) | |
24549 | delete arg2; | |
24550 | } | |
24551 | return NULL; | |
24552 | } | |
24553 | ||
24554 | ||
24555 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
24556 | PyObject *obj; | |
24557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24558 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
24559 | Py_INCREF(obj); | |
24560 | return Py_BuildValue((char *)""); | |
24561 | } | |
24562 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24563 | PyObject *resultobj; | |
24564 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24565 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24566 | wxCustomDataObject *result; | |
24567 | PyObject * obj0 = 0 ; | |
24568 | char *kwnames[] = { | |
24569 | (char *) "format", NULL | |
24570 | }; | |
24571 | ||
24572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
24573 | if (obj0) { | |
24574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24575 | if (arg1 == NULL) { | |
24576 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24577 | } | |
24578 | } | |
24579 | { | |
24580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24581 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
24582 | ||
24583 | wxPyEndAllowThreads(__tstate); | |
24584 | if (PyErr_Occurred()) SWIG_fail; | |
24585 | } | |
24586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1); | |
24587 | return resultobj; | |
24588 | fail: | |
24589 | return NULL; | |
24590 | } | |
24591 | ||
24592 | ||
24593 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24594 | PyObject *resultobj; | |
24595 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24596 | PyObject *arg2 = (PyObject *) 0 ; | |
24597 | PyObject * obj0 = 0 ; | |
24598 | PyObject * obj1 = 0 ; | |
24599 | char *kwnames[] = { | |
24600 | (char *) "self",(char *) "data", NULL | |
24601 | }; | |
24602 | ||
24603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
24604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24605 | arg2 = obj1; | |
24606 | { | |
24607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24608 | wxCustomDataObject_TakeData(arg1,arg2); | |
24609 | ||
24610 | wxPyEndAllowThreads(__tstate); | |
24611 | if (PyErr_Occurred()) SWIG_fail; | |
24612 | } | |
24613 | Py_INCREF(Py_None); resultobj = Py_None; | |
24614 | return resultobj; | |
24615 | fail: | |
24616 | return NULL; | |
24617 | } | |
24618 | ||
24619 | ||
24620 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24621 | PyObject *resultobj; | |
24622 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24623 | PyObject *arg2 = (PyObject *) 0 ; | |
24624 | bool result; | |
24625 | PyObject * obj0 = 0 ; | |
24626 | PyObject * obj1 = 0 ; | |
24627 | char *kwnames[] = { | |
24628 | (char *) "self",(char *) "data", NULL | |
24629 | }; | |
24630 | ||
24631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24633 | arg2 = obj1; | |
24634 | { | |
24635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24636 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
24637 | ||
24638 | wxPyEndAllowThreads(__tstate); | |
24639 | if (PyErr_Occurred()) SWIG_fail; | |
24640 | } | |
24641 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
24642 | return resultobj; | |
24643 | fail: | |
24644 | return NULL; | |
24645 | } | |
24646 | ||
24647 | ||
24648 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24649 | PyObject *resultobj; | |
24650 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24651 | size_t result; | |
24652 | PyObject * obj0 = 0 ; | |
24653 | char *kwnames[] = { | |
24654 | (char *) "self", NULL | |
24655 | }; | |
24656 | ||
24657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
24658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24659 | { | |
24660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24661 | result = (size_t)(arg1)->GetSize(); | |
24662 | ||
24663 | wxPyEndAllowThreads(__tstate); | |
24664 | if (PyErr_Occurred()) SWIG_fail; | |
24665 | } | |
24666 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
24667 | return resultobj; | |
24668 | fail: | |
24669 | return NULL; | |
24670 | } | |
24671 | ||
24672 | ||
24673 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24674 | PyObject *resultobj; | |
24675 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24676 | PyObject *result; | |
24677 | PyObject * obj0 = 0 ; | |
24678 | char *kwnames[] = { | |
24679 | (char *) "self", NULL | |
24680 | }; | |
24681 | ||
24682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
24683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24684 | { | |
24685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24686 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
24687 | ||
24688 | wxPyEndAllowThreads(__tstate); | |
24689 | if (PyErr_Occurred()) SWIG_fail; | |
24690 | } | |
24691 | resultobj = result; | |
24692 | return resultobj; | |
24693 | fail: | |
24694 | return NULL; | |
24695 | } | |
24696 | ||
24697 | ||
24698 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
24699 | PyObject *obj; | |
24700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24701 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
24702 | Py_INCREF(obj); | |
24703 | return Py_BuildValue((char *)""); | |
24704 | } | |
24705 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24706 | PyObject *resultobj; | |
24707 | wxURLDataObject *result; | |
24708 | char *kwnames[] = { | |
24709 | NULL | |
24710 | }; | |
24711 | ||
24712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
24713 | { | |
24714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24715 | result = (wxURLDataObject *)new wxURLDataObject(); | |
24716 | ||
24717 | wxPyEndAllowThreads(__tstate); | |
24718 | if (PyErr_Occurred()) SWIG_fail; | |
24719 | } | |
24720 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1); | |
24721 | return resultobj; | |
24722 | fail: | |
24723 | return NULL; | |
24724 | } | |
24725 | ||
24726 | ||
24727 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24728 | PyObject *resultobj; | |
24729 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
24730 | wxString result; | |
24731 | PyObject * obj0 = 0 ; | |
24732 | char *kwnames[] = { | |
24733 | (char *) "self", NULL | |
24734 | }; | |
24735 | ||
24736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
24737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24738 | { | |
24739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24740 | result = (arg1)->GetURL(); | |
24741 | ||
24742 | wxPyEndAllowThreads(__tstate); | |
24743 | if (PyErr_Occurred()) SWIG_fail; | |
24744 | } | |
24745 | { | |
24746 | #if wxUSE_UNICODE | |
24747 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24748 | #else | |
24749 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24750 | #endif | |
24751 | } | |
24752 | return resultobj; | |
24753 | fail: | |
24754 | return NULL; | |
24755 | } | |
24756 | ||
24757 | ||
24758 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24759 | PyObject *resultobj; | |
24760 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
24761 | wxString *arg2 = 0 ; | |
24762 | bool temp2 = False ; | |
24763 | PyObject * obj0 = 0 ; | |
24764 | PyObject * obj1 = 0 ; | |
24765 | char *kwnames[] = { | |
24766 | (char *) "self",(char *) "url", NULL | |
24767 | }; | |
24768 | ||
24769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
24770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24771 | { | |
24772 | arg2 = wxString_in_helper(obj1); | |
24773 | if (arg2 == NULL) SWIG_fail; | |
24774 | temp2 = True; | |
24775 | } | |
24776 | { | |
24777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24778 | (arg1)->SetURL((wxString const &)*arg2); | |
24779 | ||
24780 | wxPyEndAllowThreads(__tstate); | |
24781 | if (PyErr_Occurred()) SWIG_fail; | |
24782 | } | |
24783 | Py_INCREF(Py_None); resultobj = Py_None; | |
24784 | { | |
24785 | if (temp2) | |
24786 | delete arg2; | |
24787 | } | |
24788 | return resultobj; | |
24789 | fail: | |
24790 | { | |
24791 | if (temp2) | |
24792 | delete arg2; | |
24793 | } | |
24794 | return NULL; | |
24795 | } | |
24796 | ||
24797 | ||
24798 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
24799 | PyObject *obj; | |
24800 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24801 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
24802 | Py_INCREF(obj); | |
24803 | return Py_BuildValue((char *)""); | |
24804 | } | |
24805 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24806 | PyObject *resultobj; | |
24807 | wxMetafileDataObject *result; | |
24808 | char *kwnames[] = { | |
24809 | NULL | |
24810 | }; | |
24811 | ||
24812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
24813 | { | |
24814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24815 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
24816 | ||
24817 | wxPyEndAllowThreads(__tstate); | |
24818 | if (PyErr_Occurred()) SWIG_fail; | |
24819 | } | |
24820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1); | |
24821 | return resultobj; | |
24822 | fail: | |
24823 | return NULL; | |
24824 | } | |
24825 | ||
24826 | ||
24827 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24828 | PyObject *resultobj; | |
24829 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
24830 | wxMetafile *arg2 = 0 ; | |
24831 | PyObject * obj0 = 0 ; | |
24832 | PyObject * obj1 = 0 ; | |
24833 | char *kwnames[] = { | |
24834 | (char *) "self",(char *) "metafile", NULL | |
24835 | }; | |
24836 | ||
24837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
24838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24839 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMetafile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24840 | if (arg2 == NULL) { | |
24841 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24842 | } | |
24843 | { | |
24844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24845 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
24846 | ||
24847 | wxPyEndAllowThreads(__tstate); | |
24848 | if (PyErr_Occurred()) SWIG_fail; | |
24849 | } | |
24850 | Py_INCREF(Py_None); resultobj = Py_None; | |
24851 | return resultobj; | |
24852 | fail: | |
24853 | return NULL; | |
24854 | } | |
24855 | ||
24856 | ||
24857 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24858 | PyObject *resultobj; | |
24859 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
24860 | wxMetafile result; | |
24861 | PyObject * obj0 = 0 ; | |
24862 | char *kwnames[] = { | |
24863 | (char *) "self", NULL | |
24864 | }; | |
24865 | ||
24866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
24867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24868 | { | |
24869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24870 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
24871 | ||
24872 | wxPyEndAllowThreads(__tstate); | |
24873 | if (PyErr_Occurred()) SWIG_fail; | |
24874 | } | |
24875 | { | |
24876 | wxMetafile * resultptr; | |
24877 | resultptr = new wxMetafile((wxMetafile &) result); | |
24878 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxMetafile, 1); | |
24879 | } | |
24880 | return resultobj; | |
24881 | fail: | |
24882 | return NULL; | |
24883 | } | |
24884 | ||
24885 | ||
24886 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
24887 | PyObject *obj; | |
24888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24889 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
24890 | Py_INCREF(obj); | |
24891 | return Py_BuildValue((char *)""); | |
24892 | } | |
24893 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24894 | PyObject *resultobj; | |
24895 | int arg1 ; | |
24896 | bool result; | |
24897 | PyObject * obj0 = 0 ; | |
24898 | char *kwnames[] = { | |
24899 | (char *) "res", NULL | |
24900 | }; | |
24901 | ||
24902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
24903 | { | |
24904 | arg1 = (wxDragResult) SWIG_PyObj_AsInt(obj0); | |
24905 | if (PyErr_Occurred()) SWIG_fail; | |
24906 | } | |
24907 | { | |
24908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24909 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
24910 | ||
24911 | wxPyEndAllowThreads(__tstate); | |
24912 | if (PyErr_Occurred()) SWIG_fail; | |
24913 | } | |
24914 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
24915 | return resultobj; | |
24916 | fail: | |
24917 | return NULL; | |
24918 | } | |
24919 | ||
24920 | ||
24921 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24922 | PyObject *resultobj; | |
24923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24924 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
24925 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
24926 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
24927 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
24928 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
24929 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
24930 | wxPyDropSource *result; | |
24931 | PyObject * obj0 = 0 ; | |
24932 | PyObject * obj1 = 0 ; | |
24933 | PyObject * obj2 = 0 ; | |
24934 | PyObject * obj3 = 0 ; | |
24935 | char *kwnames[] = { | |
24936 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
24937 | }; | |
24938 | ||
24939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24941 | if (obj1) { | |
24942 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24943 | if (arg2 == NULL) { | |
24944 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24945 | } | |
24946 | } | |
24947 | if (obj2) { | |
24948 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24949 | if (arg3 == NULL) { | |
24950 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24951 | } | |
24952 | } | |
24953 | if (obj3) { | |
24954 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24955 | if (arg4 == NULL) { | |
24956 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24957 | } | |
24958 | } | |
24959 | { | |
24960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24961 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
24962 | ||
24963 | wxPyEndAllowThreads(__tstate); | |
24964 | if (PyErr_Occurred()) SWIG_fail; | |
24965 | } | |
24966 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1); | |
24967 | return resultobj; | |
24968 | fail: | |
24969 | return NULL; | |
24970 | } | |
24971 | ||
24972 | ||
24973 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24974 | PyObject *resultobj; | |
24975 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
24976 | PyObject *arg2 = (PyObject *) 0 ; | |
24977 | PyObject *arg3 = (PyObject *) 0 ; | |
24978 | int arg4 ; | |
24979 | PyObject * obj0 = 0 ; | |
24980 | PyObject * obj1 = 0 ; | |
24981 | PyObject * obj2 = 0 ; | |
24982 | PyObject * obj3 = 0 ; | |
24983 | char *kwnames[] = { | |
24984 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
24985 | }; | |
24986 | ||
24987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24989 | arg2 = obj1; | |
24990 | arg3 = obj2; | |
24991 | { | |
24992 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
24993 | if (PyErr_Occurred()) SWIG_fail; | |
24994 | } | |
24995 | { | |
24996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24997 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
24998 | ||
24999 | wxPyEndAllowThreads(__tstate); | |
25000 | if (PyErr_Occurred()) SWIG_fail; | |
25001 | } | |
25002 | Py_INCREF(Py_None); resultobj = Py_None; | |
25003 | return resultobj; | |
25004 | fail: | |
25005 | return NULL; | |
25006 | } | |
25007 | ||
25008 | ||
25009 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25010 | PyObject *resultobj; | |
25011 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25012 | PyObject * obj0 = 0 ; | |
25013 | char *kwnames[] = { | |
25014 | (char *) "self", NULL | |
25015 | }; | |
25016 | ||
25017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
25018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25019 | { | |
25020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25021 | delete arg1; | |
25022 | ||
25023 | wxPyEndAllowThreads(__tstate); | |
25024 | if (PyErr_Occurred()) SWIG_fail; | |
25025 | } | |
25026 | Py_INCREF(Py_None); resultobj = Py_None; | |
25027 | return resultobj; | |
25028 | fail: | |
25029 | return NULL; | |
25030 | } | |
25031 | ||
25032 | ||
25033 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25034 | PyObject *resultobj; | |
25035 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25036 | wxDataObject *arg2 = 0 ; | |
25037 | PyObject * obj0 = 0 ; | |
25038 | PyObject * obj1 = 0 ; | |
25039 | char *kwnames[] = { | |
25040 | (char *) "self",(char *) "data", NULL | |
25041 | }; | |
25042 | ||
25043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25045 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25046 | if (arg2 == NULL) { | |
25047 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25048 | } | |
25049 | { | |
25050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25051 | (arg1)->SetData(*arg2); | |
25052 | ||
25053 | wxPyEndAllowThreads(__tstate); | |
25054 | if (PyErr_Occurred()) SWIG_fail; | |
25055 | } | |
25056 | Py_INCREF(Py_None); resultobj = Py_None; | |
25057 | return resultobj; | |
25058 | fail: | |
25059 | return NULL; | |
25060 | } | |
25061 | ||
25062 | ||
25063 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25064 | PyObject *resultobj; | |
25065 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25066 | wxDataObject *result; | |
25067 | PyObject * obj0 = 0 ; | |
25068 | char *kwnames[] = { | |
25069 | (char *) "self", NULL | |
25070 | }; | |
25071 | ||
25072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
25073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25074 | { | |
25075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25076 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25077 | ||
25078 | wxPyEndAllowThreads(__tstate); | |
25079 | if (PyErr_Occurred()) SWIG_fail; | |
25080 | } | |
25081 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
25082 | return resultobj; | |
25083 | fail: | |
25084 | return NULL; | |
25085 | } | |
25086 | ||
25087 | ||
25088 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25089 | PyObject *resultobj; | |
25090 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25091 | int arg2 ; | |
25092 | wxCursor *arg3 = 0 ; | |
25093 | PyObject * obj0 = 0 ; | |
25094 | PyObject * obj1 = 0 ; | |
25095 | PyObject * obj2 = 0 ; | |
25096 | char *kwnames[] = { | |
25097 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25098 | }; | |
25099 | ||
25100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25102 | { | |
25103 | arg2 = (wxDragResult) SWIG_PyObj_AsInt(obj1); | |
25104 | if (PyErr_Occurred()) SWIG_fail; | |
25105 | } | |
25106 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25107 | if (arg3 == NULL) { | |
25108 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25109 | } | |
25110 | { | |
25111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25112 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25113 | ||
25114 | wxPyEndAllowThreads(__tstate); | |
25115 | if (PyErr_Occurred()) SWIG_fail; | |
25116 | } | |
25117 | Py_INCREF(Py_None); resultobj = Py_None; | |
25118 | return resultobj; | |
25119 | fail: | |
25120 | return NULL; | |
25121 | } | |
25122 | ||
25123 | ||
25124 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25125 | PyObject *resultobj; | |
25126 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25127 | int arg2 = (int) wxDrag_CopyOnly ; | |
25128 | int result; | |
25129 | PyObject * obj0 = 0 ; | |
25130 | PyObject * obj1 = 0 ; | |
25131 | char *kwnames[] = { | |
25132 | (char *) "self",(char *) "flags", NULL | |
25133 | }; | |
25134 | ||
25135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
25136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25137 | if (obj1) { | |
25138 | { | |
25139 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25140 | if (PyErr_Occurred()) SWIG_fail; | |
25141 | } | |
25142 | } | |
25143 | { | |
25144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25145 | result = (int)(arg1)->DoDragDrop(arg2); | |
25146 | ||
25147 | wxPyEndAllowThreads(__tstate); | |
25148 | if (PyErr_Occurred()) SWIG_fail; | |
25149 | } | |
25150 | resultobj = SWIG_PyObj_FromInt((int)result); | |
25151 | return resultobj; | |
25152 | fail: | |
25153 | return NULL; | |
25154 | } | |
25155 | ||
25156 | ||
25157 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25158 | PyObject *resultobj; | |
25159 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25160 | int arg2 ; | |
25161 | bool result; | |
25162 | PyObject * obj0 = 0 ; | |
25163 | PyObject * obj1 = 0 ; | |
25164 | char *kwnames[] = { | |
25165 | (char *) "self",(char *) "effect", NULL | |
25166 | }; | |
25167 | ||
25168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
25169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25170 | { | |
25171 | arg2 = (wxDragResult) SWIG_PyObj_AsInt(obj1); | |
25172 | if (PyErr_Occurred()) SWIG_fail; | |
25173 | } | |
25174 | { | |
25175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25176 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25177 | ||
25178 | wxPyEndAllowThreads(__tstate); | |
25179 | if (PyErr_Occurred()) SWIG_fail; | |
25180 | } | |
25181 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
25182 | return resultobj; | |
25183 | fail: | |
25184 | return NULL; | |
25185 | } | |
25186 | ||
25187 | ||
25188 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25189 | PyObject *obj; | |
25190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25191 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25192 | Py_INCREF(obj); | |
25193 | return Py_BuildValue((char *)""); | |
25194 | } | |
25195 | static PyObject *_wrap_new_PyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25196 | PyObject *resultobj; | |
25197 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25198 | wxPyDropTarget *result; | |
25199 | PyObject * obj0 = 0 ; | |
25200 | char *kwnames[] = { | |
25201 | (char *) "dataObject", NULL | |
25202 | }; | |
25203 | ||
25204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDropTarget",kwnames,&obj0)) goto fail; | |
25205 | if (obj0) { | |
25206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
25207 | } | |
25208 | { | |
25209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25210 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25211 | ||
25212 | wxPyEndAllowThreads(__tstate); | |
25213 | if (PyErr_Occurred()) SWIG_fail; | |
25214 | } | |
25215 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1); | |
25216 | return resultobj; | |
25217 | fail: | |
25218 | return NULL; | |
25219 | } | |
25220 | ||
25221 | ||
25222 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25223 | PyObject *resultobj; | |
25224 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25225 | PyObject *arg2 = (PyObject *) 0 ; | |
25226 | PyObject *arg3 = (PyObject *) 0 ; | |
25227 | PyObject * obj0 = 0 ; | |
25228 | PyObject * obj1 = 0 ; | |
25229 | PyObject * obj2 = 0 ; | |
25230 | char *kwnames[] = { | |
25231 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25232 | }; | |
25233 | ||
25234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25236 | arg2 = obj1; | |
25237 | arg3 = obj2; | |
25238 | { | |
25239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25240 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25241 | ||
25242 | wxPyEndAllowThreads(__tstate); | |
25243 | if (PyErr_Occurred()) SWIG_fail; | |
25244 | } | |
25245 | Py_INCREF(Py_None); resultobj = Py_None; | |
25246 | return resultobj; | |
25247 | fail: | |
25248 | return NULL; | |
25249 | } | |
25250 | ||
25251 | ||
25252 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25253 | PyObject *resultobj; | |
25254 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25255 | PyObject * obj0 = 0 ; | |
25256 | char *kwnames[] = { | |
25257 | (char *) "self", NULL | |
25258 | }; | |
25259 | ||
25260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
25261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25262 | { | |
25263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25264 | delete arg1; | |
25265 | ||
25266 | wxPyEndAllowThreads(__tstate); | |
25267 | if (PyErr_Occurred()) SWIG_fail; | |
25268 | } | |
25269 | Py_INCREF(Py_None); resultobj = Py_None; | |
25270 | return resultobj; | |
25271 | fail: | |
25272 | return NULL; | |
25273 | } | |
25274 | ||
25275 | ||
25276 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25277 | PyObject *resultobj; | |
25278 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25279 | wxDataObject *result; | |
25280 | PyObject * obj0 = 0 ; | |
25281 | char *kwnames[] = { | |
25282 | (char *) "self", NULL | |
25283 | }; | |
25284 | ||
25285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
25286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25287 | { | |
25288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25289 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25290 | ||
25291 | wxPyEndAllowThreads(__tstate); | |
25292 | if (PyErr_Occurred()) SWIG_fail; | |
25293 | } | |
25294 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
25295 | return resultobj; | |
25296 | fail: | |
25297 | return NULL; | |
25298 | } | |
25299 | ||
25300 | ||
25301 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25302 | PyObject *resultobj; | |
25303 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25304 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
25305 | PyObject * obj0 = 0 ; | |
25306 | PyObject * obj1 = 0 ; | |
25307 | char *kwnames[] = { | |
25308 | (char *) "self",(char *) "dataObject", NULL | |
25309 | }; | |
25310 | ||
25311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
25312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25313 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
25314 | { | |
25315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25316 | (arg1)->SetDataObject(arg2); | |
25317 | ||
25318 | wxPyEndAllowThreads(__tstate); | |
25319 | if (PyErr_Occurred()) SWIG_fail; | |
25320 | } | |
25321 | Py_INCREF(Py_None); resultobj = Py_None; | |
25322 | return resultobj; | |
25323 | fail: | |
25324 | return NULL; | |
25325 | } | |
25326 | ||
25327 | ||
25328 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25329 | PyObject *resultobj; | |
25330 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25331 | int arg2 ; | |
25332 | int arg3 ; | |
25333 | int arg4 ; | |
25334 | int result; | |
25335 | PyObject * obj0 = 0 ; | |
25336 | PyObject * obj1 = 0 ; | |
25337 | PyObject * obj2 = 0 ; | |
25338 | PyObject * obj3 = 0 ; | |
25339 | char *kwnames[] = { | |
25340 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25341 | }; | |
25342 | ||
25343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25345 | { | |
25346 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25347 | if (PyErr_Occurred()) SWIG_fail; | |
25348 | } | |
25349 | { | |
25350 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25351 | if (PyErr_Occurred()) SWIG_fail; | |
25352 | } | |
25353 | { | |
25354 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25355 | if (PyErr_Occurred()) SWIG_fail; | |
25356 | } | |
25357 | { | |
25358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25359 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
25360 | ||
25361 | wxPyEndAllowThreads(__tstate); | |
25362 | if (PyErr_Occurred()) SWIG_fail; | |
25363 | } | |
25364 | resultobj = SWIG_PyObj_FromInt((int)result); | |
25365 | return resultobj; | |
25366 | fail: | |
25367 | return NULL; | |
25368 | } | |
25369 | ||
25370 | ||
25371 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25372 | PyObject *resultobj; | |
25373 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25374 | int arg2 ; | |
25375 | int arg3 ; | |
25376 | int arg4 ; | |
25377 | int result; | |
25378 | PyObject * obj0 = 0 ; | |
25379 | PyObject * obj1 = 0 ; | |
25380 | PyObject * obj2 = 0 ; | |
25381 | PyObject * obj3 = 0 ; | |
25382 | char *kwnames[] = { | |
25383 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25384 | }; | |
25385 | ||
25386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25388 | { | |
25389 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25390 | if (PyErr_Occurred()) SWIG_fail; | |
25391 | } | |
25392 | { | |
25393 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25394 | if (PyErr_Occurred()) SWIG_fail; | |
25395 | } | |
25396 | { | |
25397 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25398 | if (PyErr_Occurred()) SWIG_fail; | |
25399 | } | |
25400 | { | |
25401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25402 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
25403 | ||
25404 | wxPyEndAllowThreads(__tstate); | |
25405 | if (PyErr_Occurred()) SWIG_fail; | |
25406 | } | |
25407 | resultobj = SWIG_PyObj_FromInt((int)result); | |
25408 | return resultobj; | |
25409 | fail: | |
25410 | return NULL; | |
25411 | } | |
25412 | ||
25413 | ||
25414 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25415 | PyObject *resultobj; | |
25416 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25417 | PyObject * obj0 = 0 ; | |
25418 | char *kwnames[] = { | |
25419 | (char *) "self", NULL | |
25420 | }; | |
25421 | ||
25422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
25423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25424 | { | |
25425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25426 | (arg1)->base_OnLeave(); | |
25427 | ||
25428 | wxPyEndAllowThreads(__tstate); | |
25429 | if (PyErr_Occurred()) SWIG_fail; | |
25430 | } | |
25431 | Py_INCREF(Py_None); resultobj = Py_None; | |
25432 | return resultobj; | |
25433 | fail: | |
25434 | return NULL; | |
25435 | } | |
25436 | ||
25437 | ||
25438 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25439 | PyObject *resultobj; | |
25440 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25441 | int arg2 ; | |
25442 | int arg3 ; | |
25443 | bool result; | |
25444 | PyObject * obj0 = 0 ; | |
25445 | PyObject * obj1 = 0 ; | |
25446 | PyObject * obj2 = 0 ; | |
25447 | char *kwnames[] = { | |
25448 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25449 | }; | |
25450 | ||
25451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25453 | { | |
25454 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25455 | if (PyErr_Occurred()) SWIG_fail; | |
25456 | } | |
25457 | { | |
25458 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25459 | if (PyErr_Occurred()) SWIG_fail; | |
25460 | } | |
25461 | { | |
25462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25463 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
25464 | ||
25465 | wxPyEndAllowThreads(__tstate); | |
25466 | if (PyErr_Occurred()) SWIG_fail; | |
25467 | } | |
25468 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
25469 | return resultobj; | |
25470 | fail: | |
25471 | return NULL; | |
25472 | } | |
25473 | ||
25474 | ||
25475 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25476 | PyObject *resultobj; | |
25477 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25478 | bool result; | |
25479 | PyObject * obj0 = 0 ; | |
25480 | char *kwnames[] = { | |
25481 | (char *) "self", NULL | |
25482 | }; | |
25483 | ||
25484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
25485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25486 | { | |
25487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25488 | result = (bool)(arg1)->GetData(); | |
25489 | ||
25490 | wxPyEndAllowThreads(__tstate); | |
25491 | if (PyErr_Occurred()) SWIG_fail; | |
25492 | } | |
25493 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
25494 | return resultobj; | |
25495 | fail: | |
25496 | return NULL; | |
25497 | } | |
25498 | ||
25499 | ||
25500 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
25501 | PyObject *obj; | |
25502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25503 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
25504 | Py_INCREF(obj); | |
25505 | return Py_BuildValue((char *)""); | |
25506 | } | |
25507 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25508 | PyObject *resultobj; | |
25509 | wxPyTextDropTarget *result; | |
25510 | char *kwnames[] = { | |
25511 | NULL | |
25512 | }; | |
25513 | ||
25514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
25515 | { | |
25516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25517 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
25518 | ||
25519 | wxPyEndAllowThreads(__tstate); | |
25520 | if (PyErr_Occurred()) SWIG_fail; | |
25521 | } | |
25522 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1); | |
25523 | return resultobj; | |
25524 | fail: | |
25525 | return NULL; | |
25526 | } | |
25527 | ||
25528 | ||
25529 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25530 | PyObject *resultobj; | |
25531 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25532 | PyObject *arg2 = (PyObject *) 0 ; | |
25533 | PyObject *arg3 = (PyObject *) 0 ; | |
25534 | PyObject * obj0 = 0 ; | |
25535 | PyObject * obj1 = 0 ; | |
25536 | PyObject * obj2 = 0 ; | |
25537 | char *kwnames[] = { | |
25538 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25539 | }; | |
25540 | ||
25541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25543 | arg2 = obj1; | |
25544 | arg3 = obj2; | |
25545 | { | |
25546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25547 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25548 | ||
25549 | wxPyEndAllowThreads(__tstate); | |
25550 | if (PyErr_Occurred()) SWIG_fail; | |
25551 | } | |
25552 | Py_INCREF(Py_None); resultobj = Py_None; | |
25553 | return resultobj; | |
25554 | fail: | |
25555 | return NULL; | |
25556 | } | |
25557 | ||
25558 | ||
25559 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25560 | PyObject *resultobj; | |
25561 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25562 | int arg2 ; | |
25563 | int arg3 ; | |
25564 | int arg4 ; | |
25565 | int result; | |
25566 | PyObject * obj0 = 0 ; | |
25567 | PyObject * obj1 = 0 ; | |
25568 | PyObject * obj2 = 0 ; | |
25569 | PyObject * obj3 = 0 ; | |
25570 | char *kwnames[] = { | |
25571 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25572 | }; | |
25573 | ||
25574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25576 | { | |
25577 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25578 | if (PyErr_Occurred()) SWIG_fail; | |
25579 | } | |
25580 | { | |
25581 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25582 | if (PyErr_Occurred()) SWIG_fail; | |
25583 | } | |
25584 | { | |
25585 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25586 | if (PyErr_Occurred()) SWIG_fail; | |
25587 | } | |
25588 | { | |
25589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25590 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
25591 | ||
25592 | wxPyEndAllowThreads(__tstate); | |
25593 | if (PyErr_Occurred()) SWIG_fail; | |
25594 | } | |
25595 | resultobj = SWIG_PyObj_FromInt((int)result); | |
25596 | return resultobj; | |
25597 | fail: | |
25598 | return NULL; | |
25599 | } | |
25600 | ||
25601 | ||
25602 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25603 | PyObject *resultobj; | |
25604 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25605 | int arg2 ; | |
25606 | int arg3 ; | |
25607 | int arg4 ; | |
25608 | int result; | |
25609 | PyObject * obj0 = 0 ; | |
25610 | PyObject * obj1 = 0 ; | |
25611 | PyObject * obj2 = 0 ; | |
25612 | PyObject * obj3 = 0 ; | |
25613 | char *kwnames[] = { | |
25614 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25615 | }; | |
25616 | ||
25617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25619 | { | |
25620 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25621 | if (PyErr_Occurred()) SWIG_fail; | |
25622 | } | |
25623 | { | |
25624 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25625 | if (PyErr_Occurred()) SWIG_fail; | |
25626 | } | |
25627 | { | |
25628 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25629 | if (PyErr_Occurred()) SWIG_fail; | |
25630 | } | |
25631 | { | |
25632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25633 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
25634 | ||
25635 | wxPyEndAllowThreads(__tstate); | |
25636 | if (PyErr_Occurred()) SWIG_fail; | |
25637 | } | |
25638 | resultobj = SWIG_PyObj_FromInt((int)result); | |
25639 | return resultobj; | |
25640 | fail: | |
25641 | return NULL; | |
25642 | } | |
25643 | ||
25644 | ||
25645 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25646 | PyObject *resultobj; | |
25647 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25648 | PyObject * obj0 = 0 ; | |
25649 | char *kwnames[] = { | |
25650 | (char *) "self", NULL | |
25651 | }; | |
25652 | ||
25653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
25654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25655 | { | |
25656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25657 | (arg1)->base_OnLeave(); | |
25658 | ||
25659 | wxPyEndAllowThreads(__tstate); | |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
25661 | } | |
25662 | Py_INCREF(Py_None); resultobj = Py_None; | |
25663 | return resultobj; | |
25664 | fail: | |
25665 | return NULL; | |
25666 | } | |
25667 | ||
25668 | ||
25669 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25670 | PyObject *resultobj; | |
25671 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25672 | int arg2 ; | |
25673 | int arg3 ; | |
25674 | bool result; | |
25675 | PyObject * obj0 = 0 ; | |
25676 | PyObject * obj1 = 0 ; | |
25677 | PyObject * obj2 = 0 ; | |
25678 | char *kwnames[] = { | |
25679 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25680 | }; | |
25681 | ||
25682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25684 | { | |
25685 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25686 | if (PyErr_Occurred()) SWIG_fail; | |
25687 | } | |
25688 | { | |
25689 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25690 | if (PyErr_Occurred()) SWIG_fail; | |
25691 | } | |
25692 | { | |
25693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25694 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
25695 | ||
25696 | wxPyEndAllowThreads(__tstate); | |
25697 | if (PyErr_Occurred()) SWIG_fail; | |
25698 | } | |
25699 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
25700 | return resultobj; | |
25701 | fail: | |
25702 | return NULL; | |
25703 | } | |
25704 | ||
25705 | ||
25706 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25707 | PyObject *resultobj; | |
25708 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25709 | int arg2 ; | |
25710 | int arg3 ; | |
25711 | int arg4 ; | |
25712 | int result; | |
25713 | PyObject * obj0 = 0 ; | |
25714 | PyObject * obj1 = 0 ; | |
25715 | PyObject * obj2 = 0 ; | |
25716 | PyObject * obj3 = 0 ; | |
25717 | char *kwnames[] = { | |
25718 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25719 | }; | |
25720 | ||
25721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25723 | { | |
25724 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25725 | if (PyErr_Occurred()) SWIG_fail; | |
25726 | } | |
25727 | { | |
25728 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25729 | if (PyErr_Occurred()) SWIG_fail; | |
25730 | } | |
25731 | { | |
25732 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25733 | if (PyErr_Occurred()) SWIG_fail; | |
25734 | } | |
25735 | { | |
25736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25737 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
25738 | ||
25739 | wxPyEndAllowThreads(__tstate); | |
25740 | if (PyErr_Occurred()) SWIG_fail; | |
25741 | } | |
25742 | resultobj = SWIG_PyObj_FromInt((int)result); | |
25743 | return resultobj; | |
25744 | fail: | |
25745 | return NULL; | |
25746 | } | |
25747 | ||
25748 | ||
25749 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
25750 | PyObject *obj; | |
25751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25752 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
25753 | Py_INCREF(obj); | |
25754 | return Py_BuildValue((char *)""); | |
25755 | } | |
25756 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25757 | PyObject *resultobj; | |
25758 | wxPyFileDropTarget *result; | |
25759 | char *kwnames[] = { | |
25760 | NULL | |
25761 | }; | |
25762 | ||
25763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
25764 | { | |
25765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25766 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
25767 | ||
25768 | wxPyEndAllowThreads(__tstate); | |
25769 | if (PyErr_Occurred()) SWIG_fail; | |
25770 | } | |
25771 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1); | |
25772 | return resultobj; | |
25773 | fail: | |
25774 | return NULL; | |
25775 | } | |
25776 | ||
25777 | ||
25778 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25779 | PyObject *resultobj; | |
25780 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
25781 | PyObject *arg2 = (PyObject *) 0 ; | |
25782 | PyObject *arg3 = (PyObject *) 0 ; | |
25783 | PyObject * obj0 = 0 ; | |
25784 | PyObject * obj1 = 0 ; | |
25785 | PyObject * obj2 = 0 ; | |
25786 | char *kwnames[] = { | |
25787 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25788 | }; | |
25789 | ||
25790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25792 | arg2 = obj1; | |
25793 | arg3 = obj2; | |
25794 | { | |
25795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25796 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25797 | ||
25798 | wxPyEndAllowThreads(__tstate); | |
25799 | if (PyErr_Occurred()) SWIG_fail; | |
25800 | } | |
25801 | Py_INCREF(Py_None); resultobj = Py_None; | |
25802 | return resultobj; | |
25803 | fail: | |
25804 | return NULL; | |
25805 | } | |
25806 | ||
25807 | ||
25808 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25809 | PyObject *resultobj; | |
25810 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
25811 | int arg2 ; | |
25812 | int arg3 ; | |
25813 | int arg4 ; | |
25814 | int result; | |
25815 | PyObject * obj0 = 0 ; | |
25816 | PyObject * obj1 = 0 ; | |
25817 | PyObject * obj2 = 0 ; | |
25818 | PyObject * obj3 = 0 ; | |
25819 | char *kwnames[] = { | |
25820 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25821 | }; | |
25822 | ||
25823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25825 | { | |
25826 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25827 | if (PyErr_Occurred()) SWIG_fail; | |
25828 | } | |
25829 | { | |
25830 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25831 | if (PyErr_Occurred()) SWIG_fail; | |
25832 | } | |
25833 | { | |
25834 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25835 | if (PyErr_Occurred()) SWIG_fail; | |
25836 | } | |
25837 | { | |
25838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25839 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
25840 | ||
25841 | wxPyEndAllowThreads(__tstate); | |
25842 | if (PyErr_Occurred()) SWIG_fail; | |
25843 | } | |
25844 | resultobj = SWIG_PyObj_FromInt((int)result); | |
25845 | return resultobj; | |
25846 | fail: | |
25847 | return NULL; | |
25848 | } | |
25849 | ||
25850 | ||
25851 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25852 | PyObject *resultobj; | |
25853 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
25854 | int arg2 ; | |
25855 | int arg3 ; | |
25856 | int arg4 ; | |
25857 | int result; | |
25858 | PyObject * obj0 = 0 ; | |
25859 | PyObject * obj1 = 0 ; | |
25860 | PyObject * obj2 = 0 ; | |
25861 | PyObject * obj3 = 0 ; | |
25862 | char *kwnames[] = { | |
25863 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25864 | }; | |
25865 | ||
25866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25868 | { | |
25869 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25870 | if (PyErr_Occurred()) SWIG_fail; | |
25871 | } | |
25872 | { | |
25873 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25874 | if (PyErr_Occurred()) SWIG_fail; | |
25875 | } | |
25876 | { | |
25877 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25878 | if (PyErr_Occurred()) SWIG_fail; | |
25879 | } | |
25880 | { | |
25881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25882 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
25883 | ||
25884 | wxPyEndAllowThreads(__tstate); | |
25885 | if (PyErr_Occurred()) SWIG_fail; | |
25886 | } | |
25887 | resultobj = SWIG_PyObj_FromInt((int)result); | |
25888 | return resultobj; | |
25889 | fail: | |
25890 | return NULL; | |
25891 | } | |
25892 | ||
25893 | ||
25894 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25895 | PyObject *resultobj; | |
25896 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
25897 | PyObject * obj0 = 0 ; | |
25898 | char *kwnames[] = { | |
25899 | (char *) "self", NULL | |
25900 | }; | |
25901 | ||
25902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
25903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25904 | { | |
25905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25906 | (arg1)->base_OnLeave(); | |
25907 | ||
25908 | wxPyEndAllowThreads(__tstate); | |
25909 | if (PyErr_Occurred()) SWIG_fail; | |
25910 | } | |
25911 | Py_INCREF(Py_None); resultobj = Py_None; | |
25912 | return resultobj; | |
25913 | fail: | |
25914 | return NULL; | |
25915 | } | |
25916 | ||
25917 | ||
25918 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25919 | PyObject *resultobj; | |
25920 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
25921 | int arg2 ; | |
25922 | int arg3 ; | |
25923 | bool result; | |
25924 | PyObject * obj0 = 0 ; | |
25925 | PyObject * obj1 = 0 ; | |
25926 | PyObject * obj2 = 0 ; | |
25927 | char *kwnames[] = { | |
25928 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25929 | }; | |
25930 | ||
25931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25933 | { | |
25934 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25935 | if (PyErr_Occurred()) SWIG_fail; | |
25936 | } | |
25937 | { | |
25938 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25939 | if (PyErr_Occurred()) SWIG_fail; | |
25940 | } | |
25941 | { | |
25942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25943 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
25944 | ||
25945 | wxPyEndAllowThreads(__tstate); | |
25946 | if (PyErr_Occurred()) SWIG_fail; | |
25947 | } | |
25948 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
25949 | return resultobj; | |
25950 | fail: | |
25951 | return NULL; | |
25952 | } | |
25953 | ||
25954 | ||
25955 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25956 | PyObject *resultobj; | |
25957 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
25958 | int arg2 ; | |
25959 | int arg3 ; | |
25960 | int arg4 ; | |
25961 | int result; | |
25962 | PyObject * obj0 = 0 ; | |
25963 | PyObject * obj1 = 0 ; | |
25964 | PyObject * obj2 = 0 ; | |
25965 | PyObject * obj3 = 0 ; | |
25966 | char *kwnames[] = { | |
25967 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25968 | }; | |
25969 | ||
25970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25972 | { | |
25973 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25974 | if (PyErr_Occurred()) SWIG_fail; | |
25975 | } | |
25976 | { | |
25977 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25978 | if (PyErr_Occurred()) SWIG_fail; | |
25979 | } | |
25980 | { | |
25981 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25982 | if (PyErr_Occurred()) SWIG_fail; | |
25983 | } | |
25984 | { | |
25985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25986 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
25987 | ||
25988 | wxPyEndAllowThreads(__tstate); | |
25989 | if (PyErr_Occurred()) SWIG_fail; | |
25990 | } | |
25991 | resultobj = SWIG_PyObj_FromInt((int)result); | |
25992 | return resultobj; | |
25993 | fail: | |
25994 | return NULL; | |
25995 | } | |
25996 | ||
25997 | ||
25998 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
25999 | PyObject *obj; | |
26000 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26001 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26002 | Py_INCREF(obj); | |
26003 | return Py_BuildValue((char *)""); | |
26004 | } | |
26005 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26006 | PyObject *resultobj; | |
26007 | wxClipboard *result; | |
26008 | char *kwnames[] = { | |
26009 | NULL | |
26010 | }; | |
26011 | ||
26012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26013 | { | |
26014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26015 | result = (wxClipboard *)new wxClipboard(); | |
26016 | ||
26017 | wxPyEndAllowThreads(__tstate); | |
26018 | if (PyErr_Occurred()) SWIG_fail; | |
26019 | } | |
26020 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1); | |
26021 | return resultobj; | |
26022 | fail: | |
26023 | return NULL; | |
26024 | } | |
26025 | ||
26026 | ||
26027 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26028 | PyObject *resultobj; | |
26029 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26030 | PyObject * obj0 = 0 ; | |
26031 | char *kwnames[] = { | |
26032 | (char *) "self", NULL | |
26033 | }; | |
26034 | ||
26035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
26036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26037 | { | |
26038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26039 | delete arg1; | |
26040 | ||
26041 | wxPyEndAllowThreads(__tstate); | |
26042 | if (PyErr_Occurred()) SWIG_fail; | |
26043 | } | |
26044 | Py_INCREF(Py_None); resultobj = Py_None; | |
26045 | return resultobj; | |
26046 | fail: | |
26047 | return NULL; | |
26048 | } | |
26049 | ||
26050 | ||
26051 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26052 | PyObject *resultobj; | |
26053 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26054 | bool result; | |
26055 | PyObject * obj0 = 0 ; | |
26056 | char *kwnames[] = { | |
26057 | (char *) "self", NULL | |
26058 | }; | |
26059 | ||
26060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
26061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26062 | { | |
26063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26064 | result = (bool)(arg1)->Open(); | |
26065 | ||
26066 | wxPyEndAllowThreads(__tstate); | |
26067 | if (PyErr_Occurred()) SWIG_fail; | |
26068 | } | |
26069 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26070 | return resultobj; | |
26071 | fail: | |
26072 | return NULL; | |
26073 | } | |
26074 | ||
26075 | ||
26076 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26077 | PyObject *resultobj; | |
26078 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26079 | PyObject * obj0 = 0 ; | |
26080 | char *kwnames[] = { | |
26081 | (char *) "self", NULL | |
26082 | }; | |
26083 | ||
26084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
26085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26086 | { | |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26088 | (arg1)->Close(); | |
26089 | ||
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
26093 | Py_INCREF(Py_None); resultobj = Py_None; | |
26094 | return resultobj; | |
26095 | fail: | |
26096 | return NULL; | |
26097 | } | |
26098 | ||
26099 | ||
26100 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26101 | PyObject *resultobj; | |
26102 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26103 | bool result; | |
26104 | PyObject * obj0 = 0 ; | |
26105 | char *kwnames[] = { | |
26106 | (char *) "self", NULL | |
26107 | }; | |
26108 | ||
26109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
26110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26111 | { | |
26112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26113 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26114 | ||
26115 | wxPyEndAllowThreads(__tstate); | |
26116 | if (PyErr_Occurred()) SWIG_fail; | |
26117 | } | |
26118 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26119 | return resultobj; | |
26120 | fail: | |
26121 | return NULL; | |
26122 | } | |
26123 | ||
26124 | ||
26125 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26126 | PyObject *resultobj; | |
26127 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26128 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26129 | bool result; | |
26130 | PyObject * obj0 = 0 ; | |
26131 | PyObject * obj1 = 0 ; | |
26132 | char *kwnames[] = { | |
26133 | (char *) "self",(char *) "data", NULL | |
26134 | }; | |
26135 | ||
26136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
26137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26138 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
26139 | { | |
26140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26141 | result = (bool)(arg1)->AddData(arg2); | |
26142 | ||
26143 | wxPyEndAllowThreads(__tstate); | |
26144 | if (PyErr_Occurred()) SWIG_fail; | |
26145 | } | |
26146 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26147 | return resultobj; | |
26148 | fail: | |
26149 | return NULL; | |
26150 | } | |
26151 | ||
26152 | ||
26153 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26154 | PyObject *resultobj; | |
26155 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26156 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26157 | bool result; | |
26158 | PyObject * obj0 = 0 ; | |
26159 | PyObject * obj1 = 0 ; | |
26160 | char *kwnames[] = { | |
26161 | (char *) "self",(char *) "data", NULL | |
26162 | }; | |
26163 | ||
26164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26166 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
26167 | { | |
26168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26169 | result = (bool)(arg1)->SetData(arg2); | |
26170 | ||
26171 | wxPyEndAllowThreads(__tstate); | |
26172 | if (PyErr_Occurred()) SWIG_fail; | |
26173 | } | |
26174 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26175 | return resultobj; | |
26176 | fail: | |
26177 | return NULL; | |
26178 | } | |
26179 | ||
26180 | ||
26181 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26182 | PyObject *resultobj; | |
26183 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26184 | wxDataFormat *arg2 = 0 ; | |
26185 | bool result; | |
26186 | PyObject * obj0 = 0 ; | |
26187 | PyObject * obj1 = 0 ; | |
26188 | char *kwnames[] = { | |
26189 | (char *) "self",(char *) "format", NULL | |
26190 | }; | |
26191 | ||
26192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
26193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26194 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26195 | if (arg2 == NULL) { | |
26196 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26197 | } | |
26198 | { | |
26199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26200 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26201 | ||
26202 | wxPyEndAllowThreads(__tstate); | |
26203 | if (PyErr_Occurred()) SWIG_fail; | |
26204 | } | |
26205 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26206 | return resultobj; | |
26207 | fail: | |
26208 | return NULL; | |
26209 | } | |
26210 | ||
26211 | ||
26212 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26213 | PyObject *resultobj; | |
26214 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26215 | wxDataObject *arg2 = 0 ; | |
26216 | bool result; | |
26217 | PyObject * obj0 = 0 ; | |
26218 | PyObject * obj1 = 0 ; | |
26219 | char *kwnames[] = { | |
26220 | (char *) "self",(char *) "data", NULL | |
26221 | }; | |
26222 | ||
26223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
26224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26225 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26226 | if (arg2 == NULL) { | |
26227 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26228 | } | |
26229 | { | |
26230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26231 | result = (bool)(arg1)->GetData(*arg2); | |
26232 | ||
26233 | wxPyEndAllowThreads(__tstate); | |
26234 | if (PyErr_Occurred()) SWIG_fail; | |
26235 | } | |
26236 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26237 | return resultobj; | |
26238 | fail: | |
26239 | return NULL; | |
26240 | } | |
26241 | ||
26242 | ||
26243 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26244 | PyObject *resultobj; | |
26245 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26246 | PyObject * obj0 = 0 ; | |
26247 | char *kwnames[] = { | |
26248 | (char *) "self", NULL | |
26249 | }; | |
26250 | ||
26251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
26252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26253 | { | |
26254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26255 | (arg1)->Clear(); | |
26256 | ||
26257 | wxPyEndAllowThreads(__tstate); | |
26258 | if (PyErr_Occurred()) SWIG_fail; | |
26259 | } | |
26260 | Py_INCREF(Py_None); resultobj = Py_None; | |
26261 | return resultobj; | |
26262 | fail: | |
26263 | return NULL; | |
26264 | } | |
26265 | ||
26266 | ||
26267 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26268 | PyObject *resultobj; | |
26269 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26270 | bool result; | |
26271 | PyObject * obj0 = 0 ; | |
26272 | char *kwnames[] = { | |
26273 | (char *) "self", NULL | |
26274 | }; | |
26275 | ||
26276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
26277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26278 | { | |
26279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26280 | result = (bool)(arg1)->Flush(); | |
26281 | ||
26282 | wxPyEndAllowThreads(__tstate); | |
26283 | if (PyErr_Occurred()) SWIG_fail; | |
26284 | } | |
26285 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26286 | return resultobj; | |
26287 | fail: | |
26288 | return NULL; | |
26289 | } | |
26290 | ||
26291 | ||
26292 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26293 | PyObject *resultobj; | |
26294 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26295 | bool arg2 = (bool) False ; | |
26296 | PyObject * obj0 = 0 ; | |
26297 | PyObject * obj1 = 0 ; | |
26298 | char *kwnames[] = { | |
26299 | (char *) "self",(char *) "primary", NULL | |
26300 | }; | |
26301 | ||
26302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
26303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26304 | if (obj1) { | |
26305 | { | |
26306 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
26307 | if (PyErr_Occurred()) SWIG_fail; | |
26308 | } | |
26309 | } | |
26310 | { | |
26311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26312 | (arg1)->UsePrimarySelection(arg2); | |
26313 | ||
26314 | wxPyEndAllowThreads(__tstate); | |
26315 | if (PyErr_Occurred()) SWIG_fail; | |
26316 | } | |
26317 | Py_INCREF(Py_None); resultobj = Py_None; | |
26318 | return resultobj; | |
26319 | fail: | |
26320 | return NULL; | |
26321 | } | |
26322 | ||
26323 | ||
26324 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
26325 | PyObject *obj; | |
26326 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26327 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
26328 | Py_INCREF(obj); | |
26329 | return Py_BuildValue((char *)""); | |
26330 | } | |
26331 | static int _wrap_TheClipboard_set(PyObject *) { | |
26332 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
26333 | return 1; | |
26334 | } | |
26335 | ||
26336 | ||
26337 | static PyObject *_wrap_TheClipboard_get() { | |
26338 | PyObject *pyobj; | |
26339 | ||
26340 | pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); | |
26341 | return pyobj; | |
26342 | } | |
26343 | ||
26344 | ||
26345 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26346 | PyObject *resultobj; | |
26347 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
26348 | wxClipboardLocker *result; | |
26349 | PyObject * obj0 = 0 ; | |
26350 | char *kwnames[] = { | |
26351 | (char *) "clipboard", NULL | |
26352 | }; | |
26353 | ||
26354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
26355 | if (obj0) { | |
26356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26357 | } | |
26358 | { | |
26359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26360 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
26361 | ||
26362 | wxPyEndAllowThreads(__tstate); | |
26363 | if (PyErr_Occurred()) SWIG_fail; | |
26364 | } | |
26365 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1); | |
26366 | return resultobj; | |
26367 | fail: | |
26368 | return NULL; | |
26369 | } | |
26370 | ||
26371 | ||
26372 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26373 | PyObject *resultobj; | |
26374 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
26375 | PyObject * obj0 = 0 ; | |
26376 | char *kwnames[] = { | |
26377 | (char *) "self", NULL | |
26378 | }; | |
26379 | ||
26380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
26381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26382 | { | |
26383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26384 | delete arg1; | |
26385 | ||
26386 | wxPyEndAllowThreads(__tstate); | |
26387 | if (PyErr_Occurred()) SWIG_fail; | |
26388 | } | |
26389 | Py_INCREF(Py_None); resultobj = Py_None; | |
26390 | return resultobj; | |
26391 | fail: | |
26392 | return NULL; | |
26393 | } | |
26394 | ||
26395 | ||
26396 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26397 | PyObject *resultobj; | |
26398 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
26399 | bool result; | |
26400 | PyObject * obj0 = 0 ; | |
26401 | char *kwnames[] = { | |
26402 | (char *) "self", NULL | |
26403 | }; | |
26404 | ||
26405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
26406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26407 | { | |
26408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26409 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
26410 | ||
26411 | wxPyEndAllowThreads(__tstate); | |
26412 | if (PyErr_Occurred()) SWIG_fail; | |
26413 | } | |
26414 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26415 | return resultobj; | |
26416 | fail: | |
26417 | return NULL; | |
26418 | } | |
26419 | ||
26420 | ||
26421 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
26422 | PyObject *obj; | |
26423 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26424 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
26425 | Py_INCREF(obj); | |
26426 | return Py_BuildValue((char *)""); | |
26427 | } | |
26428 | static PyMethodDef SwigMethods[] = { | |
26429 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
26430 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26431 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
26432 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
26433 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
26434 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
26435 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
26436 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
26437 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
26438 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
26439 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
26440 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
26441 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
26442 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
26443 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
26444 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
26445 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
26446 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
26447 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26448 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
26449 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
26450 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
26451 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
26452 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
26453 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
26454 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
26455 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
26456 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
26457 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
26458 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
26459 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
26460 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
26461 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
26462 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
26463 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
26464 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
26465 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
26466 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
26467 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
26468 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
26469 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
26470 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
26471 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
26472 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
26473 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
26474 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
26475 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
26476 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
26477 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
26478 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
26479 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
26480 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
26481 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
26482 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
26483 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
26484 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
26485 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
26486 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
26487 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
26488 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
26489 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
26490 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
26491 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26492 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
26493 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
26494 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
26495 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
26496 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, | |
26497 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
26498 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
26499 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
26500 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
26501 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
26502 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
26503 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
26504 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
26505 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
26506 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
26507 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
26508 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
26509 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
26510 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
26511 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
26512 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
26513 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26514 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
26515 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26516 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
26517 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
26518 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
26519 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
26520 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
26521 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
26522 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
26523 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
26524 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
26525 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
26526 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
26527 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
26528 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
26529 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26530 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26531 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
26532 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
26533 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
26534 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
26535 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
26536 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
26537 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
26538 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
26539 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
26540 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
26541 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
26542 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
26543 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
26544 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
26545 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
26546 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
26547 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
26548 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
26549 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
26550 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
26551 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
26552 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
26553 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
26554 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
26555 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
26556 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26557 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
26558 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
26559 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
26560 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
26561 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
26562 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
26563 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
26564 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
26565 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
26566 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
26567 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
26568 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
26569 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
26570 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
26571 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26572 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
26573 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
26574 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
26575 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
26576 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
26577 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26578 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
26579 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
26580 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
26581 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
26582 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
26583 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
26584 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26585 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, | |
26586 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
26587 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
26588 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
26589 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
26590 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
26591 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
26592 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
26593 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
26594 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26595 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
26596 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
26597 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
26598 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
26599 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
26600 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
26601 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
26602 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
26603 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
26604 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
26605 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
26606 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26607 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26608 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26609 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
26610 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
26611 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
26612 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
26613 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26614 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26615 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
26616 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
26617 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
26618 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26619 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
26620 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
26621 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
26622 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26623 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
26624 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
26625 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
26626 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
26627 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
26628 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
26629 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
26630 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
26631 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
26632 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
26633 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
26634 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
26635 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
26636 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
26637 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
26638 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
26639 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
26640 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
26641 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
26642 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
26643 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
26644 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
26645 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
26646 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
26647 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
26648 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
26649 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
26650 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
26651 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, | |
26652 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, | |
26653 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
26654 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
26655 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
26656 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
26657 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
26658 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26659 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
26660 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
26661 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
26662 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
26663 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
26664 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26665 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
26666 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
26667 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
26668 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
26669 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
26670 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
26671 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
26672 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
26673 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
26674 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
26675 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
26676 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
26677 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
26678 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
26679 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
26680 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
26681 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
26682 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
26683 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
26684 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
26685 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
26686 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
26687 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
26688 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26689 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
26690 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
26691 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
26692 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
26693 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
26694 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
26695 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
26696 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
26697 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
26698 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26699 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
26700 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
26701 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
26702 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
26703 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
26704 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
26705 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
26706 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
26707 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
26708 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
26709 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
26710 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
26711 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
26712 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
26713 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
26714 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
26715 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
26716 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
26717 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
26718 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
26719 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
26720 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
26721 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
26722 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
26723 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
26724 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
26725 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
26726 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
26727 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
26728 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
26729 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
26730 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
26731 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
26732 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
26733 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
26734 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
26735 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
26736 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
26737 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
26738 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
26739 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
26740 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
26741 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
26742 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26743 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
26744 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
26745 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
26746 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
26747 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
26748 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
26749 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
26750 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26751 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
26752 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
26753 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
26754 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
26755 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
26756 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
26757 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
26758 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
26759 | { (char *)"new_Wave", (PyCFunction) _wrap_new_Wave, METH_VARARGS | METH_KEYWORDS }, | |
26760 | { (char *)"new_WaveData", (PyCFunction) _wrap_new_WaveData, METH_VARARGS | METH_KEYWORDS }, | |
26761 | { (char *)"delete_Wave", (PyCFunction) _wrap_delete_Wave, METH_VARARGS | METH_KEYWORDS }, | |
26762 | { (char *)"Wave_IsOk", (PyCFunction) _wrap_Wave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26763 | { (char *)"Wave_Play", (PyCFunction) _wrap_Wave_Play, METH_VARARGS | METH_KEYWORDS }, | |
26764 | { (char *)"Wave_swigregister", Wave_swigregister, METH_VARARGS }, | |
26765 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
26766 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
26767 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
26768 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
26769 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
26770 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
26771 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
26772 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
26773 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
26774 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
26775 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
26776 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
26777 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
26778 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
26779 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
26780 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
26781 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
26782 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
26783 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
26784 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
26785 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
26786 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
26787 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
26788 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
26789 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
26790 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
26791 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
26792 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
26793 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
26794 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
26795 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
26796 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
26797 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
26798 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
26799 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
26800 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
26801 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
26802 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
26803 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
26804 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
26805 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
26806 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
26807 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
26808 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
26809 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
26810 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
26811 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
26812 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26813 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
26814 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
26815 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
26816 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26817 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
26818 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26819 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, | |
26820 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
26821 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
26822 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
26823 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
26824 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
26825 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
26826 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
26827 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
26828 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
26829 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
26830 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
26831 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
26832 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
26833 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
26834 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
26835 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
26836 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
26837 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
26838 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
26839 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
26840 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
26841 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
26842 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
26843 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
26844 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
26845 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
26846 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
26847 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
26848 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
26849 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
26850 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
26851 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
26852 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
26853 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
26854 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
26855 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
26856 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
26857 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
26858 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
26859 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
26860 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26861 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26862 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
26863 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
26864 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
26865 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
26866 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
26867 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
26868 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
26869 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
26870 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
26871 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
26872 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
26873 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
26874 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
26875 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
26876 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
26877 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
26878 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
26879 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
26880 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
26881 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
26882 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
26883 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
26884 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
26885 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
26886 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
26887 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
26888 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
26889 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
26890 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
26891 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
26892 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
26893 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
26894 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
26895 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
26896 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
26897 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
26898 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
26899 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
26900 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
26901 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
26902 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
26903 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
26904 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
26905 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
26906 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
26907 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
26908 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
26909 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
26910 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
26911 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
26912 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
26913 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
26914 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
26915 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
26916 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
26917 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
26918 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
26919 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
26920 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
26921 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
26922 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
26923 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
26924 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
26925 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
26926 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
26927 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
26928 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
26929 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
26930 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
26931 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
26932 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
26933 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
26934 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
26935 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
26936 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
26937 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
26938 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
26939 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
26940 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
26941 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
26942 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
26943 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
26944 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
26945 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
26946 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
26947 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
26948 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
26949 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
26950 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
26951 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
26952 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
26953 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
26954 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
26955 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
26956 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
26957 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
26958 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
26959 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
26960 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
26961 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
26962 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
26963 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
26964 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
26965 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
26966 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
26967 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
26968 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
26969 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
26970 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
26971 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
26972 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
26973 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
26974 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
26975 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
26976 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
26977 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
26978 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
26979 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
26980 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
26981 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
26982 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
26983 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
26984 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
26985 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
26986 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
26987 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
26988 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
26989 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
26990 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
26991 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
26992 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
26993 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
26994 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
26995 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
26996 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
26997 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
26998 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
26999 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
27000 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
27001 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
27002 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
27003 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
27004 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
27005 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
27006 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
27007 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
27008 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
27009 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
27010 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
27011 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
27012 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
27013 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
27014 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
27015 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
27016 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
27017 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
27018 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
27019 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
27020 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
27021 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
27022 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
27023 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
27024 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
27025 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
27026 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
27027 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
27028 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
27029 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
27030 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
27031 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
27032 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
27033 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
27034 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
27035 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
27036 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
27037 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
27038 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
27039 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
27040 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
27041 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
27042 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
27043 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
27044 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
27045 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
27046 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
27047 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
27048 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
27049 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
27050 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
27051 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
27052 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
27053 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
27054 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
27055 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
27056 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
27057 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
27058 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
27059 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
27060 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
27061 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
27062 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
27063 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
27064 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
27065 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
27066 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
27067 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
27068 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
27069 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
27070 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
27071 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
27072 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
27073 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
27074 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
27075 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
27076 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
27077 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
27078 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
27079 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
27080 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
27081 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
27082 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
27083 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
27084 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
27085 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27086 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
27087 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
27088 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
27089 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
27090 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
27091 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
27092 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27093 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
27094 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
27095 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
27096 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
27097 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27098 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
27099 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
27100 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
27101 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
27102 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27103 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27104 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
27105 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27106 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27107 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27108 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
27109 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27110 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27111 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
27112 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27113 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
27114 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, | |
27115 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
27116 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27117 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
27118 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27119 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
27120 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27121 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
27122 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27123 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
27124 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
27125 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
27126 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27127 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
27128 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
27129 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
27130 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
27131 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
27132 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27133 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
27134 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27135 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27136 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
27137 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
27138 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
27139 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
27140 | { (char *)"new_PyDropTarget", (PyCFunction) _wrap_new_PyDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27141 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27142 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27143 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27144 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27145 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
27146 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
27147 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
27148 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
27149 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27150 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
27151 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27152 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27153 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
27154 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
27155 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
27156 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
27157 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
27158 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
27159 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27160 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27161 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
27162 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
27163 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
27164 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
27165 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
27166 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
27167 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
27168 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
27169 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
27170 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
27171 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
27172 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
27173 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27174 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
27175 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27176 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
27177 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
27178 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
27179 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
27180 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
27181 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
27182 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
27183 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
27184 | { NULL, NULL } | |
27185 | }; | |
27186 | ||
27187 | ||
27188 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
27189 | ||
27190 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
27191 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27192 | } | |
27193 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
27194 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
27195 | } | |
27196 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
27197 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
27198 | } | |
27199 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
27200 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
27201 | } | |
27202 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
27203 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
27204 | } | |
27205 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
27206 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
27207 | } | |
27208 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
27209 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
27210 | } | |
27211 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
27212 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
27213 | } | |
27214 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
27215 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
27216 | } | |
27217 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
27218 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
27219 | } | |
27220 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
27221 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27222 | } | |
27223 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
27224 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
27225 | } | |
27226 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
27227 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
27228 | } | |
27229 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
27230 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27231 | } | |
27232 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
27233 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27234 | } | |
27235 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
27236 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
27237 | } | |
27238 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
27239 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
27240 | } | |
27241 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
27242 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
27243 | } | |
27244 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
27245 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
27246 | } | |
27247 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
27248 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
27249 | } | |
27250 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
27251 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
27252 | } | |
27253 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
27254 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
27255 | } | |
27256 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
27257 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27258 | } | |
27259 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
27260 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27261 | } | |
27262 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
27263 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27264 | } | |
27265 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
27266 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27267 | } | |
27268 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
27269 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27270 | } | |
27271 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
27272 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
27273 | } | |
27274 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
27275 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
27276 | } | |
27277 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
27278 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27279 | } | |
27280 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
27281 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
27282 | } | |
27283 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
27284 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
27285 | } | |
27286 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
27287 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
27288 | } | |
27289 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
27290 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27291 | } | |
27292 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
27293 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27294 | } | |
27295 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
27296 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27297 | } | |
27298 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
27299 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
27300 | } | |
27301 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
27302 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
27303 | } | |
27304 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
27305 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
27306 | } | |
27307 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
27308 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
27309 | } | |
27310 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
27311 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
27312 | } | |
27313 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
27314 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
27315 | } | |
27316 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
27317 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
27318 | } | |
27319 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
27320 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
27321 | } | |
27322 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
27323 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
27324 | } | |
27325 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
27326 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
27327 | } | |
27328 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
27329 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
27330 | } | |
27331 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
27332 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
27333 | } | |
27334 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
27335 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
27336 | } | |
27337 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
27338 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
27339 | } | |
27340 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
27341 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
27342 | } | |
27343 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
27344 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
27345 | } | |
27346 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
27347 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
27348 | } | |
27349 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
27350 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
27351 | } | |
27352 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
27353 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
27354 | } | |
27355 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27356 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
27357 | } | |
27358 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27359 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
27360 | } | |
27361 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27362 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
27363 | } | |
27364 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27365 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
27366 | } | |
27367 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27368 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
27369 | } | |
27370 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27371 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
27372 | } | |
27373 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27374 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
27375 | } | |
27376 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
27377 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
27378 | } | |
27379 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
27380 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
27381 | } | |
27382 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
27383 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27384 | } | |
27385 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
27386 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
27387 | } | |
27388 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
27389 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
27390 | } | |
27391 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
27392 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
27393 | } | |
27394 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
27395 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
27396 | } | |
27397 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
27398 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
27399 | } | |
27400 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
27401 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
27402 | } | |
27403 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
27404 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
27405 | } | |
27406 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
27407 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
27408 | } | |
27409 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
27410 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
27411 | } | |
27412 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
27413 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
27414 | } | |
27415 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
27416 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
27417 | } | |
27418 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
27419 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
27420 | } | |
27421 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
27422 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
27423 | } | |
27424 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
27425 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27426 | } | |
27427 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
27428 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
27429 | } | |
27430 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
27431 | return (void *)((wxObject *) ((wxSizer *) x)); | |
27432 | } | |
27433 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
27434 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27435 | } | |
27436 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
27437 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
27438 | } | |
27439 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
27440 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27441 | } | |
27442 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
27443 | return (void *)((wxObject *) ((wxEvent *) x)); | |
27444 | } | |
27445 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
27446 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27447 | } | |
27448 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
27449 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
27450 | } | |
27451 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
27452 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
27453 | } | |
27454 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
27455 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
27456 | } | |
27457 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
27458 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
27459 | } | |
27460 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
27461 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27462 | } | |
27463 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
27464 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27465 | } | |
27466 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
27467 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27468 | } | |
27469 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
27470 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27471 | } | |
27472 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
27473 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
27474 | } | |
27475 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
27476 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
27477 | } | |
27478 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
27479 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
27480 | } | |
27481 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
27482 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
27483 | } | |
27484 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
27485 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
27486 | } | |
27487 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
27488 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
27489 | } | |
27490 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
27491 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
27492 | } | |
27493 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
27494 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27495 | } | |
27496 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
27497 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
27498 | } | |
27499 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
27500 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
27501 | } | |
27502 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
27503 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
27504 | } | |
27505 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
27506 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
27507 | } | |
27508 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
27509 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27510 | } | |
27511 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
27512 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27513 | } | |
27514 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
27515 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
27516 | } | |
27517 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
27518 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
27519 | } | |
27520 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
27521 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
27522 | } | |
27523 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
27524 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
27525 | } | |
27526 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
27527 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
27528 | } | |
27529 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
27530 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
27531 | } | |
27532 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
27533 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
27534 | } | |
27535 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
27536 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
27537 | } | |
27538 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
27539 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
27540 | } | |
27541 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
27542 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
27543 | } | |
27544 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
27545 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
27546 | } | |
27547 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
27548 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
27549 | } | |
27550 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
27551 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
27552 | } | |
27553 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
27554 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
27555 | } | |
27556 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
27557 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
27558 | } | |
27559 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
27560 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
27561 | } | |
27562 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
27563 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
27564 | } | |
27565 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
27566 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
27567 | } | |
27568 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
27569 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
27570 | } | |
27571 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
27572 | return (void *)((wxObject *) ((wxImage *) x)); | |
27573 | } | |
27574 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
27575 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
27576 | } | |
27577 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
27578 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
27579 | } | |
27580 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
27581 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
27582 | } | |
27583 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
27584 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27585 | } | |
27586 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
27587 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27588 | } | |
27589 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
27590 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
27591 | } | |
27592 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
27593 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
27594 | } | |
27595 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
27596 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
27597 | } | |
27598 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
27599 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
27600 | } | |
27601 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
27602 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
27603 | } | |
27604 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
27605 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
27606 | } | |
27607 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
27608 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27609 | } | |
27610 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
27611 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
27612 | } | |
27613 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
27614 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
27615 | } | |
27616 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
27617 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
27618 | } | |
27619 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
27620 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
27621 | } | |
27622 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
27623 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
27624 | } | |
27625 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
27626 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
27627 | } | |
27628 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
27629 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27630 | } | |
27631 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
27632 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
27633 | } | |
27634 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
27635 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
27636 | } | |
27637 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
27638 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
27639 | } | |
27640 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
27641 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27642 | } | |
27643 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
27644 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
27645 | } | |
27646 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
27647 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27648 | } | |
27649 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
27650 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
27651 | } | |
27652 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
27653 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
27654 | } | |
27655 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
27656 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
27657 | } | |
27658 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
27659 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
27660 | } | |
27661 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
27662 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
27663 | } | |
27664 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
27665 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
27666 | } | |
27667 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
27668 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
27669 | } | |
27670 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
27671 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
27672 | } | |
27673 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
27674 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
27675 | } | |
27676 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
27677 | return (void *)((wxWindow *) ((wxControl *) x)); | |
27678 | } | |
27679 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
27680 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
27681 | } | |
27682 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
27683 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
27684 | } | |
27685 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
27686 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
27687 | } | |
27688 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
27689 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
27690 | } | |
27691 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}}; | |
27692 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}}; | |
27693 | static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0},{"_p_wxMetafile"},{0}}; | |
27694 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}}; | |
27695 | 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}}; | |
27696 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}}; | |
27697 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
27698 | 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}}; | |
27699 | 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}}; | |
27700 | static swig_type_info _swigt__p_wxWave[] = {{"_p_wxWave", 0, "wxWave *", 0},{"_p_wxWave"},{0}}; | |
27701 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}}; | |
27702 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}}; | |
27703 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
27704 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}}; | |
27705 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}}; | |
27706 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
27707 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
27708 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
27709 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}}; | |
27710 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}}; | |
27711 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
27712 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}}; | |
27713 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
27714 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}}; | |
27715 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}}; | |
27716 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
27717 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}}; | |
27718 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}}; | |
27719 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}}; | |
27720 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}}; | |
27721 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}}; | |
27722 | 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}}; | |
27723 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}}; | |
27724 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}}; | |
27725 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}}; | |
27726 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}}; | |
27727 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}}; | |
27728 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}}; | |
27729 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}}; | |
27730 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
27731 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}}; | |
27732 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
27733 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}}; | |
27734 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}}; | |
27735 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}}; | |
27736 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}}; | |
27737 | 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}}; | |
27738 | 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}}; | |
27739 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
27740 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; | |
27741 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}}; | |
27742 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}}; | |
27743 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
27744 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}}; | |
27745 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}}; | |
27746 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}}; | |
27747 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}}; | |
27748 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}}; | |
27749 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}}; | |
27750 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}}; | |
27751 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
27752 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}}; | |
27753 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
27754 | 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}}; | |
27755 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
27756 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
27757 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}}; | |
27758 | 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}}; | |
27759 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
27760 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}}; | |
27761 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
27762 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}}; | |
27763 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}}; | |
27764 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}}; | |
27765 | 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}}; | |
27766 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}}; | |
27767 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}}; | |
27768 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}}; | |
27769 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}}; | |
27770 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}}; | |
27771 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
27772 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}}; | |
27773 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}}; | |
27774 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}}; | |
27775 | ||
27776 | static swig_type_info *swig_types_initial[] = { | |
27777 | _swigt__p_wxLogChain, | |
27778 | _swigt__p_wxMutexGuiLocker, | |
27779 | _swigt__p_wxMetafile, | |
27780 | _swigt__p_wxFileHistory, | |
27781 | _swigt__p_wxLog, | |
27782 | _swigt__p_wxDateTime__TimeZone, | |
27783 | _swigt__p_wxMenu, | |
27784 | _swigt__p_wxEvent, | |
27785 | _swigt__p_wxConfigBase, | |
27786 | _swigt__p_wxWave, | |
27787 | _swigt__p_wxFileType, | |
27788 | _swigt__p_wxLogGui, | |
27789 | _swigt__p_wxFont, | |
27790 | _swigt__p_wxDataFormat, | |
27791 | _swigt__p_wxTimerEvent, | |
27792 | _swigt__p_wxCaret, | |
27793 | _swigt__p_int, | |
27794 | _swigt__p_wxSize, | |
27795 | _swigt__p_wxClipboard, | |
27796 | _swigt__p_wxStopWatch, | |
27797 | _swigt__p_wxDC, | |
27798 | _swigt__p_wxClipboardLocker, | |
27799 | _swigt__p_wxIcon, | |
27800 | _swigt__p_wxLogStderr, | |
27801 | _swigt__p_wxLogTextCtrl, | |
27802 | _swigt__p_wxTextCtrl, | |
27803 | _swigt__p_wxBusyCursor, | |
27804 | _swigt__p_wxPyBitmapDataObject, | |
27805 | _swigt__p_wxPyTextDataObject, | |
27806 | _swigt__p_wxBitmapDataObject, | |
27807 | _swigt__p_wxTextDataObject, | |
27808 | _swigt__p_wxDataObject, | |
27809 | _swigt__p_wxFileDataObject, | |
27810 | _swigt__p_wxCustomDataObject, | |
27811 | _swigt__p_wxURLDataObject, | |
27812 | _swigt__p_wxMetafileDataObject, | |
27813 | _swigt__p_wxTimerRunner, | |
27814 | _swigt__p_wxLogWindow, | |
27815 | _swigt__p_wxTimeSpan, | |
27816 | _swigt__p_wxArrayString, | |
27817 | _swigt__p_wxWindowDisabler, | |
27818 | _swigt__p_wxToolTip, | |
27819 | _swigt__p_wxDataObjectComposite, | |
27820 | _swigt__p_wxFileConfig, | |
27821 | _swigt__p_wxSystemSettings, | |
27822 | _swigt__p_wxPyDataObjectSimple, | |
27823 | _swigt__p_wxDataObjectSimple, | |
27824 | _swigt__p_wxEvtHandler, | |
27825 | _swigt__p_wxRect, | |
27826 | _swigt__p_char, | |
27827 | _swigt__p_wxSingleInstanceChecker, | |
27828 | _swigt__p_wxFileTypeInfo, | |
27829 | _swigt__p_wxFrame, | |
27830 | _swigt__p_wxTimer, | |
27831 | _swigt__p_wxMimeTypesManager, | |
27832 | _swigt__p_wxPyArtProvider, | |
27833 | _swigt__p_wxPyTipProvider, | |
27834 | _swigt__p_wxTipProvider, | |
27835 | _swigt__p_wxJoystick, | |
27836 | _swigt__p_wxSystemOptions, | |
27837 | _swigt__p_wxPoint, | |
27838 | _swigt__p_wxJoystickEvent, | |
27839 | _swigt__p_wxCursor, | |
27840 | _swigt__p_wxObject, | |
27841 | _swigt__p_wxOutputStream, | |
27842 | _swigt__p_wxDateTime, | |
27843 | _swigt__p_wxPyDropSource, | |
27844 | _swigt__p_wxWindow, | |
27845 | _swigt__p_wxString, | |
27846 | _swigt__p_wxPyProcess, | |
27847 | _swigt__p_wxBitmap, | |
27848 | _swigt__p_wxConfig, | |
27849 | _swigt__p_wxChar, | |
27850 | _swigt__p_wxBusyInfo, | |
27851 | _swigt__p_wxPyDropTarget, | |
27852 | _swigt__p_wxPyTextDropTarget, | |
27853 | _swigt__p_wxPyFileDropTarget, | |
27854 | _swigt__p_wxProcessEvent, | |
27855 | _swigt__p_wxPyLog, | |
27856 | _swigt__p_wxLogNull, | |
27857 | _swigt__p_wxColour, | |
27858 | _swigt__p_wxConfigPathChanger, | |
27859 | _swigt__p_wxPyTimer, | |
27860 | _swigt__p_wxDateSpan, | |
27861 | 0 | |
27862 | }; | |
27863 | ||
27864 | ||
27865 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
27866 | ||
27867 | static swig_const_info swig_const_table[] = { | |
27868 | { SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0}, | |
27869 | { SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0}, | |
27870 | { SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0}, | |
27871 | { SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0}, | |
27872 | { SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0}, | |
27873 | {0}}; | |
27874 | ||
27875 | #ifdef __cplusplus | |
27876 | } | |
27877 | #endif | |
27878 | ||
27879 | #ifdef __cplusplus | |
27880 | extern "C" | |
27881 | #endif | |
27882 | SWIGEXPORT(void) SWIG_init(void) { | |
27883 | static PyObject *SWIG_globals = 0; | |
27884 | static int typeinit = 0; | |
27885 | PyObject *m, *d; | |
27886 | int i; | |
27887 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
27888 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
27889 | d = PyModule_GetDict(m); | |
27890 | ||
27891 | if (!typeinit) { | |
27892 | for (i = 0; swig_types_initial[i]; i++) { | |
27893 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
27894 | } | |
27895 | typeinit = 1; | |
27896 | } | |
27897 | SWIG_InstallConstants(d,swig_const_table); | |
27898 | ||
27899 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_OEM_FIXED_FONT)); | |
27900 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
27901 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_PyObj_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
27902 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_PyObj_FromInt((int)wxSYS_SYSTEM_FONT)); | |
27903 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_PyObj_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
27904 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_PyObj_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
27905 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
27906 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_PyObj_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
27907 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_PyObj_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
27908 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
27909 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
27910 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
27911 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
27912 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
27913 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENU)); | |
27914 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
27915 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
27916 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
27917 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
27918 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
27919 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
27920 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
27921 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
27922 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
27923 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
27924 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
27925 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
27926 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
27927 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
27928 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
27929 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
27930 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
27931 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
27932 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
27933 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
27934 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
27935 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
27936 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
27937 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
27938 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
27939 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
27940 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
27941 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
27942 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
27943 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
27944 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
27945 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MAX)); | |
27946 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_PyObj_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
27947 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_PyObj_FromInt((int)wxSYS_BORDER_X)); | |
27948 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_PyObj_FromInt((int)wxSYS_BORDER_Y)); | |
27949 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_PyObj_FromInt((int)wxSYS_CURSOR_X)); | |
27950 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_PyObj_FromInt((int)wxSYS_CURSOR_Y)); | |
27951 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_PyObj_FromInt((int)wxSYS_DCLICK_X)); | |
27952 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_PyObj_FromInt((int)wxSYS_DCLICK_Y)); | |
27953 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_PyObj_FromInt((int)wxSYS_DRAG_X)); | |
27954 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_PyObj_FromInt((int)wxSYS_DRAG_Y)); | |
27955 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_PyObj_FromInt((int)wxSYS_EDGE_X)); | |
27956 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_PyObj_FromInt((int)wxSYS_EDGE_Y)); | |
27957 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
27958 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
27959 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_PyObj_FromInt((int)wxSYS_HTHUMB_X)); | |
27960 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_PyObj_FromInt((int)wxSYS_ICON_X)); | |
27961 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_PyObj_FromInt((int)wxSYS_ICON_Y)); | |
27962 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_PyObj_FromInt((int)wxSYS_ICONSPACING_X)); | |
27963 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_PyObj_FromInt((int)wxSYS_ICONSPACING_Y)); | |
27964 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_PyObj_FromInt((int)wxSYS_WINDOWMIN_X)); | |
27965 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_PyObj_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
27966 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_X)); | |
27967 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_Y)); | |
27968 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_PyObj_FromInt((int)wxSYS_FRAMESIZE_X)); | |
27969 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_PyObj_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
27970 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_PyObj_FromInt((int)wxSYS_SMALLICON_X)); | |
27971 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_PyObj_FromInt((int)wxSYS_SMALLICON_Y)); | |
27972 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_Y)); | |
27973 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_X)); | |
27974 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
27975 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
27976 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_PyObj_FromInt((int)wxSYS_VTHUMB_Y)); | |
27977 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_PyObj_FromInt((int)wxSYS_CAPTION_Y)); | |
27978 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_PyObj_FromInt((int)wxSYS_MENU_Y)); | |
27979 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_PyObj_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
27980 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_PyObj_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
27981 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_PyObj_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
27982 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_PyObj_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
27983 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_PyObj_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
27984 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_PyObj_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
27985 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_NONE)); | |
27986 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_TINY)); | |
27987 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_PDA)); | |
27988 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_SMALL)); | |
27989 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
27990 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
27991 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
27992 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
27993 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
27994 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_PyObj_FromInt((int)wxSHUTDOWN_POWEROFF)); | |
27995 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_PyObj_FromInt((int)wxSHUTDOWN_REBOOT)); | |
27996 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_PyObj_FromInt((int)wxTIMER_CONTINUOUS)); | |
27997 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_PyObj_FromInt((int)wxTIMER_ONE_SHOT)); | |
27998 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
27999 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_PyObj_FromInt((int)wxLOG_FatalError)); | |
28000 | PyDict_SetItemString(d,"LOG_Error", SWIG_PyObj_FromInt((int)wxLOG_Error)); | |
28001 | PyDict_SetItemString(d,"LOG_Warning", SWIG_PyObj_FromInt((int)wxLOG_Warning)); | |
28002 | PyDict_SetItemString(d,"LOG_Message", SWIG_PyObj_FromInt((int)wxLOG_Message)); | |
28003 | PyDict_SetItemString(d,"LOG_Status", SWIG_PyObj_FromInt((int)wxLOG_Status)); | |
28004 | PyDict_SetItemString(d,"LOG_Info", SWIG_PyObj_FromInt((int)wxLOG_Info)); | |
28005 | PyDict_SetItemString(d,"LOG_Debug", SWIG_PyObj_FromInt((int)wxLOG_Debug)); | |
28006 | PyDict_SetItemString(d,"LOG_Trace", SWIG_PyObj_FromInt((int)wxLOG_Trace)); | |
28007 | PyDict_SetItemString(d,"LOG_Progress", SWIG_PyObj_FromInt((int)wxLOG_Progress)); | |
28008 | PyDict_SetItemString(d,"LOG_User", SWIG_PyObj_FromInt((int)wxLOG_User)); | |
28009 | PyDict_SetItemString(d,"LOG_Max", SWIG_PyObj_FromInt((int)wxLOG_Max)); | |
28010 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_PyObj_FromInt((int)0x0001)); | |
28011 | PyDict_SetItemString(d,"TraceMessages", SWIG_PyObj_FromInt((int)0x0002)); | |
28012 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_PyObj_FromInt((int)0x0004)); | |
28013 | PyDict_SetItemString(d,"TraceRefCount", SWIG_PyObj_FromInt((int)0x0008)); | |
28014 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_PyObj_FromInt((int)0x0100)); | |
28015 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_PyObj_FromInt((int)wxPROCESS_DEFAULT)); | |
28016 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_PyObj_FromInt((int)wxPROCESS_REDIRECT)); | |
28017 | PyDict_SetItemString(d,"KILL_OK", SWIG_PyObj_FromInt((int)wxKILL_OK)); | |
28018 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_PyObj_FromInt((int)wxKILL_BAD_SIGNAL)); | |
28019 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_PyObj_FromInt((int)wxKILL_ACCESS_DENIED)); | |
28020 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_PyObj_FromInt((int)wxKILL_NO_PROCESS)); | |
28021 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_PyObj_FromInt((int)wxKILL_ERROR)); | |
28022 | PyDict_SetItemString(d,"SIGNONE", SWIG_PyObj_FromInt((int)wxSIGNONE)); | |
28023 | PyDict_SetItemString(d,"SIGHUP", SWIG_PyObj_FromInt((int)wxSIGHUP)); | |
28024 | PyDict_SetItemString(d,"SIGINT", SWIG_PyObj_FromInt((int)wxSIGINT)); | |
28025 | PyDict_SetItemString(d,"SIGQUIT", SWIG_PyObj_FromInt((int)wxSIGQUIT)); | |
28026 | PyDict_SetItemString(d,"SIGILL", SWIG_PyObj_FromInt((int)wxSIGILL)); | |
28027 | PyDict_SetItemString(d,"SIGTRAP", SWIG_PyObj_FromInt((int)wxSIGTRAP)); | |
28028 | PyDict_SetItemString(d,"SIGABRT", SWIG_PyObj_FromInt((int)wxSIGABRT)); | |
28029 | PyDict_SetItemString(d,"SIGIOT", SWIG_PyObj_FromInt((int)wxSIGIOT)); | |
28030 | PyDict_SetItemString(d,"SIGEMT", SWIG_PyObj_FromInt((int)wxSIGEMT)); | |
28031 | PyDict_SetItemString(d,"SIGFPE", SWIG_PyObj_FromInt((int)wxSIGFPE)); | |
28032 | PyDict_SetItemString(d,"SIGKILL", SWIG_PyObj_FromInt((int)wxSIGKILL)); | |
28033 | PyDict_SetItemString(d,"SIGBUS", SWIG_PyObj_FromInt((int)wxSIGBUS)); | |
28034 | PyDict_SetItemString(d,"SIGSEGV", SWIG_PyObj_FromInt((int)wxSIGSEGV)); | |
28035 | PyDict_SetItemString(d,"SIGSYS", SWIG_PyObj_FromInt((int)wxSIGSYS)); | |
28036 | PyDict_SetItemString(d,"SIGPIPE", SWIG_PyObj_FromInt((int)wxSIGPIPE)); | |
28037 | PyDict_SetItemString(d,"SIGALRM", SWIG_PyObj_FromInt((int)wxSIGALRM)); | |
28038 | PyDict_SetItemString(d,"SIGTERM", SWIG_PyObj_FromInt((int)wxSIGTERM)); | |
28039 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
28040 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_PyObj_FromInt((int)wxEXEC_ASYNC)); | |
28041 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_PyObj_FromInt((int)wxEXEC_SYNC)); | |
28042 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_PyObj_FromInt((int)wxEXEC_NOHIDE)); | |
28043 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_PyObj_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
28044 | ||
28045 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
28046 | ||
28047 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_PyObj_FromInt((int)wxJOYSTICK1)); | |
28048 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_PyObj_FromInt((int)wxJOYSTICK2)); | |
28049 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_PyObj_FromInt((int)wxJOY_BUTTON_ANY)); | |
28050 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_PyObj_FromInt((int)wxJOY_BUTTON1)); | |
28051 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_PyObj_FromInt((int)wxJOY_BUTTON2)); | |
28052 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_PyObj_FromInt((int)wxJOY_BUTTON3)); | |
28053 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_PyObj_FromInt((int)wxJOY_BUTTON4)); | |
28054 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
28055 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
28056 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
28057 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
28058 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_PyObj_FromInt((int)wxMAILCAP_STANDARD)); | |
28059 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_PyObj_FromInt((int)wxMAILCAP_NETSCAPE)); | |
28060 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_PyObj_FromInt((int)wxMAILCAP_KDE)); | |
28061 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_PyObj_FromInt((int)wxMAILCAP_GNOME)); | |
28062 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_PyObj_FromInt((int)wxMAILCAP_ALL)); | |
28063 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
28064 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
28065 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
28066 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
28067 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
28068 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
28069 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
28070 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
28071 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
28072 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
28073 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
28074 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
28075 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
28076 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
28077 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
28078 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
28079 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
28080 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
28081 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
28082 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
28083 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
28084 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
28085 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
28086 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
28087 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
28088 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
28089 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
28090 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
28091 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
28092 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
28093 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
28094 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
28095 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
28096 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
28097 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
28098 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
28099 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
28100 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
28101 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
28102 | ||
28103 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
28104 | ||
28105 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_PyObj_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); | |
28106 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_PyObj_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
28107 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_PyObj_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
28108 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_PyObj_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
28109 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Unknown)); | |
28110 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_PyObj_FromInt((int)wxConfigBase::Type_String)); | |
28111 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Boolean)); | |
28112 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Integer)); | |
28113 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Float)); | |
28114 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); | |
28115 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
28116 | PyDict_SetItemString(d,"DateTime_Local", SWIG_PyObj_FromInt((int)wxDateTime::Local)); | |
28117 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_PyObj_FromInt((int)wxDateTime::GMT_12)); | |
28118 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_PyObj_FromInt((int)wxDateTime::GMT_11)); | |
28119 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_PyObj_FromInt((int)wxDateTime::GMT_10)); | |
28120 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_PyObj_FromInt((int)wxDateTime::GMT_9)); | |
28121 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_PyObj_FromInt((int)wxDateTime::GMT_8)); | |
28122 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_PyObj_FromInt((int)wxDateTime::GMT_7)); | |
28123 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_PyObj_FromInt((int)wxDateTime::GMT_6)); | |
28124 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_PyObj_FromInt((int)wxDateTime::GMT_5)); | |
28125 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_PyObj_FromInt((int)wxDateTime::GMT_4)); | |
28126 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_PyObj_FromInt((int)wxDateTime::GMT_3)); | |
28127 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_PyObj_FromInt((int)wxDateTime::GMT_2)); | |
28128 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_PyObj_FromInt((int)wxDateTime::GMT_1)); | |
28129 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_PyObj_FromInt((int)wxDateTime::GMT0)); | |
28130 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_PyObj_FromInt((int)wxDateTime::GMT1)); | |
28131 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_PyObj_FromInt((int)wxDateTime::GMT2)); | |
28132 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_PyObj_FromInt((int)wxDateTime::GMT3)); | |
28133 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_PyObj_FromInt((int)wxDateTime::GMT4)); | |
28134 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_PyObj_FromInt((int)wxDateTime::GMT5)); | |
28135 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_PyObj_FromInt((int)wxDateTime::GMT6)); | |
28136 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_PyObj_FromInt((int)wxDateTime::GMT7)); | |
28137 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_PyObj_FromInt((int)wxDateTime::GMT8)); | |
28138 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_PyObj_FromInt((int)wxDateTime::GMT9)); | |
28139 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_PyObj_FromInt((int)wxDateTime::GMT10)); | |
28140 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_PyObj_FromInt((int)wxDateTime::GMT11)); | |
28141 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_PyObj_FromInt((int)wxDateTime::GMT12)); | |
28142 | PyDict_SetItemString(d,"DateTime_WET", SWIG_PyObj_FromInt((int)wxDateTime::WET)); | |
28143 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_PyObj_FromInt((int)wxDateTime::WEST)); | |
28144 | PyDict_SetItemString(d,"DateTime_CET", SWIG_PyObj_FromInt((int)wxDateTime::CET)); | |
28145 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_PyObj_FromInt((int)wxDateTime::CEST)); | |
28146 | PyDict_SetItemString(d,"DateTime_EET", SWIG_PyObj_FromInt((int)wxDateTime::EET)); | |
28147 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_PyObj_FromInt((int)wxDateTime::EEST)); | |
28148 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_PyObj_FromInt((int)wxDateTime::MSK)); | |
28149 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_PyObj_FromInt((int)wxDateTime::MSD)); | |
28150 | PyDict_SetItemString(d,"DateTime_AST", SWIG_PyObj_FromInt((int)wxDateTime::AST)); | |
28151 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_PyObj_FromInt((int)wxDateTime::ADT)); | |
28152 | PyDict_SetItemString(d,"DateTime_EST", SWIG_PyObj_FromInt((int)wxDateTime::EST)); | |
28153 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_PyObj_FromInt((int)wxDateTime::EDT)); | |
28154 | PyDict_SetItemString(d,"DateTime_CST", SWIG_PyObj_FromInt((int)wxDateTime::CST)); | |
28155 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_PyObj_FromInt((int)wxDateTime::CDT)); | |
28156 | PyDict_SetItemString(d,"DateTime_MST", SWIG_PyObj_FromInt((int)wxDateTime::MST)); | |
28157 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_PyObj_FromInt((int)wxDateTime::MDT)); | |
28158 | PyDict_SetItemString(d,"DateTime_PST", SWIG_PyObj_FromInt((int)wxDateTime::PST)); | |
28159 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_PyObj_FromInt((int)wxDateTime::PDT)); | |
28160 | PyDict_SetItemString(d,"DateTime_HST", SWIG_PyObj_FromInt((int)wxDateTime::HST)); | |
28161 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_PyObj_FromInt((int)wxDateTime::AKST)); | |
28162 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_PyObj_FromInt((int)wxDateTime::AKDT)); | |
28163 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_PyObj_FromInt((int)wxDateTime::A_WST)); | |
28164 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_PyObj_FromInt((int)wxDateTime::A_CST)); | |
28165 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_PyObj_FromInt((int)wxDateTime::A_EST)); | |
28166 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_PyObj_FromInt((int)wxDateTime::A_ESST)); | |
28167 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_PyObj_FromInt((int)wxDateTime::UTC)); | |
28168 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_PyObj_FromInt((int)wxDateTime::Gregorian)); | |
28169 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_PyObj_FromInt((int)wxDateTime::Julian)); | |
28170 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Unknown)); | |
28171 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Standard)); | |
28172 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Alaska)); | |
28173 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Albania)); | |
28174 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria)); | |
28175 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
28176 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
28177 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
28178 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
28179 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
28180 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Belgium)); | |
28181 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
28182 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
28183 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
28184 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
28185 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Canada)); | |
28186 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China)); | |
28187 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China_1)); | |
28188 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China_2)); | |
28189 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
28190 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Denmark)); | |
28191 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Egypt)); | |
28192 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Estonia)); | |
28193 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Finland)); | |
28194 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France)); | |
28195 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
28196 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
28197 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
28198 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany)); | |
28199 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
28200 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
28201 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
28202 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_PyObj_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
28203 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Greece)); | |
28204 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Hungary)); | |
28205 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Ireland)); | |
28206 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Italy)); | |
28207 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan)); | |
28208 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_1)); | |
28209 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_2)); | |
28210 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_3)); | |
28211 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Latvia)); | |
28212 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Lithuania)); | |
28213 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
28214 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands)); | |
28215 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
28216 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
28217 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
28218 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
28219 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Norway)); | |
28220 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Poland)); | |
28221 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Portugal)); | |
28222 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Romania)); | |
28223 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Russia)); | |
28224 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Scotland)); | |
28225 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Spain)); | |
28226 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Sweden)); | |
28227 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland)); | |
28228 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
28229 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
28230 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Turkey)); | |
28231 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_PyObj_FromInt((int)wxDateTime::Gr_USA)); | |
28232 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Wales)); | |
28233 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
28234 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_PyObj_FromInt((int)wxDateTime::Country_Unknown)); | |
28235 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_PyObj_FromInt((int)wxDateTime::Country_Default)); | |
28236 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_PyObj_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
28237 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_PyObj_FromInt((int)wxDateTime::Country_EEC)); | |
28238 | PyDict_SetItemString(d,"DateTime_France", SWIG_PyObj_FromInt((int)wxDateTime::France)); | |
28239 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_PyObj_FromInt((int)wxDateTime::Germany)); | |
28240 | PyDict_SetItemString(d,"DateTime_UK", SWIG_PyObj_FromInt((int)wxDateTime::UK)); | |
28241 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_PyObj_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
28242 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_PyObj_FromInt((int)wxDateTime::Russia)); | |
28243 | PyDict_SetItemString(d,"DateTime_USA", SWIG_PyObj_FromInt((int)wxDateTime::USA)); | |
28244 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_PyObj_FromInt((int)wxDateTime::Jan)); | |
28245 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_PyObj_FromInt((int)wxDateTime::Feb)); | |
28246 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_PyObj_FromInt((int)wxDateTime::Mar)); | |
28247 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_PyObj_FromInt((int)wxDateTime::Apr)); | |
28248 | PyDict_SetItemString(d,"DateTime_May", SWIG_PyObj_FromInt((int)wxDateTime::May)); | |
28249 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_PyObj_FromInt((int)wxDateTime::Jun)); | |
28250 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_PyObj_FromInt((int)wxDateTime::Jul)); | |
28251 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_PyObj_FromInt((int)wxDateTime::Aug)); | |
28252 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_PyObj_FromInt((int)wxDateTime::Sep)); | |
28253 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_PyObj_FromInt((int)wxDateTime::Oct)); | |
28254 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_PyObj_FromInt((int)wxDateTime::Nov)); | |
28255 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_PyObj_FromInt((int)wxDateTime::Dec)); | |
28256 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_PyObj_FromInt((int)wxDateTime::Inv_Month)); | |
28257 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_PyObj_FromInt((int)wxDateTime::Sun)); | |
28258 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_PyObj_FromInt((int)wxDateTime::Mon)); | |
28259 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_PyObj_FromInt((int)wxDateTime::Tue)); | |
28260 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_PyObj_FromInt((int)wxDateTime::Wed)); | |
28261 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_PyObj_FromInt((int)wxDateTime::Thu)); | |
28262 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_PyObj_FromInt((int)wxDateTime::Fri)); | |
28263 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_PyObj_FromInt((int)wxDateTime::Sat)); | |
28264 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_PyObj_FromInt((int)wxDateTime::Inv_WeekDay)); | |
28265 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_PyObj_FromInt((int)wxDateTime::Inv_Year)); | |
28266 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_PyObj_FromInt((int)wxDateTime::Name_Full)); | |
28267 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_PyObj_FromInt((int)wxDateTime::Name_Abbr)); | |
28268 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_PyObj_FromInt((int)wxDateTime::Default_First)); | |
28269 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_PyObj_FromInt((int)wxDateTime::Monday_First)); | |
28270 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_PyObj_FromInt((int)wxDateTime::Sunday_First)); | |
28271 | PyDict_SetItemString(d,"DF_INVALID", SWIG_PyObj_FromInt((int)wxDF_INVALID)); | |
28272 | PyDict_SetItemString(d,"DF_TEXT", SWIG_PyObj_FromInt((int)wxDF_TEXT)); | |
28273 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_PyObj_FromInt((int)wxDF_BITMAP)); | |
28274 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_PyObj_FromInt((int)wxDF_METAFILE)); | |
28275 | PyDict_SetItemString(d,"DF_SYLK", SWIG_PyObj_FromInt((int)wxDF_SYLK)); | |
28276 | PyDict_SetItemString(d,"DF_DIF", SWIG_PyObj_FromInt((int)wxDF_DIF)); | |
28277 | PyDict_SetItemString(d,"DF_TIFF", SWIG_PyObj_FromInt((int)wxDF_TIFF)); | |
28278 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_PyObj_FromInt((int)wxDF_OEMTEXT)); | |
28279 | PyDict_SetItemString(d,"DF_DIB", SWIG_PyObj_FromInt((int)wxDF_DIB)); | |
28280 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_PyObj_FromInt((int)wxDF_PALETTE)); | |
28281 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_PyObj_FromInt((int)wxDF_PENDATA)); | |
28282 | PyDict_SetItemString(d,"DF_RIFF", SWIG_PyObj_FromInt((int)wxDF_RIFF)); | |
28283 | PyDict_SetItemString(d,"DF_WAVE", SWIG_PyObj_FromInt((int)wxDF_WAVE)); | |
28284 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_PyObj_FromInt((int)wxDF_UNICODETEXT)); | |
28285 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_PyObj_FromInt((int)wxDF_ENHMETAFILE)); | |
28286 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_PyObj_FromInt((int)wxDF_FILENAME)); | |
28287 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_PyObj_FromInt((int)wxDF_LOCALE)); | |
28288 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_PyObj_FromInt((int)wxDF_PRIVATE)); | |
28289 | PyDict_SetItemString(d,"DF_HTML", SWIG_PyObj_FromInt((int)wxDF_HTML)); | |
28290 | PyDict_SetItemString(d,"DF_MAX", SWIG_PyObj_FromInt((int)wxDF_MAX)); | |
28291 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
28292 | PyDict_SetItemString(d,"DataObject_Get", SWIG_PyObj_FromInt((int)wxDataObject::Get)); | |
28293 | PyDict_SetItemString(d,"DataObject_Set", SWIG_PyObj_FromInt((int)wxDataObject::Set)); | |
28294 | PyDict_SetItemString(d,"DataObject_Both", SWIG_PyObj_FromInt((int)wxDataObject::Both)); | |
28295 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_PyObj_FromInt((int)wxDrag_CopyOnly)); | |
28296 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_PyObj_FromInt((int)wxDrag_AllowMove)); | |
28297 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_PyObj_FromInt((int)wxDrag_DefaultMove)); | |
28298 | PyDict_SetItemString(d,"DragError", SWIG_PyObj_FromInt((int)wxDragError)); | |
28299 | PyDict_SetItemString(d,"DragNone", SWIG_PyObj_FromInt((int)wxDragNone)); | |
28300 | PyDict_SetItemString(d,"DragCopy", SWIG_PyObj_FromInt((int)wxDragCopy)); | |
28301 | PyDict_SetItemString(d,"DragMove", SWIG_PyObj_FromInt((int)wxDragMove)); | |
28302 | PyDict_SetItemString(d,"DragLink", SWIG_PyObj_FromInt((int)wxDragLink)); | |
28303 | PyDict_SetItemString(d,"DragCancel", SWIG_PyObj_FromInt((int)wxDragCancel)); | |
28304 | ||
28305 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
28306 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
28307 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
28308 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
28309 | ||
28310 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
28311 | } | |
28312 |