]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
9d1d5697 | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
cc6dd355 | 127 | |
d14a1e28 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
a41e16b6 RD |
140 | #include <limits.h> |
141 | #include <float.h> | |
142 | ||
143 | #ifdef __cplusplus | |
144 | #define SWIG_STATIC_INLINE static inline | |
145 | #else | |
146 | #define SWIG_STATIC_INLINE static | |
147 | #endif | |
148 | ||
149 | SWIG_STATIC_INLINE long | |
150 | SPyObj_AsLong(PyObject * obj) | |
151 | { | |
152 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
153 | } | |
154 | ||
155 | SWIG_STATIC_INLINE unsigned long | |
156 | SPyObj_AsUnsignedLong(PyObject * obj) | |
157 | { | |
158 | if (PyLong_Check(obj)) { | |
159 | return PyLong_AsUnsignedLong(obj); | |
160 | } else { | |
161 | long i = PyInt_AsLong(obj); | |
162 | if ( !PyErr_Occurred() && (i < 0)) { | |
163 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
164 | } | |
165 | return i; | |
166 | } | |
167 | } | |
168 | ||
169 | #if !defined(_MSC_VER) | |
170 | SWIG_STATIC_INLINE PyObject* | |
171 | SPyObj_FromLongLong(long long value) | |
172 | { | |
173 | return (value > (long)(LONG_MAX)) ? | |
174 | PyLong_FromLongLong(value) : PyInt_FromLong((long)value); | |
175 | } | |
176 | #endif | |
177 | ||
178 | SWIG_STATIC_INLINE PyObject* | |
179 | SPyObj_FromUnsignedLong(unsigned long value) | |
180 | { | |
181 | return (value > (unsigned long)(LONG_MAX)) ? | |
182 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
183 | } | |
184 | ||
185 | #if !defined(_MSC_VER) | |
186 | SWIG_STATIC_INLINE PyObject* | |
187 | SPyObj_FromUnsignedLongLong(unsigned long long value) | |
188 | { | |
189 | return (value > (unsigned long long)(LONG_MAX)) ? | |
190 | PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)value); | |
191 | } | |
192 | #endif | |
193 | ||
194 | SWIG_STATIC_INLINE long | |
195 | SPyObj_AsLongInRange(PyObject * obj, long min_value, long max_value) | |
196 | { | |
197 | long value = SPyObj_AsLong(obj); | |
198 | if (!PyErr_Occurred()) { | |
199 | if (value < min_value) { | |
200 | PyErr_SetString(PyExc_OverflowError,"value is smaller than type minimum"); | |
201 | } else if (value > max_value) { | |
202 | PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum"); | |
203 | } | |
204 | } | |
205 | return value; | |
206 | } | |
207 | ||
208 | SWIG_STATIC_INLINE unsigned long | |
209 | SPyObj_AsUnsignedLongInRange(PyObject *obj, unsigned long max_value) | |
210 | { | |
211 | unsigned long value = SPyObj_AsUnsignedLong(obj); | |
212 | if (!PyErr_Occurred()) { | |
213 | if (value > max_value) { | |
214 | PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum"); | |
215 | } | |
216 | } | |
217 | return value; | |
218 | } | |
219 | ||
220 | SWIG_STATIC_INLINE signed char | |
221 | SPyObj_AsSignedChar(PyObject *obj) { | |
222 | return (signed char)SPyObj_AsLongInRange(obj, SCHAR_MIN, SCHAR_MAX); | |
223 | } | |
224 | ||
225 | SWIG_STATIC_INLINE short | |
226 | SPyObj_AsShort(PyObject *obj) { | |
227 | return (short)SPyObj_AsLongInRange(obj, SHRT_MIN, SHRT_MAX); | |
228 | } | |
229 | ||
230 | SWIG_STATIC_INLINE int | |
231 | SPyObj_AsInt(PyObject *obj) { | |
232 | return SPyObj_AsLongInRange(obj, INT_MIN, INT_MAX); | |
233 | } | |
234 | ||
235 | SWIG_STATIC_INLINE unsigned char | |
236 | SPyObj_AsUnsignedChar(PyObject *obj) { | |
237 | return (unsigned char)SPyObj_AsUnsignedLongInRange(obj, UCHAR_MAX); | |
238 | } | |
239 | ||
240 | SWIG_STATIC_INLINE unsigned short | |
241 | SPyObj_AsUnsignedShort(PyObject *obj) { | |
242 | return (unsigned short)SPyObj_AsUnsignedLongInRange(obj, USHRT_MAX); | |
243 | } | |
244 | ||
245 | SWIG_STATIC_INLINE unsigned int | |
246 | SPyObj_AsUnsignedInt(PyObject *obj) { | |
247 | return SPyObj_AsUnsignedLongInRange(obj, UINT_MAX); | |
248 | } | |
249 | ||
250 | #if !defined(_MSC_VER) | |
251 | SWIG_STATIC_INLINE long long | |
252 | SPyObj_AsLongLong(PyObject *obj) { | |
253 | return PyInt_Check(obj) ? | |
254 | PyInt_AsLong(obj) : PyLong_AsLongLong(obj); | |
255 | } | |
256 | ||
257 | SWIG_STATIC_INLINE unsigned long long | |
258 | SPyObj_AsUnsignedLongLong(PyObject *obj) { | |
259 | return PyLong_Check(obj) ? | |
260 | PyLong_AsUnsignedLongLong(obj) : SPyObj_AsUnsignedLong(obj); | |
261 | } | |
262 | #endif | |
263 | ||
264 | SWIG_STATIC_INLINE double | |
265 | SPyObj_AsDouble(PyObject *obj) { | |
266 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
267 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
268 | } | |
269 | ||
270 | SWIG_STATIC_INLINE float | |
271 | SPyObj_AsFloat(PyObject *obj) { | |
272 | double value = SPyObj_AsDouble(obj); | |
273 | if (!PyErr_Occurred()) { | |
274 | if (value < FLT_MIN) { | |
275 | PyErr_SetString(PyExc_OverflowError,"float is smaller than flt_min"); | |
276 | } else if (value > FLT_MAX) { | |
277 | PyErr_SetString(PyExc_OverflowError,"float is greater than flt_max"); | |
278 | } | |
279 | } | |
280 | return (float) value; | |
281 | } | |
282 | ||
283 | SWIG_STATIC_INLINE char | |
284 | SPyObj_AsChar(PyObject *obj) { | |
285 | char c = (PyString_Check(obj) && PyString_Size(obj) == 1) ? | |
286 | PyString_AsString(obj)[0] | |
287 | : (char) SPyObj_AsLongInRange(obj, CHAR_MIN, CHAR_MAX); | |
288 | if (PyErr_Occurred()) { | |
289 | PyErr_Clear(); | |
290 | PyErr_SetString(PyExc_TypeError, "a char is required"); | |
291 | } | |
292 | return c; | |
293 | } | |
294 | ||
295 | SWIG_STATIC_INLINE PyObject * | |
296 | SPyObj_FromChar(char c) { | |
297 | return PyString_FromStringAndSize(&c,1); | |
298 | } | |
299 | ||
300 | SWIG_STATIC_INLINE PyObject * | |
301 | SPyObj_FromCharPtr(const char* cptr) { | |
302 | return cptr ? PyString_FromString(cptr) : Py_BuildValue((char*)""); | |
303 | } | |
304 | ||
305 | SWIG_STATIC_INLINE int | |
306 | SPyObj_AsBool(PyObject *obj) { | |
307 | return SPyObj_AsLong/*Long*/(obj) ? 1 : 0; | |
308 | } | |
309 | ||
310 | ||
311 | ||
d14a1e28 RD |
312 | #ifdef __cplusplus |
313 | extern "C" { | |
314 | #endif | |
315 | ||
316 | #define SWIG_PY_INT 1 | |
317 | #define SWIG_PY_FLOAT 2 | |
318 | #define SWIG_PY_STRING 3 | |
319 | #define SWIG_PY_POINTER 4 | |
320 | #define SWIG_PY_BINARY 5 | |
321 | ||
322 | /* Flags for pointer conversion */ | |
323 | ||
324 | #define SWIG_POINTER_EXCEPTION 0x1 | |
325 | #define SWIG_POINTER_DISOWN 0x2 | |
326 | ||
327 | /* Exception handling in wrappers */ | |
328 | #define SWIG_fail goto fail | |
329 | ||
330 | /* Constant information structure */ | |
331 | typedef struct swig_const_info { | |
332 | int type; | |
333 | char *name; | |
334 | long lvalue; | |
335 | double dvalue; | |
336 | void *pvalue; | |
337 | swig_type_info **ptype; | |
338 | } swig_const_info; | |
339 | ||
d14a1e28 RD |
340 | /* Common SWIG API */ |
341 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
342 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
343 | #define SWIG_NewPointerObj(p, type, flags) \ | |
344 | SWIG_Python_NewPointerObj(p, type, flags) | |
345 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
346 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 347 | |
d14a1e28 RD |
348 | /* Python-specific SWIG API */ |
349 | #define SWIG_newvarlink() \ | |
350 | SWIG_Python_newvarlink() | |
351 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
352 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
353 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
354 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
355 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
356 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
357 | #define SWIG_InstallConstants(d, constants) \ | |
358 | SWIG_Python_InstallConstants(d, constants) | |
359 | ||
360 | ||
cc6dd355 RD |
361 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
362 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
363 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
364 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
365 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
366 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
367 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
368 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 369 | |
d14a1e28 RD |
370 | |
371 | ||
372 | /* Contract support */ | |
373 | ||
9d1d5697 | 374 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 375 | |
d14a1e28 RD |
376 | #ifdef __cplusplus |
377 | } | |
378 | #endif | |
379 | ||
380 | ||
381 | ||
382 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
383 | ||
384 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
385 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
386 | #define SWIGTYPE_p_wxFileHistory swig_types[2] | |
387 | #define SWIGTYPE_p_wxLog swig_types[3] | |
388 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4] | |
389 | #define SWIGTYPE_p_wxMenu swig_types[5] | |
390 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
391 | #define SWIGTYPE_p_wxConfigBase swig_types[7] | |
392 | #define SWIGTYPE_p_wxWave swig_types[8] | |
393 | #define SWIGTYPE_p_wxFileType swig_types[9] | |
394 | #define SWIGTYPE_p_wxLogGui swig_types[10] | |
395 | #define SWIGTYPE_p_wxFont swig_types[11] | |
396 | #define SWIGTYPE_p_wxDataFormat swig_types[12] | |
397 | #define SWIGTYPE_p_wxTimerEvent swig_types[13] | |
398 | #define SWIGTYPE_p_wxCaret swig_types[14] | |
399 | #define SWIGTYPE_p_int swig_types[15] | |
400 | #define SWIGTYPE_p_wxSize swig_types[16] | |
401 | #define SWIGTYPE_p_wxClipboard swig_types[17] | |
402 | #define SWIGTYPE_p_wxStopWatch swig_types[18] | |
403 | #define SWIGTYPE_p_wxDC swig_types[19] | |
404 | #define SWIGTYPE_p_wxClipboardLocker swig_types[20] | |
405 | #define SWIGTYPE_p_wxIcon swig_types[21] | |
406 | #define SWIGTYPE_p_wxLogStderr swig_types[22] | |
407 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[23] | |
408 | #define SWIGTYPE_p_wxTextCtrl swig_types[24] | |
409 | #define SWIGTYPE_p_wxBusyCursor swig_types[25] | |
410 | #define SWIGTYPE_p_wxFileDataObject swig_types[26] | |
411 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27] | |
412 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[28] | |
413 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[29] | |
414 | #define SWIGTYPE_p_wxTextDataObject swig_types[30] | |
415 | #define SWIGTYPE_p_wxDataObject swig_types[31] | |
416 | #define SWIGTYPE_p_wxCustomDataObject swig_types[32] | |
417 | #define SWIGTYPE_p_wxURLDataObject swig_types[33] | |
418 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[34] | |
419 | #define SWIGTYPE_p_wxTimerRunner swig_types[35] | |
420 | #define SWIGTYPE_p_wxLogWindow swig_types[36] | |
421 | #define SWIGTYPE_p_wxTimeSpan swig_types[37] | |
422 | #define SWIGTYPE_p_wxArrayString swig_types[38] | |
423 | #define SWIGTYPE_p_wxWindowDisabler swig_types[39] | |
424 | #define SWIGTYPE_p_wxToolTip swig_types[40] | |
425 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[41] | |
426 | #define SWIGTYPE_p_wxFileConfig swig_types[42] | |
427 | #define SWIGTYPE_p_wxSystemSettings swig_types[43] | |
428 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[44] | |
429 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[45] | |
430 | #define SWIGTYPE_p_wxEvtHandler swig_types[46] | |
431 | #define SWIGTYPE_p_wxRect swig_types[47] | |
432 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[48] | |
433 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[49] | |
434 | #define SWIGTYPE_p_wxFrame swig_types[50] | |
435 | #define SWIGTYPE_p_wxTimer swig_types[51] | |
436 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[52] | |
437 | #define SWIGTYPE_p_wxPyArtProvider swig_types[53] | |
438 | #define SWIGTYPE_p_wxPyTipProvider swig_types[54] | |
439 | #define SWIGTYPE_p_wxTipProvider swig_types[55] | |
440 | #define SWIGTYPE_p_wxJoystick swig_types[56] | |
441 | #define SWIGTYPE_p_wxSystemOptions swig_types[57] | |
442 | #define SWIGTYPE_p_wxPoint swig_types[58] | |
443 | #define SWIGTYPE_p_wxJoystickEvent swig_types[59] | |
444 | #define SWIGTYPE_p_wxCursor swig_types[60] | |
445 | #define SWIGTYPE_p_wxObject swig_types[61] | |
446 | #define SWIGTYPE_p_wxOutputStream swig_types[62] | |
447 | #define SWIGTYPE_p_wxDateTime swig_types[63] | |
448 | #define SWIGTYPE_p_wxPyDropSource swig_types[64] | |
449 | #define SWIGTYPE_p_wxWindow swig_types[65] | |
450 | #define SWIGTYPE_p_wxString swig_types[66] | |
451 | #define SWIGTYPE_p_wxPyProcess swig_types[67] | |
452 | #define SWIGTYPE_p_wxBitmap swig_types[68] | |
453 | #define SWIGTYPE_p_wxConfig swig_types[69] | |
454 | #define SWIGTYPE_p_wxChar swig_types[70] | |
455 | #define SWIGTYPE_p_wxBusyInfo swig_types[71] | |
456 | #define SWIGTYPE_p_wxPyDropTarget swig_types[72] | |
457 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[73] | |
458 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[74] | |
459 | #define SWIGTYPE_p_wxProcessEvent swig_types[75] | |
460 | #define SWIGTYPE_p_wxPyLog swig_types[76] | |
461 | #define SWIGTYPE_p_wxLogNull swig_types[77] | |
462 | #define SWIGTYPE_p_wxColour swig_types[78] | |
463 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[79] | |
464 | #define SWIGTYPE_p_wxPyTimer swig_types[80] | |
465 | #define SWIGTYPE_p_wxDateSpan swig_types[81] | |
466 | static swig_type_info *swig_types[83]; | |
467 | ||
468 | /* -------- TYPES TABLE (END) -------- */ | |
469 | ||
470 | ||
471 | /*----------------------------------------------- | |
472 | @(target):= _misc.so | |
473 | ------------------------------------------------*/ | |
474 | #define SWIG_init init_misc | |
475 | ||
476 | #define SWIG_name "_misc" | |
477 | ||
478 | #include "wx/wxPython/wxPython.h" | |
479 | #include "wx/wxPython/pyclasses.h" | |
480 | #include "wx/wxPython/pyistream.h" | |
481 | ||
d14a1e28 | 482 | |
b2dc1044 | 483 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 | 484 | |
d14a1e28 | 485 | |
b2dc1044 RD |
486 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
487 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
488 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 RD |
489 | |
490 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
491 | PyObject* o2; | |
492 | PyObject* o3; | |
493 | ||
494 | if (!target) { | |
495 | target = o; | |
496 | } else if (target == Py_None) { | |
497 | Py_DECREF(Py_None); | |
498 | target = o; | |
499 | } else { | |
500 | if (!PyTuple_Check(target)) { | |
501 | o2 = target; | |
502 | target = PyTuple_New(1); | |
503 | PyTuple_SetItem(target, 0, o2); | |
504 | } | |
505 | o3 = PyTuple_New(1); | |
506 | PyTuple_SetItem(o3, 0, o); | |
507 | ||
508 | o2 = target; | |
509 | target = PySequence_Concat(o2, o3); | |
510 | Py_DECREF(o2); | |
511 | Py_DECREF(o3); | |
512 | } | |
513 | return target; | |
514 | } | |
515 | ||
516 | ||
517 | long wxGetFreeMemory() | |
39f61e25 RD |
518 | { wxPyRaiseNotImplemented(); return 0; } |
519 | ||
520 | ||
521 | bool wxGetKeyState(wxKeyCode key) | |
522 | { wxPyRaiseNotImplemented(); return False; } | |
d14a1e28 RD |
523 | |
524 | ||
525 | void wxWakeUpMainThread() {} | |
526 | ||
527 | ||
528 | bool wxThread_IsMain() { | |
529 | #ifdef WXP_WITH_THREAD | |
530 | return wxThread::IsMain(); | |
531 | #else | |
e811c8ce | 532 | return True; |
d14a1e28 RD |
533 | #endif |
534 | } | |
535 | ||
536 | ||
537 | int wxCaret_GetBlinkTime() { | |
538 | return wxCaret::GetBlinkTime(); | |
539 | } | |
540 | ||
541 | void wxCaret_SetBlinkTime(int milliseconds) { | |
542 | wxCaret::SetBlinkTime(milliseconds); | |
543 | } | |
544 | ||
545 | ||
546 | #include <wx/snglinst.h> | |
547 | ||
548 | ||
549 | #ifdef __WXMSW__ | |
550 | #include <wx/msw/private.h> | |
551 | #include <wx/dynload.h> | |
552 | #endif | |
553 | ||
554 | ||
555 | ||
556 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
557 | { | |
558 | #ifdef __WXMSW__ | |
559 | ||
560 | switch (method) | |
561 | { | |
562 | case 1: | |
563 | // This one only partially works. Appears to be an undocumented | |
564 | // "standard" convention that not all widgets adhear to. For | |
565 | // example, for some widgets backgrounds or non-client areas may | |
566 | // not be painted. | |
567 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
568 | break; | |
569 | ||
570 | case 2: | |
571 | // This one works much better, except for on XP. On Win2k nearly | |
572 | // all widgets and their children are captured correctly[**]. On | |
573 | // XP with Themes activated most native widgets draw only | |
574 | // partially, if at all. Without themes it works just like on | |
575 | // Win2k. | |
576 | // | |
577 | // ** For example the radio buttons in a wxRadioBox are not its | |
578 | // children by default, but you can capture it via the panel | |
579 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
580 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
581 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
582 | PRF_ERASEBKGND | PRF_OWNED ); | |
583 | break; | |
584 | ||
585 | case 3: | |
586 | // This one is only defined in the latest SDK and is only | |
587 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
588 | // so I expect that it will work similar to the above. Since it | |
589 | // is avaialble only on XP, it can't be compiled like this and | |
590 | // will have to be loaded dynamically. | |
591 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
592 | ||
593 | // fall through | |
594 | ||
595 | case 4: | |
596 | // Use PrintWindow if available, or fallback to WM_PRINT | |
597 | // otherwise. Unfortunately using PrintWindow is even worse than | |
598 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
599 | // at all, with or without Themes. | |
600 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
e811c8ce | 601 | static bool s_triedToLoad = False; |
d14a1e28 RD |
602 | static PrintWindow_t pfnPrintWindow = NULL; |
603 | if ( !s_triedToLoad ) | |
604 | { | |
605 | ||
e811c8ce | 606 | s_triedToLoad = True; |
d14a1e28 RD |
607 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
608 | if ( dllUser32.IsLoaded() ) | |
609 | { | |
610 | wxLogNull nolog; // Don't report errors here | |
611 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
612 | } | |
613 | } | |
614 | if (pfnPrintWindow) | |
615 | { | |
616 | printf("Using PrintWindow\n"); | |
617 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
618 | } | |
619 | else | |
620 | { | |
621 | printf("Using WM_PRINT\n"); | |
622 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
623 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
624 | } | |
625 | } | |
626 | #endif | |
627 | } | |
628 | ||
629 | ||
630 | ||
631 | #include <wx/tipdlg.h> | |
632 | ||
633 | ||
634 | class wxPyTipProvider : public wxTipProvider { | |
635 | public: | |
636 | wxPyTipProvider(size_t currentTip) | |
637 | : wxTipProvider(currentTip) {} | |
638 | ||
639 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
640 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
641 | PYPRIVATE; | |
642 | }; | |
643 | ||
644 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
645 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
646 | ||
647 | ||
648 | IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
649 | ||
650 | wxString Log_TimeStamp(){ | |
651 | wxString msg; | |
652 | wxLog::TimeStamp(&msg); | |
653 | return msg; | |
654 | } | |
655 | void wxLog_Destroy(wxLog *self){ delete self; } | |
656 | ||
657 | // A wxLog class that can be derived from in wxPython | |
658 | class wxPyLog : public wxLog { | |
659 | public: | |
660 | wxPyLog() : wxLog() {} | |
661 | ||
662 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
663 | bool found; | |
664 | wxPyBeginBlockThreads(); | |
665 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
666 | PyObject* s = wx2PyString(szString); | |
667 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
668 | Py_DECREF(s); | |
669 | } | |
670 | wxPyEndBlockThreads(); | |
671 | if (! found) | |
672 | wxLog::DoLog(level, szString, t); | |
673 | } | |
674 | ||
675 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
676 | bool found; | |
677 | wxPyBeginBlockThreads(); | |
678 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
679 | PyObject* s = wx2PyString(szString); | |
680 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
681 | Py_DECREF(s); | |
682 | } | |
683 | wxPyEndBlockThreads(); | |
684 | if (! found) | |
685 | wxLog::DoLogString(szString, t); | |
686 | } | |
687 | ||
688 | PYPRIVATE; | |
689 | }; | |
690 | ||
691 | ||
692 | ||
693 | ||
694 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
695 | ||
696 | ||
697 | #include <wx/joystick.h> | |
698 | ||
699 | ||
700 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
701 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
702 | class wxJoystick : public wxObject { | |
703 | public: | |
704 | wxJoystick(int joystick = wxJOYSTICK1) { | |
705 | wxPyBeginBlockThreads(); | |
39f61e25 RD |
706 | PyErr_SetString(PyExc_NotImplementedError, |
707 | "wxJoystick is not available on this platform."); | |
d14a1e28 RD |
708 | wxPyEndBlockThreads(); |
709 | } | |
710 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
711 | int GetZPosition() { return -1; } | |
712 | int GetButtonState() { return -1; } | |
713 | int GetPOVPosition() { return -1; } | |
714 | int GetPOVCTSPosition() { return -1; } | |
715 | int GetRudderPosition() { return -1; } | |
716 | int GetUPosition() { return -1; } | |
717 | int GetVPosition() { return -1; } | |
718 | int GetMovementThreshold() { return -1; } | |
719 | void SetMovementThreshold(int threshold) {} | |
720 | ||
e811c8ce | 721 | bool IsOk(void) { return False; } |
d14a1e28 RD |
722 | int GetNumberJoysticks() { return -1; } |
723 | int GetManufacturerId() { return -1; } | |
724 | int GetProductId() { return -1; } | |
725 | wxString GetProductName() { return ""; } | |
726 | int GetXMin() { return -1; } | |
727 | int GetYMin() { return -1; } | |
728 | int GetZMin() { return -1; } | |
729 | int GetXMax() { return -1; } | |
730 | int GetYMax() { return -1; } | |
731 | int GetZMax() { return -1; } | |
732 | int GetNumberButtons() { return -1; } | |
733 | int GetNumberAxes() { return -1; } | |
734 | int GetMaxButtons() { return -1; } | |
735 | int GetMaxAxes() { return -1; } | |
736 | int GetPollingMin() { return -1; } | |
737 | int GetPollingMax() { return -1; } | |
738 | int GetRudderMin() { return -1; } | |
739 | int GetRudderMax() { return -1; } | |
740 | int GetUMin() { return -1; } | |
741 | int GetUMax() { return -1; } | |
742 | int GetVMin() { return -1; } | |
743 | int GetVMax() { return -1; } | |
744 | ||
e811c8ce RD |
745 | bool HasRudder() { return False; } |
746 | bool HasZ() { return False; } | |
747 | bool HasU() { return False; } | |
748 | bool HasV() { return False; } | |
749 | bool HasPOV() { return False; } | |
750 | bool HasPOV4Dir() { return False; } | |
751 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 752 | |
e811c8ce RD |
753 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
754 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
755 | }; |
756 | #endif | |
757 | ||
758 | ||
759 | #include <wx/wave.h> | |
760 | ||
761 | ||
762 | #if !wxUSE_WAVE | |
763 | // A C++ stub class for wxWave for platforms that don't have it. | |
764 | class wxWave : public wxObject | |
765 | { | |
766 | public: | |
e811c8ce | 767 | wxWave(const wxString& fileName, bool isResource = False) { |
d14a1e28 | 768 | wxPyBeginBlockThreads(); |
39f61e25 RD |
769 | PyErr_SetString(PyExc_NotImplementedError, |
770 | "wxWave is not available on this platform."); | |
d14a1e28 RD |
771 | wxPyEndBlockThreads(); |
772 | } | |
773 | wxWave(int size, const wxByte* data) { | |
774 | wxPyBeginBlockThreads(); | |
39f61e25 RD |
775 | PyErr_SetString(PyExc_NotImplementedError, |
776 | "wxWave is not available on this platform."); | |
d14a1e28 RD |
777 | wxPyEndBlockThreads(); |
778 | } | |
779 | ||
780 | ~wxWave() {} | |
781 | ||
e811c8ce RD |
782 | bool IsOk() const { return False; } |
783 | bool Play(bool async = True, bool looped = False) const { return False; } | |
d14a1e28 RD |
784 | }; |
785 | ||
786 | #endif | |
787 | ||
788 | wxWave *new_wxWave(wxString const &data){ | |
789 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
790 | } | |
791 | ||
792 | #include <wx/mimetype.h> | |
793 | ||
794 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
795 | wxString str; | |
796 | if (self->GetMimeType(&str)) | |
797 | return wx2PyString(str); | |
798 | else | |
799 | RETURN_NONE(); | |
800 | } | |
801 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
802 | wxArrayString arr; | |
803 | if (self->GetMimeTypes(arr)) | |
804 | return wxArrayString2PyList_helper(arr); | |
805 | else | |
806 | RETURN_NONE(); | |
807 | } | |
808 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
809 | wxArrayString arr; | |
810 | if (self->GetExtensions(arr)) | |
811 | return wxArrayString2PyList_helper(arr); | |
812 | else | |
813 | RETURN_NONE(); | |
814 | } | |
815 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
816 | wxIconLocation loc; | |
817 | if (self->GetIcon(&loc)) | |
818 | return new wxIcon(loc); | |
819 | else | |
820 | return NULL; | |
821 | } | |
822 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
823 | wxIconLocation loc; | |
824 | if (self->GetIcon(&loc)) { | |
825 | wxString iconFile = loc.GetFileName(); | |
826 | int iconIndex = -1; | |
827 | ||
828 | ||
829 | ||
830 | // Make a tuple and put the values in it | |
831 | wxPyBeginBlockThreads(); | |
832 | PyObject* tuple = PyTuple_New(3); | |
833 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
e811c8ce | 834 | wxT("wxIcon"), True)); |
d14a1e28 RD |
835 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
836 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
837 | wxPyEndBlockThreads(); | |
838 | return tuple; | |
839 | } | |
840 | else | |
841 | RETURN_NONE(); | |
842 | } | |
843 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
844 | wxString str; | |
845 | if (self->GetDescription(&str)) | |
846 | return wx2PyString(str); | |
847 | else | |
848 | RETURN_NONE(); | |
849 | } | |
850 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
851 | wxString str; | |
852 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
853 | return wx2PyString(str); | |
854 | else | |
855 | RETURN_NONE(); | |
856 | } | |
857 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
858 | wxString str; | |
859 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
860 | return wx2PyString(str); | |
861 | else | |
862 | RETURN_NONE(); | |
863 | } | |
864 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
865 | wxArrayString verbs; | |
866 | wxArrayString commands; | |
867 | if (self->GetAllCommands(&verbs, &commands, | |
868 | wxFileType::MessageParameters(filename, mimetype))) { | |
869 | wxPyBeginBlockThreads(); | |
870 | PyObject* tuple = PyTuple_New(2); | |
871 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
872 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
873 | wxPyEndBlockThreads(); | |
874 | return tuple; | |
875 | } | |
876 | else | |
877 | RETURN_NONE(); | |
878 | } | |
879 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
880 | return wxFileType::ExpandCommand(command, | |
881 | wxFileType::MessageParameters(filename, mimetype)); | |
882 | } | |
883 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
884 | wxArrayString arr; | |
885 | self->EnumAllFileTypes(arr); | |
886 | return wxArrayString2PyList_helper(arr); | |
887 | } | |
888 | ||
889 | #include <wx/artprov.h> | |
890 | ||
891 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
892 | static const wxString wxPyART_MENU(wxART_MENU); | |
893 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
894 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
895 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
896 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
897 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
898 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
899 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
900 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
901 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
902 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
903 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
904 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
905 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
906 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
907 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
908 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
909 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
910 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
911 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
912 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
913 | static const wxString wxPyART_HELP(wxART_HELP); | |
914 | static const wxString wxPyART_TIP(wxART_TIP); | |
915 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
916 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
917 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
918 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
919 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
920 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
921 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
922 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
923 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
924 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
925 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
926 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
927 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
928 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
929 | // Python aware wxArtProvider | |
930 | class wxPyArtProvider : public wxArtProvider { | |
931 | public: | |
932 | ||
933 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
934 | const wxArtClient& client, | |
935 | const wxSize& size) { | |
936 | wxBitmap rval = wxNullBitmap; | |
937 | wxPyBeginBlockThreads(); | |
938 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
939 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
940 | PyObject* ro; | |
941 | wxBitmap* ptr; | |
942 | PyObject* s1, *s2; | |
943 | s1 = wx2PyString(id); | |
944 | s2 = wx2PyString(client); | |
945 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
946 | Py_DECREF(so); | |
947 | Py_DECREF(s1); | |
948 | Py_DECREF(s2); | |
949 | if (ro) { | |
950 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
951 | rval = *ptr; | |
952 | Py_DECREF(ro); | |
953 | } | |
954 | } | |
955 | wxPyEndBlockThreads(); | |
956 | return rval; | |
957 | } | |
958 | ||
959 | PYPRIVATE; | |
960 | }; | |
961 | ||
1e0c8722 | 962 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
963 | |
964 | ||
965 | ||
966 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
967 | PyObject* ret = PyTuple_New(3); | |
968 | if (ret) { | |
969 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
970 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
971 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
972 | } | |
973 | return ret; | |
974 | } | |
975 | ||
976 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
977 | bool cont; | |
978 | long index = 0; | |
979 | wxString value; | |
980 | ||
981 | cont = self->GetFirstGroup(value, index); | |
982 | return __EnumerationHelper(cont, value, index); | |
983 | } | |
984 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
985 | bool cont; | |
986 | wxString value; | |
987 | ||
988 | cont = self->GetNextGroup(value, index); | |
989 | return __EnumerationHelper(cont, value, index); | |
990 | } | |
991 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
992 | bool cont; | |
993 | long index = 0; | |
994 | wxString value; | |
995 | ||
996 | cont = self->GetFirstEntry(value, index); | |
997 | return __EnumerationHelper(cont, value, index); | |
998 | } | |
999 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1000 | bool cont; | |
1001 | wxString value; | |
1002 | ||
1003 | cont = self->GetNextEntry(value, index); | |
1004 | return __EnumerationHelper(cont, value, index); | |
1005 | } | |
1006 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1007 | long rv; | |
1008 | self->Read(key, &rv, defaultVal); | |
1009 | return rv; | |
1010 | } | |
1011 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1012 | double rv; | |
1013 | self->Read(key, &rv, defaultVal); | |
1014 | return rv; | |
1015 | } | |
1016 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1017 | bool rv; | |
1018 | self->Read(key, &rv, defaultVal); | |
1019 | return rv; | |
1020 | } | |
1021 | ||
1022 | #include <wx/datetime.h> | |
1023 | ||
d14a1e28 | 1024 | |
33b885b9 RD |
1025 | static const wxString wxPyDateFormatStr(wxT("%c")); |
1026 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
d14a1e28 RD |
1027 | |
1028 | #define LOCAL_TZ wxDateTime::Local | |
1029 | ||
1030 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1031 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1032 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1033 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1034 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1035 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; } | |
1036 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; } | |
1037 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; } | |
1038 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; } | |
1039 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; } | |
1040 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; } | |
1041 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1042 | const wxChar* rv; | |
1043 | const wxChar* _date = date; | |
1044 | rv = self->ParseRfc822Date(_date); | |
1045 | if (rv == NULL) return -1; | |
1046 | return rv - _date; | |
1047 | } | |
1048 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1049 | const wxChar* rv; | |
1050 | const wxChar* _date = date; | |
1051 | rv = self->ParseFormat(_date, format, dateDef); | |
1052 | if (rv == NULL) return -1; | |
1053 | return rv - _date; | |
1054 | } | |
1055 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1056 | const wxChar* rv; | |
1057 | const wxChar* _datetime = datetime; | |
1058 | rv = self->ParseDateTime(_datetime); | |
1059 | if (rv == NULL) return -1; | |
1060 | return rv - _datetime; | |
1061 | } | |
1062 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1063 | const wxChar* rv; | |
1064 | const wxChar* _date = date; | |
1065 | rv = self->ParseDate(_date); | |
1066 | if (rv == NULL) return -1; | |
1067 | return rv - _date; | |
1068 | } | |
1069 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1070 | const wxChar* rv; | |
1071 | const wxChar* _time = time; | |
1072 | rv = self->ParseTime(_time); | |
1073 | if (rv == NULL) return -1; | |
1074 | return rv - _time; | |
1075 | } | |
1076 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1077 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1078 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1079 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
1080 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; } | |
1081 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; } | |
1082 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; } | |
1083 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; } | |
1084 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; } | |
1085 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; } | |
1086 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
1087 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1088 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1089 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
1090 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; } | |
1091 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const &other){ return *self != other; } | |
1092 | ||
1093 | #include <wx/dataobj.h> | |
1094 | ||
1095 | // Create a new class for wxPython to use | |
1096 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1097 | public: | |
1098 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1099 | : wxDataObjectSimple(format) {} | |
1100 | ||
1101 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1102 | bool GetDataHere(void *buf) const; | |
1103 | bool SetData(size_t len, const void *buf) const; | |
1104 | PYPRIVATE; | |
1105 | }; | |
1106 | ||
1107 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1108 | ||
1109 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1110 | // We need to get the data for this object and write it to buf. I think | |
1111 | // the best way to do this for wxPython is to have the Python method | |
1112 | // return either a string or None and then act appropriately with the | |
1113 | // C++ version. | |
1114 | ||
e811c8ce | 1115 | bool rval = False; |
d14a1e28 RD |
1116 | wxPyBeginBlockThreads(); |
1117 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1118 | PyObject* ro; | |
1119 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1120 | if (ro) { | |
1121 | rval = (ro != Py_None && PyString_Check(ro)); | |
1122 | if (rval) | |
1123 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1124 | Py_DECREF(ro); | |
1125 | } | |
1126 | } | |
1127 | wxPyEndBlockThreads(); | |
1128 | return rval; | |
1129 | } | |
1130 | ||
1131 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1132 | // For this one we simply need to make a string from buf and len | |
1133 | // and send it to the Python method. | |
e811c8ce | 1134 | bool rval = False; |
d14a1e28 RD |
1135 | wxPyBeginBlockThreads(); |
1136 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1137 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1138 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1139 | Py_DECREF(data); | |
1140 | } | |
1141 | wxPyEndBlockThreads(); | |
1142 | return rval; | |
1143 | } | |
1144 | ||
1145 | // Create a new class for wxPython to use | |
1146 | class wxPyTextDataObject : public wxTextDataObject { | |
1147 | public: | |
1148 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1149 | : wxTextDataObject(text) {} | |
1150 | ||
1151 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1152 | DEC_PYCALLBACK_STRING__const(GetText); | |
1153 | DEC_PYCALLBACK__STRING(SetText); | |
1154 | PYPRIVATE; | |
1155 | }; | |
1156 | ||
1157 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1158 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1159 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1160 | ||
1161 | ||
1162 | // Create a new class for wxPython to use | |
1163 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1164 | public: | |
1165 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1166 | : wxBitmapDataObject(bitmap) {} | |
1167 | ||
1168 | wxBitmap GetBitmap() const; | |
1169 | void SetBitmap(const wxBitmap& bitmap); | |
1170 | PYPRIVATE; | |
1171 | }; | |
1172 | ||
1173 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1174 | wxBitmap* rval = &wxNullBitmap; | |
1175 | wxPyBeginBlockThreads(); | |
1176 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1177 | PyObject* ro; | |
1178 | wxBitmap* ptr; | |
1179 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1180 | if (ro) { | |
1181 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1182 | rval = ptr; | |
1183 | Py_DECREF(ro); | |
1184 | } | |
1185 | } | |
1186 | wxPyEndBlockThreads(); | |
1187 | return *rval; | |
1188 | } | |
1189 | ||
1190 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1191 | wxPyBeginBlockThreads(); | |
1192 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
e811c8ce | 1193 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1194 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1195 | Py_DECREF(bo); | |
1196 | } | |
1197 | wxPyEndBlockThreads(); | |
1198 | } | |
1199 | ||
1200 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1201 | if (PyString_Check(data)) { | |
1202 | // for Python we just call SetData here since we always need it to make a copy. | |
1203 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1204 | } | |
1205 | else { | |
1206 | // raise a TypeError if not a string | |
1207 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1208 | } | |
1209 | } | |
1210 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1211 | if (PyString_Check(data)) { | |
1212 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1213 | } | |
1214 | else { | |
1215 | // raise a TypeError if not a string | |
1216 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
e811c8ce | 1217 | return False; |
d14a1e28 RD |
1218 | } |
1219 | } | |
1220 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1221 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1222 | } | |
1223 | ||
1224 | class wxMetafileDataObject : public wxDataObjectSimple | |
1225 | { | |
1226 | public: | |
39f61e25 | 1227 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1228 | }; |
1229 | ||
1230 | ||
d14a1e28 RD |
1231 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1232 | ||
1233 | ||
d14a1e28 RD |
1234 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1235 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1236 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1237 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1238 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1239 | ||
1240 | ||
d14a1e28 RD |
1241 | class wxPyTextDropTarget : public wxTextDropTarget { |
1242 | public: | |
1243 | wxPyTextDropTarget() {} | |
1244 | ||
1245 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1246 | ||
1247 | DEC_PYCALLBACK__(OnLeave); | |
1248 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1249 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1250 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1251 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1252 | ||
1253 | PYPRIVATE; | |
1254 | }; | |
1255 | ||
1256 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1257 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1258 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1259 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1260 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1261 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1262 | ||
1263 | ||
1264 | ||
1265 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1266 | public: | |
1267 | wxPyFileDropTarget() {} | |
1268 | ||
1269 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1270 | ||
1271 | DEC_PYCALLBACK__(OnLeave); | |
1272 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1273 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1274 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1275 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1276 | ||
1277 | PYPRIVATE; | |
1278 | }; | |
1279 | ||
1280 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1281 | const wxArrayString& filenames) { | |
e811c8ce | 1282 | bool rval = False; |
d14a1e28 RD |
1283 | wxPyBeginBlockThreads(); |
1284 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1285 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1286 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1287 | Py_DECREF(list); | |
1288 | } | |
1289 | wxPyEndBlockThreads(); | |
1290 | return rval; | |
1291 | } | |
1292 | ||
1293 | ||
1294 | ||
1295 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1296 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1297 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1298 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1299 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1305 | #ifdef __cplusplus | |
1306 | extern "C" { | |
1307 | #endif | |
1308 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1309 | PyObject *resultobj; | |
1310 | int arg1 ; | |
1311 | wxColour result; | |
1312 | char *kwnames[] = { | |
1313 | (char *) "index", NULL | |
1314 | }; | |
1315 | ||
1316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetColour",kwnames,&arg1)) goto fail; | |
1317 | { | |
1318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1319 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1320 | ||
1321 | wxPyEndAllowThreads(__tstate); | |
1322 | if (PyErr_Occurred()) SWIG_fail; | |
1323 | } | |
1324 | { | |
1325 | wxColour * resultptr; | |
1326 | resultptr = new wxColour((wxColour &) result); | |
1327 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1328 | } | |
1329 | return resultobj; | |
1330 | fail: | |
1331 | return NULL; | |
1332 | } | |
1333 | ||
1334 | ||
1335 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1336 | PyObject *resultobj; | |
1337 | int arg1 ; | |
1338 | wxFont result; | |
1339 | char *kwnames[] = { | |
1340 | (char *) "index", NULL | |
1341 | }; | |
1342 | ||
1343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetFont",kwnames,&arg1)) goto fail; | |
1344 | { | |
1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1346 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1347 | ||
1348 | wxPyEndAllowThreads(__tstate); | |
1349 | if (PyErr_Occurred()) SWIG_fail; | |
1350 | } | |
1351 | { | |
1352 | wxFont * resultptr; | |
1353 | resultptr = new wxFont((wxFont &) result); | |
1354 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
1355 | } | |
1356 | return resultobj; | |
1357 | fail: | |
1358 | return NULL; | |
1359 | } | |
1360 | ||
1361 | ||
1362 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject *resultobj; | |
1364 | int arg1 ; | |
1365 | int result; | |
1366 | char *kwnames[] = { | |
1367 | (char *) "index", NULL | |
1368 | }; | |
1369 | ||
1370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetMetric",kwnames,&arg1)) goto fail; | |
1371 | { | |
1372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1373 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1374 | ||
1375 | wxPyEndAllowThreads(__tstate); | |
1376 | if (PyErr_Occurred()) SWIG_fail; | |
1377 | } | |
1378 | resultobj = PyInt_FromLong((long)result); | |
1379 | return resultobj; | |
1380 | fail: | |
1381 | return NULL; | |
1382 | } | |
1383 | ||
1384 | ||
1385 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1386 | PyObject *resultobj; | |
1387 | int arg1 ; | |
1388 | bool result; | |
1389 | char *kwnames[] = { | |
1390 | (char *) "index", NULL | |
1391 | }; | |
1392 | ||
1393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_HasFeature",kwnames,&arg1)) goto fail; | |
1394 | { | |
1395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1396 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1397 | ||
1398 | wxPyEndAllowThreads(__tstate); | |
1399 | if (PyErr_Occurred()) SWIG_fail; | |
1400 | } | |
1401 | resultobj = PyInt_FromLong((long)result); | |
1402 | return resultobj; | |
1403 | fail: | |
1404 | return NULL; | |
1405 | } | |
1406 | ||
1407 | ||
1408 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1409 | PyObject *resultobj; | |
1410 | int result; | |
1411 | char *kwnames[] = { | |
1412 | NULL | |
1413 | }; | |
1414 | ||
1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1416 | { | |
1417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1418 | result = (int)wxSystemSettings::GetScreenType(); | |
1419 | ||
1420 | wxPyEndAllowThreads(__tstate); | |
1421 | if (PyErr_Occurred()) SWIG_fail; | |
1422 | } | |
1423 | resultobj = PyInt_FromLong((long)result); | |
1424 | return resultobj; | |
1425 | fail: | |
1426 | return NULL; | |
1427 | } | |
1428 | ||
1429 | ||
1430 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1431 | PyObject *resultobj; | |
1432 | int arg1 ; | |
1433 | char *kwnames[] = { | |
1434 | (char *) "screen", NULL | |
1435 | }; | |
1436 | ||
1437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_SetScreenType",kwnames,&arg1)) goto fail; | |
1438 | { | |
1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1440 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1441 | ||
1442 | wxPyEndAllowThreads(__tstate); | |
1443 | if (PyErr_Occurred()) SWIG_fail; | |
1444 | } | |
1445 | Py_INCREF(Py_None); resultobj = Py_None; | |
1446 | return resultobj; | |
1447 | fail: | |
1448 | return NULL; | |
1449 | } | |
1450 | ||
1451 | ||
1452 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1453 | PyObject *obj; | |
1454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1455 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1456 | Py_INCREF(obj); | |
1457 | return Py_BuildValue((char *)""); | |
1458 | } | |
1459 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1460 | PyObject *resultobj; | |
1461 | wxSystemOptions *result; | |
1462 | char *kwnames[] = { | |
1463 | NULL | |
1464 | }; | |
1465 | ||
1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1467 | { | |
1468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1469 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1470 | ||
1471 | wxPyEndAllowThreads(__tstate); | |
1472 | if (PyErr_Occurred()) SWIG_fail; | |
1473 | } | |
1474 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1); | |
1475 | return resultobj; | |
1476 | fail: | |
1477 | return NULL; | |
1478 | } | |
1479 | ||
1480 | ||
1481 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1482 | PyObject *resultobj; | |
1483 | wxString *arg1 = 0 ; | |
1484 | wxString *arg2 = 0 ; | |
e811c8ce RD |
1485 | bool temp1 = False ; |
1486 | bool temp2 = False ; | |
d14a1e28 RD |
1487 | PyObject * obj0 = 0 ; |
1488 | PyObject * obj1 = 0 ; | |
1489 | char *kwnames[] = { | |
1490 | (char *) "name",(char *) "value", NULL | |
1491 | }; | |
1492 | ||
1493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1494 | { | |
1495 | arg1 = wxString_in_helper(obj0); | |
1496 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1497 | temp1 = True; |
d14a1e28 RD |
1498 | } |
1499 | { | |
1500 | arg2 = wxString_in_helper(obj1); | |
1501 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1502 | temp2 = True; |
d14a1e28 RD |
1503 | } |
1504 | { | |
1505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1506 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1507 | ||
1508 | wxPyEndAllowThreads(__tstate); | |
1509 | if (PyErr_Occurred()) SWIG_fail; | |
1510 | } | |
1511 | Py_INCREF(Py_None); resultobj = Py_None; | |
1512 | { | |
1513 | if (temp1) | |
1514 | delete arg1; | |
1515 | } | |
1516 | { | |
1517 | if (temp2) | |
1518 | delete arg2; | |
1519 | } | |
1520 | return resultobj; | |
1521 | fail: | |
1522 | { | |
1523 | if (temp1) | |
1524 | delete arg1; | |
1525 | } | |
1526 | { | |
1527 | if (temp2) | |
1528 | delete arg2; | |
1529 | } | |
1530 | return NULL; | |
1531 | } | |
1532 | ||
1533 | ||
1534 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1535 | PyObject *resultobj; | |
1536 | wxString *arg1 = 0 ; | |
1537 | int arg2 ; | |
e811c8ce | 1538 | bool temp1 = False ; |
d14a1e28 RD |
1539 | PyObject * obj0 = 0 ; |
1540 | char *kwnames[] = { | |
1541 | (char *) "name",(char *) "value", NULL | |
1542 | }; | |
1543 | ||
1544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SystemOptions_SetOptionInt",kwnames,&obj0,&arg2)) goto fail; | |
1545 | { | |
1546 | arg1 = wxString_in_helper(obj0); | |
1547 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1548 | temp1 = True; |
d14a1e28 RD |
1549 | } |
1550 | { | |
1551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1552 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1553 | ||
1554 | wxPyEndAllowThreads(__tstate); | |
1555 | if (PyErr_Occurred()) SWIG_fail; | |
1556 | } | |
1557 | Py_INCREF(Py_None); resultobj = Py_None; | |
1558 | { | |
1559 | if (temp1) | |
1560 | delete arg1; | |
1561 | } | |
1562 | return resultobj; | |
1563 | fail: | |
1564 | { | |
1565 | if (temp1) | |
1566 | delete arg1; | |
1567 | } | |
1568 | return NULL; | |
1569 | } | |
1570 | ||
1571 | ||
1572 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1573 | PyObject *resultobj; | |
1574 | wxString *arg1 = 0 ; | |
1575 | wxString result; | |
e811c8ce | 1576 | bool temp1 = False ; |
d14a1e28 RD |
1577 | PyObject * obj0 = 0 ; |
1578 | char *kwnames[] = { | |
1579 | (char *) "name", NULL | |
1580 | }; | |
1581 | ||
1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1583 | { | |
1584 | arg1 = wxString_in_helper(obj0); | |
1585 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1586 | temp1 = True; |
d14a1e28 RD |
1587 | } |
1588 | { | |
1589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1590 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1591 | ||
1592 | wxPyEndAllowThreads(__tstate); | |
1593 | if (PyErr_Occurred()) SWIG_fail; | |
1594 | } | |
1595 | { | |
1596 | #if wxUSE_UNICODE | |
1597 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1598 | #else | |
1599 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1600 | #endif | |
1601 | } | |
1602 | { | |
1603 | if (temp1) | |
1604 | delete arg1; | |
1605 | } | |
1606 | return resultobj; | |
1607 | fail: | |
1608 | { | |
1609 | if (temp1) | |
1610 | delete arg1; | |
1611 | } | |
1612 | return NULL; | |
1613 | } | |
1614 | ||
1615 | ||
1616 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject *resultobj; | |
1618 | wxString *arg1 = 0 ; | |
1619 | int result; | |
e811c8ce | 1620 | bool temp1 = False ; |
d14a1e28 RD |
1621 | PyObject * obj0 = 0 ; |
1622 | char *kwnames[] = { | |
1623 | (char *) "name", NULL | |
1624 | }; | |
1625 | ||
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1627 | { | |
1628 | arg1 = wxString_in_helper(obj0); | |
1629 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1630 | temp1 = True; |
d14a1e28 RD |
1631 | } |
1632 | { | |
1633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1634 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1635 | ||
1636 | wxPyEndAllowThreads(__tstate); | |
1637 | if (PyErr_Occurred()) SWIG_fail; | |
1638 | } | |
1639 | resultobj = PyInt_FromLong((long)result); | |
1640 | { | |
1641 | if (temp1) | |
1642 | delete arg1; | |
1643 | } | |
1644 | return resultobj; | |
1645 | fail: | |
1646 | { | |
1647 | if (temp1) | |
1648 | delete arg1; | |
1649 | } | |
1650 | return NULL; | |
1651 | } | |
1652 | ||
1653 | ||
1654 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1655 | PyObject *resultobj; | |
1656 | wxString *arg1 = 0 ; | |
1657 | bool result; | |
e811c8ce | 1658 | bool temp1 = False ; |
d14a1e28 RD |
1659 | PyObject * obj0 = 0 ; |
1660 | char *kwnames[] = { | |
1661 | (char *) "name", NULL | |
1662 | }; | |
1663 | ||
1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1665 | { | |
1666 | arg1 = wxString_in_helper(obj0); | |
1667 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1668 | temp1 = True; |
d14a1e28 RD |
1669 | } |
1670 | { | |
1671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1672 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1673 | ||
1674 | wxPyEndAllowThreads(__tstate); | |
1675 | if (PyErr_Occurred()) SWIG_fail; | |
1676 | } | |
1677 | resultobj = PyInt_FromLong((long)result); | |
1678 | { | |
1679 | if (temp1) | |
1680 | delete arg1; | |
1681 | } | |
1682 | return resultobj; | |
1683 | fail: | |
1684 | { | |
1685 | if (temp1) | |
1686 | delete arg1; | |
1687 | } | |
1688 | return NULL; | |
1689 | } | |
1690 | ||
1691 | ||
1692 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1693 | PyObject *obj; | |
1694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1695 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1696 | Py_INCREF(obj); | |
1697 | return Py_BuildValue((char *)""); | |
1698 | } | |
b2dc1044 RD |
1699 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
1700 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1701 | return 1; | |
1702 | } | |
1703 | ||
1704 | ||
1705 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1706 | PyObject *pyobj; | |
1707 | ||
1708 | { | |
1709 | #if wxUSE_UNICODE | |
1710 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1711 | #else | |
1712 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1713 | #endif | |
1714 | } | |
1715 | return pyobj; | |
1716 | } | |
1717 | ||
1718 | ||
1719 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1720 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1721 | return 1; | |
1722 | } | |
1723 | ||
1724 | ||
1725 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1726 | PyObject *pyobj; | |
1727 | ||
1728 | { | |
1729 | #if wxUSE_UNICODE | |
1730 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1731 | #else | |
1732 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1733 | #endif | |
1734 | } | |
1735 | return pyobj; | |
1736 | } | |
1737 | ||
1738 | ||
1739 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1740 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1741 | return 1; | |
1742 | } | |
1743 | ||
1744 | ||
1745 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1746 | PyObject *pyobj; | |
1747 | ||
1748 | { | |
1749 | #if wxUSE_UNICODE | |
1750 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1751 | #else | |
1752 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1753 | #endif | |
1754 | } | |
1755 | return pyobj; | |
1756 | } | |
1757 | ||
1758 | ||
d14a1e28 RD |
1759 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
1760 | PyObject *resultobj; | |
1761 | long result; | |
1762 | char *kwnames[] = { | |
1763 | NULL | |
1764 | }; | |
1765 | ||
1766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1767 | { | |
1768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1769 | result = (long)wxNewId(); | |
1770 | ||
1771 | wxPyEndAllowThreads(__tstate); | |
1772 | if (PyErr_Occurred()) SWIG_fail; | |
1773 | } | |
1774 | resultobj = PyInt_FromLong((long)result); | |
1775 | return resultobj; | |
1776 | fail: | |
1777 | return NULL; | |
1778 | } | |
1779 | ||
1780 | ||
1781 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1782 | PyObject *resultobj; | |
1783 | long arg1 ; | |
1784 | char *kwnames[] = { | |
1785 | (char *) "id", NULL | |
1786 | }; | |
1787 | ||
1788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:RegisterId",kwnames,&arg1)) goto fail; | |
1789 | { | |
1790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1791 | wxRegisterId(arg1); | |
1792 | ||
1793 | wxPyEndAllowThreads(__tstate); | |
1794 | if (PyErr_Occurred()) SWIG_fail; | |
1795 | } | |
1796 | Py_INCREF(Py_None); resultobj = Py_None; | |
1797 | return resultobj; | |
1798 | fail: | |
1799 | return NULL; | |
1800 | } | |
1801 | ||
1802 | ||
1803 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1804 | PyObject *resultobj; | |
1805 | long result; | |
1806 | char *kwnames[] = { | |
1807 | NULL | |
1808 | }; | |
1809 | ||
1810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1811 | { | |
1812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1813 | result = (long)wxGetCurrentId(); | |
1814 | ||
1815 | wxPyEndAllowThreads(__tstate); | |
1816 | if (PyErr_Occurred()) SWIG_fail; | |
1817 | } | |
1818 | resultobj = PyInt_FromLong((long)result); | |
1819 | return resultobj; | |
1820 | fail: | |
1821 | return NULL; | |
1822 | } | |
1823 | ||
1824 | ||
1825 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1826 | PyObject *resultobj; | |
1827 | char *kwnames[] = { | |
1828 | NULL | |
1829 | }; | |
1830 | ||
1831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1832 | { | |
1833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1834 | wxBell(); | |
1835 | ||
1836 | wxPyEndAllowThreads(__tstate); | |
1837 | if (PyErr_Occurred()) SWIG_fail; | |
1838 | } | |
1839 | Py_INCREF(Py_None); resultobj = Py_None; | |
1840 | return resultobj; | |
1841 | fail: | |
1842 | return NULL; | |
1843 | } | |
1844 | ||
1845 | ||
1846 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1847 | PyObject *resultobj; | |
1848 | char *kwnames[] = { | |
1849 | NULL | |
1850 | }; | |
1851 | ||
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1853 | { | |
1854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1855 | wxEndBusyCursor(); | |
1856 | ||
1857 | wxPyEndAllowThreads(__tstate); | |
1858 | if (PyErr_Occurred()) SWIG_fail; | |
1859 | } | |
1860 | Py_INCREF(Py_None); resultobj = Py_None; | |
1861 | return resultobj; | |
1862 | fail: | |
1863 | return NULL; | |
1864 | } | |
1865 | ||
1866 | ||
1867 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject *resultobj; | |
e811c8ce | 1869 | bool arg1 = (bool) True ; |
d14a1e28 RD |
1870 | long result; |
1871 | PyObject * obj0 = 0 ; | |
1872 | char *kwnames[] = { | |
1873 | (char *) "resetTimer", NULL | |
1874 | }; | |
1875 | ||
1876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
1877 | if (obj0) { | |
a41e16b6 RD |
1878 | { |
1879 | arg1 = (bool) SPyObj_AsBool(obj0); | |
1880 | if (PyErr_Occurred()) SWIG_fail; | |
1881 | } | |
d14a1e28 RD |
1882 | } |
1883 | { | |
1884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1885 | result = (long)wxGetElapsedTime(arg1); | |
1886 | ||
1887 | wxPyEndAllowThreads(__tstate); | |
1888 | if (PyErr_Occurred()) SWIG_fail; | |
1889 | } | |
1890 | resultobj = PyInt_FromLong((long)result); | |
1891 | return resultobj; | |
1892 | fail: | |
1893 | return NULL; | |
1894 | } | |
1895 | ||
1896 | ||
1897 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1898 | PyObject *resultobj; | |
1899 | int *arg1 = (int *) 0 ; | |
1900 | int *arg2 = (int *) 0 ; | |
1901 | int temp1 ; | |
1902 | int temp2 ; | |
1903 | char *kwnames[] = { | |
1904 | NULL | |
1905 | }; | |
1906 | ||
1907 | arg1 = &temp1; | |
1908 | arg2 = &temp2; | |
1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
1910 | { | |
1911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1912 | wxGetMousePosition(arg1,arg2); | |
1913 | ||
1914 | wxPyEndAllowThreads(__tstate); | |
1915 | if (PyErr_Occurred()) SWIG_fail; | |
1916 | } | |
1917 | Py_INCREF(Py_None); resultobj = Py_None; | |
1918 | { | |
1919 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1920 | resultobj = t_output_helper(resultobj,o); | |
1921 | } | |
1922 | { | |
1923 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1924 | resultobj = t_output_helper(resultobj,o); | |
1925 | } | |
1926 | return resultobj; | |
1927 | fail: | |
1928 | return NULL; | |
1929 | } | |
1930 | ||
1931 | ||
1932 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1933 | PyObject *resultobj; | |
1934 | bool result; | |
1935 | char *kwnames[] = { | |
1936 | NULL | |
1937 | }; | |
1938 | ||
1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
1940 | { | |
1941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1942 | result = (bool)wxIsBusy(); | |
1943 | ||
1944 | wxPyEndAllowThreads(__tstate); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | } | |
1947 | resultobj = PyInt_FromLong((long)result); | |
1948 | return resultobj; | |
1949 | fail: | |
1950 | return NULL; | |
1951 | } | |
1952 | ||
1953 | ||
1954 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1955 | PyObject *resultobj; | |
1956 | wxString result; | |
1957 | char *kwnames[] = { | |
1958 | NULL | |
1959 | }; | |
1960 | ||
1961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
1962 | { | |
1963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1964 | result = wxNow(); | |
1965 | ||
1966 | wxPyEndAllowThreads(__tstate); | |
1967 | if (PyErr_Occurred()) SWIG_fail; | |
1968 | } | |
1969 | { | |
1970 | #if wxUSE_UNICODE | |
1971 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1972 | #else | |
1973 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1974 | #endif | |
1975 | } | |
1976 | return resultobj; | |
1977 | fail: | |
1978 | return NULL; | |
1979 | } | |
1980 | ||
1981 | ||
1982 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1983 | PyObject *resultobj; | |
1984 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
1985 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
1986 | bool result; | |
e811c8ce | 1987 | bool temp1 = False ; |
d14a1e28 RD |
1988 | PyObject * obj0 = 0 ; |
1989 | char *kwnames[] = { | |
1990 | (char *) "command", NULL | |
1991 | }; | |
1992 | ||
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
1994 | if (obj0) { | |
1995 | { | |
1996 | arg1 = wxString_in_helper(obj0); | |
1997 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1998 | temp1 = True; |
d14a1e28 RD |
1999 | } |
2000 | } | |
2001 | { | |
2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2003 | result = (bool)wxShell((wxString const &)*arg1); | |
2004 | ||
2005 | wxPyEndAllowThreads(__tstate); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | } | |
2008 | resultobj = PyInt_FromLong((long)result); | |
2009 | { | |
2010 | if (temp1) | |
2011 | delete arg1; | |
2012 | } | |
2013 | return resultobj; | |
2014 | fail: | |
2015 | { | |
2016 | if (temp1) | |
2017 | delete arg1; | |
2018 | } | |
2019 | return NULL; | |
2020 | } | |
2021 | ||
2022 | ||
2023 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2024 | PyObject *resultobj; | |
2025 | char *kwnames[] = { | |
2026 | NULL | |
2027 | }; | |
2028 | ||
2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2030 | { | |
2031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2032 | wxStartTimer(); | |
2033 | ||
2034 | wxPyEndAllowThreads(__tstate); | |
2035 | if (PyErr_Occurred()) SWIG_fail; | |
2036 | } | |
2037 | Py_INCREF(Py_None); resultobj = Py_None; | |
2038 | return resultobj; | |
2039 | fail: | |
2040 | return NULL; | |
2041 | } | |
2042 | ||
2043 | ||
2044 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2045 | PyObject *resultobj; | |
2046 | int *arg1 = (int *) 0 ; | |
2047 | int *arg2 = (int *) 0 ; | |
2048 | int result; | |
2049 | int temp1 ; | |
2050 | int temp2 ; | |
2051 | char *kwnames[] = { | |
2052 | NULL | |
2053 | }; | |
2054 | ||
2055 | arg1 = &temp1; | |
2056 | arg2 = &temp2; | |
2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2058 | { | |
2059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2060 | result = (int)wxGetOsVersion(arg1,arg2); | |
2061 | ||
2062 | wxPyEndAllowThreads(__tstate); | |
2063 | if (PyErr_Occurred()) SWIG_fail; | |
2064 | } | |
2065 | resultobj = PyInt_FromLong((long)result); | |
2066 | { | |
2067 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2068 | resultobj = t_output_helper(resultobj,o); | |
2069 | } | |
2070 | { | |
2071 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2072 | resultobj = t_output_helper(resultobj,o); | |
2073 | } | |
2074 | return resultobj; | |
2075 | fail: | |
2076 | return NULL; | |
2077 | } | |
2078 | ||
2079 | ||
2080 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2081 | PyObject *resultobj; | |
2082 | wxString result; | |
2083 | char *kwnames[] = { | |
2084 | NULL | |
2085 | }; | |
2086 | ||
2087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2088 | { | |
2089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2090 | result = wxGetOsDescription(); | |
2091 | ||
2092 | wxPyEndAllowThreads(__tstate); | |
2093 | if (PyErr_Occurred()) SWIG_fail; | |
2094 | } | |
2095 | { | |
2096 | #if wxUSE_UNICODE | |
2097 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2098 | #else | |
2099 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2100 | #endif | |
2101 | } | |
2102 | return resultobj; | |
2103 | fail: | |
2104 | return NULL; | |
2105 | } | |
2106 | ||
2107 | ||
2108 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2109 | PyObject *resultobj; | |
2110 | long result; | |
2111 | char *kwnames[] = { | |
2112 | NULL | |
2113 | }; | |
2114 | ||
2115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2116 | { | |
2117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2118 | result = (long)wxGetFreeMemory(); | |
2119 | ||
2120 | wxPyEndAllowThreads(__tstate); | |
2121 | if (PyErr_Occurred()) SWIG_fail; | |
2122 | } | |
2123 | resultobj = PyInt_FromLong((long)result); | |
2124 | return resultobj; | |
2125 | fail: | |
2126 | return NULL; | |
2127 | } | |
2128 | ||
2129 | ||
2130 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2131 | PyObject *resultobj; | |
2132 | int arg1 ; | |
2133 | bool result; | |
2134 | char *kwnames[] = { | |
2135 | (char *) "wFlags", NULL | |
2136 | }; | |
2137 | ||
2138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Shutdown",kwnames,&arg1)) goto fail; | |
2139 | { | |
2140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2141 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2142 | ||
2143 | wxPyEndAllowThreads(__tstate); | |
2144 | if (PyErr_Occurred()) SWIG_fail; | |
2145 | } | |
2146 | resultobj = PyInt_FromLong((long)result); | |
2147 | return resultobj; | |
2148 | fail: | |
2149 | return NULL; | |
2150 | } | |
2151 | ||
2152 | ||
2153 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2154 | PyObject *resultobj; | |
2155 | int arg1 ; | |
2156 | char *kwnames[] = { | |
2157 | (char *) "secs", NULL | |
2158 | }; | |
2159 | ||
2160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Sleep",kwnames,&arg1)) goto fail; | |
2161 | { | |
2162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2163 | wxSleep(arg1); | |
2164 | ||
2165 | wxPyEndAllowThreads(__tstate); | |
2166 | if (PyErr_Occurred()) SWIG_fail; | |
2167 | } | |
2168 | Py_INCREF(Py_None); resultobj = Py_None; | |
2169 | return resultobj; | |
2170 | fail: | |
2171 | return NULL; | |
2172 | } | |
2173 | ||
2174 | ||
2175 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2176 | PyObject *resultobj; | |
2177 | unsigned long arg1 ; | |
2178 | PyObject * obj0 = 0 ; | |
2179 | char *kwnames[] = { | |
2180 | (char *) "milliseconds", NULL | |
2181 | }; | |
2182 | ||
2183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
a41e16b6 RD |
2184 | { |
2185 | arg1 = (unsigned long) SPyObj_AsUnsignedLong(obj0); | |
2186 | if (PyErr_Occurred()) SWIG_fail; | |
2187 | } | |
d14a1e28 RD |
2188 | { |
2189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2190 | wxUsleep(arg1); | |
2191 | ||
2192 | wxPyEndAllowThreads(__tstate); | |
2193 | if (PyErr_Occurred()) SWIG_fail; | |
2194 | } | |
2195 | Py_INCREF(Py_None); resultobj = Py_None; | |
2196 | return resultobj; | |
2197 | fail: | |
2198 | return NULL; | |
2199 | } | |
2200 | ||
2201 | ||
2202 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2203 | PyObject *resultobj; | |
2204 | bool arg1 ; | |
2205 | PyObject * obj0 = 0 ; | |
2206 | char *kwnames[] = { | |
2207 | (char *) "enable", NULL | |
2208 | }; | |
2209 | ||
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
a41e16b6 RD |
2211 | { |
2212 | arg1 = (bool) SPyObj_AsBool(obj0); | |
2213 | if (PyErr_Occurred()) SWIG_fail; | |
2214 | } | |
d14a1e28 RD |
2215 | { |
2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2217 | wxEnableTopLevelWindows(arg1); | |
2218 | ||
2219 | wxPyEndAllowThreads(__tstate); | |
2220 | if (PyErr_Occurred()) SWIG_fail; | |
2221 | } | |
2222 | Py_INCREF(Py_None); resultobj = Py_None; | |
2223 | return resultobj; | |
2224 | fail: | |
2225 | return NULL; | |
2226 | } | |
2227 | ||
2228 | ||
2229 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject *resultobj; | |
2231 | wxString *arg1 = 0 ; | |
2232 | wxString result; | |
e811c8ce | 2233 | bool temp1 = False ; |
d14a1e28 RD |
2234 | PyObject * obj0 = 0 ; |
2235 | char *kwnames[] = { | |
2236 | (char *) "in", NULL | |
2237 | }; | |
2238 | ||
2239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2240 | { | |
2241 | arg1 = wxString_in_helper(obj0); | |
2242 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2243 | temp1 = True; |
d14a1e28 RD |
2244 | } |
2245 | { | |
2246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2247 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2248 | ||
2249 | wxPyEndAllowThreads(__tstate); | |
2250 | if (PyErr_Occurred()) SWIG_fail; | |
2251 | } | |
2252 | { | |
2253 | #if wxUSE_UNICODE | |
2254 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2255 | #else | |
2256 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2257 | #endif | |
2258 | } | |
2259 | { | |
2260 | if (temp1) | |
2261 | delete arg1; | |
2262 | } | |
2263 | return resultobj; | |
2264 | fail: | |
2265 | { | |
2266 | if (temp1) | |
2267 | delete arg1; | |
2268 | } | |
2269 | return NULL; | |
2270 | } | |
2271 | ||
2272 | ||
2273 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2274 | PyObject *resultobj; | |
2275 | wxString result; | |
2276 | char *kwnames[] = { | |
2277 | NULL | |
2278 | }; | |
2279 | ||
2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2281 | { | |
2282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2283 | result = wxGetEmailAddress(); | |
2284 | ||
2285 | wxPyEndAllowThreads(__tstate); | |
2286 | if (PyErr_Occurred()) SWIG_fail; | |
2287 | } | |
2288 | { | |
2289 | #if wxUSE_UNICODE | |
2290 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2291 | #else | |
2292 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2293 | #endif | |
2294 | } | |
2295 | return resultobj; | |
2296 | fail: | |
2297 | return NULL; | |
2298 | } | |
2299 | ||
2300 | ||
2301 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2302 | PyObject *resultobj; | |
2303 | wxString result; | |
2304 | char *kwnames[] = { | |
2305 | NULL | |
2306 | }; | |
2307 | ||
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2309 | { | |
2310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2311 | result = wxGetHostName(); | |
2312 | ||
2313 | wxPyEndAllowThreads(__tstate); | |
2314 | if (PyErr_Occurred()) SWIG_fail; | |
2315 | } | |
2316 | { | |
2317 | #if wxUSE_UNICODE | |
2318 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2319 | #else | |
2320 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2321 | #endif | |
2322 | } | |
2323 | return resultobj; | |
2324 | fail: | |
2325 | return NULL; | |
2326 | } | |
2327 | ||
2328 | ||
2329 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2330 | PyObject *resultobj; | |
2331 | wxString result; | |
2332 | char *kwnames[] = { | |
2333 | NULL | |
2334 | }; | |
2335 | ||
2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2337 | { | |
2338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2339 | result = wxGetFullHostName(); | |
2340 | ||
2341 | wxPyEndAllowThreads(__tstate); | |
2342 | if (PyErr_Occurred()) SWIG_fail; | |
2343 | } | |
2344 | { | |
2345 | #if wxUSE_UNICODE | |
2346 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2347 | #else | |
2348 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2349 | #endif | |
2350 | } | |
2351 | return resultobj; | |
2352 | fail: | |
2353 | return NULL; | |
2354 | } | |
2355 | ||
2356 | ||
2357 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2358 | PyObject *resultobj; | |
2359 | wxString result; | |
2360 | char *kwnames[] = { | |
2361 | NULL | |
2362 | }; | |
2363 | ||
2364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2365 | { | |
2366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2367 | result = wxGetUserId(); | |
2368 | ||
2369 | wxPyEndAllowThreads(__tstate); | |
2370 | if (PyErr_Occurred()) SWIG_fail; | |
2371 | } | |
2372 | { | |
2373 | #if wxUSE_UNICODE | |
2374 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2375 | #else | |
2376 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2377 | #endif | |
2378 | } | |
2379 | return resultobj; | |
2380 | fail: | |
2381 | return NULL; | |
2382 | } | |
2383 | ||
2384 | ||
2385 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2386 | PyObject *resultobj; | |
2387 | wxString result; | |
2388 | char *kwnames[] = { | |
2389 | NULL | |
2390 | }; | |
2391 | ||
2392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2393 | { | |
2394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2395 | result = wxGetUserName(); | |
2396 | ||
2397 | wxPyEndAllowThreads(__tstate); | |
2398 | if (PyErr_Occurred()) SWIG_fail; | |
2399 | } | |
2400 | { | |
2401 | #if wxUSE_UNICODE | |
2402 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2403 | #else | |
2404 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2405 | #endif | |
2406 | } | |
2407 | return resultobj; | |
2408 | fail: | |
2409 | return NULL; | |
2410 | } | |
2411 | ||
2412 | ||
2413 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2414 | PyObject *resultobj; | |
2415 | wxString result; | |
2416 | char *kwnames[] = { | |
2417 | NULL | |
2418 | }; | |
2419 | ||
2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2421 | { | |
2422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2423 | result = wxGetHomeDir(); | |
2424 | ||
2425 | wxPyEndAllowThreads(__tstate); | |
2426 | if (PyErr_Occurred()) SWIG_fail; | |
2427 | } | |
2428 | { | |
2429 | #if wxUSE_UNICODE | |
2430 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2431 | #else | |
2432 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2433 | #endif | |
2434 | } | |
2435 | return resultobj; | |
2436 | fail: | |
2437 | return NULL; | |
2438 | } | |
2439 | ||
2440 | ||
2441 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2442 | PyObject *resultobj; | |
2443 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2444 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2445 | wxString result; | |
e811c8ce | 2446 | bool temp1 = False ; |
d14a1e28 RD |
2447 | PyObject * obj0 = 0 ; |
2448 | char *kwnames[] = { | |
2449 | (char *) "user", NULL | |
2450 | }; | |
2451 | ||
2452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2453 | if (obj0) { | |
2454 | { | |
2455 | arg1 = wxString_in_helper(obj0); | |
2456 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2457 | temp1 = True; |
d14a1e28 RD |
2458 | } |
2459 | } | |
2460 | { | |
2461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2462 | result = wxGetUserHome((wxString const &)*arg1); | |
2463 | ||
2464 | wxPyEndAllowThreads(__tstate); | |
2465 | if (PyErr_Occurred()) SWIG_fail; | |
2466 | } | |
2467 | { | |
2468 | #if wxUSE_UNICODE | |
2469 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2470 | #else | |
2471 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2472 | #endif | |
2473 | } | |
2474 | { | |
2475 | if (temp1) | |
2476 | delete arg1; | |
2477 | } | |
2478 | return resultobj; | |
2479 | fail: | |
2480 | { | |
2481 | if (temp1) | |
2482 | delete arg1; | |
2483 | } | |
2484 | return NULL; | |
2485 | } | |
2486 | ||
2487 | ||
2488 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2489 | PyObject *resultobj; | |
2490 | unsigned long result; | |
2491 | char *kwnames[] = { | |
2492 | NULL | |
2493 | }; | |
2494 | ||
2495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2496 | { | |
2497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2498 | result = (unsigned long)wxGetProcessId(); | |
2499 | ||
2500 | wxPyEndAllowThreads(__tstate); | |
2501 | if (PyErr_Occurred()) SWIG_fail; | |
2502 | } | |
a41e16b6 | 2503 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2504 | return resultobj; |
2505 | fail: | |
2506 | return NULL; | |
2507 | } | |
2508 | ||
2509 | ||
2510 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2511 | PyObject *resultobj; | |
2512 | char *kwnames[] = { | |
2513 | NULL | |
2514 | }; | |
2515 | ||
2516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2517 | { | |
2518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2519 | wxTrap(); | |
2520 | ||
2521 | wxPyEndAllowThreads(__tstate); | |
2522 | if (PyErr_Occurred()) SWIG_fail; | |
2523 | } | |
2524 | Py_INCREF(Py_None); resultobj = Py_None; | |
2525 | return resultobj; | |
2526 | fail: | |
2527 | return NULL; | |
2528 | } | |
2529 | ||
2530 | ||
2531 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2532 | PyObject *resultobj; | |
2533 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2534 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2535 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2536 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2537 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2538 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2539 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2540 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2541 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2542 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2543 | int arg6 = (int) 0 ; | |
2544 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2545 | int arg8 = (int) -1 ; | |
2546 | int arg9 = (int) -1 ; | |
2547 | wxString result; | |
e811c8ce RD |
2548 | bool temp1 = False ; |
2549 | bool temp2 = False ; | |
2550 | bool temp3 = False ; | |
2551 | bool temp4 = False ; | |
2552 | bool temp5 = False ; | |
d14a1e28 RD |
2553 | PyObject * obj0 = 0 ; |
2554 | PyObject * obj1 = 0 ; | |
2555 | PyObject * obj2 = 0 ; | |
2556 | PyObject * obj3 = 0 ; | |
2557 | PyObject * obj4 = 0 ; | |
2558 | PyObject * obj6 = 0 ; | |
2559 | char *kwnames[] = { | |
2560 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2561 | }; | |
2562 | ||
2563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOiOii:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&arg9)) goto fail; | |
2564 | if (obj0) { | |
2565 | { | |
2566 | arg1 = wxString_in_helper(obj0); | |
2567 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2568 | temp1 = True; |
d14a1e28 RD |
2569 | } |
2570 | } | |
2571 | if (obj1) { | |
2572 | { | |
2573 | arg2 = wxString_in_helper(obj1); | |
2574 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2575 | temp2 = True; |
d14a1e28 RD |
2576 | } |
2577 | } | |
2578 | if (obj2) { | |
2579 | { | |
2580 | arg3 = wxString_in_helper(obj2); | |
2581 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2582 | temp3 = True; |
d14a1e28 RD |
2583 | } |
2584 | } | |
2585 | if (obj3) { | |
2586 | { | |
2587 | arg4 = wxString_in_helper(obj3); | |
2588 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2589 | temp4 = True; |
d14a1e28 RD |
2590 | } |
2591 | } | |
2592 | if (obj4) { | |
2593 | { | |
2594 | arg5 = wxString_in_helper(obj4); | |
2595 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 2596 | temp5 = True; |
d14a1e28 RD |
2597 | } |
2598 | } | |
2599 | if (obj6) { | |
2600 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2601 | } | |
2602 | { | |
2603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2604 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2605 | ||
2606 | wxPyEndAllowThreads(__tstate); | |
2607 | if (PyErr_Occurred()) SWIG_fail; | |
2608 | } | |
2609 | { | |
2610 | #if wxUSE_UNICODE | |
2611 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2612 | #else | |
2613 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2614 | #endif | |
2615 | } | |
2616 | { | |
2617 | if (temp1) | |
2618 | delete arg1; | |
2619 | } | |
2620 | { | |
2621 | if (temp2) | |
2622 | delete arg2; | |
2623 | } | |
2624 | { | |
2625 | if (temp3) | |
2626 | delete arg3; | |
2627 | } | |
2628 | { | |
2629 | if (temp4) | |
2630 | delete arg4; | |
2631 | } | |
2632 | { | |
2633 | if (temp5) | |
2634 | delete arg5; | |
2635 | } | |
2636 | return resultobj; | |
2637 | fail: | |
2638 | { | |
2639 | if (temp1) | |
2640 | delete arg1; | |
2641 | } | |
2642 | { | |
2643 | if (temp2) | |
2644 | delete arg2; | |
2645 | } | |
2646 | { | |
2647 | if (temp3) | |
2648 | delete arg3; | |
2649 | } | |
2650 | { | |
2651 | if (temp4) | |
2652 | delete arg4; | |
2653 | } | |
2654 | { | |
2655 | if (temp5) | |
2656 | delete arg5; | |
2657 | } | |
2658 | return NULL; | |
2659 | } | |
2660 | ||
2661 | ||
2662 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2663 | PyObject *resultobj; | |
2664 | wxString *arg1 = 0 ; | |
2665 | wxString *arg2 = 0 ; | |
2666 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2667 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2668 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2669 | wxString result; | |
e811c8ce RD |
2670 | bool temp1 = False ; |
2671 | bool temp2 = False ; | |
2672 | bool temp3 = False ; | |
d14a1e28 RD |
2673 | PyObject * obj0 = 0 ; |
2674 | PyObject * obj1 = 0 ; | |
2675 | PyObject * obj2 = 0 ; | |
2676 | PyObject * obj3 = 0 ; | |
2677 | char *kwnames[] = { | |
2678 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2679 | }; | |
2680 | ||
2681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2682 | { | |
2683 | arg1 = wxString_in_helper(obj0); | |
2684 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2685 | temp1 = True; |
d14a1e28 RD |
2686 | } |
2687 | { | |
2688 | arg2 = wxString_in_helper(obj1); | |
2689 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2690 | temp2 = True; |
d14a1e28 RD |
2691 | } |
2692 | if (obj2) { | |
2693 | { | |
2694 | arg3 = wxString_in_helper(obj2); | |
2695 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2696 | temp3 = True; |
d14a1e28 RD |
2697 | } |
2698 | } | |
2699 | if (obj3) { | |
2700 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2701 | } | |
2702 | { | |
2703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2704 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2705 | ||
2706 | wxPyEndAllowThreads(__tstate); | |
2707 | if (PyErr_Occurred()) SWIG_fail; | |
2708 | } | |
2709 | { | |
2710 | #if wxUSE_UNICODE | |
2711 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2712 | #else | |
2713 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2714 | #endif | |
2715 | } | |
2716 | { | |
2717 | if (temp1) | |
2718 | delete arg1; | |
2719 | } | |
2720 | { | |
2721 | if (temp2) | |
2722 | delete arg2; | |
2723 | } | |
2724 | { | |
2725 | if (temp3) | |
2726 | delete arg3; | |
2727 | } | |
2728 | return resultobj; | |
2729 | fail: | |
2730 | { | |
2731 | if (temp1) | |
2732 | delete arg1; | |
2733 | } | |
2734 | { | |
2735 | if (temp2) | |
2736 | delete arg2; | |
2737 | } | |
2738 | { | |
2739 | if (temp3) | |
2740 | delete arg3; | |
2741 | } | |
2742 | return NULL; | |
2743 | } | |
2744 | ||
2745 | ||
2746 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2747 | PyObject *resultobj; | |
2748 | wxString *arg1 = 0 ; | |
2749 | wxString *arg2 = 0 ; | |
2750 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2751 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2752 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2753 | wxString result; | |
e811c8ce RD |
2754 | bool temp1 = False ; |
2755 | bool temp2 = False ; | |
2756 | bool temp3 = False ; | |
d14a1e28 RD |
2757 | PyObject * obj0 = 0 ; |
2758 | PyObject * obj1 = 0 ; | |
2759 | PyObject * obj2 = 0 ; | |
2760 | PyObject * obj3 = 0 ; | |
2761 | char *kwnames[] = { | |
2762 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2763 | }; | |
2764 | ||
2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2766 | { | |
2767 | arg1 = wxString_in_helper(obj0); | |
2768 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2769 | temp1 = True; |
d14a1e28 RD |
2770 | } |
2771 | { | |
2772 | arg2 = wxString_in_helper(obj1); | |
2773 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2774 | temp2 = True; |
d14a1e28 RD |
2775 | } |
2776 | if (obj2) { | |
2777 | { | |
2778 | arg3 = wxString_in_helper(obj2); | |
2779 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2780 | temp3 = True; |
d14a1e28 RD |
2781 | } |
2782 | } | |
2783 | if (obj3) { | |
2784 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2785 | } | |
2786 | { | |
2787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2788 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2789 | ||
2790 | wxPyEndAllowThreads(__tstate); | |
2791 | if (PyErr_Occurred()) SWIG_fail; | |
2792 | } | |
2793 | { | |
2794 | #if wxUSE_UNICODE | |
2795 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2796 | #else | |
2797 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2798 | #endif | |
2799 | } | |
2800 | { | |
2801 | if (temp1) | |
2802 | delete arg1; | |
2803 | } | |
2804 | { | |
2805 | if (temp2) | |
2806 | delete arg2; | |
2807 | } | |
2808 | { | |
2809 | if (temp3) | |
2810 | delete arg3; | |
2811 | } | |
2812 | return resultobj; | |
2813 | fail: | |
2814 | { | |
2815 | if (temp1) | |
2816 | delete arg1; | |
2817 | } | |
2818 | { | |
2819 | if (temp2) | |
2820 | delete arg2; | |
2821 | } | |
2822 | { | |
2823 | if (temp3) | |
2824 | delete arg3; | |
2825 | } | |
2826 | return NULL; | |
2827 | } | |
2828 | ||
2829 | ||
2830 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2831 | PyObject *resultobj; | |
2832 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2833 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2834 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2835 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2836 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
2837 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2838 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2839 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2840 | wxString result; | |
e811c8ce RD |
2841 | bool temp1 = False ; |
2842 | bool temp2 = False ; | |
d14a1e28 RD |
2843 | wxPoint temp4 ; |
2844 | PyObject * obj0 = 0 ; | |
2845 | PyObject * obj1 = 0 ; | |
2846 | PyObject * obj3 = 0 ; | |
2847 | PyObject * obj4 = 0 ; | |
2848 | char *kwnames[] = { | |
2849 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
2850 | }; | |
2851 | ||
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOlOO:DirSelector",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
2853 | if (obj0) { | |
2854 | { | |
2855 | arg1 = wxString_in_helper(obj0); | |
2856 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2857 | temp1 = True; |
d14a1e28 RD |
2858 | } |
2859 | } | |
2860 | if (obj1) { | |
2861 | { | |
2862 | arg2 = wxString_in_helper(obj1); | |
2863 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2864 | temp2 = True; |
d14a1e28 RD |
2865 | } |
2866 | } | |
2867 | if (obj3) { | |
2868 | { | |
2869 | arg4 = &temp4; | |
2870 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2871 | } | |
2872 | } | |
2873 | if (obj4) { | |
2874 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2875 | } | |
2876 | { | |
2877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2878 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
2879 | ||
2880 | wxPyEndAllowThreads(__tstate); | |
2881 | if (PyErr_Occurred()) SWIG_fail; | |
2882 | } | |
2883 | { | |
2884 | #if wxUSE_UNICODE | |
2885 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2886 | #else | |
2887 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2888 | #endif | |
2889 | } | |
2890 | { | |
2891 | if (temp1) | |
2892 | delete arg1; | |
2893 | } | |
2894 | { | |
2895 | if (temp2) | |
2896 | delete arg2; | |
2897 | } | |
2898 | return resultobj; | |
2899 | fail: | |
2900 | { | |
2901 | if (temp1) | |
2902 | delete arg1; | |
2903 | } | |
2904 | { | |
2905 | if (temp2) | |
2906 | delete arg2; | |
2907 | } | |
2908 | return NULL; | |
2909 | } | |
2910 | ||
2911 | ||
2912 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2913 | PyObject *resultobj; | |
2914 | wxString *arg1 = 0 ; | |
2915 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2916 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2917 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2918 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2919 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2920 | int arg5 = (int) -1 ; | |
2921 | int arg6 = (int) -1 ; | |
e811c8ce | 2922 | bool arg7 = (bool) True ; |
d14a1e28 | 2923 | wxString result; |
e811c8ce RD |
2924 | bool temp1 = False ; |
2925 | bool temp2 = False ; | |
2926 | bool temp3 = False ; | |
d14a1e28 RD |
2927 | PyObject * obj0 = 0 ; |
2928 | PyObject * obj1 = 0 ; | |
2929 | PyObject * obj2 = 0 ; | |
2930 | PyObject * obj3 = 0 ; | |
2931 | PyObject * obj6 = 0 ; | |
2932 | char *kwnames[] = { | |
2933 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
2934 | }; | |
2935 | ||
2936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOiiO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
2937 | { | |
2938 | arg1 = wxString_in_helper(obj0); | |
2939 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2940 | temp1 = True; |
d14a1e28 RD |
2941 | } |
2942 | if (obj1) { | |
2943 | { | |
2944 | arg2 = wxString_in_helper(obj1); | |
2945 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2946 | temp2 = True; |
d14a1e28 RD |
2947 | } |
2948 | } | |
2949 | if (obj2) { | |
2950 | { | |
2951 | arg3 = wxString_in_helper(obj2); | |
2952 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2953 | temp3 = True; |
d14a1e28 RD |
2954 | } |
2955 | } | |
2956 | if (obj3) { | |
2957 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2958 | } | |
2959 | if (obj6) { | |
a41e16b6 RD |
2960 | { |
2961 | arg7 = (bool) SPyObj_AsBool(obj6); | |
2962 | if (PyErr_Occurred()) SWIG_fail; | |
2963 | } | |
d14a1e28 RD |
2964 | } |
2965 | { | |
2966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2967 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
2968 | ||
2969 | wxPyEndAllowThreads(__tstate); | |
2970 | if (PyErr_Occurred()) SWIG_fail; | |
2971 | } | |
2972 | { | |
2973 | #if wxUSE_UNICODE | |
2974 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2975 | #else | |
2976 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2977 | #endif | |
2978 | } | |
2979 | { | |
2980 | if (temp1) | |
2981 | delete arg1; | |
2982 | } | |
2983 | { | |
2984 | if (temp2) | |
2985 | delete arg2; | |
2986 | } | |
2987 | { | |
2988 | if (temp3) | |
2989 | delete arg3; | |
2990 | } | |
2991 | return resultobj; | |
2992 | fail: | |
2993 | { | |
2994 | if (temp1) | |
2995 | delete arg1; | |
2996 | } | |
2997 | { | |
2998 | if (temp2) | |
2999 | delete arg2; | |
3000 | } | |
3001 | { | |
3002 | if (temp3) | |
3003 | delete arg3; | |
3004 | } | |
3005 | return NULL; | |
3006 | } | |
3007 | ||
3008 | ||
3009 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3010 | PyObject *resultobj; | |
3011 | wxString *arg1 = 0 ; | |
3012 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3013 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3014 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3015 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3016 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3017 | wxString result; | |
e811c8ce RD |
3018 | bool temp1 = False ; |
3019 | bool temp2 = False ; | |
3020 | bool temp3 = False ; | |
d14a1e28 RD |
3021 | PyObject * obj0 = 0 ; |
3022 | PyObject * obj1 = 0 ; | |
3023 | PyObject * obj2 = 0 ; | |
3024 | PyObject * obj3 = 0 ; | |
3025 | char *kwnames[] = { | |
3026 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3027 | }; | |
3028 | ||
3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3030 | { | |
3031 | arg1 = wxString_in_helper(obj0); | |
3032 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3033 | temp1 = True; |
d14a1e28 RD |
3034 | } |
3035 | if (obj1) { | |
3036 | { | |
3037 | arg2 = wxString_in_helper(obj1); | |
3038 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3039 | temp2 = True; |
d14a1e28 RD |
3040 | } |
3041 | } | |
3042 | if (obj2) { | |
3043 | { | |
3044 | arg3 = wxString_in_helper(obj2); | |
3045 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3046 | temp3 = True; |
d14a1e28 RD |
3047 | } |
3048 | } | |
3049 | if (obj3) { | |
3050 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3051 | } | |
3052 | { | |
3053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3054 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3055 | ||
3056 | wxPyEndAllowThreads(__tstate); | |
3057 | if (PyErr_Occurred()) SWIG_fail; | |
3058 | } | |
3059 | { | |
3060 | #if wxUSE_UNICODE | |
3061 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3062 | #else | |
3063 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3064 | #endif | |
3065 | } | |
3066 | { | |
3067 | if (temp1) | |
3068 | delete arg1; | |
3069 | } | |
3070 | { | |
3071 | if (temp2) | |
3072 | delete arg2; | |
3073 | } | |
3074 | { | |
3075 | if (temp3) | |
3076 | delete arg3; | |
3077 | } | |
3078 | return resultobj; | |
3079 | fail: | |
3080 | { | |
3081 | if (temp1) | |
3082 | delete arg1; | |
3083 | } | |
3084 | { | |
3085 | if (temp2) | |
3086 | delete arg2; | |
3087 | } | |
3088 | { | |
3089 | if (temp3) | |
3090 | delete arg3; | |
3091 | } | |
3092 | return NULL; | |
3093 | } | |
3094 | ||
3095 | ||
3096 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3097 | PyObject *resultobj; | |
3098 | wxString *arg1 = 0 ; | |
3099 | wxString *arg2 = 0 ; | |
3100 | int arg3 ; | |
3101 | wxString *arg4 = (wxString *) 0 ; | |
3102 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3103 | int arg6 = (int) -1 ; | |
3104 | int arg7 = (int) -1 ; | |
e811c8ce | 3105 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3106 | int arg9 = (int) 150 ; |
3107 | int arg10 = (int) 200 ; | |
3108 | wxString result; | |
e811c8ce RD |
3109 | bool temp1 = False ; |
3110 | bool temp2 = False ; | |
d14a1e28 RD |
3111 | PyObject * obj0 = 0 ; |
3112 | PyObject * obj1 = 0 ; | |
3113 | PyObject * obj2 = 0 ; | |
3114 | PyObject * obj3 = 0 ; | |
3115 | PyObject * obj6 = 0 ; | |
3116 | char *kwnames[] = { | |
3117 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3118 | }; | |
3119 | ||
3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
3121 | { | |
3122 | arg1 = wxString_in_helper(obj0); | |
3123 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3124 | temp1 = True; |
d14a1e28 RD |
3125 | } |
3126 | { | |
3127 | arg2 = wxString_in_helper(obj1); | |
3128 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3129 | temp2 = True; |
d14a1e28 RD |
3130 | } |
3131 | { | |
3132 | arg3 = PyList_Size(obj2); | |
3133 | arg4 = wxString_LIST_helper(obj2); | |
3134 | if (arg4 == NULL) SWIG_fail; | |
3135 | } | |
3136 | if (obj3) { | |
3137 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3138 | } | |
3139 | if (obj6) { | |
a41e16b6 RD |
3140 | { |
3141 | arg8 = (bool) SPyObj_AsBool(obj6); | |
3142 | if (PyErr_Occurred()) SWIG_fail; | |
3143 | } | |
d14a1e28 RD |
3144 | } |
3145 | { | |
3146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3147 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3148 | ||
3149 | wxPyEndAllowThreads(__tstate); | |
3150 | if (PyErr_Occurred()) SWIG_fail; | |
3151 | } | |
3152 | { | |
3153 | #if wxUSE_UNICODE | |
3154 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3155 | #else | |
3156 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3157 | #endif | |
3158 | } | |
3159 | { | |
3160 | if (temp1) | |
3161 | delete arg1; | |
3162 | } | |
3163 | { | |
3164 | if (temp2) | |
3165 | delete arg2; | |
3166 | } | |
3167 | { | |
3168 | if (arg4) delete [] arg4; | |
3169 | } | |
3170 | return resultobj; | |
3171 | fail: | |
3172 | { | |
3173 | if (temp1) | |
3174 | delete arg1; | |
3175 | } | |
3176 | { | |
3177 | if (temp2) | |
3178 | delete arg2; | |
3179 | } | |
3180 | { | |
3181 | if (arg4) delete [] arg4; | |
3182 | } | |
3183 | return NULL; | |
3184 | } | |
3185 | ||
3186 | ||
3187 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3188 | PyObject *resultobj; | |
3189 | wxString *arg1 = 0 ; | |
3190 | wxString *arg2 = 0 ; | |
3191 | int arg3 ; | |
3192 | wxString *arg4 = (wxString *) 0 ; | |
3193 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3194 | int arg6 = (int) -1 ; | |
3195 | int arg7 = (int) -1 ; | |
e811c8ce | 3196 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3197 | int arg9 = (int) 150 ; |
3198 | int arg10 = (int) 200 ; | |
3199 | int result; | |
e811c8ce RD |
3200 | bool temp1 = False ; |
3201 | bool temp2 = False ; | |
d14a1e28 RD |
3202 | PyObject * obj0 = 0 ; |
3203 | PyObject * obj1 = 0 ; | |
3204 | PyObject * obj2 = 0 ; | |
3205 | PyObject * obj3 = 0 ; | |
3206 | PyObject * obj6 = 0 ; | |
3207 | char *kwnames[] = { | |
3208 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3209 | }; | |
3210 | ||
3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
3212 | { | |
3213 | arg1 = wxString_in_helper(obj0); | |
3214 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3215 | temp1 = True; |
d14a1e28 RD |
3216 | } |
3217 | { | |
3218 | arg2 = wxString_in_helper(obj1); | |
3219 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3220 | temp2 = True; |
d14a1e28 RD |
3221 | } |
3222 | { | |
3223 | arg3 = PyList_Size(obj2); | |
3224 | arg4 = wxString_LIST_helper(obj2); | |
3225 | if (arg4 == NULL) SWIG_fail; | |
3226 | } | |
3227 | if (obj3) { | |
3228 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3229 | } | |
3230 | if (obj6) { | |
a41e16b6 RD |
3231 | { |
3232 | arg8 = (bool) SPyObj_AsBool(obj6); | |
3233 | if (PyErr_Occurred()) SWIG_fail; | |
3234 | } | |
d14a1e28 RD |
3235 | } |
3236 | { | |
3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3238 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3239 | ||
3240 | wxPyEndAllowThreads(__tstate); | |
3241 | if (PyErr_Occurred()) SWIG_fail; | |
3242 | } | |
3243 | resultobj = PyInt_FromLong((long)result); | |
3244 | { | |
3245 | if (temp1) | |
3246 | delete arg1; | |
3247 | } | |
3248 | { | |
3249 | if (temp2) | |
3250 | delete arg2; | |
3251 | } | |
3252 | { | |
3253 | if (arg4) delete [] arg4; | |
3254 | } | |
3255 | return resultobj; | |
3256 | fail: | |
3257 | { | |
3258 | if (temp1) | |
3259 | delete arg1; | |
3260 | } | |
3261 | { | |
3262 | if (temp2) | |
3263 | delete arg2; | |
3264 | } | |
3265 | { | |
3266 | if (arg4) delete [] arg4; | |
3267 | } | |
3268 | return NULL; | |
3269 | } | |
3270 | ||
3271 | ||
3272 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3273 | PyObject *resultobj; | |
3274 | wxString *arg1 = 0 ; | |
3275 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3276 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3277 | int arg3 = (int) wxOK|wxCENTRE ; | |
3278 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3279 | int arg5 = (int) -1 ; | |
3280 | int arg6 = (int) -1 ; | |
3281 | int result; | |
e811c8ce RD |
3282 | bool temp1 = False ; |
3283 | bool temp2 = False ; | |
d14a1e28 RD |
3284 | PyObject * obj0 = 0 ; |
3285 | PyObject * obj1 = 0 ; | |
3286 | PyObject * obj3 = 0 ; | |
3287 | char *kwnames[] = { | |
3288 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3289 | }; | |
3290 | ||
3291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOii:MessageBox",kwnames,&obj0,&obj1,&arg3,&obj3,&arg5,&arg6)) goto fail; | |
3292 | { | |
3293 | arg1 = wxString_in_helper(obj0); | |
3294 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3295 | temp1 = True; |
d14a1e28 RD |
3296 | } |
3297 | if (obj1) { | |
3298 | { | |
3299 | arg2 = wxString_in_helper(obj1); | |
3300 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3301 | temp2 = True; |
d14a1e28 RD |
3302 | } |
3303 | } | |
3304 | if (obj3) { | |
3305 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3306 | } | |
3307 | { | |
3308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3309 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3310 | ||
3311 | wxPyEndAllowThreads(__tstate); | |
3312 | if (PyErr_Occurred()) SWIG_fail; | |
3313 | } | |
3314 | resultobj = PyInt_FromLong((long)result); | |
3315 | { | |
3316 | if (temp1) | |
3317 | delete arg1; | |
3318 | } | |
3319 | { | |
3320 | if (temp2) | |
3321 | delete arg2; | |
3322 | } | |
3323 | return resultobj; | |
3324 | fail: | |
3325 | { | |
3326 | if (temp1) | |
3327 | delete arg1; | |
3328 | } | |
3329 | { | |
3330 | if (temp2) | |
3331 | delete arg2; | |
3332 | } | |
3333 | return NULL; | |
3334 | } | |
3335 | ||
3336 | ||
3337 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3338 | PyObject *resultobj; | |
3339 | wxString *arg1 = 0 ; | |
3340 | wxString *arg2 = 0 ; | |
3341 | wxString *arg3 = 0 ; | |
3342 | long arg4 ; | |
3343 | long arg5 = (long) 0 ; | |
3344 | long arg6 = (long) 100 ; | |
3345 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3346 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3347 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3348 | long result; | |
e811c8ce RD |
3349 | bool temp1 = False ; |
3350 | bool temp2 = False ; | |
3351 | bool temp3 = False ; | |
d14a1e28 RD |
3352 | wxPoint temp8 ; |
3353 | PyObject * obj0 = 0 ; | |
3354 | PyObject * obj1 = 0 ; | |
3355 | PyObject * obj2 = 0 ; | |
3356 | PyObject * obj6 = 0 ; | |
3357 | PyObject * obj7 = 0 ; | |
3358 | char *kwnames[] = { | |
3359 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3360 | }; | |
3361 | ||
3362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOl|llOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7)) goto fail; | |
3363 | { | |
3364 | arg1 = wxString_in_helper(obj0); | |
3365 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3366 | temp1 = True; |
d14a1e28 RD |
3367 | } |
3368 | { | |
3369 | arg2 = wxString_in_helper(obj1); | |
3370 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3371 | temp2 = True; |
d14a1e28 RD |
3372 | } |
3373 | { | |
3374 | arg3 = wxString_in_helper(obj2); | |
3375 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3376 | temp3 = True; |
d14a1e28 RD |
3377 | } |
3378 | if (obj6) { | |
3379 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3380 | } | |
3381 | if (obj7) { | |
3382 | { | |
3383 | arg8 = &temp8; | |
3384 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3385 | } | |
3386 | } | |
3387 | { | |
3388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3389 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3390 | ||
3391 | wxPyEndAllowThreads(__tstate); | |
3392 | if (PyErr_Occurred()) SWIG_fail; | |
3393 | } | |
3394 | resultobj = PyInt_FromLong((long)result); | |
3395 | { | |
3396 | if (temp1) | |
3397 | delete arg1; | |
3398 | } | |
3399 | { | |
3400 | if (temp2) | |
3401 | delete arg2; | |
3402 | } | |
3403 | { | |
3404 | if (temp3) | |
3405 | delete arg3; | |
3406 | } | |
3407 | return resultobj; | |
3408 | fail: | |
3409 | { | |
3410 | if (temp1) | |
3411 | delete arg1; | |
3412 | } | |
3413 | { | |
3414 | if (temp2) | |
3415 | delete arg2; | |
3416 | } | |
3417 | { | |
3418 | if (temp3) | |
3419 | delete arg3; | |
3420 | } | |
3421 | return NULL; | |
3422 | } | |
3423 | ||
3424 | ||
3425 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3426 | PyObject *resultobj; | |
3427 | bool result; | |
3428 | char *kwnames[] = { | |
3429 | NULL | |
3430 | }; | |
3431 | ||
3432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3433 | { | |
3434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3435 | result = (bool)wxColourDisplay(); | |
3436 | ||
3437 | wxPyEndAllowThreads(__tstate); | |
3438 | if (PyErr_Occurred()) SWIG_fail; | |
3439 | } | |
3440 | resultobj = PyInt_FromLong((long)result); | |
3441 | return resultobj; | |
3442 | fail: | |
3443 | return NULL; | |
3444 | } | |
3445 | ||
3446 | ||
3447 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3448 | PyObject *resultobj; | |
3449 | int result; | |
3450 | char *kwnames[] = { | |
3451 | NULL | |
3452 | }; | |
3453 | ||
3454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3455 | { | |
3456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3457 | result = (int)wxDisplayDepth(); | |
3458 | ||
3459 | wxPyEndAllowThreads(__tstate); | |
3460 | if (PyErr_Occurred()) SWIG_fail; | |
3461 | } | |
3462 | resultobj = PyInt_FromLong((long)result); | |
3463 | return resultobj; | |
3464 | fail: | |
3465 | return NULL; | |
3466 | } | |
3467 | ||
3468 | ||
3469 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3470 | PyObject *resultobj; | |
3471 | int result; | |
3472 | char *kwnames[] = { | |
3473 | NULL | |
3474 | }; | |
3475 | ||
3476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3477 | { | |
3478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3479 | result = (int)wxGetDisplayDepth(); | |
3480 | ||
3481 | wxPyEndAllowThreads(__tstate); | |
3482 | if (PyErr_Occurred()) SWIG_fail; | |
3483 | } | |
3484 | resultobj = PyInt_FromLong((long)result); | |
3485 | return resultobj; | |
3486 | fail: | |
3487 | return NULL; | |
3488 | } | |
3489 | ||
3490 | ||
3491 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3492 | PyObject *resultobj; | |
3493 | int *arg1 = (int *) 0 ; | |
3494 | int *arg2 = (int *) 0 ; | |
3495 | int temp1 ; | |
3496 | int temp2 ; | |
3497 | char *kwnames[] = { | |
3498 | NULL | |
3499 | }; | |
3500 | ||
3501 | arg1 = &temp1; | |
3502 | arg2 = &temp2; | |
3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3504 | { | |
3505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3506 | wxDisplaySize(arg1,arg2); | |
3507 | ||
3508 | wxPyEndAllowThreads(__tstate); | |
3509 | if (PyErr_Occurred()) SWIG_fail; | |
3510 | } | |
3511 | Py_INCREF(Py_None); resultobj = Py_None; | |
3512 | { | |
3513 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3514 | resultobj = t_output_helper(resultobj,o); | |
3515 | } | |
3516 | { | |
3517 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3518 | resultobj = t_output_helper(resultobj,o); | |
3519 | } | |
3520 | return resultobj; | |
3521 | fail: | |
3522 | return NULL; | |
3523 | } | |
3524 | ||
3525 | ||
3526 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3527 | PyObject *resultobj; | |
3528 | wxSize result; | |
3529 | char *kwnames[] = { | |
3530 | NULL | |
3531 | }; | |
3532 | ||
3533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3534 | { | |
3535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3536 | result = wxGetDisplaySize(); | |
3537 | ||
3538 | wxPyEndAllowThreads(__tstate); | |
3539 | if (PyErr_Occurred()) SWIG_fail; | |
3540 | } | |
3541 | { | |
3542 | wxSize * resultptr; | |
3543 | resultptr = new wxSize((wxSize &) result); | |
3544 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3545 | } | |
3546 | return resultobj; | |
3547 | fail: | |
3548 | return NULL; | |
3549 | } | |
3550 | ||
3551 | ||
3552 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3553 | PyObject *resultobj; | |
3554 | int *arg1 = (int *) 0 ; | |
3555 | int *arg2 = (int *) 0 ; | |
3556 | int temp1 ; | |
3557 | int temp2 ; | |
3558 | char *kwnames[] = { | |
3559 | NULL | |
3560 | }; | |
3561 | ||
3562 | arg1 = &temp1; | |
3563 | arg2 = &temp2; | |
3564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3565 | { | |
3566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3567 | wxDisplaySizeMM(arg1,arg2); | |
3568 | ||
3569 | wxPyEndAllowThreads(__tstate); | |
3570 | if (PyErr_Occurred()) SWIG_fail; | |
3571 | } | |
3572 | Py_INCREF(Py_None); resultobj = Py_None; | |
3573 | { | |
3574 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3575 | resultobj = t_output_helper(resultobj,o); | |
3576 | } | |
3577 | { | |
3578 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3579 | resultobj = t_output_helper(resultobj,o); | |
3580 | } | |
3581 | return resultobj; | |
3582 | fail: | |
3583 | return NULL; | |
3584 | } | |
3585 | ||
3586 | ||
3587 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3588 | PyObject *resultobj; | |
3589 | wxSize result; | |
3590 | char *kwnames[] = { | |
3591 | NULL | |
3592 | }; | |
3593 | ||
3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3595 | { | |
3596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3597 | result = wxGetDisplaySizeMM(); | |
3598 | ||
3599 | wxPyEndAllowThreads(__tstate); | |
3600 | if (PyErr_Occurred()) SWIG_fail; | |
3601 | } | |
3602 | { | |
3603 | wxSize * resultptr; | |
3604 | resultptr = new wxSize((wxSize &) result); | |
3605 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3606 | } | |
3607 | return resultobj; | |
3608 | fail: | |
3609 | return NULL; | |
3610 | } | |
3611 | ||
3612 | ||
3613 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3614 | PyObject *resultobj; | |
3615 | int *arg1 = (int *) 0 ; | |
3616 | int *arg2 = (int *) 0 ; | |
3617 | int *arg3 = (int *) 0 ; | |
3618 | int *arg4 = (int *) 0 ; | |
3619 | int temp1 ; | |
3620 | int temp2 ; | |
3621 | int temp3 ; | |
3622 | int temp4 ; | |
3623 | char *kwnames[] = { | |
3624 | NULL | |
3625 | }; | |
3626 | ||
3627 | arg1 = &temp1; | |
3628 | arg2 = &temp2; | |
3629 | arg3 = &temp3; | |
3630 | arg4 = &temp4; | |
3631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3632 | { | |
3633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3634 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3635 | ||
3636 | wxPyEndAllowThreads(__tstate); | |
3637 | if (PyErr_Occurred()) SWIG_fail; | |
3638 | } | |
3639 | Py_INCREF(Py_None); resultobj = Py_None; | |
3640 | { | |
3641 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3642 | resultobj = t_output_helper(resultobj,o); | |
3643 | } | |
3644 | { | |
3645 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3646 | resultobj = t_output_helper(resultobj,o); | |
3647 | } | |
3648 | { | |
3649 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3650 | resultobj = t_output_helper(resultobj,o); | |
3651 | } | |
3652 | { | |
3653 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3654 | resultobj = t_output_helper(resultobj,o); | |
3655 | } | |
3656 | return resultobj; | |
3657 | fail: | |
3658 | return NULL; | |
3659 | } | |
3660 | ||
3661 | ||
3662 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3663 | PyObject *resultobj; | |
3664 | wxRect result; | |
3665 | char *kwnames[] = { | |
3666 | NULL | |
3667 | }; | |
3668 | ||
3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3670 | { | |
3671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3672 | result = wxGetClientDisplayRect(); | |
3673 | ||
3674 | wxPyEndAllowThreads(__tstate); | |
3675 | if (PyErr_Occurred()) SWIG_fail; | |
3676 | } | |
3677 | { | |
3678 | wxRect * resultptr; | |
3679 | resultptr = new wxRect((wxRect &) result); | |
3680 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3681 | } | |
3682 | return resultobj; | |
3683 | fail: | |
3684 | return NULL; | |
3685 | } | |
3686 | ||
3687 | ||
3688 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3689 | PyObject *resultobj; | |
3690 | wxCursor *arg1 = 0 ; | |
3691 | PyObject * obj0 = 0 ; | |
3692 | char *kwnames[] = { | |
3693 | (char *) "cursor", NULL | |
3694 | }; | |
3695 | ||
3696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3698 | if (arg1 == NULL) { | |
3699 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3700 | } | |
3701 | { | |
3702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3703 | wxSetCursor(*arg1); | |
3704 | ||
3705 | wxPyEndAllowThreads(__tstate); | |
3706 | if (PyErr_Occurred()) SWIG_fail; | |
3707 | } | |
3708 | Py_INCREF(Py_None); resultobj = Py_None; | |
3709 | return resultobj; | |
3710 | fail: | |
3711 | return NULL; | |
3712 | } | |
3713 | ||
3714 | ||
3715 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3716 | PyObject *resultobj; | |
3717 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3718 | PyObject * obj0 = 0 ; | |
3719 | char *kwnames[] = { | |
3720 | (char *) "cursor", NULL | |
3721 | }; | |
3722 | ||
3723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3724 | if (obj0) { | |
3725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3726 | } | |
3727 | { | |
3728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3729 | wxBeginBusyCursor(arg1); | |
3730 | ||
3731 | wxPyEndAllowThreads(__tstate); | |
3732 | if (PyErr_Occurred()) SWIG_fail; | |
3733 | } | |
3734 | Py_INCREF(Py_None); resultobj = Py_None; | |
3735 | return resultobj; | |
3736 | fail: | |
3737 | return NULL; | |
3738 | } | |
3739 | ||
3740 | ||
3741 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3742 | PyObject *resultobj; | |
3743 | wxWindow *result; | |
3744 | char *kwnames[] = { | |
3745 | NULL | |
3746 | }; | |
3747 | ||
3748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
3749 | { | |
3750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3751 | result = (wxWindow *)wxGetActiveWindow(); | |
3752 | ||
3753 | wxPyEndAllowThreads(__tstate); | |
3754 | if (PyErr_Occurred()) SWIG_fail; | |
3755 | } | |
3756 | { | |
3757 | resultobj = wxPyMake_wxObject(result); | |
3758 | } | |
3759 | return resultobj; | |
3760 | fail: | |
3761 | return NULL; | |
3762 | } | |
3763 | ||
3764 | ||
3765 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3766 | PyObject *resultobj; | |
3767 | wxPoint *arg1 = 0 ; | |
3768 | wxWindow *result; | |
3769 | wxPoint temp1 ; | |
3770 | PyObject * obj0 = 0 ; | |
3771 | char *kwnames[] = { | |
3772 | (char *) "pt", NULL | |
3773 | }; | |
3774 | ||
3775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3776 | { | |
3777 | arg1 = &temp1; | |
3778 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3779 | } | |
3780 | { | |
3781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3782 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
3783 | ||
3784 | wxPyEndAllowThreads(__tstate); | |
3785 | if (PyErr_Occurred()) SWIG_fail; | |
3786 | } | |
3787 | { | |
3788 | resultobj = wxPyMake_wxObject(result); | |
3789 | } | |
3790 | return resultobj; | |
3791 | fail: | |
3792 | return NULL; | |
3793 | } | |
3794 | ||
3795 | ||
3796 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3797 | PyObject *resultobj; | |
3798 | wxPoint *arg1 = 0 ; | |
3799 | wxWindow *result; | |
3800 | wxPoint temp1 ; | |
3801 | PyObject * obj0 = 0 ; | |
3802 | char *kwnames[] = { | |
3803 | (char *) "pt", NULL | |
3804 | }; | |
3805 | ||
3806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3807 | { | |
3808 | arg1 = &temp1; | |
3809 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3810 | } | |
3811 | { | |
3812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3813 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
3814 | ||
3815 | wxPyEndAllowThreads(__tstate); | |
3816 | if (PyErr_Occurred()) SWIG_fail; | |
3817 | } | |
3818 | { | |
3819 | resultobj = wxPyMake_wxObject(result); | |
3820 | } | |
3821 | return resultobj; | |
3822 | fail: | |
3823 | return NULL; | |
3824 | } | |
3825 | ||
3826 | ||
3827 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3828 | PyObject *resultobj; | |
3829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3830 | wxWindow *result; | |
3831 | PyObject * obj0 = 0 ; | |
3832 | char *kwnames[] = { | |
3833 | (char *) "win", NULL | |
3834 | }; | |
3835 | ||
3836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
3837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3838 | { | |
3839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3840 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
3841 | ||
3842 | wxPyEndAllowThreads(__tstate); | |
3843 | if (PyErr_Occurred()) SWIG_fail; | |
3844 | } | |
3845 | { | |
3846 | resultobj = wxPyMake_wxObject(result); | |
3847 | } | |
3848 | return resultobj; | |
3849 | fail: | |
3850 | return NULL; | |
3851 | } | |
3852 | ||
3853 | ||
39f61e25 RD |
3854 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
3855 | PyObject *resultobj; | |
3856 | int arg1 ; | |
3857 | bool result; | |
3858 | char *kwnames[] = { | |
3859 | (char *) "key", NULL | |
3860 | }; | |
3861 | ||
3862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetKeyState",kwnames,&arg1)) goto fail; | |
3863 | { | |
3864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3865 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
3866 | ||
3867 | wxPyEndAllowThreads(__tstate); | |
3868 | if (PyErr_Occurred()) SWIG_fail; | |
3869 | } | |
3870 | resultobj = PyInt_FromLong((long)result); | |
3871 | return resultobj; | |
3872 | fail: | |
3873 | return NULL; | |
3874 | } | |
3875 | ||
3876 | ||
d14a1e28 RD |
3877 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
3878 | PyObject *resultobj; | |
3879 | char *kwnames[] = { | |
3880 | NULL | |
3881 | }; | |
3882 | ||
3883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
3884 | { | |
3885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3886 | wxWakeUpMainThread(); | |
3887 | ||
3888 | wxPyEndAllowThreads(__tstate); | |
3889 | if (PyErr_Occurred()) SWIG_fail; | |
3890 | } | |
3891 | Py_INCREF(Py_None); resultobj = Py_None; | |
3892 | return resultobj; | |
3893 | fail: | |
3894 | return NULL; | |
3895 | } | |
3896 | ||
3897 | ||
3898 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3899 | PyObject *resultobj; | |
3900 | char *kwnames[] = { | |
3901 | NULL | |
3902 | }; | |
3903 | ||
3904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
3905 | { | |
3906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3907 | wxMutexGuiEnter(); | |
3908 | ||
3909 | wxPyEndAllowThreads(__tstate); | |
3910 | if (PyErr_Occurred()) SWIG_fail; | |
3911 | } | |
3912 | Py_INCREF(Py_None); resultobj = Py_None; | |
3913 | return resultobj; | |
3914 | fail: | |
3915 | return NULL; | |
3916 | } | |
3917 | ||
3918 | ||
3919 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3920 | PyObject *resultobj; | |
3921 | char *kwnames[] = { | |
3922 | NULL | |
3923 | }; | |
3924 | ||
3925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
3926 | { | |
3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3928 | wxMutexGuiLeave(); | |
3929 | ||
3930 | wxPyEndAllowThreads(__tstate); | |
3931 | if (PyErr_Occurred()) SWIG_fail; | |
3932 | } | |
3933 | Py_INCREF(Py_None); resultobj = Py_None; | |
3934 | return resultobj; | |
3935 | fail: | |
3936 | return NULL; | |
3937 | } | |
3938 | ||
3939 | ||
3940 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3941 | PyObject *resultobj; | |
3942 | wxMutexGuiLocker *result; | |
3943 | char *kwnames[] = { | |
3944 | NULL | |
3945 | }; | |
3946 | ||
3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
3948 | { | |
3949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3950 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
3951 | ||
3952 | wxPyEndAllowThreads(__tstate); | |
3953 | if (PyErr_Occurred()) SWIG_fail; | |
3954 | } | |
3955 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1); | |
3956 | return resultobj; | |
3957 | fail: | |
3958 | return NULL; | |
3959 | } | |
3960 | ||
3961 | ||
3962 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3963 | PyObject *resultobj; | |
3964 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
3965 | PyObject * obj0 = 0 ; | |
3966 | char *kwnames[] = { | |
3967 | (char *) "self", NULL | |
3968 | }; | |
3969 | ||
3970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
3971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3972 | { | |
3973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3974 | delete arg1; | |
3975 | ||
3976 | wxPyEndAllowThreads(__tstate); | |
3977 | if (PyErr_Occurred()) SWIG_fail; | |
3978 | } | |
3979 | Py_INCREF(Py_None); resultobj = Py_None; | |
3980 | return resultobj; | |
3981 | fail: | |
3982 | return NULL; | |
3983 | } | |
3984 | ||
3985 | ||
3986 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
3987 | PyObject *obj; | |
3988 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3989 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
3990 | Py_INCREF(obj); | |
3991 | return Py_BuildValue((char *)""); | |
3992 | } | |
3993 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3994 | PyObject *resultobj; | |
3995 | bool result; | |
3996 | char *kwnames[] = { | |
3997 | NULL | |
3998 | }; | |
3999 | ||
4000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4001 | { | |
4002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4003 | result = (bool)wxThread_IsMain(); | |
4004 | ||
4005 | wxPyEndAllowThreads(__tstate); | |
4006 | if (PyErr_Occurred()) SWIG_fail; | |
4007 | } | |
4008 | resultobj = PyInt_FromLong((long)result); | |
4009 | return resultobj; | |
4010 | fail: | |
4011 | return NULL; | |
4012 | } | |
4013 | ||
4014 | ||
4015 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4016 | PyObject *resultobj; | |
4017 | wxString *arg1 = 0 ; | |
4018 | wxToolTip *result; | |
e811c8ce | 4019 | bool temp1 = False ; |
d14a1e28 RD |
4020 | PyObject * obj0 = 0 ; |
4021 | char *kwnames[] = { | |
4022 | (char *) "tip", NULL | |
4023 | }; | |
4024 | ||
4025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4026 | { | |
4027 | arg1 = wxString_in_helper(obj0); | |
4028 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4029 | temp1 = True; |
d14a1e28 RD |
4030 | } |
4031 | { | |
4032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4033 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4034 | ||
4035 | wxPyEndAllowThreads(__tstate); | |
4036 | if (PyErr_Occurred()) SWIG_fail; | |
4037 | } | |
4038 | { | |
4039 | resultobj = wxPyMake_wxObject(result); | |
4040 | } | |
4041 | { | |
4042 | if (temp1) | |
4043 | delete arg1; | |
4044 | } | |
4045 | return resultobj; | |
4046 | fail: | |
4047 | { | |
4048 | if (temp1) | |
4049 | delete arg1; | |
4050 | } | |
4051 | return NULL; | |
4052 | } | |
4053 | ||
4054 | ||
4055 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4056 | PyObject *resultobj; | |
4057 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4058 | wxString *arg2 = 0 ; | |
e811c8ce | 4059 | bool temp2 = False ; |
d14a1e28 RD |
4060 | PyObject * obj0 = 0 ; |
4061 | PyObject * obj1 = 0 ; | |
4062 | char *kwnames[] = { | |
4063 | (char *) "self",(char *) "tip", NULL | |
4064 | }; | |
4065 | ||
4066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4068 | { | |
4069 | arg2 = wxString_in_helper(obj1); | |
4070 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4071 | temp2 = True; |
d14a1e28 RD |
4072 | } |
4073 | { | |
4074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4075 | (arg1)->SetTip((wxString const &)*arg2); | |
4076 | ||
4077 | wxPyEndAllowThreads(__tstate); | |
4078 | if (PyErr_Occurred()) SWIG_fail; | |
4079 | } | |
4080 | Py_INCREF(Py_None); resultobj = Py_None; | |
4081 | { | |
4082 | if (temp2) | |
4083 | delete arg2; | |
4084 | } | |
4085 | return resultobj; | |
4086 | fail: | |
4087 | { | |
4088 | if (temp2) | |
4089 | delete arg2; | |
4090 | } | |
4091 | return NULL; | |
4092 | } | |
4093 | ||
4094 | ||
4095 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4096 | PyObject *resultobj; | |
4097 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4098 | wxString result; | |
4099 | PyObject * obj0 = 0 ; | |
4100 | char *kwnames[] = { | |
4101 | (char *) "self", NULL | |
4102 | }; | |
4103 | ||
4104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4106 | { | |
4107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4108 | result = (arg1)->GetTip(); | |
4109 | ||
4110 | wxPyEndAllowThreads(__tstate); | |
4111 | if (PyErr_Occurred()) SWIG_fail; | |
4112 | } | |
4113 | { | |
4114 | #if wxUSE_UNICODE | |
4115 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4116 | #else | |
4117 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4118 | #endif | |
4119 | } | |
4120 | return resultobj; | |
4121 | fail: | |
4122 | return NULL; | |
4123 | } | |
4124 | ||
4125 | ||
4126 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4127 | PyObject *resultobj; | |
4128 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4129 | wxWindow *result; | |
4130 | PyObject * obj0 = 0 ; | |
4131 | char *kwnames[] = { | |
4132 | (char *) "self", NULL | |
4133 | }; | |
4134 | ||
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4137 | { | |
4138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4139 | result = (wxWindow *)(arg1)->GetWindow(); | |
4140 | ||
4141 | wxPyEndAllowThreads(__tstate); | |
4142 | if (PyErr_Occurred()) SWIG_fail; | |
4143 | } | |
4144 | { | |
4145 | resultobj = wxPyMake_wxObject(result); | |
4146 | } | |
4147 | return resultobj; | |
4148 | fail: | |
4149 | return NULL; | |
4150 | } | |
4151 | ||
4152 | ||
4153 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4154 | PyObject *resultobj; | |
4155 | bool arg1 ; | |
4156 | PyObject * obj0 = 0 ; | |
4157 | char *kwnames[] = { | |
4158 | (char *) "flag", NULL | |
4159 | }; | |
4160 | ||
4161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
a41e16b6 RD |
4162 | { |
4163 | arg1 = (bool) SPyObj_AsBool(obj0); | |
4164 | if (PyErr_Occurred()) SWIG_fail; | |
4165 | } | |
d14a1e28 RD |
4166 | { |
4167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4168 | wxToolTip::Enable(arg1); | |
4169 | ||
4170 | wxPyEndAllowThreads(__tstate); | |
4171 | if (PyErr_Occurred()) SWIG_fail; | |
4172 | } | |
4173 | Py_INCREF(Py_None); resultobj = Py_None; | |
4174 | return resultobj; | |
4175 | fail: | |
4176 | return NULL; | |
4177 | } | |
4178 | ||
4179 | ||
4180 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4181 | PyObject *resultobj; | |
4182 | long arg1 ; | |
4183 | char *kwnames[] = { | |
4184 | (char *) "milliseconds", NULL | |
4185 | }; | |
4186 | ||
4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:ToolTip_SetDelay",kwnames,&arg1)) goto fail; | |
4188 | { | |
4189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4190 | wxToolTip::SetDelay(arg1); | |
4191 | ||
4192 | wxPyEndAllowThreads(__tstate); | |
4193 | if (PyErr_Occurred()) SWIG_fail; | |
4194 | } | |
4195 | Py_INCREF(Py_None); resultobj = Py_None; | |
4196 | return resultobj; | |
4197 | fail: | |
4198 | return NULL; | |
4199 | } | |
4200 | ||
4201 | ||
4202 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4203 | PyObject *obj; | |
4204 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4205 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4206 | Py_INCREF(obj); | |
4207 | return Py_BuildValue((char *)""); | |
4208 | } | |
4209 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4210 | PyObject *resultobj; | |
4211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4212 | wxSize *arg2 = 0 ; | |
4213 | wxCaret *result; | |
4214 | wxSize temp2 ; | |
4215 | PyObject * obj0 = 0 ; | |
4216 | PyObject * obj1 = 0 ; | |
4217 | char *kwnames[] = { | |
4218 | (char *) "window",(char *) "size", NULL | |
4219 | }; | |
4220 | ||
4221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4223 | { | |
4224 | arg2 = &temp2; | |
4225 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4226 | } | |
4227 | { | |
4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4229 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4230 | ||
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) SWIG_fail; | |
4233 | } | |
4234 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1); | |
4235 | return resultobj; | |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
4241 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject *resultobj; | |
4243 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4244 | PyObject * obj0 = 0 ; | |
4245 | char *kwnames[] = { | |
4246 | (char *) "self", NULL | |
4247 | }; | |
4248 | ||
4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4251 | { | |
4252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4253 | delete arg1; | |
4254 | ||
4255 | wxPyEndAllowThreads(__tstate); | |
4256 | if (PyErr_Occurred()) SWIG_fail; | |
4257 | } | |
4258 | Py_INCREF(Py_None); resultobj = Py_None; | |
4259 | return resultobj; | |
4260 | fail: | |
4261 | return NULL; | |
4262 | } | |
4263 | ||
4264 | ||
4265 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4266 | PyObject *resultobj; | |
4267 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4268 | bool result; | |
4269 | PyObject * obj0 = 0 ; | |
4270 | char *kwnames[] = { | |
4271 | (char *) "self", NULL | |
4272 | }; | |
4273 | ||
4274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4276 | { | |
4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4278 | result = (bool)(arg1)->IsOk(); | |
4279 | ||
4280 | wxPyEndAllowThreads(__tstate); | |
4281 | if (PyErr_Occurred()) SWIG_fail; | |
4282 | } | |
4283 | resultobj = PyInt_FromLong((long)result); | |
4284 | return resultobj; | |
4285 | fail: | |
4286 | return NULL; | |
4287 | } | |
4288 | ||
4289 | ||
4290 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4291 | PyObject *resultobj; | |
4292 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4293 | bool result; | |
4294 | PyObject * obj0 = 0 ; | |
4295 | char *kwnames[] = { | |
4296 | (char *) "self", NULL | |
4297 | }; | |
4298 | ||
4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4301 | { | |
4302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4303 | result = (bool)(arg1)->IsVisible(); | |
4304 | ||
4305 | wxPyEndAllowThreads(__tstate); | |
4306 | if (PyErr_Occurred()) SWIG_fail; | |
4307 | } | |
4308 | resultobj = PyInt_FromLong((long)result); | |
4309 | return resultobj; | |
4310 | fail: | |
4311 | return NULL; | |
4312 | } | |
4313 | ||
4314 | ||
322913ce RD |
4315 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4316 | PyObject *resultobj; | |
4317 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4318 | wxPoint result; | |
4319 | PyObject * obj0 = 0 ; | |
4320 | char *kwnames[] = { | |
4321 | (char *) "self", NULL | |
4322 | }; | |
4323 | ||
4324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4326 | { | |
4327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4328 | result = (arg1)->GetPosition(); | |
4329 | ||
4330 | wxPyEndAllowThreads(__tstate); | |
4331 | if (PyErr_Occurred()) SWIG_fail; | |
4332 | } | |
4333 | { | |
4334 | wxPoint * resultptr; | |
4335 | resultptr = new wxPoint((wxPoint &) result); | |
4336 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
4337 | } | |
4338 | return resultobj; | |
4339 | fail: | |
4340 | return NULL; | |
4341 | } | |
4342 | ||
4343 | ||
d14a1e28 RD |
4344 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4345 | PyObject *resultobj; | |
4346 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4347 | int *arg2 = (int *) 0 ; | |
4348 | int *arg3 = (int *) 0 ; | |
4349 | int temp2 ; | |
4350 | int temp3 ; | |
4351 | PyObject * obj0 = 0 ; | |
4352 | char *kwnames[] = { | |
4353 | (char *) "self", NULL | |
4354 | }; | |
4355 | ||
4356 | arg2 = &temp2; | |
4357 | arg3 = &temp3; | |
4358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4360 | { | |
4361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4362 | (arg1)->GetPosition(arg2,arg3); | |
4363 | ||
4364 | wxPyEndAllowThreads(__tstate); | |
4365 | if (PyErr_Occurred()) SWIG_fail; | |
4366 | } | |
4367 | Py_INCREF(Py_None); resultobj = Py_None; | |
4368 | { | |
4369 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4370 | resultobj = t_output_helper(resultobj,o); | |
4371 | } | |
4372 | { | |
4373 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4374 | resultobj = t_output_helper(resultobj,o); | |
4375 | } | |
4376 | return resultobj; | |
4377 | fail: | |
4378 | return NULL; | |
4379 | } | |
4380 | ||
4381 | ||
322913ce | 4382 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4383 | PyObject *resultobj; |
4384 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 4385 | wxSize result; |
d14a1e28 RD |
4386 | PyObject * obj0 = 0 ; |
4387 | char *kwnames[] = { | |
4388 | (char *) "self", NULL | |
4389 | }; | |
4390 | ||
322913ce | 4391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4393 | { | |
4394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 4395 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4396 | |
4397 | wxPyEndAllowThreads(__tstate); | |
4398 | if (PyErr_Occurred()) SWIG_fail; | |
4399 | } | |
4400 | { | |
322913ce RD |
4401 | wxSize * resultptr; |
4402 | resultptr = new wxSize((wxSize &) result); | |
4403 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
d14a1e28 RD |
4404 | } |
4405 | return resultobj; | |
4406 | fail: | |
4407 | return NULL; | |
4408 | } | |
4409 | ||
4410 | ||
4411 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4412 | PyObject *resultobj; | |
4413 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4414 | int *arg2 = (int *) 0 ; | |
4415 | int *arg3 = (int *) 0 ; | |
4416 | int temp2 ; | |
4417 | int temp3 ; | |
4418 | PyObject * obj0 = 0 ; | |
4419 | char *kwnames[] = { | |
4420 | (char *) "self", NULL | |
4421 | }; | |
4422 | ||
4423 | arg2 = &temp2; | |
4424 | arg3 = &temp3; | |
4425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4427 | { | |
4428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4429 | (arg1)->GetSize(arg2,arg3); | |
4430 | ||
4431 | wxPyEndAllowThreads(__tstate); | |
4432 | if (PyErr_Occurred()) SWIG_fail; | |
4433 | } | |
4434 | Py_INCREF(Py_None); resultobj = Py_None; | |
4435 | { | |
4436 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4437 | resultobj = t_output_helper(resultobj,o); | |
4438 | } | |
4439 | { | |
4440 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4441 | resultobj = t_output_helper(resultobj,o); | |
4442 | } | |
4443 | return resultobj; | |
4444 | fail: | |
4445 | return NULL; | |
4446 | } | |
4447 | ||
4448 | ||
d14a1e28 RD |
4449 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4450 | PyObject *resultobj; | |
4451 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4452 | wxWindow *result; | |
4453 | PyObject * obj0 = 0 ; | |
4454 | char *kwnames[] = { | |
4455 | (char *) "self", NULL | |
4456 | }; | |
4457 | ||
4458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4460 | { | |
4461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4462 | result = (wxWindow *)(arg1)->GetWindow(); | |
4463 | ||
4464 | wxPyEndAllowThreads(__tstate); | |
4465 | if (PyErr_Occurred()) SWIG_fail; | |
4466 | } | |
4467 | { | |
4468 | resultobj = wxPyMake_wxObject(result); | |
4469 | } | |
4470 | return resultobj; | |
4471 | fail: | |
4472 | return NULL; | |
4473 | } | |
4474 | ||
4475 | ||
4476 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4477 | PyObject *resultobj; | |
4478 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4479 | int arg2 ; | |
4480 | int arg3 ; | |
4481 | PyObject * obj0 = 0 ; | |
4482 | char *kwnames[] = { | |
4483 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4484 | }; | |
4485 | ||
4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_MoveXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4488 | { | |
4489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4490 | (arg1)->Move(arg2,arg3); | |
4491 | ||
4492 | wxPyEndAllowThreads(__tstate); | |
4493 | if (PyErr_Occurred()) SWIG_fail; | |
4494 | } | |
4495 | Py_INCREF(Py_None); resultobj = Py_None; | |
4496 | return resultobj; | |
4497 | fail: | |
4498 | return NULL; | |
4499 | } | |
4500 | ||
4501 | ||
4502 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject *resultobj; | |
4504 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4505 | wxPoint *arg2 = 0 ; | |
4506 | wxPoint temp2 ; | |
4507 | PyObject * obj0 = 0 ; | |
4508 | PyObject * obj1 = 0 ; | |
4509 | char *kwnames[] = { | |
4510 | (char *) "self",(char *) "pt", NULL | |
4511 | }; | |
4512 | ||
4513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4515 | { | |
4516 | arg2 = &temp2; | |
4517 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4518 | } | |
4519 | { | |
4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4521 | (arg1)->Move((wxPoint const &)*arg2); | |
4522 | ||
4523 | wxPyEndAllowThreads(__tstate); | |
4524 | if (PyErr_Occurred()) SWIG_fail; | |
4525 | } | |
4526 | Py_INCREF(Py_None); resultobj = Py_None; | |
4527 | return resultobj; | |
4528 | fail: | |
4529 | return NULL; | |
4530 | } | |
4531 | ||
4532 | ||
4533 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4534 | PyObject *resultobj; | |
4535 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4536 | int arg2 ; | |
4537 | int arg3 ; | |
4538 | PyObject * obj0 = 0 ; | |
4539 | char *kwnames[] = { | |
4540 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4541 | }; | |
4542 | ||
4543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4545 | { | |
4546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4547 | (arg1)->SetSize(arg2,arg3); | |
4548 | ||
4549 | wxPyEndAllowThreads(__tstate); | |
4550 | if (PyErr_Occurred()) SWIG_fail; | |
4551 | } | |
4552 | Py_INCREF(Py_None); resultobj = Py_None; | |
4553 | return resultobj; | |
4554 | fail: | |
4555 | return NULL; | |
4556 | } | |
4557 | ||
4558 | ||
4559 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4560 | PyObject *resultobj; | |
4561 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4562 | wxSize *arg2 = 0 ; | |
4563 | wxSize temp2 ; | |
4564 | PyObject * obj0 = 0 ; | |
4565 | PyObject * obj1 = 0 ; | |
4566 | char *kwnames[] = { | |
4567 | (char *) "self",(char *) "size", NULL | |
4568 | }; | |
4569 | ||
4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4572 | { | |
4573 | arg2 = &temp2; | |
4574 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4575 | } | |
4576 | { | |
4577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4578 | (arg1)->SetSize((wxSize const &)*arg2); | |
4579 | ||
4580 | wxPyEndAllowThreads(__tstate); | |
4581 | if (PyErr_Occurred()) SWIG_fail; | |
4582 | } | |
4583 | Py_INCREF(Py_None); resultobj = Py_None; | |
4584 | return resultobj; | |
4585 | fail: | |
4586 | return NULL; | |
4587 | } | |
4588 | ||
4589 | ||
4590 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4591 | PyObject *resultobj; | |
4592 | wxCaret *arg1 = (wxCaret *) 0 ; | |
e811c8ce | 4593 | int arg2 = (int) True ; |
d14a1e28 RD |
4594 | PyObject * obj0 = 0 ; |
4595 | char *kwnames[] = { | |
4596 | (char *) "self",(char *) "show", NULL | |
4597 | }; | |
4598 | ||
4599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Caret_Show",kwnames,&obj0,&arg2)) goto fail; | |
4600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4601 | { | |
4602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4603 | (arg1)->Show(arg2); | |
4604 | ||
4605 | wxPyEndAllowThreads(__tstate); | |
4606 | if (PyErr_Occurred()) SWIG_fail; | |
4607 | } | |
4608 | Py_INCREF(Py_None); resultobj = Py_None; | |
4609 | return resultobj; | |
4610 | fail: | |
4611 | return NULL; | |
4612 | } | |
4613 | ||
4614 | ||
4615 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4616 | PyObject *resultobj; | |
4617 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4618 | PyObject * obj0 = 0 ; | |
4619 | char *kwnames[] = { | |
4620 | (char *) "self", NULL | |
4621 | }; | |
4622 | ||
4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4625 | { | |
4626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4627 | (arg1)->Hide(); | |
4628 | ||
4629 | wxPyEndAllowThreads(__tstate); | |
4630 | if (PyErr_Occurred()) SWIG_fail; | |
4631 | } | |
4632 | Py_INCREF(Py_None); resultobj = Py_None; | |
4633 | return resultobj; | |
4634 | fail: | |
4635 | return NULL; | |
4636 | } | |
4637 | ||
4638 | ||
4639 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4640 | PyObject *obj; | |
4641 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4642 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4643 | Py_INCREF(obj); | |
4644 | return Py_BuildValue((char *)""); | |
4645 | } | |
4646 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4647 | PyObject *resultobj; | |
4648 | int result; | |
4649 | char *kwnames[] = { | |
4650 | NULL | |
4651 | }; | |
4652 | ||
4653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4654 | { | |
4655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4656 | result = (int)wxCaret_GetBlinkTime(); | |
4657 | ||
4658 | wxPyEndAllowThreads(__tstate); | |
4659 | if (PyErr_Occurred()) SWIG_fail; | |
4660 | } | |
4661 | resultobj = PyInt_FromLong((long)result); | |
4662 | return resultobj; | |
4663 | fail: | |
4664 | return NULL; | |
4665 | } | |
4666 | ||
4667 | ||
4668 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4669 | PyObject *resultobj; | |
4670 | int arg1 ; | |
4671 | char *kwnames[] = { | |
4672 | (char *) "milliseconds", NULL | |
4673 | }; | |
4674 | ||
4675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Caret_SetBlinkTime",kwnames,&arg1)) goto fail; | |
4676 | { | |
4677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4678 | wxCaret_SetBlinkTime(arg1); | |
4679 | ||
4680 | wxPyEndAllowThreads(__tstate); | |
4681 | if (PyErr_Occurred()) SWIG_fail; | |
4682 | } | |
4683 | Py_INCREF(Py_None); resultobj = Py_None; | |
4684 | return resultobj; | |
4685 | fail: | |
4686 | return NULL; | |
4687 | } | |
4688 | ||
4689 | ||
4690 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4691 | PyObject *resultobj; | |
4692 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4693 | wxBusyCursor *result; | |
4694 | PyObject * obj0 = 0 ; | |
4695 | char *kwnames[] = { | |
4696 | (char *) "cursor", NULL | |
4697 | }; | |
4698 | ||
4699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4700 | if (obj0) { | |
4701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4702 | } | |
4703 | { | |
4704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4705 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
4706 | ||
4707 | wxPyEndAllowThreads(__tstate); | |
4708 | if (PyErr_Occurred()) SWIG_fail; | |
4709 | } | |
4710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1); | |
4711 | return resultobj; | |
4712 | fail: | |
4713 | return NULL; | |
4714 | } | |
4715 | ||
4716 | ||
4717 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4718 | PyObject *resultobj; | |
4719 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
4720 | PyObject * obj0 = 0 ; | |
4721 | char *kwnames[] = { | |
4722 | (char *) "self", NULL | |
4723 | }; | |
4724 | ||
4725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
4726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4727 | { | |
4728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4729 | delete arg1; | |
4730 | ||
4731 | wxPyEndAllowThreads(__tstate); | |
4732 | if (PyErr_Occurred()) SWIG_fail; | |
4733 | } | |
4734 | Py_INCREF(Py_None); resultobj = Py_None; | |
4735 | return resultobj; | |
4736 | fail: | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
4741 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
4742 | PyObject *obj; | |
4743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4744 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
4745 | Py_INCREF(obj); | |
4746 | return Py_BuildValue((char *)""); | |
4747 | } | |
4748 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4749 | PyObject *resultobj; | |
4750 | wxWindow *arg1 = (wxWindow *) NULL ; | |
4751 | wxWindowDisabler *result; | |
4752 | PyObject * obj0 = 0 ; | |
4753 | char *kwnames[] = { | |
4754 | (char *) "winToSkip", NULL | |
4755 | }; | |
4756 | ||
4757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
4758 | if (obj0) { | |
4759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4760 | } | |
4761 | { | |
4762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4763 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
4764 | ||
4765 | wxPyEndAllowThreads(__tstate); | |
4766 | if (PyErr_Occurred()) SWIG_fail; | |
4767 | } | |
4768 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1); | |
4769 | return resultobj; | |
4770 | fail: | |
4771 | return NULL; | |
4772 | } | |
4773 | ||
4774 | ||
4775 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4776 | PyObject *resultobj; | |
4777 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
4778 | PyObject * obj0 = 0 ; | |
4779 | char *kwnames[] = { | |
4780 | (char *) "self", NULL | |
4781 | }; | |
4782 | ||
4783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
4784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4785 | { | |
4786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4787 | delete arg1; | |
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 * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
4800 | PyObject *obj; | |
4801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4802 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
4803 | Py_INCREF(obj); | |
4804 | return Py_BuildValue((char *)""); | |
4805 | } | |
4806 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4807 | PyObject *resultobj; | |
4808 | wxString *arg1 = 0 ; | |
4809 | wxBusyInfo *result; | |
e811c8ce | 4810 | bool temp1 = False ; |
d14a1e28 RD |
4811 | PyObject * obj0 = 0 ; |
4812 | char *kwnames[] = { | |
4813 | (char *) "message", NULL | |
4814 | }; | |
4815 | ||
4816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
4817 | { | |
4818 | arg1 = wxString_in_helper(obj0); | |
4819 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4820 | temp1 = True; |
d14a1e28 RD |
4821 | } |
4822 | { | |
4823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4824 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
4825 | ||
4826 | wxPyEndAllowThreads(__tstate); | |
4827 | if (PyErr_Occurred()) SWIG_fail; | |
4828 | } | |
4829 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1); | |
4830 | { | |
4831 | if (temp1) | |
4832 | delete arg1; | |
4833 | } | |
4834 | return resultobj; | |
4835 | fail: | |
4836 | { | |
4837 | if (temp1) | |
4838 | delete arg1; | |
4839 | } | |
4840 | return NULL; | |
4841 | } | |
4842 | ||
4843 | ||
4844 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4845 | PyObject *resultobj; | |
4846 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
4847 | PyObject * obj0 = 0 ; | |
4848 | char *kwnames[] = { | |
4849 | (char *) "self", NULL | |
4850 | }; | |
4851 | ||
4852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
4853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4854 | { | |
4855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4856 | delete arg1; | |
4857 | ||
4858 | wxPyEndAllowThreads(__tstate); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
4861 | Py_INCREF(Py_None); resultobj = Py_None; | |
4862 | return resultobj; | |
4863 | fail: | |
4864 | return NULL; | |
4865 | } | |
4866 | ||
4867 | ||
4868 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
4869 | PyObject *obj; | |
4870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4871 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
4872 | Py_INCREF(obj); | |
4873 | return Py_BuildValue((char *)""); | |
4874 | } | |
4875 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4876 | PyObject *resultobj; | |
4877 | wxStopWatch *result; | |
4878 | char *kwnames[] = { | |
4879 | NULL | |
4880 | }; | |
4881 | ||
4882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | result = (wxStopWatch *)new wxStopWatch(); | |
4886 | ||
4887 | wxPyEndAllowThreads(__tstate); | |
4888 | if (PyErr_Occurred()) SWIG_fail; | |
4889 | } | |
4890 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1); | |
4891 | return resultobj; | |
4892 | fail: | |
4893 | return NULL; | |
4894 | } | |
4895 | ||
4896 | ||
4897 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4898 | PyObject *resultobj; | |
4899 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4900 | long arg2 = (long) 0 ; | |
4901 | PyObject * obj0 = 0 ; | |
4902 | char *kwnames[] = { | |
4903 | (char *) "self",(char *) "t0", NULL | |
4904 | }; | |
4905 | ||
4906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:StopWatch_Start",kwnames,&obj0,&arg2)) goto fail; | |
4907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4908 | { | |
4909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4910 | (arg1)->Start(arg2); | |
4911 | ||
4912 | wxPyEndAllowThreads(__tstate); | |
4913 | if (PyErr_Occurred()) SWIG_fail; | |
4914 | } | |
4915 | Py_INCREF(Py_None); resultobj = Py_None; | |
4916 | return resultobj; | |
4917 | fail: | |
4918 | return NULL; | |
4919 | } | |
4920 | ||
4921 | ||
4922 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4923 | PyObject *resultobj; | |
4924 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4925 | PyObject * obj0 = 0 ; | |
4926 | char *kwnames[] = { | |
4927 | (char *) "self", NULL | |
4928 | }; | |
4929 | ||
4930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
4931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4932 | { | |
4933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4934 | (arg1)->Pause(); | |
4935 | ||
4936 | wxPyEndAllowThreads(__tstate); | |
4937 | if (PyErr_Occurred()) SWIG_fail; | |
4938 | } | |
4939 | Py_INCREF(Py_None); resultobj = Py_None; | |
4940 | return resultobj; | |
4941 | fail: | |
4942 | return NULL; | |
4943 | } | |
4944 | ||
4945 | ||
4946 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4947 | PyObject *resultobj; | |
4948 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4949 | PyObject * obj0 = 0 ; | |
4950 | char *kwnames[] = { | |
4951 | (char *) "self", NULL | |
4952 | }; | |
4953 | ||
4954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
4955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4956 | { | |
4957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4958 | (arg1)->Resume(); | |
4959 | ||
4960 | wxPyEndAllowThreads(__tstate); | |
4961 | if (PyErr_Occurred()) SWIG_fail; | |
4962 | } | |
4963 | Py_INCREF(Py_None); resultobj = Py_None; | |
4964 | return resultobj; | |
4965 | fail: | |
4966 | return NULL; | |
4967 | } | |
4968 | ||
4969 | ||
4970 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4971 | PyObject *resultobj; | |
4972 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4973 | long result; | |
4974 | PyObject * obj0 = 0 ; | |
4975 | char *kwnames[] = { | |
4976 | (char *) "self", NULL | |
4977 | }; | |
4978 | ||
4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
4980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4981 | { | |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | resultobj = PyInt_FromLong((long)result); | |
4989 | return resultobj; | |
4990 | fail: | |
4991 | return NULL; | |
4992 | } | |
4993 | ||
4994 | ||
4995 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
4996 | PyObject *obj; | |
4997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4998 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
4999 | Py_INCREF(obj); | |
5000 | return Py_BuildValue((char *)""); | |
5001 | } | |
5002 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5003 | PyObject *resultobj; | |
5004 | int arg1 = (int) 9 ; | |
5005 | wxFileHistory *result; | |
5006 | char *kwnames[] = { | |
5007 | (char *) "maxFiles", NULL | |
5008 | }; | |
5009 | ||
5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_FileHistory",kwnames,&arg1)) goto fail; | |
5011 | { | |
5012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5013 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5014 | ||
5015 | wxPyEndAllowThreads(__tstate); | |
5016 | if (PyErr_Occurred()) SWIG_fail; | |
5017 | } | |
5018 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1); | |
5019 | return resultobj; | |
5020 | fail: | |
5021 | return NULL; | |
5022 | } | |
5023 | ||
5024 | ||
5025 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5026 | PyObject *resultobj; | |
5027 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5028 | PyObject * obj0 = 0 ; | |
5029 | char *kwnames[] = { | |
5030 | (char *) "self", NULL | |
5031 | }; | |
5032 | ||
5033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5035 | { | |
5036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5037 | delete arg1; | |
5038 | ||
5039 | wxPyEndAllowThreads(__tstate); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | Py_INCREF(Py_None); resultobj = Py_None; | |
5043 | return resultobj; | |
5044 | fail: | |
5045 | return NULL; | |
5046 | } | |
5047 | ||
5048 | ||
5049 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5050 | PyObject *resultobj; | |
5051 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5052 | wxString *arg2 = 0 ; | |
e811c8ce | 5053 | bool temp2 = False ; |
d14a1e28 RD |
5054 | PyObject * obj0 = 0 ; |
5055 | PyObject * obj1 = 0 ; | |
5056 | char *kwnames[] = { | |
5057 | (char *) "self",(char *) "file", NULL | |
5058 | }; | |
5059 | ||
5060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5062 | { | |
5063 | arg2 = wxString_in_helper(obj1); | |
5064 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5065 | temp2 = True; |
d14a1e28 RD |
5066 | } |
5067 | { | |
5068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5069 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5070 | ||
5071 | wxPyEndAllowThreads(__tstate); | |
5072 | if (PyErr_Occurred()) SWIG_fail; | |
5073 | } | |
5074 | Py_INCREF(Py_None); resultobj = Py_None; | |
5075 | { | |
5076 | if (temp2) | |
5077 | delete arg2; | |
5078 | } | |
5079 | return resultobj; | |
5080 | fail: | |
5081 | { | |
5082 | if (temp2) | |
5083 | delete arg2; | |
5084 | } | |
5085 | return NULL; | |
5086 | } | |
5087 | ||
5088 | ||
5089 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5090 | PyObject *resultobj; | |
5091 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5092 | int arg2 ; | |
5093 | PyObject * obj0 = 0 ; | |
5094 | char *kwnames[] = { | |
5095 | (char *) "self",(char *) "i", NULL | |
5096 | }; | |
5097 | ||
5098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&arg2)) goto fail; | |
5099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5100 | { | |
5101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5102 | (arg1)->RemoveFileFromHistory(arg2); | |
5103 | ||
5104 | wxPyEndAllowThreads(__tstate); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
5107 | Py_INCREF(Py_None); resultobj = Py_None; | |
5108 | return resultobj; | |
5109 | fail: | |
5110 | return NULL; | |
5111 | } | |
5112 | ||
5113 | ||
5114 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5115 | PyObject *resultobj; | |
5116 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5117 | int result; | |
5118 | PyObject * obj0 = 0 ; | |
5119 | char *kwnames[] = { | |
5120 | (char *) "self", NULL | |
5121 | }; | |
5122 | ||
5123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5125 | { | |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5128 | ||
5129 | wxPyEndAllowThreads(__tstate); | |
5130 | if (PyErr_Occurred()) SWIG_fail; | |
5131 | } | |
5132 | resultobj = PyInt_FromLong((long)result); | |
5133 | return resultobj; | |
5134 | fail: | |
5135 | return NULL; | |
5136 | } | |
5137 | ||
5138 | ||
5139 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5140 | PyObject *resultobj; | |
5141 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5142 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5143 | PyObject * obj0 = 0 ; | |
5144 | PyObject * obj1 = 0 ; | |
5145 | char *kwnames[] = { | |
5146 | (char *) "self",(char *) "menu", NULL | |
5147 | }; | |
5148 | ||
5149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
5150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5151 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5152 | { | |
5153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5154 | (arg1)->UseMenu(arg2); | |
5155 | ||
5156 | wxPyEndAllowThreads(__tstate); | |
5157 | if (PyErr_Occurred()) SWIG_fail; | |
5158 | } | |
5159 | Py_INCREF(Py_None); resultobj = Py_None; | |
5160 | return resultobj; | |
5161 | fail: | |
5162 | return NULL; | |
5163 | } | |
5164 | ||
5165 | ||
5166 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5167 | PyObject *resultobj; | |
5168 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5169 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5170 | PyObject * obj0 = 0 ; | |
5171 | PyObject * obj1 = 0 ; | |
5172 | char *kwnames[] = { | |
5173 | (char *) "self",(char *) "menu", NULL | |
5174 | }; | |
5175 | ||
5176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
5177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5178 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5179 | { | |
5180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5181 | (arg1)->RemoveMenu(arg2); | |
5182 | ||
5183 | wxPyEndAllowThreads(__tstate); | |
5184 | if (PyErr_Occurred()) SWIG_fail; | |
5185 | } | |
5186 | Py_INCREF(Py_None); resultobj = Py_None; | |
5187 | return resultobj; | |
5188 | fail: | |
5189 | return NULL; | |
5190 | } | |
5191 | ||
5192 | ||
5193 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5194 | PyObject *resultobj; | |
5195 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5196 | wxConfigBase *arg2 = 0 ; | |
5197 | PyObject * obj0 = 0 ; | |
5198 | PyObject * obj1 = 0 ; | |
5199 | char *kwnames[] = { | |
5200 | (char *) "self",(char *) "config", NULL | |
5201 | }; | |
5202 | ||
5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5205 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5206 | if (arg2 == NULL) { | |
5207 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5208 | } | |
5209 | { | |
5210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5211 | (arg1)->Load(*arg2); | |
5212 | ||
5213 | wxPyEndAllowThreads(__tstate); | |
5214 | if (PyErr_Occurred()) SWIG_fail; | |
5215 | } | |
5216 | Py_INCREF(Py_None); resultobj = Py_None; | |
5217 | return resultobj; | |
5218 | fail: | |
5219 | return NULL; | |
5220 | } | |
5221 | ||
5222 | ||
5223 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5224 | PyObject *resultobj; | |
5225 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5226 | wxConfigBase *arg2 = 0 ; | |
5227 | PyObject * obj0 = 0 ; | |
5228 | PyObject * obj1 = 0 ; | |
5229 | char *kwnames[] = { | |
5230 | (char *) "self",(char *) "config", NULL | |
5231 | }; | |
5232 | ||
5233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5235 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5236 | if (arg2 == NULL) { | |
5237 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5238 | } | |
5239 | { | |
5240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5241 | (arg1)->Save(*arg2); | |
5242 | ||
5243 | wxPyEndAllowThreads(__tstate); | |
5244 | if (PyErr_Occurred()) SWIG_fail; | |
5245 | } | |
5246 | Py_INCREF(Py_None); resultobj = Py_None; | |
5247 | return resultobj; | |
5248 | fail: | |
5249 | return NULL; | |
5250 | } | |
5251 | ||
5252 | ||
5253 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5254 | PyObject *resultobj; | |
5255 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5256 | PyObject * obj0 = 0 ; | |
5257 | char *kwnames[] = { | |
5258 | (char *) "self", NULL | |
5259 | }; | |
5260 | ||
5261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5263 | { | |
5264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5265 | (arg1)->AddFilesToMenu(); | |
5266 | ||
5267 | wxPyEndAllowThreads(__tstate); | |
5268 | if (PyErr_Occurred()) SWIG_fail; | |
5269 | } | |
5270 | Py_INCREF(Py_None); resultobj = Py_None; | |
5271 | return resultobj; | |
5272 | fail: | |
5273 | return NULL; | |
5274 | } | |
5275 | ||
5276 | ||
5277 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5278 | PyObject *resultobj; | |
5279 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5280 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5281 | PyObject * obj0 = 0 ; | |
5282 | PyObject * obj1 = 0 ; | |
5283 | char *kwnames[] = { | |
5284 | (char *) "self",(char *) "menu", NULL | |
5285 | }; | |
5286 | ||
5287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5289 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5292 | (arg1)->AddFilesToMenu(arg2); | |
5293 | ||
5294 | wxPyEndAllowThreads(__tstate); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
5297 | Py_INCREF(Py_None); resultobj = Py_None; | |
5298 | return resultobj; | |
5299 | fail: | |
5300 | return NULL; | |
5301 | } | |
5302 | ||
5303 | ||
5304 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5305 | PyObject *resultobj; | |
5306 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5307 | int arg2 ; | |
5308 | wxString result; | |
5309 | PyObject * obj0 = 0 ; | |
5310 | char *kwnames[] = { | |
5311 | (char *) "self",(char *) "i", NULL | |
5312 | }; | |
5313 | ||
5314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_GetHistoryFile",kwnames,&obj0,&arg2)) goto fail; | |
5315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5316 | { | |
5317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5318 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5319 | ||
5320 | wxPyEndAllowThreads(__tstate); | |
5321 | if (PyErr_Occurred()) SWIG_fail; | |
5322 | } | |
5323 | { | |
5324 | #if wxUSE_UNICODE | |
5325 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5326 | #else | |
5327 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5328 | #endif | |
5329 | } | |
5330 | return resultobj; | |
5331 | fail: | |
5332 | return NULL; | |
5333 | } | |
5334 | ||
5335 | ||
5336 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject *resultobj; | |
5338 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5339 | int result; | |
5340 | PyObject * obj0 = 0 ; | |
5341 | char *kwnames[] = { | |
5342 | (char *) "self", NULL | |
5343 | }; | |
5344 | ||
5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5347 | { | |
5348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5349 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5350 | ||
5351 | wxPyEndAllowThreads(__tstate); | |
5352 | if (PyErr_Occurred()) SWIG_fail; | |
5353 | } | |
5354 | resultobj = PyInt_FromLong((long)result); | |
5355 | return resultobj; | |
5356 | fail: | |
5357 | return NULL; | |
5358 | } | |
5359 | ||
5360 | ||
5361 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5362 | PyObject *obj; | |
5363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5364 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5365 | Py_INCREF(obj); | |
5366 | return Py_BuildValue((char *)""); | |
5367 | } | |
5368 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5369 | PyObject *resultobj; | |
5370 | wxString *arg1 = 0 ; | |
5371 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5372 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5373 | wxSingleInstanceChecker *result; | |
e811c8ce RD |
5374 | bool temp1 = False ; |
5375 | bool temp2 = False ; | |
d14a1e28 RD |
5376 | PyObject * obj0 = 0 ; |
5377 | PyObject * obj1 = 0 ; | |
5378 | char *kwnames[] = { | |
5379 | (char *) "name",(char *) "path", NULL | |
5380 | }; | |
5381 | ||
5382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5383 | { | |
5384 | arg1 = wxString_in_helper(obj0); | |
5385 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5386 | temp1 = True; |
d14a1e28 RD |
5387 | } |
5388 | if (obj1) { | |
5389 | { | |
5390 | arg2 = wxString_in_helper(obj1); | |
5391 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5392 | temp2 = True; |
d14a1e28 RD |
5393 | } |
5394 | } | |
5395 | { | |
5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5397 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5398 | ||
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5403 | { | |
5404 | if (temp1) | |
5405 | delete arg1; | |
5406 | } | |
5407 | { | |
5408 | if (temp2) | |
5409 | delete arg2; | |
5410 | } | |
5411 | return resultobj; | |
5412 | fail: | |
5413 | { | |
5414 | if (temp1) | |
5415 | delete arg1; | |
5416 | } | |
5417 | { | |
5418 | if (temp2) | |
5419 | delete arg2; | |
5420 | } | |
5421 | return NULL; | |
5422 | } | |
5423 | ||
5424 | ||
5425 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5426 | PyObject *resultobj; | |
5427 | wxSingleInstanceChecker *result; | |
5428 | char *kwnames[] = { | |
5429 | NULL | |
5430 | }; | |
5431 | ||
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5433 | { | |
5434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5435 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5436 | ||
5437 | wxPyEndAllowThreads(__tstate); | |
5438 | if (PyErr_Occurred()) SWIG_fail; | |
5439 | } | |
5440 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5441 | return resultobj; | |
5442 | fail: | |
5443 | return NULL; | |
5444 | } | |
5445 | ||
5446 | ||
5447 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5448 | PyObject *resultobj; | |
5449 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5450 | PyObject * obj0 = 0 ; | |
5451 | char *kwnames[] = { | |
5452 | (char *) "self", NULL | |
5453 | }; | |
5454 | ||
5455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5457 | { | |
5458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5459 | delete arg1; | |
5460 | ||
5461 | wxPyEndAllowThreads(__tstate); | |
5462 | if (PyErr_Occurred()) SWIG_fail; | |
5463 | } | |
5464 | Py_INCREF(Py_None); resultobj = Py_None; | |
5465 | return resultobj; | |
5466 | fail: | |
5467 | return NULL; | |
5468 | } | |
5469 | ||
5470 | ||
5471 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5472 | PyObject *resultobj; | |
5473 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5474 | wxString *arg2 = 0 ; | |
5475 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5476 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5477 | bool result; | |
e811c8ce RD |
5478 | bool temp2 = False ; |
5479 | bool temp3 = False ; | |
d14a1e28 RD |
5480 | PyObject * obj0 = 0 ; |
5481 | PyObject * obj1 = 0 ; | |
5482 | PyObject * obj2 = 0 ; | |
5483 | char *kwnames[] = { | |
5484 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5485 | }; | |
5486 | ||
5487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5489 | { | |
5490 | arg2 = wxString_in_helper(obj1); | |
5491 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5492 | temp2 = True; |
d14a1e28 RD |
5493 | } |
5494 | if (obj2) { | |
5495 | { | |
5496 | arg3 = wxString_in_helper(obj2); | |
5497 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 5498 | temp3 = True; |
d14a1e28 RD |
5499 | } |
5500 | } | |
5501 | { | |
5502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5503 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5504 | ||
5505 | wxPyEndAllowThreads(__tstate); | |
5506 | if (PyErr_Occurred()) SWIG_fail; | |
5507 | } | |
5508 | resultobj = PyInt_FromLong((long)result); | |
5509 | { | |
5510 | if (temp2) | |
5511 | delete arg2; | |
5512 | } | |
5513 | { | |
5514 | if (temp3) | |
5515 | delete arg3; | |
5516 | } | |
5517 | return resultobj; | |
5518 | fail: | |
5519 | { | |
5520 | if (temp2) | |
5521 | delete arg2; | |
5522 | } | |
5523 | { | |
5524 | if (temp3) | |
5525 | delete arg3; | |
5526 | } | |
5527 | return NULL; | |
5528 | } | |
5529 | ||
5530 | ||
5531 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5532 | PyObject *resultobj; | |
5533 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5534 | bool result; | |
5535 | PyObject * obj0 = 0 ; | |
5536 | char *kwnames[] = { | |
5537 | (char *) "self", NULL | |
5538 | }; | |
5539 | ||
5540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5542 | { | |
5543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5544 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5545 | ||
5546 | wxPyEndAllowThreads(__tstate); | |
5547 | if (PyErr_Occurred()) SWIG_fail; | |
5548 | } | |
5549 | resultobj = PyInt_FromLong((long)result); | |
5550 | return resultobj; | |
5551 | fail: | |
5552 | return NULL; | |
5553 | } | |
5554 | ||
5555 | ||
5556 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5557 | PyObject *obj; | |
5558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5559 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5560 | Py_INCREF(obj); | |
5561 | return Py_BuildValue((char *)""); | |
5562 | } | |
5563 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj; | |
5565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5566 | wxDC *arg2 = 0 ; | |
5567 | int arg3 ; | |
5568 | PyObject * obj0 = 0 ; | |
5569 | PyObject * obj1 = 0 ; | |
5570 | char *kwnames[] = { | |
5571 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5572 | }; | |
5573 | ||
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DrawWindowOnDC",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5576 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5577 | if (arg2 == NULL) { | |
5578 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5579 | } | |
5580 | { | |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5582 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5583 | ||
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) SWIG_fail; | |
5586 | } | |
5587 | Py_INCREF(Py_None); resultobj = Py_None; | |
5588 | return resultobj; | |
5589 | fail: | |
5590 | return NULL; | |
5591 | } | |
5592 | ||
5593 | ||
5594 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5595 | PyObject *resultobj; | |
5596 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5597 | PyObject * obj0 = 0 ; | |
5598 | char *kwnames[] = { | |
5599 | (char *) "self", NULL | |
5600 | }; | |
5601 | ||
5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
5603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5604 | { | |
5605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5606 | delete arg1; | |
5607 | ||
5608 | wxPyEndAllowThreads(__tstate); | |
5609 | if (PyErr_Occurred()) SWIG_fail; | |
5610 | } | |
5611 | Py_INCREF(Py_None); resultobj = Py_None; | |
5612 | return resultobj; | |
5613 | fail: | |
5614 | return NULL; | |
5615 | } | |
5616 | ||
5617 | ||
5618 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5619 | PyObject *resultobj; | |
5620 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5621 | wxString result; | |
5622 | PyObject * obj0 = 0 ; | |
5623 | char *kwnames[] = { | |
5624 | (char *) "self", NULL | |
5625 | }; | |
5626 | ||
5627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
5628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5629 | { | |
5630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5631 | result = (arg1)->GetTip(); | |
5632 | ||
5633 | wxPyEndAllowThreads(__tstate); | |
5634 | if (PyErr_Occurred()) SWIG_fail; | |
5635 | } | |
5636 | { | |
5637 | #if wxUSE_UNICODE | |
5638 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5639 | #else | |
5640 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5641 | #endif | |
5642 | } | |
5643 | return resultobj; | |
5644 | fail: | |
5645 | return NULL; | |
5646 | } | |
5647 | ||
5648 | ||
5649 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5650 | PyObject *resultobj; | |
5651 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5652 | size_t result; | |
5653 | PyObject * obj0 = 0 ; | |
5654 | char *kwnames[] = { | |
5655 | (char *) "self", NULL | |
5656 | }; | |
5657 | ||
5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
5659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5660 | { | |
5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5662 | result = (size_t)(arg1)->GetCurrentTip(); | |
5663 | ||
5664 | wxPyEndAllowThreads(__tstate); | |
5665 | if (PyErr_Occurred()) SWIG_fail; | |
5666 | } | |
a41e16b6 | 5667 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5668 | return resultobj; |
5669 | fail: | |
5670 | return NULL; | |
5671 | } | |
5672 | ||
5673 | ||
5674 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5675 | PyObject *resultobj; | |
5676 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5677 | wxString *arg2 = 0 ; | |
5678 | wxString result; | |
e811c8ce | 5679 | bool temp2 = False ; |
d14a1e28 RD |
5680 | PyObject * obj0 = 0 ; |
5681 | PyObject * obj1 = 0 ; | |
5682 | char *kwnames[] = { | |
5683 | (char *) "self",(char *) "tip", NULL | |
5684 | }; | |
5685 | ||
5686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
5687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5688 | { | |
5689 | arg2 = wxString_in_helper(obj1); | |
5690 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5691 | temp2 = True; |
d14a1e28 RD |
5692 | } |
5693 | { | |
5694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5695 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
5696 | ||
5697 | wxPyEndAllowThreads(__tstate); | |
5698 | if (PyErr_Occurred()) SWIG_fail; | |
5699 | } | |
5700 | { | |
5701 | #if wxUSE_UNICODE | |
5702 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5703 | #else | |
5704 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5705 | #endif | |
5706 | } | |
5707 | { | |
5708 | if (temp2) | |
5709 | delete arg2; | |
5710 | } | |
5711 | return resultobj; | |
5712 | fail: | |
5713 | { | |
5714 | if (temp2) | |
5715 | delete arg2; | |
5716 | } | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
5721 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
5722 | PyObject *obj; | |
5723 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5724 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
5725 | Py_INCREF(obj); | |
5726 | return Py_BuildValue((char *)""); | |
5727 | } | |
5728 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5729 | PyObject *resultobj; | |
5730 | size_t arg1 ; | |
5731 | wxPyTipProvider *result; | |
5732 | PyObject * obj0 = 0 ; | |
5733 | char *kwnames[] = { | |
5734 | (char *) "currentTip", NULL | |
5735 | }; | |
5736 | ||
5737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
a41e16b6 RD |
5738 | { |
5739 | arg1 = (size_t) SPyObj_AsUnsignedLong(obj0); | |
5740 | if (PyErr_Occurred()) SWIG_fail; | |
5741 | } | |
d14a1e28 RD |
5742 | { |
5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5744 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
5745 | ||
5746 | wxPyEndAllowThreads(__tstate); | |
5747 | if (PyErr_Occurred()) SWIG_fail; | |
5748 | } | |
5749 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1); | |
5750 | return resultobj; | |
5751 | fail: | |
5752 | return NULL; | |
5753 | } | |
5754 | ||
5755 | ||
5756 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5757 | PyObject *resultobj; | |
5758 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
5759 | PyObject *arg2 = (PyObject *) 0 ; | |
5760 | PyObject *arg3 = (PyObject *) 0 ; | |
5761 | PyObject * obj0 = 0 ; | |
5762 | PyObject * obj1 = 0 ; | |
5763 | PyObject * obj2 = 0 ; | |
5764 | char *kwnames[] = { | |
5765 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5766 | }; | |
5767 | ||
5768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5770 | arg2 = obj1; | |
5771 | arg3 = obj2; | |
5772 | { | |
5773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5774 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5775 | ||
5776 | wxPyEndAllowThreads(__tstate); | |
5777 | if (PyErr_Occurred()) SWIG_fail; | |
5778 | } | |
5779 | Py_INCREF(Py_None); resultobj = Py_None; | |
5780 | return resultobj; | |
5781 | fail: | |
5782 | return NULL; | |
5783 | } | |
5784 | ||
5785 | ||
5786 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
5787 | PyObject *obj; | |
5788 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5789 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
5790 | Py_INCREF(obj); | |
5791 | return Py_BuildValue((char *)""); | |
5792 | } | |
5793 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject *resultobj; | |
5795 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5796 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
e811c8ce | 5797 | bool arg3 = (bool) True ; |
d14a1e28 RD |
5798 | bool result; |
5799 | PyObject * obj0 = 0 ; | |
5800 | PyObject * obj1 = 0 ; | |
5801 | PyObject * obj2 = 0 ; | |
5802 | char *kwnames[] = { | |
5803 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
5804 | }; | |
5805 | ||
5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5808 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5809 | if (obj2) { | |
a41e16b6 RD |
5810 | { |
5811 | arg3 = (bool) SPyObj_AsBool(obj2); | |
5812 | if (PyErr_Occurred()) SWIG_fail; | |
5813 | } | |
d14a1e28 RD |
5814 | } |
5815 | { | |
5816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5817 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
5818 | ||
5819 | wxPyEndAllowThreads(__tstate); | |
5820 | if (PyErr_Occurred()) SWIG_fail; | |
5821 | } | |
5822 | resultobj = PyInt_FromLong((long)result); | |
5823 | return resultobj; | |
5824 | fail: | |
5825 | return NULL; | |
5826 | } | |
5827 | ||
5828 | ||
5829 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5830 | PyObject *resultobj; | |
5831 | wxString *arg1 = 0 ; | |
5832 | size_t arg2 ; | |
5833 | wxTipProvider *result; | |
e811c8ce | 5834 | bool temp1 = False ; |
d14a1e28 RD |
5835 | PyObject * obj0 = 0 ; |
5836 | PyObject * obj1 = 0 ; | |
5837 | char *kwnames[] = { | |
5838 | (char *) "filename",(char *) "currentTip", NULL | |
5839 | }; | |
5840 | ||
5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
5842 | { | |
5843 | arg1 = wxString_in_helper(obj0); | |
5844 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5845 | temp1 = True; |
d14a1e28 | 5846 | } |
a41e16b6 RD |
5847 | { |
5848 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | } | |
d14a1e28 RD |
5851 | { |
5852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5853 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
5854 | ||
5855 | wxPyEndAllowThreads(__tstate); | |
5856 | if (PyErr_Occurred()) SWIG_fail; | |
5857 | } | |
5858 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1); | |
5859 | { | |
5860 | if (temp1) | |
5861 | delete arg1; | |
5862 | } | |
5863 | return resultobj; | |
5864 | fail: | |
5865 | { | |
5866 | if (temp1) | |
5867 | delete arg1; | |
5868 | } | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
5873 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject *resultobj; | |
5875 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
5876 | int arg2 = (int) -1 ; | |
5877 | wxPyTimer *result; | |
5878 | PyObject * obj0 = 0 ; | |
5879 | char *kwnames[] = { | |
5880 | (char *) "owner",(char *) "id", NULL | |
5881 | }; | |
5882 | ||
5883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Timer",kwnames,&obj0,&arg2)) goto fail; | |
5884 | if (obj0) { | |
5885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5886 | } | |
5887 | { | |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
5890 | ||
5891 | wxPyEndAllowThreads(__tstate); | |
5892 | if (PyErr_Occurred()) SWIG_fail; | |
5893 | } | |
5894 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1); | |
5895 | return resultobj; | |
5896 | fail: | |
5897 | return NULL; | |
5898 | } | |
5899 | ||
5900 | ||
5901 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5902 | PyObject *resultobj; | |
5903 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5904 | PyObject * obj0 = 0 ; | |
5905 | char *kwnames[] = { | |
5906 | (char *) "self", NULL | |
5907 | }; | |
5908 | ||
5909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
5910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5911 | { | |
5912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5913 | delete arg1; | |
5914 | ||
5915 | wxPyEndAllowThreads(__tstate); | |
5916 | if (PyErr_Occurred()) SWIG_fail; | |
5917 | } | |
5918 | Py_INCREF(Py_None); resultobj = Py_None; | |
5919 | return resultobj; | |
5920 | fail: | |
5921 | return NULL; | |
5922 | } | |
5923 | ||
5924 | ||
7722248d RD |
5925 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
5926 | PyObject *resultobj; | |
5927 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5928 | PyObject *arg2 = (PyObject *) 0 ; | |
5929 | PyObject *arg3 = (PyObject *) 0 ; | |
5930 | PyObject * obj0 = 0 ; | |
5931 | PyObject * obj1 = 0 ; | |
5932 | PyObject * obj2 = 0 ; | |
5933 | char *kwnames[] = { | |
5934 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5935 | }; | |
5936 | ||
5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5939 | arg2 = obj1; | |
5940 | arg3 = obj2; | |
5941 | { | |
5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5943 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5944 | ||
5945 | wxPyEndAllowThreads(__tstate); | |
5946 | if (PyErr_Occurred()) SWIG_fail; | |
5947 | } | |
5948 | Py_INCREF(Py_None); resultobj = Py_None; | |
5949 | return resultobj; | |
5950 | fail: | |
5951 | return NULL; | |
5952 | } | |
5953 | ||
5954 | ||
d14a1e28 RD |
5955 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
5956 | PyObject *resultobj; | |
5957 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5958 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
5959 | int arg3 = (int) -1 ; | |
5960 | PyObject * obj0 = 0 ; | |
5961 | PyObject * obj1 = 0 ; | |
5962 | char *kwnames[] = { | |
5963 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
5964 | }; | |
5965 | ||
5966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Timer_SetOwner",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5968 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5969 | { | |
5970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5971 | (arg1)->SetOwner(arg2,arg3); | |
5972 | ||
5973 | wxPyEndAllowThreads(__tstate); | |
5974 | if (PyErr_Occurred()) SWIG_fail; | |
5975 | } | |
5976 | Py_INCREF(Py_None); resultobj = Py_None; | |
5977 | return resultobj; | |
5978 | fail: | |
5979 | return NULL; | |
5980 | } | |
5981 | ||
5982 | ||
5983 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5984 | PyObject *resultobj; | |
5985 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5986 | int arg2 = (int) -1 ; | |
e811c8ce | 5987 | bool arg3 = (bool) False ; |
d14a1e28 RD |
5988 | bool result; |
5989 | PyObject * obj0 = 0 ; | |
5990 | PyObject * obj2 = 0 ; | |
5991 | char *kwnames[] = { | |
5992 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
5993 | }; | |
5994 | ||
5995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Timer_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
5996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5997 | if (obj2) { | |
a41e16b6 RD |
5998 | { |
5999 | arg3 = (bool) SPyObj_AsBool(obj2); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
d14a1e28 RD |
6002 | } |
6003 | { | |
6004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6005 | result = (bool)(arg1)->Start(arg2,arg3); | |
6006 | ||
6007 | wxPyEndAllowThreads(__tstate); | |
6008 | if (PyErr_Occurred()) SWIG_fail; | |
6009 | } | |
6010 | resultobj = PyInt_FromLong((long)result); | |
6011 | return resultobj; | |
6012 | fail: | |
6013 | return NULL; | |
6014 | } | |
6015 | ||
6016 | ||
6017 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6018 | PyObject *resultobj; | |
6019 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6020 | PyObject * obj0 = 0 ; | |
6021 | char *kwnames[] = { | |
6022 | (char *) "self", NULL | |
6023 | }; | |
6024 | ||
6025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6027 | { | |
6028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6029 | (arg1)->Stop(); | |
6030 | ||
6031 | wxPyEndAllowThreads(__tstate); | |
6032 | if (PyErr_Occurred()) SWIG_fail; | |
6033 | } | |
6034 | Py_INCREF(Py_None); resultobj = Py_None; | |
6035 | return resultobj; | |
6036 | fail: | |
6037 | return NULL; | |
6038 | } | |
6039 | ||
6040 | ||
d14a1e28 RD |
6041 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6042 | PyObject *resultobj; | |
6043 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6044 | bool result; | |
6045 | PyObject * obj0 = 0 ; | |
6046 | char *kwnames[] = { | |
6047 | (char *) "self", NULL | |
6048 | }; | |
6049 | ||
6050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
6051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | resultobj = PyInt_FromLong((long)result); | |
6060 | return resultobj; | |
6061 | fail: | |
6062 | return NULL; | |
6063 | } | |
6064 | ||
6065 | ||
6066 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6067 | PyObject *resultobj; | |
6068 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6069 | int result; | |
6070 | PyObject * obj0 = 0 ; | |
6071 | char *kwnames[] = { | |
6072 | (char *) "self", NULL | |
6073 | }; | |
6074 | ||
6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
6076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6077 | { | |
6078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6079 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6080 | ||
6081 | wxPyEndAllowThreads(__tstate); | |
6082 | if (PyErr_Occurred()) SWIG_fail; | |
6083 | } | |
6084 | resultobj = PyInt_FromLong((long)result); | |
6085 | return resultobj; | |
6086 | fail: | |
6087 | return NULL; | |
6088 | } | |
6089 | ||
6090 | ||
6091 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject *resultobj; | |
6093 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6094 | bool result; | |
6095 | PyObject * obj0 = 0 ; | |
6096 | char *kwnames[] = { | |
6097 | (char *) "self", NULL | |
6098 | }; | |
6099 | ||
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
6101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6102 | { | |
6103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6104 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6105 | ||
6106 | wxPyEndAllowThreads(__tstate); | |
6107 | if (PyErr_Occurred()) SWIG_fail; | |
6108 | } | |
6109 | resultobj = PyInt_FromLong((long)result); | |
6110 | return resultobj; | |
6111 | fail: | |
6112 | return NULL; | |
6113 | } | |
6114 | ||
6115 | ||
cc6dd355 RD |
6116 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6117 | PyObject *resultobj; | |
6118 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6119 | int result; | |
6120 | PyObject * obj0 = 0 ; | |
6121 | char *kwnames[] = { | |
6122 | (char *) "self", NULL | |
6123 | }; | |
6124 | ||
6125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
6126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6127 | { | |
6128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6129 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6130 | ||
6131 | wxPyEndAllowThreads(__tstate); | |
6132 | if (PyErr_Occurred()) SWIG_fail; | |
6133 | } | |
6134 | resultobj = PyInt_FromLong((long)result); | |
6135 | return resultobj; | |
6136 | fail: | |
6137 | return NULL; | |
6138 | } | |
6139 | ||
6140 | ||
d14a1e28 RD |
6141 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6142 | PyObject *obj; | |
6143 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6144 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6145 | Py_INCREF(obj); | |
6146 | return Py_BuildValue((char *)""); | |
6147 | } | |
6148 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6149 | PyObject *resultobj; | |
6150 | int arg1 = (int) 0 ; | |
6151 | int arg2 = (int) 0 ; | |
6152 | wxTimerEvent *result; | |
6153 | char *kwnames[] = { | |
6154 | (char *) "timerid",(char *) "interval", NULL | |
6155 | }; | |
6156 | ||
6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TimerEvent",kwnames,&arg1,&arg2)) goto fail; | |
6158 | { | |
6159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6160 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6161 | ||
6162 | wxPyEndAllowThreads(__tstate); | |
6163 | if (PyErr_Occurred()) SWIG_fail; | |
6164 | } | |
6165 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1); | |
6166 | return resultobj; | |
6167 | fail: | |
6168 | return NULL; | |
6169 | } | |
6170 | ||
6171 | ||
6172 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6173 | PyObject *resultobj; | |
6174 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6175 | int result; | |
6176 | PyObject * obj0 = 0 ; | |
6177 | char *kwnames[] = { | |
6178 | (char *) "self", NULL | |
6179 | }; | |
6180 | ||
6181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
6182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6186 | ||
6187 | wxPyEndAllowThreads(__tstate); | |
6188 | if (PyErr_Occurred()) SWIG_fail; | |
6189 | } | |
6190 | resultobj = PyInt_FromLong((long)result); | |
6191 | return resultobj; | |
6192 | fail: | |
6193 | return NULL; | |
6194 | } | |
6195 | ||
6196 | ||
6197 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6198 | PyObject *obj; | |
6199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6200 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6201 | Py_INCREF(obj); | |
6202 | return Py_BuildValue((char *)""); | |
6203 | } | |
6204 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6205 | PyObject *resultobj; | |
6206 | wxTimer *arg1 = 0 ; | |
6207 | wxTimerRunner *result; | |
6208 | PyObject * obj0 = 0 ; | |
6209 | ||
6210 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6212 | if (arg1 == NULL) { | |
6213 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6214 | } | |
6215 | { | |
6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6217 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6218 | ||
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6223 | return resultobj; | |
6224 | fail: | |
6225 | return NULL; | |
6226 | } | |
6227 | ||
6228 | ||
6229 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6230 | PyObject *resultobj; | |
6231 | wxTimer *arg1 = 0 ; | |
6232 | int arg2 ; | |
e811c8ce | 6233 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6234 | wxTimerRunner *result; |
6235 | PyObject * obj0 = 0 ; | |
6236 | PyObject * obj2 = 0 ; | |
6237 | ||
6238 | if(!PyArg_ParseTuple(args,(char *)"Oi|O:new_TimerRunner",&obj0,&arg2,&obj2)) goto fail; | |
6239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6240 | if (arg1 == NULL) { | |
6241 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6242 | } | |
6243 | if (obj2) { | |
a41e16b6 RD |
6244 | { |
6245 | arg3 = (bool) SPyObj_AsBool(obj2); | |
6246 | if (PyErr_Occurred()) SWIG_fail; | |
6247 | } | |
d14a1e28 RD |
6248 | } |
6249 | { | |
6250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6251 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6252 | ||
6253 | wxPyEndAllowThreads(__tstate); | |
6254 | if (PyErr_Occurred()) SWIG_fail; | |
6255 | } | |
6256 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6257 | return resultobj; | |
6258 | fail: | |
6259 | return NULL; | |
6260 | } | |
6261 | ||
6262 | ||
6263 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6264 | int argc; | |
6265 | PyObject *argv[4]; | |
6266 | int ii; | |
6267 | ||
6268 | argc = PyObject_Length(args); | |
6269 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6270 | argv[ii] = PyTuple_GetItem(args,ii); | |
6271 | } | |
6272 | if (argc == 1) { | |
6273 | int _v; | |
6274 | { | |
6275 | void *ptr; | |
6276 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6277 | _v = 0; | |
6278 | PyErr_Clear(); | |
6279 | } else { | |
6280 | _v = 1; | |
6281 | } | |
6282 | } | |
6283 | if (_v) { | |
6284 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6285 | } | |
6286 | } | |
6287 | if ((argc >= 2) && (argc <= 3)) { | |
6288 | int _v; | |
6289 | { | |
6290 | void *ptr; | |
6291 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6292 | _v = 0; | |
6293 | PyErr_Clear(); | |
6294 | } else { | |
6295 | _v = 1; | |
6296 | } | |
6297 | } | |
6298 | if (_v) { | |
6299 | { | |
a41e16b6 RD |
6300 | SPyObj_AsInt(argv[1]); |
6301 | if (PyErr_Occurred()) { | |
6302 | _v = 0; | |
6303 | PyErr_Clear(); | |
6304 | } else { | |
6305 | _v = 1; | |
6306 | } | |
d14a1e28 RD |
6307 | } |
6308 | if (_v) { | |
6309 | if (argc <= 2) { | |
6310 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6311 | } | |
6312 | { | |
a41e16b6 RD |
6313 | SPyObj_AsBool(argv[2]); |
6314 | if (PyErr_Occurred()) { | |
6315 | _v = 0; | |
6316 | PyErr_Clear(); | |
6317 | } else { | |
6318 | _v = 1; | |
6319 | } | |
d14a1e28 RD |
6320 | } |
6321 | if (_v) { | |
6322 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6323 | } | |
6324 | } | |
6325 | } | |
6326 | } | |
6327 | ||
6328 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6329 | return NULL; | |
6330 | } | |
6331 | ||
6332 | ||
6333 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6334 | PyObject *resultobj; | |
6335 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6336 | PyObject * obj0 = 0 ; | |
6337 | char *kwnames[] = { | |
6338 | (char *) "self", NULL | |
6339 | }; | |
6340 | ||
6341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | delete arg1; | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | Py_INCREF(Py_None); resultobj = Py_None; | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
6357 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject *resultobj; | |
6359 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6360 | int arg2 ; | |
e811c8ce | 6361 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6362 | PyObject * obj0 = 0 ; |
6363 | PyObject * obj2 = 0 ; | |
6364 | char *kwnames[] = { | |
6365 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6366 | }; | |
6367 | ||
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:TimerRunner_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6370 | if (obj2) { | |
a41e16b6 RD |
6371 | { |
6372 | arg3 = (bool) SPyObj_AsBool(obj2); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
d14a1e28 RD |
6375 | } |
6376 | { | |
6377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6378 | (arg1)->Start(arg2,arg3); | |
6379 | ||
6380 | wxPyEndAllowThreads(__tstate); | |
6381 | if (PyErr_Occurred()) SWIG_fail; | |
6382 | } | |
6383 | Py_INCREF(Py_None); resultobj = Py_None; | |
6384 | return resultobj; | |
6385 | fail: | |
6386 | return NULL; | |
6387 | } | |
6388 | ||
6389 | ||
6390 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6391 | PyObject *obj; | |
6392 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6393 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6394 | Py_INCREF(obj); | |
6395 | return Py_BuildValue((char *)""); | |
6396 | } | |
6397 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6398 | PyObject *resultobj; | |
6399 | wxLog *result; | |
6400 | char *kwnames[] = { | |
6401 | NULL | |
6402 | }; | |
6403 | ||
6404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6405 | { | |
6406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6407 | result = (wxLog *)new wxLog(); | |
6408 | ||
6409 | wxPyEndAllowThreads(__tstate); | |
6410 | if (PyErr_Occurred()) SWIG_fail; | |
6411 | } | |
6412 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1); | |
6413 | return resultobj; | |
6414 | fail: | |
6415 | return NULL; | |
6416 | } | |
6417 | ||
6418 | ||
6419 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6420 | PyObject *resultobj; | |
6421 | bool result; | |
6422 | char *kwnames[] = { | |
6423 | NULL | |
6424 | }; | |
6425 | ||
6426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6427 | { | |
6428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6429 | result = (bool)wxLog::IsEnabled(); | |
6430 | ||
6431 | wxPyEndAllowThreads(__tstate); | |
6432 | if (PyErr_Occurred()) SWIG_fail; | |
6433 | } | |
6434 | resultobj = PyInt_FromLong((long)result); | |
6435 | return resultobj; | |
6436 | fail: | |
6437 | return NULL; | |
6438 | } | |
6439 | ||
6440 | ||
6441 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6442 | PyObject *resultobj; | |
e811c8ce | 6443 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6444 | bool result; |
6445 | PyObject * obj0 = 0 ; | |
6446 | char *kwnames[] = { | |
6447 | (char *) "doIt", NULL | |
6448 | }; | |
6449 | ||
6450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6451 | if (obj0) { | |
a41e16b6 RD |
6452 | { |
6453 | arg1 = (bool) SPyObj_AsBool(obj0); | |
6454 | if (PyErr_Occurred()) SWIG_fail; | |
6455 | } | |
d14a1e28 RD |
6456 | } |
6457 | { | |
6458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6459 | result = (bool)wxLog::EnableLogging(arg1); | |
6460 | ||
6461 | wxPyEndAllowThreads(__tstate); | |
6462 | if (PyErr_Occurred()) SWIG_fail; | |
6463 | } | |
6464 | resultobj = PyInt_FromLong((long)result); | |
6465 | return resultobj; | |
6466 | fail: | |
6467 | return NULL; | |
6468 | } | |
6469 | ||
6470 | ||
6471 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6472 | PyObject *resultobj; | |
6473 | wxLogLevel arg1 ; | |
6474 | wxChar *arg2 = (wxChar *) 0 ; | |
6475 | time_t arg3 ; | |
6476 | PyObject * obj0 = 0 ; | |
6477 | PyObject * obj1 = 0 ; | |
6478 | PyObject * obj2 = 0 ; | |
6479 | char *kwnames[] = { | |
6480 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6481 | }; | |
6482 | ||
6483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
a41e16b6 RD |
6484 | { |
6485 | arg1 = (wxLogLevel) SPyObj_AsUnsignedLong(obj0); | |
6486 | if (PyErr_Occurred()) SWIG_fail; | |
6487 | } | |
d14a1e28 | 6488 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 RD |
6489 | { |
6490 | arg3 = (time_t) SPyObj_AsUnsignedInt(obj2); | |
6491 | if (PyErr_Occurred()) SWIG_fail; | |
6492 | } | |
d14a1e28 RD |
6493 | { |
6494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6495 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6496 | ||
6497 | wxPyEndAllowThreads(__tstate); | |
6498 | if (PyErr_Occurred()) SWIG_fail; | |
6499 | } | |
6500 | Py_INCREF(Py_None); resultobj = Py_None; | |
6501 | return resultobj; | |
6502 | fail: | |
6503 | return NULL; | |
6504 | } | |
6505 | ||
6506 | ||
6507 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6508 | PyObject *resultobj; | |
6509 | wxLog *arg1 = (wxLog *) 0 ; | |
6510 | PyObject * obj0 = 0 ; | |
6511 | char *kwnames[] = { | |
6512 | (char *) "self", NULL | |
6513 | }; | |
6514 | ||
6515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6517 | { | |
6518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6519 | (arg1)->Flush(); | |
6520 | ||
6521 | wxPyEndAllowThreads(__tstate); | |
6522 | if (PyErr_Occurred()) SWIG_fail; | |
6523 | } | |
6524 | Py_INCREF(Py_None); resultobj = Py_None; | |
6525 | return resultobj; | |
6526 | fail: | |
6527 | return NULL; | |
6528 | } | |
6529 | ||
6530 | ||
6531 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6532 | PyObject *resultobj; | |
6533 | char *kwnames[] = { | |
6534 | NULL | |
6535 | }; | |
6536 | ||
6537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6538 | { | |
6539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6540 | wxLog::FlushActive(); | |
6541 | ||
6542 | wxPyEndAllowThreads(__tstate); | |
6543 | if (PyErr_Occurred()) SWIG_fail; | |
6544 | } | |
6545 | Py_INCREF(Py_None); resultobj = Py_None; | |
6546 | return resultobj; | |
6547 | fail: | |
6548 | return NULL; | |
6549 | } | |
6550 | ||
6551 | ||
6552 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6553 | PyObject *resultobj; | |
6554 | wxLog *result; | |
6555 | char *kwnames[] = { | |
6556 | NULL | |
6557 | }; | |
6558 | ||
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6560 | { | |
6561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6562 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6563 | ||
6564 | wxPyEndAllowThreads(__tstate); | |
6565 | if (PyErr_Occurred()) SWIG_fail; | |
6566 | } | |
6567 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6568 | return resultobj; | |
6569 | fail: | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
6574 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject *resultobj; | |
6576 | wxLog *arg1 = (wxLog *) 0 ; | |
6577 | wxLog *result; | |
6578 | PyObject * obj0 = 0 ; | |
6579 | char *kwnames[] = { | |
6580 | (char *) "pLogger", NULL | |
6581 | }; | |
6582 | ||
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
6584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6585 | { | |
6586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6587 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6588 | ||
6589 | wxPyEndAllowThreads(__tstate); | |
6590 | if (PyErr_Occurred()) SWIG_fail; | |
6591 | } | |
6592 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6593 | return resultobj; | |
6594 | fail: | |
6595 | return NULL; | |
6596 | } | |
6597 | ||
6598 | ||
6599 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6600 | PyObject *resultobj; | |
6601 | char *kwnames[] = { | |
6602 | NULL | |
6603 | }; | |
6604 | ||
6605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6606 | { | |
6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6608 | wxLog::Suspend(); | |
6609 | ||
6610 | wxPyEndAllowThreads(__tstate); | |
6611 | if (PyErr_Occurred()) SWIG_fail; | |
6612 | } | |
6613 | Py_INCREF(Py_None); resultobj = Py_None; | |
6614 | return resultobj; | |
6615 | fail: | |
6616 | return NULL; | |
6617 | } | |
6618 | ||
6619 | ||
6620 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6621 | PyObject *resultobj; | |
6622 | char *kwnames[] = { | |
6623 | NULL | |
6624 | }; | |
6625 | ||
6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
6627 | { | |
6628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6629 | wxLog::Resume(); | |
6630 | ||
6631 | wxPyEndAllowThreads(__tstate); | |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
6633 | } | |
6634 | Py_INCREF(Py_None); resultobj = Py_None; | |
6635 | return resultobj; | |
6636 | fail: | |
6637 | return NULL; | |
6638 | } | |
6639 | ||
6640 | ||
6641 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6642 | PyObject *resultobj; | |
e811c8ce | 6643 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6644 | PyObject * obj0 = 0 ; |
6645 | char *kwnames[] = { | |
6646 | (char *) "bVerbose", NULL | |
6647 | }; | |
6648 | ||
6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
6650 | if (obj0) { | |
a41e16b6 RD |
6651 | { |
6652 | arg1 = (bool) SPyObj_AsBool(obj0); | |
6653 | if (PyErr_Occurred()) SWIG_fail; | |
6654 | } | |
d14a1e28 RD |
6655 | } |
6656 | { | |
6657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6658 | wxLog::SetVerbose(arg1); | |
6659 | ||
6660 | wxPyEndAllowThreads(__tstate); | |
6661 | if (PyErr_Occurred()) SWIG_fail; | |
6662 | } | |
6663 | Py_INCREF(Py_None); resultobj = Py_None; | |
6664 | return resultobj; | |
6665 | fail: | |
6666 | return NULL; | |
6667 | } | |
6668 | ||
6669 | ||
6670 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6671 | PyObject *resultobj; | |
6672 | wxLogLevel arg1 ; | |
6673 | PyObject * obj0 = 0 ; | |
6674 | char *kwnames[] = { | |
6675 | (char *) "logLevel", NULL | |
6676 | }; | |
6677 | ||
6678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
a41e16b6 RD |
6679 | { |
6680 | arg1 = (wxLogLevel) SPyObj_AsUnsignedLong(obj0); | |
6681 | if (PyErr_Occurred()) SWIG_fail; | |
6682 | } | |
d14a1e28 RD |
6683 | { |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6685 | wxLog::SetLogLevel(arg1); | |
6686 | ||
6687 | wxPyEndAllowThreads(__tstate); | |
6688 | if (PyErr_Occurred()) SWIG_fail; | |
6689 | } | |
6690 | Py_INCREF(Py_None); resultobj = Py_None; | |
6691 | return resultobj; | |
6692 | fail: | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
6697 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6698 | PyObject *resultobj; | |
6699 | char *kwnames[] = { | |
6700 | NULL | |
6701 | }; | |
6702 | ||
6703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
6704 | { | |
6705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6706 | wxLog::DontCreateOnDemand(); | |
6707 | ||
6708 | wxPyEndAllowThreads(__tstate); | |
6709 | if (PyErr_Occurred()) SWIG_fail; | |
6710 | } | |
6711 | Py_INCREF(Py_None); resultobj = Py_None; | |
6712 | return resultobj; | |
6713 | fail: | |
6714 | return NULL; | |
6715 | } | |
6716 | ||
6717 | ||
6718 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6719 | PyObject *resultobj; | |
6720 | wxTraceMask arg1 ; | |
6721 | PyObject * obj0 = 0 ; | |
6722 | char *kwnames[] = { | |
6723 | (char *) "ulMask", NULL | |
6724 | }; | |
6725 | ||
6726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
a41e16b6 RD |
6727 | { |
6728 | arg1 = (wxTraceMask) SPyObj_AsUnsignedLong(obj0); | |
6729 | if (PyErr_Occurred()) SWIG_fail; | |
6730 | } | |
d14a1e28 RD |
6731 | { |
6732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6733 | wxLog::SetTraceMask(arg1); | |
6734 | ||
6735 | wxPyEndAllowThreads(__tstate); | |
6736 | if (PyErr_Occurred()) SWIG_fail; | |
6737 | } | |
6738 | Py_INCREF(Py_None); resultobj = Py_None; | |
6739 | return resultobj; | |
6740 | fail: | |
6741 | return NULL; | |
6742 | } | |
6743 | ||
6744 | ||
6745 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6746 | PyObject *resultobj; | |
6747 | wxString *arg1 = 0 ; | |
e811c8ce | 6748 | bool temp1 = False ; |
d14a1e28 RD |
6749 | PyObject * obj0 = 0 ; |
6750 | char *kwnames[] = { | |
6751 | (char *) "str", NULL | |
6752 | }; | |
6753 | ||
6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
6755 | { | |
6756 | arg1 = wxString_in_helper(obj0); | |
6757 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6758 | temp1 = True; |
d14a1e28 RD |
6759 | } |
6760 | { | |
6761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6762 | wxLog::AddTraceMask((wxString const &)*arg1); | |
6763 | ||
6764 | wxPyEndAllowThreads(__tstate); | |
6765 | if (PyErr_Occurred()) SWIG_fail; | |
6766 | } | |
6767 | Py_INCREF(Py_None); resultobj = Py_None; | |
6768 | { | |
6769 | if (temp1) | |
6770 | delete arg1; | |
6771 | } | |
6772 | return resultobj; | |
6773 | fail: | |
6774 | { | |
6775 | if (temp1) | |
6776 | delete arg1; | |
6777 | } | |
6778 | return NULL; | |
6779 | } | |
6780 | ||
6781 | ||
6782 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6783 | PyObject *resultobj; | |
6784 | wxString *arg1 = 0 ; | |
e811c8ce | 6785 | bool temp1 = False ; |
d14a1e28 RD |
6786 | PyObject * obj0 = 0 ; |
6787 | char *kwnames[] = { | |
6788 | (char *) "str", NULL | |
6789 | }; | |
6790 | ||
6791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
6792 | { | |
6793 | arg1 = wxString_in_helper(obj0); | |
6794 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6795 | temp1 = True; |
d14a1e28 RD |
6796 | } |
6797 | { | |
6798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6799 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
6800 | ||
6801 | wxPyEndAllowThreads(__tstate); | |
6802 | if (PyErr_Occurred()) SWIG_fail; | |
6803 | } | |
6804 | Py_INCREF(Py_None); resultobj = Py_None; | |
6805 | { | |
6806 | if (temp1) | |
6807 | delete arg1; | |
6808 | } | |
6809 | return resultobj; | |
6810 | fail: | |
6811 | { | |
6812 | if (temp1) | |
6813 | delete arg1; | |
6814 | } | |
6815 | return NULL; | |
6816 | } | |
6817 | ||
6818 | ||
6819 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6820 | PyObject *resultobj; | |
6821 | char *kwnames[] = { | |
6822 | NULL | |
6823 | }; | |
6824 | ||
6825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
6826 | { | |
6827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6828 | wxLog::ClearTraceMasks(); | |
6829 | ||
6830 | wxPyEndAllowThreads(__tstate); | |
6831 | if (PyErr_Occurred()) SWIG_fail; | |
6832 | } | |
6833 | Py_INCREF(Py_None); resultobj = Py_None; | |
6834 | return resultobj; | |
6835 | fail: | |
6836 | return NULL; | |
6837 | } | |
6838 | ||
6839 | ||
6840 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6841 | PyObject *resultobj; | |
6842 | wxArrayString *result; | |
6843 | char *kwnames[] = { | |
6844 | NULL | |
6845 | }; | |
6846 | ||
6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
6848 | { | |
6849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6850 | { | |
6851 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
6852 | result = (wxArrayString *) &_result_ref; | |
6853 | } | |
6854 | ||
6855 | wxPyEndAllowThreads(__tstate); | |
6856 | if (PyErr_Occurred()) SWIG_fail; | |
6857 | } | |
6858 | { | |
6859 | resultobj = wxArrayString2PyList_helper(*result); | |
6860 | } | |
6861 | return resultobj; | |
6862 | fail: | |
6863 | return NULL; | |
6864 | } | |
6865 | ||
6866 | ||
6867 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6868 | PyObject *resultobj; | |
6869 | wxChar *arg1 = (wxChar *) 0 ; | |
6870 | PyObject * obj0 = 0 ; | |
6871 | char *kwnames[] = { | |
6872 | (char *) "ts", NULL | |
6873 | }; | |
6874 | ||
6875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
6876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6877 | { | |
6878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6879 | wxLog::SetTimestamp((wxChar const *)arg1); | |
6880 | ||
6881 | wxPyEndAllowThreads(__tstate); | |
6882 | if (PyErr_Occurred()) SWIG_fail; | |
6883 | } | |
6884 | Py_INCREF(Py_None); resultobj = Py_None; | |
6885 | return resultobj; | |
6886 | fail: | |
6887 | return NULL; | |
6888 | } | |
6889 | ||
6890 | ||
6891 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6892 | PyObject *resultobj; | |
6893 | bool result; | |
6894 | char *kwnames[] = { | |
6895 | NULL | |
6896 | }; | |
6897 | ||
6898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
6899 | { | |
6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6901 | result = (bool)wxLog::GetVerbose(); | |
6902 | ||
6903 | wxPyEndAllowThreads(__tstate); | |
6904 | if (PyErr_Occurred()) SWIG_fail; | |
6905 | } | |
6906 | resultobj = PyInt_FromLong((long)result); | |
6907 | return resultobj; | |
6908 | fail: | |
6909 | return NULL; | |
6910 | } | |
6911 | ||
6912 | ||
6913 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6914 | PyObject *resultobj; | |
6915 | wxTraceMask result; | |
6916 | char *kwnames[] = { | |
6917 | NULL | |
6918 | }; | |
6919 | ||
6920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
6921 | { | |
6922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6923 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
6924 | ||
6925 | wxPyEndAllowThreads(__tstate); | |
6926 | if (PyErr_Occurred()) SWIG_fail; | |
6927 | } | |
a41e16b6 | 6928 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6929 | return resultobj; |
6930 | fail: | |
6931 | return NULL; | |
6932 | } | |
6933 | ||
6934 | ||
6935 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6936 | PyObject *resultobj; | |
6937 | wxChar *arg1 = (wxChar *) 0 ; | |
6938 | bool result; | |
6939 | PyObject * obj0 = 0 ; | |
6940 | char *kwnames[] = { | |
6941 | (char *) "mask", NULL | |
6942 | }; | |
6943 | ||
6944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
6945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6946 | { | |
6947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6948 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
6949 | ||
6950 | wxPyEndAllowThreads(__tstate); | |
6951 | if (PyErr_Occurred()) SWIG_fail; | |
6952 | } | |
6953 | resultobj = PyInt_FromLong((long)result); | |
6954 | return resultobj; | |
6955 | fail: | |
6956 | return NULL; | |
6957 | } | |
6958 | ||
6959 | ||
6960 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6961 | PyObject *resultobj; | |
6962 | wxLogLevel result; | |
6963 | char *kwnames[] = { | |
6964 | NULL | |
6965 | }; | |
6966 | ||
6967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
6968 | { | |
6969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6970 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
6971 | ||
6972 | wxPyEndAllowThreads(__tstate); | |
6973 | if (PyErr_Occurred()) SWIG_fail; | |
6974 | } | |
a41e16b6 | 6975 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6976 | return resultobj; |
6977 | fail: | |
6978 | return NULL; | |
6979 | } | |
6980 | ||
6981 | ||
6982 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6983 | PyObject *resultobj; | |
6984 | wxChar *result; | |
6985 | char *kwnames[] = { | |
6986 | NULL | |
6987 | }; | |
6988 | ||
6989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
6990 | { | |
6991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6992 | result = (wxChar *)wxLog::GetTimestamp(); | |
6993 | ||
6994 | wxPyEndAllowThreads(__tstate); | |
6995 | if (PyErr_Occurred()) SWIG_fail; | |
6996 | } | |
6997 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0); | |
6998 | return resultobj; | |
6999 | fail: | |
7000 | return NULL; | |
7001 | } | |
7002 | ||
7003 | ||
7004 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7005 | PyObject *resultobj; | |
7006 | wxString result; | |
7007 | char *kwnames[] = { | |
7008 | NULL | |
7009 | }; | |
7010 | ||
7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7012 | { | |
7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7014 | result = Log_TimeStamp(); | |
7015 | ||
7016 | wxPyEndAllowThreads(__tstate); | |
7017 | if (PyErr_Occurred()) SWIG_fail; | |
7018 | } | |
7019 | { | |
7020 | #if wxUSE_UNICODE | |
7021 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7022 | #else | |
7023 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7024 | #endif | |
7025 | } | |
7026 | return resultobj; | |
7027 | fail: | |
7028 | return NULL; | |
7029 | } | |
7030 | ||
7031 | ||
7032 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7033 | PyObject *resultobj; | |
7034 | wxLog *arg1 = (wxLog *) 0 ; | |
7035 | PyObject * obj0 = 0 ; | |
7036 | char *kwnames[] = { | |
7037 | (char *) "self", NULL | |
7038 | }; | |
7039 | ||
7040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
7041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7042 | { | |
7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7044 | wxLog_Destroy(arg1); | |
7045 | ||
7046 | wxPyEndAllowThreads(__tstate); | |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
7048 | } | |
7049 | Py_INCREF(Py_None); resultobj = Py_None; | |
7050 | return resultobj; | |
7051 | fail: | |
7052 | return NULL; | |
7053 | } | |
7054 | ||
7055 | ||
7056 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7057 | PyObject *obj; | |
7058 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7059 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7060 | Py_INCREF(obj); | |
7061 | return Py_BuildValue((char *)""); | |
7062 | } | |
7063 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7064 | PyObject *resultobj; | |
7065 | wxLogStderr *result; | |
7066 | char *kwnames[] = { | |
7067 | NULL | |
7068 | }; | |
7069 | ||
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7071 | { | |
7072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7073 | result = (wxLogStderr *)new wxLogStderr(); | |
7074 | ||
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
7078 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1); | |
7079 | return resultobj; | |
7080 | fail: | |
7081 | return NULL; | |
7082 | } | |
7083 | ||
7084 | ||
7085 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7086 | PyObject *obj; | |
7087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7088 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7089 | Py_INCREF(obj); | |
7090 | return Py_BuildValue((char *)""); | |
7091 | } | |
7092 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7093 | PyObject *resultobj; | |
7094 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7095 | wxLogTextCtrl *result; | |
7096 | PyObject * obj0 = 0 ; | |
7097 | char *kwnames[] = { | |
7098 | (char *) "pTextCtrl", NULL | |
7099 | }; | |
7100 | ||
7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
7102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7103 | { | |
7104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7105 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7106 | ||
7107 | wxPyEndAllowThreads(__tstate); | |
7108 | if (PyErr_Occurred()) SWIG_fail; | |
7109 | } | |
7110 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1); | |
7111 | return resultobj; | |
7112 | fail: | |
7113 | return NULL; | |
7114 | } | |
7115 | ||
7116 | ||
7117 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7118 | PyObject *obj; | |
7119 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7120 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7121 | Py_INCREF(obj); | |
7122 | return Py_BuildValue((char *)""); | |
7123 | } | |
7124 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7125 | PyObject *resultobj; | |
7126 | wxLogGui *result; | |
7127 | char *kwnames[] = { | |
7128 | NULL | |
7129 | }; | |
7130 | ||
7131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7132 | { | |
7133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7134 | result = (wxLogGui *)new wxLogGui(); | |
7135 | ||
7136 | wxPyEndAllowThreads(__tstate); | |
7137 | if (PyErr_Occurred()) SWIG_fail; | |
7138 | } | |
7139 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1); | |
7140 | return resultobj; | |
7141 | fail: | |
7142 | return NULL; | |
7143 | } | |
7144 | ||
7145 | ||
7146 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7147 | PyObject *obj; | |
7148 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7149 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7150 | Py_INCREF(obj); | |
7151 | return Py_BuildValue((char *)""); | |
7152 | } | |
7153 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7154 | PyObject *resultobj; | |
7155 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7156 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7157 | bool arg3 = (bool) True ; |
7158 | bool arg4 = (bool) True ; | |
d14a1e28 | 7159 | wxLogWindow *result; |
e811c8ce | 7160 | bool temp2 = False ; |
d14a1e28 RD |
7161 | PyObject * obj0 = 0 ; |
7162 | PyObject * obj1 = 0 ; | |
7163 | PyObject * obj2 = 0 ; | |
7164 | PyObject * obj3 = 0 ; | |
7165 | char *kwnames[] = { | |
7166 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7167 | }; | |
7168 | ||
7169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7171 | { | |
7172 | arg2 = wxString_in_helper(obj1); | |
7173 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7174 | temp2 = True; |
d14a1e28 RD |
7175 | } |
7176 | if (obj2) { | |
a41e16b6 RD |
7177 | { |
7178 | arg3 = (bool) SPyObj_AsBool(obj2); | |
7179 | if (PyErr_Occurred()) SWIG_fail; | |
7180 | } | |
d14a1e28 RD |
7181 | } |
7182 | if (obj3) { | |
a41e16b6 RD |
7183 | { |
7184 | arg4 = (bool) SPyObj_AsBool(obj3); | |
7185 | if (PyErr_Occurred()) SWIG_fail; | |
7186 | } | |
d14a1e28 RD |
7187 | } |
7188 | { | |
7189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7190 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7191 | ||
7192 | wxPyEndAllowThreads(__tstate); | |
7193 | if (PyErr_Occurred()) SWIG_fail; | |
7194 | } | |
7195 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1); | |
7196 | { | |
7197 | if (temp2) | |
7198 | delete arg2; | |
7199 | } | |
7200 | return resultobj; | |
7201 | fail: | |
7202 | { | |
7203 | if (temp2) | |
7204 | delete arg2; | |
7205 | } | |
7206 | return NULL; | |
7207 | } | |
7208 | ||
7209 | ||
7210 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7211 | PyObject *resultobj; | |
7212 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
e811c8ce | 7213 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7214 | PyObject * obj0 = 0 ; |
7215 | PyObject * obj1 = 0 ; | |
7216 | char *kwnames[] = { | |
7217 | (char *) "self",(char *) "bShow", NULL | |
7218 | }; | |
7219 | ||
7220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
7221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7222 | if (obj1) { | |
a41e16b6 RD |
7223 | { |
7224 | arg2 = (bool) SPyObj_AsBool(obj1); | |
7225 | if (PyErr_Occurred()) SWIG_fail; | |
7226 | } | |
d14a1e28 RD |
7227 | } |
7228 | { | |
7229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7230 | (arg1)->Show(arg2); | |
7231 | ||
7232 | wxPyEndAllowThreads(__tstate); | |
7233 | if (PyErr_Occurred()) SWIG_fail; | |
7234 | } | |
7235 | Py_INCREF(Py_None); resultobj = Py_None; | |
7236 | return resultobj; | |
7237 | fail: | |
7238 | return NULL; | |
7239 | } | |
7240 | ||
7241 | ||
7242 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7243 | PyObject *resultobj; | |
7244 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7245 | wxFrame *result; | |
7246 | PyObject * obj0 = 0 ; | |
7247 | char *kwnames[] = { | |
7248 | (char *) "self", NULL | |
7249 | }; | |
7250 | ||
7251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7253 | { | |
7254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7255 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7256 | ||
7257 | wxPyEndAllowThreads(__tstate); | |
7258 | if (PyErr_Occurred()) SWIG_fail; | |
7259 | } | |
7260 | { | |
7261 | resultobj = wxPyMake_wxObject(result); | |
7262 | } | |
7263 | return resultobj; | |
7264 | fail: | |
7265 | return NULL; | |
7266 | } | |
7267 | ||
7268 | ||
7269 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7270 | PyObject *resultobj; | |
7271 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7272 | wxLog *result; | |
7273 | PyObject * obj0 = 0 ; | |
7274 | char *kwnames[] = { | |
7275 | (char *) "self", NULL | |
7276 | }; | |
7277 | ||
7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7280 | { | |
7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7282 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7283 | ||
7284 | wxPyEndAllowThreads(__tstate); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | return NULL; | |
7291 | } | |
7292 | ||
7293 | ||
7294 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7295 | PyObject *resultobj; | |
7296 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7297 | bool result; | |
7298 | PyObject * obj0 = 0 ; | |
7299 | char *kwnames[] = { | |
7300 | (char *) "self", NULL | |
7301 | }; | |
7302 | ||
7303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7305 | { | |
7306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7307 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7308 | ||
7309 | wxPyEndAllowThreads(__tstate); | |
7310 | if (PyErr_Occurred()) SWIG_fail; | |
7311 | } | |
7312 | resultobj = PyInt_FromLong((long)result); | |
7313 | return resultobj; | |
7314 | fail: | |
7315 | return NULL; | |
7316 | } | |
7317 | ||
7318 | ||
7319 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7320 | PyObject *resultobj; | |
7321 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7322 | bool arg2 ; | |
7323 | PyObject * obj0 = 0 ; | |
7324 | PyObject * obj1 = 0 ; | |
7325 | char *kwnames[] = { | |
7326 | (char *) "self",(char *) "bDoPass", NULL | |
7327 | }; | |
7328 | ||
7329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
7331 | { |
7332 | arg2 = (bool) SPyObj_AsBool(obj1); | |
7333 | if (PyErr_Occurred()) SWIG_fail; | |
7334 | } | |
d14a1e28 RD |
7335 | { |
7336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7337 | (arg1)->PassMessages(arg2); | |
7338 | ||
7339 | wxPyEndAllowThreads(__tstate); | |
7340 | if (PyErr_Occurred()) SWIG_fail; | |
7341 | } | |
7342 | Py_INCREF(Py_None); resultobj = Py_None; | |
7343 | return resultobj; | |
7344 | fail: | |
7345 | return NULL; | |
7346 | } | |
7347 | ||
7348 | ||
7349 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7350 | PyObject *obj; | |
7351 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7352 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7353 | Py_INCREF(obj); | |
7354 | return Py_BuildValue((char *)""); | |
7355 | } | |
7356 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7357 | PyObject *resultobj; | |
7358 | wxLog *arg1 = (wxLog *) 0 ; | |
7359 | wxLogChain *result; | |
7360 | PyObject * obj0 = 0 ; | |
7361 | char *kwnames[] = { | |
7362 | (char *) "logger", NULL | |
7363 | }; | |
7364 | ||
7365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7367 | { | |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | result = (wxLogChain *)new wxLogChain(arg1); | |
7370 | ||
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
7374 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1); | |
7375 | return resultobj; | |
7376 | fail: | |
7377 | return NULL; | |
7378 | } | |
7379 | ||
7380 | ||
7381 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7382 | PyObject *resultobj; | |
7383 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7384 | wxLog *arg2 = (wxLog *) 0 ; | |
7385 | PyObject * obj0 = 0 ; | |
7386 | PyObject * obj1 = 0 ; | |
7387 | char *kwnames[] = { | |
7388 | (char *) "self",(char *) "logger", NULL | |
7389 | }; | |
7390 | ||
7391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7393 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7394 | { | |
7395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7396 | (arg1)->SetLog(arg2); | |
7397 | ||
7398 | wxPyEndAllowThreads(__tstate); | |
7399 | if (PyErr_Occurred()) SWIG_fail; | |
7400 | } | |
7401 | Py_INCREF(Py_None); resultobj = Py_None; | |
7402 | return resultobj; | |
7403 | fail: | |
7404 | return NULL; | |
7405 | } | |
7406 | ||
7407 | ||
7408 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7409 | PyObject *resultobj; | |
7410 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7411 | bool arg2 ; | |
7412 | PyObject * obj0 = 0 ; | |
7413 | PyObject * obj1 = 0 ; | |
7414 | char *kwnames[] = { | |
7415 | (char *) "self",(char *) "bDoPass", NULL | |
7416 | }; | |
7417 | ||
7418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
7420 | { |
7421 | arg2 = (bool) SPyObj_AsBool(obj1); | |
7422 | if (PyErr_Occurred()) SWIG_fail; | |
7423 | } | |
d14a1e28 RD |
7424 | { |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7426 | (arg1)->PassMessages(arg2); | |
7427 | ||
7428 | wxPyEndAllowThreads(__tstate); | |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
7430 | } | |
7431 | Py_INCREF(Py_None); resultobj = Py_None; | |
7432 | return resultobj; | |
7433 | fail: | |
7434 | return NULL; | |
7435 | } | |
7436 | ||
7437 | ||
7438 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7439 | PyObject *resultobj; | |
7440 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7441 | bool result; | |
7442 | PyObject * obj0 = 0 ; | |
7443 | char *kwnames[] = { | |
7444 | (char *) "self", NULL | |
7445 | }; | |
7446 | ||
7447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7449 | { | |
7450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7451 | result = (bool)(arg1)->IsPassingMessages(); | |
7452 | ||
7453 | wxPyEndAllowThreads(__tstate); | |
7454 | if (PyErr_Occurred()) SWIG_fail; | |
7455 | } | |
7456 | resultobj = PyInt_FromLong((long)result); | |
7457 | return resultobj; | |
7458 | fail: | |
7459 | return NULL; | |
7460 | } | |
7461 | ||
7462 | ||
7463 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7464 | PyObject *resultobj; | |
7465 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7466 | wxLog *result; | |
7467 | PyObject * obj0 = 0 ; | |
7468 | char *kwnames[] = { | |
7469 | (char *) "self", NULL | |
7470 | }; | |
7471 | ||
7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7474 | { | |
7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7476 | result = (wxLog *)(arg1)->GetOldLog(); | |
7477 | ||
7478 | wxPyEndAllowThreads(__tstate); | |
7479 | if (PyErr_Occurred()) SWIG_fail; | |
7480 | } | |
7481 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7482 | return resultobj; | |
7483 | fail: | |
7484 | return NULL; | |
7485 | } | |
7486 | ||
7487 | ||
7488 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7489 | PyObject *obj; | |
7490 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7491 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7492 | Py_INCREF(obj); | |
7493 | return Py_BuildValue((char *)""); | |
7494 | } | |
7495 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7496 | PyObject *resultobj; | |
7497 | unsigned long result; | |
7498 | char *kwnames[] = { | |
7499 | NULL | |
7500 | }; | |
7501 | ||
7502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7503 | { | |
7504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7505 | result = (unsigned long)wxSysErrorCode(); | |
7506 | ||
7507 | wxPyEndAllowThreads(__tstate); | |
7508 | if (PyErr_Occurred()) SWIG_fail; | |
7509 | } | |
a41e16b6 | 7510 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7511 | return resultobj; |
7512 | fail: | |
7513 | return NULL; | |
7514 | } | |
7515 | ||
7516 | ||
7517 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7518 | PyObject *resultobj; | |
7519 | unsigned long arg1 = (unsigned long) 0 ; | |
7520 | wxString result; | |
7521 | PyObject * obj0 = 0 ; | |
7522 | char *kwnames[] = { | |
7523 | (char *) "nErrCode", NULL | |
7524 | }; | |
7525 | ||
7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7527 | if (obj0) { | |
a41e16b6 RD |
7528 | { |
7529 | arg1 = (unsigned long) SPyObj_AsUnsignedLong(obj0); | |
7530 | if (PyErr_Occurred()) SWIG_fail; | |
7531 | } | |
d14a1e28 RD |
7532 | } |
7533 | { | |
7534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7535 | result = wxSysErrorMsg(arg1); | |
7536 | ||
7537 | wxPyEndAllowThreads(__tstate); | |
7538 | if (PyErr_Occurred()) SWIG_fail; | |
7539 | } | |
7540 | { | |
7541 | #if wxUSE_UNICODE | |
7542 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7543 | #else | |
7544 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7545 | #endif | |
7546 | } | |
7547 | return resultobj; | |
7548 | fail: | |
7549 | return NULL; | |
7550 | } | |
7551 | ||
7552 | ||
7553 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7554 | PyObject *resultobj; | |
7555 | wxString *arg1 = 0 ; | |
e811c8ce | 7556 | bool temp1 = False ; |
d14a1e28 RD |
7557 | PyObject * obj0 = 0 ; |
7558 | char *kwnames[] = { | |
7559 | (char *) "msg", NULL | |
7560 | }; | |
7561 | ||
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7563 | { | |
7564 | arg1 = wxString_in_helper(obj0); | |
7565 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7566 | temp1 = True; |
d14a1e28 RD |
7567 | } |
7568 | { | |
7569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7570 | wxLogFatalError((wxString const &)*arg1); | |
7571 | ||
7572 | wxPyEndAllowThreads(__tstate); | |
7573 | if (PyErr_Occurred()) SWIG_fail; | |
7574 | } | |
7575 | Py_INCREF(Py_None); resultobj = Py_None; | |
7576 | { | |
7577 | if (temp1) | |
7578 | delete arg1; | |
7579 | } | |
7580 | return resultobj; | |
7581 | fail: | |
7582 | { | |
7583 | if (temp1) | |
7584 | delete arg1; | |
7585 | } | |
7586 | return NULL; | |
7587 | } | |
7588 | ||
7589 | ||
7590 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7591 | PyObject *resultobj; | |
7592 | wxString *arg1 = 0 ; | |
e811c8ce | 7593 | bool temp1 = False ; |
d14a1e28 RD |
7594 | PyObject * obj0 = 0 ; |
7595 | char *kwnames[] = { | |
7596 | (char *) "msg", NULL | |
7597 | }; | |
7598 | ||
7599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7600 | { | |
7601 | arg1 = wxString_in_helper(obj0); | |
7602 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7603 | temp1 = True; |
d14a1e28 RD |
7604 | } |
7605 | { | |
7606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7607 | wxLogError((wxString const &)*arg1); | |
7608 | ||
7609 | wxPyEndAllowThreads(__tstate); | |
7610 | if (PyErr_Occurred()) SWIG_fail; | |
7611 | } | |
7612 | Py_INCREF(Py_None); resultobj = Py_None; | |
7613 | { | |
7614 | if (temp1) | |
7615 | delete arg1; | |
7616 | } | |
7617 | return resultobj; | |
7618 | fail: | |
7619 | { | |
7620 | if (temp1) | |
7621 | delete arg1; | |
7622 | } | |
7623 | return NULL; | |
7624 | } | |
7625 | ||
7626 | ||
7627 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7628 | PyObject *resultobj; | |
7629 | wxString *arg1 = 0 ; | |
e811c8ce | 7630 | bool temp1 = False ; |
d14a1e28 RD |
7631 | PyObject * obj0 = 0 ; |
7632 | char *kwnames[] = { | |
7633 | (char *) "msg", NULL | |
7634 | }; | |
7635 | ||
7636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
7637 | { | |
7638 | arg1 = wxString_in_helper(obj0); | |
7639 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7640 | temp1 = True; |
d14a1e28 RD |
7641 | } |
7642 | { | |
7643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7644 | wxLogWarning((wxString const &)*arg1); | |
7645 | ||
7646 | wxPyEndAllowThreads(__tstate); | |
7647 | if (PyErr_Occurred()) SWIG_fail; | |
7648 | } | |
7649 | Py_INCREF(Py_None); resultobj = Py_None; | |
7650 | { | |
7651 | if (temp1) | |
7652 | delete arg1; | |
7653 | } | |
7654 | return resultobj; | |
7655 | fail: | |
7656 | { | |
7657 | if (temp1) | |
7658 | delete arg1; | |
7659 | } | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
7664 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7665 | PyObject *resultobj; | |
7666 | wxString *arg1 = 0 ; | |
e811c8ce | 7667 | bool temp1 = False ; |
d14a1e28 RD |
7668 | PyObject * obj0 = 0 ; |
7669 | char *kwnames[] = { | |
7670 | (char *) "msg", NULL | |
7671 | }; | |
7672 | ||
7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
7674 | { | |
7675 | arg1 = wxString_in_helper(obj0); | |
7676 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7677 | temp1 = True; |
d14a1e28 RD |
7678 | } |
7679 | { | |
7680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7681 | wxLogMessage((wxString const &)*arg1); | |
7682 | ||
7683 | wxPyEndAllowThreads(__tstate); | |
7684 | if (PyErr_Occurred()) SWIG_fail; | |
7685 | } | |
7686 | Py_INCREF(Py_None); resultobj = Py_None; | |
7687 | { | |
7688 | if (temp1) | |
7689 | delete arg1; | |
7690 | } | |
7691 | return resultobj; | |
7692 | fail: | |
7693 | { | |
7694 | if (temp1) | |
7695 | delete arg1; | |
7696 | } | |
7697 | return NULL; | |
7698 | } | |
7699 | ||
7700 | ||
7701 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7702 | PyObject *resultobj; | |
7703 | wxString *arg1 = 0 ; | |
e811c8ce | 7704 | bool temp1 = False ; |
d14a1e28 RD |
7705 | PyObject * obj0 = 0 ; |
7706 | char *kwnames[] = { | |
7707 | (char *) "msg", NULL | |
7708 | }; | |
7709 | ||
7710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
7711 | { | |
7712 | arg1 = wxString_in_helper(obj0); | |
7713 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7714 | temp1 = True; |
d14a1e28 RD |
7715 | } |
7716 | { | |
7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7718 | wxLogInfo((wxString const &)*arg1); | |
7719 | ||
7720 | wxPyEndAllowThreads(__tstate); | |
7721 | if (PyErr_Occurred()) SWIG_fail; | |
7722 | } | |
7723 | Py_INCREF(Py_None); resultobj = Py_None; | |
7724 | { | |
7725 | if (temp1) | |
7726 | delete arg1; | |
7727 | } | |
7728 | return resultobj; | |
7729 | fail: | |
7730 | { | |
7731 | if (temp1) | |
7732 | delete arg1; | |
7733 | } | |
7734 | return NULL; | |
7735 | } | |
7736 | ||
7737 | ||
7738 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7739 | PyObject *resultobj; | |
7740 | wxString *arg1 = 0 ; | |
e811c8ce | 7741 | bool temp1 = False ; |
d14a1e28 RD |
7742 | PyObject * obj0 = 0 ; |
7743 | char *kwnames[] = { | |
7744 | (char *) "msg", NULL | |
7745 | }; | |
7746 | ||
7747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
7748 | { | |
7749 | arg1 = wxString_in_helper(obj0); | |
7750 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7751 | temp1 = True; |
d14a1e28 RD |
7752 | } |
7753 | { | |
7754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7755 | wxLogDebug((wxString const &)*arg1); | |
7756 | ||
7757 | wxPyEndAllowThreads(__tstate); | |
7758 | if (PyErr_Occurred()) SWIG_fail; | |
7759 | } | |
7760 | Py_INCREF(Py_None); resultobj = Py_None; | |
7761 | { | |
7762 | if (temp1) | |
7763 | delete arg1; | |
7764 | } | |
7765 | return resultobj; | |
7766 | fail: | |
7767 | { | |
7768 | if (temp1) | |
7769 | delete arg1; | |
7770 | } | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
7775 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7776 | PyObject *resultobj; | |
7777 | wxString *arg1 = 0 ; | |
e811c8ce | 7778 | bool temp1 = False ; |
d14a1e28 RD |
7779 | PyObject * obj0 = 0 ; |
7780 | char *kwnames[] = { | |
7781 | (char *) "msg", NULL | |
7782 | }; | |
7783 | ||
7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
7785 | { | |
7786 | arg1 = wxString_in_helper(obj0); | |
7787 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7788 | temp1 = True; |
d14a1e28 RD |
7789 | } |
7790 | { | |
7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7792 | wxLogVerbose((wxString const &)*arg1); | |
7793 | ||
7794 | wxPyEndAllowThreads(__tstate); | |
7795 | if (PyErr_Occurred()) SWIG_fail; | |
7796 | } | |
7797 | Py_INCREF(Py_None); resultobj = Py_None; | |
7798 | { | |
7799 | if (temp1) | |
7800 | delete arg1; | |
7801 | } | |
7802 | return resultobj; | |
7803 | fail: | |
7804 | { | |
7805 | if (temp1) | |
7806 | delete arg1; | |
7807 | } | |
7808 | return NULL; | |
7809 | } | |
7810 | ||
7811 | ||
7812 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7813 | PyObject *resultobj; | |
7814 | wxString *arg1 = 0 ; | |
e811c8ce | 7815 | bool temp1 = False ; |
d14a1e28 RD |
7816 | PyObject * obj0 = 0 ; |
7817 | char *kwnames[] = { | |
7818 | (char *) "msg", NULL | |
7819 | }; | |
7820 | ||
7821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
7822 | { | |
7823 | arg1 = wxString_in_helper(obj0); | |
7824 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7825 | temp1 = True; |
d14a1e28 RD |
7826 | } |
7827 | { | |
7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7829 | wxLogStatus((wxString const &)*arg1); | |
7830 | ||
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) SWIG_fail; | |
7833 | } | |
7834 | Py_INCREF(Py_None); resultobj = Py_None; | |
7835 | { | |
7836 | if (temp1) | |
7837 | delete arg1; | |
7838 | } | |
7839 | return resultobj; | |
7840 | fail: | |
7841 | { | |
7842 | if (temp1) | |
7843 | delete arg1; | |
7844 | } | |
7845 | return NULL; | |
7846 | } | |
7847 | ||
7848 | ||
7849 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7850 | PyObject *resultobj; | |
7851 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7852 | wxString *arg2 = 0 ; | |
e811c8ce | 7853 | bool temp2 = False ; |
d14a1e28 RD |
7854 | PyObject * obj0 = 0 ; |
7855 | PyObject * obj1 = 0 ; | |
7856 | char *kwnames[] = { | |
7857 | (char *) "pFrame",(char *) "msg", NULL | |
7858 | }; | |
7859 | ||
7860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
7861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7862 | { | |
7863 | arg2 = wxString_in_helper(obj1); | |
7864 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7865 | temp2 = True; |
d14a1e28 RD |
7866 | } |
7867 | { | |
7868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7869 | wxLogStatus(arg1,(wxString const &)*arg2); | |
7870 | ||
7871 | wxPyEndAllowThreads(__tstate); | |
7872 | if (PyErr_Occurred()) SWIG_fail; | |
7873 | } | |
7874 | Py_INCREF(Py_None); resultobj = Py_None; | |
7875 | { | |
7876 | if (temp2) | |
7877 | delete arg2; | |
7878 | } | |
7879 | return resultobj; | |
7880 | fail: | |
7881 | { | |
7882 | if (temp2) | |
7883 | delete arg2; | |
7884 | } | |
7885 | return NULL; | |
7886 | } | |
7887 | ||
7888 | ||
7889 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7890 | PyObject *resultobj; | |
7891 | wxString *arg1 = 0 ; | |
e811c8ce | 7892 | bool temp1 = False ; |
d14a1e28 RD |
7893 | PyObject * obj0 = 0 ; |
7894 | char *kwnames[] = { | |
7895 | (char *) "msg", NULL | |
7896 | }; | |
7897 | ||
7898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
7899 | { | |
7900 | arg1 = wxString_in_helper(obj0); | |
7901 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7902 | temp1 = True; |
d14a1e28 RD |
7903 | } |
7904 | { | |
7905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7906 | wxLogSysError((wxString const &)*arg1); | |
7907 | ||
7908 | wxPyEndAllowThreads(__tstate); | |
7909 | if (PyErr_Occurred()) SWIG_fail; | |
7910 | } | |
7911 | Py_INCREF(Py_None); resultobj = Py_None; | |
7912 | { | |
7913 | if (temp1) | |
7914 | delete arg1; | |
7915 | } | |
7916 | return resultobj; | |
7917 | fail: | |
7918 | { | |
7919 | if (temp1) | |
7920 | delete arg1; | |
7921 | } | |
7922 | return NULL; | |
7923 | } | |
7924 | ||
7925 | ||
cc6dd355 | 7926 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 7927 | PyObject *resultobj; |
cc6dd355 RD |
7928 | unsigned long arg1 ; |
7929 | wxString *arg2 = 0 ; | |
7930 | bool temp2 = False ; | |
d14a1e28 | 7931 | PyObject * obj0 = 0 ; |
cc6dd355 | 7932 | PyObject * obj1 = 0 ; |
d14a1e28 | 7933 | |
cc6dd355 | 7934 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
a41e16b6 RD |
7935 | { |
7936 | arg1 = (unsigned long) SPyObj_AsUnsignedLong(obj0); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
d14a1e28 | 7939 | { |
cc6dd355 RD |
7940 | arg2 = wxString_in_helper(obj1); |
7941 | if (arg2 == NULL) SWIG_fail; | |
7942 | temp2 = True; | |
d14a1e28 RD |
7943 | } |
7944 | { | |
7945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 | 7946 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
7947 | |
7948 | wxPyEndAllowThreads(__tstate); | |
7949 | if (PyErr_Occurred()) SWIG_fail; | |
7950 | } | |
7951 | Py_INCREF(Py_None); resultobj = Py_None; | |
7952 | { | |
cc6dd355 RD |
7953 | if (temp2) |
7954 | delete arg2; | |
d14a1e28 RD |
7955 | } |
7956 | return resultobj; | |
7957 | fail: | |
7958 | { | |
cc6dd355 RD |
7959 | if (temp2) |
7960 | delete arg2; | |
d14a1e28 RD |
7961 | } |
7962 | return NULL; | |
7963 | } | |
7964 | ||
7965 | ||
cc6dd355 | 7966 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
7967 | PyObject *resultobj; |
7968 | wxString *arg1 = 0 ; | |
7969 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7970 | bool temp1 = False ; |
7971 | bool temp2 = False ; | |
d14a1e28 RD |
7972 | PyObject * obj0 = 0 ; |
7973 | PyObject * obj1 = 0 ; | |
d14a1e28 | 7974 | |
cc6dd355 | 7975 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
7976 | { |
7977 | arg1 = wxString_in_helper(obj0); | |
7978 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7979 | temp1 = True; |
d14a1e28 RD |
7980 | } |
7981 | { | |
7982 | arg2 = wxString_in_helper(obj1); | |
7983 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7984 | temp2 = True; |
d14a1e28 RD |
7985 | } |
7986 | { | |
7987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7988 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
7989 | ||
7990 | wxPyEndAllowThreads(__tstate); | |
7991 | if (PyErr_Occurred()) SWIG_fail; | |
7992 | } | |
7993 | Py_INCREF(Py_None); resultobj = Py_None; | |
7994 | { | |
7995 | if (temp1) | |
7996 | delete arg1; | |
7997 | } | |
7998 | { | |
7999 | if (temp2) | |
8000 | delete arg2; | |
8001 | } | |
8002 | return resultobj; | |
8003 | fail: | |
8004 | { | |
8005 | if (temp1) | |
8006 | delete arg1; | |
8007 | } | |
8008 | { | |
8009 | if (temp2) | |
8010 | delete arg2; | |
8011 | } | |
8012 | return NULL; | |
8013 | } | |
8014 | ||
8015 | ||
cc6dd355 RD |
8016 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8017 | int argc; | |
8018 | PyObject *argv[3]; | |
8019 | int ii; | |
8020 | ||
8021 | argc = PyObject_Length(args); | |
8022 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8023 | argv[ii] = PyTuple_GetItem(args,ii); | |
8024 | } | |
8025 | if (argc == 2) { | |
8026 | int _v; | |
8027 | { | |
8028 | void *ptr; | |
8029 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
8030 | _v = 0; | |
8031 | PyErr_Clear(); | |
8032 | } else { | |
8033 | _v = 1; | |
8034 | } | |
8035 | } | |
8036 | if (_v) { | |
8037 | { | |
8038 | void *ptr; | |
8039 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
8040 | _v = 0; | |
8041 | PyErr_Clear(); | |
8042 | } else { | |
8043 | _v = 1; | |
8044 | } | |
8045 | } | |
8046 | if (_v) { | |
8047 | return _wrap_LogTrace__SWIG_1(self,args); | |
8048 | } | |
8049 | } | |
8050 | } | |
8051 | if (argc == 2) { | |
8052 | int _v; | |
8053 | { | |
a41e16b6 RD |
8054 | SPyObj_AsUnsignedLong(argv[0]); |
8055 | if (PyErr_Occurred()) { | |
8056 | _v = 0; | |
8057 | PyErr_Clear(); | |
8058 | } else { | |
8059 | _v = 1; | |
8060 | } | |
cc6dd355 RD |
8061 | } |
8062 | if (_v) { | |
8063 | { | |
8064 | void *ptr; | |
8065 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
8066 | _v = 0; | |
8067 | PyErr_Clear(); | |
8068 | } else { | |
8069 | _v = 1; | |
8070 | } | |
8071 | } | |
8072 | if (_v) { | |
8073 | return _wrap_LogTrace__SWIG_0(self,args); | |
8074 | } | |
8075 | } | |
8076 | } | |
8077 | ||
8078 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8079 | return NULL; | |
8080 | } | |
8081 | ||
8082 | ||
d14a1e28 RD |
8083 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8084 | PyObject *resultobj; | |
8085 | unsigned long arg1 ; | |
8086 | wxString *arg2 = 0 ; | |
e811c8ce | 8087 | bool temp2 = False ; |
d14a1e28 RD |
8088 | PyObject * obj0 = 0 ; |
8089 | PyObject * obj1 = 0 ; | |
8090 | char *kwnames[] = { | |
8091 | (char *) "level",(char *) "msg", NULL | |
8092 | }; | |
8093 | ||
8094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
a41e16b6 RD |
8095 | { |
8096 | arg1 = (unsigned long) SPyObj_AsUnsignedLong(obj0); | |
8097 | if (PyErr_Occurred()) SWIG_fail; | |
8098 | } | |
d14a1e28 RD |
8099 | { |
8100 | arg2 = wxString_in_helper(obj1); | |
8101 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8102 | temp2 = True; |
d14a1e28 RD |
8103 | } |
8104 | { | |
8105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8106 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8107 | ||
8108 | wxPyEndAllowThreads(__tstate); | |
8109 | if (PyErr_Occurred()) SWIG_fail; | |
8110 | } | |
8111 | Py_INCREF(Py_None); resultobj = Py_None; | |
8112 | { | |
8113 | if (temp2) | |
8114 | delete arg2; | |
8115 | } | |
8116 | return resultobj; | |
8117 | fail: | |
8118 | { | |
8119 | if (temp2) | |
8120 | delete arg2; | |
8121 | } | |
8122 | return NULL; | |
8123 | } | |
8124 | ||
8125 | ||
8126 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8127 | PyObject *resultobj; | |
8128 | wxString *arg1 = 0 ; | |
8129 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8130 | bool temp1 = False ; |
8131 | bool temp2 = False ; | |
d14a1e28 RD |
8132 | PyObject * obj0 = 0 ; |
8133 | PyObject * obj1 = 0 ; | |
8134 | char *kwnames[] = { | |
8135 | (char *) "title",(char *) "text", NULL | |
8136 | }; | |
8137 | ||
8138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8139 | { | |
8140 | arg1 = wxString_in_helper(obj0); | |
8141 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8142 | temp1 = True; |
d14a1e28 RD |
8143 | } |
8144 | { | |
8145 | arg2 = wxString_in_helper(obj1); | |
8146 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8147 | temp2 = True; |
d14a1e28 RD |
8148 | } |
8149 | { | |
8150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8151 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8152 | ||
8153 | wxPyEndAllowThreads(__tstate); | |
8154 | if (PyErr_Occurred()) SWIG_fail; | |
8155 | } | |
8156 | Py_INCREF(Py_None); resultobj = Py_None; | |
8157 | { | |
8158 | if (temp1) | |
8159 | delete arg1; | |
8160 | } | |
8161 | { | |
8162 | if (temp2) | |
8163 | delete arg2; | |
8164 | } | |
8165 | return resultobj; | |
8166 | fail: | |
8167 | { | |
8168 | if (temp1) | |
8169 | delete arg1; | |
8170 | } | |
8171 | { | |
8172 | if (temp2) | |
8173 | delete arg2; | |
8174 | } | |
8175 | return NULL; | |
8176 | } | |
8177 | ||
8178 | ||
8179 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8180 | PyObject *resultobj; | |
8181 | wxLogNull *result; | |
8182 | char *kwnames[] = { | |
8183 | NULL | |
8184 | }; | |
8185 | ||
8186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8187 | { | |
8188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8189 | result = (wxLogNull *)new wxLogNull(); | |
8190 | ||
8191 | wxPyEndAllowThreads(__tstate); | |
8192 | if (PyErr_Occurred()) SWIG_fail; | |
8193 | } | |
8194 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1); | |
8195 | return resultobj; | |
8196 | fail: | |
8197 | return NULL; | |
8198 | } | |
8199 | ||
8200 | ||
8201 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8202 | PyObject *resultobj; | |
8203 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8204 | PyObject * obj0 = 0 ; | |
8205 | char *kwnames[] = { | |
8206 | (char *) "self", NULL | |
8207 | }; | |
8208 | ||
8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
8210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8211 | { | |
8212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8213 | delete arg1; | |
8214 | ||
8215 | wxPyEndAllowThreads(__tstate); | |
8216 | if (PyErr_Occurred()) SWIG_fail; | |
8217 | } | |
8218 | Py_INCREF(Py_None); resultobj = Py_None; | |
8219 | return resultobj; | |
8220 | fail: | |
8221 | return NULL; | |
8222 | } | |
8223 | ||
8224 | ||
8225 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8226 | PyObject *obj; | |
8227 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8228 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8229 | Py_INCREF(obj); | |
8230 | return Py_BuildValue((char *)""); | |
8231 | } | |
8232 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8233 | PyObject *resultobj; | |
8234 | wxPyLog *result; | |
8235 | char *kwnames[] = { | |
8236 | NULL | |
8237 | }; | |
8238 | ||
8239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8240 | { | |
8241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8242 | result = (wxPyLog *)new wxPyLog(); | |
8243 | ||
8244 | wxPyEndAllowThreads(__tstate); | |
8245 | if (PyErr_Occurred()) SWIG_fail; | |
8246 | } | |
8247 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1); | |
8248 | return resultobj; | |
8249 | fail: | |
8250 | return NULL; | |
8251 | } | |
8252 | ||
8253 | ||
8254 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8255 | PyObject *resultobj; | |
8256 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8257 | PyObject *arg2 = (PyObject *) 0 ; | |
8258 | PyObject *arg3 = (PyObject *) 0 ; | |
8259 | PyObject * obj0 = 0 ; | |
8260 | PyObject * obj1 = 0 ; | |
8261 | PyObject * obj2 = 0 ; | |
8262 | char *kwnames[] = { | |
8263 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8264 | }; | |
8265 | ||
8266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8268 | arg2 = obj1; | |
8269 | arg3 = obj2; | |
8270 | { | |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8273 | ||
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | } | |
8277 | Py_INCREF(Py_None); resultobj = Py_None; | |
8278 | return resultobj; | |
8279 | fail: | |
8280 | return NULL; | |
8281 | } | |
8282 | ||
8283 | ||
8284 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8285 | PyObject *obj; | |
8286 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8287 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8288 | Py_INCREF(obj); | |
8289 | return Py_BuildValue((char *)""); | |
8290 | } | |
8291 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8292 | PyObject *resultobj; | |
8293 | int arg1 ; | |
8294 | int arg2 = (int) wxSIGTERM ; | |
8295 | int result; | |
8296 | char *kwnames[] = { | |
8297 | (char *) "pid",(char *) "sig", NULL | |
8298 | }; | |
8299 | ||
8300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:Process_Kill",kwnames,&arg1,&arg2)) goto fail; | |
8301 | { | |
8302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8303 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8304 | ||
8305 | wxPyEndAllowThreads(__tstate); | |
8306 | if (PyErr_Occurred()) SWIG_fail; | |
8307 | } | |
8308 | resultobj = PyInt_FromLong((long)result); | |
8309 | return resultobj; | |
8310 | fail: | |
8311 | return NULL; | |
8312 | } | |
8313 | ||
8314 | ||
8315 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8316 | PyObject *resultobj; | |
8317 | int arg1 ; | |
8318 | bool result; | |
8319 | char *kwnames[] = { | |
8320 | (char *) "pid", NULL | |
8321 | }; | |
8322 | ||
8323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Process_Exists",kwnames,&arg1)) goto fail; | |
8324 | { | |
8325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8326 | result = (bool)wxPyProcess::Exists(arg1); | |
8327 | ||
8328 | wxPyEndAllowThreads(__tstate); | |
8329 | if (PyErr_Occurred()) SWIG_fail; | |
8330 | } | |
8331 | resultobj = PyInt_FromLong((long)result); | |
8332 | return resultobj; | |
8333 | fail: | |
8334 | return NULL; | |
8335 | } | |
8336 | ||
8337 | ||
8338 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8339 | PyObject *resultobj; | |
8340 | wxString *arg1 = 0 ; | |
8341 | int arg2 = (int) wxEXEC_ASYNC ; | |
8342 | wxPyProcess *result; | |
e811c8ce | 8343 | bool temp1 = False ; |
d14a1e28 RD |
8344 | PyObject * obj0 = 0 ; |
8345 | char *kwnames[] = { | |
8346 | (char *) "cmd",(char *) "flags", NULL | |
8347 | }; | |
8348 | ||
8349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Process_Open",kwnames,&obj0,&arg2)) goto fail; | |
8350 | { | |
8351 | arg1 = wxString_in_helper(obj0); | |
8352 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8353 | temp1 = True; |
d14a1e28 RD |
8354 | } |
8355 | { | |
8356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8357 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8358 | ||
8359 | wxPyEndAllowThreads(__tstate); | |
8360 | if (PyErr_Occurred()) SWIG_fail; | |
8361 | } | |
8362 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0); | |
8363 | { | |
8364 | if (temp1) | |
8365 | delete arg1; | |
8366 | } | |
8367 | return resultobj; | |
8368 | fail: | |
8369 | { | |
8370 | if (temp1) | |
8371 | delete arg1; | |
8372 | } | |
8373 | return NULL; | |
8374 | } | |
8375 | ||
8376 | ||
8377 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8378 | PyObject *resultobj; | |
8379 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8380 | int arg2 = (int) -1 ; | |
8381 | wxPyProcess *result; | |
8382 | PyObject * obj0 = 0 ; | |
8383 | char *kwnames[] = { | |
8384 | (char *) "parent",(char *) "id", NULL | |
8385 | }; | |
8386 | ||
8387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Process",kwnames,&obj0,&arg2)) goto fail; | |
8388 | if (obj0) { | |
8389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8390 | } | |
8391 | { | |
8392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8393 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8394 | ||
8395 | wxPyEndAllowThreads(__tstate); | |
8396 | if (PyErr_Occurred()) SWIG_fail; | |
8397 | } | |
8398 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1); | |
8399 | return resultobj; | |
8400 | fail: | |
8401 | return NULL; | |
8402 | } | |
8403 | ||
8404 | ||
8405 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8406 | PyObject *resultobj; | |
8407 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8408 | PyObject *arg2 = (PyObject *) 0 ; | |
8409 | PyObject *arg3 = (PyObject *) 0 ; | |
8410 | PyObject * obj0 = 0 ; | |
8411 | PyObject * obj1 = 0 ; | |
8412 | PyObject * obj2 = 0 ; | |
8413 | char *kwnames[] = { | |
8414 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8415 | }; | |
8416 | ||
8417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8419 | arg2 = obj1; | |
8420 | arg3 = obj2; | |
8421 | { | |
8422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8423 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8424 | ||
8425 | wxPyEndAllowThreads(__tstate); | |
8426 | if (PyErr_Occurred()) SWIG_fail; | |
8427 | } | |
8428 | Py_INCREF(Py_None); resultobj = Py_None; | |
8429 | return resultobj; | |
8430 | fail: | |
8431 | return NULL; | |
8432 | } | |
8433 | ||
8434 | ||
8435 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8436 | PyObject *resultobj; | |
8437 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8438 | int arg2 ; | |
8439 | int arg3 ; | |
8440 | PyObject * obj0 = 0 ; | |
8441 | char *kwnames[] = { | |
8442 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8443 | }; | |
8444 | ||
8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Process_base_OnTerminate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8447 | { | |
8448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8449 | (arg1)->base_OnTerminate(arg2,arg3); | |
8450 | ||
8451 | wxPyEndAllowThreads(__tstate); | |
8452 | if (PyErr_Occurred()) SWIG_fail; | |
8453 | } | |
8454 | Py_INCREF(Py_None); resultobj = Py_None; | |
8455 | return resultobj; | |
8456 | fail: | |
8457 | return NULL; | |
8458 | } | |
8459 | ||
8460 | ||
8461 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8462 | PyObject *resultobj; | |
8463 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8464 | PyObject * obj0 = 0 ; | |
8465 | char *kwnames[] = { | |
8466 | (char *) "self", NULL | |
8467 | }; | |
8468 | ||
8469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8471 | { | |
8472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8473 | (arg1)->Redirect(); | |
8474 | ||
8475 | wxPyEndAllowThreads(__tstate); | |
8476 | if (PyErr_Occurred()) SWIG_fail; | |
8477 | } | |
8478 | Py_INCREF(Py_None); resultobj = Py_None; | |
8479 | return resultobj; | |
8480 | fail: | |
8481 | return NULL; | |
8482 | } | |
8483 | ||
8484 | ||
8485 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8486 | PyObject *resultobj; | |
8487 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8488 | bool result; | |
8489 | PyObject * obj0 = 0 ; | |
8490 | char *kwnames[] = { | |
8491 | (char *) "self", NULL | |
8492 | }; | |
8493 | ||
8494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8496 | { | |
8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8498 | result = (bool)(arg1)->IsRedirected(); | |
8499 | ||
8500 | wxPyEndAllowThreads(__tstate); | |
8501 | if (PyErr_Occurred()) SWIG_fail; | |
8502 | } | |
8503 | resultobj = PyInt_FromLong((long)result); | |
8504 | return resultobj; | |
8505 | fail: | |
8506 | return NULL; | |
8507 | } | |
8508 | ||
8509 | ||
8510 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8511 | PyObject *resultobj; | |
8512 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8513 | PyObject * obj0 = 0 ; | |
8514 | char *kwnames[] = { | |
8515 | (char *) "self", NULL | |
8516 | }; | |
8517 | ||
8518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8520 | { | |
8521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8522 | (arg1)->Detach(); | |
8523 | ||
8524 | wxPyEndAllowThreads(__tstate); | |
8525 | if (PyErr_Occurred()) SWIG_fail; | |
8526 | } | |
8527 | Py_INCREF(Py_None); resultobj = Py_None; | |
8528 | return resultobj; | |
8529 | fail: | |
8530 | return NULL; | |
8531 | } | |
8532 | ||
8533 | ||
8534 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8535 | PyObject *resultobj; | |
8536 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8537 | wxInputStream *result; | |
8538 | PyObject * obj0 = 0 ; | |
8539 | char *kwnames[] = { | |
8540 | (char *) "self", NULL | |
8541 | }; | |
8542 | ||
8543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
8544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8545 | { | |
8546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8547 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8548 | ||
8549 | wxPyEndAllowThreads(__tstate); | |
8550 | if (PyErr_Occurred()) SWIG_fail; | |
8551 | } | |
8552 | { | |
8553 | wxPyInputStream * _ptr = NULL; | |
8554 | ||
8555 | if (result) { | |
8556 | _ptr = new wxPyInputStream(result); | |
8557 | } | |
e811c8ce | 8558 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8559 | } |
8560 | return resultobj; | |
8561 | fail: | |
8562 | return NULL; | |
8563 | } | |
8564 | ||
8565 | ||
8566 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8567 | PyObject *resultobj; | |
8568 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8569 | wxInputStream *result; | |
8570 | PyObject * obj0 = 0 ; | |
8571 | char *kwnames[] = { | |
8572 | (char *) "self", NULL | |
8573 | }; | |
8574 | ||
8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
8576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8577 | { | |
8578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8579 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8580 | ||
8581 | wxPyEndAllowThreads(__tstate); | |
8582 | if (PyErr_Occurred()) SWIG_fail; | |
8583 | } | |
8584 | { | |
8585 | wxPyInputStream * _ptr = NULL; | |
8586 | ||
8587 | if (result) { | |
8588 | _ptr = new wxPyInputStream(result); | |
8589 | } | |
e811c8ce | 8590 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8591 | } |
8592 | return resultobj; | |
8593 | fail: | |
8594 | return NULL; | |
8595 | } | |
8596 | ||
8597 | ||
8598 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8599 | PyObject *resultobj; | |
8600 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8601 | wxOutputStream *result; | |
8602 | PyObject * obj0 = 0 ; | |
8603 | char *kwnames[] = { | |
8604 | (char *) "self", NULL | |
8605 | }; | |
8606 | ||
8607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
8608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8609 | { | |
8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8611 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
8612 | ||
8613 | wxPyEndAllowThreads(__tstate); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
8616 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0); | |
8617 | return resultobj; | |
8618 | fail: | |
8619 | return NULL; | |
8620 | } | |
8621 | ||
8622 | ||
8623 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8624 | PyObject *resultobj; | |
8625 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8626 | PyObject * obj0 = 0 ; | |
8627 | char *kwnames[] = { | |
8628 | (char *) "self", NULL | |
8629 | }; | |
8630 | ||
8631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
8632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8633 | { | |
8634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8635 | (arg1)->CloseOutput(); | |
8636 | ||
8637 | wxPyEndAllowThreads(__tstate); | |
8638 | if (PyErr_Occurred()) SWIG_fail; | |
8639 | } | |
8640 | Py_INCREF(Py_None); resultobj = Py_None; | |
8641 | return resultobj; | |
8642 | fail: | |
8643 | return NULL; | |
8644 | } | |
8645 | ||
8646 | ||
8647 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8648 | PyObject *resultobj; | |
8649 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8650 | bool result; | |
8651 | PyObject * obj0 = 0 ; | |
8652 | char *kwnames[] = { | |
8653 | (char *) "self", NULL | |
8654 | }; | |
8655 | ||
8656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
8657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8658 | { | |
8659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8660 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
8661 | ||
8662 | wxPyEndAllowThreads(__tstate); | |
8663 | if (PyErr_Occurred()) SWIG_fail; | |
8664 | } | |
8665 | resultobj = PyInt_FromLong((long)result); | |
8666 | return resultobj; | |
8667 | fail: | |
8668 | return NULL; | |
8669 | } | |
8670 | ||
8671 | ||
8672 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8673 | PyObject *resultobj; | |
8674 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8675 | bool result; | |
8676 | PyObject * obj0 = 0 ; | |
8677 | char *kwnames[] = { | |
8678 | (char *) "self", NULL | |
8679 | }; | |
8680 | ||
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
8682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8683 | { | |
8684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8685 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
8686 | ||
8687 | wxPyEndAllowThreads(__tstate); | |
8688 | if (PyErr_Occurred()) SWIG_fail; | |
8689 | } | |
8690 | resultobj = PyInt_FromLong((long)result); | |
8691 | return resultobj; | |
8692 | fail: | |
8693 | return NULL; | |
8694 | } | |
8695 | ||
8696 | ||
8697 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8698 | PyObject *resultobj; | |
8699 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8700 | bool result; | |
8701 | PyObject * obj0 = 0 ; | |
8702 | char *kwnames[] = { | |
8703 | (char *) "self", NULL | |
8704 | }; | |
8705 | ||
8706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
8707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8708 | { | |
8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8710 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
8711 | ||
8712 | wxPyEndAllowThreads(__tstate); | |
8713 | if (PyErr_Occurred()) SWIG_fail; | |
8714 | } | |
8715 | resultobj = PyInt_FromLong((long)result); | |
8716 | return resultobj; | |
8717 | fail: | |
8718 | return NULL; | |
8719 | } | |
8720 | ||
8721 | ||
8722 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
8723 | PyObject *obj; | |
8724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8725 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
8726 | Py_INCREF(obj); | |
8727 | return Py_BuildValue((char *)""); | |
8728 | } | |
8729 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8730 | PyObject *resultobj; | |
8731 | int arg1 = (int) 0 ; | |
8732 | int arg2 = (int) 0 ; | |
8733 | int arg3 = (int) 0 ; | |
8734 | wxProcessEvent *result; | |
8735 | char *kwnames[] = { | |
8736 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
8737 | }; | |
8738 | ||
8739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ProcessEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
8740 | { | |
8741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8742 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
8743 | ||
8744 | wxPyEndAllowThreads(__tstate); | |
8745 | if (PyErr_Occurred()) SWIG_fail; | |
8746 | } | |
8747 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1); | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | return NULL; | |
8751 | } | |
8752 | ||
8753 | ||
8754 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8755 | PyObject *resultobj; | |
8756 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8757 | int result; | |
8758 | PyObject * obj0 = 0 ; | |
8759 | char *kwnames[] = { | |
8760 | (char *) "self", NULL | |
8761 | }; | |
8762 | ||
8763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
8764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8765 | { | |
8766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8767 | result = (int)(arg1)->GetPid(); | |
8768 | ||
8769 | wxPyEndAllowThreads(__tstate); | |
8770 | if (PyErr_Occurred()) SWIG_fail; | |
8771 | } | |
8772 | resultobj = PyInt_FromLong((long)result); | |
8773 | return resultobj; | |
8774 | fail: | |
8775 | return NULL; | |
8776 | } | |
8777 | ||
8778 | ||
8779 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8780 | PyObject *resultobj; | |
8781 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8782 | int result; | |
8783 | PyObject * obj0 = 0 ; | |
8784 | char *kwnames[] = { | |
8785 | (char *) "self", NULL | |
8786 | }; | |
8787 | ||
8788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
8789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8790 | { | |
8791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8792 | result = (int)(arg1)->GetExitCode(); | |
8793 | ||
8794 | wxPyEndAllowThreads(__tstate); | |
8795 | if (PyErr_Occurred()) SWIG_fail; | |
8796 | } | |
8797 | resultobj = PyInt_FromLong((long)result); | |
8798 | return resultobj; | |
8799 | fail: | |
8800 | return NULL; | |
8801 | } | |
8802 | ||
8803 | ||
8804 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8805 | PyObject *resultobj; | |
8806 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8807 | int arg2 ; | |
8808 | PyObject * obj0 = 0 ; | |
8809 | char *kwnames[] = { | |
8810 | (char *) "self",(char *) "m_pid", NULL | |
8811 | }; | |
8812 | ||
8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_pid_set",kwnames,&obj0,&arg2)) goto fail; | |
8814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8815 | if (arg1) (arg1)->m_pid = arg2; | |
8816 | ||
8817 | Py_INCREF(Py_None); resultobj = Py_None; | |
8818 | return resultobj; | |
8819 | fail: | |
8820 | return NULL; | |
8821 | } | |
8822 | ||
8823 | ||
8824 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8825 | PyObject *resultobj; | |
8826 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8827 | int result; | |
8828 | PyObject * obj0 = 0 ; | |
8829 | char *kwnames[] = { | |
8830 | (char *) "self", NULL | |
8831 | }; | |
8832 | ||
8833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
8834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8835 | result = (int) ((arg1)->m_pid); | |
8836 | ||
8837 | resultobj = PyInt_FromLong((long)result); | |
8838 | return resultobj; | |
8839 | fail: | |
8840 | return NULL; | |
8841 | } | |
8842 | ||
8843 | ||
8844 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8845 | PyObject *resultobj; | |
8846 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8847 | int arg2 ; | |
8848 | PyObject * obj0 = 0 ; | |
8849 | char *kwnames[] = { | |
8850 | (char *) "self",(char *) "m_exitcode", NULL | |
8851 | }; | |
8852 | ||
8853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_exitcode_set",kwnames,&obj0,&arg2)) goto fail; | |
8854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8855 | if (arg1) (arg1)->m_exitcode = arg2; | |
8856 | ||
8857 | Py_INCREF(Py_None); resultobj = Py_None; | |
8858 | return resultobj; | |
8859 | fail: | |
8860 | return NULL; | |
8861 | } | |
8862 | ||
8863 | ||
8864 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8865 | PyObject *resultobj; | |
8866 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8867 | int result; | |
8868 | PyObject * obj0 = 0 ; | |
8869 | char *kwnames[] = { | |
8870 | (char *) "self", NULL | |
8871 | }; | |
8872 | ||
8873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
8874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8875 | result = (int) ((arg1)->m_exitcode); | |
8876 | ||
8877 | resultobj = PyInt_FromLong((long)result); | |
8878 | return resultobj; | |
8879 | fail: | |
8880 | return NULL; | |
8881 | } | |
8882 | ||
8883 | ||
8884 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
8885 | PyObject *obj; | |
8886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8887 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
8888 | Py_INCREF(obj); | |
8889 | return Py_BuildValue((char *)""); | |
8890 | } | |
8891 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8892 | PyObject *resultobj; | |
8893 | wxString *arg1 = 0 ; | |
8894 | int arg2 = (int) wxEXEC_ASYNC ; | |
8895 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
8896 | long result; | |
e811c8ce | 8897 | bool temp1 = False ; |
d14a1e28 RD |
8898 | PyObject * obj0 = 0 ; |
8899 | PyObject * obj2 = 0 ; | |
8900 | char *kwnames[] = { | |
8901 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
8902 | }; | |
8903 | ||
8904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Execute",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8905 | { | |
8906 | arg1 = wxString_in_helper(obj0); | |
8907 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8908 | temp1 = True; |
d14a1e28 RD |
8909 | } |
8910 | if (obj2) { | |
8911 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8912 | } | |
8913 | { | |
8914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8915 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
8916 | ||
8917 | wxPyEndAllowThreads(__tstate); | |
8918 | if (PyErr_Occurred()) SWIG_fail; | |
8919 | } | |
8920 | resultobj = PyInt_FromLong((long)result); | |
8921 | { | |
8922 | if (temp1) | |
8923 | delete arg1; | |
8924 | } | |
8925 | return resultobj; | |
8926 | fail: | |
8927 | { | |
8928 | if (temp1) | |
8929 | delete arg1; | |
8930 | } | |
8931 | return NULL; | |
8932 | } | |
8933 | ||
8934 | ||
8935 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8936 | PyObject *resultobj; | |
8937 | int arg1 = (int) wxJOYSTICK1 ; | |
8938 | wxJoystick *result; | |
8939 | char *kwnames[] = { | |
8940 | (char *) "joystick", NULL | |
8941 | }; | |
8942 | ||
8943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_Joystick",kwnames,&arg1)) goto fail; | |
8944 | { | |
8945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8946 | result = (wxJoystick *)new wxJoystick(arg1); | |
8947 | ||
8948 | wxPyEndAllowThreads(__tstate); | |
8949 | if (PyErr_Occurred()) SWIG_fail; | |
8950 | } | |
8951 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1); | |
8952 | return resultobj; | |
8953 | fail: | |
8954 | return NULL; | |
8955 | } | |
8956 | ||
8957 | ||
8958 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8959 | PyObject *resultobj; | |
8960 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8961 | PyObject * obj0 = 0 ; | |
8962 | char *kwnames[] = { | |
8963 | (char *) "self", NULL | |
8964 | }; | |
8965 | ||
8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
8967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8968 | { | |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | delete arg1; | |
8971 | ||
8972 | wxPyEndAllowThreads(__tstate); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | } | |
8975 | Py_INCREF(Py_None); resultobj = Py_None; | |
8976 | return resultobj; | |
8977 | fail: | |
8978 | return NULL; | |
8979 | } | |
8980 | ||
8981 | ||
8982 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8983 | PyObject *resultobj; | |
8984 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8985 | wxPoint result; | |
8986 | PyObject * obj0 = 0 ; | |
8987 | char *kwnames[] = { | |
8988 | (char *) "self", NULL | |
8989 | }; | |
8990 | ||
8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
8992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8993 | { | |
8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8995 | result = (arg1)->GetPosition(); | |
8996 | ||
8997 | wxPyEndAllowThreads(__tstate); | |
8998 | if (PyErr_Occurred()) SWIG_fail; | |
8999 | } | |
9000 | { | |
9001 | wxPoint * resultptr; | |
9002 | resultptr = new wxPoint((wxPoint &) result); | |
9003 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
9004 | } | |
9005 | return resultobj; | |
9006 | fail: | |
9007 | return NULL; | |
9008 | } | |
9009 | ||
9010 | ||
9011 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9012 | PyObject *resultobj; | |
9013 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9014 | int result; | |
9015 | PyObject * obj0 = 0 ; | |
9016 | char *kwnames[] = { | |
9017 | (char *) "self", NULL | |
9018 | }; | |
9019 | ||
9020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
9021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9022 | { | |
9023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9024 | result = (int)(arg1)->GetZPosition(); | |
9025 | ||
9026 | wxPyEndAllowThreads(__tstate); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
9029 | resultobj = PyInt_FromLong((long)result); | |
9030 | return resultobj; | |
9031 | fail: | |
9032 | return NULL; | |
9033 | } | |
9034 | ||
9035 | ||
9036 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9037 | PyObject *resultobj; | |
9038 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9039 | int result; | |
9040 | PyObject * obj0 = 0 ; | |
9041 | char *kwnames[] = { | |
9042 | (char *) "self", NULL | |
9043 | }; | |
9044 | ||
9045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
9046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9047 | { | |
9048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9049 | result = (int)(arg1)->GetButtonState(); | |
9050 | ||
9051 | wxPyEndAllowThreads(__tstate); | |
9052 | if (PyErr_Occurred()) SWIG_fail; | |
9053 | } | |
9054 | resultobj = PyInt_FromLong((long)result); | |
9055 | return resultobj; | |
9056 | fail: | |
9057 | return NULL; | |
9058 | } | |
9059 | ||
9060 | ||
9061 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9062 | PyObject *resultobj; | |
9063 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9064 | int result; | |
9065 | PyObject * obj0 = 0 ; | |
9066 | char *kwnames[] = { | |
9067 | (char *) "self", NULL | |
9068 | }; | |
9069 | ||
9070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
9071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9072 | { | |
9073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9074 | result = (int)(arg1)->GetPOVPosition(); | |
9075 | ||
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
9079 | resultobj = PyInt_FromLong((long)result); | |
9080 | return resultobj; | |
9081 | fail: | |
9082 | return NULL; | |
9083 | } | |
9084 | ||
9085 | ||
9086 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9087 | PyObject *resultobj; | |
9088 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9089 | int result; | |
9090 | PyObject * obj0 = 0 ; | |
9091 | char *kwnames[] = { | |
9092 | (char *) "self", NULL | |
9093 | }; | |
9094 | ||
9095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
9096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9097 | { | |
9098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9099 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9100 | ||
9101 | wxPyEndAllowThreads(__tstate); | |
9102 | if (PyErr_Occurred()) SWIG_fail; | |
9103 | } | |
9104 | resultobj = PyInt_FromLong((long)result); | |
9105 | return resultobj; | |
9106 | fail: | |
9107 | return NULL; | |
9108 | } | |
9109 | ||
9110 | ||
9111 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9112 | PyObject *resultobj; | |
9113 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9114 | int result; | |
9115 | PyObject * obj0 = 0 ; | |
9116 | char *kwnames[] = { | |
9117 | (char *) "self", NULL | |
9118 | }; | |
9119 | ||
9120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
9121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9122 | { | |
9123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9124 | result = (int)(arg1)->GetRudderPosition(); | |
9125 | ||
9126 | wxPyEndAllowThreads(__tstate); | |
9127 | if (PyErr_Occurred()) SWIG_fail; | |
9128 | } | |
9129 | resultobj = PyInt_FromLong((long)result); | |
9130 | return resultobj; | |
9131 | fail: | |
9132 | return NULL; | |
9133 | } | |
9134 | ||
9135 | ||
9136 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9137 | PyObject *resultobj; | |
9138 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9139 | int result; | |
9140 | PyObject * obj0 = 0 ; | |
9141 | char *kwnames[] = { | |
9142 | (char *) "self", NULL | |
9143 | }; | |
9144 | ||
9145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
9146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9147 | { | |
9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9149 | result = (int)(arg1)->GetUPosition(); | |
9150 | ||
9151 | wxPyEndAllowThreads(__tstate); | |
9152 | if (PyErr_Occurred()) SWIG_fail; | |
9153 | } | |
9154 | resultobj = PyInt_FromLong((long)result); | |
9155 | return resultobj; | |
9156 | fail: | |
9157 | return NULL; | |
9158 | } | |
9159 | ||
9160 | ||
9161 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9162 | PyObject *resultobj; | |
9163 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9164 | int result; | |
9165 | PyObject * obj0 = 0 ; | |
9166 | char *kwnames[] = { | |
9167 | (char *) "self", NULL | |
9168 | }; | |
9169 | ||
9170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
9171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9172 | { | |
9173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9174 | result = (int)(arg1)->GetVPosition(); | |
9175 | ||
9176 | wxPyEndAllowThreads(__tstate); | |
9177 | if (PyErr_Occurred()) SWIG_fail; | |
9178 | } | |
9179 | resultobj = PyInt_FromLong((long)result); | |
9180 | return resultobj; | |
9181 | fail: | |
9182 | return NULL; | |
9183 | } | |
9184 | ||
9185 | ||
9186 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9187 | PyObject *resultobj; | |
9188 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9189 | int result; | |
9190 | PyObject * obj0 = 0 ; | |
9191 | char *kwnames[] = { | |
9192 | (char *) "self", NULL | |
9193 | }; | |
9194 | ||
9195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
9196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9197 | { | |
9198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9199 | result = (int)(arg1)->GetMovementThreshold(); | |
9200 | ||
9201 | wxPyEndAllowThreads(__tstate); | |
9202 | if (PyErr_Occurred()) SWIG_fail; | |
9203 | } | |
9204 | resultobj = PyInt_FromLong((long)result); | |
9205 | return resultobj; | |
9206 | fail: | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
9211 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9212 | PyObject *resultobj; | |
9213 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9214 | int arg2 ; | |
9215 | PyObject * obj0 = 0 ; | |
9216 | char *kwnames[] = { | |
9217 | (char *) "self",(char *) "threshold", NULL | |
9218 | }; | |
9219 | ||
9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Joystick_SetMovementThreshold",kwnames,&obj0,&arg2)) goto fail; | |
9221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9222 | { | |
9223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9224 | (arg1)->SetMovementThreshold(arg2); | |
9225 | ||
9226 | wxPyEndAllowThreads(__tstate); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
9229 | Py_INCREF(Py_None); resultobj = Py_None; | |
9230 | return resultobj; | |
9231 | fail: | |
9232 | return NULL; | |
9233 | } | |
9234 | ||
9235 | ||
9236 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9237 | PyObject *resultobj; | |
9238 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9239 | bool result; | |
9240 | PyObject * obj0 = 0 ; | |
9241 | char *kwnames[] = { | |
9242 | (char *) "self", NULL | |
9243 | }; | |
9244 | ||
9245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9247 | { | |
9248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9249 | result = (bool)(arg1)->IsOk(); | |
9250 | ||
9251 | wxPyEndAllowThreads(__tstate); | |
9252 | if (PyErr_Occurred()) SWIG_fail; | |
9253 | } | |
9254 | resultobj = PyInt_FromLong((long)result); | |
9255 | return resultobj; | |
9256 | fail: | |
9257 | return NULL; | |
9258 | } | |
9259 | ||
9260 | ||
9261 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9262 | PyObject *resultobj; | |
9263 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9264 | int result; | |
9265 | PyObject * obj0 = 0 ; | |
9266 | char *kwnames[] = { | |
9267 | (char *) "self", NULL | |
9268 | }; | |
9269 | ||
9270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9272 | { | |
9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9274 | result = (int)(arg1)->GetNumberJoysticks(); | |
9275 | ||
9276 | wxPyEndAllowThreads(__tstate); | |
9277 | if (PyErr_Occurred()) SWIG_fail; | |
9278 | } | |
9279 | resultobj = PyInt_FromLong((long)result); | |
9280 | return resultobj; | |
9281 | fail: | |
9282 | return NULL; | |
9283 | } | |
9284 | ||
9285 | ||
9286 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9287 | PyObject *resultobj; | |
9288 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9289 | int result; | |
9290 | PyObject * obj0 = 0 ; | |
9291 | char *kwnames[] = { | |
9292 | (char *) "self", NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9297 | { | |
9298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9299 | result = (int)(arg1)->GetManufacturerId(); | |
9300 | ||
9301 | wxPyEndAllowThreads(__tstate); | |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
9303 | } | |
9304 | resultobj = PyInt_FromLong((long)result); | |
9305 | return resultobj; | |
9306 | fail: | |
9307 | return NULL; | |
9308 | } | |
9309 | ||
9310 | ||
9311 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9312 | PyObject *resultobj; | |
9313 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9314 | int result; | |
9315 | PyObject * obj0 = 0 ; | |
9316 | char *kwnames[] = { | |
9317 | (char *) "self", NULL | |
9318 | }; | |
9319 | ||
9320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9322 | { | |
9323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9324 | result = (int)(arg1)->GetProductId(); | |
9325 | ||
9326 | wxPyEndAllowThreads(__tstate); | |
9327 | if (PyErr_Occurred()) SWIG_fail; | |
9328 | } | |
9329 | resultobj = PyInt_FromLong((long)result); | |
9330 | return resultobj; | |
9331 | fail: | |
9332 | return NULL; | |
9333 | } | |
9334 | ||
9335 | ||
9336 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9337 | PyObject *resultobj; | |
9338 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9339 | wxString result; | |
9340 | PyObject * obj0 = 0 ; | |
9341 | char *kwnames[] = { | |
9342 | (char *) "self", NULL | |
9343 | }; | |
9344 | ||
9345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",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 = (arg1)->GetProductName(); | |
9350 | ||
9351 | wxPyEndAllowThreads(__tstate); | |
9352 | if (PyErr_Occurred()) SWIG_fail; | |
9353 | } | |
9354 | { | |
9355 | #if wxUSE_UNICODE | |
9356 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9357 | #else | |
9358 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9359 | #endif | |
9360 | } | |
9361 | return resultobj; | |
9362 | fail: | |
9363 | return NULL; | |
9364 | } | |
9365 | ||
9366 | ||
9367 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9368 | PyObject *resultobj; | |
9369 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9370 | int result; | |
9371 | PyObject * obj0 = 0 ; | |
9372 | char *kwnames[] = { | |
9373 | (char *) "self", NULL | |
9374 | }; | |
9375 | ||
9376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9378 | { | |
9379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9380 | result = (int)(arg1)->GetXMin(); | |
9381 | ||
9382 | wxPyEndAllowThreads(__tstate); | |
9383 | if (PyErr_Occurred()) SWIG_fail; | |
9384 | } | |
9385 | resultobj = PyInt_FromLong((long)result); | |
9386 | return resultobj; | |
9387 | fail: | |
9388 | return NULL; | |
9389 | } | |
9390 | ||
9391 | ||
9392 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9393 | PyObject *resultobj; | |
9394 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9395 | int result; | |
9396 | PyObject * obj0 = 0 ; | |
9397 | char *kwnames[] = { | |
9398 | (char *) "self", NULL | |
9399 | }; | |
9400 | ||
9401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9403 | { | |
9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9405 | result = (int)(arg1)->GetYMin(); | |
9406 | ||
9407 | wxPyEndAllowThreads(__tstate); | |
9408 | if (PyErr_Occurred()) SWIG_fail; | |
9409 | } | |
9410 | resultobj = PyInt_FromLong((long)result); | |
9411 | return resultobj; | |
9412 | fail: | |
9413 | return NULL; | |
9414 | } | |
9415 | ||
9416 | ||
9417 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9418 | PyObject *resultobj; | |
9419 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9420 | int result; | |
9421 | PyObject * obj0 = 0 ; | |
9422 | char *kwnames[] = { | |
9423 | (char *) "self", NULL | |
9424 | }; | |
9425 | ||
9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9428 | { | |
9429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9430 | result = (int)(arg1)->GetZMin(); | |
9431 | ||
9432 | wxPyEndAllowThreads(__tstate); | |
9433 | if (PyErr_Occurred()) SWIG_fail; | |
9434 | } | |
9435 | resultobj = PyInt_FromLong((long)result); | |
9436 | return resultobj; | |
9437 | fail: | |
9438 | return NULL; | |
9439 | } | |
9440 | ||
9441 | ||
9442 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9443 | PyObject *resultobj; | |
9444 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9445 | int result; | |
9446 | PyObject * obj0 = 0 ; | |
9447 | char *kwnames[] = { | |
9448 | (char *) "self", NULL | |
9449 | }; | |
9450 | ||
9451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9453 | { | |
9454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9455 | result = (int)(arg1)->GetXMax(); | |
9456 | ||
9457 | wxPyEndAllowThreads(__tstate); | |
9458 | if (PyErr_Occurred()) SWIG_fail; | |
9459 | } | |
9460 | resultobj = PyInt_FromLong((long)result); | |
9461 | return resultobj; | |
9462 | fail: | |
9463 | return NULL; | |
9464 | } | |
9465 | ||
9466 | ||
9467 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9468 | PyObject *resultobj; | |
9469 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9470 | int result; | |
9471 | PyObject * obj0 = 0 ; | |
9472 | char *kwnames[] = { | |
9473 | (char *) "self", NULL | |
9474 | }; | |
9475 | ||
9476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
9477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9478 | { | |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | result = (int)(arg1)->GetYMax(); | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
9485 | resultobj = PyInt_FromLong((long)result); | |
9486 | return resultobj; | |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
9492 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9493 | PyObject *resultobj; | |
9494 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9495 | int result; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | char *kwnames[] = { | |
9498 | (char *) "self", NULL | |
9499 | }; | |
9500 | ||
9501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
9502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9503 | { | |
9504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9505 | result = (int)(arg1)->GetZMax(); | |
9506 | ||
9507 | wxPyEndAllowThreads(__tstate); | |
9508 | if (PyErr_Occurred()) SWIG_fail; | |
9509 | } | |
9510 | resultobj = PyInt_FromLong((long)result); | |
9511 | return resultobj; | |
9512 | fail: | |
9513 | return NULL; | |
9514 | } | |
9515 | ||
9516 | ||
9517 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9518 | PyObject *resultobj; | |
9519 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9520 | int result; | |
9521 | PyObject * obj0 = 0 ; | |
9522 | char *kwnames[] = { | |
9523 | (char *) "self", NULL | |
9524 | }; | |
9525 | ||
9526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
9527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9528 | { | |
9529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9530 | result = (int)(arg1)->GetNumberButtons(); | |
9531 | ||
9532 | wxPyEndAllowThreads(__tstate); | |
9533 | if (PyErr_Occurred()) SWIG_fail; | |
9534 | } | |
9535 | resultobj = PyInt_FromLong((long)result); | |
9536 | return resultobj; | |
9537 | fail: | |
9538 | return NULL; | |
9539 | } | |
9540 | ||
9541 | ||
9542 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9543 | PyObject *resultobj; | |
9544 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9545 | int result; | |
9546 | PyObject * obj0 = 0 ; | |
9547 | char *kwnames[] = { | |
9548 | (char *) "self", NULL | |
9549 | }; | |
9550 | ||
9551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
9552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9553 | { | |
9554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9555 | result = (int)(arg1)->GetNumberAxes(); | |
9556 | ||
9557 | wxPyEndAllowThreads(__tstate); | |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
9559 | } | |
9560 | resultobj = PyInt_FromLong((long)result); | |
9561 | return resultobj; | |
9562 | fail: | |
9563 | return NULL; | |
9564 | } | |
9565 | ||
9566 | ||
9567 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9568 | PyObject *resultobj; | |
9569 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9570 | int result; | |
9571 | PyObject * obj0 = 0 ; | |
9572 | char *kwnames[] = { | |
9573 | (char *) "self", NULL | |
9574 | }; | |
9575 | ||
9576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
9577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9578 | { | |
9579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9580 | result = (int)(arg1)->GetMaxButtons(); | |
9581 | ||
9582 | wxPyEndAllowThreads(__tstate); | |
9583 | if (PyErr_Occurred()) SWIG_fail; | |
9584 | } | |
9585 | resultobj = PyInt_FromLong((long)result); | |
9586 | return resultobj; | |
9587 | fail: | |
9588 | return NULL; | |
9589 | } | |
9590 | ||
9591 | ||
9592 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9593 | PyObject *resultobj; | |
9594 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9595 | int result; | |
9596 | PyObject * obj0 = 0 ; | |
9597 | char *kwnames[] = { | |
9598 | (char *) "self", NULL | |
9599 | }; | |
9600 | ||
9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
9602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9603 | { | |
9604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9605 | result = (int)(arg1)->GetMaxAxes(); | |
9606 | ||
9607 | wxPyEndAllowThreads(__tstate); | |
9608 | if (PyErr_Occurred()) SWIG_fail; | |
9609 | } | |
9610 | resultobj = PyInt_FromLong((long)result); | |
9611 | return resultobj; | |
9612 | fail: | |
9613 | return NULL; | |
9614 | } | |
9615 | ||
9616 | ||
9617 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9618 | PyObject *resultobj; | |
9619 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9620 | int result; | |
9621 | PyObject * obj0 = 0 ; | |
9622 | char *kwnames[] = { | |
9623 | (char *) "self", NULL | |
9624 | }; | |
9625 | ||
9626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
9627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9628 | { | |
9629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9630 | result = (int)(arg1)->GetPollingMin(); | |
9631 | ||
9632 | wxPyEndAllowThreads(__tstate); | |
9633 | if (PyErr_Occurred()) SWIG_fail; | |
9634 | } | |
9635 | resultobj = PyInt_FromLong((long)result); | |
9636 | return resultobj; | |
9637 | fail: | |
9638 | return NULL; | |
9639 | } | |
9640 | ||
9641 | ||
9642 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9643 | PyObject *resultobj; | |
9644 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9645 | int result; | |
9646 | PyObject * obj0 = 0 ; | |
9647 | char *kwnames[] = { | |
9648 | (char *) "self", NULL | |
9649 | }; | |
9650 | ||
9651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
9652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | result = (int)(arg1)->GetPollingMax(); | |
9656 | ||
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | resultobj = PyInt_FromLong((long)result); | |
9661 | return resultobj; | |
9662 | fail: | |
9663 | return NULL; | |
9664 | } | |
9665 | ||
9666 | ||
9667 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9668 | PyObject *resultobj; | |
9669 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9670 | int result; | |
9671 | PyObject * obj0 = 0 ; | |
9672 | char *kwnames[] = { | |
9673 | (char *) "self", NULL | |
9674 | }; | |
9675 | ||
9676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
9677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9678 | { | |
9679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9680 | result = (int)(arg1)->GetRudderMin(); | |
9681 | ||
9682 | wxPyEndAllowThreads(__tstate); | |
9683 | if (PyErr_Occurred()) SWIG_fail; | |
9684 | } | |
9685 | resultobj = PyInt_FromLong((long)result); | |
9686 | return resultobj; | |
9687 | fail: | |
9688 | return NULL; | |
9689 | } | |
9690 | ||
9691 | ||
9692 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9693 | PyObject *resultobj; | |
9694 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9695 | int result; | |
9696 | PyObject * obj0 = 0 ; | |
9697 | char *kwnames[] = { | |
9698 | (char *) "self", NULL | |
9699 | }; | |
9700 | ||
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
9702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9703 | { | |
9704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9705 | result = (int)(arg1)->GetRudderMax(); | |
9706 | ||
9707 | wxPyEndAllowThreads(__tstate); | |
9708 | if (PyErr_Occurred()) SWIG_fail; | |
9709 | } | |
9710 | resultobj = PyInt_FromLong((long)result); | |
9711 | return resultobj; | |
9712 | fail: | |
9713 | return NULL; | |
9714 | } | |
9715 | ||
9716 | ||
9717 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject *resultobj; | |
9719 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9720 | int result; | |
9721 | PyObject * obj0 = 0 ; | |
9722 | char *kwnames[] = { | |
9723 | (char *) "self", NULL | |
9724 | }; | |
9725 | ||
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
9727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9728 | { | |
9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9730 | result = (int)(arg1)->GetUMin(); | |
9731 | ||
9732 | wxPyEndAllowThreads(__tstate); | |
9733 | if (PyErr_Occurred()) SWIG_fail; | |
9734 | } | |
9735 | resultobj = PyInt_FromLong((long)result); | |
9736 | return resultobj; | |
9737 | fail: | |
9738 | return NULL; | |
9739 | } | |
9740 | ||
9741 | ||
9742 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9743 | PyObject *resultobj; | |
9744 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9745 | int result; | |
9746 | PyObject * obj0 = 0 ; | |
9747 | char *kwnames[] = { | |
9748 | (char *) "self", NULL | |
9749 | }; | |
9750 | ||
9751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
9752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9753 | { | |
9754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9755 | result = (int)(arg1)->GetUMax(); | |
9756 | ||
9757 | wxPyEndAllowThreads(__tstate); | |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
9759 | } | |
9760 | resultobj = PyInt_FromLong((long)result); | |
9761 | return resultobj; | |
9762 | fail: | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
9767 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9768 | PyObject *resultobj; | |
9769 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9770 | int result; | |
9771 | PyObject * obj0 = 0 ; | |
9772 | char *kwnames[] = { | |
9773 | (char *) "self", NULL | |
9774 | }; | |
9775 | ||
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
9777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9778 | { | |
9779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9780 | result = (int)(arg1)->GetVMin(); | |
9781 | ||
9782 | wxPyEndAllowThreads(__tstate); | |
9783 | if (PyErr_Occurred()) SWIG_fail; | |
9784 | } | |
9785 | resultobj = PyInt_FromLong((long)result); | |
9786 | return resultobj; | |
9787 | fail: | |
9788 | return NULL; | |
9789 | } | |
9790 | ||
9791 | ||
9792 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9793 | PyObject *resultobj; | |
9794 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9795 | int result; | |
9796 | PyObject * obj0 = 0 ; | |
9797 | char *kwnames[] = { | |
9798 | (char *) "self", NULL | |
9799 | }; | |
9800 | ||
9801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
9802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9803 | { | |
9804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9805 | result = (int)(arg1)->GetVMax(); | |
9806 | ||
9807 | wxPyEndAllowThreads(__tstate); | |
9808 | if (PyErr_Occurred()) SWIG_fail; | |
9809 | } | |
9810 | resultobj = PyInt_FromLong((long)result); | |
9811 | return resultobj; | |
9812 | fail: | |
9813 | return NULL; | |
9814 | } | |
9815 | ||
9816 | ||
9817 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9818 | PyObject *resultobj; | |
9819 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9820 | bool result; | |
9821 | PyObject * obj0 = 0 ; | |
9822 | char *kwnames[] = { | |
9823 | (char *) "self", NULL | |
9824 | }; | |
9825 | ||
9826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
9827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9828 | { | |
9829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9830 | result = (bool)(arg1)->HasRudder(); | |
9831 | ||
9832 | wxPyEndAllowThreads(__tstate); | |
9833 | if (PyErr_Occurred()) SWIG_fail; | |
9834 | } | |
9835 | resultobj = PyInt_FromLong((long)result); | |
9836 | return resultobj; | |
9837 | fail: | |
9838 | return NULL; | |
9839 | } | |
9840 | ||
9841 | ||
9842 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9843 | PyObject *resultobj; | |
9844 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9845 | bool result; | |
9846 | PyObject * obj0 = 0 ; | |
9847 | char *kwnames[] = { | |
9848 | (char *) "self", NULL | |
9849 | }; | |
9850 | ||
9851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
9852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9853 | { | |
9854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9855 | result = (bool)(arg1)->HasZ(); | |
9856 | ||
9857 | wxPyEndAllowThreads(__tstate); | |
9858 | if (PyErr_Occurred()) SWIG_fail; | |
9859 | } | |
9860 | resultobj = PyInt_FromLong((long)result); | |
9861 | return resultobj; | |
9862 | fail: | |
9863 | return NULL; | |
9864 | } | |
9865 | ||
9866 | ||
9867 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9868 | PyObject *resultobj; | |
9869 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9870 | bool result; | |
9871 | PyObject * obj0 = 0 ; | |
9872 | char *kwnames[] = { | |
9873 | (char *) "self", NULL | |
9874 | }; | |
9875 | ||
9876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
9877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9878 | { | |
9879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9880 | result = (bool)(arg1)->HasU(); | |
9881 | ||
9882 | wxPyEndAllowThreads(__tstate); | |
9883 | if (PyErr_Occurred()) SWIG_fail; | |
9884 | } | |
9885 | resultobj = PyInt_FromLong((long)result); | |
9886 | return resultobj; | |
9887 | fail: | |
9888 | return NULL; | |
9889 | } | |
9890 | ||
9891 | ||
9892 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9893 | PyObject *resultobj; | |
9894 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9895 | bool result; | |
9896 | PyObject * obj0 = 0 ; | |
9897 | char *kwnames[] = { | |
9898 | (char *) "self", NULL | |
9899 | }; | |
9900 | ||
9901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
9902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9903 | { | |
9904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9905 | result = (bool)(arg1)->HasV(); | |
9906 | ||
9907 | wxPyEndAllowThreads(__tstate); | |
9908 | if (PyErr_Occurred()) SWIG_fail; | |
9909 | } | |
9910 | resultobj = PyInt_FromLong((long)result); | |
9911 | return resultobj; | |
9912 | fail: | |
9913 | return NULL; | |
9914 | } | |
9915 | ||
9916 | ||
9917 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9918 | PyObject *resultobj; | |
9919 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9920 | bool result; | |
9921 | PyObject * obj0 = 0 ; | |
9922 | char *kwnames[] = { | |
9923 | (char *) "self", NULL | |
9924 | }; | |
9925 | ||
9926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
9927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9928 | { | |
9929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9930 | result = (bool)(arg1)->HasPOV(); | |
9931 | ||
9932 | wxPyEndAllowThreads(__tstate); | |
9933 | if (PyErr_Occurred()) SWIG_fail; | |
9934 | } | |
9935 | resultobj = PyInt_FromLong((long)result); | |
9936 | return resultobj; | |
9937 | fail: | |
9938 | return NULL; | |
9939 | } | |
9940 | ||
9941 | ||
9942 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9943 | PyObject *resultobj; | |
9944 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9945 | bool result; | |
9946 | PyObject * obj0 = 0 ; | |
9947 | char *kwnames[] = { | |
9948 | (char *) "self", NULL | |
9949 | }; | |
9950 | ||
9951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
9952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9953 | { | |
9954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9955 | result = (bool)(arg1)->HasPOV4Dir(); | |
9956 | ||
9957 | wxPyEndAllowThreads(__tstate); | |
9958 | if (PyErr_Occurred()) SWIG_fail; | |
9959 | } | |
9960 | resultobj = PyInt_FromLong((long)result); | |
9961 | return resultobj; | |
9962 | fail: | |
9963 | return NULL; | |
9964 | } | |
9965 | ||
9966 | ||
9967 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9968 | PyObject *resultobj; | |
9969 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9970 | bool result; | |
9971 | PyObject * obj0 = 0 ; | |
9972 | char *kwnames[] = { | |
9973 | (char *) "self", NULL | |
9974 | }; | |
9975 | ||
9976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
9977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9978 | { | |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9980 | result = (bool)(arg1)->HasPOVCTS(); | |
9981 | ||
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
9985 | resultobj = PyInt_FromLong((long)result); | |
9986 | return resultobj; | |
9987 | fail: | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
9992 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9993 | PyObject *resultobj; | |
9994 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9995 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9996 | int arg3 = (int) 0 ; | |
9997 | bool result; | |
9998 | PyObject * obj0 = 0 ; | |
9999 | PyObject * obj1 = 0 ; | |
10000 | char *kwnames[] = { | |
10001 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10002 | }; | |
10003 | ||
10004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Joystick_SetCapture",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10006 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10007 | { | |
10008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10009 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10010 | ||
10011 | wxPyEndAllowThreads(__tstate); | |
10012 | if (PyErr_Occurred()) SWIG_fail; | |
10013 | } | |
10014 | resultobj = PyInt_FromLong((long)result); | |
10015 | return resultobj; | |
10016 | fail: | |
10017 | return NULL; | |
10018 | } | |
10019 | ||
10020 | ||
10021 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10022 | PyObject *resultobj; | |
10023 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10024 | bool result; | |
10025 | PyObject * obj0 = 0 ; | |
10026 | char *kwnames[] = { | |
10027 | (char *) "self", NULL | |
10028 | }; | |
10029 | ||
10030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
10031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10032 | { | |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10034 | result = (bool)(arg1)->ReleaseCapture(); | |
10035 | ||
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
10038 | } | |
10039 | resultobj = PyInt_FromLong((long)result); | |
10040 | return resultobj; | |
10041 | fail: | |
10042 | return NULL; | |
10043 | } | |
10044 | ||
10045 | ||
10046 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10047 | PyObject *obj; | |
10048 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10049 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10050 | Py_INCREF(obj); | |
10051 | return Py_BuildValue((char *)""); | |
10052 | } | |
10053 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10054 | PyObject *resultobj; | |
10055 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10056 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10057 | PyObject * obj0 = 0 ; | |
10058 | PyObject * obj1 = 0 ; | |
10059 | char *kwnames[] = { | |
10060 | (char *) "self",(char *) "m_pos", NULL | |
10061 | }; | |
10062 | ||
10063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
10064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10065 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10066 | if (arg1) (arg1)->m_pos = *arg2; | |
10067 | ||
10068 | Py_INCREF(Py_None); resultobj = Py_None; | |
10069 | return resultobj; | |
10070 | fail: | |
10071 | return NULL; | |
10072 | } | |
10073 | ||
10074 | ||
10075 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10076 | PyObject *resultobj; | |
10077 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10078 | wxPoint *result; | |
10079 | PyObject * obj0 = 0 ; | |
10080 | char *kwnames[] = { | |
10081 | (char *) "self", NULL | |
10082 | }; | |
10083 | ||
10084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
10085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10086 | result = (wxPoint *)& ((arg1)->m_pos); | |
10087 | ||
10088 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
10089 | return resultobj; | |
10090 | fail: | |
10091 | return NULL; | |
10092 | } | |
10093 | ||
10094 | ||
10095 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10096 | PyObject *resultobj; | |
10097 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10098 | int arg2 ; | |
10099 | PyObject * obj0 = 0 ; | |
10100 | char *kwnames[] = { | |
10101 | (char *) "self",(char *) "m_zPosition", NULL | |
10102 | }; | |
10103 | ||
10104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_zPosition_set",kwnames,&obj0,&arg2)) goto fail; | |
10105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10106 | if (arg1) (arg1)->m_zPosition = arg2; | |
10107 | ||
10108 | Py_INCREF(Py_None); resultobj = Py_None; | |
10109 | return resultobj; | |
10110 | fail: | |
10111 | return NULL; | |
10112 | } | |
10113 | ||
10114 | ||
10115 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10116 | PyObject *resultobj; | |
10117 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10118 | int result; | |
10119 | PyObject * obj0 = 0 ; | |
10120 | char *kwnames[] = { | |
10121 | (char *) "self", NULL | |
10122 | }; | |
10123 | ||
10124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
10125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10126 | result = (int) ((arg1)->m_zPosition); | |
10127 | ||
10128 | resultobj = PyInt_FromLong((long)result); | |
10129 | return resultobj; | |
10130 | fail: | |
10131 | return NULL; | |
10132 | } | |
10133 | ||
10134 | ||
10135 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10136 | PyObject *resultobj; | |
10137 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10138 | int arg2 ; | |
10139 | PyObject * obj0 = 0 ; | |
10140 | char *kwnames[] = { | |
10141 | (char *) "self",(char *) "m_buttonChange", NULL | |
10142 | }; | |
10143 | ||
10144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&arg2)) goto fail; | |
10145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10146 | if (arg1) (arg1)->m_buttonChange = arg2; | |
10147 | ||
10148 | Py_INCREF(Py_None); resultobj = Py_None; | |
10149 | return resultobj; | |
10150 | fail: | |
10151 | return NULL; | |
10152 | } | |
10153 | ||
10154 | ||
10155 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10156 | PyObject *resultobj; | |
10157 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10158 | int result; | |
10159 | PyObject * obj0 = 0 ; | |
10160 | char *kwnames[] = { | |
10161 | (char *) "self", NULL | |
10162 | }; | |
10163 | ||
10164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
10165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10166 | result = (int) ((arg1)->m_buttonChange); | |
10167 | ||
10168 | resultobj = PyInt_FromLong((long)result); | |
10169 | return resultobj; | |
10170 | fail: | |
10171 | return NULL; | |
10172 | } | |
10173 | ||
10174 | ||
10175 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10176 | PyObject *resultobj; | |
10177 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10178 | int arg2 ; | |
10179 | PyObject * obj0 = 0 ; | |
10180 | char *kwnames[] = { | |
10181 | (char *) "self",(char *) "m_buttonState", NULL | |
10182 | }; | |
10183 | ||
10184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonState_set",kwnames,&obj0,&arg2)) goto fail; | |
10185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10186 | if (arg1) (arg1)->m_buttonState = arg2; | |
10187 | ||
10188 | Py_INCREF(Py_None); resultobj = Py_None; | |
10189 | return resultobj; | |
10190 | fail: | |
10191 | return NULL; | |
10192 | } | |
10193 | ||
10194 | ||
10195 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10196 | PyObject *resultobj; | |
10197 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10198 | int result; | |
10199 | PyObject * obj0 = 0 ; | |
10200 | char *kwnames[] = { | |
10201 | (char *) "self", NULL | |
10202 | }; | |
10203 | ||
10204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
10205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10206 | result = (int) ((arg1)->m_buttonState); | |
10207 | ||
10208 | resultobj = PyInt_FromLong((long)result); | |
10209 | return resultobj; | |
10210 | fail: | |
10211 | return NULL; | |
10212 | } | |
10213 | ||
10214 | ||
10215 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10216 | PyObject *resultobj; | |
10217 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10218 | int arg2 ; | |
10219 | PyObject * obj0 = 0 ; | |
10220 | char *kwnames[] = { | |
10221 | (char *) "self",(char *) "m_joyStick", NULL | |
10222 | }; | |
10223 | ||
10224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_joyStick_set",kwnames,&obj0,&arg2)) goto fail; | |
10225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10226 | if (arg1) (arg1)->m_joyStick = arg2; | |
10227 | ||
10228 | Py_INCREF(Py_None); resultobj = Py_None; | |
10229 | return resultobj; | |
10230 | fail: | |
10231 | return NULL; | |
10232 | } | |
10233 | ||
10234 | ||
10235 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10236 | PyObject *resultobj; | |
10237 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10238 | int result; | |
10239 | PyObject * obj0 = 0 ; | |
10240 | char *kwnames[] = { | |
10241 | (char *) "self", NULL | |
10242 | }; | |
10243 | ||
10244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
10245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10246 | result = (int) ((arg1)->m_joyStick); | |
10247 | ||
10248 | resultobj = PyInt_FromLong((long)result); | |
10249 | return resultobj; | |
10250 | fail: | |
10251 | return NULL; | |
10252 | } | |
10253 | ||
10254 | ||
10255 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10256 | PyObject *resultobj; | |
10257 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10258 | int arg2 = (int) 0 ; | |
10259 | int arg3 = (int) wxJOYSTICK1 ; | |
10260 | int arg4 = (int) 0 ; | |
10261 | wxJoystickEvent *result; | |
10262 | char *kwnames[] = { | |
10263 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10264 | }; | |
10265 | ||
10266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_JoystickEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
10267 | { | |
10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10269 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10270 | ||
10271 | wxPyEndAllowThreads(__tstate); | |
10272 | if (PyErr_Occurred()) SWIG_fail; | |
10273 | } | |
10274 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1); | |
10275 | return resultobj; | |
10276 | fail: | |
10277 | return NULL; | |
10278 | } | |
10279 | ||
10280 | ||
10281 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10282 | PyObject *resultobj; | |
10283 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10284 | wxPoint result; | |
10285 | PyObject * obj0 = 0 ; | |
10286 | char *kwnames[] = { | |
10287 | (char *) "self", NULL | |
10288 | }; | |
10289 | ||
10290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10292 | { | |
10293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10294 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10295 | ||
10296 | wxPyEndAllowThreads(__tstate); | |
10297 | if (PyErr_Occurred()) SWIG_fail; | |
10298 | } | |
10299 | { | |
10300 | wxPoint * resultptr; | |
10301 | resultptr = new wxPoint((wxPoint &) result); | |
10302 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
10303 | } | |
10304 | return resultobj; | |
10305 | fail: | |
10306 | return NULL; | |
10307 | } | |
10308 | ||
10309 | ||
10310 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10311 | PyObject *resultobj; | |
10312 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10313 | int result; | |
10314 | PyObject * obj0 = 0 ; | |
10315 | char *kwnames[] = { | |
10316 | (char *) "self", NULL | |
10317 | }; | |
10318 | ||
10319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
10320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10321 | { | |
10322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10323 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10324 | ||
10325 | wxPyEndAllowThreads(__tstate); | |
10326 | if (PyErr_Occurred()) SWIG_fail; | |
10327 | } | |
10328 | resultobj = PyInt_FromLong((long)result); | |
10329 | return resultobj; | |
10330 | fail: | |
10331 | return NULL; | |
10332 | } | |
10333 | ||
10334 | ||
10335 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10336 | PyObject *resultobj; | |
10337 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10338 | int result; | |
10339 | PyObject * obj0 = 0 ; | |
10340 | char *kwnames[] = { | |
10341 | (char *) "self", NULL | |
10342 | }; | |
10343 | ||
10344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
10345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10346 | { | |
10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10348 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10349 | ||
10350 | wxPyEndAllowThreads(__tstate); | |
10351 | if (PyErr_Occurred()) SWIG_fail; | |
10352 | } | |
10353 | resultobj = PyInt_FromLong((long)result); | |
10354 | return resultobj; | |
10355 | fail: | |
10356 | return NULL; | |
10357 | } | |
10358 | ||
10359 | ||
10360 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10361 | PyObject *resultobj; | |
10362 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10363 | int result; | |
10364 | PyObject * obj0 = 0 ; | |
10365 | char *kwnames[] = { | |
10366 | (char *) "self", NULL | |
10367 | }; | |
10368 | ||
10369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
10370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10371 | { | |
10372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10373 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
10374 | ||
10375 | wxPyEndAllowThreads(__tstate); | |
10376 | if (PyErr_Occurred()) SWIG_fail; | |
10377 | } | |
10378 | resultobj = PyInt_FromLong((long)result); | |
10379 | return resultobj; | |
10380 | fail: | |
10381 | return NULL; | |
10382 | } | |
10383 | ||
10384 | ||
10385 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10386 | PyObject *resultobj; | |
10387 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10388 | int result; | |
10389 | PyObject * obj0 = 0 ; | |
10390 | char *kwnames[] = { | |
10391 | (char *) "self", NULL | |
10392 | }; | |
10393 | ||
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
10395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10396 | { | |
10397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10398 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
10399 | ||
10400 | wxPyEndAllowThreads(__tstate); | |
10401 | if (PyErr_Occurred()) SWIG_fail; | |
10402 | } | |
10403 | resultobj = PyInt_FromLong((long)result); | |
10404 | return resultobj; | |
10405 | fail: | |
10406 | return NULL; | |
10407 | } | |
10408 | ||
10409 | ||
10410 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10411 | PyObject *resultobj; | |
10412 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10413 | int arg2 ; | |
10414 | PyObject * obj0 = 0 ; | |
10415 | char *kwnames[] = { | |
10416 | (char *) "self",(char *) "stick", NULL | |
10417 | }; | |
10418 | ||
10419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetJoystick",kwnames,&obj0,&arg2)) goto fail; | |
10420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10421 | { | |
10422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10423 | (arg1)->SetJoystick(arg2); | |
10424 | ||
10425 | wxPyEndAllowThreads(__tstate); | |
10426 | if (PyErr_Occurred()) SWIG_fail; | |
10427 | } | |
10428 | Py_INCREF(Py_None); resultobj = Py_None; | |
10429 | return resultobj; | |
10430 | fail: | |
10431 | return NULL; | |
10432 | } | |
10433 | ||
10434 | ||
10435 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10436 | PyObject *resultobj; | |
10437 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10438 | int arg2 ; | |
10439 | PyObject * obj0 = 0 ; | |
10440 | char *kwnames[] = { | |
10441 | (char *) "self",(char *) "state", NULL | |
10442 | }; | |
10443 | ||
10444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonState",kwnames,&obj0,&arg2)) goto fail; | |
10445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10446 | { | |
10447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10448 | (arg1)->SetButtonState(arg2); | |
10449 | ||
10450 | wxPyEndAllowThreads(__tstate); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
10453 | Py_INCREF(Py_None); resultobj = Py_None; | |
10454 | return resultobj; | |
10455 | fail: | |
10456 | return NULL; | |
10457 | } | |
10458 | ||
10459 | ||
10460 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10461 | PyObject *resultobj; | |
10462 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10463 | int arg2 ; | |
10464 | PyObject * obj0 = 0 ; | |
10465 | char *kwnames[] = { | |
10466 | (char *) "self",(char *) "change", NULL | |
10467 | }; | |
10468 | ||
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonChange",kwnames,&obj0,&arg2)) goto fail; | |
10470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10471 | { | |
10472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10473 | (arg1)->SetButtonChange(arg2); | |
10474 | ||
10475 | wxPyEndAllowThreads(__tstate); | |
10476 | if (PyErr_Occurred()) SWIG_fail; | |
10477 | } | |
10478 | Py_INCREF(Py_None); resultobj = Py_None; | |
10479 | return resultobj; | |
10480 | fail: | |
10481 | return NULL; | |
10482 | } | |
10483 | ||
10484 | ||
10485 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10486 | PyObject *resultobj; | |
10487 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10488 | wxPoint *arg2 = 0 ; | |
10489 | wxPoint temp2 ; | |
10490 | PyObject * obj0 = 0 ; | |
10491 | PyObject * obj1 = 0 ; | |
10492 | char *kwnames[] = { | |
10493 | (char *) "self",(char *) "pos", NULL | |
10494 | }; | |
10495 | ||
10496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10498 | { | |
10499 | arg2 = &temp2; | |
10500 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10501 | } | |
10502 | { | |
10503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10504 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
10505 | ||
10506 | wxPyEndAllowThreads(__tstate); | |
10507 | if (PyErr_Occurred()) SWIG_fail; | |
10508 | } | |
10509 | Py_INCREF(Py_None); resultobj = Py_None; | |
10510 | return resultobj; | |
10511 | fail: | |
10512 | return NULL; | |
10513 | } | |
10514 | ||
10515 | ||
10516 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10517 | PyObject *resultobj; | |
10518 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10519 | int arg2 ; | |
10520 | PyObject * obj0 = 0 ; | |
10521 | char *kwnames[] = { | |
10522 | (char *) "self",(char *) "zPos", NULL | |
10523 | }; | |
10524 | ||
10525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetZPosition",kwnames,&obj0,&arg2)) goto fail; | |
10526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10527 | { | |
10528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10529 | (arg1)->SetZPosition(arg2); | |
10530 | ||
10531 | wxPyEndAllowThreads(__tstate); | |
10532 | if (PyErr_Occurred()) SWIG_fail; | |
10533 | } | |
10534 | Py_INCREF(Py_None); resultobj = Py_None; | |
10535 | return resultobj; | |
10536 | fail: | |
10537 | return NULL; | |
10538 | } | |
10539 | ||
10540 | ||
10541 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10542 | PyObject *resultobj; | |
10543 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10544 | bool result; | |
10545 | PyObject * obj0 = 0 ; | |
10546 | char *kwnames[] = { | |
10547 | (char *) "self", NULL | |
10548 | }; | |
10549 | ||
10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
10551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10552 | { | |
10553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10554 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
10555 | ||
10556 | wxPyEndAllowThreads(__tstate); | |
10557 | if (PyErr_Occurred()) SWIG_fail; | |
10558 | } | |
10559 | resultobj = PyInt_FromLong((long)result); | |
10560 | return resultobj; | |
10561 | fail: | |
10562 | return NULL; | |
10563 | } | |
10564 | ||
10565 | ||
10566 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10567 | PyObject *resultobj; | |
10568 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10569 | bool result; | |
10570 | PyObject * obj0 = 0 ; | |
10571 | char *kwnames[] = { | |
10572 | (char *) "self", NULL | |
10573 | }; | |
10574 | ||
10575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
10576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10577 | { | |
10578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10579 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
10580 | ||
10581 | wxPyEndAllowThreads(__tstate); | |
10582 | if (PyErr_Occurred()) SWIG_fail; | |
10583 | } | |
10584 | resultobj = PyInt_FromLong((long)result); | |
10585 | return resultobj; | |
10586 | fail: | |
10587 | return NULL; | |
10588 | } | |
10589 | ||
10590 | ||
10591 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10592 | PyObject *resultobj; | |
10593 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10594 | bool result; | |
10595 | PyObject * obj0 = 0 ; | |
10596 | char *kwnames[] = { | |
10597 | (char *) "self", NULL | |
10598 | }; | |
10599 | ||
10600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
10601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10602 | { | |
10603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10604 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
10605 | ||
10606 | wxPyEndAllowThreads(__tstate); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | } | |
10609 | resultobj = PyInt_FromLong((long)result); | |
10610 | return resultobj; | |
10611 | fail: | |
10612 | return NULL; | |
10613 | } | |
10614 | ||
10615 | ||
10616 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10617 | PyObject *resultobj; | |
10618 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10619 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10620 | bool result; | |
10621 | PyObject * obj0 = 0 ; | |
10622 | char *kwnames[] = { | |
10623 | (char *) "self",(char *) "but", NULL | |
10624 | }; | |
10625 | ||
10626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
10627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10628 | { | |
10629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10630 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
10631 | ||
10632 | wxPyEndAllowThreads(__tstate); | |
10633 | if (PyErr_Occurred()) SWIG_fail; | |
10634 | } | |
10635 | resultobj = PyInt_FromLong((long)result); | |
10636 | return resultobj; | |
10637 | fail: | |
10638 | return NULL; | |
10639 | } | |
10640 | ||
10641 | ||
10642 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10643 | PyObject *resultobj; | |
10644 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10645 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10646 | bool result; | |
10647 | PyObject * obj0 = 0 ; | |
10648 | char *kwnames[] = { | |
10649 | (char *) "self",(char *) "but", NULL | |
10650 | }; | |
10651 | ||
10652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
10653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10654 | { | |
10655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10656 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
10657 | ||
10658 | wxPyEndAllowThreads(__tstate); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | } | |
10661 | resultobj = PyInt_FromLong((long)result); | |
10662 | return resultobj; | |
10663 | fail: | |
10664 | return NULL; | |
10665 | } | |
10666 | ||
10667 | ||
10668 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10669 | PyObject *resultobj; | |
10670 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10671 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10672 | bool result; | |
10673 | PyObject * obj0 = 0 ; | |
10674 | char *kwnames[] = { | |
10675 | (char *) "self",(char *) "but", NULL | |
10676 | }; | |
10677 | ||
10678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
10679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10680 | { | |
10681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10682 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
10683 | ||
10684 | wxPyEndAllowThreads(__tstate); | |
10685 | if (PyErr_Occurred()) SWIG_fail; | |
10686 | } | |
10687 | resultobj = PyInt_FromLong((long)result); | |
10688 | return resultobj; | |
10689 | fail: | |
10690 | return NULL; | |
10691 | } | |
10692 | ||
10693 | ||
10694 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
10695 | PyObject *obj; | |
10696 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10697 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
10698 | Py_INCREF(obj); | |
10699 | return Py_BuildValue((char *)""); | |
10700 | } | |
10701 | static PyObject *_wrap_new_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10702 | PyObject *resultobj; | |
10703 | wxString *arg1 = 0 ; | |
e811c8ce | 10704 | bool arg2 = (bool) False ; |
d14a1e28 | 10705 | wxWave *result; |
e811c8ce | 10706 | bool temp1 = False ; |
d14a1e28 RD |
10707 | PyObject * obj0 = 0 ; |
10708 | PyObject * obj1 = 0 ; | |
10709 | char *kwnames[] = { | |
10710 | (char *) "fileName",(char *) "isResource", NULL | |
10711 | }; | |
10712 | ||
10713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Wave",kwnames,&obj0,&obj1)) goto fail; | |
10714 | { | |
10715 | arg1 = wxString_in_helper(obj0); | |
10716 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 10717 | temp1 = True; |
d14a1e28 RD |
10718 | } |
10719 | if (obj1) { | |
a41e16b6 RD |
10720 | { |
10721 | arg2 = (bool) SPyObj_AsBool(obj1); | |
10722 | if (PyErr_Occurred()) SWIG_fail; | |
10723 | } | |
d14a1e28 RD |
10724 | } |
10725 | { | |
10726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10727 | result = (wxWave *)new wxWave((wxString const &)*arg1,arg2); | |
10728 | ||
10729 | wxPyEndAllowThreads(__tstate); | |
10730 | if (PyErr_Occurred()) SWIG_fail; | |
10731 | } | |
10732 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10733 | { | |
10734 | if (temp1) | |
10735 | delete arg1; | |
10736 | } | |
10737 | return resultobj; | |
10738 | fail: | |
10739 | { | |
10740 | if (temp1) | |
10741 | delete arg1; | |
10742 | } | |
10743 | return NULL; | |
10744 | } | |
10745 | ||
10746 | ||
10747 | static PyObject *_wrap_new_WaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10748 | PyObject *resultobj; | |
10749 | wxString *arg1 = 0 ; | |
10750 | wxWave *result; | |
e811c8ce | 10751 | bool temp1 = False ; |
d14a1e28 RD |
10752 | PyObject * obj0 = 0 ; |
10753 | char *kwnames[] = { | |
10754 | (char *) "data", NULL | |
10755 | }; | |
10756 | ||
10757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WaveData",kwnames,&obj0)) goto fail; | |
10758 | { | |
10759 | arg1 = wxString_in_helper(obj0); | |
10760 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 10761 | temp1 = True; |
d14a1e28 RD |
10762 | } |
10763 | { | |
10764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10765 | result = (wxWave *)new_wxWave((wxString const &)*arg1); | |
10766 | ||
10767 | wxPyEndAllowThreads(__tstate); | |
10768 | if (PyErr_Occurred()) SWIG_fail; | |
10769 | } | |
10770 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10771 | { | |
10772 | if (temp1) | |
10773 | delete arg1; | |
10774 | } | |
10775 | return resultobj; | |
10776 | fail: | |
10777 | { | |
10778 | if (temp1) | |
10779 | delete arg1; | |
10780 | } | |
10781 | return NULL; | |
10782 | } | |
10783 | ||
10784 | ||
10785 | static PyObject *_wrap_delete_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10786 | PyObject *resultobj; | |
10787 | wxWave *arg1 = (wxWave *) 0 ; | |
10788 | PyObject * obj0 = 0 ; | |
10789 | char *kwnames[] = { | |
10790 | (char *) "self", NULL | |
10791 | }; | |
10792 | ||
10793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Wave",kwnames,&obj0)) goto fail; | |
10794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10795 | { | |
10796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10797 | delete arg1; | |
10798 | ||
10799 | wxPyEndAllowThreads(__tstate); | |
10800 | if (PyErr_Occurred()) SWIG_fail; | |
10801 | } | |
10802 | Py_INCREF(Py_None); resultobj = Py_None; | |
10803 | return resultobj; | |
10804 | fail: | |
10805 | return NULL; | |
10806 | } | |
10807 | ||
10808 | ||
10809 | static PyObject *_wrap_Wave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10810 | PyObject *resultobj; | |
10811 | wxWave *arg1 = (wxWave *) 0 ; | |
10812 | bool result; | |
10813 | PyObject * obj0 = 0 ; | |
10814 | char *kwnames[] = { | |
10815 | (char *) "self", NULL | |
10816 | }; | |
10817 | ||
10818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Wave_IsOk",kwnames,&obj0)) goto fail; | |
10819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10820 | { | |
10821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10822 | result = (bool)((wxWave const *)arg1)->IsOk(); | |
10823 | ||
10824 | wxPyEndAllowThreads(__tstate); | |
10825 | if (PyErr_Occurred()) SWIG_fail; | |
10826 | } | |
10827 | resultobj = PyInt_FromLong((long)result); | |
10828 | return resultobj; | |
10829 | fail: | |
10830 | return NULL; | |
10831 | } | |
10832 | ||
10833 | ||
10834 | static PyObject *_wrap_Wave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10835 | PyObject *resultobj; | |
10836 | wxWave *arg1 = (wxWave *) 0 ; | |
e811c8ce RD |
10837 | bool arg2 = (bool) True ; |
10838 | bool arg3 = (bool) False ; | |
d14a1e28 RD |
10839 | bool result; |
10840 | PyObject * obj0 = 0 ; | |
10841 | PyObject * obj1 = 0 ; | |
10842 | PyObject * obj2 = 0 ; | |
10843 | char *kwnames[] = { | |
10844 | (char *) "self",(char *) "async",(char *) "looped", NULL | |
10845 | }; | |
10846 | ||
10847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Wave_Play",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10849 | if (obj1) { | |
a41e16b6 RD |
10850 | { |
10851 | arg2 = (bool) SPyObj_AsBool(obj1); | |
10852 | if (PyErr_Occurred()) SWIG_fail; | |
10853 | } | |
d14a1e28 RD |
10854 | } |
10855 | if (obj2) { | |
a41e16b6 RD |
10856 | { |
10857 | arg3 = (bool) SPyObj_AsBool(obj2); | |
10858 | if (PyErr_Occurred()) SWIG_fail; | |
10859 | } | |
d14a1e28 RD |
10860 | } |
10861 | { | |
10862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 10863 | result = (bool)(arg1)->Play(arg2,arg3); |
d14a1e28 RD |
10864 | |
10865 | wxPyEndAllowThreads(__tstate); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
10868 | resultobj = PyInt_FromLong((long)result); | |
10869 | return resultobj; | |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
10875 | static PyObject * Wave_swigregister(PyObject *self, PyObject *args) { | |
10876 | PyObject *obj; | |
10877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10878 | SWIG_TypeClientData(SWIGTYPE_p_wxWave, obj); | |
10879 | Py_INCREF(obj); | |
10880 | return Py_BuildValue((char *)""); | |
10881 | } | |
10882 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10883 | PyObject *resultobj; | |
10884 | wxString *arg1 = 0 ; | |
10885 | wxString *arg2 = 0 ; | |
10886 | wxString *arg3 = 0 ; | |
10887 | wxString *arg4 = 0 ; | |
10888 | wxFileTypeInfo *result; | |
e811c8ce RD |
10889 | bool temp1 = False ; |
10890 | bool temp2 = False ; | |
10891 | bool temp3 = False ; | |
10892 | bool temp4 = False ; | |
d14a1e28 RD |
10893 | PyObject * obj0 = 0 ; |
10894 | PyObject * obj1 = 0 ; | |
10895 | PyObject * obj2 = 0 ; | |
10896 | PyObject * obj3 = 0 ; | |
10897 | char *kwnames[] = { | |
10898 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
10899 | }; | |
10900 | ||
10901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10902 | { | |
10903 | arg1 = wxString_in_helper(obj0); | |
10904 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 10905 | temp1 = True; |
d14a1e28 RD |
10906 | } |
10907 | { | |
10908 | arg2 = wxString_in_helper(obj1); | |
10909 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10910 | temp2 = True; |
d14a1e28 RD |
10911 | } |
10912 | { | |
10913 | arg3 = wxString_in_helper(obj2); | |
10914 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10915 | temp3 = True; |
d14a1e28 RD |
10916 | } |
10917 | { | |
10918 | arg4 = wxString_in_helper(obj3); | |
10919 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 10920 | temp4 = True; |
d14a1e28 RD |
10921 | } |
10922 | { | |
10923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10924 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
10925 | ||
10926 | wxPyEndAllowThreads(__tstate); | |
10927 | if (PyErr_Occurred()) SWIG_fail; | |
10928 | } | |
10929 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10930 | { | |
10931 | if (temp1) | |
10932 | delete arg1; | |
10933 | } | |
10934 | { | |
10935 | if (temp2) | |
10936 | delete arg2; | |
10937 | } | |
10938 | { | |
10939 | if (temp3) | |
10940 | delete arg3; | |
10941 | } | |
10942 | { | |
10943 | if (temp4) | |
10944 | delete arg4; | |
10945 | } | |
10946 | return resultobj; | |
10947 | fail: | |
10948 | { | |
10949 | if (temp1) | |
10950 | delete arg1; | |
10951 | } | |
10952 | { | |
10953 | if (temp2) | |
10954 | delete arg2; | |
10955 | } | |
10956 | { | |
10957 | if (temp3) | |
10958 | delete arg3; | |
10959 | } | |
10960 | { | |
10961 | if (temp4) | |
10962 | delete arg4; | |
10963 | } | |
10964 | return NULL; | |
10965 | } | |
10966 | ||
10967 | ||
10968 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10969 | PyObject *resultobj; | |
10970 | wxArrayString *arg1 = 0 ; | |
10971 | wxFileTypeInfo *result; | |
10972 | PyObject * obj0 = 0 ; | |
10973 | char *kwnames[] = { | |
10974 | (char *) "sArray", NULL | |
10975 | }; | |
10976 | ||
10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
10978 | { | |
10979 | if (! PySequence_Check(obj0)) { | |
10980 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10981 | SWIG_fail; | |
10982 | } | |
10983 | arg1 = new wxArrayString; | |
10984 | int i, len=PySequence_Length(obj0); | |
10985 | for (i=0; i<len; i++) { | |
10986 | PyObject* item = PySequence_GetItem(obj0, i); | |
10987 | #if wxUSE_UNICODE | |
10988 | PyObject* str = PyObject_Unicode(item); | |
10989 | #else | |
10990 | PyObject* str = PyObject_Str(item); | |
10991 | #endif | |
10992 | arg1->Add(Py2wxString(str)); | |
10993 | Py_DECREF(item); | |
10994 | Py_DECREF(str); | |
10995 | } | |
10996 | } | |
10997 | { | |
10998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10999 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11000 | ||
11001 | wxPyEndAllowThreads(__tstate); | |
11002 | if (PyErr_Occurred()) SWIG_fail; | |
11003 | } | |
11004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11005 | { | |
11006 | if (arg1) delete arg1; | |
11007 | } | |
11008 | return resultobj; | |
11009 | fail: | |
11010 | { | |
11011 | if (arg1) delete arg1; | |
11012 | } | |
11013 | return NULL; | |
11014 | } | |
11015 | ||
11016 | ||
11017 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11018 | PyObject *resultobj; | |
11019 | wxFileTypeInfo *result; | |
11020 | char *kwnames[] = { | |
11021 | NULL | |
11022 | }; | |
11023 | ||
11024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11025 | { | |
11026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11027 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11028 | ||
11029 | wxPyEndAllowThreads(__tstate); | |
11030 | if (PyErr_Occurred()) SWIG_fail; | |
11031 | } | |
11032 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11033 | return resultobj; | |
11034 | fail: | |
11035 | return NULL; | |
11036 | } | |
11037 | ||
11038 | ||
11039 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11040 | PyObject *resultobj; | |
11041 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11042 | bool result; | |
11043 | PyObject * obj0 = 0 ; | |
11044 | char *kwnames[] = { | |
11045 | (char *) "self", NULL | |
11046 | }; | |
11047 | ||
11048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
11049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11050 | { | |
11051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11052 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
11053 | ||
11054 | wxPyEndAllowThreads(__tstate); | |
11055 | if (PyErr_Occurred()) SWIG_fail; | |
11056 | } | |
11057 | resultobj = PyInt_FromLong((long)result); | |
11058 | return resultobj; | |
11059 | fail: | |
11060 | return NULL; | |
11061 | } | |
11062 | ||
11063 | ||
11064 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11065 | PyObject *resultobj; | |
11066 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11067 | wxString *arg2 = 0 ; | |
11068 | int arg3 = (int) 0 ; | |
e811c8ce | 11069 | bool temp2 = False ; |
d14a1e28 RD |
11070 | PyObject * obj0 = 0 ; |
11071 | PyObject * obj1 = 0 ; | |
11072 | char *kwnames[] = { | |
11073 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
11074 | }; | |
11075 | ||
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11078 | { | |
11079 | arg2 = wxString_in_helper(obj1); | |
11080 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11081 | temp2 = True; |
d14a1e28 RD |
11082 | } |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
11086 | ||
11087 | wxPyEndAllowThreads(__tstate); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | } | |
11090 | Py_INCREF(Py_None); resultobj = Py_None; | |
11091 | { | |
11092 | if (temp2) | |
11093 | delete arg2; | |
11094 | } | |
11095 | return resultobj; | |
11096 | fail: | |
11097 | { | |
11098 | if (temp2) | |
11099 | delete arg2; | |
11100 | } | |
11101 | return NULL; | |
11102 | } | |
11103 | ||
11104 | ||
11105 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11106 | PyObject *resultobj; | |
11107 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11108 | wxString *arg2 = 0 ; | |
e811c8ce | 11109 | bool temp2 = False ; |
d14a1e28 RD |
11110 | PyObject * obj0 = 0 ; |
11111 | PyObject * obj1 = 0 ; | |
11112 | char *kwnames[] = { | |
11113 | (char *) "self",(char *) "shortDesc", NULL | |
11114 | }; | |
11115 | ||
11116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
11117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11118 | { | |
11119 | arg2 = wxString_in_helper(obj1); | |
11120 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11121 | temp2 = True; |
d14a1e28 RD |
11122 | } |
11123 | { | |
11124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11125 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
11126 | ||
11127 | wxPyEndAllowThreads(__tstate); | |
11128 | if (PyErr_Occurred()) SWIG_fail; | |
11129 | } | |
11130 | Py_INCREF(Py_None); resultobj = Py_None; | |
11131 | { | |
11132 | if (temp2) | |
11133 | delete arg2; | |
11134 | } | |
11135 | return resultobj; | |
11136 | fail: | |
11137 | { | |
11138 | if (temp2) | |
11139 | delete arg2; | |
11140 | } | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
11145 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11146 | PyObject *resultobj; | |
11147 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11148 | wxString *result; | |
11149 | PyObject * obj0 = 0 ; | |
11150 | char *kwnames[] = { | |
11151 | (char *) "self", NULL | |
11152 | }; | |
11153 | ||
11154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
11155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11156 | { | |
11157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11158 | { | |
11159 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
11160 | result = (wxString *) &_result_ref; | |
11161 | } | |
11162 | ||
11163 | wxPyEndAllowThreads(__tstate); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | } | |
cc6dd355 RD |
11166 | { |
11167 | #if wxUSE_UNICODE | |
11168 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11169 | #else | |
11170 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11171 | #endif | |
11172 | } | |
d14a1e28 RD |
11173 | return resultobj; |
11174 | fail: | |
11175 | return NULL; | |
11176 | } | |
11177 | ||
11178 | ||
11179 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11180 | PyObject *resultobj; | |
11181 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11182 | wxString *result; | |
11183 | PyObject * obj0 = 0 ; | |
11184 | char *kwnames[] = { | |
11185 | (char *) "self", NULL | |
11186 | }; | |
11187 | ||
11188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
11189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11190 | { | |
11191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11192 | { | |
11193 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
11194 | result = (wxString *) &_result_ref; | |
11195 | } | |
11196 | ||
11197 | wxPyEndAllowThreads(__tstate); | |
11198 | if (PyErr_Occurred()) SWIG_fail; | |
11199 | } | |
cc6dd355 RD |
11200 | { |
11201 | #if wxUSE_UNICODE | |
11202 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11203 | #else | |
11204 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11205 | #endif | |
11206 | } | |
d14a1e28 RD |
11207 | return resultobj; |
11208 | fail: | |
11209 | return NULL; | |
11210 | } | |
11211 | ||
11212 | ||
11213 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11214 | PyObject *resultobj; | |
11215 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11216 | wxString *result; | |
11217 | PyObject * obj0 = 0 ; | |
11218 | char *kwnames[] = { | |
11219 | (char *) "self", NULL | |
11220 | }; | |
11221 | ||
11222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
11223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11224 | { | |
11225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11226 | { | |
11227 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
11228 | result = (wxString *) &_result_ref; | |
11229 | } | |
11230 | ||
11231 | wxPyEndAllowThreads(__tstate); | |
11232 | if (PyErr_Occurred()) SWIG_fail; | |
11233 | } | |
cc6dd355 RD |
11234 | { |
11235 | #if wxUSE_UNICODE | |
11236 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11237 | #else | |
11238 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11239 | #endif | |
11240 | } | |
d14a1e28 RD |
11241 | return resultobj; |
11242 | fail: | |
11243 | return NULL; | |
11244 | } | |
11245 | ||
11246 | ||
11247 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11248 | PyObject *resultobj; | |
11249 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11250 | wxString *result; | |
11251 | PyObject * obj0 = 0 ; | |
11252 | char *kwnames[] = { | |
11253 | (char *) "self", NULL | |
11254 | }; | |
11255 | ||
11256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
11257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | { | |
11261 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
11262 | result = (wxString *) &_result_ref; | |
11263 | } | |
11264 | ||
11265 | wxPyEndAllowThreads(__tstate); | |
11266 | if (PyErr_Occurred()) SWIG_fail; | |
11267 | } | |
cc6dd355 RD |
11268 | { |
11269 | #if wxUSE_UNICODE | |
11270 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11271 | #else | |
11272 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11273 | #endif | |
11274 | } | |
d14a1e28 RD |
11275 | return resultobj; |
11276 | fail: | |
11277 | return NULL; | |
11278 | } | |
11279 | ||
11280 | ||
11281 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11282 | PyObject *resultobj; | |
11283 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11284 | wxString *result; | |
11285 | PyObject * obj0 = 0 ; | |
11286 | char *kwnames[] = { | |
11287 | (char *) "self", NULL | |
11288 | }; | |
11289 | ||
11290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
11291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11292 | { | |
11293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11294 | { | |
11295 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
11296 | result = (wxString *) &_result_ref; | |
11297 | } | |
11298 | ||
11299 | wxPyEndAllowThreads(__tstate); | |
11300 | if (PyErr_Occurred()) SWIG_fail; | |
11301 | } | |
cc6dd355 RD |
11302 | { |
11303 | #if wxUSE_UNICODE | |
11304 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11305 | #else | |
11306 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11307 | #endif | |
11308 | } | |
d14a1e28 RD |
11309 | return resultobj; |
11310 | fail: | |
11311 | return NULL; | |
11312 | } | |
11313 | ||
11314 | ||
11315 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11316 | PyObject *resultobj; | |
11317 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11318 | wxArrayString *result; | |
11319 | PyObject * obj0 = 0 ; | |
11320 | char *kwnames[] = { | |
11321 | (char *) "self", NULL | |
11322 | }; | |
11323 | ||
11324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
11325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11326 | { | |
11327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11328 | { | |
11329 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
11330 | result = (wxArrayString *) &_result_ref; | |
11331 | } | |
11332 | ||
11333 | wxPyEndAllowThreads(__tstate); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
11336 | { | |
11337 | resultobj = wxArrayString2PyList_helper(*result); | |
11338 | } | |
11339 | return resultobj; | |
11340 | fail: | |
11341 | return NULL; | |
11342 | } | |
11343 | ||
11344 | ||
11345 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11346 | PyObject *resultobj; | |
11347 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11348 | int result; | |
11349 | PyObject * obj0 = 0 ; | |
11350 | char *kwnames[] = { | |
11351 | (char *) "self", NULL | |
11352 | }; | |
11353 | ||
11354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
11355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11356 | { | |
11357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11358 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
11359 | ||
11360 | wxPyEndAllowThreads(__tstate); | |
11361 | if (PyErr_Occurred()) SWIG_fail; | |
11362 | } | |
11363 | resultobj = PyInt_FromLong((long)result); | |
11364 | return resultobj; | |
11365 | fail: | |
11366 | return NULL; | |
11367 | } | |
11368 | ||
11369 | ||
11370 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11371 | PyObject *resultobj; | |
11372 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11373 | wxString *result; | |
11374 | PyObject * obj0 = 0 ; | |
11375 | char *kwnames[] = { | |
11376 | (char *) "self", NULL | |
11377 | }; | |
11378 | ||
11379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
11380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11381 | { | |
11382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11383 | { | |
11384 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
11385 | result = (wxString *) &_result_ref; | |
11386 | } | |
11387 | ||
11388 | wxPyEndAllowThreads(__tstate); | |
11389 | if (PyErr_Occurred()) SWIG_fail; | |
11390 | } | |
cc6dd355 RD |
11391 | { |
11392 | #if wxUSE_UNICODE | |
11393 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11394 | #else | |
11395 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11396 | #endif | |
11397 | } | |
d14a1e28 RD |
11398 | return resultobj; |
11399 | fail: | |
11400 | return NULL; | |
11401 | } | |
11402 | ||
11403 | ||
11404 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11405 | PyObject *resultobj; | |
11406 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11407 | int result; | |
11408 | PyObject * obj0 = 0 ; | |
11409 | char *kwnames[] = { | |
11410 | (char *) "self", NULL | |
11411 | }; | |
11412 | ||
11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
11414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11415 | { | |
11416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11417 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
11418 | ||
11419 | wxPyEndAllowThreads(__tstate); | |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
11421 | } | |
11422 | resultobj = PyInt_FromLong((long)result); | |
11423 | return resultobj; | |
11424 | fail: | |
11425 | return NULL; | |
11426 | } | |
11427 | ||
11428 | ||
11429 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
11430 | PyObject *obj; | |
11431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11432 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
11433 | Py_INCREF(obj); | |
11434 | return Py_BuildValue((char *)""); | |
11435 | } | |
11436 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11437 | PyObject *resultobj; | |
11438 | wxFileTypeInfo *arg1 = 0 ; | |
11439 | wxFileType *result; | |
11440 | PyObject * obj0 = 0 ; | |
11441 | char *kwnames[] = { | |
11442 | (char *) "ftInfo", NULL | |
11443 | }; | |
11444 | ||
11445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
11446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11447 | if (arg1 == NULL) { | |
11448 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11449 | } | |
11450 | { | |
11451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11452 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
11453 | ||
11454 | wxPyEndAllowThreads(__tstate); | |
11455 | if (PyErr_Occurred()) SWIG_fail; | |
11456 | } | |
11457 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11458 | return resultobj; | |
11459 | fail: | |
11460 | return NULL; | |
11461 | } | |
11462 | ||
11463 | ||
11464 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11465 | PyObject *resultobj; | |
11466 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11467 | PyObject * obj0 = 0 ; | |
11468 | char *kwnames[] = { | |
11469 | (char *) "self", NULL | |
11470 | }; | |
11471 | ||
11472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
11473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11474 | { | |
11475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11476 | delete arg1; | |
11477 | ||
11478 | wxPyEndAllowThreads(__tstate); | |
11479 | if (PyErr_Occurred()) SWIG_fail; | |
11480 | } | |
11481 | Py_INCREF(Py_None); resultobj = Py_None; | |
11482 | return resultobj; | |
11483 | fail: | |
11484 | return NULL; | |
11485 | } | |
11486 | ||
11487 | ||
11488 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11489 | PyObject *resultobj; | |
11490 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11491 | PyObject *result; | |
11492 | PyObject * obj0 = 0 ; | |
11493 | char *kwnames[] = { | |
11494 | (char *) "self", NULL | |
11495 | }; | |
11496 | ||
11497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
11498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11499 | { | |
11500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11501 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
11502 | ||
11503 | wxPyEndAllowThreads(__tstate); | |
11504 | if (PyErr_Occurred()) SWIG_fail; | |
11505 | } | |
11506 | resultobj = result; | |
11507 | return resultobj; | |
11508 | fail: | |
11509 | return NULL; | |
11510 | } | |
11511 | ||
11512 | ||
11513 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11514 | PyObject *resultobj; | |
11515 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11516 | PyObject *result; | |
11517 | PyObject * obj0 = 0 ; | |
11518 | char *kwnames[] = { | |
11519 | (char *) "self", NULL | |
11520 | }; | |
11521 | ||
11522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
11523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11524 | { | |
11525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11526 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
11527 | ||
11528 | wxPyEndAllowThreads(__tstate); | |
11529 | if (PyErr_Occurred()) SWIG_fail; | |
11530 | } | |
11531 | resultobj = result; | |
11532 | return resultobj; | |
11533 | fail: | |
11534 | return NULL; | |
11535 | } | |
11536 | ||
11537 | ||
11538 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11539 | PyObject *resultobj; | |
11540 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11541 | PyObject *result; | |
11542 | PyObject * obj0 = 0 ; | |
11543 | char *kwnames[] = { | |
11544 | (char *) "self", NULL | |
11545 | }; | |
11546 | ||
11547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
11548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11549 | { | |
11550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11551 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
11552 | ||
11553 | wxPyEndAllowThreads(__tstate); | |
11554 | if (PyErr_Occurred()) SWIG_fail; | |
11555 | } | |
11556 | resultobj = result; | |
11557 | return resultobj; | |
11558 | fail: | |
11559 | return NULL; | |
11560 | } | |
11561 | ||
11562 | ||
11563 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11564 | PyObject *resultobj; | |
11565 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11566 | wxIcon *result; | |
11567 | PyObject * obj0 = 0 ; | |
11568 | char *kwnames[] = { | |
11569 | (char *) "self", NULL | |
11570 | }; | |
11571 | ||
11572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
11573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11574 | { | |
11575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11576 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
11577 | ||
11578 | wxPyEndAllowThreads(__tstate); | |
11579 | if (PyErr_Occurred()) SWIG_fail; | |
11580 | } | |
11581 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
11582 | return resultobj; | |
11583 | fail: | |
11584 | return NULL; | |
11585 | } | |
11586 | ||
11587 | ||
11588 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11589 | PyObject *resultobj; | |
11590 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11591 | PyObject *result; | |
11592 | PyObject * obj0 = 0 ; | |
11593 | char *kwnames[] = { | |
11594 | (char *) "self", NULL | |
11595 | }; | |
11596 | ||
11597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
11598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11599 | { | |
11600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11601 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
11602 | ||
11603 | wxPyEndAllowThreads(__tstate); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | resultobj = result; | |
11607 | return resultobj; | |
11608 | fail: | |
11609 | return NULL; | |
11610 | } | |
11611 | ||
11612 | ||
11613 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11614 | PyObject *resultobj; | |
11615 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11616 | PyObject *result; | |
11617 | PyObject * obj0 = 0 ; | |
11618 | char *kwnames[] = { | |
11619 | (char *) "self", NULL | |
11620 | }; | |
11621 | ||
11622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
11623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11624 | { | |
11625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11626 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
11627 | ||
11628 | wxPyEndAllowThreads(__tstate); | |
11629 | if (PyErr_Occurred()) SWIG_fail; | |
11630 | } | |
11631 | resultobj = result; | |
11632 | return resultobj; | |
11633 | fail: | |
11634 | return NULL; | |
11635 | } | |
11636 | ||
11637 | ||
11638 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11639 | PyObject *resultobj; | |
11640 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11641 | wxString *arg2 = 0 ; | |
11642 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11643 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11644 | PyObject *result; | |
e811c8ce RD |
11645 | bool temp2 = False ; |
11646 | bool temp3 = False ; | |
d14a1e28 RD |
11647 | PyObject * obj0 = 0 ; |
11648 | PyObject * obj1 = 0 ; | |
11649 | PyObject * obj2 = 0 ; | |
11650 | char *kwnames[] = { | |
11651 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11652 | }; | |
11653 | ||
11654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11656 | { | |
11657 | arg2 = wxString_in_helper(obj1); | |
11658 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11659 | temp2 = True; |
d14a1e28 RD |
11660 | } |
11661 | if (obj2) { | |
11662 | { | |
11663 | arg3 = wxString_in_helper(obj2); | |
11664 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11665 | temp3 = True; |
d14a1e28 RD |
11666 | } |
11667 | } | |
11668 | { | |
11669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11670 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11671 | ||
11672 | wxPyEndAllowThreads(__tstate); | |
11673 | if (PyErr_Occurred()) SWIG_fail; | |
11674 | } | |
11675 | resultobj = result; | |
11676 | { | |
11677 | if (temp2) | |
11678 | delete arg2; | |
11679 | } | |
11680 | { | |
11681 | if (temp3) | |
11682 | delete arg3; | |
11683 | } | |
11684 | return resultobj; | |
11685 | fail: | |
11686 | { | |
11687 | if (temp2) | |
11688 | delete arg2; | |
11689 | } | |
11690 | { | |
11691 | if (temp3) | |
11692 | delete arg3; | |
11693 | } | |
11694 | return NULL; | |
11695 | } | |
11696 | ||
11697 | ||
11698 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11699 | PyObject *resultobj; | |
11700 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11701 | wxString *arg2 = 0 ; | |
11702 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11703 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11704 | PyObject *result; | |
e811c8ce RD |
11705 | bool temp2 = False ; |
11706 | bool temp3 = False ; | |
d14a1e28 RD |
11707 | PyObject * obj0 = 0 ; |
11708 | PyObject * obj1 = 0 ; | |
11709 | PyObject * obj2 = 0 ; | |
11710 | char *kwnames[] = { | |
11711 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11712 | }; | |
11713 | ||
11714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11716 | { | |
11717 | arg2 = wxString_in_helper(obj1); | |
11718 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11719 | temp2 = True; |
d14a1e28 RD |
11720 | } |
11721 | if (obj2) { | |
11722 | { | |
11723 | arg3 = wxString_in_helper(obj2); | |
11724 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11725 | temp3 = True; |
d14a1e28 RD |
11726 | } |
11727 | } | |
11728 | { | |
11729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11730 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11731 | ||
11732 | wxPyEndAllowThreads(__tstate); | |
11733 | if (PyErr_Occurred()) SWIG_fail; | |
11734 | } | |
11735 | resultobj = result; | |
11736 | { | |
11737 | if (temp2) | |
11738 | delete arg2; | |
11739 | } | |
11740 | { | |
11741 | if (temp3) | |
11742 | delete arg3; | |
11743 | } | |
11744 | return resultobj; | |
11745 | fail: | |
11746 | { | |
11747 | if (temp2) | |
11748 | delete arg2; | |
11749 | } | |
11750 | { | |
11751 | if (temp3) | |
11752 | delete arg3; | |
11753 | } | |
11754 | return NULL; | |
11755 | } | |
11756 | ||
11757 | ||
11758 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11759 | PyObject *resultobj; | |
11760 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11761 | wxString *arg2 = 0 ; | |
11762 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11763 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11764 | PyObject *result; | |
e811c8ce RD |
11765 | bool temp2 = False ; |
11766 | bool temp3 = False ; | |
d14a1e28 RD |
11767 | PyObject * obj0 = 0 ; |
11768 | PyObject * obj1 = 0 ; | |
11769 | PyObject * obj2 = 0 ; | |
11770 | char *kwnames[] = { | |
11771 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11772 | }; | |
11773 | ||
11774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11776 | { | |
11777 | arg2 = wxString_in_helper(obj1); | |
11778 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11779 | temp2 = True; |
d14a1e28 RD |
11780 | } |
11781 | if (obj2) { | |
11782 | { | |
11783 | arg3 = wxString_in_helper(obj2); | |
11784 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11785 | temp3 = True; |
d14a1e28 RD |
11786 | } |
11787 | } | |
11788 | { | |
11789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11790 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11791 | ||
11792 | wxPyEndAllowThreads(__tstate); | |
11793 | if (PyErr_Occurred()) SWIG_fail; | |
11794 | } | |
11795 | resultobj = result; | |
11796 | { | |
11797 | if (temp2) | |
11798 | delete arg2; | |
11799 | } | |
11800 | { | |
11801 | if (temp3) | |
11802 | delete arg3; | |
11803 | } | |
11804 | return resultobj; | |
11805 | fail: | |
11806 | { | |
11807 | if (temp2) | |
11808 | delete arg2; | |
11809 | } | |
11810 | { | |
11811 | if (temp3) | |
11812 | delete arg3; | |
11813 | } | |
11814 | return NULL; | |
11815 | } | |
11816 | ||
11817 | ||
11818 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11819 | PyObject *resultobj; | |
11820 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11821 | wxString *arg2 = 0 ; | |
11822 | wxString *arg3 = 0 ; | |
e811c8ce | 11823 | bool arg4 = (bool) True ; |
d14a1e28 | 11824 | bool result; |
e811c8ce RD |
11825 | bool temp2 = False ; |
11826 | bool temp3 = False ; | |
d14a1e28 RD |
11827 | PyObject * obj0 = 0 ; |
11828 | PyObject * obj1 = 0 ; | |
11829 | PyObject * obj2 = 0 ; | |
11830 | PyObject * obj3 = 0 ; | |
11831 | char *kwnames[] = { | |
11832 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
11833 | }; | |
11834 | ||
11835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11837 | { | |
11838 | arg2 = wxString_in_helper(obj1); | |
11839 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11840 | temp2 = True; |
d14a1e28 RD |
11841 | } |
11842 | { | |
11843 | arg3 = wxString_in_helper(obj2); | |
11844 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11845 | temp3 = True; |
d14a1e28 RD |
11846 | } |
11847 | if (obj3) { | |
a41e16b6 RD |
11848 | { |
11849 | arg4 = (bool) SPyObj_AsBool(obj3); | |
11850 | if (PyErr_Occurred()) SWIG_fail; | |
11851 | } | |
d14a1e28 RD |
11852 | } |
11853 | { | |
11854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11855 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
11856 | ||
11857 | wxPyEndAllowThreads(__tstate); | |
11858 | if (PyErr_Occurred()) SWIG_fail; | |
11859 | } | |
11860 | resultobj = PyInt_FromLong((long)result); | |
11861 | { | |
11862 | if (temp2) | |
11863 | delete arg2; | |
11864 | } | |
11865 | { | |
11866 | if (temp3) | |
11867 | delete arg3; | |
11868 | } | |
11869 | return resultobj; | |
11870 | fail: | |
11871 | { | |
11872 | if (temp2) | |
11873 | delete arg2; | |
11874 | } | |
11875 | { | |
11876 | if (temp3) | |
11877 | delete arg3; | |
11878 | } | |
11879 | return NULL; | |
11880 | } | |
11881 | ||
11882 | ||
11883 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11884 | PyObject *resultobj; | |
11885 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11886 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
11887 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11888 | int arg3 = (int) 0 ; | |
11889 | bool result; | |
e811c8ce | 11890 | bool temp2 = False ; |
d14a1e28 RD |
11891 | PyObject * obj0 = 0 ; |
11892 | PyObject * obj1 = 0 ; | |
11893 | char *kwnames[] = { | |
11894 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
11895 | }; | |
11896 | ||
11897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11899 | if (obj1) { | |
11900 | { | |
11901 | arg2 = wxString_in_helper(obj1); | |
11902 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11903 | temp2 = True; |
d14a1e28 RD |
11904 | } |
11905 | } | |
11906 | { | |
11907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11908 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
11909 | ||
11910 | wxPyEndAllowThreads(__tstate); | |
11911 | if (PyErr_Occurred()) SWIG_fail; | |
11912 | } | |
11913 | resultobj = PyInt_FromLong((long)result); | |
11914 | { | |
11915 | if (temp2) | |
11916 | delete arg2; | |
11917 | } | |
11918 | return resultobj; | |
11919 | fail: | |
11920 | { | |
11921 | if (temp2) | |
11922 | delete arg2; | |
11923 | } | |
11924 | return NULL; | |
11925 | } | |
11926 | ||
11927 | ||
11928 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11929 | PyObject *resultobj; | |
11930 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11931 | bool result; | |
11932 | PyObject * obj0 = 0 ; | |
11933 | char *kwnames[] = { | |
11934 | (char *) "self", NULL | |
11935 | }; | |
11936 | ||
11937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
11938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11939 | { | |
11940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11941 | result = (bool)(arg1)->Unassociate(); | |
11942 | ||
11943 | wxPyEndAllowThreads(__tstate); | |
11944 | if (PyErr_Occurred()) SWIG_fail; | |
11945 | } | |
11946 | resultobj = PyInt_FromLong((long)result); | |
11947 | return resultobj; | |
11948 | fail: | |
11949 | return NULL; | |
11950 | } | |
11951 | ||
11952 | ||
11953 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11954 | PyObject *resultobj; | |
11955 | wxString *arg1 = 0 ; | |
11956 | wxString *arg2 = 0 ; | |
11957 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11958 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11959 | wxString result; | |
e811c8ce RD |
11960 | bool temp1 = False ; |
11961 | bool temp2 = False ; | |
11962 | bool temp3 = False ; | |
d14a1e28 RD |
11963 | PyObject * obj0 = 0 ; |
11964 | PyObject * obj1 = 0 ; | |
11965 | PyObject * obj2 = 0 ; | |
11966 | char *kwnames[] = { | |
11967 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
11968 | }; | |
11969 | ||
11970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11971 | { | |
11972 | arg1 = wxString_in_helper(obj0); | |
11973 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11974 | temp1 = True; |
d14a1e28 RD |
11975 | } |
11976 | { | |
11977 | arg2 = wxString_in_helper(obj1); | |
11978 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11979 | temp2 = True; |
d14a1e28 RD |
11980 | } |
11981 | if (obj2) { | |
11982 | { | |
11983 | arg3 = wxString_in_helper(obj2); | |
11984 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11985 | temp3 = True; |
d14a1e28 RD |
11986 | } |
11987 | } | |
11988 | { | |
11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11990 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11991 | ||
11992 | wxPyEndAllowThreads(__tstate); | |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | } | |
11995 | { | |
11996 | #if wxUSE_UNICODE | |
11997 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11998 | #else | |
11999 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12000 | #endif | |
12001 | } | |
12002 | { | |
12003 | if (temp1) | |
12004 | delete arg1; | |
12005 | } | |
12006 | { | |
12007 | if (temp2) | |
12008 | delete arg2; | |
12009 | } | |
12010 | { | |
12011 | if (temp3) | |
12012 | delete arg3; | |
12013 | } | |
12014 | return resultobj; | |
12015 | fail: | |
12016 | { | |
12017 | if (temp1) | |
12018 | delete arg1; | |
12019 | } | |
12020 | { | |
12021 | if (temp2) | |
12022 | delete arg2; | |
12023 | } | |
12024 | { | |
12025 | if (temp3) | |
12026 | delete arg3; | |
12027 | } | |
12028 | return NULL; | |
12029 | } | |
12030 | ||
12031 | ||
12032 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
12033 | PyObject *obj; | |
12034 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12035 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
12036 | Py_INCREF(obj); | |
12037 | return Py_BuildValue((char *)""); | |
12038 | } | |
12039 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
12040 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
12041 | return 1; | |
12042 | } | |
12043 | ||
12044 | ||
12045 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
12046 | PyObject *pyobj; | |
12047 | ||
12048 | pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0); | |
12049 | return pyobj; | |
12050 | } | |
12051 | ||
12052 | ||
12053 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12054 | PyObject *resultobj; | |
12055 | wxString *arg1 = 0 ; | |
12056 | wxString *arg2 = 0 ; | |
12057 | bool result; | |
e811c8ce RD |
12058 | bool temp1 = False ; |
12059 | bool temp2 = False ; | |
d14a1e28 RD |
12060 | PyObject * obj0 = 0 ; |
12061 | PyObject * obj1 = 0 ; | |
12062 | char *kwnames[] = { | |
12063 | (char *) "mimeType",(char *) "wildcard", NULL | |
12064 | }; | |
12065 | ||
12066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
12067 | { | |
12068 | arg1 = wxString_in_helper(obj0); | |
12069 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 12070 | temp1 = True; |
d14a1e28 RD |
12071 | } |
12072 | { | |
12073 | arg2 = wxString_in_helper(obj1); | |
12074 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12075 | temp2 = True; |
d14a1e28 RD |
12076 | } |
12077 | { | |
12078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12079 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
12080 | ||
12081 | wxPyEndAllowThreads(__tstate); | |
12082 | if (PyErr_Occurred()) SWIG_fail; | |
12083 | } | |
12084 | resultobj = PyInt_FromLong((long)result); | |
12085 | { | |
12086 | if (temp1) | |
12087 | delete arg1; | |
12088 | } | |
12089 | { | |
12090 | if (temp2) | |
12091 | delete arg2; | |
12092 | } | |
12093 | return resultobj; | |
12094 | fail: | |
12095 | { | |
12096 | if (temp1) | |
12097 | delete arg1; | |
12098 | } | |
12099 | { | |
12100 | if (temp2) | |
12101 | delete arg2; | |
12102 | } | |
12103 | return NULL; | |
12104 | } | |
12105 | ||
12106 | ||
12107 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12108 | PyObject *resultobj; | |
12109 | wxMimeTypesManager *result; | |
12110 | char *kwnames[] = { | |
12111 | NULL | |
12112 | }; | |
12113 | ||
12114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
12115 | { | |
12116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12117 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
12118 | ||
12119 | wxPyEndAllowThreads(__tstate); | |
12120 | if (PyErr_Occurred()) SWIG_fail; | |
12121 | } | |
12122 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1); | |
12123 | return resultobj; | |
12124 | fail: | |
12125 | return NULL; | |
12126 | } | |
12127 | ||
12128 | ||
12129 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12130 | PyObject *resultobj; | |
12131 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12132 | int arg2 = (int) wxMAILCAP_ALL ; | |
12133 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12134 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 12135 | bool temp3 = False ; |
d14a1e28 RD |
12136 | PyObject * obj0 = 0 ; |
12137 | PyObject * obj2 = 0 ; | |
12138 | char *kwnames[] = { | |
12139 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
12140 | }; | |
12141 | ||
12142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:MimeTypesManager_Initialize",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
12143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12144 | if (obj2) { | |
12145 | { | |
12146 | arg3 = wxString_in_helper(obj2); | |
12147 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12148 | temp3 = True; |
d14a1e28 RD |
12149 | } |
12150 | } | |
12151 | { | |
12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12153 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
12154 | ||
12155 | wxPyEndAllowThreads(__tstate); | |
12156 | if (PyErr_Occurred()) SWIG_fail; | |
12157 | } | |
12158 | Py_INCREF(Py_None); resultobj = Py_None; | |
12159 | { | |
12160 | if (temp3) | |
12161 | delete arg3; | |
12162 | } | |
12163 | return resultobj; | |
12164 | fail: | |
12165 | { | |
12166 | if (temp3) | |
12167 | delete arg3; | |
12168 | } | |
12169 | return NULL; | |
12170 | } | |
12171 | ||
12172 | ||
12173 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12174 | PyObject *resultobj; | |
12175 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12176 | PyObject * obj0 = 0 ; | |
12177 | char *kwnames[] = { | |
12178 | (char *) "self", NULL | |
12179 | }; | |
12180 | ||
12181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
12182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12183 | { | |
12184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12185 | (arg1)->ClearData(); | |
12186 | ||
12187 | wxPyEndAllowThreads(__tstate); | |
12188 | if (PyErr_Occurred()) SWIG_fail; | |
12189 | } | |
12190 | Py_INCREF(Py_None); resultobj = Py_None; | |
12191 | return resultobj; | |
12192 | fail: | |
12193 | return NULL; | |
12194 | } | |
12195 | ||
12196 | ||
12197 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12198 | PyObject *resultobj; | |
12199 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12200 | wxString *arg2 = 0 ; | |
12201 | wxFileType *result; | |
e811c8ce | 12202 | bool temp2 = False ; |
d14a1e28 RD |
12203 | PyObject * obj0 = 0 ; |
12204 | PyObject * obj1 = 0 ; | |
12205 | char *kwnames[] = { | |
12206 | (char *) "self",(char *) "ext", NULL | |
12207 | }; | |
12208 | ||
12209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
12210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12211 | { | |
12212 | arg2 = wxString_in_helper(obj1); | |
12213 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12214 | temp2 = True; |
d14a1e28 RD |
12215 | } |
12216 | { | |
12217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12218 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
12219 | ||
12220 | wxPyEndAllowThreads(__tstate); | |
12221 | if (PyErr_Occurred()) SWIG_fail; | |
12222 | } | |
12223 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12224 | { | |
12225 | if (temp2) | |
12226 | delete arg2; | |
12227 | } | |
12228 | return resultobj; | |
12229 | fail: | |
12230 | { | |
12231 | if (temp2) | |
12232 | delete arg2; | |
12233 | } | |
12234 | return NULL; | |
12235 | } | |
12236 | ||
12237 | ||
12238 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12239 | PyObject *resultobj; | |
12240 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12241 | wxString *arg2 = 0 ; | |
12242 | wxFileType *result; | |
e811c8ce | 12243 | bool temp2 = False ; |
d14a1e28 RD |
12244 | PyObject * obj0 = 0 ; |
12245 | PyObject * obj1 = 0 ; | |
12246 | char *kwnames[] = { | |
12247 | (char *) "self",(char *) "mimeType", NULL | |
12248 | }; | |
12249 | ||
12250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
12251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12252 | { | |
12253 | arg2 = wxString_in_helper(obj1); | |
12254 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12255 | temp2 = True; |
d14a1e28 RD |
12256 | } |
12257 | { | |
12258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12259 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
12260 | ||
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12265 | { | |
12266 | if (temp2) | |
12267 | delete arg2; | |
12268 | } | |
12269 | return resultobj; | |
12270 | fail: | |
12271 | { | |
12272 | if (temp2) | |
12273 | delete arg2; | |
12274 | } | |
12275 | return NULL; | |
12276 | } | |
12277 | ||
12278 | ||
12279 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12280 | PyObject *resultobj; | |
12281 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12282 | wxString *arg2 = 0 ; | |
e811c8ce | 12283 | bool arg3 = (bool) False ; |
d14a1e28 | 12284 | bool result; |
e811c8ce | 12285 | bool temp2 = False ; |
d14a1e28 RD |
12286 | PyObject * obj0 = 0 ; |
12287 | PyObject * obj1 = 0 ; | |
12288 | PyObject * obj2 = 0 ; | |
12289 | char *kwnames[] = { | |
12290 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
12291 | }; | |
12292 | ||
12293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12295 | { | |
12296 | arg2 = wxString_in_helper(obj1); | |
12297 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12298 | temp2 = True; |
d14a1e28 RD |
12299 | } |
12300 | if (obj2) { | |
a41e16b6 RD |
12301 | { |
12302 | arg3 = (bool) SPyObj_AsBool(obj2); | |
12303 | if (PyErr_Occurred()) SWIG_fail; | |
12304 | } | |
d14a1e28 RD |
12305 | } |
12306 | { | |
12307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12308 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
12309 | ||
12310 | wxPyEndAllowThreads(__tstate); | |
12311 | if (PyErr_Occurred()) SWIG_fail; | |
12312 | } | |
12313 | resultobj = PyInt_FromLong((long)result); | |
12314 | { | |
12315 | if (temp2) | |
12316 | delete arg2; | |
12317 | } | |
12318 | return resultobj; | |
12319 | fail: | |
12320 | { | |
12321 | if (temp2) | |
12322 | delete arg2; | |
12323 | } | |
12324 | return NULL; | |
12325 | } | |
12326 | ||
12327 | ||
12328 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12329 | PyObject *resultobj; | |
12330 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12331 | wxString *arg2 = 0 ; | |
12332 | bool result; | |
e811c8ce | 12333 | bool temp2 = False ; |
d14a1e28 RD |
12334 | PyObject * obj0 = 0 ; |
12335 | PyObject * obj1 = 0 ; | |
12336 | char *kwnames[] = { | |
12337 | (char *) "self",(char *) "filename", NULL | |
12338 | }; | |
12339 | ||
12340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
12341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12342 | { | |
12343 | arg2 = wxString_in_helper(obj1); | |
12344 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12345 | temp2 = True; |
d14a1e28 RD |
12346 | } |
12347 | { | |
12348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12349 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
12350 | ||
12351 | wxPyEndAllowThreads(__tstate); | |
12352 | if (PyErr_Occurred()) SWIG_fail; | |
12353 | } | |
12354 | resultobj = PyInt_FromLong((long)result); | |
12355 | { | |
12356 | if (temp2) | |
12357 | delete arg2; | |
12358 | } | |
12359 | return resultobj; | |
12360 | fail: | |
12361 | { | |
12362 | if (temp2) | |
12363 | delete arg2; | |
12364 | } | |
12365 | return NULL; | |
12366 | } | |
12367 | ||
12368 | ||
12369 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12370 | PyObject *resultobj; | |
12371 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12372 | PyObject *result; | |
12373 | PyObject * obj0 = 0 ; | |
12374 | char *kwnames[] = { | |
12375 | (char *) "self", NULL | |
12376 | }; | |
12377 | ||
12378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
12379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12380 | { | |
12381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12382 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
12383 | ||
12384 | wxPyEndAllowThreads(__tstate); | |
12385 | if (PyErr_Occurred()) SWIG_fail; | |
12386 | } | |
12387 | resultobj = result; | |
12388 | return resultobj; | |
12389 | fail: | |
12390 | return NULL; | |
12391 | } | |
12392 | ||
12393 | ||
12394 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12395 | PyObject *resultobj; | |
12396 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12397 | wxFileTypeInfo *arg2 = 0 ; | |
12398 | PyObject * obj0 = 0 ; | |
12399 | PyObject * obj1 = 0 ; | |
12400 | char *kwnames[] = { | |
12401 | (char *) "self",(char *) "ft", NULL | |
12402 | }; | |
12403 | ||
12404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
12405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12406 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12407 | if (arg2 == NULL) { | |
12408 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12409 | } | |
12410 | { | |
12411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12412 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
12413 | ||
12414 | wxPyEndAllowThreads(__tstate); | |
12415 | if (PyErr_Occurred()) SWIG_fail; | |
12416 | } | |
12417 | Py_INCREF(Py_None); resultobj = Py_None; | |
12418 | return resultobj; | |
12419 | fail: | |
12420 | return NULL; | |
12421 | } | |
12422 | ||
12423 | ||
12424 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12425 | PyObject *resultobj; | |
12426 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12427 | wxFileTypeInfo *arg2 = 0 ; | |
12428 | wxFileType *result; | |
12429 | PyObject * obj0 = 0 ; | |
12430 | PyObject * obj1 = 0 ; | |
12431 | char *kwnames[] = { | |
12432 | (char *) "self",(char *) "ftInfo", NULL | |
12433 | }; | |
12434 | ||
12435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
12436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12437 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12438 | if (arg2 == NULL) { | |
12439 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12440 | } | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
12444 | ||
12445 | wxPyEndAllowThreads(__tstate); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | } | |
12448 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12449 | return resultobj; | |
12450 | fail: | |
12451 | return NULL; | |
12452 | } | |
12453 | ||
12454 | ||
12455 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12456 | PyObject *resultobj; | |
12457 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12458 | wxFileType *arg2 = (wxFileType *) 0 ; | |
12459 | bool result; | |
12460 | PyObject * obj0 = 0 ; | |
12461 | PyObject * obj1 = 0 ; | |
12462 | char *kwnames[] = { | |
12463 | (char *) "self",(char *) "ft", NULL | |
12464 | }; | |
12465 | ||
12466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
12467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12468 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12469 | { | |
12470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12471 | result = (bool)(arg1)->Unassociate(arg2); | |
12472 | ||
12473 | wxPyEndAllowThreads(__tstate); | |
12474 | if (PyErr_Occurred()) SWIG_fail; | |
12475 | } | |
12476 | resultobj = PyInt_FromLong((long)result); | |
12477 | return resultobj; | |
12478 | fail: | |
12479 | return NULL; | |
12480 | } | |
12481 | ||
12482 | ||
12483 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12484 | PyObject *resultobj; | |
12485 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12486 | PyObject * obj0 = 0 ; | |
12487 | char *kwnames[] = { | |
12488 | (char *) "self", NULL | |
12489 | }; | |
12490 | ||
12491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
12492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12493 | { | |
12494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12495 | delete arg1; | |
12496 | ||
12497 | wxPyEndAllowThreads(__tstate); | |
12498 | if (PyErr_Occurred()) SWIG_fail; | |
12499 | } | |
12500 | Py_INCREF(Py_None); resultobj = Py_None; | |
12501 | return resultobj; | |
12502 | fail: | |
12503 | return NULL; | |
12504 | } | |
12505 | ||
12506 | ||
12507 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
12508 | PyObject *obj; | |
12509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12510 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
12511 | Py_INCREF(obj); | |
12512 | return Py_BuildValue((char *)""); | |
12513 | } | |
12514 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
12515 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
12516 | return 1; | |
12517 | } | |
12518 | ||
12519 | ||
12520 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
12521 | PyObject *pyobj; | |
12522 | ||
12523 | { | |
12524 | #if wxUSE_UNICODE | |
12525 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12526 | #else | |
12527 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12528 | #endif | |
12529 | } | |
12530 | return pyobj; | |
12531 | } | |
12532 | ||
12533 | ||
12534 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
12535 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
12536 | return 1; | |
12537 | } | |
12538 | ||
12539 | ||
12540 | static PyObject *_wrap_ART_MENU_get() { | |
12541 | PyObject *pyobj; | |
12542 | ||
12543 | { | |
12544 | #if wxUSE_UNICODE | |
12545 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12546 | #else | |
12547 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12548 | #endif | |
12549 | } | |
12550 | return pyobj; | |
12551 | } | |
12552 | ||
12553 | ||
12554 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
12555 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
12556 | return 1; | |
12557 | } | |
12558 | ||
12559 | ||
12560 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
12561 | PyObject *pyobj; | |
12562 | ||
12563 | { | |
12564 | #if wxUSE_UNICODE | |
12565 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12566 | #else | |
12567 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12568 | #endif | |
12569 | } | |
12570 | return pyobj; | |
12571 | } | |
12572 | ||
12573 | ||
12574 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
12575 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
12576 | return 1; | |
12577 | } | |
12578 | ||
12579 | ||
12580 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
12581 | PyObject *pyobj; | |
12582 | ||
12583 | { | |
12584 | #if wxUSE_UNICODE | |
12585 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12586 | #else | |
12587 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12588 | #endif | |
12589 | } | |
12590 | return pyobj; | |
12591 | } | |
12592 | ||
12593 | ||
12594 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
12595 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
12596 | return 1; | |
12597 | } | |
12598 | ||
12599 | ||
12600 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
12601 | PyObject *pyobj; | |
12602 | ||
12603 | { | |
12604 | #if wxUSE_UNICODE | |
12605 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12606 | #else | |
12607 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12608 | #endif | |
12609 | } | |
12610 | return pyobj; | |
12611 | } | |
12612 | ||
12613 | ||
12614 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
12615 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
12616 | return 1; | |
12617 | } | |
12618 | ||
12619 | ||
12620 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
12621 | PyObject *pyobj; | |
12622 | ||
12623 | { | |
12624 | #if wxUSE_UNICODE | |
12625 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12626 | #else | |
12627 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12628 | #endif | |
12629 | } | |
12630 | return pyobj; | |
12631 | } | |
12632 | ||
12633 | ||
12634 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
12635 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
12636 | return 1; | |
12637 | } | |
12638 | ||
12639 | ||
12640 | static PyObject *_wrap_ART_OTHER_get() { | |
12641 | PyObject *pyobj; | |
12642 | ||
12643 | { | |
12644 | #if wxUSE_UNICODE | |
12645 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12646 | #else | |
12647 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12648 | #endif | |
12649 | } | |
12650 | return pyobj; | |
12651 | } | |
12652 | ||
12653 | ||
12654 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
12655 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
12656 | return 1; | |
12657 | } | |
12658 | ||
12659 | ||
12660 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
12661 | PyObject *pyobj; | |
12662 | ||
12663 | { | |
12664 | #if wxUSE_UNICODE | |
12665 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12666 | #else | |
12667 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12668 | #endif | |
12669 | } | |
12670 | return pyobj; | |
12671 | } | |
12672 | ||
12673 | ||
12674 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
12675 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
12676 | return 1; | |
12677 | } | |
12678 | ||
12679 | ||
12680 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
12681 | PyObject *pyobj; | |
12682 | ||
12683 | { | |
12684 | #if wxUSE_UNICODE | |
12685 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12686 | #else | |
12687 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12688 | #endif | |
12689 | } | |
12690 | return pyobj; | |
12691 | } | |
12692 | ||
12693 | ||
12694 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
12695 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
12696 | return 1; | |
12697 | } | |
12698 | ||
12699 | ||
12700 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
12701 | PyObject *pyobj; | |
12702 | ||
12703 | { | |
12704 | #if wxUSE_UNICODE | |
12705 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12706 | #else | |
12707 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12708 | #endif | |
12709 | } | |
12710 | return pyobj; | |
12711 | } | |
12712 | ||
12713 | ||
12714 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
12715 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
12716 | return 1; | |
12717 | } | |
12718 | ||
12719 | ||
12720 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
12721 | PyObject *pyobj; | |
12722 | ||
12723 | { | |
12724 | #if wxUSE_UNICODE | |
12725 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12726 | #else | |
12727 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12728 | #endif | |
12729 | } | |
12730 | return pyobj; | |
12731 | } | |
12732 | ||
12733 | ||
12734 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
12735 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
12736 | return 1; | |
12737 | } | |
12738 | ||
12739 | ||
12740 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
12741 | PyObject *pyobj; | |
12742 | ||
12743 | { | |
12744 | #if wxUSE_UNICODE | |
12745 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12746 | #else | |
12747 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12748 | #endif | |
12749 | } | |
12750 | return pyobj; | |
12751 | } | |
12752 | ||
12753 | ||
12754 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
12755 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
12756 | return 1; | |
12757 | } | |
12758 | ||
12759 | ||
12760 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
12761 | PyObject *pyobj; | |
12762 | ||
12763 | { | |
12764 | #if wxUSE_UNICODE | |
12765 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12766 | #else | |
12767 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12768 | #endif | |
12769 | } | |
12770 | return pyobj; | |
12771 | } | |
12772 | ||
12773 | ||
12774 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
12775 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
12776 | return 1; | |
12777 | } | |
12778 | ||
12779 | ||
12780 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
12781 | PyObject *pyobj; | |
12782 | ||
12783 | { | |
12784 | #if wxUSE_UNICODE | |
12785 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12786 | #else | |
12787 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12788 | #endif | |
12789 | } | |
12790 | return pyobj; | |
12791 | } | |
12792 | ||
12793 | ||
12794 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
12795 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
12796 | return 1; | |
12797 | } | |
12798 | ||
12799 | ||
12800 | static PyObject *_wrap_ART_GO_BACK_get() { | |
12801 | PyObject *pyobj; | |
12802 | ||
12803 | { | |
12804 | #if wxUSE_UNICODE | |
12805 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12806 | #else | |
12807 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12808 | #endif | |
12809 | } | |
12810 | return pyobj; | |
12811 | } | |
12812 | ||
12813 | ||
12814 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
12815 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
12816 | return 1; | |
12817 | } | |
12818 | ||
12819 | ||
12820 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
12821 | PyObject *pyobj; | |
12822 | ||
12823 | { | |
12824 | #if wxUSE_UNICODE | |
12825 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12826 | #else | |
12827 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12828 | #endif | |
12829 | } | |
12830 | return pyobj; | |
12831 | } | |
12832 | ||
12833 | ||
12834 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
12835 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
12836 | return 1; | |
12837 | } | |
12838 | ||
12839 | ||
12840 | static PyObject *_wrap_ART_GO_UP_get() { | |
12841 | PyObject *pyobj; | |
12842 | ||
12843 | { | |
12844 | #if wxUSE_UNICODE | |
12845 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12846 | #else | |
12847 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12848 | #endif | |
12849 | } | |
12850 | return pyobj; | |
12851 | } | |
12852 | ||
12853 | ||
12854 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
12855 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
12856 | return 1; | |
12857 | } | |
12858 | ||
12859 | ||
12860 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
12861 | PyObject *pyobj; | |
12862 | ||
12863 | { | |
12864 | #if wxUSE_UNICODE | |
12865 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12866 | #else | |
12867 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12868 | #endif | |
12869 | } | |
12870 | return pyobj; | |
12871 | } | |
12872 | ||
12873 | ||
12874 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
12875 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
12876 | return 1; | |
12877 | } | |
12878 | ||
12879 | ||
12880 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
12881 | PyObject *pyobj; | |
12882 | ||
12883 | { | |
12884 | #if wxUSE_UNICODE | |
12885 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12886 | #else | |
12887 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12888 | #endif | |
12889 | } | |
12890 | return pyobj; | |
12891 | } | |
12892 | ||
12893 | ||
12894 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
12895 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
12896 | return 1; | |
12897 | } | |
12898 | ||
12899 | ||
12900 | static PyObject *_wrap_ART_GO_HOME_get() { | |
12901 | PyObject *pyobj; | |
12902 | ||
12903 | { | |
12904 | #if wxUSE_UNICODE | |
12905 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12906 | #else | |
12907 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12908 | #endif | |
12909 | } | |
12910 | return pyobj; | |
12911 | } | |
12912 | ||
12913 | ||
12914 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
12915 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
12916 | return 1; | |
12917 | } | |
12918 | ||
12919 | ||
12920 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
12921 | PyObject *pyobj; | |
12922 | ||
12923 | { | |
12924 | #if wxUSE_UNICODE | |
12925 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12926 | #else | |
12927 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12928 | #endif | |
12929 | } | |
12930 | return pyobj; | |
12931 | } | |
12932 | ||
12933 | ||
12934 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
12935 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
12936 | return 1; | |
12937 | } | |
12938 | ||
12939 | ||
12940 | static PyObject *_wrap_ART_PRINT_get() { | |
12941 | PyObject *pyobj; | |
12942 | ||
12943 | { | |
12944 | #if wxUSE_UNICODE | |
12945 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12946 | #else | |
12947 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12948 | #endif | |
12949 | } | |
12950 | return pyobj; | |
12951 | } | |
12952 | ||
12953 | ||
12954 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
12955 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
12956 | return 1; | |
12957 | } | |
12958 | ||
12959 | ||
12960 | static PyObject *_wrap_ART_HELP_get() { | |
12961 | PyObject *pyobj; | |
12962 | ||
12963 | { | |
12964 | #if wxUSE_UNICODE | |
12965 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12966 | #else | |
12967 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12968 | #endif | |
12969 | } | |
12970 | return pyobj; | |
12971 | } | |
12972 | ||
12973 | ||
12974 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
12975 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
12976 | return 1; | |
12977 | } | |
12978 | ||
12979 | ||
12980 | static PyObject *_wrap_ART_TIP_get() { | |
12981 | PyObject *pyobj; | |
12982 | ||
12983 | { | |
12984 | #if wxUSE_UNICODE | |
12985 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12986 | #else | |
12987 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12988 | #endif | |
12989 | } | |
12990 | return pyobj; | |
12991 | } | |
12992 | ||
12993 | ||
12994 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
12995 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
12996 | return 1; | |
12997 | } | |
12998 | ||
12999 | ||
13000 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
13001 | PyObject *pyobj; | |
13002 | ||
13003 | { | |
13004 | #if wxUSE_UNICODE | |
13005 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13006 | #else | |
13007 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13008 | #endif | |
13009 | } | |
13010 | return pyobj; | |
13011 | } | |
13012 | ||
13013 | ||
13014 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
13015 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
13016 | return 1; | |
13017 | } | |
13018 | ||
13019 | ||
13020 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
13021 | PyObject *pyobj; | |
13022 | ||
13023 | { | |
13024 | #if wxUSE_UNICODE | |
13025 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13026 | #else | |
13027 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13028 | #endif | |
13029 | } | |
13030 | return pyobj; | |
13031 | } | |
13032 | ||
13033 | ||
13034 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
13035 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
13036 | return 1; | |
13037 | } | |
13038 | ||
13039 | ||
13040 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
13041 | PyObject *pyobj; | |
13042 | ||
13043 | { | |
13044 | #if wxUSE_UNICODE | |
13045 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13046 | #else | |
13047 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13048 | #endif | |
13049 | } | |
13050 | return pyobj; | |
13051 | } | |
13052 | ||
13053 | ||
13054 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
13055 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
13056 | return 1; | |
13057 | } | |
13058 | ||
13059 | ||
13060 | static PyObject *_wrap_ART_FOLDER_get() { | |
13061 | PyObject *pyobj; | |
13062 | ||
13063 | { | |
13064 | #if wxUSE_UNICODE | |
13065 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13066 | #else | |
13067 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13068 | #endif | |
13069 | } | |
13070 | return pyobj; | |
13071 | } | |
13072 | ||
13073 | ||
13074 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
13075 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
13076 | return 1; | |
13077 | } | |
13078 | ||
13079 | ||
13080 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
13081 | PyObject *pyobj; | |
13082 | ||
13083 | { | |
13084 | #if wxUSE_UNICODE | |
13085 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13086 | #else | |
13087 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13088 | #endif | |
13089 | } | |
13090 | return pyobj; | |
13091 | } | |
13092 | ||
13093 | ||
13094 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
13095 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
13096 | return 1; | |
13097 | } | |
13098 | ||
13099 | ||
13100 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
13101 | PyObject *pyobj; | |
13102 | ||
13103 | { | |
13104 | #if wxUSE_UNICODE | |
13105 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13106 | #else | |
13107 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13108 | #endif | |
13109 | } | |
13110 | return pyobj; | |
13111 | } | |
13112 | ||
13113 | ||
13114 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
13115 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
13116 | return 1; | |
13117 | } | |
13118 | ||
13119 | ||
13120 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
13121 | PyObject *pyobj; | |
13122 | ||
13123 | { | |
13124 | #if wxUSE_UNICODE | |
13125 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
13126 | #else | |
13127 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
13128 | #endif | |
13129 | } | |
13130 | return pyobj; | |
13131 | } | |
13132 | ||
13133 | ||
13134 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
13135 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
13136 | return 1; | |
13137 | } | |
13138 | ||
13139 | ||
13140 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
13141 | PyObject *pyobj; | |
13142 | ||
13143 | { | |
13144 | #if wxUSE_UNICODE | |
13145 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
13146 | #else | |
13147 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
13148 | #endif | |
13149 | } | |
13150 | return pyobj; | |
13151 | } | |
13152 | ||
13153 | ||
13154 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
13155 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
13156 | return 1; | |
13157 | } | |
13158 | ||
13159 | ||
13160 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
13161 | PyObject *pyobj; | |
13162 | ||
13163 | { | |
13164 | #if wxUSE_UNICODE | |
13165 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
13166 | #else | |
13167 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
13168 | #endif | |
13169 | } | |
13170 | return pyobj; | |
13171 | } | |
13172 | ||
13173 | ||
13174 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
13175 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
13176 | return 1; | |
13177 | } | |
13178 | ||
13179 | ||
13180 | static PyObject *_wrap_ART_ERROR_get() { | |
13181 | PyObject *pyobj; | |
13182 | ||
13183 | { | |
13184 | #if wxUSE_UNICODE | |
13185 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
13186 | #else | |
13187 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
13188 | #endif | |
13189 | } | |
13190 | return pyobj; | |
13191 | } | |
13192 | ||
13193 | ||
13194 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
13195 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
13196 | return 1; | |
13197 | } | |
13198 | ||
13199 | ||
13200 | static PyObject *_wrap_ART_QUESTION_get() { | |
13201 | PyObject *pyobj; | |
13202 | ||
13203 | { | |
13204 | #if wxUSE_UNICODE | |
13205 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
13206 | #else | |
13207 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
13208 | #endif | |
13209 | } | |
13210 | return pyobj; | |
13211 | } | |
13212 | ||
13213 | ||
13214 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
13215 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
13216 | return 1; | |
13217 | } | |
13218 | ||
13219 | ||
13220 | static PyObject *_wrap_ART_WARNING_get() { | |
13221 | PyObject *pyobj; | |
13222 | ||
13223 | { | |
13224 | #if wxUSE_UNICODE | |
13225 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
13226 | #else | |
13227 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
13228 | #endif | |
13229 | } | |
13230 | return pyobj; | |
13231 | } | |
13232 | ||
13233 | ||
13234 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
13235 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
13236 | return 1; | |
13237 | } | |
13238 | ||
13239 | ||
13240 | static PyObject *_wrap_ART_INFORMATION_get() { | |
13241 | PyObject *pyobj; | |
13242 | ||
13243 | { | |
13244 | #if wxUSE_UNICODE | |
13245 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
13246 | #else | |
13247 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
13248 | #endif | |
13249 | } | |
13250 | return pyobj; | |
13251 | } | |
13252 | ||
13253 | ||
13254 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
13255 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
13256 | return 1; | |
13257 | } | |
13258 | ||
13259 | ||
13260 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
13261 | PyObject *pyobj; | |
13262 | ||
13263 | { | |
13264 | #if wxUSE_UNICODE | |
13265 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13266 | #else | |
13267 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13268 | #endif | |
13269 | } | |
13270 | return pyobj; | |
13271 | } | |
13272 | ||
13273 | ||
13274 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13275 | PyObject *resultobj; | |
13276 | wxPyArtProvider *result; | |
13277 | char *kwnames[] = { | |
13278 | NULL | |
13279 | }; | |
13280 | ||
13281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
13282 | { | |
13283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13284 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
13285 | ||
13286 | wxPyEndAllowThreads(__tstate); | |
13287 | if (PyErr_Occurred()) SWIG_fail; | |
13288 | } | |
13289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1); | |
13290 | return resultobj; | |
13291 | fail: | |
13292 | return NULL; | |
13293 | } | |
13294 | ||
13295 | ||
d14a1e28 RD |
13296 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
13297 | PyObject *resultobj; | |
13298 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13299 | PyObject *arg2 = (PyObject *) 0 ; | |
13300 | PyObject *arg3 = (PyObject *) 0 ; | |
13301 | PyObject * obj0 = 0 ; | |
13302 | PyObject * obj1 = 0 ; | |
13303 | PyObject * obj2 = 0 ; | |
13304 | char *kwnames[] = { | |
13305 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13306 | }; | |
13307 | ||
13308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13310 | arg2 = obj1; | |
13311 | arg3 = obj2; | |
13312 | { | |
13313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13314 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13315 | ||
13316 | wxPyEndAllowThreads(__tstate); | |
13317 | if (PyErr_Occurred()) SWIG_fail; | |
13318 | } | |
13319 | Py_INCREF(Py_None); resultobj = Py_None; | |
13320 | return resultobj; | |
13321 | fail: | |
13322 | return NULL; | |
13323 | } | |
13324 | ||
13325 | ||
13326 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13327 | PyObject *resultobj; | |
13328 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13329 | PyObject * obj0 = 0 ; | |
13330 | char *kwnames[] = { | |
13331 | (char *) "provider", NULL | |
13332 | }; | |
13333 | ||
13334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
13335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13336 | { | |
13337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13338 | wxPyArtProvider::PushProvider(arg1); | |
13339 | ||
13340 | wxPyEndAllowThreads(__tstate); | |
13341 | if (PyErr_Occurred()) SWIG_fail; | |
13342 | } | |
13343 | Py_INCREF(Py_None); resultobj = Py_None; | |
13344 | return resultobj; | |
13345 | fail: | |
13346 | return NULL; | |
13347 | } | |
13348 | ||
13349 | ||
13350 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13351 | PyObject *resultobj; | |
13352 | bool result; | |
13353 | char *kwnames[] = { | |
13354 | NULL | |
13355 | }; | |
13356 | ||
13357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
13358 | { | |
13359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13360 | result = (bool)wxPyArtProvider::PopProvider(); | |
13361 | ||
13362 | wxPyEndAllowThreads(__tstate); | |
13363 | if (PyErr_Occurred()) SWIG_fail; | |
13364 | } | |
13365 | resultobj = PyInt_FromLong((long)result); | |
13366 | return resultobj; | |
13367 | fail: | |
13368 | return NULL; | |
13369 | } | |
13370 | ||
13371 | ||
13372 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13373 | PyObject *resultobj; | |
13374 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13375 | bool result; | |
13376 | PyObject * obj0 = 0 ; | |
13377 | char *kwnames[] = { | |
13378 | (char *) "provider", NULL | |
13379 | }; | |
13380 | ||
13381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
13382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13383 | { | |
13384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13385 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
13386 | ||
13387 | wxPyEndAllowThreads(__tstate); | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | } | |
13390 | resultobj = PyInt_FromLong((long)result); | |
13391 | return resultobj; | |
13392 | fail: | |
13393 | return NULL; | |
13394 | } | |
13395 | ||
13396 | ||
13397 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13398 | PyObject *resultobj; | |
13399 | wxString *arg1 = 0 ; | |
13400 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13401 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13402 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13403 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13404 | wxBitmap result; | |
e811c8ce RD |
13405 | bool temp1 = False ; |
13406 | bool temp2 = False ; | |
d14a1e28 RD |
13407 | wxSize temp3 ; |
13408 | PyObject * obj0 = 0 ; | |
13409 | PyObject * obj1 = 0 ; | |
13410 | PyObject * obj2 = 0 ; | |
13411 | char *kwnames[] = { | |
13412 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13413 | }; | |
13414 | ||
13415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13416 | { | |
13417 | arg1 = wxString_in_helper(obj0); | |
13418 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13419 | temp1 = True; |
d14a1e28 RD |
13420 | } |
13421 | if (obj1) { | |
13422 | { | |
13423 | arg2 = wxString_in_helper(obj1); | |
13424 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13425 | temp2 = True; |
d14a1e28 RD |
13426 | } |
13427 | } | |
13428 | if (obj2) { | |
13429 | { | |
13430 | arg3 = &temp3; | |
13431 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13432 | } | |
13433 | } | |
13434 | { | |
13435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13436 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13437 | ||
13438 | wxPyEndAllowThreads(__tstate); | |
13439 | if (PyErr_Occurred()) SWIG_fail; | |
13440 | } | |
13441 | { | |
13442 | wxBitmap * resultptr; | |
13443 | resultptr = new wxBitmap((wxBitmap &) result); | |
13444 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
13445 | } | |
13446 | { | |
13447 | if (temp1) | |
13448 | delete arg1; | |
13449 | } | |
13450 | { | |
13451 | if (temp2) | |
13452 | delete arg2; | |
13453 | } | |
13454 | return resultobj; | |
13455 | fail: | |
13456 | { | |
13457 | if (temp1) | |
13458 | delete arg1; | |
13459 | } | |
13460 | { | |
13461 | if (temp2) | |
13462 | delete arg2; | |
13463 | } | |
13464 | return NULL; | |
13465 | } | |
13466 | ||
13467 | ||
13468 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13469 | PyObject *resultobj; | |
13470 | wxString *arg1 = 0 ; | |
13471 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13472 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13473 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13474 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13475 | wxIcon result; | |
e811c8ce RD |
13476 | bool temp1 = False ; |
13477 | bool temp2 = False ; | |
d14a1e28 RD |
13478 | wxSize temp3 ; |
13479 | PyObject * obj0 = 0 ; | |
13480 | PyObject * obj1 = 0 ; | |
13481 | PyObject * obj2 = 0 ; | |
13482 | char *kwnames[] = { | |
13483 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13484 | }; | |
13485 | ||
13486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13487 | { | |
13488 | arg1 = wxString_in_helper(obj0); | |
13489 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13490 | temp1 = True; |
d14a1e28 RD |
13491 | } |
13492 | if (obj1) { | |
13493 | { | |
13494 | arg2 = wxString_in_helper(obj1); | |
13495 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13496 | temp2 = True; |
d14a1e28 RD |
13497 | } |
13498 | } | |
13499 | if (obj2) { | |
13500 | { | |
13501 | arg3 = &temp3; | |
13502 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13503 | } | |
13504 | } | |
13505 | { | |
13506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13507 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13508 | ||
13509 | wxPyEndAllowThreads(__tstate); | |
13510 | if (PyErr_Occurred()) SWIG_fail; | |
13511 | } | |
13512 | { | |
13513 | wxIcon * resultptr; | |
13514 | resultptr = new wxIcon((wxIcon &) result); | |
13515 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
13516 | } | |
13517 | { | |
13518 | if (temp1) | |
13519 | delete arg1; | |
13520 | } | |
13521 | { | |
13522 | if (temp2) | |
13523 | delete arg2; | |
13524 | } | |
13525 | return resultobj; | |
13526 | fail: | |
13527 | { | |
13528 | if (temp1) | |
13529 | delete arg1; | |
13530 | } | |
13531 | { | |
13532 | if (temp2) | |
13533 | delete arg2; | |
13534 | } | |
13535 | return NULL; | |
13536 | } | |
13537 | ||
13538 | ||
1e0c8722 RD |
13539 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
13540 | PyObject *resultobj; | |
13541 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13542 | PyObject * obj0 = 0 ; | |
13543 | char *kwnames[] = { | |
13544 | (char *) "self", NULL | |
13545 | }; | |
13546 | ||
13547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
13548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13549 | { | |
13550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13551 | wxPyArtProvider_Destroy(arg1); | |
13552 | ||
13553 | wxPyEndAllowThreads(__tstate); | |
13554 | if (PyErr_Occurred()) SWIG_fail; | |
13555 | } | |
13556 | Py_INCREF(Py_None); resultobj = Py_None; | |
13557 | return resultobj; | |
13558 | fail: | |
13559 | return NULL; | |
13560 | } | |
13561 | ||
13562 | ||
d14a1e28 RD |
13563 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
13564 | PyObject *obj; | |
13565 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13566 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
13567 | Py_INCREF(obj); | |
13568 | return Py_BuildValue((char *)""); | |
13569 | } | |
13570 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13571 | PyObject *resultobj; | |
13572 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13573 | PyObject * obj0 = 0 ; | |
13574 | char *kwnames[] = { | |
13575 | (char *) "self", NULL | |
13576 | }; | |
13577 | ||
13578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
13579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13580 | { | |
13581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13582 | delete arg1; | |
13583 | ||
13584 | wxPyEndAllowThreads(__tstate); | |
13585 | if (PyErr_Occurred()) SWIG_fail; | |
13586 | } | |
13587 | Py_INCREF(Py_None); resultobj = Py_None; | |
13588 | return resultobj; | |
13589 | fail: | |
13590 | return NULL; | |
13591 | } | |
13592 | ||
13593 | ||
13594 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13595 | PyObject *resultobj; | |
13596 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13597 | wxConfigBase *result; | |
13598 | PyObject * obj0 = 0 ; | |
13599 | char *kwnames[] = { | |
13600 | (char *) "pConfig", NULL | |
13601 | }; | |
13602 | ||
13603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
13604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13605 | { | |
13606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13607 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
13608 | ||
13609 | wxPyEndAllowThreads(__tstate); | |
13610 | if (PyErr_Occurred()) SWIG_fail; | |
13611 | } | |
13612 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13613 | return resultobj; | |
13614 | fail: | |
13615 | return NULL; | |
13616 | } | |
13617 | ||
13618 | ||
13619 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13620 | PyObject *resultobj; | |
e811c8ce | 13621 | bool arg1 = (bool) True ; |
d14a1e28 RD |
13622 | wxConfigBase *result; |
13623 | PyObject * obj0 = 0 ; | |
13624 | char *kwnames[] = { | |
13625 | (char *) "createOnDemand", NULL | |
13626 | }; | |
13627 | ||
13628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
13629 | if (obj0) { | |
a41e16b6 RD |
13630 | { |
13631 | arg1 = (bool) SPyObj_AsBool(obj0); | |
13632 | if (PyErr_Occurred()) SWIG_fail; | |
13633 | } | |
d14a1e28 RD |
13634 | } |
13635 | { | |
13636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13637 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
13638 | ||
13639 | wxPyEndAllowThreads(__tstate); | |
13640 | if (PyErr_Occurred()) SWIG_fail; | |
13641 | } | |
13642 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13643 | return resultobj; | |
13644 | fail: | |
13645 | return NULL; | |
13646 | } | |
13647 | ||
13648 | ||
13649 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13650 | PyObject *resultobj; | |
13651 | wxConfigBase *result; | |
13652 | char *kwnames[] = { | |
13653 | NULL | |
13654 | }; | |
13655 | ||
13656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
13657 | { | |
13658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13659 | result = (wxConfigBase *)wxConfigBase::Create(); | |
13660 | ||
13661 | wxPyEndAllowThreads(__tstate); | |
13662 | if (PyErr_Occurred()) SWIG_fail; | |
13663 | } | |
13664 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13665 | return resultobj; | |
13666 | fail: | |
13667 | return NULL; | |
13668 | } | |
13669 | ||
13670 | ||
13671 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13672 | PyObject *resultobj; | |
13673 | char *kwnames[] = { | |
13674 | NULL | |
13675 | }; | |
13676 | ||
13677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
13678 | { | |
13679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13680 | wxConfigBase::DontCreateOnDemand(); | |
13681 | ||
13682 | wxPyEndAllowThreads(__tstate); | |
13683 | if (PyErr_Occurred()) SWIG_fail; | |
13684 | } | |
13685 | Py_INCREF(Py_None); resultobj = Py_None; | |
13686 | return resultobj; | |
13687 | fail: | |
13688 | return NULL; | |
13689 | } | |
13690 | ||
13691 | ||
13692 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13693 | PyObject *resultobj; | |
13694 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13695 | wxString *arg2 = 0 ; | |
e811c8ce | 13696 | bool temp2 = False ; |
d14a1e28 RD |
13697 | PyObject * obj0 = 0 ; |
13698 | PyObject * obj1 = 0 ; | |
13699 | char *kwnames[] = { | |
13700 | (char *) "self",(char *) "strPath", NULL | |
13701 | }; | |
13702 | ||
13703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
13704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13705 | { | |
13706 | arg2 = wxString_in_helper(obj1); | |
13707 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13708 | temp2 = True; |
d14a1e28 RD |
13709 | } |
13710 | { | |
13711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13712 | (arg1)->SetPath((wxString const &)*arg2); | |
13713 | ||
13714 | wxPyEndAllowThreads(__tstate); | |
13715 | if (PyErr_Occurred()) SWIG_fail; | |
13716 | } | |
13717 | Py_INCREF(Py_None); resultobj = Py_None; | |
13718 | { | |
13719 | if (temp2) | |
13720 | delete arg2; | |
13721 | } | |
13722 | return resultobj; | |
13723 | fail: | |
13724 | { | |
13725 | if (temp2) | |
13726 | delete arg2; | |
13727 | } | |
13728 | return NULL; | |
13729 | } | |
13730 | ||
13731 | ||
13732 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13733 | PyObject *resultobj; | |
13734 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13735 | wxString *result; | |
13736 | PyObject * obj0 = 0 ; | |
13737 | char *kwnames[] = { | |
13738 | (char *) "self", NULL | |
13739 | }; | |
13740 | ||
13741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
13742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13743 | { | |
13744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13745 | { | |
13746 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
13747 | result = (wxString *) &_result_ref; | |
13748 | } | |
13749 | ||
13750 | wxPyEndAllowThreads(__tstate); | |
13751 | if (PyErr_Occurred()) SWIG_fail; | |
13752 | } | |
cc6dd355 RD |
13753 | { |
13754 | #if wxUSE_UNICODE | |
13755 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13756 | #else | |
13757 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13758 | #endif | |
13759 | } | |
d14a1e28 RD |
13760 | return resultobj; |
13761 | fail: | |
13762 | return NULL; | |
13763 | } | |
13764 | ||
13765 | ||
13766 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13767 | PyObject *resultobj; | |
13768 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13769 | PyObject *result; | |
13770 | PyObject * obj0 = 0 ; | |
13771 | char *kwnames[] = { | |
13772 | (char *) "self", NULL | |
13773 | }; | |
13774 | ||
13775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
13776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13777 | { | |
13778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13779 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
13780 | ||
13781 | wxPyEndAllowThreads(__tstate); | |
13782 | if (PyErr_Occurred()) SWIG_fail; | |
13783 | } | |
13784 | resultobj = result; | |
13785 | return resultobj; | |
13786 | fail: | |
13787 | return NULL; | |
13788 | } | |
13789 | ||
13790 | ||
13791 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13792 | PyObject *resultobj; | |
13793 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13794 | long arg2 ; | |
13795 | PyObject *result; | |
13796 | PyObject * obj0 = 0 ; | |
13797 | char *kwnames[] = { | |
13798 | (char *) "self",(char *) "index", NULL | |
13799 | }; | |
13800 | ||
13801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextGroup",kwnames,&obj0,&arg2)) goto fail; | |
13802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13803 | { | |
13804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13805 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
13806 | ||
13807 | wxPyEndAllowThreads(__tstate); | |
13808 | if (PyErr_Occurred()) SWIG_fail; | |
13809 | } | |
13810 | resultobj = result; | |
13811 | return resultobj; | |
13812 | fail: | |
13813 | return NULL; | |
13814 | } | |
13815 | ||
13816 | ||
13817 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13818 | PyObject *resultobj; | |
13819 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13820 | PyObject *result; | |
13821 | PyObject * obj0 = 0 ; | |
13822 | char *kwnames[] = { | |
13823 | (char *) "self", NULL | |
13824 | }; | |
13825 | ||
13826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
13827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13828 | { | |
13829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13830 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
13831 | ||
13832 | wxPyEndAllowThreads(__tstate); | |
13833 | if (PyErr_Occurred()) SWIG_fail; | |
13834 | } | |
13835 | resultobj = result; | |
13836 | return resultobj; | |
13837 | fail: | |
13838 | return NULL; | |
13839 | } | |
13840 | ||
13841 | ||
13842 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13843 | PyObject *resultobj; | |
13844 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13845 | long arg2 ; | |
13846 | PyObject *result; | |
13847 | PyObject * obj0 = 0 ; | |
13848 | char *kwnames[] = { | |
13849 | (char *) "self",(char *) "index", NULL | |
13850 | }; | |
13851 | ||
13852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextEntry",kwnames,&obj0,&arg2)) goto fail; | |
13853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13854 | { | |
13855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13856 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
13857 | ||
13858 | wxPyEndAllowThreads(__tstate); | |
13859 | if (PyErr_Occurred()) SWIG_fail; | |
13860 | } | |
13861 | resultobj = result; | |
13862 | return resultobj; | |
13863 | fail: | |
13864 | return NULL; | |
13865 | } | |
13866 | ||
13867 | ||
13868 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13869 | PyObject *resultobj; | |
13870 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 13871 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13872 | size_t result; |
13873 | PyObject * obj0 = 0 ; | |
13874 | PyObject * obj1 = 0 ; | |
13875 | char *kwnames[] = { | |
13876 | (char *) "self",(char *) "bRecursive", NULL | |
13877 | }; | |
13878 | ||
13879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
13880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13881 | if (obj1) { | |
a41e16b6 RD |
13882 | { |
13883 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13884 | if (PyErr_Occurred()) SWIG_fail; | |
13885 | } | |
d14a1e28 RD |
13886 | } |
13887 | { | |
13888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13889 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
13890 | ||
13891 | wxPyEndAllowThreads(__tstate); | |
13892 | if (PyErr_Occurred()) SWIG_fail; | |
13893 | } | |
a41e16b6 | 13894 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13895 | return resultobj; |
13896 | fail: | |
13897 | return NULL; | |
13898 | } | |
13899 | ||
13900 | ||
13901 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13902 | PyObject *resultobj; | |
13903 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 13904 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13905 | size_t result; |
13906 | PyObject * obj0 = 0 ; | |
13907 | PyObject * obj1 = 0 ; | |
13908 | char *kwnames[] = { | |
13909 | (char *) "self",(char *) "bRecursive", NULL | |
13910 | }; | |
13911 | ||
13912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
13913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13914 | if (obj1) { | |
a41e16b6 RD |
13915 | { |
13916 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13917 | if (PyErr_Occurred()) SWIG_fail; | |
13918 | } | |
d14a1e28 RD |
13919 | } |
13920 | { | |
13921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13922 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
13923 | ||
13924 | wxPyEndAllowThreads(__tstate); | |
13925 | if (PyErr_Occurred()) SWIG_fail; | |
13926 | } | |
a41e16b6 | 13927 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13928 | return resultobj; |
13929 | fail: | |
13930 | return NULL; | |
13931 | } | |
13932 | ||
13933 | ||
13934 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13935 | PyObject *resultobj; | |
13936 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13937 | wxString *arg2 = 0 ; | |
13938 | bool result; | |
e811c8ce | 13939 | bool temp2 = False ; |
d14a1e28 RD |
13940 | PyObject * obj0 = 0 ; |
13941 | PyObject * obj1 = 0 ; | |
13942 | char *kwnames[] = { | |
13943 | (char *) "self",(char *) "strName", NULL | |
13944 | }; | |
13945 | ||
13946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
13947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13948 | { | |
13949 | arg2 = wxString_in_helper(obj1); | |
13950 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13951 | temp2 = True; |
d14a1e28 RD |
13952 | } |
13953 | { | |
13954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13955 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
13956 | ||
13957 | wxPyEndAllowThreads(__tstate); | |
13958 | if (PyErr_Occurred()) SWIG_fail; | |
13959 | } | |
13960 | resultobj = PyInt_FromLong((long)result); | |
13961 | { | |
13962 | if (temp2) | |
13963 | delete arg2; | |
13964 | } | |
13965 | return resultobj; | |
13966 | fail: | |
13967 | { | |
13968 | if (temp2) | |
13969 | delete arg2; | |
13970 | } | |
13971 | return NULL; | |
13972 | } | |
13973 | ||
13974 | ||
13975 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13976 | PyObject *resultobj; | |
13977 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13978 | wxString *arg2 = 0 ; | |
13979 | bool result; | |
e811c8ce | 13980 | bool temp2 = False ; |
d14a1e28 RD |
13981 | PyObject * obj0 = 0 ; |
13982 | PyObject * obj1 = 0 ; | |
13983 | char *kwnames[] = { | |
13984 | (char *) "self",(char *) "strName", NULL | |
13985 | }; | |
13986 | ||
13987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
13988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13989 | { | |
13990 | arg2 = wxString_in_helper(obj1); | |
13991 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13992 | temp2 = True; |
d14a1e28 RD |
13993 | } |
13994 | { | |
13995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13996 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
13997 | ||
13998 | wxPyEndAllowThreads(__tstate); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
14001 | resultobj = PyInt_FromLong((long)result); | |
14002 | { | |
14003 | if (temp2) | |
14004 | delete arg2; | |
14005 | } | |
14006 | return resultobj; | |
14007 | fail: | |
14008 | { | |
14009 | if (temp2) | |
14010 | delete arg2; | |
14011 | } | |
14012 | return NULL; | |
14013 | } | |
14014 | ||
14015 | ||
14016 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14017 | PyObject *resultobj; | |
14018 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14019 | wxString *arg2 = 0 ; | |
14020 | bool result; | |
e811c8ce | 14021 | bool temp2 = False ; |
d14a1e28 RD |
14022 | PyObject * obj0 = 0 ; |
14023 | PyObject * obj1 = 0 ; | |
14024 | char *kwnames[] = { | |
14025 | (char *) "self",(char *) "strName", NULL | |
14026 | }; | |
14027 | ||
14028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
14029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14030 | { | |
14031 | arg2 = wxString_in_helper(obj1); | |
14032 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14033 | temp2 = True; |
d14a1e28 RD |
14034 | } |
14035 | { | |
14036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14037 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
14038 | ||
14039 | wxPyEndAllowThreads(__tstate); | |
14040 | if (PyErr_Occurred()) SWIG_fail; | |
14041 | } | |
14042 | resultobj = PyInt_FromLong((long)result); | |
14043 | { | |
14044 | if (temp2) | |
14045 | delete arg2; | |
14046 | } | |
14047 | return resultobj; | |
14048 | fail: | |
14049 | { | |
14050 | if (temp2) | |
14051 | delete arg2; | |
14052 | } | |
14053 | return NULL; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14058 | PyObject *resultobj; | |
14059 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14060 | wxString *arg2 = 0 ; | |
14061 | int result; | |
e811c8ce | 14062 | bool temp2 = False ; |
d14a1e28 RD |
14063 | PyObject * obj0 = 0 ; |
14064 | PyObject * obj1 = 0 ; | |
14065 | char *kwnames[] = { | |
14066 | (char *) "self",(char *) "name", NULL | |
14067 | }; | |
14068 | ||
14069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
14070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14071 | { | |
14072 | arg2 = wxString_in_helper(obj1); | |
14073 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14074 | temp2 = True; |
d14a1e28 RD |
14075 | } |
14076 | { | |
14077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14078 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
14079 | ||
14080 | wxPyEndAllowThreads(__tstate); | |
14081 | if (PyErr_Occurred()) SWIG_fail; | |
14082 | } | |
14083 | resultobj = PyInt_FromLong((long)result); | |
14084 | { | |
14085 | if (temp2) | |
14086 | delete arg2; | |
14087 | } | |
14088 | return resultobj; | |
14089 | fail: | |
14090 | { | |
14091 | if (temp2) | |
14092 | delete arg2; | |
14093 | } | |
14094 | return NULL; | |
14095 | } | |
14096 | ||
14097 | ||
14098 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14099 | PyObject *resultobj; | |
14100 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14101 | wxString *arg2 = 0 ; | |
14102 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14103 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14104 | wxString result; | |
e811c8ce RD |
14105 | bool temp2 = False ; |
14106 | bool temp3 = False ; | |
d14a1e28 RD |
14107 | PyObject * obj0 = 0 ; |
14108 | PyObject * obj1 = 0 ; | |
14109 | PyObject * obj2 = 0 ; | |
14110 | char *kwnames[] = { | |
14111 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14112 | }; | |
14113 | ||
14114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14116 | { | |
14117 | arg2 = wxString_in_helper(obj1); | |
14118 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14119 | temp2 = True; |
d14a1e28 RD |
14120 | } |
14121 | if (obj2) { | |
14122 | { | |
14123 | arg3 = wxString_in_helper(obj2); | |
14124 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14125 | temp3 = True; |
d14a1e28 RD |
14126 | } |
14127 | } | |
14128 | { | |
14129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14130 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
14131 | ||
14132 | wxPyEndAllowThreads(__tstate); | |
14133 | if (PyErr_Occurred()) SWIG_fail; | |
14134 | } | |
14135 | { | |
14136 | #if wxUSE_UNICODE | |
14137 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14138 | #else | |
14139 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14140 | #endif | |
14141 | } | |
14142 | { | |
14143 | if (temp2) | |
14144 | delete arg2; | |
14145 | } | |
14146 | { | |
14147 | if (temp3) | |
14148 | delete arg3; | |
14149 | } | |
14150 | return resultobj; | |
14151 | fail: | |
14152 | { | |
14153 | if (temp2) | |
14154 | delete arg2; | |
14155 | } | |
14156 | { | |
14157 | if (temp3) | |
14158 | delete arg3; | |
14159 | } | |
14160 | return NULL; | |
14161 | } | |
14162 | ||
14163 | ||
14164 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14165 | PyObject *resultobj; | |
14166 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14167 | wxString *arg2 = 0 ; | |
14168 | long arg3 = (long) 0 ; | |
14169 | long result; | |
e811c8ce | 14170 | bool temp2 = False ; |
d14a1e28 RD |
14171 | PyObject * obj0 = 0 ; |
14172 | PyObject * obj1 = 0 ; | |
14173 | char *kwnames[] = { | |
14174 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14175 | }; | |
14176 | ||
14177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14179 | { | |
14180 | arg2 = wxString_in_helper(obj1); | |
14181 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14182 | temp2 = True; |
d14a1e28 RD |
14183 | } |
14184 | { | |
14185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14186 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
14187 | ||
14188 | wxPyEndAllowThreads(__tstate); | |
14189 | if (PyErr_Occurred()) SWIG_fail; | |
14190 | } | |
14191 | resultobj = PyInt_FromLong((long)result); | |
14192 | { | |
14193 | if (temp2) | |
14194 | delete arg2; | |
14195 | } | |
14196 | return resultobj; | |
14197 | fail: | |
14198 | { | |
14199 | if (temp2) | |
14200 | delete arg2; | |
14201 | } | |
14202 | return NULL; | |
14203 | } | |
14204 | ||
14205 | ||
14206 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14207 | PyObject *resultobj; | |
14208 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14209 | wxString *arg2 = 0 ; | |
14210 | double arg3 = (double) 0.0 ; | |
14211 | double result; | |
e811c8ce | 14212 | bool temp2 = False ; |
d14a1e28 RD |
14213 | PyObject * obj0 = 0 ; |
14214 | PyObject * obj1 = 0 ; | |
14215 | char *kwnames[] = { | |
14216 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14217 | }; | |
14218 | ||
14219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|d:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14221 | { | |
14222 | arg2 = wxString_in_helper(obj1); | |
14223 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14224 | temp2 = True; |
d14a1e28 RD |
14225 | } |
14226 | { | |
14227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14228 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
14229 | ||
14230 | wxPyEndAllowThreads(__tstate); | |
14231 | if (PyErr_Occurred()) SWIG_fail; | |
14232 | } | |
14233 | resultobj = PyFloat_FromDouble(result); | |
14234 | { | |
14235 | if (temp2) | |
14236 | delete arg2; | |
14237 | } | |
14238 | return resultobj; | |
14239 | fail: | |
14240 | { | |
14241 | if (temp2) | |
14242 | delete arg2; | |
14243 | } | |
14244 | return NULL; | |
14245 | } | |
14246 | ||
14247 | ||
14248 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14249 | PyObject *resultobj; | |
14250 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14251 | wxString *arg2 = 0 ; | |
e811c8ce | 14252 | bool arg3 = (bool) False ; |
d14a1e28 | 14253 | bool result; |
e811c8ce | 14254 | bool temp2 = False ; |
d14a1e28 RD |
14255 | PyObject * obj0 = 0 ; |
14256 | PyObject * obj1 = 0 ; | |
14257 | PyObject * obj2 = 0 ; | |
14258 | char *kwnames[] = { | |
14259 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14260 | }; | |
14261 | ||
14262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14264 | { | |
14265 | arg2 = wxString_in_helper(obj1); | |
14266 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14267 | temp2 = True; |
d14a1e28 RD |
14268 | } |
14269 | if (obj2) { | |
a41e16b6 RD |
14270 | { |
14271 | arg3 = (bool) SPyObj_AsBool(obj2); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
14273 | } | |
d14a1e28 RD |
14274 | } |
14275 | { | |
14276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14277 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
14278 | ||
14279 | wxPyEndAllowThreads(__tstate); | |
14280 | if (PyErr_Occurred()) SWIG_fail; | |
14281 | } | |
14282 | resultobj = PyInt_FromLong((long)result); | |
14283 | { | |
14284 | if (temp2) | |
14285 | delete arg2; | |
14286 | } | |
14287 | return resultobj; | |
14288 | fail: | |
14289 | { | |
14290 | if (temp2) | |
14291 | delete arg2; | |
14292 | } | |
14293 | return NULL; | |
14294 | } | |
14295 | ||
14296 | ||
14297 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14298 | PyObject *resultobj; | |
14299 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14300 | wxString *arg2 = 0 ; | |
14301 | wxString *arg3 = 0 ; | |
14302 | bool result; | |
e811c8ce RD |
14303 | bool temp2 = False ; |
14304 | bool temp3 = False ; | |
d14a1e28 RD |
14305 | PyObject * obj0 = 0 ; |
14306 | PyObject * obj1 = 0 ; | |
14307 | PyObject * obj2 = 0 ; | |
14308 | char *kwnames[] = { | |
14309 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14310 | }; | |
14311 | ||
14312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14314 | { | |
14315 | arg2 = wxString_in_helper(obj1); | |
14316 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14317 | temp2 = True; |
d14a1e28 RD |
14318 | } |
14319 | { | |
14320 | arg3 = wxString_in_helper(obj2); | |
14321 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14322 | temp3 = True; |
d14a1e28 RD |
14323 | } |
14324 | { | |
14325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14326 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
14327 | ||
14328 | wxPyEndAllowThreads(__tstate); | |
14329 | if (PyErr_Occurred()) SWIG_fail; | |
14330 | } | |
14331 | resultobj = PyInt_FromLong((long)result); | |
14332 | { | |
14333 | if (temp2) | |
14334 | delete arg2; | |
14335 | } | |
14336 | { | |
14337 | if (temp3) | |
14338 | delete arg3; | |
14339 | } | |
14340 | return resultobj; | |
14341 | fail: | |
14342 | { | |
14343 | if (temp2) | |
14344 | delete arg2; | |
14345 | } | |
14346 | { | |
14347 | if (temp3) | |
14348 | delete arg3; | |
14349 | } | |
14350 | return NULL; | |
14351 | } | |
14352 | ||
14353 | ||
14354 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14355 | PyObject *resultobj; | |
14356 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14357 | wxString *arg2 = 0 ; | |
14358 | long arg3 ; | |
14359 | bool result; | |
e811c8ce | 14360 | bool temp2 = False ; |
d14a1e28 RD |
14361 | PyObject * obj0 = 0 ; |
14362 | PyObject * obj1 = 0 ; | |
14363 | char *kwnames[] = { | |
14364 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14365 | }; | |
14366 | ||
14367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14369 | { | |
14370 | arg2 = wxString_in_helper(obj1); | |
14371 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14372 | temp2 = True; |
d14a1e28 RD |
14373 | } |
14374 | { | |
14375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14376 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14377 | ||
14378 | wxPyEndAllowThreads(__tstate); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
14381 | resultobj = PyInt_FromLong((long)result); | |
14382 | { | |
14383 | if (temp2) | |
14384 | delete arg2; | |
14385 | } | |
14386 | return resultobj; | |
14387 | fail: | |
14388 | { | |
14389 | if (temp2) | |
14390 | delete arg2; | |
14391 | } | |
14392 | return NULL; | |
14393 | } | |
14394 | ||
14395 | ||
14396 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14397 | PyObject *resultobj; | |
14398 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14399 | wxString *arg2 = 0 ; | |
14400 | double arg3 ; | |
14401 | bool result; | |
e811c8ce | 14402 | bool temp2 = False ; |
d14a1e28 RD |
14403 | PyObject * obj0 = 0 ; |
14404 | PyObject * obj1 = 0 ; | |
14405 | char *kwnames[] = { | |
14406 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14407 | }; | |
14408 | ||
14409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14411 | { | |
14412 | arg2 = wxString_in_helper(obj1); | |
14413 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14414 | temp2 = True; |
d14a1e28 RD |
14415 | } |
14416 | { | |
14417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14418 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14419 | ||
14420 | wxPyEndAllowThreads(__tstate); | |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
14423 | resultobj = PyInt_FromLong((long)result); | |
14424 | { | |
14425 | if (temp2) | |
14426 | delete arg2; | |
14427 | } | |
14428 | return resultobj; | |
14429 | fail: | |
14430 | { | |
14431 | if (temp2) | |
14432 | delete arg2; | |
14433 | } | |
14434 | return NULL; | |
14435 | } | |
14436 | ||
14437 | ||
14438 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14439 | PyObject *resultobj; | |
14440 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14441 | wxString *arg2 = 0 ; | |
14442 | bool arg3 ; | |
14443 | bool result; | |
e811c8ce | 14444 | bool temp2 = False ; |
d14a1e28 RD |
14445 | PyObject * obj0 = 0 ; |
14446 | PyObject * obj1 = 0 ; | |
14447 | PyObject * obj2 = 0 ; | |
14448 | char *kwnames[] = { | |
14449 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14450 | }; | |
14451 | ||
14452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14454 | { | |
14455 | arg2 = wxString_in_helper(obj1); | |
14456 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14457 | temp2 = True; |
d14a1e28 | 14458 | } |
a41e16b6 RD |
14459 | { |
14460 | arg3 = (bool) SPyObj_AsBool(obj2); | |
14461 | if (PyErr_Occurred()) SWIG_fail; | |
14462 | } | |
d14a1e28 RD |
14463 | { |
14464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14465 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14466 | ||
14467 | wxPyEndAllowThreads(__tstate); | |
14468 | if (PyErr_Occurred()) SWIG_fail; | |
14469 | } | |
14470 | resultobj = PyInt_FromLong((long)result); | |
14471 | { | |
14472 | if (temp2) | |
14473 | delete arg2; | |
14474 | } | |
14475 | return resultobj; | |
14476 | fail: | |
14477 | { | |
14478 | if (temp2) | |
14479 | delete arg2; | |
14480 | } | |
14481 | return NULL; | |
14482 | } | |
14483 | ||
14484 | ||
14485 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14486 | PyObject *resultobj; | |
14487 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14488 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14489 | bool result; |
14490 | PyObject * obj0 = 0 ; | |
14491 | PyObject * obj1 = 0 ; | |
14492 | char *kwnames[] = { | |
14493 | (char *) "self",(char *) "bCurrentOnly", NULL | |
14494 | }; | |
14495 | ||
14496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
14497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14498 | if (obj1) { | |
a41e16b6 RD |
14499 | { |
14500 | arg2 = (bool) SPyObj_AsBool(obj1); | |
14501 | if (PyErr_Occurred()) SWIG_fail; | |
14502 | } | |
d14a1e28 RD |
14503 | } |
14504 | { | |
14505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14506 | result = (bool)(arg1)->Flush(arg2); | |
14507 | ||
14508 | wxPyEndAllowThreads(__tstate); | |
14509 | if (PyErr_Occurred()) SWIG_fail; | |
14510 | } | |
14511 | resultobj = PyInt_FromLong((long)result); | |
14512 | return resultobj; | |
14513 | fail: | |
14514 | return NULL; | |
14515 | } | |
14516 | ||
14517 | ||
14518 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14519 | PyObject *resultobj; | |
14520 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14521 | wxString *arg2 = 0 ; | |
14522 | wxString *arg3 = 0 ; | |
14523 | bool result; | |
e811c8ce RD |
14524 | bool temp2 = False ; |
14525 | bool temp3 = False ; | |
d14a1e28 RD |
14526 | PyObject * obj0 = 0 ; |
14527 | PyObject * obj1 = 0 ; | |
14528 | PyObject * obj2 = 0 ; | |
14529 | char *kwnames[] = { | |
14530 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14531 | }; | |
14532 | ||
14533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14535 | { | |
14536 | arg2 = wxString_in_helper(obj1); | |
14537 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14538 | temp2 = True; |
d14a1e28 RD |
14539 | } |
14540 | { | |
14541 | arg3 = wxString_in_helper(obj2); | |
14542 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14543 | temp3 = True; |
d14a1e28 RD |
14544 | } |
14545 | { | |
14546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14547 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
14548 | ||
14549 | wxPyEndAllowThreads(__tstate); | |
14550 | if (PyErr_Occurred()) SWIG_fail; | |
14551 | } | |
14552 | resultobj = PyInt_FromLong((long)result); | |
14553 | { | |
14554 | if (temp2) | |
14555 | delete arg2; | |
14556 | } | |
14557 | { | |
14558 | if (temp3) | |
14559 | delete arg3; | |
14560 | } | |
14561 | return resultobj; | |
14562 | fail: | |
14563 | { | |
14564 | if (temp2) | |
14565 | delete arg2; | |
14566 | } | |
14567 | { | |
14568 | if (temp3) | |
14569 | delete arg3; | |
14570 | } | |
14571 | return NULL; | |
14572 | } | |
14573 | ||
14574 | ||
14575 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14576 | PyObject *resultobj; | |
14577 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14578 | wxString *arg2 = 0 ; | |
14579 | wxString *arg3 = 0 ; | |
14580 | bool result; | |
e811c8ce RD |
14581 | bool temp2 = False ; |
14582 | bool temp3 = False ; | |
d14a1e28 RD |
14583 | PyObject * obj0 = 0 ; |
14584 | PyObject * obj1 = 0 ; | |
14585 | PyObject * obj2 = 0 ; | |
14586 | char *kwnames[] = { | |
14587 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14588 | }; | |
14589 | ||
14590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14592 | { | |
14593 | arg2 = wxString_in_helper(obj1); | |
14594 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14595 | temp2 = True; |
d14a1e28 RD |
14596 | } |
14597 | { | |
14598 | arg3 = wxString_in_helper(obj2); | |
14599 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14600 | temp3 = True; |
d14a1e28 RD |
14601 | } |
14602 | { | |
14603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14604 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
14605 | ||
14606 | wxPyEndAllowThreads(__tstate); | |
14607 | if (PyErr_Occurred()) SWIG_fail; | |
14608 | } | |
14609 | resultobj = PyInt_FromLong((long)result); | |
14610 | { | |
14611 | if (temp2) | |
14612 | delete arg2; | |
14613 | } | |
14614 | { | |
14615 | if (temp3) | |
14616 | delete arg3; | |
14617 | } | |
14618 | return resultobj; | |
14619 | fail: | |
14620 | { | |
14621 | if (temp2) | |
14622 | delete arg2; | |
14623 | } | |
14624 | { | |
14625 | if (temp3) | |
14626 | delete arg3; | |
14627 | } | |
14628 | return NULL; | |
14629 | } | |
14630 | ||
14631 | ||
14632 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14633 | PyObject *resultobj; | |
14634 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14635 | wxString *arg2 = 0 ; | |
e811c8ce | 14636 | bool arg3 = (bool) True ; |
d14a1e28 | 14637 | bool result; |
e811c8ce | 14638 | bool temp2 = False ; |
d14a1e28 RD |
14639 | PyObject * obj0 = 0 ; |
14640 | PyObject * obj1 = 0 ; | |
14641 | PyObject * obj2 = 0 ; | |
14642 | char *kwnames[] = { | |
14643 | (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL | |
14644 | }; | |
14645 | ||
14646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14648 | { | |
14649 | arg2 = wxString_in_helper(obj1); | |
14650 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14651 | temp2 = True; |
d14a1e28 RD |
14652 | } |
14653 | if (obj2) { | |
a41e16b6 RD |
14654 | { |
14655 | arg3 = (bool) SPyObj_AsBool(obj2); | |
14656 | if (PyErr_Occurred()) SWIG_fail; | |
14657 | } | |
d14a1e28 RD |
14658 | } |
14659 | { | |
14660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14661 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
14662 | ||
14663 | wxPyEndAllowThreads(__tstate); | |
14664 | if (PyErr_Occurred()) SWIG_fail; | |
14665 | } | |
14666 | resultobj = PyInt_FromLong((long)result); | |
14667 | { | |
14668 | if (temp2) | |
14669 | delete arg2; | |
14670 | } | |
14671 | return resultobj; | |
14672 | fail: | |
14673 | { | |
14674 | if (temp2) | |
14675 | delete arg2; | |
14676 | } | |
14677 | return NULL; | |
14678 | } | |
14679 | ||
14680 | ||
14681 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14682 | PyObject *resultobj; | |
14683 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14684 | wxString *arg2 = 0 ; | |
14685 | bool result; | |
e811c8ce | 14686 | bool temp2 = False ; |
d14a1e28 RD |
14687 | PyObject * obj0 = 0 ; |
14688 | PyObject * obj1 = 0 ; | |
14689 | char *kwnames[] = { | |
14690 | (char *) "self",(char *) "key", NULL | |
14691 | }; | |
14692 | ||
14693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
14694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14695 | { | |
14696 | arg2 = wxString_in_helper(obj1); | |
14697 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14698 | temp2 = True; |
d14a1e28 RD |
14699 | } |
14700 | { | |
14701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14702 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
14703 | ||
14704 | wxPyEndAllowThreads(__tstate); | |
14705 | if (PyErr_Occurred()) SWIG_fail; | |
14706 | } | |
14707 | resultobj = PyInt_FromLong((long)result); | |
14708 | { | |
14709 | if (temp2) | |
14710 | delete arg2; | |
14711 | } | |
14712 | return resultobj; | |
14713 | fail: | |
14714 | { | |
14715 | if (temp2) | |
14716 | delete arg2; | |
14717 | } | |
14718 | return NULL; | |
14719 | } | |
14720 | ||
14721 | ||
14722 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14723 | PyObject *resultobj; | |
14724 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14725 | bool result; | |
14726 | PyObject * obj0 = 0 ; | |
14727 | char *kwnames[] = { | |
14728 | (char *) "self", NULL | |
14729 | }; | |
14730 | ||
14731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
14732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14733 | { | |
14734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14735 | result = (bool)(arg1)->DeleteAll(); | |
14736 | ||
14737 | wxPyEndAllowThreads(__tstate); | |
14738 | if (PyErr_Occurred()) SWIG_fail; | |
14739 | } | |
14740 | resultobj = PyInt_FromLong((long)result); | |
14741 | return resultobj; | |
14742 | fail: | |
14743 | return NULL; | |
14744 | } | |
14745 | ||
14746 | ||
14747 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14748 | PyObject *resultobj; | |
14749 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14750 | bool result; | |
14751 | PyObject * obj0 = 0 ; | |
14752 | char *kwnames[] = { | |
14753 | (char *) "self", NULL | |
14754 | }; | |
14755 | ||
14756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
14757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14758 | { | |
14759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14760 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
14761 | ||
14762 | wxPyEndAllowThreads(__tstate); | |
14763 | if (PyErr_Occurred()) SWIG_fail; | |
14764 | } | |
14765 | resultobj = PyInt_FromLong((long)result); | |
14766 | return resultobj; | |
14767 | fail: | |
14768 | return NULL; | |
14769 | } | |
14770 | ||
14771 | ||
14772 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14773 | PyObject *resultobj; | |
14774 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14775 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14776 | PyObject * obj0 = 0 ; |
14777 | PyObject * obj1 = 0 ; | |
14778 | char *kwnames[] = { | |
14779 | (char *) "self",(char *) "bDoIt", NULL | |
14780 | }; | |
14781 | ||
14782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14784 | if (obj1) { | |
a41e16b6 RD |
14785 | { |
14786 | arg2 = (bool) SPyObj_AsBool(obj1); | |
14787 | if (PyErr_Occurred()) SWIG_fail; | |
14788 | } | |
d14a1e28 RD |
14789 | } |
14790 | { | |
14791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14792 | (arg1)->SetExpandEnvVars(arg2); | |
14793 | ||
14794 | wxPyEndAllowThreads(__tstate); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | } | |
14797 | Py_INCREF(Py_None); resultobj = Py_None; | |
14798 | return resultobj; | |
14799 | fail: | |
14800 | return NULL; | |
14801 | } | |
14802 | ||
14803 | ||
14804 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14805 | PyObject *resultobj; | |
14806 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14807 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14808 | PyObject * obj0 = 0 ; |
14809 | PyObject * obj1 = 0 ; | |
14810 | char *kwnames[] = { | |
14811 | (char *) "self",(char *) "bDoIt", NULL | |
14812 | }; | |
14813 | ||
14814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
14815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14816 | if (obj1) { | |
a41e16b6 RD |
14817 | { |
14818 | arg2 = (bool) SPyObj_AsBool(obj1); | |
14819 | if (PyErr_Occurred()) SWIG_fail; | |
14820 | } | |
d14a1e28 RD |
14821 | } |
14822 | { | |
14823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14824 | (arg1)->SetRecordDefaults(arg2); | |
14825 | ||
14826 | wxPyEndAllowThreads(__tstate); | |
14827 | if (PyErr_Occurred()) SWIG_fail; | |
14828 | } | |
14829 | Py_INCREF(Py_None); resultobj = Py_None; | |
14830 | return resultobj; | |
14831 | fail: | |
14832 | return NULL; | |
14833 | } | |
14834 | ||
14835 | ||
14836 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14837 | PyObject *resultobj; | |
14838 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14839 | bool result; | |
14840 | PyObject * obj0 = 0 ; | |
14841 | char *kwnames[] = { | |
14842 | (char *) "self", NULL | |
14843 | }; | |
14844 | ||
14845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
14846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14847 | { | |
14848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14849 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
14850 | ||
14851 | wxPyEndAllowThreads(__tstate); | |
14852 | if (PyErr_Occurred()) SWIG_fail; | |
14853 | } | |
14854 | resultobj = PyInt_FromLong((long)result); | |
14855 | return resultobj; | |
14856 | fail: | |
14857 | return NULL; | |
14858 | } | |
14859 | ||
14860 | ||
14861 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14862 | PyObject *resultobj; | |
14863 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14864 | wxString *arg2 = 0 ; | |
14865 | wxString result; | |
e811c8ce | 14866 | bool temp2 = False ; |
d14a1e28 RD |
14867 | PyObject * obj0 = 0 ; |
14868 | PyObject * obj1 = 0 ; | |
14869 | char *kwnames[] = { | |
14870 | (char *) "self",(char *) "str", NULL | |
14871 | }; | |
14872 | ||
14873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14875 | { | |
14876 | arg2 = wxString_in_helper(obj1); | |
14877 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14878 | temp2 = True; |
d14a1e28 RD |
14879 | } |
14880 | { | |
14881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14882 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
14883 | ||
14884 | wxPyEndAllowThreads(__tstate); | |
14885 | if (PyErr_Occurred()) SWIG_fail; | |
14886 | } | |
14887 | { | |
14888 | #if wxUSE_UNICODE | |
14889 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14890 | #else | |
14891 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14892 | #endif | |
14893 | } | |
14894 | { | |
14895 | if (temp2) | |
14896 | delete arg2; | |
14897 | } | |
14898 | return resultobj; | |
14899 | fail: | |
14900 | { | |
14901 | if (temp2) | |
14902 | delete arg2; | |
14903 | } | |
14904 | return NULL; | |
14905 | } | |
14906 | ||
14907 | ||
14908 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14909 | PyObject *resultobj; | |
14910 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14911 | wxString result; | |
14912 | PyObject * obj0 = 0 ; | |
14913 | char *kwnames[] = { | |
14914 | (char *) "self", NULL | |
14915 | }; | |
14916 | ||
14917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
14918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14919 | { | |
14920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14921 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
14922 | ||
14923 | wxPyEndAllowThreads(__tstate); | |
14924 | if (PyErr_Occurred()) SWIG_fail; | |
14925 | } | |
14926 | { | |
14927 | #if wxUSE_UNICODE | |
14928 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14929 | #else | |
14930 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14931 | #endif | |
14932 | } | |
14933 | return resultobj; | |
14934 | fail: | |
14935 | return NULL; | |
14936 | } | |
14937 | ||
14938 | ||
14939 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14940 | PyObject *resultobj; | |
14941 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14942 | wxString result; | |
14943 | PyObject * obj0 = 0 ; | |
14944 | char *kwnames[] = { | |
14945 | (char *) "self", NULL | |
14946 | }; | |
14947 | ||
14948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
14949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14950 | { | |
14951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14952 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
14953 | ||
14954 | wxPyEndAllowThreads(__tstate); | |
14955 | if (PyErr_Occurred()) SWIG_fail; | |
14956 | } | |
14957 | { | |
14958 | #if wxUSE_UNICODE | |
14959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14960 | #else | |
14961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14962 | #endif | |
14963 | } | |
14964 | return resultobj; | |
14965 | fail: | |
14966 | return NULL; | |
14967 | } | |
14968 | ||
14969 | ||
14970 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14971 | PyObject *resultobj; | |
14972 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14973 | wxString *arg2 = 0 ; | |
e811c8ce | 14974 | bool temp2 = False ; |
d14a1e28 RD |
14975 | PyObject * obj0 = 0 ; |
14976 | PyObject * obj1 = 0 ; | |
14977 | char *kwnames[] = { | |
14978 | (char *) "self",(char *) "appName", NULL | |
14979 | }; | |
14980 | ||
14981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
14982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14983 | { | |
14984 | arg2 = wxString_in_helper(obj1); | |
14985 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14986 | temp2 = True; |
d14a1e28 RD |
14987 | } |
14988 | { | |
14989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14990 | (arg1)->SetAppName((wxString const &)*arg2); | |
14991 | ||
14992 | wxPyEndAllowThreads(__tstate); | |
14993 | if (PyErr_Occurred()) SWIG_fail; | |
14994 | } | |
14995 | Py_INCREF(Py_None); resultobj = Py_None; | |
14996 | { | |
14997 | if (temp2) | |
14998 | delete arg2; | |
14999 | } | |
15000 | return resultobj; | |
15001 | fail: | |
15002 | { | |
15003 | if (temp2) | |
15004 | delete arg2; | |
15005 | } | |
15006 | return NULL; | |
15007 | } | |
15008 | ||
15009 | ||
15010 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15011 | PyObject *resultobj; | |
15012 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15013 | wxString *arg2 = 0 ; | |
e811c8ce | 15014 | bool temp2 = False ; |
d14a1e28 RD |
15015 | PyObject * obj0 = 0 ; |
15016 | PyObject * obj1 = 0 ; | |
15017 | char *kwnames[] = { | |
15018 | (char *) "self",(char *) "vendorName", NULL | |
15019 | }; | |
15020 | ||
15021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15023 | { | |
15024 | arg2 = wxString_in_helper(obj1); | |
15025 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15026 | temp2 = True; |
d14a1e28 RD |
15027 | } |
15028 | { | |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15030 | (arg1)->SetVendorName((wxString const &)*arg2); | |
15031 | ||
15032 | wxPyEndAllowThreads(__tstate); | |
15033 | if (PyErr_Occurred()) SWIG_fail; | |
15034 | } | |
15035 | Py_INCREF(Py_None); resultobj = Py_None; | |
15036 | { | |
15037 | if (temp2) | |
15038 | delete arg2; | |
15039 | } | |
15040 | return resultobj; | |
15041 | fail: | |
15042 | { | |
15043 | if (temp2) | |
15044 | delete arg2; | |
15045 | } | |
15046 | return NULL; | |
15047 | } | |
15048 | ||
15049 | ||
15050 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15051 | PyObject *resultobj; | |
15052 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15053 | long arg2 ; | |
15054 | PyObject * obj0 = 0 ; | |
15055 | char *kwnames[] = { | |
15056 | (char *) "self",(char *) "style", NULL | |
15057 | }; | |
15058 | ||
15059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
15060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15061 | { | |
15062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15063 | (arg1)->SetStyle(arg2); | |
15064 | ||
15065 | wxPyEndAllowThreads(__tstate); | |
15066 | if (PyErr_Occurred()) SWIG_fail; | |
15067 | } | |
15068 | Py_INCREF(Py_None); resultobj = Py_None; | |
15069 | return resultobj; | |
15070 | fail: | |
15071 | return NULL; | |
15072 | } | |
15073 | ||
15074 | ||
15075 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15076 | PyObject *resultobj; | |
15077 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15078 | long result; | |
15079 | PyObject * obj0 = 0 ; | |
15080 | char *kwnames[] = { | |
15081 | (char *) "self", NULL | |
15082 | }; | |
15083 | ||
15084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15086 | { | |
15087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15088 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
15089 | ||
15090 | wxPyEndAllowThreads(__tstate); | |
15091 | if (PyErr_Occurred()) SWIG_fail; | |
15092 | } | |
15093 | resultobj = PyInt_FromLong((long)result); | |
15094 | return resultobj; | |
15095 | fail: | |
15096 | return NULL; | |
15097 | } | |
15098 | ||
15099 | ||
15100 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
15101 | PyObject *obj; | |
15102 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15103 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
15104 | Py_INCREF(obj); | |
15105 | return Py_BuildValue((char *)""); | |
15106 | } | |
15107 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15108 | PyObject *resultobj; | |
15109 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15110 | wxString *arg2 = 0 ; | |
15111 | wxConfigPathChanger *result; | |
e811c8ce | 15112 | bool temp2 = False ; |
d14a1e28 RD |
15113 | PyObject * obj0 = 0 ; |
15114 | PyObject * obj1 = 0 ; | |
15115 | char *kwnames[] = { | |
15116 | (char *) "pContainer",(char *) "strEntry", NULL | |
15117 | }; | |
15118 | ||
15119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15121 | { | |
15122 | arg2 = wxString_in_helper(obj1); | |
15123 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15124 | temp2 = True; |
d14a1e28 RD |
15125 | } |
15126 | { | |
15127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15128 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
15129 | ||
15130 | wxPyEndAllowThreads(__tstate); | |
15131 | if (PyErr_Occurred()) SWIG_fail; | |
15132 | } | |
15133 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1); | |
15134 | { | |
15135 | if (temp2) | |
15136 | delete arg2; | |
15137 | } | |
15138 | return resultobj; | |
15139 | fail: | |
15140 | { | |
15141 | if (temp2) | |
15142 | delete arg2; | |
15143 | } | |
15144 | return NULL; | |
15145 | } | |
15146 | ||
15147 | ||
15148 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15149 | PyObject *resultobj; | |
15150 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
15151 | PyObject * obj0 = 0 ; | |
15152 | char *kwnames[] = { | |
15153 | (char *) "self", NULL | |
15154 | }; | |
15155 | ||
15156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15158 | { | |
15159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15160 | delete arg1; | |
15161 | ||
15162 | wxPyEndAllowThreads(__tstate); | |
15163 | if (PyErr_Occurred()) SWIG_fail; | |
15164 | } | |
15165 | Py_INCREF(Py_None); resultobj = Py_None; | |
15166 | return resultobj; | |
15167 | fail: | |
15168 | return NULL; | |
15169 | } | |
15170 | ||
15171 | ||
15172 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15173 | PyObject *resultobj; | |
15174 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
15175 | wxString *result; | |
15176 | PyObject * obj0 = 0 ; | |
15177 | char *kwnames[] = { | |
15178 | (char *) "self", NULL | |
15179 | }; | |
15180 | ||
15181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15183 | { | |
15184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15185 | { | |
15186 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
15187 | result = (wxString *) &_result_ref; | |
15188 | } | |
15189 | ||
15190 | wxPyEndAllowThreads(__tstate); | |
15191 | if (PyErr_Occurred()) SWIG_fail; | |
15192 | } | |
cc6dd355 RD |
15193 | { |
15194 | #if wxUSE_UNICODE | |
15195 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15196 | #else | |
15197 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15198 | #endif | |
15199 | } | |
d14a1e28 RD |
15200 | return resultobj; |
15201 | fail: | |
15202 | return NULL; | |
15203 | } | |
15204 | ||
15205 | ||
15206 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
15207 | PyObject *obj; | |
15208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15209 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
15210 | Py_INCREF(obj); | |
15211 | return Py_BuildValue((char *)""); | |
15212 | } | |
15213 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15214 | PyObject *resultobj; | |
15215 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15216 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15217 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15218 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15219 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15220 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15221 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15222 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15223 | long arg5 = (long) 0 ; | |
15224 | wxConfig *result; | |
e811c8ce RD |
15225 | bool temp1 = False ; |
15226 | bool temp2 = False ; | |
15227 | bool temp3 = False ; | |
15228 | bool temp4 = False ; | |
d14a1e28 RD |
15229 | PyObject * obj0 = 0 ; |
15230 | PyObject * obj1 = 0 ; | |
15231 | PyObject * obj2 = 0 ; | |
15232 | PyObject * obj3 = 0 ; | |
15233 | char *kwnames[] = { | |
15234 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
15235 | }; | |
15236 | ||
15237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
15238 | if (obj0) { | |
15239 | { | |
15240 | arg1 = wxString_in_helper(obj0); | |
15241 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15242 | temp1 = True; |
d14a1e28 RD |
15243 | } |
15244 | } | |
15245 | if (obj1) { | |
15246 | { | |
15247 | arg2 = wxString_in_helper(obj1); | |
15248 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15249 | temp2 = True; |
d14a1e28 RD |
15250 | } |
15251 | } | |
15252 | if (obj2) { | |
15253 | { | |
15254 | arg3 = wxString_in_helper(obj2); | |
15255 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15256 | temp3 = True; |
d14a1e28 RD |
15257 | } |
15258 | } | |
15259 | if (obj3) { | |
15260 | { | |
15261 | arg4 = wxString_in_helper(obj3); | |
15262 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15263 | temp4 = True; |
d14a1e28 RD |
15264 | } |
15265 | } | |
15266 | { | |
15267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15268 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
15269 | ||
15270 | wxPyEndAllowThreads(__tstate); | |
15271 | if (PyErr_Occurred()) SWIG_fail; | |
15272 | } | |
15273 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1); | |
15274 | { | |
15275 | if (temp1) | |
15276 | delete arg1; | |
15277 | } | |
15278 | { | |
15279 | if (temp2) | |
15280 | delete arg2; | |
15281 | } | |
15282 | { | |
15283 | if (temp3) | |
15284 | delete arg3; | |
15285 | } | |
15286 | { | |
15287 | if (temp4) | |
15288 | delete arg4; | |
15289 | } | |
15290 | return resultobj; | |
15291 | fail: | |
15292 | { | |
15293 | if (temp1) | |
15294 | delete arg1; | |
15295 | } | |
15296 | { | |
15297 | if (temp2) | |
15298 | delete arg2; | |
15299 | } | |
15300 | { | |
15301 | if (temp3) | |
15302 | delete arg3; | |
15303 | } | |
15304 | { | |
15305 | if (temp4) | |
15306 | delete arg4; | |
15307 | } | |
15308 | return NULL; | |
15309 | } | |
15310 | ||
15311 | ||
15312 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15313 | PyObject *resultobj; | |
15314 | wxConfig *arg1 = (wxConfig *) 0 ; | |
15315 | PyObject * obj0 = 0 ; | |
15316 | char *kwnames[] = { | |
15317 | (char *) "self", NULL | |
15318 | }; | |
15319 | ||
15320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15322 | { | |
15323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15324 | delete arg1; | |
15325 | ||
15326 | wxPyEndAllowThreads(__tstate); | |
15327 | if (PyErr_Occurred()) SWIG_fail; | |
15328 | } | |
15329 | Py_INCREF(Py_None); resultobj = Py_None; | |
15330 | return resultobj; | |
15331 | fail: | |
15332 | return NULL; | |
15333 | } | |
15334 | ||
15335 | ||
15336 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
15337 | PyObject *obj; | |
15338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15339 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
15340 | Py_INCREF(obj); | |
15341 | return Py_BuildValue((char *)""); | |
15342 | } | |
15343 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15344 | PyObject *resultobj; | |
15345 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15346 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15347 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15348 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15349 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15350 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15351 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15352 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15353 | long arg5 = (long) 0 ; | |
15354 | wxFileConfig *result; | |
e811c8ce RD |
15355 | bool temp1 = False ; |
15356 | bool temp2 = False ; | |
15357 | bool temp3 = False ; | |
15358 | bool temp4 = False ; | |
d14a1e28 RD |
15359 | PyObject * obj0 = 0 ; |
15360 | PyObject * obj1 = 0 ; | |
15361 | PyObject * obj2 = 0 ; | |
15362 | PyObject * obj3 = 0 ; | |
15363 | char *kwnames[] = { | |
15364 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
15365 | }; | |
15366 | ||
15367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
15368 | if (obj0) { | |
15369 | { | |
15370 | arg1 = wxString_in_helper(obj0); | |
15371 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15372 | temp1 = True; |
d14a1e28 RD |
15373 | } |
15374 | } | |
15375 | if (obj1) { | |
15376 | { | |
15377 | arg2 = wxString_in_helper(obj1); | |
15378 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15379 | temp2 = True; |
d14a1e28 RD |
15380 | } |
15381 | } | |
15382 | if (obj2) { | |
15383 | { | |
15384 | arg3 = wxString_in_helper(obj2); | |
15385 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15386 | temp3 = True; |
d14a1e28 RD |
15387 | } |
15388 | } | |
15389 | if (obj3) { | |
15390 | { | |
15391 | arg4 = wxString_in_helper(obj3); | |
15392 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15393 | temp4 = True; |
d14a1e28 RD |
15394 | } |
15395 | } | |
15396 | { | |
15397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15398 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
15399 | ||
15400 | wxPyEndAllowThreads(__tstate); | |
15401 | if (PyErr_Occurred()) SWIG_fail; | |
15402 | } | |
15403 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1); | |
15404 | { | |
15405 | if (temp1) | |
15406 | delete arg1; | |
15407 | } | |
15408 | { | |
15409 | if (temp2) | |
15410 | delete arg2; | |
15411 | } | |
15412 | { | |
15413 | if (temp3) | |
15414 | delete arg3; | |
15415 | } | |
15416 | { | |
15417 | if (temp4) | |
15418 | delete arg4; | |
15419 | } | |
15420 | return resultobj; | |
15421 | fail: | |
15422 | { | |
15423 | if (temp1) | |
15424 | delete arg1; | |
15425 | } | |
15426 | { | |
15427 | if (temp2) | |
15428 | delete arg2; | |
15429 | } | |
15430 | { | |
15431 | if (temp3) | |
15432 | delete arg3; | |
15433 | } | |
15434 | { | |
15435 | if (temp4) | |
15436 | delete arg4; | |
15437 | } | |
15438 | return NULL; | |
15439 | } | |
15440 | ||
15441 | ||
15442 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15443 | PyObject *resultobj; | |
15444 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
15445 | PyObject * obj0 = 0 ; | |
15446 | char *kwnames[] = { | |
15447 | (char *) "self", NULL | |
15448 | }; | |
15449 | ||
15450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15452 | { | |
15453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15454 | delete arg1; | |
15455 | ||
15456 | wxPyEndAllowThreads(__tstate); | |
15457 | if (PyErr_Occurred()) SWIG_fail; | |
15458 | } | |
15459 | Py_INCREF(Py_None); resultobj = Py_None; | |
15460 | return resultobj; | |
15461 | fail: | |
15462 | return NULL; | |
15463 | } | |
15464 | ||
15465 | ||
15466 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
15467 | PyObject *obj; | |
15468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15469 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
15470 | Py_INCREF(obj); | |
15471 | return Py_BuildValue((char *)""); | |
15472 | } | |
15473 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15474 | PyObject *resultobj; | |
15475 | wxString *arg1 = 0 ; | |
15476 | wxString result; | |
e811c8ce | 15477 | bool temp1 = False ; |
d14a1e28 RD |
15478 | PyObject * obj0 = 0 ; |
15479 | char *kwnames[] = { | |
15480 | (char *) "sz", NULL | |
15481 | }; | |
15482 | ||
15483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
15484 | { | |
15485 | arg1 = wxString_in_helper(obj0); | |
15486 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15487 | temp1 = True; |
d14a1e28 RD |
15488 | } |
15489 | { | |
15490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15491 | result = wxExpandEnvVars((wxString const &)*arg1); | |
15492 | ||
15493 | wxPyEndAllowThreads(__tstate); | |
15494 | if (PyErr_Occurred()) SWIG_fail; | |
15495 | } | |
15496 | { | |
15497 | #if wxUSE_UNICODE | |
15498 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15499 | #else | |
15500 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15501 | #endif | |
15502 | } | |
15503 | { | |
15504 | if (temp1) | |
15505 | delete arg1; | |
15506 | } | |
15507 | return resultobj; | |
15508 | fail: | |
15509 | { | |
15510 | if (temp1) | |
15511 | delete arg1; | |
15512 | } | |
15513 | return NULL; | |
15514 | } | |
15515 | ||
15516 | ||
b2dc1044 RD |
15517 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
15518 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
15519 | return 1; | |
15520 | } | |
15521 | ||
15522 | ||
15523 | static PyObject *_wrap_DateFormatStr_get() { | |
15524 | PyObject *pyobj; | |
15525 | ||
15526 | { | |
15527 | #if wxUSE_UNICODE | |
15528 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
15529 | #else | |
15530 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
15531 | #endif | |
15532 | } | |
15533 | return pyobj; | |
15534 | } | |
15535 | ||
15536 | ||
15537 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
15538 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
15539 | return 1; | |
15540 | } | |
15541 | ||
15542 | ||
15543 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
15544 | PyObject *pyobj; | |
15545 | ||
15546 | { | |
15547 | #if wxUSE_UNICODE | |
15548 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
15549 | #else | |
15550 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
15551 | #endif | |
15552 | } | |
15553 | return pyobj; | |
15554 | } | |
15555 | ||
15556 | ||
d14a1e28 RD |
15557 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
15558 | PyObject *resultobj; | |
15559 | int arg1 ; | |
15560 | char *kwnames[] = { | |
15561 | (char *) "country", NULL | |
15562 | }; | |
15563 | ||
15564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_SetCountry",kwnames,&arg1)) goto fail; | |
15565 | { | |
15566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15567 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
15568 | ||
15569 | wxPyEndAllowThreads(__tstate); | |
15570 | if (PyErr_Occurred()) SWIG_fail; | |
15571 | } | |
15572 | Py_INCREF(Py_None); resultobj = Py_None; | |
15573 | return resultobj; | |
15574 | fail: | |
15575 | return NULL; | |
15576 | } | |
15577 | ||
15578 | ||
15579 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15580 | PyObject *resultobj; | |
15581 | int result; | |
15582 | char *kwnames[] = { | |
15583 | NULL | |
15584 | }; | |
15585 | ||
15586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
15587 | { | |
15588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15589 | result = (int)wxDateTime::GetCountry(); | |
15590 | ||
15591 | wxPyEndAllowThreads(__tstate); | |
15592 | if (PyErr_Occurred()) SWIG_fail; | |
15593 | } | |
15594 | resultobj = PyInt_FromLong((long)result); | |
15595 | return resultobj; | |
15596 | fail: | |
15597 | return NULL; | |
15598 | } | |
15599 | ||
15600 | ||
15601 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15602 | PyObject *resultobj; | |
15603 | int arg1 = (int) wxDateTime::Country_Default ; | |
15604 | bool result; | |
15605 | char *kwnames[] = { | |
15606 | (char *) "country", NULL | |
15607 | }; | |
15608 | ||
15609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_IsWestEuropeanCountry",kwnames,&arg1)) goto fail; | |
15610 | { | |
15611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15612 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
15613 | ||
15614 | wxPyEndAllowThreads(__tstate); | |
15615 | if (PyErr_Occurred()) SWIG_fail; | |
15616 | } | |
15617 | resultobj = PyInt_FromLong((long)result); | |
15618 | return resultobj; | |
15619 | fail: | |
15620 | return NULL; | |
15621 | } | |
15622 | ||
15623 | ||
15624 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15625 | PyObject *resultobj; | |
15626 | int arg1 = (int) wxDateTime::Gregorian ; | |
15627 | int result; | |
15628 | char *kwnames[] = { | |
15629 | (char *) "cal", NULL | |
15630 | }; | |
15631 | ||
15632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentYear",kwnames,&arg1)) goto fail; | |
15633 | { | |
15634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15635 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
15636 | ||
15637 | wxPyEndAllowThreads(__tstate); | |
15638 | if (PyErr_Occurred()) SWIG_fail; | |
15639 | } | |
15640 | resultobj = PyInt_FromLong((long)result); | |
15641 | return resultobj; | |
15642 | fail: | |
15643 | return NULL; | |
15644 | } | |
15645 | ||
15646 | ||
15647 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15648 | PyObject *resultobj; | |
15649 | int arg1 ; | |
15650 | int result; | |
15651 | char *kwnames[] = { | |
15652 | (char *) "year", NULL | |
15653 | }; | |
15654 | ||
15655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_ConvertYearToBC",kwnames,&arg1)) goto fail; | |
15656 | { | |
15657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15658 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
15659 | ||
15660 | wxPyEndAllowThreads(__tstate); | |
15661 | if (PyErr_Occurred()) SWIG_fail; | |
15662 | } | |
15663 | resultobj = PyInt_FromLong((long)result); | |
15664 | return resultobj; | |
15665 | fail: | |
15666 | return NULL; | |
15667 | } | |
15668 | ||
15669 | ||
15670 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15671 | PyObject *resultobj; | |
15672 | int arg1 = (int) wxDateTime::Gregorian ; | |
15673 | int result; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "cal", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentMonth",kwnames,&arg1)) goto fail; | |
15679 | { | |
15680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15681 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
15682 | ||
15683 | wxPyEndAllowThreads(__tstate); | |
15684 | if (PyErr_Occurred()) SWIG_fail; | |
15685 | } | |
15686 | resultobj = PyInt_FromLong((long)result); | |
15687 | return resultobj; | |
15688 | fail: | |
15689 | return NULL; | |
15690 | } | |
15691 | ||
15692 | ||
15693 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15694 | PyObject *resultobj; | |
15695 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15696 | int arg2 = (int) wxDateTime::Gregorian ; | |
15697 | bool result; | |
15698 | char *kwnames[] = { | |
15699 | (char *) "year",(char *) "cal", NULL | |
15700 | }; | |
15701 | ||
15702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsLeapYear",kwnames,&arg1,&arg2)) goto fail; | |
15703 | { | |
15704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15705 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
15706 | ||
15707 | wxPyEndAllowThreads(__tstate); | |
15708 | if (PyErr_Occurred()) SWIG_fail; | |
15709 | } | |
15710 | resultobj = PyInt_FromLong((long)result); | |
15711 | return resultobj; | |
15712 | fail: | |
15713 | return NULL; | |
15714 | } | |
15715 | ||
15716 | ||
15717 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15718 | PyObject *resultobj; | |
15719 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15720 | int result; | |
15721 | char *kwnames[] = { | |
15722 | (char *) "year", NULL | |
15723 | }; | |
15724 | ||
15725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCentury",kwnames,&arg1)) goto fail; | |
15726 | { | |
15727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15728 | result = (int)wxDateTime::GetCentury(arg1); | |
15729 | ||
15730 | wxPyEndAllowThreads(__tstate); | |
15731 | if (PyErr_Occurred()) SWIG_fail; | |
15732 | } | |
15733 | resultobj = PyInt_FromLong((long)result); | |
15734 | return resultobj; | |
15735 | fail: | |
15736 | return NULL; | |
15737 | } | |
15738 | ||
15739 | ||
15740 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15741 | PyObject *resultobj; | |
15742 | int arg1 ; | |
15743 | int arg2 = (int) wxDateTime::Gregorian ; | |
322913ce | 15744 | int result; |
d14a1e28 RD |
15745 | char *kwnames[] = { |
15746 | (char *) "year",(char *) "cal", NULL | |
15747 | }; | |
15748 | ||
15749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetNumberOfDaysinYear",kwnames,&arg1,&arg2)) goto fail; | |
15750 | { | |
15751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 15752 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
15753 | |
15754 | wxPyEndAllowThreads(__tstate); | |
15755 | if (PyErr_Occurred()) SWIG_fail; | |
15756 | } | |
15757 | resultobj = PyInt_FromLong((long)result); | |
15758 | return resultobj; | |
15759 | fail: | |
15760 | return NULL; | |
15761 | } | |
15762 | ||
15763 | ||
15764 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15765 | PyObject *resultobj; | |
15766 | int arg1 ; | |
15767 | int arg2 = (int) wxDateTime::Inv_Year ; | |
15768 | int arg3 = (int) wxDateTime::Gregorian ; | |
322913ce | 15769 | int result; |
d14a1e28 RD |
15770 | char *kwnames[] = { |
15771 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
15772 | }; | |
15773 | ||
15774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|ii:DateTime_GetNumberOfDaysInMonth",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
15775 | { | |
15776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 15777 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
15778 | |
15779 | wxPyEndAllowThreads(__tstate); | |
15780 | if (PyErr_Occurred()) SWIG_fail; | |
15781 | } | |
15782 | resultobj = PyInt_FromLong((long)result); | |
15783 | return resultobj; | |
15784 | fail: | |
15785 | return NULL; | |
15786 | } | |
15787 | ||
15788 | ||
15789 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15790 | PyObject *resultobj; | |
15791 | int arg1 ; | |
15792 | int arg2 = (int) wxDateTime::Name_Full ; | |
15793 | wxString result; | |
15794 | char *kwnames[] = { | |
15795 | (char *) "month",(char *) "flags", NULL | |
15796 | }; | |
15797 | ||
15798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetMonthName",kwnames,&arg1,&arg2)) goto fail; | |
15799 | { | |
15800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15801 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
15802 | ||
15803 | wxPyEndAllowThreads(__tstate); | |
15804 | if (PyErr_Occurred()) SWIG_fail; | |
15805 | } | |
15806 | { | |
15807 | #if wxUSE_UNICODE | |
15808 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15809 | #else | |
15810 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15811 | #endif | |
15812 | } | |
15813 | return resultobj; | |
15814 | fail: | |
15815 | return NULL; | |
15816 | } | |
15817 | ||
15818 | ||
15819 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15820 | PyObject *resultobj; | |
15821 | int arg1 ; | |
15822 | int arg2 = (int) wxDateTime::Name_Full ; | |
15823 | wxString result; | |
15824 | char *kwnames[] = { | |
15825 | (char *) "weekday",(char *) "flags", NULL | |
15826 | }; | |
15827 | ||
15828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetWeekDayName",kwnames,&arg1,&arg2)) goto fail; | |
15829 | { | |
15830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15831 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
15832 | ||
15833 | wxPyEndAllowThreads(__tstate); | |
15834 | if (PyErr_Occurred()) SWIG_fail; | |
15835 | } | |
15836 | { | |
15837 | #if wxUSE_UNICODE | |
15838 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15839 | #else | |
15840 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15841 | #endif | |
15842 | } | |
15843 | return resultobj; | |
15844 | fail: | |
15845 | return NULL; | |
15846 | } | |
15847 | ||
15848 | ||
15849 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15850 | PyObject *resultobj; | |
15851 | wxString *arg1 = (wxString *) 0 ; | |
15852 | wxString *arg2 = (wxString *) 0 ; | |
7eae615b RD |
15853 | bool temp1 = False ; |
15854 | bool temp2 = False ; | |
d14a1e28 RD |
15855 | PyObject * obj0 = 0 ; |
15856 | PyObject * obj1 = 0 ; | |
15857 | char *kwnames[] = { | |
15858 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
15859 | }; | |
15860 | ||
15861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
7eae615b RD |
15862 | { |
15863 | arg1 = wxString_in_helper(obj0); | |
15864 | if (arg1 == NULL) SWIG_fail; | |
15865 | temp1 = True; | |
15866 | } | |
15867 | { | |
15868 | arg2 = wxString_in_helper(obj1); | |
15869 | if (arg2 == NULL) SWIG_fail; | |
15870 | temp2 = True; | |
15871 | } | |
d14a1e28 RD |
15872 | { |
15873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15874 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
15875 | ||
15876 | wxPyEndAllowThreads(__tstate); | |
15877 | if (PyErr_Occurred()) SWIG_fail; | |
15878 | } | |
15879 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
15880 | { |
15881 | if (temp1) | |
15882 | delete arg1; | |
15883 | } | |
15884 | { | |
15885 | if (temp2) | |
15886 | delete arg2; | |
15887 | } | |
d14a1e28 RD |
15888 | return resultobj; |
15889 | fail: | |
7eae615b RD |
15890 | { |
15891 | if (temp1) | |
15892 | delete arg1; | |
15893 | } | |
15894 | { | |
15895 | if (temp2) | |
15896 | delete arg2; | |
15897 | } | |
d14a1e28 RD |
15898 | return NULL; |
15899 | } | |
15900 | ||
15901 | ||
15902 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15903 | PyObject *resultobj; | |
15904 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15905 | int arg2 = (int) wxDateTime::Country_Default ; | |
15906 | bool result; | |
15907 | char *kwnames[] = { | |
15908 | (char *) "year",(char *) "country", NULL | |
15909 | }; | |
15910 | ||
15911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsDSTApplicable",kwnames,&arg1,&arg2)) goto fail; | |
15912 | { | |
15913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15914 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
15915 | ||
15916 | wxPyEndAllowThreads(__tstate); | |
15917 | if (PyErr_Occurred()) SWIG_fail; | |
15918 | } | |
15919 | resultobj = PyInt_FromLong((long)result); | |
15920 | return resultobj; | |
15921 | fail: | |
15922 | return NULL; | |
15923 | } | |
15924 | ||
15925 | ||
15926 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15927 | PyObject *resultobj; | |
15928 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15929 | int arg2 = (int) wxDateTime::Country_Default ; | |
15930 | wxDateTime result; | |
15931 | char *kwnames[] = { | |
15932 | (char *) "year",(char *) "country", NULL | |
15933 | }; | |
15934 | ||
15935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetBeginDST",kwnames,&arg1,&arg2)) goto fail; | |
15936 | { | |
15937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15938 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
15939 | ||
15940 | wxPyEndAllowThreads(__tstate); | |
15941 | if (PyErr_Occurred()) SWIG_fail; | |
15942 | } | |
15943 | { | |
15944 | wxDateTime * resultptr; | |
15945 | resultptr = new wxDateTime((wxDateTime &) result); | |
15946 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15947 | } | |
15948 | return resultobj; | |
15949 | fail: | |
15950 | return NULL; | |
15951 | } | |
15952 | ||
15953 | ||
15954 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15955 | PyObject *resultobj; | |
15956 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15957 | int arg2 = (int) wxDateTime::Country_Default ; | |
15958 | wxDateTime result; | |
15959 | char *kwnames[] = { | |
15960 | (char *) "year",(char *) "country", NULL | |
15961 | }; | |
15962 | ||
15963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetEndDST",kwnames,&arg1,&arg2)) goto fail; | |
15964 | { | |
15965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15966 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
15967 | ||
15968 | wxPyEndAllowThreads(__tstate); | |
15969 | if (PyErr_Occurred()) SWIG_fail; | |
15970 | } | |
15971 | { | |
15972 | wxDateTime * resultptr; | |
15973 | resultptr = new wxDateTime((wxDateTime &) result); | |
15974 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15975 | } | |
15976 | return resultobj; | |
15977 | fail: | |
15978 | return NULL; | |
15979 | } | |
15980 | ||
15981 | ||
15982 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15983 | PyObject *resultobj; | |
15984 | wxDateTime result; | |
15985 | char *kwnames[] = { | |
15986 | NULL | |
15987 | }; | |
15988 | ||
15989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
15990 | { | |
15991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15992 | result = wxDateTime::Now(); | |
15993 | ||
15994 | wxPyEndAllowThreads(__tstate); | |
15995 | if (PyErr_Occurred()) SWIG_fail; | |
15996 | } | |
15997 | { | |
15998 | wxDateTime * resultptr; | |
15999 | resultptr = new wxDateTime((wxDateTime &) result); | |
16000 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16001 | } | |
16002 | return resultobj; | |
16003 | fail: | |
16004 | return NULL; | |
16005 | } | |
16006 | ||
16007 | ||
16008 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16009 | PyObject *resultobj; | |
16010 | wxDateTime result; | |
16011 | char *kwnames[] = { | |
16012 | NULL | |
16013 | }; | |
16014 | ||
16015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
16016 | { | |
16017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16018 | result = wxDateTime::UNow(); | |
16019 | ||
16020 | wxPyEndAllowThreads(__tstate); | |
16021 | if (PyErr_Occurred()) SWIG_fail; | |
16022 | } | |
16023 | { | |
16024 | wxDateTime * resultptr; | |
16025 | resultptr = new wxDateTime((wxDateTime &) result); | |
16026 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16027 | } | |
16028 | return resultobj; | |
16029 | fail: | |
16030 | return NULL; | |
16031 | } | |
16032 | ||
16033 | ||
16034 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16035 | PyObject *resultobj; | |
16036 | wxDateTime result; | |
16037 | char *kwnames[] = { | |
16038 | NULL | |
16039 | }; | |
16040 | ||
16041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
16042 | { | |
16043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16044 | result = wxDateTime::Today(); | |
16045 | ||
16046 | wxPyEndAllowThreads(__tstate); | |
16047 | if (PyErr_Occurred()) SWIG_fail; | |
16048 | } | |
16049 | { | |
16050 | wxDateTime * resultptr; | |
16051 | resultptr = new wxDateTime((wxDateTime &) result); | |
16052 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16053 | } | |
16054 | return resultobj; | |
16055 | fail: | |
16056 | return NULL; | |
16057 | } | |
16058 | ||
16059 | ||
16060 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16061 | PyObject *resultobj; | |
16062 | wxDateTime *result; | |
16063 | char *kwnames[] = { | |
16064 | NULL | |
16065 | }; | |
16066 | ||
16067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
16068 | { | |
16069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16070 | result = (wxDateTime *)new wxDateTime(); | |
16071 | ||
16072 | wxPyEndAllowThreads(__tstate); | |
16073 | if (PyErr_Occurred()) SWIG_fail; | |
16074 | } | |
16075 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16076 | return resultobj; | |
16077 | fail: | |
16078 | return NULL; | |
16079 | } | |
16080 | ||
16081 | ||
16082 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16083 | PyObject *resultobj; | |
16084 | time_t arg1 ; | |
16085 | wxDateTime *result; | |
16086 | PyObject * obj0 = 0 ; | |
16087 | char *kwnames[] = { | |
16088 | (char *) "timet", NULL | |
16089 | }; | |
16090 | ||
16091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
a41e16b6 RD |
16092 | { |
16093 | arg1 = (time_t) SPyObj_AsUnsignedInt(obj0); | |
16094 | if (PyErr_Occurred()) SWIG_fail; | |
16095 | } | |
d14a1e28 RD |
16096 | { |
16097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16098 | result = (wxDateTime *)new wxDateTime(arg1); | |
16099 | ||
16100 | wxPyEndAllowThreads(__tstate); | |
16101 | if (PyErr_Occurred()) SWIG_fail; | |
16102 | } | |
16103 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16104 | return resultobj; | |
16105 | fail: | |
16106 | return NULL; | |
16107 | } | |
16108 | ||
16109 | ||
16110 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16111 | PyObject *resultobj; | |
16112 | double arg1 ; | |
16113 | wxDateTime *result; | |
16114 | char *kwnames[] = { | |
16115 | (char *) "jdn", NULL | |
16116 | }; | |
16117 | ||
16118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"d:new_DateTimeFromJDN",kwnames,&arg1)) goto fail; | |
16119 | { | |
16120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16121 | result = (wxDateTime *)new wxDateTime(arg1); | |
16122 | ||
16123 | wxPyEndAllowThreads(__tstate); | |
16124 | if (PyErr_Occurred()) SWIG_fail; | |
16125 | } | |
16126 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16127 | return resultobj; | |
16128 | fail: | |
16129 | return NULL; | |
16130 | } | |
16131 | ||
16132 | ||
16133 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16134 | PyObject *resultobj; | |
322913ce RD |
16135 | int arg1 ; |
16136 | int arg2 = (int) 0 ; | |
16137 | int arg3 = (int) 0 ; | |
16138 | int arg4 = (int) 0 ; | |
d14a1e28 | 16139 | wxDateTime *result; |
d14a1e28 RD |
16140 | char *kwnames[] = { |
16141 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16142 | }; | |
16143 | ||
322913ce | 16144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iii:new_DateTimeFromHMS",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 RD |
16145 | { |
16146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16147 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
16148 | ||
16149 | wxPyEndAllowThreads(__tstate); | |
16150 | if (PyErr_Occurred()) SWIG_fail; | |
16151 | } | |
16152 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16153 | return resultobj; | |
16154 | fail: | |
16155 | return NULL; | |
16156 | } | |
16157 | ||
16158 | ||
16159 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16160 | PyObject *resultobj; | |
322913ce | 16161 | int arg1 ; |
d14a1e28 RD |
16162 | int arg2 = (int) wxDateTime::Inv_Month ; |
16163 | int arg3 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
16164 | int arg4 = (int) 0 ; |
16165 | int arg5 = (int) 0 ; | |
16166 | int arg6 = (int) 0 ; | |
16167 | int arg7 = (int) 0 ; | |
d14a1e28 | 16168 | wxDateTime *result; |
d14a1e28 RD |
16169 | char *kwnames[] = { |
16170 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16171 | }; | |
16172 | ||
322913ce | 16173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iiiiii:new_DateTimeFromDMY",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; |
d14a1e28 RD |
16174 | { |
16175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16176 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
16177 | ||
16178 | wxPyEndAllowThreads(__tstate); | |
16179 | if (PyErr_Occurred()) SWIG_fail; | |
16180 | } | |
16181 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
16182 | return resultobj; | |
16183 | fail: | |
16184 | return NULL; | |
16185 | } | |
16186 | ||
16187 | ||
16188 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16189 | PyObject *resultobj; | |
16190 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16191 | PyObject * obj0 = 0 ; | |
16192 | char *kwnames[] = { | |
16193 | (char *) "self", NULL | |
16194 | }; | |
16195 | ||
16196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
16197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16198 | { | |
16199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16200 | delete arg1; | |
16201 | ||
16202 | wxPyEndAllowThreads(__tstate); | |
16203 | if (PyErr_Occurred()) SWIG_fail; | |
16204 | } | |
16205 | Py_INCREF(Py_None); resultobj = Py_None; | |
16206 | return resultobj; | |
16207 | fail: | |
16208 | return NULL; | |
16209 | } | |
16210 | ||
16211 | ||
16212 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16213 | PyObject *resultobj; | |
16214 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16215 | wxDateTime *result; | |
16216 | PyObject * obj0 = 0 ; | |
16217 | char *kwnames[] = { | |
16218 | (char *) "self", NULL | |
16219 | }; | |
16220 | ||
16221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
16222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16223 | { | |
16224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16225 | { | |
16226 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
16227 | result = (wxDateTime *) &_result_ref; | |
16228 | } | |
16229 | ||
16230 | wxPyEndAllowThreads(__tstate); | |
16231 | if (PyErr_Occurred()) SWIG_fail; | |
16232 | } | |
16233 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16234 | return resultobj; | |
16235 | fail: | |
16236 | return NULL; | |
16237 | } | |
16238 | ||
16239 | ||
16240 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16241 | PyObject *resultobj; | |
16242 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16243 | time_t arg2 ; | |
16244 | wxDateTime *result; | |
16245 | PyObject * obj0 = 0 ; | |
16246 | PyObject * obj1 = 0 ; | |
16247 | char *kwnames[] = { | |
16248 | (char *) "self",(char *) "timet", NULL | |
16249 | }; | |
16250 | ||
16251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
16252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
16253 | { |
16254 | arg2 = (time_t) SPyObj_AsUnsignedInt(obj1); | |
16255 | if (PyErr_Occurred()) SWIG_fail; | |
16256 | } | |
d14a1e28 RD |
16257 | { |
16258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16259 | { | |
16260 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
16261 | result = (wxDateTime *) &_result_ref; | |
16262 | } | |
16263 | ||
16264 | wxPyEndAllowThreads(__tstate); | |
16265 | if (PyErr_Occurred()) SWIG_fail; | |
16266 | } | |
16267 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16268 | return resultobj; | |
16269 | fail: | |
16270 | return NULL; | |
16271 | } | |
16272 | ||
16273 | ||
16274 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16275 | PyObject *resultobj; | |
16276 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16277 | double arg2 ; | |
16278 | wxDateTime *result; | |
16279 | PyObject * obj0 = 0 ; | |
16280 | char *kwnames[] = { | |
16281 | (char *) "self",(char *) "jdn", NULL | |
16282 | }; | |
16283 | ||
16284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:DateTime_SetJDN",kwnames,&obj0,&arg2)) goto fail; | |
16285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16286 | { | |
16287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16288 | { | |
16289 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
16290 | result = (wxDateTime *) &_result_ref; | |
16291 | } | |
16292 | ||
16293 | wxPyEndAllowThreads(__tstate); | |
16294 | if (PyErr_Occurred()) SWIG_fail; | |
16295 | } | |
16296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16297 | return resultobj; | |
16298 | fail: | |
16299 | return NULL; | |
16300 | } | |
16301 | ||
16302 | ||
16303 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16304 | PyObject *resultobj; | |
16305 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
16306 | int arg2 ; |
16307 | int arg3 = (int) 0 ; | |
16308 | int arg4 = (int) 0 ; | |
16309 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
16310 | wxDateTime *result; |
16311 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16312 | char *kwnames[] = { |
16313 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16314 | }; | |
16315 | ||
322913ce | 16316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetHMS",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; |
d14a1e28 | 16317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16318 | { |
16319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16320 | { | |
16321 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
16322 | result = (wxDateTime *) &_result_ref; | |
16323 | } | |
16324 | ||
16325 | wxPyEndAllowThreads(__tstate); | |
16326 | if (PyErr_Occurred()) SWIG_fail; | |
16327 | } | |
16328 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16329 | return resultobj; | |
16330 | fail: | |
16331 | return NULL; | |
16332 | } | |
16333 | ||
16334 | ||
16335 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16336 | PyObject *resultobj; | |
16337 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16338 | int arg2 ; |
d14a1e28 RD |
16339 | int arg3 = (int) wxDateTime::Inv_Month ; |
16340 | int arg4 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
16341 | int arg5 = (int) 0 ; |
16342 | int arg6 = (int) 0 ; | |
16343 | int arg7 = (int) 0 ; | |
16344 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
16345 | wxDateTime *result; |
16346 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16347 | char *kwnames[] = { |
16348 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16349 | }; | |
16350 | ||
322913ce | 16351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iiiiii:DateTime_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail; |
d14a1e28 | 16352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16353 | { |
16354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16355 | { | |
16356 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
16357 | result = (wxDateTime *) &_result_ref; | |
16358 | } | |
16359 | ||
16360 | wxPyEndAllowThreads(__tstate); | |
16361 | if (PyErr_Occurred()) SWIG_fail; | |
16362 | } | |
16363 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16364 | return resultobj; | |
16365 | fail: | |
16366 | return NULL; | |
16367 | } | |
16368 | ||
16369 | ||
16370 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16371 | PyObject *resultobj; | |
16372 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16373 | wxDateTime *result; | |
16374 | PyObject * obj0 = 0 ; | |
16375 | char *kwnames[] = { | |
16376 | (char *) "self", NULL | |
16377 | }; | |
16378 | ||
16379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
16380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16381 | { | |
16382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16383 | { | |
16384 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
16385 | result = (wxDateTime *) &_result_ref; | |
16386 | } | |
16387 | ||
16388 | wxPyEndAllowThreads(__tstate); | |
16389 | if (PyErr_Occurred()) SWIG_fail; | |
16390 | } | |
16391 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16392 | return resultobj; | |
16393 | fail: | |
16394 | return NULL; | |
16395 | } | |
16396 | ||
16397 | ||
16398 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16399 | PyObject *resultobj; | |
16400 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16401 | int arg2 ; | |
16402 | wxDateTime *result; | |
16403 | PyObject * obj0 = 0 ; | |
16404 | char *kwnames[] = { | |
16405 | (char *) "self",(char *) "year", NULL | |
16406 | }; | |
16407 | ||
16408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetYear",kwnames,&obj0,&arg2)) goto fail; | |
16409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16410 | { | |
16411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16412 | { | |
16413 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
16414 | result = (wxDateTime *) &_result_ref; | |
16415 | } | |
16416 | ||
16417 | wxPyEndAllowThreads(__tstate); | |
16418 | if (PyErr_Occurred()) SWIG_fail; | |
16419 | } | |
16420 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16421 | return resultobj; | |
16422 | fail: | |
16423 | return NULL; | |
16424 | } | |
16425 | ||
16426 | ||
16427 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16428 | PyObject *resultobj; | |
16429 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16430 | int arg2 ; | |
16431 | wxDateTime *result; | |
16432 | PyObject * obj0 = 0 ; | |
16433 | char *kwnames[] = { | |
16434 | (char *) "self",(char *) "month", NULL | |
16435 | }; | |
16436 | ||
16437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMonth",kwnames,&obj0,&arg2)) goto fail; | |
16438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16439 | { | |
16440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16441 | { | |
16442 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
16443 | result = (wxDateTime *) &_result_ref; | |
16444 | } | |
16445 | ||
16446 | wxPyEndAllowThreads(__tstate); | |
16447 | if (PyErr_Occurred()) SWIG_fail; | |
16448 | } | |
16449 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16450 | return resultobj; | |
16451 | fail: | |
16452 | return NULL; | |
16453 | } | |
16454 | ||
16455 | ||
16456 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16457 | PyObject *resultobj; | |
16458 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16459 | int arg2 ; |
d14a1e28 RD |
16460 | wxDateTime *result; |
16461 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16462 | char *kwnames[] = { |
16463 | (char *) "self",(char *) "day", NULL | |
16464 | }; | |
16465 | ||
322913ce | 16466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16468 | { |
16469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16470 | { | |
16471 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
16472 | result = (wxDateTime *) &_result_ref; | |
16473 | } | |
16474 | ||
16475 | wxPyEndAllowThreads(__tstate); | |
16476 | if (PyErr_Occurred()) SWIG_fail; | |
16477 | } | |
16478 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16479 | return resultobj; | |
16480 | fail: | |
16481 | return NULL; | |
16482 | } | |
16483 | ||
16484 | ||
16485 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16486 | PyObject *resultobj; | |
16487 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16488 | int arg2 ; |
d14a1e28 RD |
16489 | wxDateTime *result; |
16490 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16491 | char *kwnames[] = { |
16492 | (char *) "self",(char *) "hour", NULL | |
16493 | }; | |
16494 | ||
322913ce | 16495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetHour",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16497 | { |
16498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16499 | { | |
16500 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
16501 | result = (wxDateTime *) &_result_ref; | |
16502 | } | |
16503 | ||
16504 | wxPyEndAllowThreads(__tstate); | |
16505 | if (PyErr_Occurred()) SWIG_fail; | |
16506 | } | |
16507 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16508 | return resultobj; | |
16509 | fail: | |
16510 | return NULL; | |
16511 | } | |
16512 | ||
16513 | ||
16514 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16515 | PyObject *resultobj; | |
16516 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16517 | int arg2 ; |
d14a1e28 RD |
16518 | wxDateTime *result; |
16519 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16520 | char *kwnames[] = { |
16521 | (char *) "self",(char *) "minute", NULL | |
16522 | }; | |
16523 | ||
322913ce | 16524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMinute",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16526 | { |
16527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16528 | { | |
16529 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
16530 | result = (wxDateTime *) &_result_ref; | |
16531 | } | |
16532 | ||
16533 | wxPyEndAllowThreads(__tstate); | |
16534 | if (PyErr_Occurred()) SWIG_fail; | |
16535 | } | |
16536 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16537 | return resultobj; | |
16538 | fail: | |
16539 | return NULL; | |
16540 | } | |
16541 | ||
16542 | ||
16543 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16544 | PyObject *resultobj; | |
16545 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16546 | int arg2 ; |
d14a1e28 RD |
16547 | wxDateTime *result; |
16548 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16549 | char *kwnames[] = { |
16550 | (char *) "self",(char *) "second", NULL | |
16551 | }; | |
16552 | ||
322913ce | 16553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetSecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16555 | { |
16556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16557 | { | |
16558 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
16559 | result = (wxDateTime *) &_result_ref; | |
16560 | } | |
16561 | ||
16562 | wxPyEndAllowThreads(__tstate); | |
16563 | if (PyErr_Occurred()) SWIG_fail; | |
16564 | } | |
16565 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16566 | return resultobj; | |
16567 | fail: | |
16568 | return NULL; | |
16569 | } | |
16570 | ||
16571 | ||
16572 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16573 | PyObject *resultobj; | |
16574 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16575 | int arg2 ; |
d14a1e28 RD |
16576 | wxDateTime *result; |
16577 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16578 | char *kwnames[] = { |
16579 | (char *) "self",(char *) "millisecond", NULL | |
16580 | }; | |
16581 | ||
322913ce | 16582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMillisecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16584 | { |
16585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16586 | { | |
16587 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
16588 | result = (wxDateTime *) &_result_ref; | |
16589 | } | |
16590 | ||
16591 | wxPyEndAllowThreads(__tstate); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | } | |
16594 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16595 | return resultobj; | |
16596 | fail: | |
16597 | return NULL; | |
16598 | } | |
16599 | ||
16600 | ||
16601 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16602 | PyObject *resultobj; | |
16603 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16604 | int arg2 ; | |
16605 | int arg3 = (int) wxDateTime::Monday_First ; | |
16606 | wxDateTime *result; | |
16607 | PyObject * obj0 = 0 ; | |
16608 | char *kwnames[] = { | |
16609 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16610 | }; | |
16611 | ||
16612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16614 | { | |
16615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16616 | { | |
16617 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16618 | result = (wxDateTime *) &_result_ref; | |
16619 | } | |
16620 | ||
16621 | wxPyEndAllowThreads(__tstate); | |
16622 | if (PyErr_Occurred()) SWIG_fail; | |
16623 | } | |
16624 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16625 | return resultobj; | |
16626 | fail: | |
16627 | return NULL; | |
16628 | } | |
16629 | ||
16630 | ||
16631 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16632 | PyObject *resultobj; | |
16633 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16634 | int arg2 ; | |
16635 | int arg3 = (int) wxDateTime::Monday_First ; | |
16636 | wxDateTime result; | |
16637 | PyObject * obj0 = 0 ; | |
16638 | char *kwnames[] = { | |
16639 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16640 | }; | |
16641 | ||
16642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16644 | { | |
16645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16646 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16647 | ||
16648 | wxPyEndAllowThreads(__tstate); | |
16649 | if (PyErr_Occurred()) SWIG_fail; | |
16650 | } | |
16651 | { | |
16652 | wxDateTime * resultptr; | |
16653 | resultptr = new wxDateTime((wxDateTime &) result); | |
16654 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16655 | } | |
16656 | return resultobj; | |
16657 | fail: | |
16658 | return NULL; | |
16659 | } | |
16660 | ||
16661 | ||
16662 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16663 | PyObject *resultobj; | |
16664 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16665 | int arg2 ; | |
16666 | wxDateTime *result; | |
16667 | PyObject * obj0 = 0 ; | |
16668 | char *kwnames[] = { | |
16669 | (char *) "self",(char *) "weekday", NULL | |
16670 | }; | |
16671 | ||
16672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16674 | { | |
16675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16676 | { | |
16677 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
16678 | result = (wxDateTime *) &_result_ref; | |
16679 | } | |
16680 | ||
16681 | wxPyEndAllowThreads(__tstate); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
16684 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
16691 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16692 | PyObject *resultobj; | |
16693 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16694 | int arg2 ; | |
16695 | wxDateTime result; | |
16696 | PyObject * obj0 = 0 ; | |
16697 | char *kwnames[] = { | |
16698 | (char *) "self",(char *) "weekday", NULL | |
16699 | }; | |
16700 | ||
16701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16703 | { | |
16704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16705 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
16706 | ||
16707 | wxPyEndAllowThreads(__tstate); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | { | |
16711 | wxDateTime * resultptr; | |
16712 | resultptr = new wxDateTime((wxDateTime &) result); | |
16713 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16714 | } | |
16715 | return resultobj; | |
16716 | fail: | |
16717 | return NULL; | |
16718 | } | |
16719 | ||
16720 | ||
16721 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16722 | PyObject *resultobj; | |
16723 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16724 | int arg2 ; | |
16725 | wxDateTime *result; | |
16726 | PyObject * obj0 = 0 ; | |
16727 | char *kwnames[] = { | |
16728 | (char *) "self",(char *) "weekday", NULL | |
16729 | }; | |
16730 | ||
16731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16733 | { | |
16734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16735 | { | |
16736 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16737 | result = (wxDateTime *) &_result_ref; | |
16738 | } | |
16739 | ||
16740 | wxPyEndAllowThreads(__tstate); | |
16741 | if (PyErr_Occurred()) SWIG_fail; | |
16742 | } | |
16743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16744 | return resultobj; | |
16745 | fail: | |
16746 | return NULL; | |
16747 | } | |
16748 | ||
16749 | ||
16750 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16751 | PyObject *resultobj; | |
16752 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16753 | int arg2 ; | |
16754 | wxDateTime result; | |
16755 | PyObject * obj0 = 0 ; | |
16756 | char *kwnames[] = { | |
16757 | (char *) "self",(char *) "weekday", NULL | |
16758 | }; | |
16759 | ||
16760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16762 | { | |
16763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16764 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16765 | ||
16766 | wxPyEndAllowThreads(__tstate); | |
16767 | if (PyErr_Occurred()) SWIG_fail; | |
16768 | } | |
16769 | { | |
16770 | wxDateTime * resultptr; | |
16771 | resultptr = new wxDateTime((wxDateTime &) result); | |
16772 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16773 | } | |
16774 | return resultobj; | |
16775 | fail: | |
16776 | return NULL; | |
16777 | } | |
16778 | ||
16779 | ||
16780 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16781 | PyObject *resultobj; | |
16782 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16783 | int arg2 ; | |
16784 | int arg3 = (int) 1 ; | |
16785 | int arg4 = (int) wxDateTime::Inv_Month ; | |
16786 | int arg5 = (int) wxDateTime::Inv_Year ; | |
16787 | bool result; | |
16788 | PyObject * obj0 = 0 ; | |
16789 | char *kwnames[] = { | |
16790 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
16791 | }; | |
16792 | ||
16793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetToWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16795 | { | |
16796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16797 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
16798 | ||
16799 | wxPyEndAllowThreads(__tstate); | |
16800 | if (PyErr_Occurred()) SWIG_fail; | |
16801 | } | |
16802 | resultobj = PyInt_FromLong((long)result); | |
16803 | return resultobj; | |
16804 | fail: | |
16805 | return NULL; | |
16806 | } | |
16807 | ||
16808 | ||
16809 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16810 | PyObject *resultobj; | |
16811 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16812 | int arg2 ; | |
16813 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16814 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16815 | bool result; | |
16816 | PyObject * obj0 = 0 ; | |
16817 | char *kwnames[] = { | |
16818 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16819 | }; | |
16820 | ||
16821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16823 | { | |
16824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16825 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16826 | ||
16827 | wxPyEndAllowThreads(__tstate); | |
16828 | if (PyErr_Occurred()) SWIG_fail; | |
16829 | } | |
16830 | resultobj = PyInt_FromLong((long)result); | |
16831 | return resultobj; | |
16832 | fail: | |
16833 | return NULL; | |
16834 | } | |
16835 | ||
16836 | ||
16837 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16838 | PyObject *resultobj; | |
16839 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16840 | int arg2 ; | |
16841 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16842 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16843 | wxDateTime result; | |
16844 | PyObject * obj0 = 0 ; | |
16845 | char *kwnames[] = { | |
16846 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16847 | }; | |
16848 | ||
16849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16851 | { | |
16852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16853 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16854 | ||
16855 | wxPyEndAllowThreads(__tstate); | |
16856 | if (PyErr_Occurred()) SWIG_fail; | |
16857 | } | |
16858 | { | |
16859 | wxDateTime * resultptr; | |
16860 | resultptr = new wxDateTime((wxDateTime &) result); | |
16861 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16862 | } | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
16866 | } | |
16867 | ||
16868 | ||
16869 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16870 | PyObject *resultobj; | |
16871 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16872 | int arg2 ; |
d14a1e28 RD |
16873 | int arg3 = (int) wxDateTime::Mon ; |
16874 | int arg4 = (int) wxDateTime::Monday_First ; | |
16875 | bool result; | |
16876 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16877 | char *kwnames[] = { |
16878 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16879 | }; | |
16880 | ||
322913ce | 16881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToTheWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16883 | { |
16884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16885 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16886 | ||
16887 | wxPyEndAllowThreads(__tstate); | |
16888 | if (PyErr_Occurred()) SWIG_fail; | |
16889 | } | |
16890 | resultobj = PyInt_FromLong((long)result); | |
16891 | return resultobj; | |
16892 | fail: | |
16893 | return NULL; | |
16894 | } | |
16895 | ||
16896 | ||
16897 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16898 | PyObject *resultobj; | |
16899 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16900 | int arg2 ; |
d14a1e28 RD |
16901 | int arg3 = (int) wxDateTime::Mon ; |
16902 | int arg4 = (int) wxDateTime::Monday_First ; | |
16903 | wxDateTime result; | |
16904 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16905 | char *kwnames[] = { |
16906 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16907 | }; | |
16908 | ||
322913ce | 16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16911 | { |
16912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16913 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16914 | ||
16915 | wxPyEndAllowThreads(__tstate); | |
16916 | if (PyErr_Occurred()) SWIG_fail; | |
16917 | } | |
16918 | { | |
16919 | wxDateTime * resultptr; | |
16920 | resultptr = new wxDateTime((wxDateTime &) result); | |
16921 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16922 | } | |
16923 | return resultobj; | |
16924 | fail: | |
16925 | return NULL; | |
16926 | } | |
16927 | ||
16928 | ||
16929 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16930 | PyObject *resultobj; | |
16931 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16932 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16933 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16934 | wxDateTime *result; | |
16935 | PyObject * obj0 = 0 ; | |
16936 | char *kwnames[] = { | |
16937 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16938 | }; | |
16939 | ||
16940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_SetToLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16942 | { | |
16943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16944 | { | |
16945 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16946 | result = (wxDateTime *) &_result_ref; | |
16947 | } | |
16948 | ||
16949 | wxPyEndAllowThreads(__tstate); | |
16950 | if (PyErr_Occurred()) SWIG_fail; | |
16951 | } | |
16952 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16953 | return resultobj; | |
16954 | fail: | |
16955 | return NULL; | |
16956 | } | |
16957 | ||
16958 | ||
16959 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16960 | PyObject *resultobj; | |
16961 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16962 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16963 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16964 | wxDateTime result; | |
16965 | PyObject * obj0 = 0 ; | |
16966 | char *kwnames[] = { | |
16967 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16968 | }; | |
16969 | ||
16970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_GetLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16972 | { | |
16973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16974 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16975 | ||
16976 | wxPyEndAllowThreads(__tstate); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
16979 | { | |
16980 | wxDateTime * resultptr; | |
16981 | resultptr = new wxDateTime((wxDateTime &) result); | |
16982 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16983 | } | |
16984 | return resultobj; | |
16985 | fail: | |
16986 | return NULL; | |
16987 | } | |
16988 | ||
16989 | ||
16990 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16991 | PyObject *resultobj; | |
16992 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 16993 | int arg2 ; |
d14a1e28 RD |
16994 | wxDateTime *result; |
16995 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16996 | char *kwnames[] = { |
16997 | (char *) "self",(char *) "yday", NULL | |
16998 | }; | |
16999 | ||
322913ce | 17000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 17001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
17002 | { |
17003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17004 | { | |
17005 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
17006 | result = (wxDateTime *) &_result_ref; | |
17007 | } | |
17008 | ||
17009 | wxPyEndAllowThreads(__tstate); | |
17010 | if (PyErr_Occurred()) SWIG_fail; | |
17011 | } | |
17012 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17013 | return resultobj; | |
17014 | fail: | |
17015 | return NULL; | |
17016 | } | |
17017 | ||
17018 | ||
17019 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17020 | PyObject *resultobj; | |
17021 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17022 | int arg2 ; |
d14a1e28 RD |
17023 | wxDateTime result; |
17024 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
17025 | char *kwnames[] = { |
17026 | (char *) "self",(char *) "yday", NULL | |
17027 | }; | |
17028 | ||
322913ce | 17029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 17030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
17031 | { |
17032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17033 | result = (arg1)->GetYearDay(arg2); | |
17034 | ||
17035 | wxPyEndAllowThreads(__tstate); | |
17036 | if (PyErr_Occurred()) SWIG_fail; | |
17037 | } | |
17038 | { | |
17039 | wxDateTime * resultptr; | |
17040 | resultptr = new wxDateTime((wxDateTime &) result); | |
17041 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17042 | } | |
17043 | return resultobj; | |
17044 | fail: | |
17045 | return NULL; | |
17046 | } | |
17047 | ||
17048 | ||
17049 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17050 | PyObject *resultobj; | |
17051 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17052 | double result; | |
17053 | PyObject * obj0 = 0 ; | |
17054 | char *kwnames[] = { | |
17055 | (char *) "self", NULL | |
17056 | }; | |
17057 | ||
17058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
17059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17060 | { | |
17061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17062 | result = (double)(arg1)->GetJulianDayNumber(); | |
17063 | ||
17064 | wxPyEndAllowThreads(__tstate); | |
17065 | if (PyErr_Occurred()) SWIG_fail; | |
17066 | } | |
17067 | resultobj = PyFloat_FromDouble(result); | |
17068 | return resultobj; | |
17069 | fail: | |
17070 | return NULL; | |
17071 | } | |
17072 | ||
17073 | ||
17074 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17075 | PyObject *resultobj; | |
17076 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17077 | double result; | |
17078 | PyObject * obj0 = 0 ; | |
17079 | char *kwnames[] = { | |
17080 | (char *) "self", NULL | |
17081 | }; | |
17082 | ||
17083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
17084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17085 | { | |
17086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17087 | result = (double)(arg1)->GetJDN(); | |
17088 | ||
17089 | wxPyEndAllowThreads(__tstate); | |
17090 | if (PyErr_Occurred()) SWIG_fail; | |
17091 | } | |
17092 | resultobj = PyFloat_FromDouble(result); | |
17093 | return resultobj; | |
17094 | fail: | |
17095 | return NULL; | |
17096 | } | |
17097 | ||
17098 | ||
17099 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17100 | PyObject *resultobj; | |
17101 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17102 | double result; | |
17103 | PyObject * obj0 = 0 ; | |
17104 | char *kwnames[] = { | |
17105 | (char *) "self", NULL | |
17106 | }; | |
17107 | ||
17108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
17109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17110 | { | |
17111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17112 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
17113 | ||
17114 | wxPyEndAllowThreads(__tstate); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
17117 | resultobj = PyFloat_FromDouble(result); | |
17118 | return resultobj; | |
17119 | fail: | |
17120 | return NULL; | |
17121 | } | |
17122 | ||
17123 | ||
17124 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17125 | PyObject *resultobj; | |
17126 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17127 | double result; | |
17128 | PyObject * obj0 = 0 ; | |
17129 | char *kwnames[] = { | |
17130 | (char *) "self", NULL | |
17131 | }; | |
17132 | ||
17133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
17134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17135 | { | |
17136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17137 | result = (double)(arg1)->GetMJD(); | |
17138 | ||
17139 | wxPyEndAllowThreads(__tstate); | |
17140 | if (PyErr_Occurred()) SWIG_fail; | |
17141 | } | |
17142 | resultobj = PyFloat_FromDouble(result); | |
17143 | return resultobj; | |
17144 | fail: | |
17145 | return NULL; | |
17146 | } | |
17147 | ||
17148 | ||
17149 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17150 | PyObject *resultobj; | |
17151 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17152 | double result; | |
17153 | PyObject * obj0 = 0 ; | |
17154 | char *kwnames[] = { | |
17155 | (char *) "self", NULL | |
17156 | }; | |
17157 | ||
17158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
17159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17160 | { | |
17161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17162 | result = (double)(arg1)->GetRataDie(); | |
17163 | ||
17164 | wxPyEndAllowThreads(__tstate); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
17166 | } | |
17167 | resultobj = PyFloat_FromDouble(result); | |
17168 | return resultobj; | |
17169 | fail: | |
17170 | return NULL; | |
17171 | } | |
17172 | ||
17173 | ||
17174 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17175 | PyObject *resultobj; | |
17176 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17177 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 17178 | bool arg3 = (bool) False ; |
d14a1e28 | 17179 | wxDateTime result; |
7722248d | 17180 | bool temp2 = False ; |
d14a1e28 RD |
17181 | PyObject * obj0 = 0 ; |
17182 | PyObject * obj1 = 0 ; | |
17183 | PyObject * obj2 = 0 ; | |
17184 | char *kwnames[] = { | |
17185 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
17186 | }; | |
17187 | ||
17188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17190 | { | |
17191 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17192 | temp2 = True; |
d14a1e28 RD |
17193 | } |
17194 | if (obj2) { | |
a41e16b6 RD |
17195 | { |
17196 | arg3 = (bool) SPyObj_AsBool(obj2); | |
17197 | if (PyErr_Occurred()) SWIG_fail; | |
17198 | } | |
d14a1e28 RD |
17199 | } |
17200 | { | |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17202 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
17203 | ||
17204 | wxPyEndAllowThreads(__tstate); | |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
17206 | } | |
17207 | { | |
17208 | wxDateTime * resultptr; | |
17209 | resultptr = new wxDateTime((wxDateTime &) result); | |
17210 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17211 | } | |
17212 | { | |
7722248d | 17213 | if (temp2) delete arg2; |
d14a1e28 RD |
17214 | } |
17215 | return resultobj; | |
17216 | fail: | |
17217 | { | |
7722248d | 17218 | if (temp2) delete arg2; |
d14a1e28 RD |
17219 | } |
17220 | return NULL; | |
17221 | } | |
17222 | ||
17223 | ||
17224 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17225 | PyObject *resultobj; | |
17226 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17227 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 17228 | bool arg3 = (bool) False ; |
d14a1e28 | 17229 | wxDateTime *result; |
7722248d | 17230 | bool temp2 = False ; |
d14a1e28 RD |
17231 | PyObject * obj0 = 0 ; |
17232 | PyObject * obj1 = 0 ; | |
17233 | PyObject * obj2 = 0 ; | |
17234 | char *kwnames[] = { | |
17235 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
17236 | }; | |
17237 | ||
17238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17240 | { | |
17241 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17242 | temp2 = True; |
d14a1e28 RD |
17243 | } |
17244 | if (obj2) { | |
a41e16b6 RD |
17245 | { |
17246 | arg3 = (bool) SPyObj_AsBool(obj2); | |
17247 | if (PyErr_Occurred()) SWIG_fail; | |
17248 | } | |
d14a1e28 RD |
17249 | } |
17250 | { | |
17251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17252 | { | |
17253 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
17254 | result = (wxDateTime *) &_result_ref; | |
17255 | } | |
17256 | ||
17257 | wxPyEndAllowThreads(__tstate); | |
17258 | if (PyErr_Occurred()) SWIG_fail; | |
17259 | } | |
17260 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17261 | { | |
7722248d | 17262 | if (temp2) delete arg2; |
d14a1e28 RD |
17263 | } |
17264 | return resultobj; | |
17265 | fail: | |
17266 | { | |
7722248d | 17267 | if (temp2) delete arg2; |
d14a1e28 RD |
17268 | } |
17269 | return NULL; | |
17270 | } | |
17271 | ||
17272 | ||
17273 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17274 | PyObject *resultobj; | |
17275 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 17276 | bool arg2 = (bool) False ; |
d14a1e28 RD |
17277 | wxDateTime result; |
17278 | PyObject * obj0 = 0 ; | |
17279 | PyObject * obj1 = 0 ; | |
17280 | char *kwnames[] = { | |
17281 | (char *) "self",(char *) "noDST", NULL | |
17282 | }; | |
17283 | ||
17284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
17285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17286 | if (obj1) { | |
a41e16b6 RD |
17287 | { |
17288 | arg2 = (bool) SPyObj_AsBool(obj1); | |
17289 | if (PyErr_Occurred()) SWIG_fail; | |
17290 | } | |
d14a1e28 RD |
17291 | } |
17292 | { | |
17293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17294 | result = (arg1)->ToGMT(arg2); | |
17295 | ||
17296 | wxPyEndAllowThreads(__tstate); | |
17297 | if (PyErr_Occurred()) SWIG_fail; | |
17298 | } | |
17299 | { | |
17300 | wxDateTime * resultptr; | |
17301 | resultptr = new wxDateTime((wxDateTime &) result); | |
17302 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17303 | } | |
17304 | return resultobj; | |
17305 | fail: | |
17306 | return NULL; | |
17307 | } | |
17308 | ||
17309 | ||
17310 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17311 | PyObject *resultobj; | |
17312 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 17313 | bool arg2 = (bool) False ; |
d14a1e28 RD |
17314 | wxDateTime *result; |
17315 | PyObject * obj0 = 0 ; | |
17316 | PyObject * obj1 = 0 ; | |
17317 | char *kwnames[] = { | |
17318 | (char *) "self",(char *) "noDST", NULL | |
17319 | }; | |
17320 | ||
17321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
17322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17323 | if (obj1) { | |
a41e16b6 RD |
17324 | { |
17325 | arg2 = (bool) SPyObj_AsBool(obj1); | |
17326 | if (PyErr_Occurred()) SWIG_fail; | |
17327 | } | |
d14a1e28 RD |
17328 | } |
17329 | { | |
17330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17331 | { | |
17332 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
17333 | result = (wxDateTime *) &_result_ref; | |
17334 | } | |
17335 | ||
17336 | wxPyEndAllowThreads(__tstate); | |
17337 | if (PyErr_Occurred()) SWIG_fail; | |
17338 | } | |
17339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17340 | return resultobj; | |
17341 | fail: | |
17342 | return NULL; | |
17343 | } | |
17344 | ||
17345 | ||
17346 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17347 | PyObject *resultobj; | |
17348 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17349 | int arg2 = (int) wxDateTime::Country_Default ; | |
17350 | int result; | |
17351 | PyObject * obj0 = 0 ; | |
17352 | char *kwnames[] = { | |
17353 | (char *) "self",(char *) "country", NULL | |
17354 | }; | |
17355 | ||
17356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsDST",kwnames,&obj0,&arg2)) goto fail; | |
17357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17358 | { | |
17359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17360 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
17361 | ||
17362 | wxPyEndAllowThreads(__tstate); | |
17363 | if (PyErr_Occurred()) SWIG_fail; | |
17364 | } | |
17365 | resultobj = PyInt_FromLong((long)result); | |
17366 | return resultobj; | |
17367 | fail: | |
17368 | return NULL; | |
17369 | } | |
17370 | ||
17371 | ||
17372 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17373 | PyObject *resultobj; | |
17374 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17375 | bool result; | |
17376 | PyObject * obj0 = 0 ; | |
17377 | char *kwnames[] = { | |
17378 | (char *) "self", NULL | |
17379 | }; | |
17380 | ||
17381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
17382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17383 | { | |
17384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17385 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
17386 | ||
17387 | wxPyEndAllowThreads(__tstate); | |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
17389 | } | |
17390 | resultobj = PyInt_FromLong((long)result); | |
17391 | return resultobj; | |
17392 | fail: | |
17393 | return NULL; | |
17394 | } | |
17395 | ||
17396 | ||
17397 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17398 | PyObject *resultobj; | |
17399 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17400 | time_t result; | |
17401 | PyObject * obj0 = 0 ; | |
17402 | char *kwnames[] = { | |
17403 | (char *) "self", NULL | |
17404 | }; | |
17405 | ||
17406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
17407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17408 | { | |
17409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17410 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
17411 | ||
17412 | wxPyEndAllowThreads(__tstate); | |
17413 | if (PyErr_Occurred()) SWIG_fail; | |
17414 | } | |
a41e16b6 | 17415 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
17416 | return resultobj; |
17417 | fail: | |
17418 | return NULL; | |
17419 | } | |
17420 | ||
17421 | ||
17422 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17423 | PyObject *resultobj; | |
17424 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17425 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17426 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17427 | int result; | |
7722248d | 17428 | bool temp2 = False ; |
d14a1e28 RD |
17429 | PyObject * obj0 = 0 ; |
17430 | PyObject * obj1 = 0 ; | |
17431 | char *kwnames[] = { | |
17432 | (char *) "self",(char *) "tz", NULL | |
17433 | }; | |
17434 | ||
17435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
17436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17437 | if (obj1) { | |
17438 | { | |
17439 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17440 | temp2 = True; |
d14a1e28 RD |
17441 | } |
17442 | } | |
17443 | { | |
17444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17445 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
17446 | ||
17447 | wxPyEndAllowThreads(__tstate); | |
17448 | if (PyErr_Occurred()) SWIG_fail; | |
17449 | } | |
17450 | resultobj = PyInt_FromLong((long)result); | |
17451 | { | |
7722248d | 17452 | if (temp2) delete arg2; |
d14a1e28 RD |
17453 | } |
17454 | return resultobj; | |
17455 | fail: | |
17456 | { | |
7722248d | 17457 | if (temp2) delete arg2; |
d14a1e28 RD |
17458 | } |
17459 | return NULL; | |
17460 | } | |
17461 | ||
17462 | ||
17463 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17464 | PyObject *resultobj; | |
17465 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17466 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17467 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17468 | int result; | |
7722248d | 17469 | bool temp2 = False ; |
d14a1e28 RD |
17470 | PyObject * obj0 = 0 ; |
17471 | PyObject * obj1 = 0 ; | |
17472 | char *kwnames[] = { | |
17473 | (char *) "self",(char *) "tz", NULL | |
17474 | }; | |
17475 | ||
17476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17478 | if (obj1) { | |
17479 | { | |
17480 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17481 | temp2 = True; |
d14a1e28 RD |
17482 | } |
17483 | } | |
17484 | { | |
17485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17486 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
17487 | ||
17488 | wxPyEndAllowThreads(__tstate); | |
17489 | if (PyErr_Occurred()) SWIG_fail; | |
17490 | } | |
17491 | resultobj = PyInt_FromLong((long)result); | |
17492 | { | |
7722248d | 17493 | if (temp2) delete arg2; |
d14a1e28 RD |
17494 | } |
17495 | return resultobj; | |
17496 | fail: | |
17497 | { | |
7722248d | 17498 | if (temp2) delete arg2; |
d14a1e28 RD |
17499 | } |
17500 | return NULL; | |
17501 | } | |
17502 | ||
17503 | ||
17504 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17505 | PyObject *resultobj; | |
17506 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17507 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17508 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17509 | int result; |
7722248d | 17510 | bool temp2 = False ; |
d14a1e28 RD |
17511 | PyObject * obj0 = 0 ; |
17512 | PyObject * obj1 = 0 ; | |
17513 | char *kwnames[] = { | |
17514 | (char *) "self",(char *) "tz", NULL | |
17515 | }; | |
17516 | ||
17517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
17518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17519 | if (obj1) { | |
17520 | { | |
17521 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17522 | temp2 = True; |
d14a1e28 RD |
17523 | } |
17524 | } | |
17525 | { | |
17526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17527 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17528 | |
17529 | wxPyEndAllowThreads(__tstate); | |
17530 | if (PyErr_Occurred()) SWIG_fail; | |
17531 | } | |
17532 | resultobj = PyInt_FromLong((long)result); | |
17533 | { | |
7722248d | 17534 | if (temp2) delete arg2; |
d14a1e28 RD |
17535 | } |
17536 | return resultobj; | |
17537 | fail: | |
17538 | { | |
7722248d | 17539 | if (temp2) delete arg2; |
d14a1e28 RD |
17540 | } |
17541 | return NULL; | |
17542 | } | |
17543 | ||
17544 | ||
17545 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17546 | PyObject *resultobj; | |
17547 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17548 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17549 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17550 | int result; | |
7722248d | 17551 | bool temp2 = False ; |
d14a1e28 RD |
17552 | PyObject * obj0 = 0 ; |
17553 | PyObject * obj1 = 0 ; | |
17554 | char *kwnames[] = { | |
17555 | (char *) "self",(char *) "tz", NULL | |
17556 | }; | |
17557 | ||
17558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17560 | if (obj1) { | |
17561 | { | |
17562 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17563 | temp2 = True; |
d14a1e28 RD |
17564 | } |
17565 | } | |
17566 | { | |
17567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17568 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
17569 | ||
17570 | wxPyEndAllowThreads(__tstate); | |
17571 | if (PyErr_Occurred()) SWIG_fail; | |
17572 | } | |
17573 | resultobj = PyInt_FromLong((long)result); | |
17574 | { | |
7722248d | 17575 | if (temp2) delete arg2; |
d14a1e28 RD |
17576 | } |
17577 | return resultobj; | |
17578 | fail: | |
17579 | { | |
7722248d | 17580 | if (temp2) delete arg2; |
d14a1e28 RD |
17581 | } |
17582 | return NULL; | |
17583 | } | |
17584 | ||
17585 | ||
17586 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17587 | PyObject *resultobj; | |
17588 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17589 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17590 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17591 | int result; |
7722248d | 17592 | bool temp2 = False ; |
d14a1e28 RD |
17593 | PyObject * obj0 = 0 ; |
17594 | PyObject * obj1 = 0 ; | |
17595 | char *kwnames[] = { | |
17596 | (char *) "self",(char *) "tz", NULL | |
17597 | }; | |
17598 | ||
17599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
17600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17601 | if (obj1) { | |
17602 | { | |
17603 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17604 | temp2 = True; |
d14a1e28 RD |
17605 | } |
17606 | } | |
17607 | { | |
17608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17609 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17610 | |
17611 | wxPyEndAllowThreads(__tstate); | |
17612 | if (PyErr_Occurred()) SWIG_fail; | |
17613 | } | |
17614 | resultobj = PyInt_FromLong((long)result); | |
17615 | { | |
7722248d | 17616 | if (temp2) delete arg2; |
d14a1e28 RD |
17617 | } |
17618 | return resultobj; | |
17619 | fail: | |
17620 | { | |
7722248d | 17621 | if (temp2) delete arg2; |
d14a1e28 RD |
17622 | } |
17623 | return NULL; | |
17624 | } | |
17625 | ||
17626 | ||
17627 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17628 | PyObject *resultobj; | |
17629 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17630 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17631 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17632 | int result; |
7722248d | 17633 | bool temp2 = False ; |
d14a1e28 RD |
17634 | PyObject * obj0 = 0 ; |
17635 | PyObject * obj1 = 0 ; | |
17636 | char *kwnames[] = { | |
17637 | (char *) "self",(char *) "tz", NULL | |
17638 | }; | |
17639 | ||
17640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17642 | if (obj1) { | |
17643 | { | |
17644 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17645 | temp2 = True; |
d14a1e28 RD |
17646 | } |
17647 | } | |
17648 | { | |
17649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17650 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17651 | |
17652 | wxPyEndAllowThreads(__tstate); | |
17653 | if (PyErr_Occurred()) SWIG_fail; | |
17654 | } | |
17655 | resultobj = PyInt_FromLong((long)result); | |
17656 | { | |
7722248d | 17657 | if (temp2) delete arg2; |
d14a1e28 RD |
17658 | } |
17659 | return resultobj; | |
17660 | fail: | |
17661 | { | |
7722248d | 17662 | if (temp2) delete arg2; |
d14a1e28 RD |
17663 | } |
17664 | return NULL; | |
17665 | } | |
17666 | ||
17667 | ||
17668 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17669 | PyObject *resultobj; | |
17670 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17671 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17672 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17673 | int result; |
7722248d | 17674 | bool temp2 = False ; |
d14a1e28 RD |
17675 | PyObject * obj0 = 0 ; |
17676 | PyObject * obj1 = 0 ; | |
17677 | char *kwnames[] = { | |
17678 | (char *) "self",(char *) "tz", NULL | |
17679 | }; | |
17680 | ||
17681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17683 | if (obj1) { | |
17684 | { | |
17685 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17686 | temp2 = True; |
d14a1e28 RD |
17687 | } |
17688 | } | |
17689 | { | |
17690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17691 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17692 | |
17693 | wxPyEndAllowThreads(__tstate); | |
17694 | if (PyErr_Occurred()) SWIG_fail; | |
17695 | } | |
17696 | resultobj = PyInt_FromLong((long)result); | |
17697 | { | |
7722248d | 17698 | if (temp2) delete arg2; |
d14a1e28 RD |
17699 | } |
17700 | return resultobj; | |
17701 | fail: | |
17702 | { | |
7722248d | 17703 | if (temp2) delete arg2; |
d14a1e28 RD |
17704 | } |
17705 | return NULL; | |
17706 | } | |
17707 | ||
17708 | ||
17709 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17710 | PyObject *resultobj; | |
17711 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17712 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17713 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17714 | int result; |
7722248d | 17715 | bool temp2 = False ; |
d14a1e28 RD |
17716 | PyObject * obj0 = 0 ; |
17717 | PyObject * obj1 = 0 ; | |
17718 | char *kwnames[] = { | |
17719 | (char *) "self",(char *) "tz", NULL | |
17720 | }; | |
17721 | ||
17722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17724 | if (obj1) { | |
17725 | { | |
17726 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17727 | temp2 = True; |
d14a1e28 RD |
17728 | } |
17729 | } | |
17730 | { | |
17731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17732 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17733 | |
17734 | wxPyEndAllowThreads(__tstate); | |
17735 | if (PyErr_Occurred()) SWIG_fail; | |
17736 | } | |
17737 | resultobj = PyInt_FromLong((long)result); | |
17738 | { | |
7722248d | 17739 | if (temp2) delete arg2; |
d14a1e28 RD |
17740 | } |
17741 | return resultobj; | |
17742 | fail: | |
17743 | { | |
7722248d | 17744 | if (temp2) delete arg2; |
d14a1e28 RD |
17745 | } |
17746 | return NULL; | |
17747 | } | |
17748 | ||
17749 | ||
17750 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17751 | PyObject *resultobj; | |
17752 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17753 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17754 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 17755 | int result; |
7722248d | 17756 | bool temp2 = False ; |
d14a1e28 RD |
17757 | PyObject * obj0 = 0 ; |
17758 | PyObject * obj1 = 0 ; | |
17759 | char *kwnames[] = { | |
17760 | (char *) "self",(char *) "tz", NULL | |
17761 | }; | |
17762 | ||
17763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
17764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17765 | if (obj1) { | |
17766 | { | |
17767 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 17768 | temp2 = True; |
d14a1e28 RD |
17769 | } |
17770 | } | |
17771 | { | |
17772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17773 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17774 | |
17775 | wxPyEndAllowThreads(__tstate); | |
17776 | if (PyErr_Occurred()) SWIG_fail; | |
17777 | } | |
17778 | resultobj = PyInt_FromLong((long)result); | |
17779 | { | |
7722248d | 17780 | if (temp2) delete arg2; |
d14a1e28 RD |
17781 | } |
17782 | return resultobj; | |
17783 | fail: | |
17784 | { | |
7722248d | 17785 | if (temp2) delete arg2; |
d14a1e28 RD |
17786 | } |
17787 | return NULL; | |
17788 | } | |
17789 | ||
17790 | ||
17791 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17792 | PyObject *resultobj; | |
17793 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17794 | int arg2 = (int) wxDateTime::Monday_First ; | |
17795 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17796 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 17797 | int result; |
7722248d | 17798 | bool temp3 = False ; |
d14a1e28 RD |
17799 | PyObject * obj0 = 0 ; |
17800 | PyObject * obj2 = 0 ; | |
17801 | char *kwnames[] = { | |
17802 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17803 | }; | |
17804 | ||
17805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfYear",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17807 | if (obj2) { | |
17808 | { | |
17809 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 17810 | temp3 = True; |
d14a1e28 RD |
17811 | } |
17812 | } | |
17813 | { | |
17814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17815 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17816 | |
17817 | wxPyEndAllowThreads(__tstate); | |
17818 | if (PyErr_Occurred()) SWIG_fail; | |
17819 | } | |
17820 | resultobj = PyInt_FromLong((long)result); | |
17821 | { | |
7722248d | 17822 | if (temp3) delete arg3; |
d14a1e28 RD |
17823 | } |
17824 | return resultobj; | |
17825 | fail: | |
17826 | { | |
7722248d | 17827 | if (temp3) delete arg3; |
d14a1e28 RD |
17828 | } |
17829 | return NULL; | |
17830 | } | |
17831 | ||
17832 | ||
17833 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17834 | PyObject *resultobj; | |
17835 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17836 | int arg2 = (int) wxDateTime::Monday_First ; | |
17837 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17838 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 17839 | int result; |
7722248d | 17840 | bool temp3 = False ; |
d14a1e28 RD |
17841 | PyObject * obj0 = 0 ; |
17842 | PyObject * obj2 = 0 ; | |
17843 | char *kwnames[] = { | |
17844 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17845 | }; | |
17846 | ||
17847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfMonth",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17849 | if (obj2) { | |
17850 | { | |
17851 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 17852 | temp3 = True; |
d14a1e28 RD |
17853 | } |
17854 | } | |
17855 | { | |
17856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17857 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17858 | |
17859 | wxPyEndAllowThreads(__tstate); | |
17860 | if (PyErr_Occurred()) SWIG_fail; | |
17861 | } | |
17862 | resultobj = PyInt_FromLong((long)result); | |
17863 | { | |
7722248d | 17864 | if (temp3) delete arg3; |
d14a1e28 RD |
17865 | } |
17866 | return resultobj; | |
17867 | fail: | |
17868 | { | |
7722248d | 17869 | if (temp3) delete arg3; |
d14a1e28 RD |
17870 | } |
17871 | return NULL; | |
17872 | } | |
17873 | ||
17874 | ||
17875 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17876 | PyObject *resultobj; | |
17877 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17878 | int arg2 = (int) wxDateTime::Country_Default ; | |
17879 | bool result; | |
17880 | PyObject * obj0 = 0 ; | |
17881 | char *kwnames[] = { | |
17882 | (char *) "self",(char *) "country", NULL | |
17883 | }; | |
17884 | ||
17885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsWorkDay",kwnames,&obj0,&arg2)) goto fail; | |
17886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17887 | { | |
17888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17889 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
17890 | ||
17891 | wxPyEndAllowThreads(__tstate); | |
17892 | if (PyErr_Occurred()) SWIG_fail; | |
17893 | } | |
17894 | resultobj = PyInt_FromLong((long)result); | |
17895 | return resultobj; | |
17896 | fail: | |
17897 | return NULL; | |
17898 | } | |
17899 | ||
17900 | ||
17901 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17902 | PyObject *resultobj; | |
17903 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17904 | wxDateTime *arg2 = 0 ; | |
17905 | bool result; | |
17906 | PyObject * obj0 = 0 ; | |
17907 | PyObject * obj1 = 0 ; | |
17908 | char *kwnames[] = { | |
17909 | (char *) "self",(char *) "datetime", NULL | |
17910 | }; | |
17911 | ||
17912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
17913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17914 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17915 | if (arg2 == NULL) { | |
17916 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17917 | } | |
17918 | { | |
17919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17920 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
17921 | ||
17922 | wxPyEndAllowThreads(__tstate); | |
17923 | if (PyErr_Occurred()) SWIG_fail; | |
17924 | } | |
17925 | resultobj = PyInt_FromLong((long)result); | |
17926 | return resultobj; | |
17927 | fail: | |
17928 | return NULL; | |
17929 | } | |
17930 | ||
17931 | ||
17932 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17933 | PyObject *resultobj; | |
17934 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17935 | wxDateTime *arg2 = 0 ; | |
17936 | bool result; | |
17937 | PyObject * obj0 = 0 ; | |
17938 | PyObject * obj1 = 0 ; | |
17939 | char *kwnames[] = { | |
17940 | (char *) "self",(char *) "datetime", NULL | |
17941 | }; | |
17942 | ||
17943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
17944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17945 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17946 | if (arg2 == NULL) { | |
17947 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17948 | } | |
17949 | { | |
17950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17951 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
17952 | ||
17953 | wxPyEndAllowThreads(__tstate); | |
17954 | if (PyErr_Occurred()) SWIG_fail; | |
17955 | } | |
17956 | resultobj = PyInt_FromLong((long)result); | |
17957 | return resultobj; | |
17958 | fail: | |
17959 | return NULL; | |
17960 | } | |
17961 | ||
17962 | ||
17963 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17964 | PyObject *resultobj; | |
17965 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17966 | wxDateTime *arg2 = 0 ; | |
17967 | bool result; | |
17968 | PyObject * obj0 = 0 ; | |
17969 | PyObject * obj1 = 0 ; | |
17970 | char *kwnames[] = { | |
17971 | (char *) "self",(char *) "datetime", NULL | |
17972 | }; | |
17973 | ||
17974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
17975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17976 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17977 | if (arg2 == NULL) { | |
17978 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17979 | } | |
17980 | { | |
17981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17982 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
17983 | ||
17984 | wxPyEndAllowThreads(__tstate); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | } | |
17987 | resultobj = PyInt_FromLong((long)result); | |
17988 | return resultobj; | |
17989 | fail: | |
17990 | return NULL; | |
17991 | } | |
17992 | ||
17993 | ||
17994 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17995 | PyObject *resultobj; | |
17996 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17997 | wxDateTime *arg2 = 0 ; | |
17998 | wxDateTime *arg3 = 0 ; | |
17999 | bool result; | |
18000 | PyObject * obj0 = 0 ; | |
18001 | PyObject * obj1 = 0 ; | |
18002 | PyObject * obj2 = 0 ; | |
18003 | char *kwnames[] = { | |
18004 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
18005 | }; | |
18006 | ||
18007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18009 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18010 | if (arg2 == NULL) { | |
18011 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18012 | } | |
18013 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18014 | if (arg3 == NULL) { | |
18015 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18016 | } | |
18017 | { | |
18018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18019 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
18020 | ||
18021 | wxPyEndAllowThreads(__tstate); | |
18022 | if (PyErr_Occurred()) SWIG_fail; | |
18023 | } | |
18024 | resultobj = PyInt_FromLong((long)result); | |
18025 | return resultobj; | |
18026 | fail: | |
18027 | return NULL; | |
18028 | } | |
18029 | ||
18030 | ||
18031 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18032 | PyObject *resultobj; | |
18033 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18034 | wxDateTime *arg2 = 0 ; | |
18035 | wxDateTime *arg3 = 0 ; | |
18036 | bool result; | |
18037 | PyObject * obj0 = 0 ; | |
18038 | PyObject * obj1 = 0 ; | |
18039 | PyObject * obj2 = 0 ; | |
18040 | char *kwnames[] = { | |
18041 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
18042 | }; | |
18043 | ||
18044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18046 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18047 | if (arg2 == NULL) { | |
18048 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18049 | } | |
18050 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18051 | if (arg3 == NULL) { | |
18052 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18053 | } | |
18054 | { | |
18055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18056 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
18057 | ||
18058 | wxPyEndAllowThreads(__tstate); | |
18059 | if (PyErr_Occurred()) SWIG_fail; | |
18060 | } | |
18061 | resultobj = PyInt_FromLong((long)result); | |
18062 | return resultobj; | |
18063 | fail: | |
18064 | return NULL; | |
18065 | } | |
18066 | ||
18067 | ||
18068 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18069 | PyObject *resultobj; | |
18070 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18071 | wxDateTime *arg2 = 0 ; | |
18072 | bool result; | |
18073 | PyObject * obj0 = 0 ; | |
18074 | PyObject * obj1 = 0 ; | |
18075 | char *kwnames[] = { | |
18076 | (char *) "self",(char *) "dt", NULL | |
18077 | }; | |
18078 | ||
18079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
18080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18081 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18082 | if (arg2 == NULL) { | |
18083 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18084 | } | |
18085 | { | |
18086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18087 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
18088 | ||
18089 | wxPyEndAllowThreads(__tstate); | |
18090 | if (PyErr_Occurred()) SWIG_fail; | |
18091 | } | |
18092 | resultobj = PyInt_FromLong((long)result); | |
18093 | return resultobj; | |
18094 | fail: | |
18095 | return NULL; | |
18096 | } | |
18097 | ||
18098 | ||
18099 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18100 | PyObject *resultobj; | |
18101 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18102 | wxDateTime *arg2 = 0 ; | |
18103 | bool result; | |
18104 | PyObject * obj0 = 0 ; | |
18105 | PyObject * obj1 = 0 ; | |
18106 | char *kwnames[] = { | |
18107 | (char *) "self",(char *) "dt", NULL | |
18108 | }; | |
18109 | ||
18110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
18111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18112 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18113 | if (arg2 == NULL) { | |
18114 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18115 | } | |
18116 | { | |
18117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18118 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
18119 | ||
18120 | wxPyEndAllowThreads(__tstate); | |
18121 | if (PyErr_Occurred()) SWIG_fail; | |
18122 | } | |
18123 | resultobj = PyInt_FromLong((long)result); | |
18124 | return resultobj; | |
18125 | fail: | |
18126 | return NULL; | |
18127 | } | |
18128 | ||
18129 | ||
18130 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18131 | PyObject *resultobj; | |
18132 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18133 | wxDateTime *arg2 = 0 ; | |
18134 | wxTimeSpan *arg3 = 0 ; | |
18135 | bool result; | |
18136 | PyObject * obj0 = 0 ; | |
18137 | PyObject * obj1 = 0 ; | |
18138 | PyObject * obj2 = 0 ; | |
18139 | char *kwnames[] = { | |
18140 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
18141 | }; | |
18142 | ||
18143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18145 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18146 | if (arg2 == NULL) { | |
18147 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18148 | } | |
18149 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18150 | if (arg3 == NULL) { | |
18151 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18152 | } | |
18153 | { | |
18154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18155 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
18156 | ||
18157 | wxPyEndAllowThreads(__tstate); | |
18158 | if (PyErr_Occurred()) SWIG_fail; | |
18159 | } | |
18160 | resultobj = PyInt_FromLong((long)result); | |
18161 | return resultobj; | |
18162 | fail: | |
18163 | return NULL; | |
18164 | } | |
18165 | ||
18166 | ||
18167 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18168 | PyObject *resultobj; | |
18169 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18170 | wxTimeSpan *arg2 = 0 ; | |
18171 | wxDateTime *result; | |
18172 | PyObject * obj0 = 0 ; | |
18173 | PyObject * obj1 = 0 ; | |
18174 | char *kwnames[] = { | |
18175 | (char *) "self",(char *) "diff", NULL | |
18176 | }; | |
18177 | ||
18178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
18179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18180 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18181 | if (arg2 == NULL) { | |
18182 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18183 | } | |
18184 | { | |
18185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18186 | { | |
18187 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
18188 | result = (wxDateTime *) &_result_ref; | |
18189 | } | |
18190 | ||
18191 | wxPyEndAllowThreads(__tstate); | |
18192 | if (PyErr_Occurred()) SWIG_fail; | |
18193 | } | |
18194 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18195 | return resultobj; | |
18196 | fail: | |
18197 | return NULL; | |
18198 | } | |
18199 | ||
18200 | ||
18201 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18202 | PyObject *resultobj; | |
18203 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18204 | wxDateSpan *arg2 = 0 ; | |
18205 | wxDateTime *result; | |
18206 | PyObject * obj0 = 0 ; | |
18207 | PyObject * obj1 = 0 ; | |
18208 | char *kwnames[] = { | |
18209 | (char *) "self",(char *) "diff", NULL | |
18210 | }; | |
18211 | ||
18212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
18213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18214 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18215 | if (arg2 == NULL) { | |
18216 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18217 | } | |
18218 | { | |
18219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18220 | { | |
18221 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
18222 | result = (wxDateTime *) &_result_ref; | |
18223 | } | |
18224 | ||
18225 | wxPyEndAllowThreads(__tstate); | |
18226 | if (PyErr_Occurred()) SWIG_fail; | |
18227 | } | |
18228 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18229 | return resultobj; | |
18230 | fail: | |
18231 | return NULL; | |
18232 | } | |
18233 | ||
18234 | ||
18235 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18236 | PyObject *resultobj; | |
18237 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18238 | wxTimeSpan *arg2 = 0 ; | |
18239 | wxDateTime *result; | |
18240 | PyObject * obj0 = 0 ; | |
18241 | PyObject * obj1 = 0 ; | |
18242 | char *kwnames[] = { | |
18243 | (char *) "self",(char *) "diff", NULL | |
18244 | }; | |
18245 | ||
18246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
18247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18248 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18249 | if (arg2 == NULL) { | |
18250 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18251 | } | |
18252 | { | |
18253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18254 | { | |
18255 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
18256 | result = (wxDateTime *) &_result_ref; | |
18257 | } | |
18258 | ||
18259 | wxPyEndAllowThreads(__tstate); | |
18260 | if (PyErr_Occurred()) SWIG_fail; | |
18261 | } | |
18262 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18263 | return resultobj; | |
18264 | fail: | |
18265 | return NULL; | |
18266 | } | |
18267 | ||
18268 | ||
18269 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18270 | PyObject *resultobj; | |
18271 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18272 | wxDateSpan *arg2 = 0 ; | |
18273 | wxDateTime *result; | |
18274 | PyObject * obj0 = 0 ; | |
18275 | PyObject * obj1 = 0 ; | |
18276 | char *kwnames[] = { | |
18277 | (char *) "self",(char *) "diff", NULL | |
18278 | }; | |
18279 | ||
18280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
18281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18282 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18283 | if (arg2 == NULL) { | |
18284 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18285 | } | |
18286 | { | |
18287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18288 | { | |
18289 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
18290 | result = (wxDateTime *) &_result_ref; | |
18291 | } | |
18292 | ||
18293 | wxPyEndAllowThreads(__tstate); | |
18294 | if (PyErr_Occurred()) SWIG_fail; | |
18295 | } | |
18296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18297 | return resultobj; | |
18298 | fail: | |
18299 | return NULL; | |
18300 | } | |
18301 | ||
18302 | ||
18303 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18304 | PyObject *resultobj; | |
18305 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18306 | wxDateTime *arg2 = 0 ; | |
18307 | wxTimeSpan result; | |
18308 | PyObject * obj0 = 0 ; | |
18309 | PyObject * obj1 = 0 ; | |
18310 | char *kwnames[] = { | |
18311 | (char *) "self",(char *) "dt", NULL | |
18312 | }; | |
18313 | ||
18314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
18315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18316 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18317 | if (arg2 == NULL) { | |
18318 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18319 | } | |
18320 | { | |
18321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18322 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | { | |
18328 | wxTimeSpan * resultptr; | |
18329 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18330 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18331 | } | |
18332 | return resultobj; | |
18333 | fail: | |
18334 | return NULL; | |
18335 | } | |
18336 | ||
18337 | ||
18338 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
18339 | PyObject *resultobj; | |
18340 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18341 | wxTimeSpan *arg2 = 0 ; | |
18342 | wxDateTime *result; | |
18343 | PyObject * obj0 = 0 ; | |
18344 | PyObject * obj1 = 0 ; | |
18345 | ||
18346 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
18347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18348 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18349 | if (arg2 == NULL) { | |
18350 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18351 | } | |
18352 | { | |
18353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18354 | { | |
18355 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
18356 | result = (wxDateTime *) &_result_ref; | |
18357 | } | |
18358 | ||
18359 | wxPyEndAllowThreads(__tstate); | |
18360 | if (PyErr_Occurred()) SWIG_fail; | |
18361 | } | |
18362 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18363 | return resultobj; | |
18364 | fail: | |
18365 | return NULL; | |
18366 | } | |
18367 | ||
18368 | ||
18369 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
18370 | PyObject *resultobj; | |
18371 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18372 | wxDateSpan *arg2 = 0 ; | |
18373 | wxDateTime *result; | |
18374 | PyObject * obj0 = 0 ; | |
18375 | PyObject * obj1 = 0 ; | |
18376 | ||
18377 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
18378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18379 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18380 | if (arg2 == NULL) { | |
18381 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18382 | } | |
18383 | { | |
18384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18385 | { | |
18386 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
18387 | result = (wxDateTime *) &_result_ref; | |
18388 | } | |
18389 | ||
18390 | wxPyEndAllowThreads(__tstate); | |
18391 | if (PyErr_Occurred()) SWIG_fail; | |
18392 | } | |
18393 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18394 | return resultobj; | |
18395 | fail: | |
18396 | return NULL; | |
18397 | } | |
18398 | ||
18399 | ||
18400 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
18401 | int argc; | |
18402 | PyObject *argv[3]; | |
18403 | int ii; | |
18404 | ||
18405 | argc = PyObject_Length(args); | |
18406 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18407 | argv[ii] = PyTuple_GetItem(args,ii); | |
18408 | } | |
18409 | if (argc == 2) { | |
18410 | int _v; | |
18411 | { | |
18412 | void *ptr; | |
18413 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18414 | _v = 0; | |
18415 | PyErr_Clear(); | |
18416 | } else { | |
18417 | _v = 1; | |
18418 | } | |
18419 | } | |
18420 | if (_v) { | |
18421 | { | |
18422 | void *ptr; | |
18423 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18424 | _v = 0; | |
18425 | PyErr_Clear(); | |
18426 | } else { | |
18427 | _v = 1; | |
18428 | } | |
18429 | } | |
18430 | if (_v) { | |
18431 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
18432 | } | |
18433 | } | |
18434 | } | |
18435 | if (argc == 2) { | |
18436 | int _v; | |
18437 | { | |
18438 | void *ptr; | |
18439 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18440 | _v = 0; | |
18441 | PyErr_Clear(); | |
18442 | } else { | |
18443 | _v = 1; | |
18444 | } | |
18445 | } | |
18446 | if (_v) { | |
18447 | { | |
18448 | void *ptr; | |
18449 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18450 | _v = 0; | |
18451 | PyErr_Clear(); | |
18452 | } else { | |
18453 | _v = 1; | |
18454 | } | |
18455 | } | |
18456 | if (_v) { | |
18457 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
18458 | } | |
18459 | } | |
18460 | } | |
18461 | ||
18462 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
18463 | return NULL; | |
18464 | } | |
18465 | ||
18466 | ||
18467 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
18468 | PyObject *resultobj; | |
18469 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18470 | wxTimeSpan *arg2 = 0 ; | |
18471 | wxDateTime *result; | |
18472 | PyObject * obj0 = 0 ; | |
18473 | PyObject * obj1 = 0 ; | |
18474 | ||
18475 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18477 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18478 | if (arg2 == NULL) { | |
18479 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18480 | } | |
18481 | { | |
18482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18483 | { | |
18484 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
18485 | result = (wxDateTime *) &_result_ref; | |
18486 | } | |
18487 | ||
18488 | wxPyEndAllowThreads(__tstate); | |
18489 | if (PyErr_Occurred()) SWIG_fail; | |
18490 | } | |
18491 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18492 | return resultobj; | |
18493 | fail: | |
18494 | return NULL; | |
18495 | } | |
18496 | ||
18497 | ||
18498 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
18499 | PyObject *resultobj; | |
18500 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18501 | wxDateSpan *arg2 = 0 ; | |
18502 | wxDateTime *result; | |
18503 | PyObject * obj0 = 0 ; | |
18504 | PyObject * obj1 = 0 ; | |
18505 | ||
18506 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18508 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18509 | if (arg2 == NULL) { | |
18510 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18511 | } | |
18512 | { | |
18513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18514 | { | |
18515 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
18516 | result = (wxDateTime *) &_result_ref; | |
18517 | } | |
18518 | ||
18519 | wxPyEndAllowThreads(__tstate); | |
18520 | if (PyErr_Occurred()) SWIG_fail; | |
18521 | } | |
18522 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18523 | return resultobj; | |
18524 | fail: | |
18525 | return NULL; | |
18526 | } | |
18527 | ||
18528 | ||
18529 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
18530 | int argc; | |
18531 | PyObject *argv[3]; | |
18532 | int ii; | |
18533 | ||
18534 | argc = PyObject_Length(args); | |
18535 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18536 | argv[ii] = PyTuple_GetItem(args,ii); | |
18537 | } | |
18538 | if (argc == 2) { | |
18539 | int _v; | |
18540 | { | |
18541 | void *ptr; | |
18542 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18543 | _v = 0; | |
18544 | PyErr_Clear(); | |
18545 | } else { | |
18546 | _v = 1; | |
18547 | } | |
18548 | } | |
18549 | if (_v) { | |
18550 | { | |
18551 | void *ptr; | |
18552 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18553 | _v = 0; | |
18554 | PyErr_Clear(); | |
18555 | } else { | |
18556 | _v = 1; | |
18557 | } | |
18558 | } | |
18559 | if (_v) { | |
18560 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
18561 | } | |
18562 | } | |
18563 | } | |
18564 | if (argc == 2) { | |
18565 | int _v; | |
18566 | { | |
18567 | void *ptr; | |
18568 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18569 | _v = 0; | |
18570 | PyErr_Clear(); | |
18571 | } else { | |
18572 | _v = 1; | |
18573 | } | |
18574 | } | |
18575 | if (_v) { | |
18576 | { | |
18577 | void *ptr; | |
18578 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18579 | _v = 0; | |
18580 | PyErr_Clear(); | |
18581 | } else { | |
18582 | _v = 1; | |
18583 | } | |
18584 | } | |
18585 | if (_v) { | |
18586 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
18587 | } | |
18588 | } | |
18589 | } | |
18590 | ||
18591 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
18592 | return NULL; | |
18593 | } | |
18594 | ||
18595 | ||
18596 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
18597 | PyObject *resultobj; | |
18598 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18599 | wxTimeSpan *arg2 = 0 ; | |
18600 | wxDateTime result; | |
18601 | PyObject * obj0 = 0 ; | |
18602 | PyObject * obj1 = 0 ; | |
18603 | ||
18604 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18606 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18607 | if (arg2 == NULL) { | |
18608 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18609 | } | |
18610 | { | |
18611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18612 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
18613 | ||
18614 | wxPyEndAllowThreads(__tstate); | |
18615 | if (PyErr_Occurred()) SWIG_fail; | |
18616 | } | |
18617 | { | |
18618 | wxDateTime * resultptr; | |
18619 | resultptr = new wxDateTime((wxDateTime &) result); | |
18620 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18621 | } | |
18622 | return resultobj; | |
18623 | fail: | |
18624 | return NULL; | |
18625 | } | |
18626 | ||
18627 | ||
18628 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
18629 | PyObject *resultobj; | |
18630 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18631 | wxDateSpan *arg2 = 0 ; | |
18632 | wxDateTime result; | |
18633 | PyObject * obj0 = 0 ; | |
18634 | PyObject * obj1 = 0 ; | |
18635 | ||
18636 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18638 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18639 | if (arg2 == NULL) { | |
18640 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18641 | } | |
18642 | { | |
18643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18644 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
18645 | ||
18646 | wxPyEndAllowThreads(__tstate); | |
18647 | if (PyErr_Occurred()) SWIG_fail; | |
18648 | } | |
18649 | { | |
18650 | wxDateTime * resultptr; | |
18651 | resultptr = new wxDateTime((wxDateTime &) result); | |
18652 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18653 | } | |
18654 | return resultobj; | |
18655 | fail: | |
18656 | return NULL; | |
18657 | } | |
18658 | ||
18659 | ||
18660 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
18661 | int argc; | |
18662 | PyObject *argv[3]; | |
18663 | int ii; | |
18664 | ||
18665 | argc = PyObject_Length(args); | |
18666 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18667 | argv[ii] = PyTuple_GetItem(args,ii); | |
18668 | } | |
18669 | if (argc == 2) { | |
18670 | int _v; | |
18671 | { | |
18672 | void *ptr; | |
18673 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18674 | _v = 0; | |
18675 | PyErr_Clear(); | |
18676 | } else { | |
18677 | _v = 1; | |
18678 | } | |
18679 | } | |
18680 | if (_v) { | |
18681 | { | |
18682 | void *ptr; | |
18683 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18684 | _v = 0; | |
18685 | PyErr_Clear(); | |
18686 | } else { | |
18687 | _v = 1; | |
18688 | } | |
18689 | } | |
18690 | if (_v) { | |
18691 | return _wrap_DateTime___add____SWIG_0(self,args); | |
18692 | } | |
18693 | } | |
18694 | } | |
18695 | if (argc == 2) { | |
18696 | int _v; | |
18697 | { | |
18698 | void *ptr; | |
18699 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18700 | _v = 0; | |
18701 | PyErr_Clear(); | |
18702 | } else { | |
18703 | _v = 1; | |
18704 | } | |
18705 | } | |
18706 | if (_v) { | |
18707 | { | |
18708 | void *ptr; | |
18709 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18710 | _v = 0; | |
18711 | PyErr_Clear(); | |
18712 | } else { | |
18713 | _v = 1; | |
18714 | } | |
18715 | } | |
18716 | if (_v) { | |
18717 | return _wrap_DateTime___add____SWIG_1(self,args); | |
18718 | } | |
18719 | } | |
18720 | } | |
18721 | ||
18722 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
18723 | return NULL; | |
18724 | } | |
18725 | ||
18726 | ||
18727 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
18728 | PyObject *resultobj; | |
18729 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18730 | wxDateTime *arg2 = 0 ; | |
18731 | wxTimeSpan result; | |
18732 | PyObject * obj0 = 0 ; | |
18733 | PyObject * obj1 = 0 ; | |
18734 | ||
18735 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18737 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18738 | if (arg2 == NULL) { | |
18739 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18740 | } | |
18741 | { | |
18742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18743 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
18744 | ||
18745 | wxPyEndAllowThreads(__tstate); | |
18746 | if (PyErr_Occurred()) SWIG_fail; | |
18747 | } | |
18748 | { | |
18749 | wxTimeSpan * resultptr; | |
18750 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18751 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18752 | } | |
18753 | return resultobj; | |
18754 | fail: | |
18755 | return NULL; | |
18756 | } | |
18757 | ||
18758 | ||
18759 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
18760 | PyObject *resultobj; | |
18761 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18762 | wxTimeSpan *arg2 = 0 ; | |
18763 | wxDateTime result; | |
18764 | PyObject * obj0 = 0 ; | |
18765 | PyObject * obj1 = 0 ; | |
18766 | ||
18767 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18769 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18770 | if (arg2 == NULL) { | |
18771 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18772 | } | |
18773 | { | |
18774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18775 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
18776 | ||
18777 | wxPyEndAllowThreads(__tstate); | |
18778 | if (PyErr_Occurred()) SWIG_fail; | |
18779 | } | |
18780 | { | |
18781 | wxDateTime * resultptr; | |
18782 | resultptr = new wxDateTime((wxDateTime &) result); | |
18783 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18784 | } | |
18785 | return resultobj; | |
18786 | fail: | |
18787 | return NULL; | |
18788 | } | |
18789 | ||
18790 | ||
18791 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
18792 | PyObject *resultobj; | |
18793 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18794 | wxDateSpan *arg2 = 0 ; | |
18795 | wxDateTime result; | |
18796 | PyObject * obj0 = 0 ; | |
18797 | PyObject * obj1 = 0 ; | |
18798 | ||
18799 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18801 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18802 | if (arg2 == NULL) { | |
18803 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18804 | } | |
18805 | { | |
18806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18807 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
18808 | ||
18809 | wxPyEndAllowThreads(__tstate); | |
18810 | if (PyErr_Occurred()) SWIG_fail; | |
18811 | } | |
18812 | { | |
18813 | wxDateTime * resultptr; | |
18814 | resultptr = new wxDateTime((wxDateTime &) result); | |
18815 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18816 | } | |
18817 | return resultobj; | |
18818 | fail: | |
18819 | return NULL; | |
18820 | } | |
18821 | ||
18822 | ||
18823 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
18824 | int argc; | |
18825 | PyObject *argv[3]; | |
18826 | int ii; | |
18827 | ||
18828 | argc = PyObject_Length(args); | |
18829 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18830 | argv[ii] = PyTuple_GetItem(args,ii); | |
18831 | } | |
18832 | if (argc == 2) { | |
18833 | int _v; | |
18834 | { | |
18835 | void *ptr; | |
18836 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18837 | _v = 0; | |
18838 | PyErr_Clear(); | |
18839 | } else { | |
18840 | _v = 1; | |
18841 | } | |
18842 | } | |
18843 | if (_v) { | |
18844 | { | |
18845 | void *ptr; | |
18846 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18847 | _v = 0; | |
18848 | PyErr_Clear(); | |
18849 | } else { | |
18850 | _v = 1; | |
18851 | } | |
18852 | } | |
18853 | if (_v) { | |
18854 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
18855 | } | |
18856 | } | |
18857 | } | |
18858 | if (argc == 2) { | |
18859 | int _v; | |
18860 | { | |
18861 | void *ptr; | |
18862 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18863 | _v = 0; | |
18864 | PyErr_Clear(); | |
18865 | } else { | |
18866 | _v = 1; | |
18867 | } | |
18868 | } | |
18869 | if (_v) { | |
18870 | { | |
18871 | void *ptr; | |
18872 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18873 | _v = 0; | |
18874 | PyErr_Clear(); | |
18875 | } else { | |
18876 | _v = 1; | |
18877 | } | |
18878 | } | |
18879 | if (_v) { | |
18880 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
18881 | } | |
18882 | } | |
18883 | } | |
18884 | if (argc == 2) { | |
18885 | int _v; | |
18886 | { | |
18887 | void *ptr; | |
18888 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18889 | _v = 0; | |
18890 | PyErr_Clear(); | |
18891 | } else { | |
18892 | _v = 1; | |
18893 | } | |
18894 | } | |
18895 | if (_v) { | |
18896 | { | |
18897 | void *ptr; | |
18898 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18899 | _v = 0; | |
18900 | PyErr_Clear(); | |
18901 | } else { | |
18902 | _v = 1; | |
18903 | } | |
18904 | } | |
18905 | if (_v) { | |
18906 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
18907 | } | |
18908 | } | |
18909 | } | |
18910 | ||
18911 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
18912 | return NULL; | |
18913 | } | |
18914 | ||
18915 | ||
18916 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
18917 | PyObject *resultobj; | |
18918 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18919 | wxDateTime *arg2 = 0 ; | |
18920 | bool result; | |
18921 | PyObject * obj0 = 0 ; | |
18922 | PyObject * obj1 = 0 ; | |
18923 | ||
18924 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
18925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18926 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18927 | if (arg2 == NULL) { | |
18928 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18929 | } | |
18930 | { | |
18931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18932 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2); | |
18933 | ||
18934 | wxPyEndAllowThreads(__tstate); | |
18935 | if (PyErr_Occurred()) SWIG_fail; | |
18936 | } | |
18937 | resultobj = PyInt_FromLong((long)result); | |
18938 | return resultobj; | |
18939 | fail: | |
18940 | return NULL; | |
18941 | } | |
18942 | ||
18943 | ||
18944 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
18945 | PyObject *resultobj; | |
18946 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18947 | wxDateTime *arg2 = 0 ; | |
18948 | bool result; | |
18949 | PyObject * obj0 = 0 ; | |
18950 | PyObject * obj1 = 0 ; | |
18951 | ||
18952 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
18953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18954 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18955 | if (arg2 == NULL) { | |
18956 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18957 | } | |
18958 | { | |
18959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18960 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2); | |
18961 | ||
18962 | wxPyEndAllowThreads(__tstate); | |
18963 | if (PyErr_Occurred()) SWIG_fail; | |
18964 | } | |
18965 | resultobj = PyInt_FromLong((long)result); | |
18966 | return resultobj; | |
18967 | fail: | |
18968 | return NULL; | |
18969 | } | |
18970 | ||
18971 | ||
18972 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
18973 | PyObject *resultobj; | |
18974 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18975 | wxDateTime *arg2 = 0 ; | |
18976 | bool result; | |
18977 | PyObject * obj0 = 0 ; | |
18978 | PyObject * obj1 = 0 ; | |
18979 | ||
18980 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
18981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18982 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18983 | if (arg2 == NULL) { | |
18984 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18985 | } | |
18986 | { | |
18987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18988 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2); | |
18989 | ||
18990 | wxPyEndAllowThreads(__tstate); | |
18991 | if (PyErr_Occurred()) SWIG_fail; | |
18992 | } | |
18993 | resultobj = PyInt_FromLong((long)result); | |
18994 | return resultobj; | |
18995 | fail: | |
18996 | return NULL; | |
18997 | } | |
18998 | ||
18999 | ||
19000 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
19001 | PyObject *resultobj; | |
19002 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19003 | wxDateTime *arg2 = 0 ; | |
19004 | bool result; | |
19005 | PyObject * obj0 = 0 ; | |
19006 | PyObject * obj1 = 0 ; | |
19007 | ||
19008 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
19009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19010 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19011 | if (arg2 == NULL) { | |
19012 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19013 | } | |
19014 | { | |
19015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19016 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2); | |
19017 | ||
19018 | wxPyEndAllowThreads(__tstate); | |
19019 | if (PyErr_Occurred()) SWIG_fail; | |
19020 | } | |
19021 | resultobj = PyInt_FromLong((long)result); | |
19022 | return resultobj; | |
19023 | fail: | |
19024 | return NULL; | |
19025 | } | |
19026 | ||
19027 | ||
19028 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
19029 | PyObject *resultobj; | |
19030 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19031 | wxDateTime *arg2 = 0 ; | |
19032 | bool result; | |
19033 | PyObject * obj0 = 0 ; | |
19034 | PyObject * obj1 = 0 ; | |
19035 | ||
19036 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
19037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19038 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19039 | if (arg2 == NULL) { | |
19040 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19041 | } | |
19042 | { | |
19043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19044 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2); | |
19045 | ||
19046 | wxPyEndAllowThreads(__tstate); | |
19047 | if (PyErr_Occurred()) SWIG_fail; | |
19048 | } | |
19049 | resultobj = PyInt_FromLong((long)result); | |
19050 | return resultobj; | |
19051 | fail: | |
19052 | return NULL; | |
19053 | } | |
19054 | ||
19055 | ||
19056 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
19057 | PyObject *resultobj; | |
19058 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19059 | wxDateTime *arg2 = 0 ; | |
19060 | bool result; | |
19061 | PyObject * obj0 = 0 ; | |
19062 | PyObject * obj1 = 0 ; | |
19063 | ||
19064 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
19065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19066 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19067 | if (arg2 == NULL) { | |
19068 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19069 | } | |
19070 | { | |
19071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19072 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2); | |
19073 | ||
19074 | wxPyEndAllowThreads(__tstate); | |
19075 | if (PyErr_Occurred()) SWIG_fail; | |
19076 | } | |
19077 | resultobj = PyInt_FromLong((long)result); | |
19078 | return resultobj; | |
19079 | fail: | |
19080 | return NULL; | |
19081 | } | |
19082 | ||
19083 | ||
19084 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19085 | PyObject *resultobj; | |
19086 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19087 | wxString *arg2 = 0 ; | |
19088 | int result; | |
e811c8ce | 19089 | bool temp2 = False ; |
d14a1e28 RD |
19090 | PyObject * obj0 = 0 ; |
19091 | PyObject * obj1 = 0 ; | |
19092 | char *kwnames[] = { | |
19093 | (char *) "self",(char *) "date", NULL | |
19094 | }; | |
19095 | ||
19096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
19097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19098 | { | |
19099 | arg2 = wxString_in_helper(obj1); | |
19100 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19101 | temp2 = True; |
d14a1e28 RD |
19102 | } |
19103 | { | |
19104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19105 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
19106 | ||
19107 | wxPyEndAllowThreads(__tstate); | |
19108 | if (PyErr_Occurred()) SWIG_fail; | |
19109 | } | |
19110 | resultobj = PyInt_FromLong((long)result); | |
19111 | { | |
19112 | if (temp2) | |
19113 | delete arg2; | |
19114 | } | |
19115 | return resultobj; | |
19116 | fail: | |
19117 | { | |
19118 | if (temp2) | |
19119 | delete arg2; | |
19120 | } | |
19121 | return NULL; | |
19122 | } | |
19123 | ||
19124 | ||
19125 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19126 | PyObject *resultobj; | |
19127 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19128 | wxString *arg2 = 0 ; | |
19129 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
19130 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19131 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
19132 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
19133 | int result; | |
e811c8ce RD |
19134 | bool temp2 = False ; |
19135 | bool temp3 = False ; | |
d14a1e28 RD |
19136 | PyObject * obj0 = 0 ; |
19137 | PyObject * obj1 = 0 ; | |
19138 | PyObject * obj2 = 0 ; | |
19139 | PyObject * obj3 = 0 ; | |
19140 | char *kwnames[] = { | |
19141 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
19142 | }; | |
19143 | ||
19144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19146 | { | |
19147 | arg2 = wxString_in_helper(obj1); | |
19148 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19149 | temp2 = True; |
d14a1e28 RD |
19150 | } |
19151 | if (obj2) { | |
19152 | { | |
19153 | arg3 = wxString_in_helper(obj2); | |
19154 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 19155 | temp3 = True; |
d14a1e28 RD |
19156 | } |
19157 | } | |
19158 | if (obj3) { | |
19159 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19160 | if (arg4 == NULL) { | |
19161 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19162 | } | |
19163 | } | |
19164 | { | |
19165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19166 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
19167 | ||
19168 | wxPyEndAllowThreads(__tstate); | |
19169 | if (PyErr_Occurred()) SWIG_fail; | |
19170 | } | |
19171 | resultobj = PyInt_FromLong((long)result); | |
19172 | { | |
19173 | if (temp2) | |
19174 | delete arg2; | |
19175 | } | |
19176 | { | |
19177 | if (temp3) | |
19178 | delete arg3; | |
19179 | } | |
19180 | return resultobj; | |
19181 | fail: | |
19182 | { | |
19183 | if (temp2) | |
19184 | delete arg2; | |
19185 | } | |
19186 | { | |
19187 | if (temp3) | |
19188 | delete arg3; | |
19189 | } | |
19190 | return NULL; | |
19191 | } | |
19192 | ||
19193 | ||
19194 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19195 | PyObject *resultobj; | |
19196 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19197 | wxString *arg2 = 0 ; | |
19198 | int result; | |
e811c8ce | 19199 | bool temp2 = False ; |
d14a1e28 RD |
19200 | PyObject * obj0 = 0 ; |
19201 | PyObject * obj1 = 0 ; | |
19202 | char *kwnames[] = { | |
19203 | (char *) "self",(char *) "datetime", NULL | |
19204 | }; | |
19205 | ||
19206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
19207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19208 | { | |
19209 | arg2 = wxString_in_helper(obj1); | |
19210 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19211 | temp2 = True; |
d14a1e28 RD |
19212 | } |
19213 | { | |
19214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19215 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
19216 | ||
19217 | wxPyEndAllowThreads(__tstate); | |
19218 | if (PyErr_Occurred()) SWIG_fail; | |
19219 | } | |
19220 | resultobj = PyInt_FromLong((long)result); | |
19221 | { | |
19222 | if (temp2) | |
19223 | delete arg2; | |
19224 | } | |
19225 | return resultobj; | |
19226 | fail: | |
19227 | { | |
19228 | if (temp2) | |
19229 | delete arg2; | |
19230 | } | |
19231 | return NULL; | |
19232 | } | |
19233 | ||
19234 | ||
19235 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19236 | PyObject *resultobj; | |
19237 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19238 | wxString *arg2 = 0 ; | |
19239 | int result; | |
e811c8ce | 19240 | bool temp2 = False ; |
d14a1e28 RD |
19241 | PyObject * obj0 = 0 ; |
19242 | PyObject * obj1 = 0 ; | |
19243 | char *kwnames[] = { | |
19244 | (char *) "self",(char *) "date", NULL | |
19245 | }; | |
19246 | ||
19247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
19248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19249 | { | |
19250 | arg2 = wxString_in_helper(obj1); | |
19251 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19252 | temp2 = True; |
d14a1e28 RD |
19253 | } |
19254 | { | |
19255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19256 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
19257 | ||
19258 | wxPyEndAllowThreads(__tstate); | |
19259 | if (PyErr_Occurred()) SWIG_fail; | |
19260 | } | |
19261 | resultobj = PyInt_FromLong((long)result); | |
19262 | { | |
19263 | if (temp2) | |
19264 | delete arg2; | |
19265 | } | |
19266 | return resultobj; | |
19267 | fail: | |
19268 | { | |
19269 | if (temp2) | |
19270 | delete arg2; | |
19271 | } | |
19272 | return NULL; | |
19273 | } | |
19274 | ||
19275 | ||
19276 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19277 | PyObject *resultobj; | |
19278 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19279 | wxString *arg2 = 0 ; | |
19280 | int result; | |
e811c8ce | 19281 | bool temp2 = False ; |
d14a1e28 RD |
19282 | PyObject * obj0 = 0 ; |
19283 | PyObject * obj1 = 0 ; | |
19284 | char *kwnames[] = { | |
19285 | (char *) "self",(char *) "time", NULL | |
19286 | }; | |
19287 | ||
19288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
19289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19290 | { | |
19291 | arg2 = wxString_in_helper(obj1); | |
19292 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19293 | temp2 = True; |
d14a1e28 RD |
19294 | } |
19295 | { | |
19296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19297 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
19298 | ||
19299 | wxPyEndAllowThreads(__tstate); | |
19300 | if (PyErr_Occurred()) SWIG_fail; | |
19301 | } | |
19302 | resultobj = PyInt_FromLong((long)result); | |
19303 | { | |
19304 | if (temp2) | |
19305 | delete arg2; | |
19306 | } | |
19307 | return resultobj; | |
19308 | fail: | |
19309 | { | |
19310 | if (temp2) | |
19311 | delete arg2; | |
19312 | } | |
19313 | return NULL; | |
19314 | } | |
19315 | ||
19316 | ||
19317 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19318 | PyObject *resultobj; | |
19319 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19320 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
19321 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19322 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19323 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19324 | wxString result; | |
e811c8ce | 19325 | bool temp2 = False ; |
7722248d | 19326 | bool temp3 = False ; |
d14a1e28 RD |
19327 | PyObject * obj0 = 0 ; |
19328 | PyObject * obj1 = 0 ; | |
19329 | PyObject * obj2 = 0 ; | |
19330 | char *kwnames[] = { | |
19331 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
19332 | }; | |
19333 | ||
19334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19336 | if (obj1) { | |
19337 | { | |
19338 | arg2 = wxString_in_helper(obj1); | |
19339 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19340 | temp2 = True; |
d14a1e28 RD |
19341 | } |
19342 | } | |
19343 | if (obj2) { | |
19344 | { | |
19345 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19346 | temp3 = True; |
d14a1e28 RD |
19347 | } |
19348 | } | |
19349 | { | |
19350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19351 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
19352 | ||
19353 | wxPyEndAllowThreads(__tstate); | |
19354 | if (PyErr_Occurred()) SWIG_fail; | |
19355 | } | |
19356 | { | |
19357 | #if wxUSE_UNICODE | |
19358 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19359 | #else | |
19360 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19361 | #endif | |
19362 | } | |
19363 | { | |
19364 | if (temp2) | |
19365 | delete arg2; | |
19366 | } | |
19367 | { | |
7722248d | 19368 | if (temp3) delete arg3; |
d14a1e28 RD |
19369 | } |
19370 | return resultobj; | |
19371 | fail: | |
19372 | { | |
19373 | if (temp2) | |
19374 | delete arg2; | |
19375 | } | |
19376 | { | |
7722248d | 19377 | if (temp3) delete arg3; |
d14a1e28 RD |
19378 | } |
19379 | return NULL; | |
19380 | } | |
19381 | ||
19382 | ||
19383 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19384 | PyObject *resultobj; | |
19385 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19386 | wxString result; | |
19387 | PyObject * obj0 = 0 ; | |
19388 | char *kwnames[] = { | |
19389 | (char *) "self", NULL | |
19390 | }; | |
19391 | ||
19392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
19393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19394 | { | |
19395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19396 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
19397 | ||
19398 | wxPyEndAllowThreads(__tstate); | |
19399 | if (PyErr_Occurred()) SWIG_fail; | |
19400 | } | |
19401 | { | |
19402 | #if wxUSE_UNICODE | |
19403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19404 | #else | |
19405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19406 | #endif | |
19407 | } | |
19408 | return resultobj; | |
19409 | fail: | |
19410 | return NULL; | |
19411 | } | |
19412 | ||
19413 | ||
19414 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19415 | PyObject *resultobj; | |
19416 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19417 | wxString result; | |
19418 | PyObject * obj0 = 0 ; | |
19419 | char *kwnames[] = { | |
19420 | (char *) "self", NULL | |
19421 | }; | |
19422 | ||
19423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
19424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19425 | { | |
19426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19427 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
19428 | ||
19429 | wxPyEndAllowThreads(__tstate); | |
19430 | if (PyErr_Occurred()) SWIG_fail; | |
19431 | } | |
19432 | { | |
19433 | #if wxUSE_UNICODE | |
19434 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19435 | #else | |
19436 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19437 | #endif | |
19438 | } | |
19439 | return resultobj; | |
19440 | fail: | |
19441 | return NULL; | |
19442 | } | |
19443 | ||
19444 | ||
19445 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19446 | PyObject *resultobj; | |
19447 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19448 | wxString result; | |
19449 | PyObject * obj0 = 0 ; | |
19450 | char *kwnames[] = { | |
19451 | (char *) "self", NULL | |
19452 | }; | |
19453 | ||
19454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
19455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19456 | { | |
19457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19458 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
19459 | ||
19460 | wxPyEndAllowThreads(__tstate); | |
19461 | if (PyErr_Occurred()) SWIG_fail; | |
19462 | } | |
19463 | { | |
19464 | #if wxUSE_UNICODE | |
19465 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19466 | #else | |
19467 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19468 | #endif | |
19469 | } | |
19470 | return resultobj; | |
19471 | fail: | |
19472 | return NULL; | |
19473 | } | |
19474 | ||
19475 | ||
19476 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19477 | PyObject *resultobj; | |
19478 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19479 | wxString result; | |
19480 | PyObject * obj0 = 0 ; | |
19481 | char *kwnames[] = { | |
19482 | (char *) "self", NULL | |
19483 | }; | |
19484 | ||
19485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
19486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19487 | { | |
19488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19489 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
19490 | ||
19491 | wxPyEndAllowThreads(__tstate); | |
19492 | if (PyErr_Occurred()) SWIG_fail; | |
19493 | } | |
19494 | { | |
19495 | #if wxUSE_UNICODE | |
19496 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19497 | #else | |
19498 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19499 | #endif | |
19500 | } | |
19501 | return resultobj; | |
19502 | fail: | |
19503 | return NULL; | |
19504 | } | |
19505 | ||
19506 | ||
19507 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
19508 | PyObject *obj; | |
19509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19510 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
19511 | Py_INCREF(obj); | |
19512 | return Py_BuildValue((char *)""); | |
19513 | } | |
19514 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19515 | PyObject *resultobj; | |
19516 | long arg1 ; | |
19517 | wxTimeSpan result; | |
19518 | char *kwnames[] = { | |
19519 | (char *) "sec", NULL | |
19520 | }; | |
19521 | ||
19522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Seconds",kwnames,&arg1)) goto fail; | |
19523 | { | |
19524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19525 | result = wxTimeSpan::Seconds(arg1); | |
19526 | ||
19527 | wxPyEndAllowThreads(__tstate); | |
19528 | if (PyErr_Occurred()) SWIG_fail; | |
19529 | } | |
19530 | { | |
19531 | wxTimeSpan * resultptr; | |
19532 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19533 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19534 | } | |
19535 | return resultobj; | |
19536 | fail: | |
19537 | return NULL; | |
19538 | } | |
19539 | ||
19540 | ||
19541 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19542 | PyObject *resultobj; | |
19543 | wxTimeSpan result; | |
19544 | char *kwnames[] = { | |
19545 | NULL | |
19546 | }; | |
19547 | ||
19548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
19549 | { | |
19550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19551 | result = wxTimeSpan::Second(); | |
19552 | ||
19553 | wxPyEndAllowThreads(__tstate); | |
19554 | if (PyErr_Occurred()) SWIG_fail; | |
19555 | } | |
19556 | { | |
19557 | wxTimeSpan * resultptr; | |
19558 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19559 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19560 | } | |
19561 | return resultobj; | |
19562 | fail: | |
19563 | return NULL; | |
19564 | } | |
19565 | ||
19566 | ||
19567 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19568 | PyObject *resultobj; | |
19569 | long arg1 ; | |
19570 | wxTimeSpan result; | |
19571 | char *kwnames[] = { | |
19572 | (char *) "min", NULL | |
19573 | }; | |
19574 | ||
19575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Minutes",kwnames,&arg1)) goto fail; | |
19576 | { | |
19577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19578 | result = wxTimeSpan::Minutes(arg1); | |
19579 | ||
19580 | wxPyEndAllowThreads(__tstate); | |
19581 | if (PyErr_Occurred()) SWIG_fail; | |
19582 | } | |
19583 | { | |
19584 | wxTimeSpan * resultptr; | |
19585 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19586 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19587 | } | |
19588 | return resultobj; | |
19589 | fail: | |
19590 | return NULL; | |
19591 | } | |
19592 | ||
19593 | ||
19594 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19595 | PyObject *resultobj; | |
19596 | wxTimeSpan result; | |
19597 | char *kwnames[] = { | |
19598 | NULL | |
19599 | }; | |
19600 | ||
19601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
19602 | { | |
19603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19604 | result = wxTimeSpan::Minute(); | |
19605 | ||
19606 | wxPyEndAllowThreads(__tstate); | |
19607 | if (PyErr_Occurred()) SWIG_fail; | |
19608 | } | |
19609 | { | |
19610 | wxTimeSpan * resultptr; | |
19611 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19612 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19613 | } | |
19614 | return resultobj; | |
19615 | fail: | |
19616 | return NULL; | |
19617 | } | |
19618 | ||
19619 | ||
19620 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19621 | PyObject *resultobj; | |
19622 | long arg1 ; | |
19623 | wxTimeSpan result; | |
19624 | char *kwnames[] = { | |
19625 | (char *) "hours", NULL | |
19626 | }; | |
19627 | ||
19628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Hours",kwnames,&arg1)) goto fail; | |
19629 | { | |
19630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19631 | result = wxTimeSpan::Hours(arg1); | |
19632 | ||
19633 | wxPyEndAllowThreads(__tstate); | |
19634 | if (PyErr_Occurred()) SWIG_fail; | |
19635 | } | |
19636 | { | |
19637 | wxTimeSpan * resultptr; | |
19638 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19639 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19640 | } | |
19641 | return resultobj; | |
19642 | fail: | |
19643 | return NULL; | |
19644 | } | |
19645 | ||
19646 | ||
19647 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19648 | PyObject *resultobj; | |
19649 | wxTimeSpan result; | |
19650 | char *kwnames[] = { | |
19651 | NULL | |
19652 | }; | |
19653 | ||
19654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
19655 | { | |
19656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19657 | result = wxTimeSpan::Hour(); | |
19658 | ||
19659 | wxPyEndAllowThreads(__tstate); | |
19660 | if (PyErr_Occurred()) SWIG_fail; | |
19661 | } | |
19662 | { | |
19663 | wxTimeSpan * resultptr; | |
19664 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19665 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19666 | } | |
19667 | return resultobj; | |
19668 | fail: | |
19669 | return NULL; | |
19670 | } | |
19671 | ||
19672 | ||
19673 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19674 | PyObject *resultobj; | |
19675 | long arg1 ; | |
19676 | wxTimeSpan result; | |
19677 | char *kwnames[] = { | |
19678 | (char *) "days", NULL | |
19679 | }; | |
19680 | ||
19681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Days",kwnames,&arg1)) goto fail; | |
19682 | { | |
19683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19684 | result = wxTimeSpan::Days(arg1); | |
19685 | ||
19686 | wxPyEndAllowThreads(__tstate); | |
19687 | if (PyErr_Occurred()) SWIG_fail; | |
19688 | } | |
19689 | { | |
19690 | wxTimeSpan * resultptr; | |
19691 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19692 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19693 | } | |
19694 | return resultobj; | |
19695 | fail: | |
19696 | return NULL; | |
19697 | } | |
19698 | ||
19699 | ||
19700 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19701 | PyObject *resultobj; | |
19702 | wxTimeSpan result; | |
19703 | char *kwnames[] = { | |
19704 | NULL | |
19705 | }; | |
19706 | ||
19707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
19708 | { | |
19709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19710 | result = wxTimeSpan::Day(); | |
19711 | ||
19712 | wxPyEndAllowThreads(__tstate); | |
19713 | if (PyErr_Occurred()) SWIG_fail; | |
19714 | } | |
19715 | { | |
19716 | wxTimeSpan * resultptr; | |
19717 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19718 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19719 | } | |
19720 | return resultobj; | |
19721 | fail: | |
19722 | return NULL; | |
19723 | } | |
19724 | ||
19725 | ||
19726 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19727 | PyObject *resultobj; | |
19728 | long arg1 ; | |
19729 | wxTimeSpan result; | |
19730 | char *kwnames[] = { | |
19731 | (char *) "days", NULL | |
19732 | }; | |
19733 | ||
19734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Weeks",kwnames,&arg1)) goto fail; | |
19735 | { | |
19736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19737 | result = wxTimeSpan::Weeks(arg1); | |
19738 | ||
19739 | wxPyEndAllowThreads(__tstate); | |
19740 | if (PyErr_Occurred()) SWIG_fail; | |
19741 | } | |
19742 | { | |
19743 | wxTimeSpan * resultptr; | |
19744 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19745 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19746 | } | |
19747 | return resultobj; | |
19748 | fail: | |
19749 | return NULL; | |
19750 | } | |
19751 | ||
19752 | ||
19753 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19754 | PyObject *resultobj; | |
19755 | wxTimeSpan result; | |
19756 | char *kwnames[] = { | |
19757 | NULL | |
19758 | }; | |
19759 | ||
19760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
19761 | { | |
19762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19763 | result = wxTimeSpan::Week(); | |
19764 | ||
19765 | wxPyEndAllowThreads(__tstate); | |
19766 | if (PyErr_Occurred()) SWIG_fail; | |
19767 | } | |
19768 | { | |
19769 | wxTimeSpan * resultptr; | |
19770 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19771 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19772 | } | |
19773 | return resultobj; | |
19774 | fail: | |
19775 | return NULL; | |
19776 | } | |
19777 | ||
19778 | ||
19779 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19780 | PyObject *resultobj; | |
19781 | long arg1 = (long) 0 ; | |
19782 | long arg2 = (long) 0 ; | |
19783 | long arg3 = (long) 0 ; | |
19784 | long arg4 = (long) 0 ; | |
19785 | wxTimeSpan *result; | |
19786 | char *kwnames[] = { | |
19787 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
19788 | }; | |
19789 | ||
19790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|llll:new_TimeSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
19791 | { | |
19792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19793 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
19794 | ||
19795 | wxPyEndAllowThreads(__tstate); | |
19796 | if (PyErr_Occurred()) SWIG_fail; | |
19797 | } | |
19798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1); | |
19799 | return resultobj; | |
19800 | fail: | |
19801 | return NULL; | |
19802 | } | |
19803 | ||
19804 | ||
19805 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19806 | PyObject *resultobj; | |
19807 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19808 | PyObject * obj0 = 0 ; | |
19809 | char *kwnames[] = { | |
19810 | (char *) "self", NULL | |
19811 | }; | |
19812 | ||
19813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
19814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19815 | { | |
19816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19817 | delete arg1; | |
19818 | ||
19819 | wxPyEndAllowThreads(__tstate); | |
19820 | if (PyErr_Occurred()) SWIG_fail; | |
19821 | } | |
19822 | Py_INCREF(Py_None); resultobj = Py_None; | |
19823 | return resultobj; | |
19824 | fail: | |
19825 | return NULL; | |
19826 | } | |
19827 | ||
19828 | ||
19829 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19830 | PyObject *resultobj; | |
19831 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19832 | wxTimeSpan *arg2 = 0 ; | |
19833 | wxTimeSpan *result; | |
19834 | PyObject * obj0 = 0 ; | |
19835 | PyObject * obj1 = 0 ; | |
19836 | char *kwnames[] = { | |
19837 | (char *) "self",(char *) "diff", NULL | |
19838 | }; | |
19839 | ||
19840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
19841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19842 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19843 | if (arg2 == NULL) { | |
19844 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19845 | } | |
19846 | { | |
19847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19848 | { | |
19849 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19850 | result = (wxTimeSpan *) &_result_ref; | |
19851 | } | |
19852 | ||
19853 | wxPyEndAllowThreads(__tstate); | |
19854 | if (PyErr_Occurred()) SWIG_fail; | |
19855 | } | |
19856 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19857 | return resultobj; | |
19858 | fail: | |
19859 | return NULL; | |
19860 | } | |
19861 | ||
19862 | ||
19863 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19864 | PyObject *resultobj; | |
19865 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19866 | wxTimeSpan *arg2 = 0 ; | |
19867 | wxTimeSpan *result; | |
19868 | PyObject * obj0 = 0 ; | |
19869 | PyObject * obj1 = 0 ; | |
19870 | char *kwnames[] = { | |
19871 | (char *) "self",(char *) "diff", NULL | |
19872 | }; | |
19873 | ||
19874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19876 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19877 | if (arg2 == NULL) { | |
19878 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19879 | } | |
19880 | { | |
19881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19882 | { | |
19883 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19884 | result = (wxTimeSpan *) &_result_ref; | |
19885 | } | |
19886 | ||
19887 | wxPyEndAllowThreads(__tstate); | |
19888 | if (PyErr_Occurred()) SWIG_fail; | |
19889 | } | |
19890 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19891 | return resultobj; | |
19892 | fail: | |
19893 | return NULL; | |
19894 | } | |
19895 | ||
19896 | ||
19897 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19898 | PyObject *resultobj; | |
19899 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19900 | int arg2 ; | |
19901 | wxTimeSpan *result; | |
19902 | PyObject * obj0 = 0 ; | |
19903 | char *kwnames[] = { | |
19904 | (char *) "self",(char *) "n", NULL | |
19905 | }; | |
19906 | ||
19907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
19908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19909 | { | |
19910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19911 | { | |
19912 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
19913 | result = (wxTimeSpan *) &_result_ref; | |
19914 | } | |
19915 | ||
19916 | wxPyEndAllowThreads(__tstate); | |
19917 | if (PyErr_Occurred()) SWIG_fail; | |
19918 | } | |
19919 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19920 | return resultobj; | |
19921 | fail: | |
19922 | return NULL; | |
19923 | } | |
19924 | ||
19925 | ||
19926 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19927 | PyObject *resultobj; | |
19928 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19929 | wxTimeSpan *result; | |
19930 | PyObject * obj0 = 0 ; | |
19931 | char *kwnames[] = { | |
19932 | (char *) "self", NULL | |
19933 | }; | |
19934 | ||
19935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
19936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19937 | { | |
19938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19939 | { | |
19940 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
19941 | result = (wxTimeSpan *) &_result_ref; | |
19942 | } | |
19943 | ||
19944 | wxPyEndAllowThreads(__tstate); | |
19945 | if (PyErr_Occurred()) SWIG_fail; | |
19946 | } | |
19947 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19948 | return resultobj; | |
19949 | fail: | |
19950 | return NULL; | |
19951 | } | |
19952 | ||
19953 | ||
19954 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19955 | PyObject *resultobj; | |
19956 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19957 | wxTimeSpan result; | |
19958 | PyObject * obj0 = 0 ; | |
19959 | char *kwnames[] = { | |
19960 | (char *) "self", NULL | |
19961 | }; | |
19962 | ||
19963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
19964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19965 | { | |
19966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19967 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
19968 | ||
19969 | wxPyEndAllowThreads(__tstate); | |
19970 | if (PyErr_Occurred()) SWIG_fail; | |
19971 | } | |
19972 | { | |
19973 | wxTimeSpan * resultptr; | |
19974 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19975 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19976 | } | |
19977 | return resultobj; | |
19978 | fail: | |
19979 | return NULL; | |
19980 | } | |
19981 | ||
19982 | ||
19983 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19984 | PyObject *resultobj; | |
19985 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19986 | wxTimeSpan *arg2 = 0 ; | |
19987 | wxTimeSpan *result; | |
19988 | PyObject * obj0 = 0 ; | |
19989 | PyObject * obj1 = 0 ; | |
19990 | char *kwnames[] = { | |
19991 | (char *) "self",(char *) "diff", NULL | |
19992 | }; | |
19993 | ||
19994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
19995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19996 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19997 | if (arg2 == NULL) { | |
19998 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19999 | } | |
20000 | { | |
20001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20002 | { | |
20003 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20004 | result = (wxTimeSpan *) &_result_ref; | |
20005 | } | |
20006 | ||
20007 | wxPyEndAllowThreads(__tstate); | |
20008 | if (PyErr_Occurred()) SWIG_fail; | |
20009 | } | |
20010 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
20011 | return resultobj; | |
20012 | fail: | |
20013 | return NULL; | |
20014 | } | |
20015 | ||
20016 | ||
20017 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20018 | PyObject *resultobj; | |
20019 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20020 | wxTimeSpan *arg2 = 0 ; | |
20021 | wxTimeSpan *result; | |
20022 | PyObject * obj0 = 0 ; | |
20023 | PyObject * obj1 = 0 ; | |
20024 | char *kwnames[] = { | |
20025 | (char *) "self",(char *) "diff", NULL | |
20026 | }; | |
20027 | ||
20028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
20029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20030 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20031 | if (arg2 == NULL) { | |
20032 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20033 | } | |
20034 | { | |
20035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20036 | { | |
20037 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20038 | result = (wxTimeSpan *) &_result_ref; | |
20039 | } | |
20040 | ||
20041 | wxPyEndAllowThreads(__tstate); | |
20042 | if (PyErr_Occurred()) SWIG_fail; | |
20043 | } | |
20044 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
20045 | return resultobj; | |
20046 | fail: | |
20047 | return NULL; | |
20048 | } | |
20049 | ||
20050 | ||
20051 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20052 | PyObject *resultobj; | |
20053 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20054 | int arg2 ; | |
20055 | wxTimeSpan *result; | |
20056 | PyObject * obj0 = 0 ; | |
20057 | char *kwnames[] = { | |
20058 | (char *) "self",(char *) "n", NULL | |
20059 | }; | |
20060 | ||
20061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
20062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20063 | { | |
20064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20065 | { | |
20066 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
20067 | result = (wxTimeSpan *) &_result_ref; | |
20068 | } | |
20069 | ||
20070 | wxPyEndAllowThreads(__tstate); | |
20071 | if (PyErr_Occurred()) SWIG_fail; | |
20072 | } | |
20073 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
20074 | return resultobj; | |
20075 | fail: | |
20076 | return NULL; | |
20077 | } | |
20078 | ||
20079 | ||
20080 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20081 | PyObject *resultobj; | |
20082 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20083 | wxTimeSpan *result; | |
20084 | PyObject * obj0 = 0 ; | |
20085 | char *kwnames[] = { | |
20086 | (char *) "self", NULL | |
20087 | }; | |
20088 | ||
20089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
20090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20091 | { | |
20092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20093 | { | |
20094 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
20095 | result = (wxTimeSpan *) &_result_ref; | |
20096 | } | |
20097 | ||
20098 | wxPyEndAllowThreads(__tstate); | |
20099 | if (PyErr_Occurred()) SWIG_fail; | |
20100 | } | |
20101 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
20102 | return resultobj; | |
20103 | fail: | |
20104 | return NULL; | |
20105 | } | |
20106 | ||
20107 | ||
20108 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20109 | PyObject *resultobj; | |
20110 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20111 | wxTimeSpan *arg2 = 0 ; | |
20112 | wxTimeSpan result; | |
20113 | PyObject * obj0 = 0 ; | |
20114 | PyObject * obj1 = 0 ; | |
20115 | char *kwnames[] = { | |
20116 | (char *) "self",(char *) "other", NULL | |
20117 | }; | |
20118 | ||
20119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
20120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20121 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20122 | if (arg2 == NULL) { | |
20123 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20124 | } | |
20125 | { | |
20126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20127 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
20128 | ||
20129 | wxPyEndAllowThreads(__tstate); | |
20130 | if (PyErr_Occurred()) SWIG_fail; | |
20131 | } | |
20132 | { | |
20133 | wxTimeSpan * resultptr; | |
20134 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20135 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20136 | } | |
20137 | return resultobj; | |
20138 | fail: | |
20139 | return NULL; | |
20140 | } | |
20141 | ||
20142 | ||
20143 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20144 | PyObject *resultobj; | |
20145 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20146 | wxTimeSpan *arg2 = 0 ; | |
20147 | wxTimeSpan result; | |
20148 | PyObject * obj0 = 0 ; | |
20149 | PyObject * obj1 = 0 ; | |
20150 | char *kwnames[] = { | |
20151 | (char *) "self",(char *) "other", NULL | |
20152 | }; | |
20153 | ||
20154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
20155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20156 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20157 | if (arg2 == NULL) { | |
20158 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20159 | } | |
20160 | { | |
20161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20162 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
20163 | ||
20164 | wxPyEndAllowThreads(__tstate); | |
20165 | if (PyErr_Occurred()) SWIG_fail; | |
20166 | } | |
20167 | { | |
20168 | wxTimeSpan * resultptr; | |
20169 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20170 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20171 | } | |
20172 | return resultobj; | |
20173 | fail: | |
20174 | return NULL; | |
20175 | } | |
20176 | ||
20177 | ||
20178 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20179 | PyObject *resultobj; | |
20180 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20181 | int arg2 ; | |
20182 | wxTimeSpan result; | |
20183 | PyObject * obj0 = 0 ; | |
20184 | char *kwnames[] = { | |
20185 | (char *) "self",(char *) "n", NULL | |
20186 | }; | |
20187 | ||
20188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
20189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20190 | { | |
20191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20192 | result = wxTimeSpan___mul__(arg1,arg2); | |
20193 | ||
20194 | wxPyEndAllowThreads(__tstate); | |
20195 | if (PyErr_Occurred()) SWIG_fail; | |
20196 | } | |
20197 | { | |
20198 | wxTimeSpan * resultptr; | |
20199 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20200 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20201 | } | |
20202 | return resultobj; | |
20203 | fail: | |
20204 | return NULL; | |
20205 | } | |
20206 | ||
20207 | ||
20208 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20209 | PyObject *resultobj; | |
20210 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20211 | int arg2 ; | |
20212 | wxTimeSpan result; | |
20213 | PyObject * obj0 = 0 ; | |
20214 | char *kwnames[] = { | |
20215 | (char *) "self",(char *) "n", NULL | |
20216 | }; | |
20217 | ||
20218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
20219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20220 | { | |
20221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20222 | result = wxTimeSpan___rmul__(arg1,arg2); | |
20223 | ||
20224 | wxPyEndAllowThreads(__tstate); | |
20225 | if (PyErr_Occurred()) SWIG_fail; | |
20226 | } | |
20227 | { | |
20228 | wxTimeSpan * resultptr; | |
20229 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20230 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20231 | } | |
20232 | return resultobj; | |
20233 | fail: | |
20234 | return NULL; | |
20235 | } | |
20236 | ||
20237 | ||
20238 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20239 | PyObject *resultobj; | |
20240 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20241 | wxTimeSpan *arg2 = 0 ; | |
20242 | bool result; | |
20243 | PyObject * obj0 = 0 ; | |
20244 | PyObject * obj1 = 0 ; | |
20245 | char *kwnames[] = { | |
20246 | (char *) "self",(char *) "other", NULL | |
20247 | }; | |
20248 | ||
20249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
20250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20251 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20252 | if (arg2 == NULL) { | |
20253 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20254 | } | |
20255 | { | |
20256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20257 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2); | |
20258 | ||
20259 | wxPyEndAllowThreads(__tstate); | |
20260 | if (PyErr_Occurred()) SWIG_fail; | |
20261 | } | |
20262 | resultobj = PyInt_FromLong((long)result); | |
20263 | return resultobj; | |
20264 | fail: | |
20265 | return NULL; | |
20266 | } | |
20267 | ||
20268 | ||
20269 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20270 | PyObject *resultobj; | |
20271 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20272 | wxTimeSpan *arg2 = 0 ; | |
20273 | bool result; | |
20274 | PyObject * obj0 = 0 ; | |
20275 | PyObject * obj1 = 0 ; | |
20276 | char *kwnames[] = { | |
20277 | (char *) "self",(char *) "other", NULL | |
20278 | }; | |
20279 | ||
20280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
20281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20282 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20283 | if (arg2 == NULL) { | |
20284 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20285 | } | |
20286 | { | |
20287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20288 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2); | |
20289 | ||
20290 | wxPyEndAllowThreads(__tstate); | |
20291 | if (PyErr_Occurred()) SWIG_fail; | |
20292 | } | |
20293 | resultobj = PyInt_FromLong((long)result); | |
20294 | return resultobj; | |
20295 | fail: | |
20296 | return NULL; | |
20297 | } | |
20298 | ||
20299 | ||
20300 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20301 | PyObject *resultobj; | |
20302 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20303 | wxTimeSpan *arg2 = 0 ; | |
20304 | bool result; | |
20305 | PyObject * obj0 = 0 ; | |
20306 | PyObject * obj1 = 0 ; | |
20307 | char *kwnames[] = { | |
20308 | (char *) "self",(char *) "other", NULL | |
20309 | }; | |
20310 | ||
20311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
20312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20313 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20314 | if (arg2 == NULL) { | |
20315 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20316 | } | |
20317 | { | |
20318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20319 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2); | |
20320 | ||
20321 | wxPyEndAllowThreads(__tstate); | |
20322 | if (PyErr_Occurred()) SWIG_fail; | |
20323 | } | |
20324 | resultobj = PyInt_FromLong((long)result); | |
20325 | return resultobj; | |
20326 | fail: | |
20327 | return NULL; | |
20328 | } | |
20329 | ||
20330 | ||
20331 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20332 | PyObject *resultobj; | |
20333 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20334 | wxTimeSpan *arg2 = 0 ; | |
20335 | bool result; | |
20336 | PyObject * obj0 = 0 ; | |
20337 | PyObject * obj1 = 0 ; | |
20338 | char *kwnames[] = { | |
20339 | (char *) "self",(char *) "other", NULL | |
20340 | }; | |
20341 | ||
20342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
20343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20344 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20345 | if (arg2 == NULL) { | |
20346 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20347 | } | |
20348 | { | |
20349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20350 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2); | |
20351 | ||
20352 | wxPyEndAllowThreads(__tstate); | |
20353 | if (PyErr_Occurred()) SWIG_fail; | |
20354 | } | |
20355 | resultobj = PyInt_FromLong((long)result); | |
20356 | return resultobj; | |
20357 | fail: | |
20358 | return NULL; | |
20359 | } | |
20360 | ||
20361 | ||
20362 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20363 | PyObject *resultobj; | |
20364 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20365 | wxTimeSpan *arg2 = 0 ; | |
20366 | bool result; | |
20367 | PyObject * obj0 = 0 ; | |
20368 | PyObject * obj1 = 0 ; | |
20369 | char *kwnames[] = { | |
20370 | (char *) "self",(char *) "other", NULL | |
20371 | }; | |
20372 | ||
20373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
20374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20375 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20376 | if (arg2 == NULL) { | |
20377 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20378 | } | |
20379 | { | |
20380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20381 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2); | |
20382 | ||
20383 | wxPyEndAllowThreads(__tstate); | |
20384 | if (PyErr_Occurred()) SWIG_fail; | |
20385 | } | |
20386 | resultobj = PyInt_FromLong((long)result); | |
20387 | return resultobj; | |
20388 | fail: | |
20389 | return NULL; | |
20390 | } | |
20391 | ||
20392 | ||
20393 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20394 | PyObject *resultobj; | |
20395 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20396 | wxTimeSpan *arg2 = 0 ; | |
20397 | bool result; | |
20398 | PyObject * obj0 = 0 ; | |
20399 | PyObject * obj1 = 0 ; | |
20400 | char *kwnames[] = { | |
20401 | (char *) "self",(char *) "other", NULL | |
20402 | }; | |
20403 | ||
20404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
20405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20406 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20407 | if (arg2 == NULL) { | |
20408 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20409 | } | |
20410 | { | |
20411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20412 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2); | |
20413 | ||
20414 | wxPyEndAllowThreads(__tstate); | |
20415 | if (PyErr_Occurred()) SWIG_fail; | |
20416 | } | |
20417 | resultobj = PyInt_FromLong((long)result); | |
20418 | return resultobj; | |
20419 | fail: | |
20420 | return NULL; | |
20421 | } | |
20422 | ||
20423 | ||
20424 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20425 | PyObject *resultobj; | |
20426 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20427 | bool result; | |
20428 | PyObject * obj0 = 0 ; | |
20429 | char *kwnames[] = { | |
20430 | (char *) "self", NULL | |
20431 | }; | |
20432 | ||
20433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
20434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20435 | { | |
20436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20437 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
20438 | ||
20439 | wxPyEndAllowThreads(__tstate); | |
20440 | if (PyErr_Occurred()) SWIG_fail; | |
20441 | } | |
20442 | resultobj = PyInt_FromLong((long)result); | |
20443 | return resultobj; | |
20444 | fail: | |
20445 | return NULL; | |
20446 | } | |
20447 | ||
20448 | ||
20449 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20450 | PyObject *resultobj; | |
20451 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20452 | bool result; | |
20453 | PyObject * obj0 = 0 ; | |
20454 | char *kwnames[] = { | |
20455 | (char *) "self", NULL | |
20456 | }; | |
20457 | ||
20458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
20459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20460 | { | |
20461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20462 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
20463 | ||
20464 | wxPyEndAllowThreads(__tstate); | |
20465 | if (PyErr_Occurred()) SWIG_fail; | |
20466 | } | |
20467 | resultobj = PyInt_FromLong((long)result); | |
20468 | return resultobj; | |
20469 | fail: | |
20470 | return NULL; | |
20471 | } | |
20472 | ||
20473 | ||
20474 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20475 | PyObject *resultobj; | |
20476 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20477 | bool result; | |
20478 | PyObject * obj0 = 0 ; | |
20479 | char *kwnames[] = { | |
20480 | (char *) "self", NULL | |
20481 | }; | |
20482 | ||
20483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
20484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20485 | { | |
20486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20487 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
20488 | ||
20489 | wxPyEndAllowThreads(__tstate); | |
20490 | if (PyErr_Occurred()) SWIG_fail; | |
20491 | } | |
20492 | resultobj = PyInt_FromLong((long)result); | |
20493 | return resultobj; | |
20494 | fail: | |
20495 | return NULL; | |
20496 | } | |
20497 | ||
20498 | ||
20499 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20500 | PyObject *resultobj; | |
20501 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20502 | wxTimeSpan *arg2 = 0 ; | |
20503 | bool result; | |
20504 | PyObject * obj0 = 0 ; | |
20505 | PyObject * obj1 = 0 ; | |
20506 | char *kwnames[] = { | |
20507 | (char *) "self",(char *) "ts", NULL | |
20508 | }; | |
20509 | ||
20510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
20511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20512 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20513 | if (arg2 == NULL) { | |
20514 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20515 | } | |
20516 | { | |
20517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20518 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
20519 | ||
20520 | wxPyEndAllowThreads(__tstate); | |
20521 | if (PyErr_Occurred()) SWIG_fail; | |
20522 | } | |
20523 | resultobj = PyInt_FromLong((long)result); | |
20524 | return resultobj; | |
20525 | fail: | |
20526 | return NULL; | |
20527 | } | |
20528 | ||
20529 | ||
20530 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20531 | PyObject *resultobj; | |
20532 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20533 | wxTimeSpan *arg2 = 0 ; | |
20534 | bool result; | |
20535 | PyObject * obj0 = 0 ; | |
20536 | PyObject * obj1 = 0 ; | |
20537 | char *kwnames[] = { | |
20538 | (char *) "self",(char *) "ts", NULL | |
20539 | }; | |
20540 | ||
20541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
20542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20543 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20544 | if (arg2 == NULL) { | |
20545 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20546 | } | |
20547 | { | |
20548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20549 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
20550 | ||
20551 | wxPyEndAllowThreads(__tstate); | |
20552 | if (PyErr_Occurred()) SWIG_fail; | |
20553 | } | |
20554 | resultobj = PyInt_FromLong((long)result); | |
20555 | return resultobj; | |
20556 | fail: | |
20557 | return NULL; | |
20558 | } | |
20559 | ||
20560 | ||
20561 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20562 | PyObject *resultobj; | |
20563 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20564 | wxTimeSpan *arg2 = 0 ; | |
20565 | bool result; | |
20566 | PyObject * obj0 = 0 ; | |
20567 | PyObject * obj1 = 0 ; | |
20568 | char *kwnames[] = { | |
20569 | (char *) "self",(char *) "t", NULL | |
20570 | }; | |
20571 | ||
20572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
20573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20574 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20575 | if (arg2 == NULL) { | |
20576 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20577 | } | |
20578 | { | |
20579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20580 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
20581 | ||
20582 | wxPyEndAllowThreads(__tstate); | |
20583 | if (PyErr_Occurred()) SWIG_fail; | |
20584 | } | |
20585 | resultobj = PyInt_FromLong((long)result); | |
20586 | return resultobj; | |
20587 | fail: | |
20588 | return NULL; | |
20589 | } | |
20590 | ||
20591 | ||
20592 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20593 | PyObject *resultobj; | |
20594 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20595 | int result; | |
20596 | PyObject * obj0 = 0 ; | |
20597 | char *kwnames[] = { | |
20598 | (char *) "self", NULL | |
20599 | }; | |
20600 | ||
20601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20603 | { | |
20604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20605 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
20606 | ||
20607 | wxPyEndAllowThreads(__tstate); | |
20608 | if (PyErr_Occurred()) SWIG_fail; | |
20609 | } | |
20610 | resultobj = PyInt_FromLong((long)result); | |
20611 | return resultobj; | |
20612 | fail: | |
20613 | return NULL; | |
20614 | } | |
20615 | ||
20616 | ||
20617 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20618 | PyObject *resultobj; | |
20619 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20620 | int result; | |
20621 | PyObject * obj0 = 0 ; | |
20622 | char *kwnames[] = { | |
20623 | (char *) "self", NULL | |
20624 | }; | |
20625 | ||
20626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
20627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20628 | { | |
20629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20630 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
20631 | ||
20632 | wxPyEndAllowThreads(__tstate); | |
20633 | if (PyErr_Occurred()) SWIG_fail; | |
20634 | } | |
20635 | resultobj = PyInt_FromLong((long)result); | |
20636 | return resultobj; | |
20637 | fail: | |
20638 | return NULL; | |
20639 | } | |
20640 | ||
20641 | ||
20642 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20643 | PyObject *resultobj; | |
20644 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20645 | int result; | |
20646 | PyObject * obj0 = 0 ; | |
20647 | char *kwnames[] = { | |
20648 | (char *) "self", NULL | |
20649 | }; | |
20650 | ||
20651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
20652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20653 | { | |
20654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20655 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
20656 | ||
20657 | wxPyEndAllowThreads(__tstate); | |
20658 | if (PyErr_Occurred()) SWIG_fail; | |
20659 | } | |
20660 | resultobj = PyInt_FromLong((long)result); | |
20661 | return resultobj; | |
20662 | fail: | |
20663 | return NULL; | |
20664 | } | |
20665 | ||
20666 | ||
20667 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20668 | PyObject *resultobj; | |
20669 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20670 | int result; | |
20671 | PyObject * obj0 = 0 ; | |
20672 | char *kwnames[] = { | |
20673 | (char *) "self", NULL | |
20674 | }; | |
20675 | ||
20676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
20677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20678 | { | |
20679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20680 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
20681 | ||
20682 | wxPyEndAllowThreads(__tstate); | |
20683 | if (PyErr_Occurred()) SWIG_fail; | |
20684 | } | |
20685 | resultobj = PyInt_FromLong((long)result); | |
20686 | return resultobj; | |
20687 | fail: | |
20688 | return NULL; | |
20689 | } | |
20690 | ||
20691 | ||
20692 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20693 | PyObject *resultobj; | |
20694 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20695 | wxLongLong result; | |
20696 | PyObject * obj0 = 0 ; | |
20697 | char *kwnames[] = { | |
20698 | (char *) "self", NULL | |
20699 | }; | |
20700 | ||
20701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
20702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20703 | { | |
20704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20705 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
20706 | ||
20707 | wxPyEndAllowThreads(__tstate); | |
20708 | if (PyErr_Occurred()) SWIG_fail; | |
20709 | } | |
20710 | { | |
20711 | PyObject *hi, *lo, *shifter, *shifted; | |
20712 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20713 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20714 | shifter = PyLong_FromLong(32); | |
20715 | shifted = PyNumber_Lshift(hi, shifter); | |
20716 | resultobj = PyNumber_Or(shifted, lo); | |
20717 | Py_DECREF(hi); | |
20718 | Py_DECREF(lo); | |
20719 | Py_DECREF(shifter); | |
20720 | Py_DECREF(shifted); | |
20721 | } | |
20722 | return resultobj; | |
20723 | fail: | |
20724 | return NULL; | |
20725 | } | |
20726 | ||
20727 | ||
20728 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20729 | PyObject *resultobj; | |
20730 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20731 | wxLongLong result; | |
20732 | PyObject * obj0 = 0 ; | |
20733 | char *kwnames[] = { | |
20734 | (char *) "self", NULL | |
20735 | }; | |
20736 | ||
20737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
20738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20739 | { | |
20740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20741 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
20742 | ||
20743 | wxPyEndAllowThreads(__tstate); | |
20744 | if (PyErr_Occurred()) SWIG_fail; | |
20745 | } | |
20746 | { | |
20747 | PyObject *hi, *lo, *shifter, *shifted; | |
20748 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20749 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20750 | shifter = PyLong_FromLong(32); | |
20751 | shifted = PyNumber_Lshift(hi, shifter); | |
20752 | resultobj = PyNumber_Or(shifted, lo); | |
20753 | Py_DECREF(hi); | |
20754 | Py_DECREF(lo); | |
20755 | Py_DECREF(shifter); | |
20756 | Py_DECREF(shifted); | |
20757 | } | |
20758 | return resultobj; | |
20759 | fail: | |
20760 | return NULL; | |
20761 | } | |
20762 | ||
20763 | ||
20764 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20765 | PyObject *resultobj; | |
20766 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20767 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
20768 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20769 | wxString result; | |
e811c8ce | 20770 | bool temp2 = False ; |
d14a1e28 RD |
20771 | PyObject * obj0 = 0 ; |
20772 | PyObject * obj1 = 0 ; | |
20773 | char *kwnames[] = { | |
20774 | (char *) "self",(char *) "format", NULL | |
20775 | }; | |
20776 | ||
20777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
20778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20779 | if (obj1) { | |
20780 | { | |
20781 | arg2 = wxString_in_helper(obj1); | |
20782 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20783 | temp2 = True; |
d14a1e28 RD |
20784 | } |
20785 | } | |
20786 | { | |
20787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20788 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
20789 | ||
20790 | wxPyEndAllowThreads(__tstate); | |
20791 | if (PyErr_Occurred()) SWIG_fail; | |
20792 | } | |
20793 | { | |
20794 | #if wxUSE_UNICODE | |
20795 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20796 | #else | |
20797 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20798 | #endif | |
20799 | } | |
20800 | { | |
20801 | if (temp2) | |
20802 | delete arg2; | |
20803 | } | |
20804 | return resultobj; | |
20805 | fail: | |
20806 | { | |
20807 | if (temp2) | |
20808 | delete arg2; | |
20809 | } | |
20810 | return NULL; | |
20811 | } | |
20812 | ||
20813 | ||
20814 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
20815 | PyObject *obj; | |
20816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20817 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
20818 | Py_INCREF(obj); | |
20819 | return Py_BuildValue((char *)""); | |
20820 | } | |
20821 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20822 | PyObject *resultobj; | |
20823 | int arg1 = (int) 0 ; | |
20824 | int arg2 = (int) 0 ; | |
20825 | int arg3 = (int) 0 ; | |
20826 | int arg4 = (int) 0 ; | |
20827 | wxDateSpan *result; | |
20828 | char *kwnames[] = { | |
20829 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
20830 | }; | |
20831 | ||
20832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_DateSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
20833 | { | |
20834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20835 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
20836 | ||
20837 | wxPyEndAllowThreads(__tstate); | |
20838 | if (PyErr_Occurred()) SWIG_fail; | |
20839 | } | |
20840 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1); | |
20841 | return resultobj; | |
20842 | fail: | |
20843 | return NULL; | |
20844 | } | |
20845 | ||
20846 | ||
20847 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20848 | PyObject *resultobj; | |
20849 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20850 | PyObject * obj0 = 0 ; | |
20851 | char *kwnames[] = { | |
20852 | (char *) "self", NULL | |
20853 | }; | |
20854 | ||
20855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
20856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20857 | { | |
20858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20859 | delete arg1; | |
20860 | ||
20861 | wxPyEndAllowThreads(__tstate); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
20864 | Py_INCREF(Py_None); resultobj = Py_None; | |
20865 | return resultobj; | |
20866 | fail: | |
20867 | return NULL; | |
20868 | } | |
20869 | ||
20870 | ||
20871 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20872 | PyObject *resultobj; | |
20873 | int arg1 ; | |
20874 | wxDateSpan result; | |
20875 | char *kwnames[] = { | |
20876 | (char *) "days", NULL | |
20877 | }; | |
20878 | ||
20879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Days",kwnames,&arg1)) goto fail; | |
20880 | { | |
20881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20882 | result = wxDateSpan::Days(arg1); | |
20883 | ||
20884 | wxPyEndAllowThreads(__tstate); | |
20885 | if (PyErr_Occurred()) SWIG_fail; | |
20886 | } | |
20887 | { | |
20888 | wxDateSpan * resultptr; | |
20889 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20890 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20891 | } | |
20892 | return resultobj; | |
20893 | fail: | |
20894 | return NULL; | |
20895 | } | |
20896 | ||
20897 | ||
20898 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20899 | PyObject *resultobj; | |
20900 | wxDateSpan result; | |
20901 | char *kwnames[] = { | |
20902 | NULL | |
20903 | }; | |
20904 | ||
20905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
20906 | { | |
20907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20908 | result = wxDateSpan::Day(); | |
20909 | ||
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
20913 | { | |
20914 | wxDateSpan * resultptr; | |
20915 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20916 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20917 | } | |
20918 | return resultobj; | |
20919 | fail: | |
20920 | return NULL; | |
20921 | } | |
20922 | ||
20923 | ||
20924 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20925 | PyObject *resultobj; | |
20926 | int arg1 ; | |
20927 | wxDateSpan result; | |
20928 | char *kwnames[] = { | |
20929 | (char *) "weeks", NULL | |
20930 | }; | |
20931 | ||
20932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Weeks",kwnames,&arg1)) goto fail; | |
20933 | { | |
20934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20935 | result = wxDateSpan::Weeks(arg1); | |
20936 | ||
20937 | wxPyEndAllowThreads(__tstate); | |
20938 | if (PyErr_Occurred()) SWIG_fail; | |
20939 | } | |
20940 | { | |
20941 | wxDateSpan * resultptr; | |
20942 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20943 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20944 | } | |
20945 | return resultobj; | |
20946 | fail: | |
20947 | return NULL; | |
20948 | } | |
20949 | ||
20950 | ||
20951 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20952 | PyObject *resultobj; | |
20953 | wxDateSpan result; | |
20954 | char *kwnames[] = { | |
20955 | NULL | |
20956 | }; | |
20957 | ||
20958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
20959 | { | |
20960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20961 | result = wxDateSpan::Week(); | |
20962 | ||
20963 | wxPyEndAllowThreads(__tstate); | |
20964 | if (PyErr_Occurred()) SWIG_fail; | |
20965 | } | |
20966 | { | |
20967 | wxDateSpan * resultptr; | |
20968 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20969 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20970 | } | |
20971 | return resultobj; | |
20972 | fail: | |
20973 | return NULL; | |
20974 | } | |
20975 | ||
20976 | ||
20977 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20978 | PyObject *resultobj; | |
20979 | int arg1 ; | |
20980 | wxDateSpan result; | |
20981 | char *kwnames[] = { | |
20982 | (char *) "mon", NULL | |
20983 | }; | |
20984 | ||
20985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Months",kwnames,&arg1)) goto fail; | |
20986 | { | |
20987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20988 | result = wxDateSpan::Months(arg1); | |
20989 | ||
20990 | wxPyEndAllowThreads(__tstate); | |
20991 | if (PyErr_Occurred()) SWIG_fail; | |
20992 | } | |
20993 | { | |
20994 | wxDateSpan * resultptr; | |
20995 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20996 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20997 | } | |
20998 | return resultobj; | |
20999 | fail: | |
21000 | return NULL; | |
21001 | } | |
21002 | ||
21003 | ||
21004 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21005 | PyObject *resultobj; | |
21006 | wxDateSpan result; | |
21007 | char *kwnames[] = { | |
21008 | NULL | |
21009 | }; | |
21010 | ||
21011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
21012 | { | |
21013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21014 | result = wxDateSpan::Month(); | |
21015 | ||
21016 | wxPyEndAllowThreads(__tstate); | |
21017 | if (PyErr_Occurred()) SWIG_fail; | |
21018 | } | |
21019 | { | |
21020 | wxDateSpan * resultptr; | |
21021 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21022 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21023 | } | |
21024 | return resultobj; | |
21025 | fail: | |
21026 | return NULL; | |
21027 | } | |
21028 | ||
21029 | ||
21030 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21031 | PyObject *resultobj; | |
21032 | int arg1 ; | |
21033 | wxDateSpan result; | |
21034 | char *kwnames[] = { | |
21035 | (char *) "years", NULL | |
21036 | }; | |
21037 | ||
21038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Years",kwnames,&arg1)) goto fail; | |
21039 | { | |
21040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21041 | result = wxDateSpan::Years(arg1); | |
21042 | ||
21043 | wxPyEndAllowThreads(__tstate); | |
21044 | if (PyErr_Occurred()) SWIG_fail; | |
21045 | } | |
21046 | { | |
21047 | wxDateSpan * resultptr; | |
21048 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21049 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21050 | } | |
21051 | return resultobj; | |
21052 | fail: | |
21053 | return NULL; | |
21054 | } | |
21055 | ||
21056 | ||
21057 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21058 | PyObject *resultobj; | |
21059 | wxDateSpan result; | |
21060 | char *kwnames[] = { | |
21061 | NULL | |
21062 | }; | |
21063 | ||
21064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
21065 | { | |
21066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21067 | result = wxDateSpan::Year(); | |
21068 | ||
21069 | wxPyEndAllowThreads(__tstate); | |
21070 | if (PyErr_Occurred()) SWIG_fail; | |
21071 | } | |
21072 | { | |
21073 | wxDateSpan * resultptr; | |
21074 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21075 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21076 | } | |
21077 | return resultobj; | |
21078 | fail: | |
21079 | return NULL; | |
21080 | } | |
21081 | ||
21082 | ||
21083 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21084 | PyObject *resultobj; | |
21085 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21086 | int arg2 ; | |
21087 | wxDateSpan *result; | |
21088 | PyObject * obj0 = 0 ; | |
21089 | char *kwnames[] = { | |
21090 | (char *) "self",(char *) "n", NULL | |
21091 | }; | |
21092 | ||
21093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetYears",kwnames,&obj0,&arg2)) goto fail; | |
21094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21095 | { | |
21096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21097 | { | |
21098 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
21099 | result = (wxDateSpan *) &_result_ref; | |
21100 | } | |
21101 | ||
21102 | wxPyEndAllowThreads(__tstate); | |
21103 | if (PyErr_Occurred()) SWIG_fail; | |
21104 | } | |
21105 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21106 | return resultobj; | |
21107 | fail: | |
21108 | return NULL; | |
21109 | } | |
21110 | ||
21111 | ||
21112 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21113 | PyObject *resultobj; | |
21114 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21115 | int arg2 ; | |
21116 | wxDateSpan *result; | |
21117 | PyObject * obj0 = 0 ; | |
21118 | char *kwnames[] = { | |
21119 | (char *) "self",(char *) "n", NULL | |
21120 | }; | |
21121 | ||
21122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetMonths",kwnames,&obj0,&arg2)) goto fail; | |
21123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21124 | { | |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | { | |
21127 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
21128 | result = (wxDateSpan *) &_result_ref; | |
21129 | } | |
21130 | ||
21131 | wxPyEndAllowThreads(__tstate); | |
21132 | if (PyErr_Occurred()) SWIG_fail; | |
21133 | } | |
21134 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21135 | return resultobj; | |
21136 | fail: | |
21137 | return NULL; | |
21138 | } | |
21139 | ||
21140 | ||
21141 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21142 | PyObject *resultobj; | |
21143 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21144 | int arg2 ; | |
21145 | wxDateSpan *result; | |
21146 | PyObject * obj0 = 0 ; | |
21147 | char *kwnames[] = { | |
21148 | (char *) "self",(char *) "n", NULL | |
21149 | }; | |
21150 | ||
21151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetWeeks",kwnames,&obj0,&arg2)) goto fail; | |
21152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21153 | { | |
21154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21155 | { | |
21156 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
21157 | result = (wxDateSpan *) &_result_ref; | |
21158 | } | |
21159 | ||
21160 | wxPyEndAllowThreads(__tstate); | |
21161 | if (PyErr_Occurred()) SWIG_fail; | |
21162 | } | |
21163 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21164 | return resultobj; | |
21165 | fail: | |
21166 | return NULL; | |
21167 | } | |
21168 | ||
21169 | ||
21170 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21171 | PyObject *resultobj; | |
21172 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21173 | int arg2 ; | |
21174 | wxDateSpan *result; | |
21175 | PyObject * obj0 = 0 ; | |
21176 | char *kwnames[] = { | |
21177 | (char *) "self",(char *) "n", NULL | |
21178 | }; | |
21179 | ||
21180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetDays",kwnames,&obj0,&arg2)) goto fail; | |
21181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21182 | { | |
21183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21184 | { | |
21185 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
21186 | result = (wxDateSpan *) &_result_ref; | |
21187 | } | |
21188 | ||
21189 | wxPyEndAllowThreads(__tstate); | |
21190 | if (PyErr_Occurred()) SWIG_fail; | |
21191 | } | |
21192 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21193 | return resultobj; | |
21194 | fail: | |
21195 | return NULL; | |
21196 | } | |
21197 | ||
21198 | ||
21199 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21200 | PyObject *resultobj; | |
21201 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21202 | int result; | |
21203 | PyObject * obj0 = 0 ; | |
21204 | char *kwnames[] = { | |
21205 | (char *) "self", NULL | |
21206 | }; | |
21207 | ||
21208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
21209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21210 | { | |
21211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21212 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
21213 | ||
21214 | wxPyEndAllowThreads(__tstate); | |
21215 | if (PyErr_Occurred()) SWIG_fail; | |
21216 | } | |
21217 | resultobj = PyInt_FromLong((long)result); | |
21218 | return resultobj; | |
21219 | fail: | |
21220 | return NULL; | |
21221 | } | |
21222 | ||
21223 | ||
21224 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21225 | PyObject *resultobj; | |
21226 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21227 | int result; | |
21228 | PyObject * obj0 = 0 ; | |
21229 | char *kwnames[] = { | |
21230 | (char *) "self", NULL | |
21231 | }; | |
21232 | ||
21233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
21234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21235 | { | |
21236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21237 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
21238 | ||
21239 | wxPyEndAllowThreads(__tstate); | |
21240 | if (PyErr_Occurred()) SWIG_fail; | |
21241 | } | |
21242 | resultobj = PyInt_FromLong((long)result); | |
21243 | return resultobj; | |
21244 | fail: | |
21245 | return NULL; | |
21246 | } | |
21247 | ||
21248 | ||
21249 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21250 | PyObject *resultobj; | |
21251 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21252 | int result; | |
21253 | PyObject * obj0 = 0 ; | |
21254 | char *kwnames[] = { | |
21255 | (char *) "self", NULL | |
21256 | }; | |
21257 | ||
21258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
21259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21260 | { | |
21261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21262 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
21263 | ||
21264 | wxPyEndAllowThreads(__tstate); | |
21265 | if (PyErr_Occurred()) SWIG_fail; | |
21266 | } | |
21267 | resultobj = PyInt_FromLong((long)result); | |
21268 | return resultobj; | |
21269 | fail: | |
21270 | return NULL; | |
21271 | } | |
21272 | ||
21273 | ||
21274 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21275 | PyObject *resultobj; | |
21276 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21277 | int result; | |
21278 | PyObject * obj0 = 0 ; | |
21279 | char *kwnames[] = { | |
21280 | (char *) "self", NULL | |
21281 | }; | |
21282 | ||
21283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
21284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21285 | { | |
21286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21287 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
21288 | ||
21289 | wxPyEndAllowThreads(__tstate); | |
21290 | if (PyErr_Occurred()) SWIG_fail; | |
21291 | } | |
21292 | resultobj = PyInt_FromLong((long)result); | |
21293 | return resultobj; | |
21294 | fail: | |
21295 | return NULL; | |
21296 | } | |
21297 | ||
21298 | ||
21299 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21300 | PyObject *resultobj; | |
21301 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21302 | int result; | |
21303 | PyObject * obj0 = 0 ; | |
21304 | char *kwnames[] = { | |
21305 | (char *) "self", NULL | |
21306 | }; | |
21307 | ||
21308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
21309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21310 | { | |
21311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21312 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
21313 | ||
21314 | wxPyEndAllowThreads(__tstate); | |
21315 | if (PyErr_Occurred()) SWIG_fail; | |
21316 | } | |
21317 | resultobj = PyInt_FromLong((long)result); | |
21318 | return resultobj; | |
21319 | fail: | |
21320 | return NULL; | |
21321 | } | |
21322 | ||
21323 | ||
21324 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21325 | PyObject *resultobj; | |
21326 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21327 | wxDateSpan *arg2 = 0 ; | |
21328 | wxDateSpan *result; | |
21329 | PyObject * obj0 = 0 ; | |
21330 | PyObject * obj1 = 0 ; | |
21331 | char *kwnames[] = { | |
21332 | (char *) "self",(char *) "other", NULL | |
21333 | }; | |
21334 | ||
21335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21337 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21338 | if (arg2 == NULL) { | |
21339 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21340 | } | |
21341 | { | |
21342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21343 | { | |
21344 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
21345 | result = (wxDateSpan *) &_result_ref; | |
21346 | } | |
21347 | ||
21348 | wxPyEndAllowThreads(__tstate); | |
21349 | if (PyErr_Occurred()) SWIG_fail; | |
21350 | } | |
21351 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21352 | return resultobj; | |
21353 | fail: | |
21354 | return NULL; | |
21355 | } | |
21356 | ||
21357 | ||
21358 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21359 | PyObject *resultobj; | |
21360 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21361 | wxDateSpan *arg2 = 0 ; | |
21362 | wxDateSpan *result; | |
21363 | PyObject * obj0 = 0 ; | |
21364 | PyObject * obj1 = 0 ; | |
21365 | char *kwnames[] = { | |
21366 | (char *) "self",(char *) "other", NULL | |
21367 | }; | |
21368 | ||
21369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21371 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21372 | if (arg2 == NULL) { | |
21373 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21374 | } | |
21375 | { | |
21376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21377 | { | |
21378 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
21379 | result = (wxDateSpan *) &_result_ref; | |
21380 | } | |
21381 | ||
21382 | wxPyEndAllowThreads(__tstate); | |
21383 | if (PyErr_Occurred()) SWIG_fail; | |
21384 | } | |
21385 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21386 | return resultobj; | |
21387 | fail: | |
21388 | return NULL; | |
21389 | } | |
21390 | ||
21391 | ||
21392 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21393 | PyObject *resultobj; | |
21394 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21395 | wxDateSpan *result; | |
21396 | PyObject * obj0 = 0 ; | |
21397 | char *kwnames[] = { | |
21398 | (char *) "self", NULL | |
21399 | }; | |
21400 | ||
21401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
21402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21403 | { | |
21404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21405 | { | |
21406 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
21407 | result = (wxDateSpan *) &_result_ref; | |
21408 | } | |
21409 | ||
21410 | wxPyEndAllowThreads(__tstate); | |
21411 | if (PyErr_Occurred()) SWIG_fail; | |
21412 | } | |
21413 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21414 | return resultobj; | |
21415 | fail: | |
21416 | return NULL; | |
21417 | } | |
21418 | ||
21419 | ||
21420 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21421 | PyObject *resultobj; | |
21422 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21423 | int arg2 ; | |
21424 | wxDateSpan *result; | |
21425 | PyObject * obj0 = 0 ; | |
21426 | char *kwnames[] = { | |
21427 | (char *) "self",(char *) "factor", NULL | |
21428 | }; | |
21429 | ||
21430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
21431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21432 | { | |
21433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21434 | { | |
21435 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
21436 | result = (wxDateSpan *) &_result_ref; | |
21437 | } | |
21438 | ||
21439 | wxPyEndAllowThreads(__tstate); | |
21440 | if (PyErr_Occurred()) SWIG_fail; | |
21441 | } | |
21442 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21443 | return resultobj; | |
21444 | fail: | |
21445 | return NULL; | |
21446 | } | |
21447 | ||
21448 | ||
21449 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21450 | PyObject *resultobj; | |
21451 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21452 | wxDateSpan *arg2 = 0 ; | |
21453 | wxDateSpan *result; | |
21454 | PyObject * obj0 = 0 ; | |
21455 | PyObject * obj1 = 0 ; | |
21456 | char *kwnames[] = { | |
21457 | (char *) "self",(char *) "other", NULL | |
21458 | }; | |
21459 | ||
21460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21462 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21463 | if (arg2 == NULL) { | |
21464 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21465 | } | |
21466 | { | |
21467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21468 | { | |
21469 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
21470 | result = (wxDateSpan *) &_result_ref; | |
21471 | } | |
21472 | ||
21473 | wxPyEndAllowThreads(__tstate); | |
21474 | if (PyErr_Occurred()) SWIG_fail; | |
21475 | } | |
21476 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21477 | return resultobj; | |
21478 | fail: | |
21479 | return NULL; | |
21480 | } | |
21481 | ||
21482 | ||
21483 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21484 | PyObject *resultobj; | |
21485 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21486 | wxDateSpan *arg2 = 0 ; | |
21487 | wxDateSpan *result; | |
21488 | PyObject * obj0 = 0 ; | |
21489 | PyObject * obj1 = 0 ; | |
21490 | char *kwnames[] = { | |
21491 | (char *) "self",(char *) "other", NULL | |
21492 | }; | |
21493 | ||
21494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21496 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21497 | if (arg2 == NULL) { | |
21498 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21499 | } | |
21500 | { | |
21501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21502 | { | |
21503 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
21504 | result = (wxDateSpan *) &_result_ref; | |
21505 | } | |
21506 | ||
21507 | wxPyEndAllowThreads(__tstate); | |
21508 | if (PyErr_Occurred()) SWIG_fail; | |
21509 | } | |
21510 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21511 | return resultobj; | |
21512 | fail: | |
21513 | return NULL; | |
21514 | } | |
21515 | ||
21516 | ||
21517 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21518 | PyObject *resultobj; | |
21519 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21520 | wxDateSpan *result; | |
21521 | PyObject * obj0 = 0 ; | |
21522 | char *kwnames[] = { | |
21523 | (char *) "self", NULL | |
21524 | }; | |
21525 | ||
21526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
21527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21528 | { | |
21529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21530 | { | |
21531 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
21532 | result = (wxDateSpan *) &_result_ref; | |
21533 | } | |
21534 | ||
21535 | wxPyEndAllowThreads(__tstate); | |
21536 | if (PyErr_Occurred()) SWIG_fail; | |
21537 | } | |
21538 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21539 | return resultobj; | |
21540 | fail: | |
21541 | return NULL; | |
21542 | } | |
21543 | ||
21544 | ||
21545 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21546 | PyObject *resultobj; | |
21547 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21548 | int arg2 ; | |
21549 | wxDateSpan *result; | |
21550 | PyObject * obj0 = 0 ; | |
21551 | char *kwnames[] = { | |
21552 | (char *) "self",(char *) "factor", NULL | |
21553 | }; | |
21554 | ||
21555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
21556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21557 | { | |
21558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21559 | { | |
21560 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
21561 | result = (wxDateSpan *) &_result_ref; | |
21562 | } | |
21563 | ||
21564 | wxPyEndAllowThreads(__tstate); | |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
21566 | } | |
21567 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21568 | return resultobj; | |
21569 | fail: | |
21570 | return NULL; | |
21571 | } | |
21572 | ||
21573 | ||
21574 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21575 | PyObject *resultobj; | |
21576 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21577 | wxDateSpan *arg2 = 0 ; | |
21578 | wxDateSpan result; | |
21579 | PyObject * obj0 = 0 ; | |
21580 | PyObject * obj1 = 0 ; | |
21581 | char *kwnames[] = { | |
21582 | (char *) "self",(char *) "other", NULL | |
21583 | }; | |
21584 | ||
21585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21587 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21588 | if (arg2 == NULL) { | |
21589 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21590 | } | |
21591 | { | |
21592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21593 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
21594 | ||
21595 | wxPyEndAllowThreads(__tstate); | |
21596 | if (PyErr_Occurred()) SWIG_fail; | |
21597 | } | |
21598 | { | |
21599 | wxDateSpan * resultptr; | |
21600 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21601 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21602 | } | |
21603 | return resultobj; | |
21604 | fail: | |
21605 | return NULL; | |
21606 | } | |
21607 | ||
21608 | ||
21609 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21610 | PyObject *resultobj; | |
21611 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21612 | wxDateSpan *arg2 = 0 ; | |
21613 | wxDateSpan result; | |
21614 | PyObject * obj0 = 0 ; | |
21615 | PyObject * obj1 = 0 ; | |
21616 | char *kwnames[] = { | |
21617 | (char *) "self",(char *) "other", NULL | |
21618 | }; | |
21619 | ||
21620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21622 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21623 | if (arg2 == NULL) { | |
21624 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21625 | } | |
21626 | { | |
21627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21628 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
21629 | ||
21630 | wxPyEndAllowThreads(__tstate); | |
21631 | if (PyErr_Occurred()) SWIG_fail; | |
21632 | } | |
21633 | { | |
21634 | wxDateSpan * resultptr; | |
21635 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21636 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21637 | } | |
21638 | return resultobj; | |
21639 | fail: | |
21640 | return NULL; | |
21641 | } | |
21642 | ||
21643 | ||
21644 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21645 | PyObject *resultobj; | |
21646 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21647 | int arg2 ; | |
21648 | wxDateSpan result; | |
21649 | PyObject * obj0 = 0 ; | |
21650 | char *kwnames[] = { | |
21651 | (char *) "self",(char *) "n", NULL | |
21652 | }; | |
21653 | ||
21654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
21655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21656 | { | |
21657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21658 | result = wxDateSpan___mul__(arg1,arg2); | |
21659 | ||
21660 | wxPyEndAllowThreads(__tstate); | |
21661 | if (PyErr_Occurred()) SWIG_fail; | |
21662 | } | |
21663 | { | |
21664 | wxDateSpan * resultptr; | |
21665 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21666 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21667 | } | |
21668 | return resultobj; | |
21669 | fail: | |
21670 | return NULL; | |
21671 | } | |
21672 | ||
21673 | ||
21674 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21675 | PyObject *resultobj; | |
21676 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21677 | int arg2 ; | |
21678 | wxDateSpan result; | |
21679 | PyObject * obj0 = 0 ; | |
21680 | char *kwnames[] = { | |
21681 | (char *) "self",(char *) "n", NULL | |
21682 | }; | |
21683 | ||
21684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
21685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21686 | { | |
21687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21688 | result = wxDateSpan___rmul__(arg1,arg2); | |
21689 | ||
21690 | wxPyEndAllowThreads(__tstate); | |
21691 | if (PyErr_Occurred()) SWIG_fail; | |
21692 | } | |
21693 | { | |
21694 | wxDateSpan * resultptr; | |
21695 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21696 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21697 | } | |
21698 | return resultobj; | |
21699 | fail: | |
21700 | return NULL; | |
21701 | } | |
21702 | ||
21703 | ||
21704 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21705 | PyObject *resultobj; | |
21706 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21707 | wxDateSpan *arg2 = 0 ; | |
21708 | bool result; | |
21709 | PyObject * obj0 = 0 ; | |
21710 | PyObject * obj1 = 0 ; | |
21711 | char *kwnames[] = { | |
21712 | (char *) "self",(char *) "other", NULL | |
21713 | }; | |
21714 | ||
21715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
21716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21717 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21718 | if (arg2 == NULL) { | |
21719 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21720 | } | |
21721 | { | |
21722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21723 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2); | |
21724 | ||
21725 | wxPyEndAllowThreads(__tstate); | |
21726 | if (PyErr_Occurred()) SWIG_fail; | |
21727 | } | |
21728 | resultobj = PyInt_FromLong((long)result); | |
21729 | return resultobj; | |
21730 | fail: | |
21731 | return NULL; | |
21732 | } | |
21733 | ||
21734 | ||
21735 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21736 | PyObject *resultobj; | |
21737 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21738 | wxDateSpan *arg2 = 0 ; | |
21739 | bool result; | |
21740 | PyObject * obj0 = 0 ; | |
21741 | PyObject * obj1 = 0 ; | |
21742 | char *kwnames[] = { | |
21743 | (char *) "self",(char *) "other", NULL | |
21744 | }; | |
21745 | ||
21746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
21747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21748 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21749 | if (arg2 == NULL) { | |
21750 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21751 | } | |
21752 | { | |
21753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21754 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2); | |
21755 | ||
21756 | wxPyEndAllowThreads(__tstate); | |
21757 | if (PyErr_Occurred()) SWIG_fail; | |
21758 | } | |
21759 | resultobj = PyInt_FromLong((long)result); | |
21760 | return resultobj; | |
21761 | fail: | |
21762 | return NULL; | |
21763 | } | |
21764 | ||
21765 | ||
21766 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
21767 | PyObject *obj; | |
21768 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21769 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
21770 | Py_INCREF(obj); | |
21771 | return Py_BuildValue((char *)""); | |
21772 | } | |
21773 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21774 | PyObject *resultobj; | |
21775 | long result; | |
21776 | char *kwnames[] = { | |
21777 | NULL | |
21778 | }; | |
21779 | ||
21780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
21781 | { | |
21782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21783 | result = (long)wxGetLocalTime(); | |
21784 | ||
21785 | wxPyEndAllowThreads(__tstate); | |
21786 | if (PyErr_Occurred()) SWIG_fail; | |
21787 | } | |
21788 | resultobj = PyInt_FromLong((long)result); | |
21789 | return resultobj; | |
21790 | fail: | |
21791 | return NULL; | |
21792 | } | |
21793 | ||
21794 | ||
21795 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21796 | PyObject *resultobj; | |
21797 | long result; | |
21798 | char *kwnames[] = { | |
21799 | NULL | |
21800 | }; | |
21801 | ||
21802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
21803 | { | |
21804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21805 | result = (long)wxGetUTCTime(); | |
21806 | ||
21807 | wxPyEndAllowThreads(__tstate); | |
21808 | if (PyErr_Occurred()) SWIG_fail; | |
21809 | } | |
21810 | resultobj = PyInt_FromLong((long)result); | |
21811 | return resultobj; | |
21812 | fail: | |
21813 | return NULL; | |
21814 | } | |
21815 | ||
21816 | ||
21817 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21818 | PyObject *resultobj; | |
21819 | long result; | |
21820 | char *kwnames[] = { | |
21821 | NULL | |
21822 | }; | |
21823 | ||
21824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
21825 | { | |
21826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21827 | result = (long)wxGetCurrentTime(); | |
21828 | ||
21829 | wxPyEndAllowThreads(__tstate); | |
21830 | if (PyErr_Occurred()) SWIG_fail; | |
21831 | } | |
21832 | resultobj = PyInt_FromLong((long)result); | |
21833 | return resultobj; | |
21834 | fail: | |
21835 | return NULL; | |
21836 | } | |
21837 | ||
21838 | ||
21839 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21840 | PyObject *resultobj; | |
21841 | wxLongLong result; | |
21842 | char *kwnames[] = { | |
21843 | NULL | |
21844 | }; | |
21845 | ||
21846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
21847 | { | |
21848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21849 | result = wxGetLocalTimeMillis(); | |
21850 | ||
21851 | wxPyEndAllowThreads(__tstate); | |
21852 | if (PyErr_Occurred()) SWIG_fail; | |
21853 | } | |
21854 | { | |
21855 | PyObject *hi, *lo, *shifter, *shifted; | |
21856 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
21857 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
21858 | shifter = PyLong_FromLong(32); | |
21859 | shifted = PyNumber_Lshift(hi, shifter); | |
21860 | resultobj = PyNumber_Or(shifted, lo); | |
21861 | Py_DECREF(hi); | |
21862 | Py_DECREF(lo); | |
21863 | Py_DECREF(shifter); | |
21864 | Py_DECREF(shifted); | |
21865 | } | |
21866 | return resultobj; | |
21867 | fail: | |
21868 | return NULL; | |
21869 | } | |
21870 | ||
21871 | ||
21872 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21873 | PyObject *resultobj; | |
21874 | int arg1 ; | |
21875 | wxDataFormat *result; | |
21876 | char *kwnames[] = { | |
21877 | (char *) "type", NULL | |
21878 | }; | |
21879 | ||
21880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_DataFormat",kwnames,&arg1)) goto fail; | |
21881 | { | |
21882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21883 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
21884 | ||
21885 | wxPyEndAllowThreads(__tstate); | |
21886 | if (PyErr_Occurred()) SWIG_fail; | |
21887 | } | |
21888 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21889 | return resultobj; | |
21890 | fail: | |
21891 | return NULL; | |
21892 | } | |
21893 | ||
21894 | ||
21895 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21896 | PyObject *resultobj; | |
21897 | wxString *arg1 = 0 ; | |
21898 | wxDataFormat *result; | |
e811c8ce | 21899 | bool temp1 = False ; |
d14a1e28 RD |
21900 | PyObject * obj0 = 0 ; |
21901 | char *kwnames[] = { | |
21902 | (char *) "format", NULL | |
21903 | }; | |
21904 | ||
21905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
21906 | { | |
21907 | arg1 = wxString_in_helper(obj0); | |
21908 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 21909 | temp1 = True; |
d14a1e28 RD |
21910 | } |
21911 | { | |
21912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21913 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
21914 | ||
21915 | wxPyEndAllowThreads(__tstate); | |
21916 | if (PyErr_Occurred()) SWIG_fail; | |
21917 | } | |
21918 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21919 | { | |
21920 | if (temp1) | |
21921 | delete arg1; | |
21922 | } | |
21923 | return resultobj; | |
21924 | fail: | |
21925 | { | |
21926 | if (temp1) | |
21927 | delete arg1; | |
21928 | } | |
21929 | return NULL; | |
21930 | } | |
21931 | ||
21932 | ||
21933 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21934 | PyObject *resultobj; | |
21935 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21936 | PyObject * obj0 = 0 ; | |
21937 | char *kwnames[] = { | |
21938 | (char *) "self", NULL | |
21939 | }; | |
21940 | ||
21941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
21942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21943 | { | |
21944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21945 | delete arg1; | |
21946 | ||
21947 | wxPyEndAllowThreads(__tstate); | |
21948 | if (PyErr_Occurred()) SWIG_fail; | |
21949 | } | |
21950 | Py_INCREF(Py_None); resultobj = Py_None; | |
21951 | return resultobj; | |
21952 | fail: | |
21953 | return NULL; | |
21954 | } | |
21955 | ||
21956 | ||
21957 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
21958 | PyObject *resultobj; | |
21959 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21960 | int arg2 ; | |
21961 | bool result; | |
21962 | PyObject * obj0 = 0 ; | |
21963 | ||
21964 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___eq__",&obj0,&arg2)) goto fail; | |
21965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21966 | { | |
21967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 21968 | result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2); |
d14a1e28 RD |
21969 | |
21970 | wxPyEndAllowThreads(__tstate); | |
21971 | if (PyErr_Occurred()) SWIG_fail; | |
21972 | } | |
21973 | resultobj = PyInt_FromLong((long)result); | |
21974 | return resultobj; | |
21975 | fail: | |
21976 | return NULL; | |
21977 | } | |
21978 | ||
21979 | ||
21980 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
21981 | PyObject *resultobj; | |
21982 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21983 | int arg2 ; | |
21984 | bool result; | |
21985 | PyObject * obj0 = 0 ; | |
21986 | ||
21987 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___ne__",&obj0,&arg2)) goto fail; | |
21988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21989 | { | |
21990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 21991 | result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2); |
d14a1e28 RD |
21992 | |
21993 | wxPyEndAllowThreads(__tstate); | |
21994 | if (PyErr_Occurred()) SWIG_fail; | |
21995 | } | |
21996 | resultobj = PyInt_FromLong((long)result); | |
21997 | return resultobj; | |
21998 | fail: | |
21999 | return NULL; | |
22000 | } | |
22001 | ||
22002 | ||
22003 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
22004 | PyObject *resultobj; | |
22005 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
22006 | wxDataFormat *arg2 = 0 ; | |
22007 | bool result; | |
22008 | PyObject * obj0 = 0 ; | |
22009 | PyObject * obj1 = 0 ; | |
22010 | ||
22011 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
22012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22013 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22014 | if (arg2 == NULL) { | |
22015 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22016 | } | |
22017 | { | |
22018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22019 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
22020 | ||
22021 | wxPyEndAllowThreads(__tstate); | |
22022 | if (PyErr_Occurred()) SWIG_fail; | |
22023 | } | |
22024 | resultobj = PyInt_FromLong((long)result); | |
22025 | return resultobj; | |
22026 | fail: | |
22027 | return NULL; | |
22028 | } | |
22029 | ||
22030 | ||
22031 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
22032 | int argc; | |
22033 | PyObject *argv[3]; | |
22034 | int ii; | |
22035 | ||
22036 | argc = PyObject_Length(args); | |
22037 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
22038 | argv[ii] = PyTuple_GetItem(args,ii); | |
22039 | } | |
22040 | if (argc == 2) { | |
22041 | int _v; | |
22042 | { | |
22043 | void *ptr; | |
22044 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
22045 | _v = 0; | |
22046 | PyErr_Clear(); | |
22047 | } else { | |
22048 | _v = 1; | |
22049 | } | |
22050 | } | |
22051 | if (_v) { | |
22052 | { | |
22053 | void *ptr; | |
22054 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
22055 | _v = 0; | |
22056 | PyErr_Clear(); | |
22057 | } else { | |
22058 | _v = 1; | |
22059 | } | |
22060 | } | |
22061 | if (_v) { | |
22062 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
22063 | } | |
22064 | } | |
22065 | } | |
22066 | if (argc == 2) { | |
22067 | int _v; | |
22068 | { | |
22069 | void *ptr; | |
22070 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
22071 | _v = 0; | |
22072 | PyErr_Clear(); | |
22073 | } else { | |
22074 | _v = 1; | |
22075 | } | |
22076 | } | |
22077 | if (_v) { | |
22078 | { | |
a41e16b6 RD |
22079 | SPyObj_AsInt(argv[1]); |
22080 | if (PyErr_Occurred()) { | |
22081 | _v = 0; | |
22082 | PyErr_Clear(); | |
22083 | } else { | |
22084 | _v = 1; | |
22085 | } | |
d14a1e28 RD |
22086 | } |
22087 | if (_v) { | |
22088 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
22089 | } | |
22090 | } | |
22091 | } | |
22092 | ||
22093 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
22094 | return NULL; | |
22095 | } | |
22096 | ||
22097 | ||
22098 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
22099 | PyObject *resultobj; | |
22100 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
22101 | wxDataFormat *arg2 = 0 ; | |
22102 | bool result; | |
22103 | PyObject * obj0 = 0 ; | |
22104 | PyObject * obj1 = 0 ; | |
22105 | ||
22106 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
22107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22108 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22109 | if (arg2 == NULL) { | |
22110 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22111 | } | |
22112 | { | |
22113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22114 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
22115 | ||
22116 | wxPyEndAllowThreads(__tstate); | |
22117 | if (PyErr_Occurred()) SWIG_fail; | |
22118 | } | |
22119 | resultobj = PyInt_FromLong((long)result); | |
22120 | return resultobj; | |
22121 | fail: | |
22122 | return NULL; | |
22123 | } | |
22124 | ||
22125 | ||
22126 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
22127 | int argc; | |
22128 | PyObject *argv[3]; | |
22129 | int ii; | |
22130 | ||
22131 | argc = PyObject_Length(args); | |
22132 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
22133 | argv[ii] = PyTuple_GetItem(args,ii); | |
22134 | } | |
22135 | if (argc == 2) { | |
22136 | int _v; | |
22137 | { | |
22138 | void *ptr; | |
22139 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
22140 | _v = 0; | |
22141 | PyErr_Clear(); | |
22142 | } else { | |
22143 | _v = 1; | |
22144 | } | |
22145 | } | |
22146 | if (_v) { | |
22147 | { | |
22148 | void *ptr; | |
22149 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
22150 | _v = 0; | |
22151 | PyErr_Clear(); | |
22152 | } else { | |
22153 | _v = 1; | |
22154 | } | |
22155 | } | |
22156 | if (_v) { | |
22157 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
22158 | } | |
22159 | } | |
22160 | } | |
22161 | if (argc == 2) { | |
22162 | int _v; | |
22163 | { | |
22164 | void *ptr; | |
22165 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
22166 | _v = 0; | |
22167 | PyErr_Clear(); | |
22168 | } else { | |
22169 | _v = 1; | |
22170 | } | |
22171 | } | |
22172 | if (_v) { | |
22173 | { | |
a41e16b6 RD |
22174 | SPyObj_AsInt(argv[1]); |
22175 | if (PyErr_Occurred()) { | |
22176 | _v = 0; | |
22177 | PyErr_Clear(); | |
22178 | } else { | |
22179 | _v = 1; | |
22180 | } | |
d14a1e28 RD |
22181 | } |
22182 | if (_v) { | |
22183 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
22184 | } | |
22185 | } | |
22186 | } | |
22187 | ||
22188 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
22189 | return NULL; | |
22190 | } | |
22191 | ||
22192 | ||
22193 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22194 | PyObject *resultobj; | |
22195 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
22196 | int arg2 ; | |
22197 | PyObject * obj0 = 0 ; | |
22198 | char *kwnames[] = { | |
22199 | (char *) "self",(char *) "format", NULL | |
22200 | }; | |
22201 | ||
22202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DataFormat_SetType",kwnames,&obj0,&arg2)) goto fail; | |
22203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22204 | { | |
22205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22206 | (arg1)->SetType((wxDataFormatId )arg2); | |
22207 | ||
22208 | wxPyEndAllowThreads(__tstate); | |
22209 | if (PyErr_Occurred()) SWIG_fail; | |
22210 | } | |
22211 | Py_INCREF(Py_None); resultobj = Py_None; | |
22212 | return resultobj; | |
22213 | fail: | |
22214 | return NULL; | |
22215 | } | |
22216 | ||
22217 | ||
22218 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22219 | PyObject *resultobj; | |
22220 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
22221 | int result; | |
22222 | PyObject * obj0 = 0 ; | |
22223 | char *kwnames[] = { | |
22224 | (char *) "self", NULL | |
22225 | }; | |
22226 | ||
22227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
22228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22229 | { | |
22230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22231 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
22232 | ||
22233 | wxPyEndAllowThreads(__tstate); | |
22234 | if (PyErr_Occurred()) SWIG_fail; | |
22235 | } | |
22236 | resultobj = PyInt_FromLong((long)result); | |
22237 | return resultobj; | |
22238 | fail: | |
22239 | return NULL; | |
22240 | } | |
22241 | ||
22242 | ||
22243 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22244 | PyObject *resultobj; | |
22245 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
22246 | wxString result; | |
22247 | PyObject * obj0 = 0 ; | |
22248 | char *kwnames[] = { | |
22249 | (char *) "self", NULL | |
22250 | }; | |
22251 | ||
22252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
22253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22254 | { | |
22255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22256 | result = ((wxDataFormat const *)arg1)->GetId(); | |
22257 | ||
22258 | wxPyEndAllowThreads(__tstate); | |
22259 | if (PyErr_Occurred()) SWIG_fail; | |
22260 | } | |
22261 | { | |
22262 | #if wxUSE_UNICODE | |
22263 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22264 | #else | |
22265 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22266 | #endif | |
22267 | } | |
22268 | return resultobj; | |
22269 | fail: | |
22270 | return NULL; | |
22271 | } | |
22272 | ||
22273 | ||
22274 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22275 | PyObject *resultobj; | |
22276 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
22277 | wxString *arg2 = 0 ; | |
e811c8ce | 22278 | bool temp2 = False ; |
d14a1e28 RD |
22279 | PyObject * obj0 = 0 ; |
22280 | PyObject * obj1 = 0 ; | |
22281 | char *kwnames[] = { | |
22282 | (char *) "self",(char *) "format", NULL | |
22283 | }; | |
22284 | ||
22285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22287 | { | |
22288 | arg2 = wxString_in_helper(obj1); | |
22289 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22290 | temp2 = True; |
d14a1e28 RD |
22291 | } |
22292 | { | |
22293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22294 | (arg1)->SetId((wxString const &)*arg2); | |
22295 | ||
22296 | wxPyEndAllowThreads(__tstate); | |
22297 | if (PyErr_Occurred()) SWIG_fail; | |
22298 | } | |
22299 | Py_INCREF(Py_None); resultobj = Py_None; | |
22300 | { | |
22301 | if (temp2) | |
22302 | delete arg2; | |
22303 | } | |
22304 | return resultobj; | |
22305 | fail: | |
22306 | { | |
22307 | if (temp2) | |
22308 | delete arg2; | |
22309 | } | |
22310 | return NULL; | |
22311 | } | |
22312 | ||
22313 | ||
22314 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
22315 | PyObject *obj; | |
22316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22317 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
22318 | Py_INCREF(obj); | |
22319 | return Py_BuildValue((char *)""); | |
22320 | } | |
22321 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
22322 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
22323 | return 1; | |
22324 | } | |
22325 | ||
22326 | ||
22327 | static PyObject *_wrap_FormatInvalid_get() { | |
22328 | PyObject *pyobj; | |
22329 | ||
22330 | pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0); | |
22331 | return pyobj; | |
22332 | } | |
22333 | ||
22334 | ||
22335 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22336 | PyObject *resultobj; | |
22337 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22338 | PyObject * obj0 = 0 ; | |
22339 | char *kwnames[] = { | |
22340 | (char *) "self", NULL | |
22341 | }; | |
22342 | ||
22343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
22344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22345 | { | |
22346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22347 | delete arg1; | |
22348 | ||
22349 | wxPyEndAllowThreads(__tstate); | |
22350 | if (PyErr_Occurred()) SWIG_fail; | |
22351 | } | |
22352 | Py_INCREF(Py_None); resultobj = Py_None; | |
22353 | return resultobj; | |
22354 | fail: | |
22355 | return NULL; | |
22356 | } | |
22357 | ||
22358 | ||
22359 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22360 | PyObject *resultobj; | |
22361 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22362 | int arg2 = (int) wxDataObject::Get ; | |
22363 | SwigValueWrapper< wxDataFormat > result; | |
22364 | PyObject * obj0 = 0 ; | |
22365 | char *kwnames[] = { | |
22366 | (char *) "self",(char *) "dir", NULL | |
22367 | }; | |
22368 | ||
22369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetPreferredFormat",kwnames,&obj0,&arg2)) goto fail; | |
22370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22371 | { | |
22372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22373 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
22374 | ||
22375 | wxPyEndAllowThreads(__tstate); | |
22376 | if (PyErr_Occurred()) SWIG_fail; | |
22377 | } | |
22378 | { | |
22379 | wxDataFormat * resultptr; | |
22380 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
22381 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1); | |
22382 | } | |
22383 | return resultobj; | |
22384 | fail: | |
22385 | return NULL; | |
22386 | } | |
22387 | ||
22388 | ||
22389 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22390 | PyObject *resultobj; | |
22391 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22392 | int arg2 = (int) wxDataObject::Get ; | |
22393 | size_t result; | |
22394 | PyObject * obj0 = 0 ; | |
22395 | char *kwnames[] = { | |
22396 | (char *) "self",(char *) "dir", NULL | |
22397 | }; | |
22398 | ||
22399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetFormatCount",kwnames,&obj0,&arg2)) goto fail; | |
22400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22401 | { | |
22402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22403 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
22404 | ||
22405 | wxPyEndAllowThreads(__tstate); | |
22406 | if (PyErr_Occurred()) SWIG_fail; | |
22407 | } | |
a41e16b6 | 22408 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
22409 | return resultobj; |
22410 | fail: | |
22411 | return NULL; | |
22412 | } | |
22413 | ||
22414 | ||
22415 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22416 | PyObject *resultobj; | |
22417 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22418 | wxDataFormat *arg2 = 0 ; | |
22419 | int arg3 = (int) wxDataObject::Get ; | |
22420 | bool result; | |
22421 | PyObject * obj0 = 0 ; | |
22422 | PyObject * obj1 = 0 ; | |
22423 | char *kwnames[] = { | |
22424 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
22425 | }; | |
22426 | ||
22427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_IsSupported",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22429 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22430 | if (arg2 == NULL) { | |
22431 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22432 | } | |
22433 | { | |
22434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22435 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
22436 | ||
22437 | wxPyEndAllowThreads(__tstate); | |
22438 | if (PyErr_Occurred()) SWIG_fail; | |
22439 | } | |
22440 | resultobj = PyInt_FromLong((long)result); | |
22441 | return resultobj; | |
22442 | fail: | |
22443 | return NULL; | |
22444 | } | |
22445 | ||
22446 | ||
22447 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22448 | PyObject *resultobj; | |
22449 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22450 | wxDataFormat *arg2 = 0 ; | |
22451 | size_t result; | |
22452 | PyObject * obj0 = 0 ; | |
22453 | PyObject * obj1 = 0 ; | |
22454 | char *kwnames[] = { | |
22455 | (char *) "self",(char *) "format", NULL | |
22456 | }; | |
22457 | ||
22458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
22459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22460 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22461 | if (arg2 == NULL) { | |
22462 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22463 | } | |
22464 | { | |
22465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22466 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
22467 | ||
22468 | wxPyEndAllowThreads(__tstate); | |
22469 | if (PyErr_Occurred()) SWIG_fail; | |
22470 | } | |
a41e16b6 | 22471 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
22472 | return resultobj; |
22473 | fail: | |
22474 | return NULL; | |
22475 | } | |
22476 | ||
22477 | ||
22478 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22479 | PyObject *resultobj; | |
22480 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22481 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
22482 | int arg3 = (int) wxDataObject::Get ; | |
22483 | PyObject * obj0 = 0 ; | |
22484 | PyObject * obj1 = 0 ; | |
22485 | char *kwnames[] = { | |
22486 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
22487 | }; | |
22488 | ||
22489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22491 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22492 | { | |
22493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22494 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
22495 | ||
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
22499 | Py_INCREF(Py_None); resultobj = Py_None; | |
22500 | return resultobj; | |
22501 | fail: | |
22502 | return NULL; | |
22503 | } | |
22504 | ||
22505 | ||
22506 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22507 | PyObject *resultobj; | |
22508 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22509 | wxDataFormat *arg2 = 0 ; | |
22510 | void *arg3 = (void *) 0 ; | |
22511 | bool result; | |
22512 | PyObject * obj0 = 0 ; | |
22513 | PyObject * obj1 = 0 ; | |
22514 | PyObject * obj2 = 0 ; | |
22515 | char *kwnames[] = { | |
22516 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
22517 | }; | |
22518 | ||
22519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22521 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22522 | if (arg2 == NULL) { | |
22523 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22524 | } | |
22525 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22526 | { | |
22527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22528 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
22529 | ||
22530 | wxPyEndAllowThreads(__tstate); | |
22531 | if (PyErr_Occurred()) SWIG_fail; | |
22532 | } | |
22533 | resultobj = PyInt_FromLong((long)result); | |
22534 | return resultobj; | |
22535 | fail: | |
22536 | return NULL; | |
22537 | } | |
22538 | ||
22539 | ||
22540 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22541 | PyObject *resultobj; | |
22542 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22543 | wxDataFormat *arg2 = 0 ; | |
22544 | size_t arg3 ; | |
22545 | void *arg4 = (void *) 0 ; | |
22546 | bool result; | |
22547 | PyObject * obj0 = 0 ; | |
22548 | PyObject * obj1 = 0 ; | |
22549 | PyObject * obj2 = 0 ; | |
22550 | PyObject * obj3 = 0 ; | |
22551 | char *kwnames[] = { | |
22552 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
22553 | }; | |
22554 | ||
22555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22557 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22558 | if (arg2 == NULL) { | |
22559 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22560 | } | |
a41e16b6 RD |
22561 | { |
22562 | arg3 = (size_t) SPyObj_AsUnsignedLong(obj2); | |
22563 | if (PyErr_Occurred()) SWIG_fail; | |
22564 | } | |
d14a1e28 RD |
22565 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22566 | { | |
22567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22568 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
22569 | ||
22570 | wxPyEndAllowThreads(__tstate); | |
22571 | if (PyErr_Occurred()) SWIG_fail; | |
22572 | } | |
22573 | resultobj = PyInt_FromLong((long)result); | |
22574 | return resultobj; | |
22575 | fail: | |
22576 | return NULL; | |
22577 | } | |
22578 | ||
22579 | ||
22580 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
22581 | PyObject *obj; | |
22582 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22583 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
22584 | Py_INCREF(obj); | |
22585 | return Py_BuildValue((char *)""); | |
22586 | } | |
22587 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22588 | PyObject *resultobj; | |
22589 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22590 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22591 | wxDataObjectSimple *result; | |
22592 | PyObject * obj0 = 0 ; | |
22593 | char *kwnames[] = { | |
22594 | (char *) "format", NULL | |
22595 | }; | |
22596 | ||
22597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
22598 | if (obj0) { | |
22599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22600 | if (arg1 == NULL) { | |
22601 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22602 | } | |
22603 | } | |
22604 | { | |
22605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22606 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
22607 | ||
22608 | wxPyEndAllowThreads(__tstate); | |
22609 | if (PyErr_Occurred()) SWIG_fail; | |
22610 | } | |
22611 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1); | |
22612 | return resultobj; | |
22613 | fail: | |
22614 | return NULL; | |
22615 | } | |
22616 | ||
22617 | ||
22618 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22619 | PyObject *resultobj; | |
22620 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22621 | wxDataFormat *result; | |
22622 | PyObject * obj0 = 0 ; | |
22623 | char *kwnames[] = { | |
22624 | (char *) "self", NULL | |
22625 | }; | |
22626 | ||
22627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
22628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22629 | { | |
22630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22631 | { | |
22632 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
22633 | result = (wxDataFormat *) &_result_ref; | |
22634 | } | |
22635 | ||
22636 | wxPyEndAllowThreads(__tstate); | |
22637 | if (PyErr_Occurred()) SWIG_fail; | |
22638 | } | |
22639 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0); | |
22640 | return resultobj; | |
22641 | fail: | |
22642 | return NULL; | |
22643 | } | |
22644 | ||
22645 | ||
22646 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22647 | PyObject *resultobj; | |
22648 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22649 | wxDataFormat *arg2 = 0 ; | |
22650 | PyObject * obj0 = 0 ; | |
22651 | PyObject * obj1 = 0 ; | |
22652 | char *kwnames[] = { | |
22653 | (char *) "self",(char *) "format", NULL | |
22654 | }; | |
22655 | ||
22656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
22657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22658 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22659 | if (arg2 == NULL) { | |
22660 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22661 | } | |
22662 | { | |
22663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22664 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
22665 | ||
22666 | wxPyEndAllowThreads(__tstate); | |
22667 | if (PyErr_Occurred()) SWIG_fail; | |
22668 | } | |
22669 | Py_INCREF(Py_None); resultobj = Py_None; | |
22670 | return resultobj; | |
22671 | fail: | |
22672 | return NULL; | |
22673 | } | |
22674 | ||
22675 | ||
22676 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22677 | PyObject *obj; | |
22678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22679 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
22680 | Py_INCREF(obj); | |
22681 | return Py_BuildValue((char *)""); | |
22682 | } | |
22683 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22684 | PyObject *resultobj; | |
22685 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22686 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22687 | wxPyDataObjectSimple *result; | |
22688 | PyObject * obj0 = 0 ; | |
22689 | char *kwnames[] = { | |
22690 | (char *) "format", NULL | |
22691 | }; | |
22692 | ||
22693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
22694 | if (obj0) { | |
22695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22696 | if (arg1 == NULL) { | |
22697 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22698 | } | |
22699 | } | |
22700 | { | |
22701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22702 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
22703 | ||
22704 | wxPyEndAllowThreads(__tstate); | |
22705 | if (PyErr_Occurred()) SWIG_fail; | |
22706 | } | |
22707 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
22708 | return resultobj; | |
22709 | fail: | |
22710 | return NULL; | |
22711 | } | |
22712 | ||
22713 | ||
22714 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22715 | PyObject *resultobj; | |
22716 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
22717 | PyObject *arg2 = (PyObject *) 0 ; | |
22718 | PyObject *arg3 = (PyObject *) 0 ; | |
22719 | PyObject * obj0 = 0 ; | |
22720 | PyObject * obj1 = 0 ; | |
22721 | PyObject * obj2 = 0 ; | |
22722 | char *kwnames[] = { | |
22723 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22724 | }; | |
22725 | ||
22726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22728 | arg2 = obj1; | |
22729 | arg3 = obj2; | |
22730 | { | |
22731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22732 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22733 | ||
22734 | wxPyEndAllowThreads(__tstate); | |
22735 | if (PyErr_Occurred()) SWIG_fail; | |
22736 | } | |
22737 | Py_INCREF(Py_None); resultobj = Py_None; | |
22738 | return resultobj; | |
22739 | fail: | |
22740 | return NULL; | |
22741 | } | |
22742 | ||
22743 | ||
22744 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22745 | PyObject *obj; | |
22746 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22747 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
22748 | Py_INCREF(obj); | |
22749 | return Py_BuildValue((char *)""); | |
22750 | } | |
22751 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22752 | PyObject *resultobj; | |
22753 | wxDataObjectComposite *result; | |
22754 | char *kwnames[] = { | |
22755 | NULL | |
22756 | }; | |
22757 | ||
22758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
22759 | { | |
22760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22761 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
22762 | ||
22763 | wxPyEndAllowThreads(__tstate); | |
22764 | if (PyErr_Occurred()) SWIG_fail; | |
22765 | } | |
22766 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1); | |
22767 | return resultobj; | |
22768 | fail: | |
22769 | return NULL; | |
22770 | } | |
22771 | ||
22772 | ||
22773 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22774 | PyObject *resultobj; | |
22775 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
22776 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
e811c8ce | 22777 | int arg3 = (int) False ; |
d14a1e28 RD |
22778 | PyObject * obj0 = 0 ; |
22779 | PyObject * obj1 = 0 ; | |
22780 | char *kwnames[] = { | |
22781 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
22782 | }; | |
22783 | ||
22784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObjectComposite_Add",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22786 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22787 | { | |
22788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22789 | (arg1)->Add(arg2,arg3); | |
22790 | ||
22791 | wxPyEndAllowThreads(__tstate); | |
22792 | if (PyErr_Occurred()) SWIG_fail; | |
22793 | } | |
22794 | Py_INCREF(Py_None); resultobj = Py_None; | |
22795 | return resultobj; | |
22796 | fail: | |
22797 | return NULL; | |
22798 | } | |
22799 | ||
22800 | ||
22801 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
22802 | PyObject *obj; | |
22803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22804 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
22805 | Py_INCREF(obj); | |
22806 | return Py_BuildValue((char *)""); | |
22807 | } | |
22808 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22809 | PyObject *resultobj; | |
22810 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22811 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22812 | wxTextDataObject *result; | |
e811c8ce | 22813 | bool temp1 = False ; |
d14a1e28 RD |
22814 | PyObject * obj0 = 0 ; |
22815 | char *kwnames[] = { | |
22816 | (char *) "text", NULL | |
22817 | }; | |
22818 | ||
22819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
22820 | if (obj0) { | |
22821 | { | |
22822 | arg1 = wxString_in_helper(obj0); | |
22823 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 22824 | temp1 = True; |
d14a1e28 RD |
22825 | } |
22826 | } | |
22827 | { | |
22828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22829 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
22830 | ||
22831 | wxPyEndAllowThreads(__tstate); | |
22832 | if (PyErr_Occurred()) SWIG_fail; | |
22833 | } | |
22834 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1); | |
22835 | { | |
22836 | if (temp1) | |
22837 | delete arg1; | |
22838 | } | |
22839 | return resultobj; | |
22840 | fail: | |
22841 | { | |
22842 | if (temp1) | |
22843 | delete arg1; | |
22844 | } | |
22845 | return NULL; | |
22846 | } | |
22847 | ||
22848 | ||
22849 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22850 | PyObject *resultobj; | |
22851 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22852 | size_t result; | |
22853 | PyObject * obj0 = 0 ; | |
22854 | char *kwnames[] = { | |
22855 | (char *) "self", NULL | |
22856 | }; | |
22857 | ||
22858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
22859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22860 | { | |
22861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22862 | result = (size_t)(arg1)->GetTextLength(); | |
22863 | ||
22864 | wxPyEndAllowThreads(__tstate); | |
22865 | if (PyErr_Occurred()) SWIG_fail; | |
22866 | } | |
a41e16b6 | 22867 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
22868 | return resultobj; |
22869 | fail: | |
22870 | return NULL; | |
22871 | } | |
22872 | ||
22873 | ||
22874 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22875 | PyObject *resultobj; | |
22876 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22877 | wxString result; | |
22878 | PyObject * obj0 = 0 ; | |
22879 | char *kwnames[] = { | |
22880 | (char *) "self", NULL | |
22881 | }; | |
22882 | ||
22883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
22884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22885 | { | |
22886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22887 | result = (arg1)->GetText(); | |
22888 | ||
22889 | wxPyEndAllowThreads(__tstate); | |
22890 | if (PyErr_Occurred()) SWIG_fail; | |
22891 | } | |
22892 | { | |
22893 | #if wxUSE_UNICODE | |
22894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22895 | #else | |
22896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22897 | #endif | |
22898 | } | |
22899 | return resultobj; | |
22900 | fail: | |
22901 | return NULL; | |
22902 | } | |
22903 | ||
22904 | ||
22905 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22906 | PyObject *resultobj; | |
22907 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22908 | wxString *arg2 = 0 ; | |
e811c8ce | 22909 | bool temp2 = False ; |
d14a1e28 RD |
22910 | PyObject * obj0 = 0 ; |
22911 | PyObject * obj1 = 0 ; | |
22912 | char *kwnames[] = { | |
22913 | (char *) "self",(char *) "text", NULL | |
22914 | }; | |
22915 | ||
22916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
22917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22918 | { | |
22919 | arg2 = wxString_in_helper(obj1); | |
22920 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22921 | temp2 = True; |
d14a1e28 RD |
22922 | } |
22923 | { | |
22924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22925 | (arg1)->SetText((wxString const &)*arg2); | |
22926 | ||
22927 | wxPyEndAllowThreads(__tstate); | |
22928 | if (PyErr_Occurred()) SWIG_fail; | |
22929 | } | |
22930 | Py_INCREF(Py_None); resultobj = Py_None; | |
22931 | { | |
22932 | if (temp2) | |
22933 | delete arg2; | |
22934 | } | |
22935 | return resultobj; | |
22936 | fail: | |
22937 | { | |
22938 | if (temp2) | |
22939 | delete arg2; | |
22940 | } | |
22941 | return NULL; | |
22942 | } | |
22943 | ||
22944 | ||
22945 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22946 | PyObject *obj; | |
22947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22948 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
22949 | Py_INCREF(obj); | |
22950 | return Py_BuildValue((char *)""); | |
22951 | } | |
22952 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22953 | PyObject *resultobj; | |
22954 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22955 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22956 | wxPyTextDataObject *result; | |
e811c8ce | 22957 | bool temp1 = False ; |
d14a1e28 RD |
22958 | PyObject * obj0 = 0 ; |
22959 | char *kwnames[] = { | |
22960 | (char *) "text", NULL | |
22961 | }; | |
22962 | ||
22963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
22964 | if (obj0) { | |
22965 | { | |
22966 | arg1 = wxString_in_helper(obj0); | |
22967 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 22968 | temp1 = True; |
d14a1e28 RD |
22969 | } |
22970 | } | |
22971 | { | |
22972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22973 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
22974 | ||
22975 | wxPyEndAllowThreads(__tstate); | |
22976 | if (PyErr_Occurred()) SWIG_fail; | |
22977 | } | |
22978 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1); | |
22979 | { | |
22980 | if (temp1) | |
22981 | delete arg1; | |
22982 | } | |
22983 | return resultobj; | |
22984 | fail: | |
22985 | { | |
22986 | if (temp1) | |
22987 | delete arg1; | |
22988 | } | |
22989 | return NULL; | |
22990 | } | |
22991 | ||
22992 | ||
22993 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22994 | PyObject *resultobj; | |
22995 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
22996 | PyObject *arg2 = (PyObject *) 0 ; | |
22997 | PyObject *arg3 = (PyObject *) 0 ; | |
22998 | PyObject * obj0 = 0 ; | |
22999 | PyObject * obj1 = 0 ; | |
23000 | PyObject * obj2 = 0 ; | |
23001 | char *kwnames[] = { | |
23002 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23003 | }; | |
23004 | ||
23005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23007 | arg2 = obj1; | |
23008 | arg3 = obj2; | |
23009 | { | |
23010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23011 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23012 | ||
23013 | wxPyEndAllowThreads(__tstate); | |
23014 | if (PyErr_Occurred()) SWIG_fail; | |
23015 | } | |
23016 | Py_INCREF(Py_None); resultobj = Py_None; | |
23017 | return resultobj; | |
23018 | fail: | |
23019 | return NULL; | |
23020 | } | |
23021 | ||
23022 | ||
23023 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
23024 | PyObject *obj; | |
23025 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23026 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
23027 | Py_INCREF(obj); | |
23028 | return Py_BuildValue((char *)""); | |
23029 | } | |
23030 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23031 | PyObject *resultobj; | |
23032 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
23033 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
23034 | wxBitmapDataObject *result; | |
23035 | PyObject * obj0 = 0 ; | |
23036 | char *kwnames[] = { | |
23037 | (char *) "bitmap", NULL | |
23038 | }; | |
23039 | ||
23040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
23041 | if (obj0) { | |
23042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23043 | if (arg1 == NULL) { | |
23044 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23045 | } | |
23046 | } | |
23047 | { | |
23048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23049 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
23050 | ||
23051 | wxPyEndAllowThreads(__tstate); | |
23052 | if (PyErr_Occurred()) SWIG_fail; | |
23053 | } | |
23054 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1); | |
23055 | return resultobj; | |
23056 | fail: | |
23057 | return NULL; | |
23058 | } | |
23059 | ||
23060 | ||
23061 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23062 | PyObject *resultobj; | |
23063 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
23064 | wxBitmap result; | |
23065 | PyObject * obj0 = 0 ; | |
23066 | char *kwnames[] = { | |
23067 | (char *) "self", NULL | |
23068 | }; | |
23069 | ||
23070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
23071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23072 | { | |
23073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23074 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
23075 | ||
23076 | wxPyEndAllowThreads(__tstate); | |
23077 | if (PyErr_Occurred()) SWIG_fail; | |
23078 | } | |
23079 | { | |
23080 | wxBitmap * resultptr; | |
23081 | resultptr = new wxBitmap((wxBitmap &) result); | |
23082 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
23083 | } | |
23084 | return resultobj; | |
23085 | fail: | |
23086 | return NULL; | |
23087 | } | |
23088 | ||
23089 | ||
23090 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23091 | PyObject *resultobj; | |
23092 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
23093 | wxBitmap *arg2 = 0 ; | |
23094 | PyObject * obj0 = 0 ; | |
23095 | PyObject * obj1 = 0 ; | |
23096 | char *kwnames[] = { | |
23097 | (char *) "self",(char *) "bitmap", NULL | |
23098 | }; | |
23099 | ||
23100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
23101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23102 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23103 | if (arg2 == NULL) { | |
23104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23105 | } | |
23106 | { | |
23107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23108 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
23109 | ||
23110 | wxPyEndAllowThreads(__tstate); | |
23111 | if (PyErr_Occurred()) SWIG_fail; | |
23112 | } | |
23113 | Py_INCREF(Py_None); resultobj = Py_None; | |
23114 | return resultobj; | |
23115 | fail: | |
23116 | return NULL; | |
23117 | } | |
23118 | ||
23119 | ||
23120 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
23121 | PyObject *obj; | |
23122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23123 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
23124 | Py_INCREF(obj); | |
23125 | return Py_BuildValue((char *)""); | |
23126 | } | |
23127 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23128 | PyObject *resultobj; | |
23129 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
23130 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
23131 | wxPyBitmapDataObject *result; | |
23132 | PyObject * obj0 = 0 ; | |
23133 | char *kwnames[] = { | |
23134 | (char *) "bitmap", NULL | |
23135 | }; | |
23136 | ||
23137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
23138 | if (obj0) { | |
23139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23140 | if (arg1 == NULL) { | |
23141 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23142 | } | |
23143 | } | |
23144 | { | |
23145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23146 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
23147 | ||
23148 | wxPyEndAllowThreads(__tstate); | |
23149 | if (PyErr_Occurred()) SWIG_fail; | |
23150 | } | |
23151 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
23152 | return resultobj; | |
23153 | fail: | |
23154 | return NULL; | |
23155 | } | |
23156 | ||
23157 | ||
23158 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23159 | PyObject *resultobj; | |
23160 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
23161 | PyObject *arg2 = (PyObject *) 0 ; | |
23162 | PyObject *arg3 = (PyObject *) 0 ; | |
23163 | PyObject * obj0 = 0 ; | |
23164 | PyObject * obj1 = 0 ; | |
23165 | PyObject * obj2 = 0 ; | |
23166 | char *kwnames[] = { | |
23167 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23168 | }; | |
23169 | ||
23170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23172 | arg2 = obj1; | |
23173 | arg3 = obj2; | |
23174 | { | |
23175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23176 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23177 | ||
23178 | wxPyEndAllowThreads(__tstate); | |
23179 | if (PyErr_Occurred()) SWIG_fail; | |
23180 | } | |
23181 | Py_INCREF(Py_None); resultobj = Py_None; | |
23182 | return resultobj; | |
23183 | fail: | |
23184 | return NULL; | |
23185 | } | |
23186 | ||
23187 | ||
23188 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
23189 | PyObject *obj; | |
23190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23191 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
23192 | Py_INCREF(obj); | |
23193 | return Py_BuildValue((char *)""); | |
23194 | } | |
23195 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23196 | PyObject *resultobj; | |
23197 | wxFileDataObject *result; | |
23198 | char *kwnames[] = { | |
23199 | NULL | |
23200 | }; | |
23201 | ||
23202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
23203 | { | |
23204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23205 | result = (wxFileDataObject *)new wxFileDataObject(); | |
23206 | ||
23207 | wxPyEndAllowThreads(__tstate); | |
23208 | if (PyErr_Occurred()) SWIG_fail; | |
23209 | } | |
23210 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1); | |
23211 | return resultobj; | |
23212 | fail: | |
23213 | return NULL; | |
23214 | } | |
23215 | ||
23216 | ||
23217 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23218 | PyObject *resultobj; | |
23219 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
23220 | wxArrayString *result; | |
23221 | PyObject * obj0 = 0 ; | |
23222 | char *kwnames[] = { | |
23223 | (char *) "self", NULL | |
23224 | }; | |
23225 | ||
23226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
23227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23228 | { | |
23229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23230 | { | |
23231 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
23232 | result = (wxArrayString *) &_result_ref; | |
23233 | } | |
23234 | ||
23235 | wxPyEndAllowThreads(__tstate); | |
23236 | if (PyErr_Occurred()) SWIG_fail; | |
23237 | } | |
23238 | { | |
23239 | resultobj = wxArrayString2PyList_helper(*result); | |
23240 | } | |
23241 | return resultobj; | |
23242 | fail: | |
23243 | return NULL; | |
23244 | } | |
23245 | ||
23246 | ||
23247 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
23248 | PyObject *obj; | |
23249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23250 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
23251 | Py_INCREF(obj); | |
23252 | return Py_BuildValue((char *)""); | |
23253 | } | |
23254 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23255 | PyObject *resultobj; | |
23256 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
23257 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
23258 | wxCustomDataObject *result; | |
23259 | PyObject * obj0 = 0 ; | |
23260 | char *kwnames[] = { | |
23261 | (char *) "format", NULL | |
23262 | }; | |
23263 | ||
23264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
23265 | if (obj0) { | |
23266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23267 | if (arg1 == NULL) { | |
23268 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23269 | } | |
23270 | } | |
23271 | { | |
23272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23273 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
23274 | ||
23275 | wxPyEndAllowThreads(__tstate); | |
23276 | if (PyErr_Occurred()) SWIG_fail; | |
23277 | } | |
23278 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1); | |
23279 | return resultobj; | |
23280 | fail: | |
23281 | return NULL; | |
23282 | } | |
23283 | ||
23284 | ||
23285 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23286 | PyObject *resultobj; | |
23287 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23288 | PyObject *arg2 = (PyObject *) 0 ; | |
23289 | PyObject * obj0 = 0 ; | |
23290 | PyObject * obj1 = 0 ; | |
23291 | char *kwnames[] = { | |
23292 | (char *) "self",(char *) "data", NULL | |
23293 | }; | |
23294 | ||
23295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
23296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23297 | arg2 = obj1; | |
23298 | { | |
23299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23300 | wxCustomDataObject_TakeData(arg1,arg2); | |
23301 | ||
23302 | wxPyEndAllowThreads(__tstate); | |
23303 | if (PyErr_Occurred()) SWIG_fail; | |
23304 | } | |
23305 | Py_INCREF(Py_None); resultobj = Py_None; | |
23306 | return resultobj; | |
23307 | fail: | |
23308 | return NULL; | |
23309 | } | |
23310 | ||
23311 | ||
23312 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23313 | PyObject *resultobj; | |
23314 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23315 | PyObject *arg2 = (PyObject *) 0 ; | |
23316 | bool result; | |
23317 | PyObject * obj0 = 0 ; | |
23318 | PyObject * obj1 = 0 ; | |
23319 | char *kwnames[] = { | |
23320 | (char *) "self",(char *) "data", NULL | |
23321 | }; | |
23322 | ||
23323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23325 | arg2 = obj1; | |
23326 | { | |
23327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23328 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
23329 | ||
23330 | wxPyEndAllowThreads(__tstate); | |
23331 | if (PyErr_Occurred()) SWIG_fail; | |
23332 | } | |
23333 | resultobj = PyInt_FromLong((long)result); | |
23334 | return resultobj; | |
23335 | fail: | |
23336 | return NULL; | |
23337 | } | |
23338 | ||
23339 | ||
23340 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23341 | PyObject *resultobj; | |
23342 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23343 | size_t result; | |
23344 | PyObject * obj0 = 0 ; | |
23345 | char *kwnames[] = { | |
23346 | (char *) "self", NULL | |
23347 | }; | |
23348 | ||
23349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
23350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23351 | { | |
23352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23353 | result = (size_t)(arg1)->GetSize(); | |
23354 | ||
23355 | wxPyEndAllowThreads(__tstate); | |
23356 | if (PyErr_Occurred()) SWIG_fail; | |
23357 | } | |
a41e16b6 | 23358 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
23359 | return resultobj; |
23360 | fail: | |
23361 | return NULL; | |
23362 | } | |
23363 | ||
23364 | ||
23365 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23366 | PyObject *resultobj; | |
23367 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23368 | PyObject *result; | |
23369 | PyObject * obj0 = 0 ; | |
23370 | char *kwnames[] = { | |
23371 | (char *) "self", NULL | |
23372 | }; | |
23373 | ||
23374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
23375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23376 | { | |
23377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23378 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
23379 | ||
23380 | wxPyEndAllowThreads(__tstate); | |
23381 | if (PyErr_Occurred()) SWIG_fail; | |
23382 | } | |
23383 | resultobj = result; | |
23384 | return resultobj; | |
23385 | fail: | |
23386 | return NULL; | |
23387 | } | |
23388 | ||
23389 | ||
23390 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
23391 | PyObject *obj; | |
23392 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23393 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
23394 | Py_INCREF(obj); | |
23395 | return Py_BuildValue((char *)""); | |
23396 | } | |
23397 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23398 | PyObject *resultobj; | |
23399 | wxURLDataObject *result; | |
23400 | char *kwnames[] = { | |
23401 | NULL | |
23402 | }; | |
23403 | ||
23404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
23405 | { | |
23406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23407 | result = (wxURLDataObject *)new wxURLDataObject(); | |
23408 | ||
23409 | wxPyEndAllowThreads(__tstate); | |
23410 | if (PyErr_Occurred()) SWIG_fail; | |
23411 | } | |
23412 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1); | |
23413 | return resultobj; | |
23414 | fail: | |
23415 | return NULL; | |
23416 | } | |
23417 | ||
23418 | ||
23419 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23420 | PyObject *resultobj; | |
23421 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
23422 | wxString result; | |
23423 | PyObject * obj0 = 0 ; | |
23424 | char *kwnames[] = { | |
23425 | (char *) "self", NULL | |
23426 | }; | |
23427 | ||
23428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
23429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23430 | { | |
23431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23432 | result = (arg1)->GetURL(); | |
23433 | ||
23434 | wxPyEndAllowThreads(__tstate); | |
23435 | if (PyErr_Occurred()) SWIG_fail; | |
23436 | } | |
23437 | { | |
23438 | #if wxUSE_UNICODE | |
23439 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23440 | #else | |
23441 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23442 | #endif | |
23443 | } | |
23444 | return resultobj; | |
23445 | fail: | |
23446 | return NULL; | |
23447 | } | |
23448 | ||
23449 | ||
23450 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23451 | PyObject *resultobj; | |
23452 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
23453 | wxString *arg2 = 0 ; | |
e811c8ce | 23454 | bool temp2 = False ; |
d14a1e28 RD |
23455 | PyObject * obj0 = 0 ; |
23456 | PyObject * obj1 = 0 ; | |
23457 | char *kwnames[] = { | |
23458 | (char *) "self",(char *) "url", NULL | |
23459 | }; | |
23460 | ||
23461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
23462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23463 | { | |
23464 | arg2 = wxString_in_helper(obj1); | |
23465 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23466 | temp2 = True; |
d14a1e28 RD |
23467 | } |
23468 | { | |
23469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23470 | (arg1)->SetURL((wxString const &)*arg2); | |
23471 | ||
23472 | wxPyEndAllowThreads(__tstate); | |
23473 | if (PyErr_Occurred()) SWIG_fail; | |
23474 | } | |
23475 | Py_INCREF(Py_None); resultobj = Py_None; | |
23476 | { | |
23477 | if (temp2) | |
23478 | delete arg2; | |
23479 | } | |
23480 | return resultobj; | |
23481 | fail: | |
23482 | { | |
23483 | if (temp2) | |
23484 | delete arg2; | |
23485 | } | |
23486 | return NULL; | |
23487 | } | |
23488 | ||
23489 | ||
23490 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
23491 | PyObject *obj; | |
23492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23493 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
23494 | Py_INCREF(obj); | |
23495 | return Py_BuildValue((char *)""); | |
23496 | } | |
23497 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23498 | PyObject *resultobj; | |
23499 | wxMetafileDataObject *result; | |
23500 | char *kwnames[] = { | |
23501 | NULL | |
23502 | }; | |
23503 | ||
23504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
23505 | { | |
23506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23507 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
23508 | ||
23509 | wxPyEndAllowThreads(__tstate); | |
23510 | if (PyErr_Occurred()) SWIG_fail; | |
23511 | } | |
23512 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1); | |
23513 | return resultobj; | |
23514 | fail: | |
23515 | return NULL; | |
23516 | } | |
23517 | ||
23518 | ||
23519 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
23520 | PyObject *obj; | |
23521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23522 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
23523 | Py_INCREF(obj); | |
23524 | return Py_BuildValue((char *)""); | |
23525 | } | |
23526 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23527 | PyObject *resultobj; | |
23528 | int arg1 ; | |
23529 | bool result; | |
23530 | char *kwnames[] = { | |
23531 | (char *) "res", NULL | |
23532 | }; | |
23533 | ||
23534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IsDragResultOk",kwnames,&arg1)) goto fail; | |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | resultobj = PyInt_FromLong((long)result); | |
23543 | return resultobj; | |
23544 | fail: | |
23545 | return NULL; | |
23546 | } | |
23547 | ||
23548 | ||
23549 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23550 | PyObject *resultobj; | |
d1e20054 | 23551 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
23552 | wxIcon const &arg2_defvalue = wxNullIcon ; |
23553 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
23554 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
23555 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
23556 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
23557 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
23558 | wxPyDropSource *result; | |
23559 | PyObject * obj0 = 0 ; | |
23560 | PyObject * obj1 = 0 ; | |
23561 | PyObject * obj2 = 0 ; | |
23562 | PyObject * obj3 = 0 ; | |
23563 | char *kwnames[] = { | |
23564 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
23565 | }; | |
23566 | ||
d1e20054 RD |
23567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
23568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
23569 | if (obj1) { |
23570 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23571 | if (arg2 == NULL) { | |
23572 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23573 | } | |
23574 | } | |
23575 | if (obj2) { | |
23576 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23577 | if (arg3 == NULL) { | |
23578 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23579 | } | |
23580 | } | |
23581 | if (obj3) { | |
23582 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23583 | if (arg4 == NULL) { | |
23584 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23585 | } | |
23586 | } | |
23587 | { | |
23588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23589 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
23590 | ||
23591 | wxPyEndAllowThreads(__tstate); | |
23592 | if (PyErr_Occurred()) SWIG_fail; | |
23593 | } | |
23594 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1); | |
23595 | return resultobj; | |
23596 | fail: | |
23597 | return NULL; | |
23598 | } | |
23599 | ||
23600 | ||
23601 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23602 | PyObject *resultobj; | |
23603 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23604 | PyObject *arg2 = (PyObject *) 0 ; | |
23605 | PyObject *arg3 = (PyObject *) 0 ; | |
23606 | int arg4 ; | |
23607 | PyObject * obj0 = 0 ; | |
23608 | PyObject * obj1 = 0 ; | |
23609 | PyObject * obj2 = 0 ; | |
23610 | char *kwnames[] = { | |
23611 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
23612 | }; | |
23613 | ||
23614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOi:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
23615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23616 | arg2 = obj1; | |
23617 | arg3 = obj2; | |
23618 | { | |
23619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23620 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
23621 | ||
23622 | wxPyEndAllowThreads(__tstate); | |
23623 | if (PyErr_Occurred()) SWIG_fail; | |
23624 | } | |
23625 | Py_INCREF(Py_None); resultobj = Py_None; | |
23626 | return resultobj; | |
23627 | fail: | |
23628 | return NULL; | |
23629 | } | |
23630 | ||
23631 | ||
23632 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23633 | PyObject *resultobj; | |
23634 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23635 | PyObject * obj0 = 0 ; | |
23636 | char *kwnames[] = { | |
23637 | (char *) "self", NULL | |
23638 | }; | |
23639 | ||
23640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
23641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23642 | { | |
23643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23644 | delete arg1; | |
23645 | ||
23646 | wxPyEndAllowThreads(__tstate); | |
23647 | if (PyErr_Occurred()) SWIG_fail; | |
23648 | } | |
23649 | Py_INCREF(Py_None); resultobj = Py_None; | |
23650 | return resultobj; | |
23651 | fail: | |
23652 | return NULL; | |
23653 | } | |
23654 | ||
23655 | ||
23656 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23657 | PyObject *resultobj; | |
23658 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23659 | wxDataObject *arg2 = 0 ; | |
23660 | PyObject * obj0 = 0 ; | |
23661 | PyObject * obj1 = 0 ; | |
23662 | char *kwnames[] = { | |
23663 | (char *) "self",(char *) "data", NULL | |
23664 | }; | |
23665 | ||
23666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23668 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23669 | if (arg2 == NULL) { | |
23670 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23671 | } | |
23672 | { | |
23673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23674 | (arg1)->SetData(*arg2); | |
23675 | ||
23676 | wxPyEndAllowThreads(__tstate); | |
23677 | if (PyErr_Occurred()) SWIG_fail; | |
23678 | } | |
23679 | Py_INCREF(Py_None); resultobj = Py_None; | |
23680 | return resultobj; | |
23681 | fail: | |
23682 | return NULL; | |
23683 | } | |
23684 | ||
23685 | ||
23686 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23687 | PyObject *resultobj; | |
23688 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23689 | wxDataObject *result; | |
23690 | PyObject * obj0 = 0 ; | |
23691 | char *kwnames[] = { | |
23692 | (char *) "self", NULL | |
23693 | }; | |
23694 | ||
23695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
23696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23697 | { | |
23698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23699 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23700 | ||
23701 | wxPyEndAllowThreads(__tstate); | |
23702 | if (PyErr_Occurred()) SWIG_fail; | |
23703 | } | |
23704 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23705 | return resultobj; | |
23706 | fail: | |
23707 | return NULL; | |
23708 | } | |
23709 | ||
23710 | ||
23711 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23712 | PyObject *resultobj; | |
23713 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23714 | int arg2 ; | |
23715 | wxCursor *arg3 = 0 ; | |
23716 | PyObject * obj0 = 0 ; | |
23717 | PyObject * obj2 = 0 ; | |
23718 | char *kwnames[] = { | |
23719 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
23720 | }; | |
23721 | ||
23722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:DropSource_SetCursor",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
23723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23724 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23725 | if (arg3 == NULL) { | |
23726 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23727 | } | |
23728 | { | |
23729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23730 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
23731 | ||
23732 | wxPyEndAllowThreads(__tstate); | |
23733 | if (PyErr_Occurred()) SWIG_fail; | |
23734 | } | |
23735 | Py_INCREF(Py_None); resultobj = Py_None; | |
23736 | return resultobj; | |
23737 | fail: | |
23738 | return NULL; | |
23739 | } | |
23740 | ||
23741 | ||
23742 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23743 | PyObject *resultobj; | |
23744 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23745 | int arg2 = (int) wxDrag_CopyOnly ; | |
23746 | int result; | |
23747 | PyObject * obj0 = 0 ; | |
23748 | char *kwnames[] = { | |
23749 | (char *) "self",(char *) "flags", NULL | |
23750 | }; | |
23751 | ||
23752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DropSource_DoDragDrop",kwnames,&obj0,&arg2)) goto fail; | |
23753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23754 | { | |
23755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23756 | result = (int)(arg1)->DoDragDrop(arg2); | |
23757 | ||
23758 | wxPyEndAllowThreads(__tstate); | |
23759 | if (PyErr_Occurred()) SWIG_fail; | |
23760 | } | |
23761 | resultobj = PyInt_FromLong((long)result); | |
23762 | return resultobj; | |
23763 | fail: | |
23764 | return NULL; | |
23765 | } | |
23766 | ||
23767 | ||
23768 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23769 | PyObject *resultobj; | |
23770 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23771 | int arg2 ; | |
23772 | bool result; | |
23773 | PyObject * obj0 = 0 ; | |
23774 | char *kwnames[] = { | |
23775 | (char *) "self",(char *) "effect", NULL | |
23776 | }; | |
23777 | ||
23778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DropSource_base_GiveFeedback",kwnames,&obj0,&arg2)) goto fail; | |
23779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23780 | { | |
23781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23782 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
23783 | ||
23784 | wxPyEndAllowThreads(__tstate); | |
23785 | if (PyErr_Occurred()) SWIG_fail; | |
23786 | } | |
23787 | resultobj = PyInt_FromLong((long)result); | |
23788 | return resultobj; | |
23789 | fail: | |
23790 | return NULL; | |
23791 | } | |
23792 | ||
23793 | ||
23794 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
23795 | PyObject *obj; | |
23796 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23797 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
23798 | Py_INCREF(obj); | |
23799 | return Py_BuildValue((char *)""); | |
23800 | } | |
196addbf | 23801 | static PyObject *_wrap_new_PyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23802 | PyObject *resultobj; |
23803 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
23804 | wxPyDropTarget *result; | |
23805 | PyObject * obj0 = 0 ; | |
23806 | char *kwnames[] = { | |
23807 | (char *) "dataObject", NULL | |
23808 | }; | |
23809 | ||
196addbf | 23810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
23811 | if (obj0) { |
23812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23813 | } | |
23814 | { | |
23815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23816 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
23817 | ||
23818 | wxPyEndAllowThreads(__tstate); | |
23819 | if (PyErr_Occurred()) SWIG_fail; | |
23820 | } | |
23821 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1); | |
23822 | return resultobj; | |
23823 | fail: | |
23824 | return NULL; | |
23825 | } | |
23826 | ||
23827 | ||
23828 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23829 | PyObject *resultobj; | |
23830 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23831 | PyObject *arg2 = (PyObject *) 0 ; | |
23832 | PyObject *arg3 = (PyObject *) 0 ; | |
23833 | PyObject * obj0 = 0 ; | |
23834 | PyObject * obj1 = 0 ; | |
23835 | PyObject * obj2 = 0 ; | |
23836 | char *kwnames[] = { | |
23837 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23838 | }; | |
23839 | ||
23840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23842 | arg2 = obj1; | |
23843 | arg3 = obj2; | |
23844 | { | |
23845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23846 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23847 | ||
23848 | wxPyEndAllowThreads(__tstate); | |
23849 | if (PyErr_Occurred()) SWIG_fail; | |
23850 | } | |
23851 | Py_INCREF(Py_None); resultobj = Py_None; | |
23852 | return resultobj; | |
23853 | fail: | |
23854 | return NULL; | |
23855 | } | |
23856 | ||
23857 | ||
23858 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23859 | PyObject *resultobj; | |
23860 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23861 | PyObject * obj0 = 0 ; | |
23862 | char *kwnames[] = { | |
23863 | (char *) "self", NULL | |
23864 | }; | |
23865 | ||
23866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
23867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23868 | { | |
23869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23870 | delete arg1; | |
23871 | ||
23872 | wxPyEndAllowThreads(__tstate); | |
23873 | if (PyErr_Occurred()) SWIG_fail; | |
23874 | } | |
23875 | Py_INCREF(Py_None); resultobj = Py_None; | |
23876 | return resultobj; | |
23877 | fail: | |
23878 | return NULL; | |
23879 | } | |
23880 | ||
23881 | ||
23882 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23883 | PyObject *resultobj; | |
23884 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23885 | wxDataObject *result; | |
23886 | PyObject * obj0 = 0 ; | |
23887 | char *kwnames[] = { | |
23888 | (char *) "self", NULL | |
23889 | }; | |
23890 | ||
23891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
23892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23893 | { | |
23894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23895 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23896 | ||
23897 | wxPyEndAllowThreads(__tstate); | |
23898 | if (PyErr_Occurred()) SWIG_fail; | |
23899 | } | |
23900 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23901 | return resultobj; | |
23902 | fail: | |
23903 | return NULL; | |
23904 | } | |
23905 | ||
23906 | ||
23907 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23908 | PyObject *resultobj; | |
23909 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23910 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
23911 | PyObject * obj0 = 0 ; | |
23912 | PyObject * obj1 = 0 ; | |
23913 | char *kwnames[] = { | |
23914 | (char *) "self",(char *) "dataObject", NULL | |
23915 | }; | |
23916 | ||
23917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
23918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23919 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23920 | { | |
23921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23922 | (arg1)->SetDataObject(arg2); | |
23923 | ||
23924 | wxPyEndAllowThreads(__tstate); | |
23925 | if (PyErr_Occurred()) SWIG_fail; | |
23926 | } | |
23927 | Py_INCREF(Py_None); resultobj = Py_None; | |
23928 | return resultobj; | |
23929 | fail: | |
23930 | return NULL; | |
23931 | } | |
23932 | ||
23933 | ||
23934 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23935 | PyObject *resultobj; | |
23936 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
23937 | int arg2 ; |
23938 | int arg3 ; | |
d14a1e28 RD |
23939 | int arg4 ; |
23940 | int result; | |
23941 | PyObject * obj0 = 0 ; | |
23942 | char *kwnames[] = { | |
23943 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23944 | }; | |
23945 | ||
23946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23948 | { | |
23949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23950 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23951 | ||
23952 | wxPyEndAllowThreads(__tstate); | |
23953 | if (PyErr_Occurred()) SWIG_fail; | |
23954 | } | |
23955 | resultobj = PyInt_FromLong((long)result); | |
23956 | return resultobj; | |
23957 | fail: | |
23958 | return NULL; | |
23959 | } | |
23960 | ||
23961 | ||
23962 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23963 | PyObject *resultobj; | |
23964 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
23965 | int arg2 ; |
23966 | int arg3 ; | |
d14a1e28 RD |
23967 | int arg4 ; |
23968 | int result; | |
23969 | PyObject * obj0 = 0 ; | |
23970 | char *kwnames[] = { | |
23971 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23972 | }; | |
23973 | ||
23974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23976 | { | |
23977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23978 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23979 | ||
23980 | wxPyEndAllowThreads(__tstate); | |
23981 | if (PyErr_Occurred()) SWIG_fail; | |
23982 | } | |
23983 | resultobj = PyInt_FromLong((long)result); | |
23984 | return resultobj; | |
23985 | fail: | |
23986 | return NULL; | |
23987 | } | |
23988 | ||
23989 | ||
23990 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23991 | PyObject *resultobj; | |
23992 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23993 | PyObject * obj0 = 0 ; | |
23994 | char *kwnames[] = { | |
23995 | (char *) "self", NULL | |
23996 | }; | |
23997 | ||
23998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24000 | { | |
24001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24002 | (arg1)->base_OnLeave(); | |
24003 | ||
24004 | wxPyEndAllowThreads(__tstate); | |
24005 | if (PyErr_Occurred()) SWIG_fail; | |
24006 | } | |
24007 | Py_INCREF(Py_None); resultobj = Py_None; | |
24008 | return resultobj; | |
24009 | fail: | |
24010 | return NULL; | |
24011 | } | |
24012 | ||
24013 | ||
24014 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24015 | PyObject *resultobj; | |
24016 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
24017 | int arg2 ; |
24018 | int arg3 ; | |
d14a1e28 RD |
24019 | bool result; |
24020 | PyObject * obj0 = 0 ; | |
24021 | char *kwnames[] = { | |
24022 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24023 | }; | |
24024 | ||
24025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24027 | { | |
24028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24029 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
24030 | ||
24031 | wxPyEndAllowThreads(__tstate); | |
24032 | if (PyErr_Occurred()) SWIG_fail; | |
24033 | } | |
24034 | resultobj = PyInt_FromLong((long)result); | |
24035 | return resultobj; | |
24036 | fail: | |
24037 | return NULL; | |
24038 | } | |
24039 | ||
24040 | ||
24041 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24042 | PyObject *resultobj; | |
24043 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
24044 | bool result; | |
24045 | PyObject * obj0 = 0 ; | |
24046 | char *kwnames[] = { | |
24047 | (char *) "self", NULL | |
24048 | }; | |
24049 | ||
24050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
24051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24052 | { | |
24053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24054 | result = (bool)(arg1)->GetData(); | |
24055 | ||
24056 | wxPyEndAllowThreads(__tstate); | |
24057 | if (PyErr_Occurred()) SWIG_fail; | |
24058 | } | |
24059 | resultobj = PyInt_FromLong((long)result); | |
24060 | return resultobj; | |
24061 | fail: | |
24062 | return NULL; | |
24063 | } | |
24064 | ||
24065 | ||
24066 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
24067 | PyObject *obj; | |
24068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24069 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
24070 | Py_INCREF(obj); | |
24071 | return Py_BuildValue((char *)""); | |
24072 | } | |
24073 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24074 | PyObject *resultobj; | |
24075 | wxPyTextDropTarget *result; | |
24076 | char *kwnames[] = { | |
24077 | NULL | |
24078 | }; | |
24079 | ||
24080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
24081 | { | |
24082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24083 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
24084 | ||
24085 | wxPyEndAllowThreads(__tstate); | |
24086 | if (PyErr_Occurred()) SWIG_fail; | |
24087 | } | |
24088 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1); | |
24089 | return resultobj; | |
24090 | fail: | |
24091 | return NULL; | |
24092 | } | |
24093 | ||
24094 | ||
24095 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24096 | PyObject *resultobj; | |
24097 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
24098 | PyObject *arg2 = (PyObject *) 0 ; | |
24099 | PyObject *arg3 = (PyObject *) 0 ; | |
24100 | PyObject * obj0 = 0 ; | |
24101 | PyObject * obj1 = 0 ; | |
24102 | PyObject * obj2 = 0 ; | |
24103 | char *kwnames[] = { | |
24104 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24105 | }; | |
24106 | ||
24107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24109 | arg2 = obj1; | |
24110 | arg3 = obj2; | |
24111 | { | |
24112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24113 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24114 | ||
24115 | wxPyEndAllowThreads(__tstate); | |
24116 | if (PyErr_Occurred()) SWIG_fail; | |
24117 | } | |
24118 | Py_INCREF(Py_None); resultobj = Py_None; | |
24119 | return resultobj; | |
24120 | fail: | |
24121 | return NULL; | |
24122 | } | |
24123 | ||
24124 | ||
24125 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24126 | PyObject *resultobj; | |
24127 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
24128 | int arg2 ; |
24129 | int arg3 ; | |
d14a1e28 RD |
24130 | int arg4 ; |
24131 | int result; | |
24132 | PyObject * obj0 = 0 ; | |
24133 | char *kwnames[] = { | |
24134 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24135 | }; | |
24136 | ||
24137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24139 | { | |
24140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24141 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
24142 | ||
24143 | wxPyEndAllowThreads(__tstate); | |
24144 | if (PyErr_Occurred()) SWIG_fail; | |
24145 | } | |
24146 | resultobj = PyInt_FromLong((long)result); | |
24147 | return resultobj; | |
24148 | fail: | |
24149 | return NULL; | |
24150 | } | |
24151 | ||
24152 | ||
24153 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24154 | PyObject *resultobj; | |
24155 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
24156 | int arg2 ; |
24157 | int arg3 ; | |
d14a1e28 RD |
24158 | int arg4 ; |
24159 | int result; | |
24160 | PyObject * obj0 = 0 ; | |
24161 | char *kwnames[] = { | |
24162 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24163 | }; | |
24164 | ||
24165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24167 | { | |
24168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24169 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
24170 | ||
24171 | wxPyEndAllowThreads(__tstate); | |
24172 | if (PyErr_Occurred()) SWIG_fail; | |
24173 | } | |
24174 | resultobj = PyInt_FromLong((long)result); | |
24175 | return resultobj; | |
24176 | fail: | |
24177 | return NULL; | |
24178 | } | |
24179 | ||
24180 | ||
24181 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24182 | PyObject *resultobj; | |
24183 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
24184 | PyObject * obj0 = 0 ; | |
24185 | char *kwnames[] = { | |
24186 | (char *) "self", NULL | |
24187 | }; | |
24188 | ||
24189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
24190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24191 | { | |
24192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24193 | (arg1)->base_OnLeave(); | |
24194 | ||
24195 | wxPyEndAllowThreads(__tstate); | |
24196 | if (PyErr_Occurred()) SWIG_fail; | |
24197 | } | |
24198 | Py_INCREF(Py_None); resultobj = Py_None; | |
24199 | return resultobj; | |
24200 | fail: | |
24201 | return NULL; | |
24202 | } | |
24203 | ||
24204 | ||
24205 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24206 | PyObject *resultobj; | |
24207 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
24208 | int arg2 ; |
24209 | int arg3 ; | |
d14a1e28 RD |
24210 | bool result; |
24211 | PyObject * obj0 = 0 ; | |
24212 | char *kwnames[] = { | |
24213 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24214 | }; | |
24215 | ||
24216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:TextDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24218 | { | |
24219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24220 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
24221 | ||
24222 | wxPyEndAllowThreads(__tstate); | |
24223 | if (PyErr_Occurred()) SWIG_fail; | |
24224 | } | |
24225 | resultobj = PyInt_FromLong((long)result); | |
24226 | return resultobj; | |
24227 | fail: | |
24228 | return NULL; | |
24229 | } | |
24230 | ||
24231 | ||
24232 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24233 | PyObject *resultobj; | |
24234 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
24235 | int arg2 ; |
24236 | int arg3 ; | |
d14a1e28 RD |
24237 | int arg4 ; |
24238 | int result; | |
24239 | PyObject * obj0 = 0 ; | |
24240 | char *kwnames[] = { | |
24241 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24242 | }; | |
24243 | ||
24244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24246 | { | |
24247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24248 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
24249 | ||
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
24253 | resultobj = PyInt_FromLong((long)result); | |
24254 | return resultobj; | |
24255 | fail: | |
24256 | return NULL; | |
24257 | } | |
24258 | ||
24259 | ||
24260 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
24261 | PyObject *obj; | |
24262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24263 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
24264 | Py_INCREF(obj); | |
24265 | return Py_BuildValue((char *)""); | |
24266 | } | |
24267 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24268 | PyObject *resultobj; | |
24269 | wxPyFileDropTarget *result; | |
24270 | char *kwnames[] = { | |
24271 | NULL | |
24272 | }; | |
24273 | ||
24274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
24275 | { | |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
24278 | ||
24279 | wxPyEndAllowThreads(__tstate); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | } | |
24282 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1); | |
24283 | return resultobj; | |
24284 | fail: | |
24285 | return NULL; | |
24286 | } | |
24287 | ||
24288 | ||
24289 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24290 | PyObject *resultobj; | |
24291 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
24292 | PyObject *arg2 = (PyObject *) 0 ; | |
24293 | PyObject *arg3 = (PyObject *) 0 ; | |
24294 | PyObject * obj0 = 0 ; | |
24295 | PyObject * obj1 = 0 ; | |
24296 | PyObject * obj2 = 0 ; | |
24297 | char *kwnames[] = { | |
24298 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24299 | }; | |
24300 | ||
24301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24303 | arg2 = obj1; | |
24304 | arg3 = obj2; | |
24305 | { | |
24306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24307 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24308 | ||
24309 | wxPyEndAllowThreads(__tstate); | |
24310 | if (PyErr_Occurred()) SWIG_fail; | |
24311 | } | |
24312 | Py_INCREF(Py_None); resultobj = Py_None; | |
24313 | return resultobj; | |
24314 | fail: | |
24315 | return NULL; | |
24316 | } | |
24317 | ||
24318 | ||
24319 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24320 | PyObject *resultobj; | |
24321 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
24322 | int arg2 ; |
24323 | int arg3 ; | |
d14a1e28 RD |
24324 | int arg4 ; |
24325 | int result; | |
24326 | PyObject * obj0 = 0 ; | |
24327 | char *kwnames[] = { | |
24328 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24329 | }; | |
24330 | ||
24331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24333 | { | |
24334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24335 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
24336 | ||
24337 | wxPyEndAllowThreads(__tstate); | |
24338 | if (PyErr_Occurred()) SWIG_fail; | |
24339 | } | |
24340 | resultobj = PyInt_FromLong((long)result); | |
24341 | return resultobj; | |
24342 | fail: | |
24343 | return NULL; | |
24344 | } | |
24345 | ||
24346 | ||
24347 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24348 | PyObject *resultobj; | |
24349 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
24350 | int arg2 ; |
24351 | int arg3 ; | |
d14a1e28 RD |
24352 | int arg4 ; |
24353 | int result; | |
24354 | PyObject * obj0 = 0 ; | |
24355 | char *kwnames[] = { | |
24356 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24357 | }; | |
24358 | ||
24359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24361 | { | |
24362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24363 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
24364 | ||
24365 | wxPyEndAllowThreads(__tstate); | |
24366 | if (PyErr_Occurred()) SWIG_fail; | |
24367 | } | |
24368 | resultobj = PyInt_FromLong((long)result); | |
24369 | return resultobj; | |
24370 | fail: | |
24371 | return NULL; | |
24372 | } | |
24373 | ||
24374 | ||
24375 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24376 | PyObject *resultobj; | |
24377 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
24378 | PyObject * obj0 = 0 ; | |
24379 | char *kwnames[] = { | |
24380 | (char *) "self", NULL | |
24381 | }; | |
24382 | ||
24383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
24384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24385 | { | |
24386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24387 | (arg1)->base_OnLeave(); | |
24388 | ||
24389 | wxPyEndAllowThreads(__tstate); | |
24390 | if (PyErr_Occurred()) SWIG_fail; | |
24391 | } | |
24392 | Py_INCREF(Py_None); resultobj = Py_None; | |
24393 | return resultobj; | |
24394 | fail: | |
24395 | return NULL; | |
24396 | } | |
24397 | ||
24398 | ||
24399 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24400 | PyObject *resultobj; | |
24401 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
24402 | int arg2 ; |
24403 | int arg3 ; | |
d14a1e28 RD |
24404 | bool result; |
24405 | PyObject * obj0 = 0 ; | |
24406 | char *kwnames[] = { | |
24407 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24408 | }; | |
24409 | ||
24410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:FileDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24412 | { | |
24413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24414 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
24415 | ||
24416 | wxPyEndAllowThreads(__tstate); | |
24417 | if (PyErr_Occurred()) SWIG_fail; | |
24418 | } | |
24419 | resultobj = PyInt_FromLong((long)result); | |
24420 | return resultobj; | |
24421 | fail: | |
24422 | return NULL; | |
24423 | } | |
24424 | ||
24425 | ||
24426 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24427 | PyObject *resultobj; | |
24428 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
24429 | int arg2 ; |
24430 | int arg3 ; | |
d14a1e28 RD |
24431 | int arg4 ; |
24432 | int result; | |
24433 | PyObject * obj0 = 0 ; | |
24434 | char *kwnames[] = { | |
24435 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24436 | }; | |
24437 | ||
24438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24440 | { | |
24441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24442 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
24443 | ||
24444 | wxPyEndAllowThreads(__tstate); | |
24445 | if (PyErr_Occurred()) SWIG_fail; | |
24446 | } | |
24447 | resultobj = PyInt_FromLong((long)result); | |
24448 | return resultobj; | |
24449 | fail: | |
24450 | return NULL; | |
24451 | } | |
24452 | ||
24453 | ||
24454 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
24455 | PyObject *obj; | |
24456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24457 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
24458 | Py_INCREF(obj); | |
24459 | return Py_BuildValue((char *)""); | |
24460 | } | |
24461 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24462 | PyObject *resultobj; | |
24463 | wxClipboard *result; | |
24464 | char *kwnames[] = { | |
24465 | NULL | |
24466 | }; | |
24467 | ||
24468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
24469 | { | |
24470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24471 | result = (wxClipboard *)new wxClipboard(); | |
24472 | ||
24473 | wxPyEndAllowThreads(__tstate); | |
24474 | if (PyErr_Occurred()) SWIG_fail; | |
24475 | } | |
24476 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1); | |
24477 | return resultobj; | |
24478 | fail: | |
24479 | return NULL; | |
24480 | } | |
24481 | ||
24482 | ||
24483 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24484 | PyObject *resultobj; | |
24485 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24486 | PyObject * obj0 = 0 ; | |
24487 | char *kwnames[] = { | |
24488 | (char *) "self", NULL | |
24489 | }; | |
24490 | ||
24491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
24492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24493 | { | |
24494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24495 | delete arg1; | |
24496 | ||
24497 | wxPyEndAllowThreads(__tstate); | |
24498 | if (PyErr_Occurred()) SWIG_fail; | |
24499 | } | |
24500 | Py_INCREF(Py_None); resultobj = Py_None; | |
24501 | return resultobj; | |
24502 | fail: | |
24503 | return NULL; | |
24504 | } | |
24505 | ||
24506 | ||
24507 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24508 | PyObject *resultobj; | |
24509 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24510 | bool result; | |
24511 | PyObject * obj0 = 0 ; | |
24512 | char *kwnames[] = { | |
24513 | (char *) "self", NULL | |
24514 | }; | |
24515 | ||
24516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
24517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24518 | { | |
24519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24520 | result = (bool)(arg1)->Open(); | |
24521 | ||
24522 | wxPyEndAllowThreads(__tstate); | |
24523 | if (PyErr_Occurred()) SWIG_fail; | |
24524 | } | |
24525 | resultobj = PyInt_FromLong((long)result); | |
24526 | return resultobj; | |
24527 | fail: | |
24528 | return NULL; | |
24529 | } | |
24530 | ||
24531 | ||
24532 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24533 | PyObject *resultobj; | |
24534 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24535 | PyObject * obj0 = 0 ; | |
24536 | char *kwnames[] = { | |
24537 | (char *) "self", NULL | |
24538 | }; | |
24539 | ||
24540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
24541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24542 | { | |
24543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24544 | (arg1)->Close(); | |
24545 | ||
24546 | wxPyEndAllowThreads(__tstate); | |
24547 | if (PyErr_Occurred()) SWIG_fail; | |
24548 | } | |
24549 | Py_INCREF(Py_None); resultobj = Py_None; | |
24550 | return resultobj; | |
24551 | fail: | |
24552 | return NULL; | |
24553 | } | |
24554 | ||
24555 | ||
24556 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24557 | PyObject *resultobj; | |
24558 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24559 | bool result; | |
24560 | PyObject * obj0 = 0 ; | |
24561 | char *kwnames[] = { | |
24562 | (char *) "self", NULL | |
24563 | }; | |
24564 | ||
24565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
24566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24567 | { | |
24568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24569 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
24570 | ||
24571 | wxPyEndAllowThreads(__tstate); | |
24572 | if (PyErr_Occurred()) SWIG_fail; | |
24573 | } | |
24574 | resultobj = PyInt_FromLong((long)result); | |
24575 | return resultobj; | |
24576 | fail: | |
24577 | return NULL; | |
24578 | } | |
24579 | ||
24580 | ||
24581 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24582 | PyObject *resultobj; | |
24583 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24584 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24585 | bool result; | |
24586 | PyObject * obj0 = 0 ; | |
24587 | PyObject * obj1 = 0 ; | |
24588 | char *kwnames[] = { | |
24589 | (char *) "self",(char *) "data", NULL | |
24590 | }; | |
24591 | ||
24592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
24593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24594 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24595 | { | |
24596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24597 | result = (bool)(arg1)->AddData(arg2); | |
24598 | ||
24599 | wxPyEndAllowThreads(__tstate); | |
24600 | if (PyErr_Occurred()) SWIG_fail; | |
24601 | } | |
24602 | resultobj = PyInt_FromLong((long)result); | |
24603 | return resultobj; | |
24604 | fail: | |
24605 | return NULL; | |
24606 | } | |
24607 | ||
24608 | ||
24609 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24610 | PyObject *resultobj; | |
24611 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24612 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24613 | bool result; | |
24614 | PyObject * obj0 = 0 ; | |
24615 | PyObject * obj1 = 0 ; | |
24616 | char *kwnames[] = { | |
24617 | (char *) "self",(char *) "data", NULL | |
24618 | }; | |
24619 | ||
24620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24622 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24623 | { | |
24624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24625 | result = (bool)(arg1)->SetData(arg2); | |
24626 | ||
24627 | wxPyEndAllowThreads(__tstate); | |
24628 | if (PyErr_Occurred()) SWIG_fail; | |
24629 | } | |
24630 | resultobj = PyInt_FromLong((long)result); | |
24631 | return resultobj; | |
24632 | fail: | |
24633 | return NULL; | |
24634 | } | |
24635 | ||
24636 | ||
24637 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24638 | PyObject *resultobj; | |
24639 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24640 | wxDataFormat *arg2 = 0 ; | |
24641 | bool result; | |
24642 | PyObject * obj0 = 0 ; | |
24643 | PyObject * obj1 = 0 ; | |
24644 | char *kwnames[] = { | |
24645 | (char *) "self",(char *) "format", NULL | |
24646 | }; | |
24647 | ||
24648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
24649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24650 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24651 | if (arg2 == NULL) { | |
24652 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24653 | } | |
24654 | { | |
24655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24656 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
24657 | ||
24658 | wxPyEndAllowThreads(__tstate); | |
24659 | if (PyErr_Occurred()) SWIG_fail; | |
24660 | } | |
24661 | resultobj = PyInt_FromLong((long)result); | |
24662 | return resultobj; | |
24663 | fail: | |
24664 | return NULL; | |
24665 | } | |
24666 | ||
24667 | ||
24668 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24669 | PyObject *resultobj; | |
24670 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24671 | wxDataObject *arg2 = 0 ; | |
24672 | bool result; | |
24673 | PyObject * obj0 = 0 ; | |
24674 | PyObject * obj1 = 0 ; | |
24675 | char *kwnames[] = { | |
24676 | (char *) "self",(char *) "data", NULL | |
24677 | }; | |
24678 | ||
24679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
24680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24681 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24682 | if (arg2 == NULL) { | |
24683 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24684 | } | |
24685 | { | |
24686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24687 | result = (bool)(arg1)->GetData(*arg2); | |
24688 | ||
24689 | wxPyEndAllowThreads(__tstate); | |
24690 | if (PyErr_Occurred()) SWIG_fail; | |
24691 | } | |
24692 | resultobj = PyInt_FromLong((long)result); | |
24693 | return resultobj; | |
24694 | fail: | |
24695 | return NULL; | |
24696 | } | |
24697 | ||
24698 | ||
24699 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24700 | PyObject *resultobj; | |
24701 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24702 | PyObject * obj0 = 0 ; | |
24703 | char *kwnames[] = { | |
24704 | (char *) "self", NULL | |
24705 | }; | |
24706 | ||
24707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
24708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24709 | { | |
24710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24711 | (arg1)->Clear(); | |
24712 | ||
24713 | wxPyEndAllowThreads(__tstate); | |
24714 | if (PyErr_Occurred()) SWIG_fail; | |
24715 | } | |
24716 | Py_INCREF(Py_None); resultobj = Py_None; | |
24717 | return resultobj; | |
24718 | fail: | |
24719 | return NULL; | |
24720 | } | |
24721 | ||
24722 | ||
24723 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24724 | PyObject *resultobj; | |
24725 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24726 | bool result; | |
24727 | PyObject * obj0 = 0 ; | |
24728 | char *kwnames[] = { | |
24729 | (char *) "self", NULL | |
24730 | }; | |
24731 | ||
24732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
24733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24734 | { | |
24735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24736 | result = (bool)(arg1)->Flush(); | |
24737 | ||
24738 | wxPyEndAllowThreads(__tstate); | |
24739 | if (PyErr_Occurred()) SWIG_fail; | |
24740 | } | |
24741 | resultobj = PyInt_FromLong((long)result); | |
24742 | return resultobj; | |
24743 | fail: | |
24744 | return NULL; | |
24745 | } | |
24746 | ||
24747 | ||
24748 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24749 | PyObject *resultobj; | |
24750 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
e811c8ce | 24751 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24752 | PyObject * obj0 = 0 ; |
24753 | PyObject * obj1 = 0 ; | |
24754 | char *kwnames[] = { | |
24755 | (char *) "self",(char *) "primary", NULL | |
24756 | }; | |
24757 | ||
24758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
24759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24760 | if (obj1) { | |
a41e16b6 RD |
24761 | { |
24762 | arg2 = (bool) SPyObj_AsBool(obj1); | |
24763 | if (PyErr_Occurred()) SWIG_fail; | |
24764 | } | |
d14a1e28 RD |
24765 | } |
24766 | { | |
24767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24768 | (arg1)->UsePrimarySelection(arg2); | |
24769 | ||
24770 | wxPyEndAllowThreads(__tstate); | |
24771 | if (PyErr_Occurred()) SWIG_fail; | |
24772 | } | |
24773 | Py_INCREF(Py_None); resultobj = Py_None; | |
24774 | return resultobj; | |
24775 | fail: | |
24776 | return NULL; | |
24777 | } | |
24778 | ||
24779 | ||
24780 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
24781 | PyObject *obj; | |
24782 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24783 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
24784 | Py_INCREF(obj); | |
24785 | return Py_BuildValue((char *)""); | |
24786 | } | |
24787 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
24788 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
24789 | return 1; | |
24790 | } | |
24791 | ||
24792 | ||
24793 | static PyObject *_wrap_TheClipboard_get() { | |
24794 | PyObject *pyobj; | |
24795 | ||
24796 | pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); | |
24797 | return pyobj; | |
24798 | } | |
24799 | ||
24800 | ||
24801 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24802 | PyObject *resultobj; | |
24803 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
24804 | wxClipboardLocker *result; | |
24805 | PyObject * obj0 = 0 ; | |
24806 | char *kwnames[] = { | |
24807 | (char *) "clipboard", NULL | |
24808 | }; | |
24809 | ||
24810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24811 | if (obj0) { | |
24812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24813 | } | |
24814 | { | |
24815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24816 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
24817 | ||
24818 | wxPyEndAllowThreads(__tstate); | |
24819 | if (PyErr_Occurred()) SWIG_fail; | |
24820 | } | |
24821 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1); | |
24822 | return resultobj; | |
24823 | fail: | |
24824 | return NULL; | |
24825 | } | |
24826 | ||
24827 | ||
24828 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24829 | PyObject *resultobj; | |
24830 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24831 | PyObject * obj0 = 0 ; | |
24832 | char *kwnames[] = { | |
24833 | (char *) "self", NULL | |
24834 | }; | |
24835 | ||
24836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24838 | { | |
24839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24840 | delete arg1; | |
24841 | ||
24842 | wxPyEndAllowThreads(__tstate); | |
24843 | if (PyErr_Occurred()) SWIG_fail; | |
24844 | } | |
24845 | Py_INCREF(Py_None); resultobj = Py_None; | |
24846 | return resultobj; | |
24847 | fail: | |
24848 | return NULL; | |
24849 | } | |
24850 | ||
24851 | ||
24852 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24853 | PyObject *resultobj; | |
24854 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24855 | bool result; | |
24856 | PyObject * obj0 = 0 ; | |
24857 | char *kwnames[] = { | |
24858 | (char *) "self", NULL | |
24859 | }; | |
24860 | ||
24861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
24862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24863 | { | |
24864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24865 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
24866 | ||
24867 | wxPyEndAllowThreads(__tstate); | |
24868 | if (PyErr_Occurred()) SWIG_fail; | |
24869 | } | |
24870 | resultobj = PyInt_FromLong((long)result); | |
24871 | return resultobj; | |
24872 | fail: | |
24873 | return NULL; | |
24874 | } | |
24875 | ||
24876 | ||
24877 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
24878 | PyObject *obj; | |
24879 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24880 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
24881 | Py_INCREF(obj); | |
24882 | return Py_BuildValue((char *)""); | |
24883 | } | |
24884 | static PyMethodDef SwigMethods[] = { | |
24885 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
24887 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
24888 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
24889 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24890 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24891 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
24892 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24897 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
24898 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
24899 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
24900 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
24901 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
24902 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
24905 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
24906 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
24907 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
24908 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
24909 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
24910 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
24911 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
24912 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
24913 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
24914 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
24915 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
24916 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
24917 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
24918 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
24919 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
24920 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
24922 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
24923 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
24924 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
24925 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
24926 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
24927 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24928 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24929 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
24931 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24932 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
24936 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24937 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
24938 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24939 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24940 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24941 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24942 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24943 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24944 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24945 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24946 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
24947 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24948 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
24949 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24950 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24951 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
39f61e25 | 24952 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24953 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
24954 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
24955 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
24956 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24957 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24958 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
24959 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
24960 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
24961 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
24962 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24963 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24964 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
24965 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
24966 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
24967 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24968 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24969 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24970 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 24971 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 24972 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 24973 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 24974 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24975 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
24976 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
24977 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
24978 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
24979 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24980 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
24981 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
24982 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
24983 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24984 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24985 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24986 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24987 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
24988 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24989 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24990 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
24991 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24992 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24993 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
24994 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
24995 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
24996 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
24997 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24998 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
24999 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
25000 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
25001 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
25002 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
25003 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
25004 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
25005 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
25006 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
25007 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
25008 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
25009 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
25010 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
25011 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
25012 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
25013 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
25014 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
25015 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
25016 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
25017 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
25018 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
25019 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
25020 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
25021 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
25022 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
25023 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
25024 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
25025 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
25026 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
25027 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25028 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
25029 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
25030 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
25031 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
25032 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
7722248d | 25033 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
25034 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
25035 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
25036 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
25037 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
25038 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
25039 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 25040 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
25041 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
25042 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
25043 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
25044 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
25045 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
25046 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
25047 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
25048 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
25049 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
25050 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
25051 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
25052 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
25053 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25054 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
25055 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
25056 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
25057 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
25058 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
25059 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
25060 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
25061 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
25062 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
25063 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
25064 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
25065 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
25066 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
25067 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
25068 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
25069 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
25070 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
25071 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
25072 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
25073 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
25074 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
25075 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
25076 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
25077 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
25078 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
25079 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
25080 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
25081 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
25082 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
25083 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
25084 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25085 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
25086 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
25087 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
25088 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
25089 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
25090 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
25091 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
25092 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
25093 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
25094 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
25095 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
25097 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
25098 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
25099 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
25100 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
25101 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
25102 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
25103 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 25107 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
25108 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
25109 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
25111 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
25113 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
25114 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25115 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
25116 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
25119 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
25122 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
25123 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
25124 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
25125 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
25126 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
25127 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25128 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
25129 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
25130 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
25131 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
25132 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
25133 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
25134 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
25135 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
25137 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
25138 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
25141 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
25143 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
25146 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
25149 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
25150 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
25151 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
25152 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
25153 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
25154 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
25155 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
25156 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
25157 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
25158 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
25159 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
25160 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
25161 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
25162 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
25163 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
25164 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
25165 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
25166 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
25167 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
25168 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
25170 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
25171 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
25172 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
25173 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
25174 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
25175 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
25176 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
25177 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
25178 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
25179 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
25180 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
25182 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
25184 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
25186 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
25187 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
25188 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
25189 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
25190 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
25192 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
25195 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
25196 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
25197 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
25198 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
25200 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
25201 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
25202 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
25203 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
25204 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
25205 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25207 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
25208 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
25209 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
25211 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
25212 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
25213 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
25215 | { (char *)"new_Wave", (PyCFunction) _wrap_new_Wave, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"new_WaveData", (PyCFunction) _wrap_new_WaveData, METH_VARARGS | METH_KEYWORDS }, | |
25217 | { (char *)"delete_Wave", (PyCFunction) _wrap_delete_Wave, METH_VARARGS | METH_KEYWORDS }, | |
25218 | { (char *)"Wave_IsOk", (PyCFunction) _wrap_Wave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
25219 | { (char *)"Wave_Play", (PyCFunction) _wrap_Wave_Play, METH_VARARGS | METH_KEYWORDS }, | |
25220 | { (char *)"Wave_swigregister", Wave_swigregister, METH_VARARGS }, | |
25221 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
25222 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
25223 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
25224 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
25225 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25226 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
25227 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
25228 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
25229 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
25230 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
25231 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
25232 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
25233 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
25234 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
25235 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
25236 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
25237 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
25238 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
25239 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
25240 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
25241 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
25242 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25243 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
25244 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
25245 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
25246 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
25247 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
25248 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
25249 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
25250 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
25251 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
25252 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
25253 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
25254 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
25255 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25256 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
25257 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
25258 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
25259 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
25260 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
25261 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
25262 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
25263 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
25264 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
25265 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
25266 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
25267 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
25268 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
25269 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
25270 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
25271 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
25272 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25273 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 | 25274 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
25275 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
25276 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
25277 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
25278 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
25279 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
25280 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
25281 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
25282 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
25283 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
25284 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
25285 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
25286 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
25287 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
25288 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
25289 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
25290 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
25291 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
25292 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
25293 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
25294 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
25295 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
25296 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
25297 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
25298 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
25299 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
25300 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
25301 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25302 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
25303 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
25304 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
25305 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
25306 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
25307 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25308 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25309 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
25310 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
25311 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25312 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
25313 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
25314 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
25315 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
25316 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25317 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25318 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
25319 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
25320 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
25321 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
25322 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
25323 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
25324 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
25325 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
25326 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
25327 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
25328 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
25329 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25330 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
25331 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
25332 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
25333 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
25334 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
25335 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
25336 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
25337 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
25338 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
25339 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
25340 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
25341 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
25342 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
25343 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
25344 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
25345 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
25346 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
25347 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
25348 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
25349 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
25350 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
25351 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
25352 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
25353 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
25354 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
25355 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
25356 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
25357 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
25358 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
25359 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
25360 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
25361 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
25362 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
25363 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
25364 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
25365 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
25366 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
25367 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
25368 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
25369 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
25370 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25371 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25372 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25373 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25374 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25375 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25376 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25377 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
25378 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
25379 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
25380 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
25381 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
25382 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
25383 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
25384 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
25385 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
25386 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
25387 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
25388 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
25389 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
25390 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
25391 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
25392 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
25393 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
25394 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
25395 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
25396 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
25397 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
25398 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25399 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
25400 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
25401 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
25402 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
25403 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25404 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25405 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
25406 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
25407 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25408 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
25409 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
25410 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
25411 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
25412 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
25413 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
25414 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
25415 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
25416 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
25417 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
25418 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
25419 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25420 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
25421 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
25422 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
25423 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
25424 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
25425 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
25426 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
25427 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
25428 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
25429 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
25430 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
25431 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
25432 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
25433 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
25434 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
25435 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
25436 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
25437 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
25438 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
25439 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
25440 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
25441 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
25442 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
25443 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
25444 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
25445 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
25446 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
25447 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25448 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25449 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25450 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25451 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25452 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25453 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25454 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25455 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25456 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25457 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
25458 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25459 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25460 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25461 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25462 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25463 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25464 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25465 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25466 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
25467 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
25468 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
25469 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
25470 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25471 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25472 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
25473 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
25474 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
25475 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25476 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
25477 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
25478 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25479 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25480 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
25481 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
25482 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
25483 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
25484 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
25485 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
25486 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25487 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25488 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25489 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25490 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25491 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25492 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
25493 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
25494 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
25495 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
25496 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
25497 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25498 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25499 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
25500 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
25501 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25502 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25503 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25504 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
25505 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25506 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25507 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25508 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25509 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25510 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25511 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25512 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25513 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25514 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25515 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25516 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25517 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25518 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25519 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
25520 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
25521 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
25522 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
25523 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
25524 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25525 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25526 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25527 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
25528 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
25529 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
25530 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
25531 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
25532 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
25533 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
25534 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
25535 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
25536 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
25537 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25538 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
25539 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
25540 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
25541 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25542 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
25543 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25544 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25545 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25546 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
25547 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25548 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25549 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
25550 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
25551 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
25552 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
25553 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25554 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
25555 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
25556 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
25557 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
25558 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25559 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25560 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
25561 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25562 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25563 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25564 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
25565 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25566 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25567 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
25568 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25569 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
25570 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
25571 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25572 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
25573 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25574 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
25575 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25576 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
25577 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25578 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
25579 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
25580 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
25581 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25582 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
25583 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
25584 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25585 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25586 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25587 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25588 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25589 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
25590 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
25591 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
25592 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
196addbf | 25593 | { (char *)"new_PyDropTarget", (PyCFunction) _wrap_new_PyDropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
25594 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
25595 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25596 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25597 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25598 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25599 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25600 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25601 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25602 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25603 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
25604 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25605 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25606 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25607 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25608 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25609 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25610 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25611 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
25612 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25613 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25614 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25615 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25616 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25617 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25618 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25619 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
25620 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25621 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25622 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
25623 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
25624 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
25625 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
25626 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25627 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25628 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25629 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25630 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25631 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
25632 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
25633 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25634 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25635 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
25636 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
25637 | { NULL, NULL } | |
25638 | }; | |
25639 | ||
25640 | ||
25641 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25642 | ||
25643 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25644 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25645 | } | |
25646 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25647 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25648 | } | |
25649 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25650 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25651 | } | |
25652 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25653 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25654 | } | |
25655 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25656 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25657 | } | |
25658 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25659 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25660 | } | |
25661 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
25662 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
25663 | } | |
25664 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25665 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25666 | } | |
25667 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25668 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25669 | } | |
25670 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25671 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25672 | } | |
25673 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25674 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25675 | } | |
25676 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
25677 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
25678 | } | |
25679 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25680 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25681 | } | |
25682 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25683 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25684 | } | |
25685 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25686 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25687 | } | |
25688 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25689 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25690 | } | |
25691 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25692 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25693 | } | |
25694 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25695 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25696 | } | |
25697 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25698 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25699 | } | |
25700 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25701 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25702 | } | |
25703 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25704 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25705 | } | |
25706 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25707 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25708 | } | |
25709 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25710 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25711 | } | |
25712 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25713 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25714 | } | |
25715 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25716 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25717 | } | |
25718 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25719 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25720 | } | |
25721 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25722 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25723 | } | |
25724 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25725 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25726 | } | |
25727 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25728 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25729 | } | |
25730 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25731 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25732 | } | |
25733 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
25734 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
25735 | } | |
25736 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25737 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25738 | } | |
25739 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25740 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25741 | } | |
25742 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25743 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25744 | } | |
25745 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25746 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25747 | } | |
25748 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25749 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25750 | } | |
25751 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25752 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25753 | } | |
25754 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25755 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25756 | } | |
25757 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
25758 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
25759 | } | |
25760 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
25761 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
25762 | } | |
25763 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
25764 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25765 | } | |
25766 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
25767 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25768 | } | |
25769 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25770 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
25771 | } | |
25772 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25773 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25774 | } | |
25775 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
25776 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
25777 | } | |
25778 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
25779 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25780 | } | |
25781 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
25782 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25783 | } | |
25784 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25785 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25786 | } | |
25787 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25788 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25789 | } | |
25790 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
25791 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25792 | } | |
25793 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
25794 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25795 | } | |
25796 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
25797 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25798 | } | |
25799 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
25800 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25801 | } | |
25802 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
25803 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25804 | } | |
25805 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
25806 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25807 | } | |
25808 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25809 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25810 | } | |
25811 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25812 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25813 | } | |
25814 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25815 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25816 | } | |
25817 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25818 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25819 | } | |
25820 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25821 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25822 | } | |
25823 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25824 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25825 | } | |
25826 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25827 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25828 | } | |
25829 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25830 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25831 | } | |
25832 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25833 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25834 | } | |
25835 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25836 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25837 | } | |
25838 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25839 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25840 | } | |
25841 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
25842 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
25843 | } | |
25844 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25845 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25846 | } | |
25847 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25848 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25849 | } | |
25850 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25851 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25852 | } | |
25853 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25854 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25855 | } | |
25856 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
25857 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
25858 | } | |
25859 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
25860 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
25861 | } | |
25862 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25863 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25864 | } | |
25865 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25866 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25867 | } | |
25868 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25869 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25870 | } | |
25871 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25872 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25873 | } | |
25874 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25875 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25876 | } | |
25877 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25878 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25879 | } | |
25880 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25881 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25882 | } | |
25883 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25884 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25885 | } | |
25886 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25887 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25888 | } | |
25889 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
25890 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
25891 | } | |
25892 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25893 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25894 | } | |
25895 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25896 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25897 | } | |
25898 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25899 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25900 | } | |
25901 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25902 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25903 | } | |
25904 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25905 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25906 | } | |
25907 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25908 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25909 | } | |
25910 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25911 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25912 | } | |
25913 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25914 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25915 | } | |
25916 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25917 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25918 | } | |
25919 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25920 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25921 | } | |
25922 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25923 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25924 | } | |
25925 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25926 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25927 | } | |
25928 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25929 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25930 | } | |
25931 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
25932 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
25933 | } | |
25934 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25935 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25936 | } | |
25937 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
25938 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
25939 | } | |
25940 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25941 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25942 | } | |
25943 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25944 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25945 | } | |
25946 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25947 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25948 | } | |
25949 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25950 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25951 | } | |
25952 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
25953 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
25954 | } | |
25955 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25956 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25957 | } | |
25958 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25959 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25960 | } | |
25961 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25962 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25963 | } | |
25964 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25965 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25966 | } | |
25967 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25968 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25969 | } | |
25970 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25971 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25972 | } | |
25973 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25974 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25975 | } | |
25976 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25977 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25978 | } | |
25979 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25980 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25981 | } | |
25982 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25983 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25984 | } | |
25985 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25986 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25987 | } | |
25988 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25989 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25990 | } | |
25991 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25992 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25993 | } | |
25994 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25995 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25996 | } | |
25997 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25998 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25999 | } | |
26000 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
26001 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
26002 | } | |
26003 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
26004 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
26005 | } | |
26006 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
26007 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
26008 | } | |
26009 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
26010 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
26011 | } | |
26012 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
26013 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
26014 | } | |
26015 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
26016 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
26017 | } | |
26018 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
26019 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
26020 | } | |
1e0c8722 RD |
26021 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
26022 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
26023 | } | |
d14a1e28 RD |
26024 | static void *_p_wxImageTo_p_wxObject(void *x) { |
26025 | return (void *)((wxObject *) ((wxImage *) x)); | |
26026 | } | |
26027 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
26028 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
26029 | } | |
26030 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
26031 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
26032 | } | |
26033 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
26034 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
26035 | } | |
26036 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
26037 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26038 | } | |
26039 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
26040 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26041 | } | |
26042 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
26043 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
26044 | } | |
26045 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
26046 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
26047 | } | |
26048 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
26049 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
26050 | } | |
26051 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
26052 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
26053 | } | |
26054 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
26055 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
26056 | } | |
26057 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
26058 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
26059 | } | |
26060 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
26061 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26062 | } | |
26063 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
26064 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
26065 | } | |
26066 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
26067 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
26068 | } | |
26069 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
26070 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
26071 | } | |
26072 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
26073 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
26074 | } | |
26075 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
26076 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
26077 | } | |
26078 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
26079 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
26080 | } | |
26081 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
26082 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26083 | } | |
26084 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
26085 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
26086 | } | |
26087 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
26088 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
26089 | } | |
26090 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
26091 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
26092 | } | |
26093 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
26094 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26095 | } | |
26096 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
26097 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
26098 | } | |
26099 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
26100 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26101 | } | |
26102 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
26103 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
26104 | } | |
26105 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
26106 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
26107 | } | |
26108 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
26109 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
26110 | } | |
26111 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
26112 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
26113 | } | |
26114 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
26115 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
26116 | } | |
26117 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
26118 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
26119 | } | |
26120 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
26121 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
26122 | } | |
26123 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
26124 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
26125 | } | |
26126 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
26127 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
26128 | } | |
26129 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26130 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26131 | } | |
26132 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26133 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26134 | } | |
26135 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
26136 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
26137 | } | |
26138 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
26139 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
26140 | } | |
26141 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
26142 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
26143 | } | |
26144 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}}; | |
26145 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}}; | |
26146 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}}; | |
26147 | 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}}; | |
26148 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}}; | |
26149 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
26150 | 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}}; | |
26151 | 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}}; | |
26152 | static swig_type_info _swigt__p_wxWave[] = {{"_p_wxWave", 0, "wxWave *", 0},{"_p_wxWave"},{0}}; | |
26153 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}}; | |
26154 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}}; | |
26155 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
26156 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}}; | |
26157 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}}; | |
26158 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
26159 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
26160 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
26161 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}}; | |
26162 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}}; | |
26163 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
26164 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}}; | |
26165 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
26166 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}}; | |
26167 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}}; | |
26168 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
26169 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}}; | |
26170 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}}; | |
26171 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}}; | |
26172 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}}; | |
26173 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}}; | |
26174 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}}; | |
26175 | 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}}; | |
26176 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}}; | |
26177 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}}; | |
26178 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}}; | |
26179 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}}; | |
26180 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}}; | |
26181 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}}; | |
26182 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
26183 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}}; | |
26184 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
26185 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}}; | |
26186 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}}; | |
26187 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}}; | |
26188 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}}; | |
26189 | 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}}; | |
26190 | 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}}; | |
26191 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
26192 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}}; | |
26193 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}}; | |
26194 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
26195 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}}; | |
26196 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}}; | |
26197 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}}; | |
26198 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}}; | |
26199 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}}; | |
26200 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}}; | |
26201 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}}; | |
26202 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
26203 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}}; | |
26204 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
1e0c8722 | 26205 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject},{0}}; |
d14a1e28 RD |
26206 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; |
26207 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
26208 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}}; | |
26209 | 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}}; | |
26210 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
26211 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}}; | |
26212 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
26213 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}}; | |
26214 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}}; | |
26215 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}}; | |
26216 | 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}}; | |
26217 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}}; | |
26218 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}}; | |
26219 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}}; | |
26220 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}}; | |
26221 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}}; | |
26222 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
26223 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}}; | |
26224 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}}; | |
26225 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}}; | |
26226 | ||
26227 | static swig_type_info *swig_types_initial[] = { | |
26228 | _swigt__p_wxLogChain, | |
26229 | _swigt__p_wxMutexGuiLocker, | |
26230 | _swigt__p_wxFileHistory, | |
26231 | _swigt__p_wxLog, | |
26232 | _swigt__p_wxDateTime__TimeZone, | |
26233 | _swigt__p_wxMenu, | |
26234 | _swigt__p_wxEvent, | |
26235 | _swigt__p_wxConfigBase, | |
26236 | _swigt__p_wxWave, | |
26237 | _swigt__p_wxFileType, | |
26238 | _swigt__p_wxLogGui, | |
26239 | _swigt__p_wxFont, | |
26240 | _swigt__p_wxDataFormat, | |
26241 | _swigt__p_wxTimerEvent, | |
26242 | _swigt__p_wxCaret, | |
26243 | _swigt__p_int, | |
26244 | _swigt__p_wxSize, | |
26245 | _swigt__p_wxClipboard, | |
26246 | _swigt__p_wxStopWatch, | |
26247 | _swigt__p_wxDC, | |
26248 | _swigt__p_wxClipboardLocker, | |
26249 | _swigt__p_wxIcon, | |
26250 | _swigt__p_wxLogStderr, | |
26251 | _swigt__p_wxLogTextCtrl, | |
26252 | _swigt__p_wxTextCtrl, | |
26253 | _swigt__p_wxBusyCursor, | |
26254 | _swigt__p_wxFileDataObject, | |
26255 | _swigt__p_wxPyBitmapDataObject, | |
26256 | _swigt__p_wxPyTextDataObject, | |
26257 | _swigt__p_wxBitmapDataObject, | |
26258 | _swigt__p_wxTextDataObject, | |
26259 | _swigt__p_wxDataObject, | |
26260 | _swigt__p_wxCustomDataObject, | |
26261 | _swigt__p_wxURLDataObject, | |
26262 | _swigt__p_wxMetafileDataObject, | |
26263 | _swigt__p_wxTimerRunner, | |
26264 | _swigt__p_wxLogWindow, | |
26265 | _swigt__p_wxTimeSpan, | |
26266 | _swigt__p_wxArrayString, | |
26267 | _swigt__p_wxWindowDisabler, | |
26268 | _swigt__p_wxToolTip, | |
26269 | _swigt__p_wxDataObjectComposite, | |
26270 | _swigt__p_wxFileConfig, | |
26271 | _swigt__p_wxSystemSettings, | |
26272 | _swigt__p_wxPyDataObjectSimple, | |
26273 | _swigt__p_wxDataObjectSimple, | |
26274 | _swigt__p_wxEvtHandler, | |
26275 | _swigt__p_wxRect, | |
26276 | _swigt__p_wxSingleInstanceChecker, | |
26277 | _swigt__p_wxFileTypeInfo, | |
26278 | _swigt__p_wxFrame, | |
26279 | _swigt__p_wxTimer, | |
26280 | _swigt__p_wxMimeTypesManager, | |
26281 | _swigt__p_wxPyArtProvider, | |
26282 | _swigt__p_wxPyTipProvider, | |
26283 | _swigt__p_wxTipProvider, | |
26284 | _swigt__p_wxJoystick, | |
26285 | _swigt__p_wxSystemOptions, | |
26286 | _swigt__p_wxPoint, | |
26287 | _swigt__p_wxJoystickEvent, | |
26288 | _swigt__p_wxCursor, | |
26289 | _swigt__p_wxObject, | |
26290 | _swigt__p_wxOutputStream, | |
26291 | _swigt__p_wxDateTime, | |
26292 | _swigt__p_wxPyDropSource, | |
26293 | _swigt__p_wxWindow, | |
26294 | _swigt__p_wxString, | |
26295 | _swigt__p_wxPyProcess, | |
26296 | _swigt__p_wxBitmap, | |
26297 | _swigt__p_wxConfig, | |
26298 | _swigt__p_wxChar, | |
26299 | _swigt__p_wxBusyInfo, | |
26300 | _swigt__p_wxPyDropTarget, | |
26301 | _swigt__p_wxPyTextDropTarget, | |
26302 | _swigt__p_wxPyFileDropTarget, | |
26303 | _swigt__p_wxProcessEvent, | |
26304 | _swigt__p_wxPyLog, | |
26305 | _swigt__p_wxLogNull, | |
26306 | _swigt__p_wxColour, | |
26307 | _swigt__p_wxConfigPathChanger, | |
26308 | _swigt__p_wxPyTimer, | |
26309 | _swigt__p_wxDateSpan, | |
26310 | 0 | |
26311 | }; | |
26312 | ||
26313 | ||
26314 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
26315 | ||
26316 | static swig_const_info swig_const_table[] = { | |
26317 | { SWIG_PY_INT, (char *)"SYS_OEM_FIXED_FONT", (long) wxSYS_OEM_FIXED_FONT, 0, 0, 0}, | |
26318 | { SWIG_PY_INT, (char *)"SYS_ANSI_FIXED_FONT", (long) wxSYS_ANSI_FIXED_FONT, 0, 0, 0}, | |
26319 | { SWIG_PY_INT, (char *)"SYS_ANSI_VAR_FONT", (long) wxSYS_ANSI_VAR_FONT, 0, 0, 0}, | |
26320 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FONT", (long) wxSYS_SYSTEM_FONT, 0, 0, 0}, | |
26321 | { SWIG_PY_INT, (char *)"SYS_DEVICE_DEFAULT_FONT", (long) wxSYS_DEVICE_DEFAULT_FONT, 0, 0, 0}, | |
26322 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_PALETTE", (long) wxSYS_DEFAULT_PALETTE, 0, 0, 0}, | |
26323 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FIXED_FONT", (long) wxSYS_SYSTEM_FIXED_FONT, 0, 0, 0}, | |
26324 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_GUI_FONT", (long) wxSYS_DEFAULT_GUI_FONT, 0, 0, 0}, | |
26325 | { SWIG_PY_INT, (char *)"SYS_ICONTITLE_FONT", (long) wxSYS_ICONTITLE_FONT, 0, 0, 0}, | |
26326 | { SWIG_PY_INT, (char *)"SYS_COLOUR_SCROLLBAR", (long) wxSYS_COLOUR_SCROLLBAR, 0, 0, 0}, | |
26327 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BACKGROUND", (long) wxSYS_COLOUR_BACKGROUND, 0, 0, 0}, | |
26328 | { SWIG_PY_INT, (char *)"SYS_COLOUR_DESKTOP", (long) wxSYS_COLOUR_DESKTOP, 0, 0, 0}, | |
26329 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVECAPTION", (long) wxSYS_COLOUR_ACTIVECAPTION, 0, 0, 0}, | |
26330 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTION", (long) wxSYS_COLOUR_INACTIVECAPTION, 0, 0, 0}, | |
26331 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENU", (long) wxSYS_COLOUR_MENU, 0, 0, 0}, | |
26332 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOW", (long) wxSYS_COLOUR_WINDOW, 0, 0, 0}, | |
26333 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWFRAME", (long) wxSYS_COLOUR_WINDOWFRAME, 0, 0, 0}, | |
26334 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUTEXT", (long) wxSYS_COLOUR_MENUTEXT, 0, 0, 0}, | |
26335 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWTEXT", (long) wxSYS_COLOUR_WINDOWTEXT, 0, 0, 0}, | |
26336 | { SWIG_PY_INT, (char *)"SYS_COLOUR_CAPTIONTEXT", (long) wxSYS_COLOUR_CAPTIONTEXT, 0, 0, 0}, | |
26337 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVEBORDER", (long) wxSYS_COLOUR_ACTIVEBORDER, 0, 0, 0}, | |
26338 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVEBORDER", (long) wxSYS_COLOUR_INACTIVEBORDER, 0, 0, 0}, | |
26339 | { SWIG_PY_INT, (char *)"SYS_COLOUR_APPWORKSPACE", (long) wxSYS_COLOUR_APPWORKSPACE, 0, 0, 0}, | |
26340 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHT", (long) wxSYS_COLOUR_HIGHLIGHT, 0, 0, 0}, | |
26341 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHTTEXT", (long) wxSYS_COLOUR_HIGHLIGHTTEXT, 0, 0, 0}, | |
26342 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNFACE", (long) wxSYS_COLOUR_BTNFACE, 0, 0, 0}, | |
26343 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DFACE", (long) wxSYS_COLOUR_3DFACE, 0, 0, 0}, | |
26344 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNSHADOW", (long) wxSYS_COLOUR_BTNSHADOW, 0, 0, 0}, | |
26345 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DSHADOW", (long) wxSYS_COLOUR_3DSHADOW, 0, 0, 0}, | |
26346 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRAYTEXT", (long) wxSYS_COLOUR_GRAYTEXT, 0, 0, 0}, | |
26347 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNTEXT", (long) wxSYS_COLOUR_BTNTEXT, 0, 0, 0}, | |
26348 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTIONTEXT", (long) wxSYS_COLOUR_INACTIVECAPTIONTEXT, 0, 0, 0}, | |
26349 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHIGHLIGHT", (long) wxSYS_COLOUR_BTNHIGHLIGHT, 0, 0, 0}, | |
26350 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHILIGHT", (long) wxSYS_COLOUR_BTNHILIGHT, 0, 0, 0}, | |
26351 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHIGHLIGHT", (long) wxSYS_COLOUR_3DHIGHLIGHT, 0, 0, 0}, | |
26352 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHILIGHT", (long) wxSYS_COLOUR_3DHILIGHT, 0, 0, 0}, | |
26353 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DDKSHADOW", (long) wxSYS_COLOUR_3DDKSHADOW, 0, 0, 0}, | |
26354 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DLIGHT", (long) wxSYS_COLOUR_3DLIGHT, 0, 0, 0}, | |
26355 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOTEXT", (long) wxSYS_COLOUR_INFOTEXT, 0, 0, 0}, | |
26356 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOBK", (long) wxSYS_COLOUR_INFOBK, 0, 0, 0}, | |
26357 | { SWIG_PY_INT, (char *)"SYS_COLOUR_LISTBOX", (long) wxSYS_COLOUR_LISTBOX, 0, 0, 0}, | |
26358 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HOTLIGHT", (long) wxSYS_COLOUR_HOTLIGHT, 0, 0, 0}, | |
26359 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTACTIVECAPTION, 0, 0, 0}, | |
26360 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTINACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION, 0, 0, 0}, | |
26361 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUHILIGHT", (long) wxSYS_COLOUR_MENUHILIGHT, 0, 0, 0}, | |
26362 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUBAR", (long) wxSYS_COLOUR_MENUBAR, 0, 0, 0}, | |
26363 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MAX", (long) wxSYS_COLOUR_MAX, 0, 0, 0}, | |
26364 | { SWIG_PY_INT, (char *)"SYS_MOUSE_BUTTONS", (long) wxSYS_MOUSE_BUTTONS, 0, 0, 0}, | |
26365 | { SWIG_PY_INT, (char *)"SYS_BORDER_X", (long) wxSYS_BORDER_X, 0, 0, 0}, | |
26366 | { SWIG_PY_INT, (char *)"SYS_BORDER_Y", (long) wxSYS_BORDER_Y, 0, 0, 0}, | |
26367 | { SWIG_PY_INT, (char *)"SYS_CURSOR_X", (long) wxSYS_CURSOR_X, 0, 0, 0}, | |
26368 | { SWIG_PY_INT, (char *)"SYS_CURSOR_Y", (long) wxSYS_CURSOR_Y, 0, 0, 0}, | |
26369 | { SWIG_PY_INT, (char *)"SYS_DCLICK_X", (long) wxSYS_DCLICK_X, 0, 0, 0}, | |
26370 | { SWIG_PY_INT, (char *)"SYS_DCLICK_Y", (long) wxSYS_DCLICK_Y, 0, 0, 0}, | |
26371 | { SWIG_PY_INT, (char *)"SYS_DRAG_X", (long) wxSYS_DRAG_X, 0, 0, 0}, | |
26372 | { SWIG_PY_INT, (char *)"SYS_DRAG_Y", (long) wxSYS_DRAG_Y, 0, 0, 0}, | |
26373 | { SWIG_PY_INT, (char *)"SYS_EDGE_X", (long) wxSYS_EDGE_X, 0, 0, 0}, | |
26374 | { SWIG_PY_INT, (char *)"SYS_EDGE_Y", (long) wxSYS_EDGE_Y, 0, 0, 0}, | |
26375 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_X", (long) wxSYS_HSCROLL_ARROW_X, 0, 0, 0}, | |
26376 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_Y", (long) wxSYS_HSCROLL_ARROW_Y, 0, 0, 0}, | |
26377 | { SWIG_PY_INT, (char *)"SYS_HTHUMB_X", (long) wxSYS_HTHUMB_X, 0, 0, 0}, | |
26378 | { SWIG_PY_INT, (char *)"SYS_ICON_X", (long) wxSYS_ICON_X, 0, 0, 0}, | |
26379 | { SWIG_PY_INT, (char *)"SYS_ICON_Y", (long) wxSYS_ICON_Y, 0, 0, 0}, | |
26380 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_X", (long) wxSYS_ICONSPACING_X, 0, 0, 0}, | |
26381 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_Y", (long) wxSYS_ICONSPACING_Y, 0, 0, 0}, | |
26382 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_X", (long) wxSYS_WINDOWMIN_X, 0, 0, 0}, | |
26383 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_Y", (long) wxSYS_WINDOWMIN_Y, 0, 0, 0}, | |
26384 | { SWIG_PY_INT, (char *)"SYS_SCREEN_X", (long) wxSYS_SCREEN_X, 0, 0, 0}, | |
26385 | { SWIG_PY_INT, (char *)"SYS_SCREEN_Y", (long) wxSYS_SCREEN_Y, 0, 0, 0}, | |
26386 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_X", (long) wxSYS_FRAMESIZE_X, 0, 0, 0}, | |
26387 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_Y", (long) wxSYS_FRAMESIZE_Y, 0, 0, 0}, | |
26388 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_X", (long) wxSYS_SMALLICON_X, 0, 0, 0}, | |
26389 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_Y", (long) wxSYS_SMALLICON_Y, 0, 0, 0}, | |
26390 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_Y", (long) wxSYS_HSCROLL_Y, 0, 0, 0}, | |
26391 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_X", (long) wxSYS_VSCROLL_X, 0, 0, 0}, | |
26392 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_X", (long) wxSYS_VSCROLL_ARROW_X, 0, 0, 0}, | |
26393 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_Y", (long) wxSYS_VSCROLL_ARROW_Y, 0, 0, 0}, | |
26394 | { SWIG_PY_INT, (char *)"SYS_VTHUMB_Y", (long) wxSYS_VTHUMB_Y, 0, 0, 0}, | |
26395 | { SWIG_PY_INT, (char *)"SYS_CAPTION_Y", (long) wxSYS_CAPTION_Y, 0, 0, 0}, | |
26396 | { SWIG_PY_INT, (char *)"SYS_MENU_Y", (long) wxSYS_MENU_Y, 0, 0, 0}, | |
26397 | { SWIG_PY_INT, (char *)"SYS_NETWORK_PRESENT", (long) wxSYS_NETWORK_PRESENT, 0, 0, 0}, | |
26398 | { SWIG_PY_INT, (char *)"SYS_PENWINDOWS_PRESENT", (long) wxSYS_PENWINDOWS_PRESENT, 0, 0, 0}, | |
26399 | { SWIG_PY_INT, (char *)"SYS_SHOW_SOUNDS", (long) wxSYS_SHOW_SOUNDS, 0, 0, 0}, | |
26400 | { SWIG_PY_INT, (char *)"SYS_SWAP_BUTTONS", (long) wxSYS_SWAP_BUTTONS, 0, 0, 0}, | |
26401 | { SWIG_PY_INT, (char *)"SYS_CAN_DRAW_FRAME_DECORATIONS", (long) wxSYS_CAN_DRAW_FRAME_DECORATIONS, 0, 0, 0}, | |
26402 | { SWIG_PY_INT, (char *)"SYS_CAN_ICONIZE_FRAME", (long) wxSYS_CAN_ICONIZE_FRAME, 0, 0, 0}, | |
26403 | { SWIG_PY_INT, (char *)"SYS_SCREEN_NONE", (long) wxSYS_SCREEN_NONE, 0, 0, 0}, | |
26404 | { SWIG_PY_INT, (char *)"SYS_SCREEN_TINY", (long) wxSYS_SCREEN_TINY, 0, 0, 0}, | |
26405 | { SWIG_PY_INT, (char *)"SYS_SCREEN_PDA", (long) wxSYS_SCREEN_PDA, 0, 0, 0}, | |
26406 | { SWIG_PY_INT, (char *)"SYS_SCREEN_SMALL", (long) wxSYS_SCREEN_SMALL, 0, 0, 0}, | |
26407 | { SWIG_PY_INT, (char *)"SYS_SCREEN_DESKTOP", (long) wxSYS_SCREEN_DESKTOP, 0, 0, 0}, | |
26408 | { SWIG_PY_INT, (char *)"SHUTDOWN_POWEROFF", (long) wxSHUTDOWN_POWEROFF, 0, 0, 0}, | |
26409 | { SWIG_PY_INT, (char *)"SHUTDOWN_REBOOT", (long) wxSHUTDOWN_REBOOT, 0, 0, 0}, | |
26410 | { SWIG_PY_INT, (char *)"TIMER_CONTINUOUS", (long) wxTIMER_CONTINUOUS, 0, 0, 0}, | |
26411 | { SWIG_PY_INT, (char *)"TIMER_ONE_SHOT", (long) wxTIMER_ONE_SHOT, 0, 0, 0}, | |
26412 | { SWIG_PY_INT, (char *)"wxEVT_TIMER", (long) wxEVT_TIMER, 0, 0, 0}, | |
26413 | { SWIG_PY_INT, (char *)"LOG_FatalError", (long) wxLOG_FatalError, 0, 0, 0}, | |
26414 | { SWIG_PY_INT, (char *)"LOG_Error", (long) wxLOG_Error, 0, 0, 0}, | |
26415 | { SWIG_PY_INT, (char *)"LOG_Warning", (long) wxLOG_Warning, 0, 0, 0}, | |
26416 | { SWIG_PY_INT, (char *)"LOG_Message", (long) wxLOG_Message, 0, 0, 0}, | |
26417 | { SWIG_PY_INT, (char *)"LOG_Status", (long) wxLOG_Status, 0, 0, 0}, | |
26418 | { SWIG_PY_INT, (char *)"LOG_Info", (long) wxLOG_Info, 0, 0, 0}, | |
26419 | { SWIG_PY_INT, (char *)"LOG_Debug", (long) wxLOG_Debug, 0, 0, 0}, | |
26420 | { SWIG_PY_INT, (char *)"LOG_Trace", (long) wxLOG_Trace, 0, 0, 0}, | |
26421 | { SWIG_PY_INT, (char *)"LOG_Progress", (long) wxLOG_Progress, 0, 0, 0}, | |
26422 | { SWIG_PY_INT, (char *)"LOG_User", (long) wxLOG_User, 0, 0, 0}, | |
26423 | { SWIG_PY_INT, (char *)"LOG_Max", (long) wxLOG_Max, 0, 0, 0}, | |
26424 | { SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0}, | |
26425 | { SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0}, | |
26426 | { SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0}, | |
26427 | { SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0}, | |
26428 | { SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0}, | |
26429 | { SWIG_PY_INT, (char *)"TraceMemAlloc", (long) 0x0001, 0, 0, 0}, | |
26430 | { SWIG_PY_INT, (char *)"TraceMessages", (long) 0x0002, 0, 0, 0}, | |
26431 | { SWIG_PY_INT, (char *)"TraceResAlloc", (long) 0x0004, 0, 0, 0}, | |
26432 | { SWIG_PY_INT, (char *)"TraceRefCount", (long) 0x0008, 0, 0, 0}, | |
26433 | { SWIG_PY_INT, (char *)"TraceOleCalls", (long) 0x0100, 0, 0, 0}, | |
26434 | { SWIG_PY_INT, (char *)"PROCESS_DEFAULT", (long) wxPROCESS_DEFAULT, 0, 0, 0}, | |
26435 | { SWIG_PY_INT, (char *)"PROCESS_REDIRECT", (long) wxPROCESS_REDIRECT, 0, 0, 0}, | |
26436 | { SWIG_PY_INT, (char *)"KILL_OK", (long) wxKILL_OK, 0, 0, 0}, | |
26437 | { SWIG_PY_INT, (char *)"KILL_BAD_SIGNAL", (long) wxKILL_BAD_SIGNAL, 0, 0, 0}, | |
26438 | { SWIG_PY_INT, (char *)"KILL_ACCESS_DENIED", (long) wxKILL_ACCESS_DENIED, 0, 0, 0}, | |
26439 | { SWIG_PY_INT, (char *)"KILL_NO_PROCESS", (long) wxKILL_NO_PROCESS, 0, 0, 0}, | |
26440 | { SWIG_PY_INT, (char *)"KILL_ERROR", (long) wxKILL_ERROR, 0, 0, 0}, | |
26441 | { SWIG_PY_INT, (char *)"SIGNONE", (long) wxSIGNONE, 0, 0, 0}, | |
26442 | { SWIG_PY_INT, (char *)"SIGHUP", (long) wxSIGHUP, 0, 0, 0}, | |
26443 | { SWIG_PY_INT, (char *)"SIGINT", (long) wxSIGINT, 0, 0, 0}, | |
26444 | { SWIG_PY_INT, (char *)"SIGQUIT", (long) wxSIGQUIT, 0, 0, 0}, | |
26445 | { SWIG_PY_INT, (char *)"SIGILL", (long) wxSIGILL, 0, 0, 0}, | |
26446 | { SWIG_PY_INT, (char *)"SIGTRAP", (long) wxSIGTRAP, 0, 0, 0}, | |
26447 | { SWIG_PY_INT, (char *)"SIGABRT", (long) wxSIGABRT, 0, 0, 0}, | |
26448 | { SWIG_PY_INT, (char *)"SIGIOT", (long) wxSIGIOT, 0, 0, 0}, | |
26449 | { SWIG_PY_INT, (char *)"SIGEMT", (long) wxSIGEMT, 0, 0, 0}, | |
26450 | { SWIG_PY_INT, (char *)"SIGFPE", (long) wxSIGFPE, 0, 0, 0}, | |
26451 | { SWIG_PY_INT, (char *)"SIGKILL", (long) wxSIGKILL, 0, 0, 0}, | |
26452 | { SWIG_PY_INT, (char *)"SIGBUS", (long) wxSIGBUS, 0, 0, 0}, | |
26453 | { SWIG_PY_INT, (char *)"SIGSEGV", (long) wxSIGSEGV, 0, 0, 0}, | |
26454 | { SWIG_PY_INT, (char *)"SIGSYS", (long) wxSIGSYS, 0, 0, 0}, | |
26455 | { SWIG_PY_INT, (char *)"SIGPIPE", (long) wxSIGPIPE, 0, 0, 0}, | |
26456 | { SWIG_PY_INT, (char *)"SIGALRM", (long) wxSIGALRM, 0, 0, 0}, | |
26457 | { SWIG_PY_INT, (char *)"SIGTERM", (long) wxSIGTERM, 0, 0, 0}, | |
26458 | { SWIG_PY_INT, (char *)"wxEVT_END_PROCESS", (long) wxEVT_END_PROCESS, 0, 0, 0}, | |
26459 | { SWIG_PY_INT, (char *)"EXEC_ASYNC", (long) wxEXEC_ASYNC, 0, 0, 0}, | |
26460 | { SWIG_PY_INT, (char *)"EXEC_SYNC", (long) wxEXEC_SYNC, 0, 0, 0}, | |
26461 | { SWIG_PY_INT, (char *)"EXEC_NOHIDE", (long) wxEXEC_NOHIDE, 0, 0, 0}, | |
26462 | { SWIG_PY_INT, (char *)"EXEC_MAKE_GROUP_LEADER", (long) wxEXEC_MAKE_GROUP_LEADER, 0, 0, 0}, | |
26463 | { SWIG_PY_INT, (char *)"JOYSTICK1", (long) wxJOYSTICK1, 0, 0, 0}, | |
26464 | { SWIG_PY_INT, (char *)"JOYSTICK2", (long) wxJOYSTICK2, 0, 0, 0}, | |
26465 | { SWIG_PY_INT, (char *)"JOY_BUTTON_ANY", (long) wxJOY_BUTTON_ANY, 0, 0, 0}, | |
26466 | { SWIG_PY_INT, (char *)"JOY_BUTTON1", (long) wxJOY_BUTTON1, 0, 0, 0}, | |
26467 | { SWIG_PY_INT, (char *)"JOY_BUTTON2", (long) wxJOY_BUTTON2, 0, 0, 0}, | |
26468 | { SWIG_PY_INT, (char *)"JOY_BUTTON3", (long) wxJOY_BUTTON3, 0, 0, 0}, | |
26469 | { SWIG_PY_INT, (char *)"JOY_BUTTON4", (long) wxJOY_BUTTON4, 0, 0, 0}, | |
26470 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_DOWN", (long) wxEVT_JOY_BUTTON_DOWN, 0, 0, 0}, | |
26471 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_UP", (long) wxEVT_JOY_BUTTON_UP, 0, 0, 0}, | |
26472 | { SWIG_PY_INT, (char *)"wxEVT_JOY_MOVE", (long) wxEVT_JOY_MOVE, 0, 0, 0}, | |
26473 | { SWIG_PY_INT, (char *)"wxEVT_JOY_ZMOVE", (long) wxEVT_JOY_ZMOVE, 0, 0, 0}, | |
26474 | { SWIG_PY_INT, (char *)"MAILCAP_STANDARD", (long) wxMAILCAP_STANDARD, 0, 0, 0}, | |
26475 | { SWIG_PY_INT, (char *)"MAILCAP_NETSCAPE", (long) wxMAILCAP_NETSCAPE, 0, 0, 0}, | |
26476 | { SWIG_PY_INT, (char *)"MAILCAP_KDE", (long) wxMAILCAP_KDE, 0, 0, 0}, | |
26477 | { SWIG_PY_INT, (char *)"MAILCAP_GNOME", (long) wxMAILCAP_GNOME, 0, 0, 0}, | |
26478 | { SWIG_PY_INT, (char *)"MAILCAP_ALL", (long) wxMAILCAP_ALL, 0, 0, 0}, | |
26479 | { SWIG_PY_INT, (char *)"CONFIG_USE_LOCAL_FILE", (long) wxCONFIG_USE_LOCAL_FILE, 0, 0, 0}, | |
26480 | { SWIG_PY_INT, (char *)"CONFIG_USE_GLOBAL_FILE", (long) wxCONFIG_USE_GLOBAL_FILE, 0, 0, 0}, | |
26481 | { SWIG_PY_INT, (char *)"CONFIG_USE_RELATIVE_PATH", (long) wxCONFIG_USE_RELATIVE_PATH, 0, 0, 0}, | |
26482 | { SWIG_PY_INT, (char *)"CONFIG_USE_NO_ESCAPE_CHARACTERS", (long) wxCONFIG_USE_NO_ESCAPE_CHARACTERS, 0, 0, 0}, | |
26483 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Unknown", (long) wxConfigBase::Type_Unknown, 0, 0, 0}, | |
26484 | { SWIG_PY_INT, (char *)"ConfigBase_Type_String", (long) wxConfigBase::Type_String, 0, 0, 0}, | |
26485 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Boolean", (long) wxConfigBase::Type_Boolean, 0, 0, 0}, | |
26486 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Integer", (long) wxConfigBase::Type_Integer, 0, 0, 0}, | |
26487 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Float", (long) wxConfigBase::Type_Float, 0, 0, 0}, | |
26488 | { SWIG_PY_INT, (char *)"DateTime_Local", (long) wxDateTime::Local, 0, 0, 0}, | |
26489 | { SWIG_PY_INT, (char *)"DateTime_GMT_12", (long) wxDateTime::GMT_12, 0, 0, 0}, | |
26490 | { SWIG_PY_INT, (char *)"DateTime_GMT_11", (long) wxDateTime::GMT_11, 0, 0, 0}, | |
26491 | { SWIG_PY_INT, (char *)"DateTime_GMT_10", (long) wxDateTime::GMT_10, 0, 0, 0}, | |
26492 | { SWIG_PY_INT, (char *)"DateTime_GMT_9", (long) wxDateTime::GMT_9, 0, 0, 0}, | |
26493 | { SWIG_PY_INT, (char *)"DateTime_GMT_8", (long) wxDateTime::GMT_8, 0, 0, 0}, | |
26494 | { SWIG_PY_INT, (char *)"DateTime_GMT_7", (long) wxDateTime::GMT_7, 0, 0, 0}, | |
26495 | { SWIG_PY_INT, (char *)"DateTime_GMT_6", (long) wxDateTime::GMT_6, 0, 0, 0}, | |
26496 | { SWIG_PY_INT, (char *)"DateTime_GMT_5", (long) wxDateTime::GMT_5, 0, 0, 0}, | |
26497 | { SWIG_PY_INT, (char *)"DateTime_GMT_4", (long) wxDateTime::GMT_4, 0, 0, 0}, | |
26498 | { SWIG_PY_INT, (char *)"DateTime_GMT_3", (long) wxDateTime::GMT_3, 0, 0, 0}, | |
26499 | { SWIG_PY_INT, (char *)"DateTime_GMT_2", (long) wxDateTime::GMT_2, 0, 0, 0}, | |
26500 | { SWIG_PY_INT, (char *)"DateTime_GMT_1", (long) wxDateTime::GMT_1, 0, 0, 0}, | |
26501 | { SWIG_PY_INT, (char *)"DateTime_GMT0", (long) wxDateTime::GMT0, 0, 0, 0}, | |
26502 | { SWIG_PY_INT, (char *)"DateTime_GMT1", (long) wxDateTime::GMT1, 0, 0, 0}, | |
26503 | { SWIG_PY_INT, (char *)"DateTime_GMT2", (long) wxDateTime::GMT2, 0, 0, 0}, | |
26504 | { SWIG_PY_INT, (char *)"DateTime_GMT3", (long) wxDateTime::GMT3, 0, 0, 0}, | |
26505 | { SWIG_PY_INT, (char *)"DateTime_GMT4", (long) wxDateTime::GMT4, 0, 0, 0}, | |
26506 | { SWIG_PY_INT, (char *)"DateTime_GMT5", (long) wxDateTime::GMT5, 0, 0, 0}, | |
26507 | { SWIG_PY_INT, (char *)"DateTime_GMT6", (long) wxDateTime::GMT6, 0, 0, 0}, | |
26508 | { SWIG_PY_INT, (char *)"DateTime_GMT7", (long) wxDateTime::GMT7, 0, 0, 0}, | |
26509 | { SWIG_PY_INT, (char *)"DateTime_GMT8", (long) wxDateTime::GMT8, 0, 0, 0}, | |
26510 | { SWIG_PY_INT, (char *)"DateTime_GMT9", (long) wxDateTime::GMT9, 0, 0, 0}, | |
26511 | { SWIG_PY_INT, (char *)"DateTime_GMT10", (long) wxDateTime::GMT10, 0, 0, 0}, | |
26512 | { SWIG_PY_INT, (char *)"DateTime_GMT11", (long) wxDateTime::GMT11, 0, 0, 0}, | |
26513 | { SWIG_PY_INT, (char *)"DateTime_GMT12", (long) wxDateTime::GMT12, 0, 0, 0}, | |
26514 | { SWIG_PY_INT, (char *)"DateTime_WET", (long) wxDateTime::WET, 0, 0, 0}, | |
26515 | { SWIG_PY_INT, (char *)"DateTime_WEST", (long) wxDateTime::WEST, 0, 0, 0}, | |
26516 | { SWIG_PY_INT, (char *)"DateTime_CET", (long) wxDateTime::CET, 0, 0, 0}, | |
26517 | { SWIG_PY_INT, (char *)"DateTime_CEST", (long) wxDateTime::CEST, 0, 0, 0}, | |
26518 | { SWIG_PY_INT, (char *)"DateTime_EET", (long) wxDateTime::EET, 0, 0, 0}, | |
26519 | { SWIG_PY_INT, (char *)"DateTime_EEST", (long) wxDateTime::EEST, 0, 0, 0}, | |
26520 | { SWIG_PY_INT, (char *)"DateTime_MSK", (long) wxDateTime::MSK, 0, 0, 0}, | |
26521 | { SWIG_PY_INT, (char *)"DateTime_MSD", (long) wxDateTime::MSD, 0, 0, 0}, | |
26522 | { SWIG_PY_INT, (char *)"DateTime_AST", (long) wxDateTime::AST, 0, 0, 0}, | |
26523 | { SWIG_PY_INT, (char *)"DateTime_ADT", (long) wxDateTime::ADT, 0, 0, 0}, | |
26524 | { SWIG_PY_INT, (char *)"DateTime_EST", (long) wxDateTime::EST, 0, 0, 0}, | |
26525 | { SWIG_PY_INT, (char *)"DateTime_EDT", (long) wxDateTime::EDT, 0, 0, 0}, | |
26526 | { SWIG_PY_INT, (char *)"DateTime_CST", (long) wxDateTime::CST, 0, 0, 0}, | |
26527 | { SWIG_PY_INT, (char *)"DateTime_CDT", (long) wxDateTime::CDT, 0, 0, 0}, | |
26528 | { SWIG_PY_INT, (char *)"DateTime_MST", (long) wxDateTime::MST, 0, 0, 0}, | |
26529 | { SWIG_PY_INT, (char *)"DateTime_MDT", (long) wxDateTime::MDT, 0, 0, 0}, | |
26530 | { SWIG_PY_INT, (char *)"DateTime_PST", (long) wxDateTime::PST, 0, 0, 0}, | |
26531 | { SWIG_PY_INT, (char *)"DateTime_PDT", (long) wxDateTime::PDT, 0, 0, 0}, | |
26532 | { SWIG_PY_INT, (char *)"DateTime_HST", (long) wxDateTime::HST, 0, 0, 0}, | |
26533 | { SWIG_PY_INT, (char *)"DateTime_AKST", (long) wxDateTime::AKST, 0, 0, 0}, | |
26534 | { SWIG_PY_INT, (char *)"DateTime_AKDT", (long) wxDateTime::AKDT, 0, 0, 0}, | |
26535 | { SWIG_PY_INT, (char *)"DateTime_A_WST", (long) wxDateTime::A_WST, 0, 0, 0}, | |
26536 | { SWIG_PY_INT, (char *)"DateTime_A_CST", (long) wxDateTime::A_CST, 0, 0, 0}, | |
26537 | { SWIG_PY_INT, (char *)"DateTime_A_EST", (long) wxDateTime::A_EST, 0, 0, 0}, | |
26538 | { SWIG_PY_INT, (char *)"DateTime_A_ESST", (long) wxDateTime::A_ESST, 0, 0, 0}, | |
26539 | { SWIG_PY_INT, (char *)"DateTime_UTC", (long) wxDateTime::UTC, 0, 0, 0}, | |
26540 | { SWIG_PY_INT, (char *)"DateTime_Gregorian", (long) wxDateTime::Gregorian, 0, 0, 0}, | |
26541 | { SWIG_PY_INT, (char *)"DateTime_Julian", (long) wxDateTime::Julian, 0, 0, 0}, | |
26542 | { SWIG_PY_INT, (char *)"DateTime_Gr_Unknown", (long) wxDateTime::Gr_Unknown, 0, 0, 0}, | |
26543 | { SWIG_PY_INT, (char *)"DateTime_Gr_Standard", (long) wxDateTime::Gr_Standard, 0, 0, 0}, | |
26544 | { SWIG_PY_INT, (char *)"DateTime_Gr_Alaska", (long) wxDateTime::Gr_Alaska, 0, 0, 0}, | |
26545 | { SWIG_PY_INT, (char *)"DateTime_Gr_Albania", (long) wxDateTime::Gr_Albania, 0, 0, 0}, | |
26546 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria", (long) wxDateTime::Gr_Austria, 0, 0, 0}, | |
26547 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Brixen", (long) wxDateTime::Gr_Austria_Brixen, 0, 0, 0}, | |
26548 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Salzburg", (long) wxDateTime::Gr_Austria_Salzburg, 0, 0, 0}, | |
26549 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Tyrol", (long) wxDateTime::Gr_Austria_Tyrol, 0, 0, 0}, | |
26550 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Carinthia", (long) wxDateTime::Gr_Austria_Carinthia, 0, 0, 0}, | |
26551 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Styria", (long) wxDateTime::Gr_Austria_Styria, 0, 0, 0}, | |
26552 | { SWIG_PY_INT, (char *)"DateTime_Gr_Belgium", (long) wxDateTime::Gr_Belgium, 0, 0, 0}, | |
26553 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria", (long) wxDateTime::Gr_Bulgaria, 0, 0, 0}, | |
26554 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_1", (long) wxDateTime::Gr_Bulgaria_1, 0, 0, 0}, | |
26555 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_2", (long) wxDateTime::Gr_Bulgaria_2, 0, 0, 0}, | |
26556 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_3", (long) wxDateTime::Gr_Bulgaria_3, 0, 0, 0}, | |
26557 | { SWIG_PY_INT, (char *)"DateTime_Gr_Canada", (long) wxDateTime::Gr_Canada, 0, 0, 0}, | |
26558 | { SWIG_PY_INT, (char *)"DateTime_Gr_China", (long) wxDateTime::Gr_China, 0, 0, 0}, | |
26559 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_1", (long) wxDateTime::Gr_China_1, 0, 0, 0}, | |
26560 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_2", (long) wxDateTime::Gr_China_2, 0, 0, 0}, | |
26561 | { SWIG_PY_INT, (char *)"DateTime_Gr_Czechoslovakia", (long) wxDateTime::Gr_Czechoslovakia, 0, 0, 0}, | |
26562 | { SWIG_PY_INT, (char *)"DateTime_Gr_Denmark", (long) wxDateTime::Gr_Denmark, 0, 0, 0}, | |
26563 | { SWIG_PY_INT, (char *)"DateTime_Gr_Egypt", (long) wxDateTime::Gr_Egypt, 0, 0, 0}, | |
26564 | { SWIG_PY_INT, (char *)"DateTime_Gr_Estonia", (long) wxDateTime::Gr_Estonia, 0, 0, 0}, | |
26565 | { SWIG_PY_INT, (char *)"DateTime_Gr_Finland", (long) wxDateTime::Gr_Finland, 0, 0, 0}, | |
26566 | { SWIG_PY_INT, (char *)"DateTime_Gr_France", (long) wxDateTime::Gr_France, 0, 0, 0}, | |
26567 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Alsace", (long) wxDateTime::Gr_France_Alsace, 0, 0, 0}, | |
26568 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Lorraine", (long) wxDateTime::Gr_France_Lorraine, 0, 0, 0}, | |
26569 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Strasbourg", (long) wxDateTime::Gr_France_Strasbourg, 0, 0, 0}, | |
26570 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany", (long) wxDateTime::Gr_Germany, 0, 0, 0}, | |
26571 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Catholic", (long) wxDateTime::Gr_Germany_Catholic, 0, 0, 0}, | |
26572 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Prussia", (long) wxDateTime::Gr_Germany_Prussia, 0, 0, 0}, | |
26573 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Protestant", (long) wxDateTime::Gr_Germany_Protestant, 0, 0, 0}, | |
26574 | { SWIG_PY_INT, (char *)"DateTime_Gr_GreatBritain", (long) wxDateTime::Gr_GreatBritain, 0, 0, 0}, | |
26575 | { SWIG_PY_INT, (char *)"DateTime_Gr_Greece", (long) wxDateTime::Gr_Greece, 0, 0, 0}, | |
26576 | { SWIG_PY_INT, (char *)"DateTime_Gr_Hungary", (long) wxDateTime::Gr_Hungary, 0, 0, 0}, | |
26577 | { SWIG_PY_INT, (char *)"DateTime_Gr_Ireland", (long) wxDateTime::Gr_Ireland, 0, 0, 0}, | |
26578 | { SWIG_PY_INT, (char *)"DateTime_Gr_Italy", (long) wxDateTime::Gr_Italy, 0, 0, 0}, | |
26579 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan", (long) wxDateTime::Gr_Japan, 0, 0, 0}, | |
26580 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_1", (long) wxDateTime::Gr_Japan_1, 0, 0, 0}, | |
26581 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_2", (long) wxDateTime::Gr_Japan_2, 0, 0, 0}, | |
26582 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_3", (long) wxDateTime::Gr_Japan_3, 0, 0, 0}, | |
26583 | { SWIG_PY_INT, (char *)"DateTime_Gr_Latvia", (long) wxDateTime::Gr_Latvia, 0, 0, 0}, | |
26584 | { SWIG_PY_INT, (char *)"DateTime_Gr_Lithuania", (long) wxDateTime::Gr_Lithuania, 0, 0, 0}, | |
26585 | { SWIG_PY_INT, (char *)"DateTime_Gr_Luxemburg", (long) wxDateTime::Gr_Luxemburg, 0, 0, 0}, | |
26586 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands", (long) wxDateTime::Gr_Netherlands, 0, 0, 0}, | |
26587 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Groningen", (long) wxDateTime::Gr_Netherlands_Groningen, 0, 0, 0}, | |
26588 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Gelderland", (long) wxDateTime::Gr_Netherlands_Gelderland, 0, 0, 0}, | |
26589 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Utrecht", (long) wxDateTime::Gr_Netherlands_Utrecht, 0, 0, 0}, | |
26590 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Friesland", (long) wxDateTime::Gr_Netherlands_Friesland, 0, 0, 0}, | |
26591 | { SWIG_PY_INT, (char *)"DateTime_Gr_Norway", (long) wxDateTime::Gr_Norway, 0, 0, 0}, | |
26592 | { SWIG_PY_INT, (char *)"DateTime_Gr_Poland", (long) wxDateTime::Gr_Poland, 0, 0, 0}, | |
26593 | { SWIG_PY_INT, (char *)"DateTime_Gr_Portugal", (long) wxDateTime::Gr_Portugal, 0, 0, 0}, | |
26594 | { SWIG_PY_INT, (char *)"DateTime_Gr_Romania", (long) wxDateTime::Gr_Romania, 0, 0, 0}, | |
26595 | { SWIG_PY_INT, (char *)"DateTime_Gr_Russia", (long) wxDateTime::Gr_Russia, 0, 0, 0}, | |
26596 | { SWIG_PY_INT, (char *)"DateTime_Gr_Scotland", (long) wxDateTime::Gr_Scotland, 0, 0, 0}, | |
26597 | { SWIG_PY_INT, (char *)"DateTime_Gr_Spain", (long) wxDateTime::Gr_Spain, 0, 0, 0}, | |
26598 | { SWIG_PY_INT, (char *)"DateTime_Gr_Sweden", (long) wxDateTime::Gr_Sweden, 0, 0, 0}, | |
26599 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland", (long) wxDateTime::Gr_Switzerland, 0, 0, 0}, | |
26600 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Catholic", (long) wxDateTime::Gr_Switzerland_Catholic, 0, 0, 0}, | |
26601 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Protestant", (long) wxDateTime::Gr_Switzerland_Protestant, 0, 0, 0}, | |
26602 | { SWIG_PY_INT, (char *)"DateTime_Gr_Turkey", (long) wxDateTime::Gr_Turkey, 0, 0, 0}, | |
26603 | { SWIG_PY_INT, (char *)"DateTime_Gr_USA", (long) wxDateTime::Gr_USA, 0, 0, 0}, | |
26604 | { SWIG_PY_INT, (char *)"DateTime_Gr_Wales", (long) wxDateTime::Gr_Wales, 0, 0, 0}, | |
26605 | { SWIG_PY_INT, (char *)"DateTime_Gr_Yugoslavia", (long) wxDateTime::Gr_Yugoslavia, 0, 0, 0}, | |
26606 | { SWIG_PY_INT, (char *)"DateTime_Country_Unknown", (long) wxDateTime::Country_Unknown, 0, 0, 0}, | |
26607 | { SWIG_PY_INT, (char *)"DateTime_Country_Default", (long) wxDateTime::Country_Default, 0, 0, 0}, | |
26608 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_Start", (long) wxDateTime::Country_WesternEurope_Start, 0, 0, 0}, | |
26609 | { SWIG_PY_INT, (char *)"DateTime_Country_EEC", (long) wxDateTime::Country_EEC, 0, 0, 0}, | |
26610 | { SWIG_PY_INT, (char *)"DateTime_France", (long) wxDateTime::France, 0, 0, 0}, | |
26611 | { SWIG_PY_INT, (char *)"DateTime_Germany", (long) wxDateTime::Germany, 0, 0, 0}, | |
26612 | { SWIG_PY_INT, (char *)"DateTime_UK", (long) wxDateTime::UK, 0, 0, 0}, | |
26613 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_End", (long) wxDateTime::Country_WesternEurope_End, 0, 0, 0}, | |
26614 | { SWIG_PY_INT, (char *)"DateTime_Russia", (long) wxDateTime::Russia, 0, 0, 0}, | |
26615 | { SWIG_PY_INT, (char *)"DateTime_USA", (long) wxDateTime::USA, 0, 0, 0}, | |
26616 | { SWIG_PY_INT, (char *)"DateTime_Jan", (long) wxDateTime::Jan, 0, 0, 0}, | |
26617 | { SWIG_PY_INT, (char *)"DateTime_Feb", (long) wxDateTime::Feb, 0, 0, 0}, | |
26618 | { SWIG_PY_INT, (char *)"DateTime_Mar", (long) wxDateTime::Mar, 0, 0, 0}, | |
26619 | { SWIG_PY_INT, (char *)"DateTime_Apr", (long) wxDateTime::Apr, 0, 0, 0}, | |
26620 | { SWIG_PY_INT, (char *)"DateTime_May", (long) wxDateTime::May, 0, 0, 0}, | |
26621 | { SWIG_PY_INT, (char *)"DateTime_Jun", (long) wxDateTime::Jun, 0, 0, 0}, | |
26622 | { SWIG_PY_INT, (char *)"DateTime_Jul", (long) wxDateTime::Jul, 0, 0, 0}, | |
26623 | { SWIG_PY_INT, (char *)"DateTime_Aug", (long) wxDateTime::Aug, 0, 0, 0}, | |
26624 | { SWIG_PY_INT, (char *)"DateTime_Sep", (long) wxDateTime::Sep, 0, 0, 0}, | |
26625 | { SWIG_PY_INT, (char *)"DateTime_Oct", (long) wxDateTime::Oct, 0, 0, 0}, | |
26626 | { SWIG_PY_INT, (char *)"DateTime_Nov", (long) wxDateTime::Nov, 0, 0, 0}, | |
26627 | { SWIG_PY_INT, (char *)"DateTime_Dec", (long) wxDateTime::Dec, 0, 0, 0}, | |
26628 | { SWIG_PY_INT, (char *)"DateTime_Inv_Month", (long) wxDateTime::Inv_Month, 0, 0, 0}, | |
26629 | { SWIG_PY_INT, (char *)"DateTime_Sun", (long) wxDateTime::Sun, 0, 0, 0}, | |
26630 | { SWIG_PY_INT, (char *)"DateTime_Mon", (long) wxDateTime::Mon, 0, 0, 0}, | |
26631 | { SWIG_PY_INT, (char *)"DateTime_Tue", (long) wxDateTime::Tue, 0, 0, 0}, | |
26632 | { SWIG_PY_INT, (char *)"DateTime_Wed", (long) wxDateTime::Wed, 0, 0, 0}, | |
26633 | { SWIG_PY_INT, (char *)"DateTime_Thu", (long) wxDateTime::Thu, 0, 0, 0}, | |
26634 | { SWIG_PY_INT, (char *)"DateTime_Fri", (long) wxDateTime::Fri, 0, 0, 0}, | |
26635 | { SWIG_PY_INT, (char *)"DateTime_Sat", (long) wxDateTime::Sat, 0, 0, 0}, | |
26636 | { SWIG_PY_INT, (char *)"DateTime_Inv_WeekDay", (long) wxDateTime::Inv_WeekDay, 0, 0, 0}, | |
26637 | { SWIG_PY_INT, (char *)"DateTime_Inv_Year", (long) wxDateTime::Inv_Year, 0, 0, 0}, | |
26638 | { SWIG_PY_INT, (char *)"DateTime_Name_Full", (long) wxDateTime::Name_Full, 0, 0, 0}, | |
26639 | { SWIG_PY_INT, (char *)"DateTime_Name_Abbr", (long) wxDateTime::Name_Abbr, 0, 0, 0}, | |
26640 | { SWIG_PY_INT, (char *)"DateTime_Default_First", (long) wxDateTime::Default_First, 0, 0, 0}, | |
26641 | { SWIG_PY_INT, (char *)"DateTime_Monday_First", (long) wxDateTime::Monday_First, 0, 0, 0}, | |
26642 | { SWIG_PY_INT, (char *)"DateTime_Sunday_First", (long) wxDateTime::Sunday_First, 0, 0, 0}, | |
26643 | { SWIG_PY_INT, (char *)"DF_INVALID", (long) wxDF_INVALID, 0, 0, 0}, | |
26644 | { SWIG_PY_INT, (char *)"DF_TEXT", (long) wxDF_TEXT, 0, 0, 0}, | |
26645 | { SWIG_PY_INT, (char *)"DF_BITMAP", (long) wxDF_BITMAP, 0, 0, 0}, | |
26646 | { SWIG_PY_INT, (char *)"DF_METAFILE", (long) wxDF_METAFILE, 0, 0, 0}, | |
26647 | { SWIG_PY_INT, (char *)"DF_SYLK", (long) wxDF_SYLK, 0, 0, 0}, | |
26648 | { SWIG_PY_INT, (char *)"DF_DIF", (long) wxDF_DIF, 0, 0, 0}, | |
26649 | { SWIG_PY_INT, (char *)"DF_TIFF", (long) wxDF_TIFF, 0, 0, 0}, | |
26650 | { SWIG_PY_INT, (char *)"DF_OEMTEXT", (long) wxDF_OEMTEXT, 0, 0, 0}, | |
26651 | { SWIG_PY_INT, (char *)"DF_DIB", (long) wxDF_DIB, 0, 0, 0}, | |
26652 | { SWIG_PY_INT, (char *)"DF_PALETTE", (long) wxDF_PALETTE, 0, 0, 0}, | |
26653 | { SWIG_PY_INT, (char *)"DF_PENDATA", (long) wxDF_PENDATA, 0, 0, 0}, | |
26654 | { SWIG_PY_INT, (char *)"DF_RIFF", (long) wxDF_RIFF, 0, 0, 0}, | |
26655 | { SWIG_PY_INT, (char *)"DF_WAVE", (long) wxDF_WAVE, 0, 0, 0}, | |
26656 | { SWIG_PY_INT, (char *)"DF_UNICODETEXT", (long) wxDF_UNICODETEXT, 0, 0, 0}, | |
26657 | { SWIG_PY_INT, (char *)"DF_ENHMETAFILE", (long) wxDF_ENHMETAFILE, 0, 0, 0}, | |
26658 | { SWIG_PY_INT, (char *)"DF_FILENAME", (long) wxDF_FILENAME, 0, 0, 0}, | |
26659 | { SWIG_PY_INT, (char *)"DF_LOCALE", (long) wxDF_LOCALE, 0, 0, 0}, | |
26660 | { SWIG_PY_INT, (char *)"DF_PRIVATE", (long) wxDF_PRIVATE, 0, 0, 0}, | |
26661 | { SWIG_PY_INT, (char *)"DF_HTML", (long) wxDF_HTML, 0, 0, 0}, | |
26662 | { SWIG_PY_INT, (char *)"DF_MAX", (long) wxDF_MAX, 0, 0, 0}, | |
26663 | { SWIG_PY_INT, (char *)"DataObject_Get", (long) wxDataObject::Get, 0, 0, 0}, | |
26664 | { SWIG_PY_INT, (char *)"DataObject_Set", (long) wxDataObject::Set, 0, 0, 0}, | |
26665 | { SWIG_PY_INT, (char *)"DataObject_Both", (long) wxDataObject::Both, 0, 0, 0}, | |
26666 | { SWIG_PY_INT, (char *)"Drag_CopyOnly", (long) wxDrag_CopyOnly, 0, 0, 0}, | |
26667 | { SWIG_PY_INT, (char *)"Drag_AllowMove", (long) wxDrag_AllowMove, 0, 0, 0}, | |
26668 | { SWIG_PY_INT, (char *)"Drag_DefaultMove", (long) wxDrag_DefaultMove, 0, 0, 0}, | |
26669 | { SWIG_PY_INT, (char *)"DragError", (long) wxDragError, 0, 0, 0}, | |
26670 | { SWIG_PY_INT, (char *)"DragNone", (long) wxDragNone, 0, 0, 0}, | |
26671 | { SWIG_PY_INT, (char *)"DragCopy", (long) wxDragCopy, 0, 0, 0}, | |
26672 | { SWIG_PY_INT, (char *)"DragMove", (long) wxDragMove, 0, 0, 0}, | |
26673 | { SWIG_PY_INT, (char *)"DragLink", (long) wxDragLink, 0, 0, 0}, | |
26674 | { SWIG_PY_INT, (char *)"DragCancel", (long) wxDragCancel, 0, 0, 0}, | |
26675 | {0}}; | |
26676 | ||
26677 | #ifdef __cplusplus | |
26678 | } | |
26679 | #endif | |
26680 | ||
26681 | #ifdef __cplusplus | |
26682 | extern "C" | |
26683 | #endif | |
26684 | SWIGEXPORT(void) SWIG_init(void) { | |
26685 | static PyObject *SWIG_globals = 0; | |
26686 | static int typeinit = 0; | |
26687 | PyObject *m, *d; | |
26688 | int i; | |
26689 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26690 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26691 | d = PyModule_GetDict(m); | |
26692 | ||
26693 | if (!typeinit) { | |
26694 | for (i = 0; swig_types_initial[i]; i++) { | |
26695 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26696 | } | |
26697 | typeinit = 1; | |
26698 | } | |
26699 | SWIG_InstallConstants(d,swig_const_table); | |
26700 | ||
b2dc1044 RD |
26701 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
26702 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
26703 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
26704 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
d14a1e28 RD |
26705 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
26706 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
26707 | ||
26708 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
26709 | ||
26710 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
26711 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
26712 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
26713 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
d14a1e28 RD |
26714 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
26715 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
26716 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
26717 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
26718 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
26719 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
26720 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
26721 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
26722 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
26723 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
26724 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
26725 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
26726 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
26727 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
26728 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
26729 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
26730 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
26731 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
26732 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
26733 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
26734 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
26735 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
26736 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
26737 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
26738 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
26739 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
26740 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
26741 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
26742 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
26743 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
26744 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
26745 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
26746 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
26747 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
26748 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
26749 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
26750 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
26751 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
26752 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
26753 | ||
26754 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
26755 | ||
b2dc1044 RD |
26756 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
26757 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
d14a1e28 RD |
26758 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
26759 | ||
26760 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
26761 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
26762 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
26763 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
26764 | ||
26765 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
26766 | } | |
26767 |