]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
51 | ||
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
93 | #ifdef __cplusplus | |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
105 | swig_dycast_func dcast; | |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
136 | #include "Python.h" | |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
210 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
211 | #define SWIGTYPE_p_wxFileHistory swig_types[2] | |
212 | #define SWIGTYPE_p_wxLog swig_types[3] | |
213 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4] | |
214 | #define SWIGTYPE_p_wxMenu swig_types[5] | |
215 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
216 | #define SWIGTYPE_p_wxConfigBase swig_types[7] | |
217 | #define SWIGTYPE_p_wxDisplay swig_types[8] | |
218 | #define SWIGTYPE_p_wxFileType swig_types[9] | |
219 | #define SWIGTYPE_p_wxLogGui swig_types[10] | |
220 | #define SWIGTYPE_p_wxFont swig_types[11] | |
221 | #define SWIGTYPE_p_wxDataFormat swig_types[12] | |
222 | #define SWIGTYPE_p_wxTimerEvent swig_types[13] | |
223 | #define SWIGTYPE_p_wxCaret swig_types[14] | |
224 | #define SWIGTYPE_p_int swig_types[15] | |
225 | #define SWIGTYPE_p_wxSize swig_types[16] | |
226 | #define SWIGTYPE_p_wxClipboard swig_types[17] | |
227 | #define SWIGTYPE_p_wxStopWatch swig_types[18] | |
228 | #define SWIGTYPE_p_wxDC swig_types[19] | |
229 | #define SWIGTYPE_p_wxClipboardLocker swig_types[20] | |
230 | #define SWIGTYPE_p_wxIcon swig_types[21] | |
231 | #define SWIGTYPE_p_wxLogStderr swig_types[22] | |
232 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[23] | |
233 | #define SWIGTYPE_p_wxTextCtrl swig_types[24] | |
234 | #define SWIGTYPE_p_wxBusyCursor swig_types[25] | |
235 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[26] | |
236 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[27] | |
237 | #define SWIGTYPE_p_wxTextDataObject swig_types[28] | |
238 | #define SWIGTYPE_p_wxDataObject swig_types[29] | |
239 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[30] | |
240 | #define SWIGTYPE_p_wxFileDataObject swig_types[31] | |
241 | #define SWIGTYPE_p_wxCustomDataObject swig_types[32] | |
242 | #define SWIGTYPE_p_wxURLDataObject swig_types[33] | |
243 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[34] | |
244 | #define SWIGTYPE_p_wxSound swig_types[35] | |
245 | #define SWIGTYPE_p_wxTimerRunner swig_types[36] | |
246 | #define SWIGTYPE_p_wxLogWindow swig_types[37] | |
247 | #define SWIGTYPE_p_wxTimeSpan swig_types[38] | |
248 | #define SWIGTYPE_p_wxArrayString swig_types[39] | |
249 | #define SWIGTYPE_p_wxWindowDisabler swig_types[40] | |
250 | #define SWIGTYPE_p_wxToolTip swig_types[41] | |
251 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[42] | |
252 | #define SWIGTYPE_p_wxFileConfig swig_types[43] | |
253 | #define SWIGTYPE_p_wxSystemSettings swig_types[44] | |
254 | #define SWIGTYPE_p_wxVideoMode swig_types[45] | |
255 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[46] | |
256 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[47] | |
257 | #define SWIGTYPE_p_wxEvtHandler swig_types[48] | |
258 | #define SWIGTYPE_p_wxRect swig_types[49] | |
259 | #define SWIGTYPE_p_char swig_types[50] | |
260 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[51] | |
261 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[52] | |
262 | #define SWIGTYPE_p_wxFrame swig_types[53] | |
263 | #define SWIGTYPE_p_wxTimer swig_types[54] | |
264 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[55] | |
265 | #define SWIGTYPE_p_wxPyArtProvider swig_types[56] | |
266 | #define SWIGTYPE_p_wxPyTipProvider swig_types[57] | |
267 | #define SWIGTYPE_p_wxTipProvider swig_types[58] | |
268 | #define SWIGTYPE_p_wxJoystick swig_types[59] | |
269 | #define SWIGTYPE_p_wxSystemOptions swig_types[60] | |
270 | #define SWIGTYPE_p_wxPoint swig_types[61] | |
271 | #define SWIGTYPE_p_wxJoystickEvent swig_types[62] | |
272 | #define SWIGTYPE_p_wxCursor swig_types[63] | |
273 | #define SWIGTYPE_p_wxObject swig_types[64] | |
274 | #define SWIGTYPE_p_wxOutputStream swig_types[65] | |
275 | #define SWIGTYPE_p_wxDateTime swig_types[66] | |
276 | #define SWIGTYPE_p_wxPyDropSource swig_types[67] | |
277 | #define SWIGTYPE_p_wxWindow swig_types[68] | |
278 | #define SWIGTYPE_p_wxString swig_types[69] | |
279 | #define SWIGTYPE_p_wxPyProcess swig_types[70] | |
280 | #define SWIGTYPE_p_wxBitmap swig_types[71] | |
281 | #define SWIGTYPE_p_wxConfig swig_types[72] | |
282 | #define SWIGTYPE_p_wxChar swig_types[73] | |
283 | #define SWIGTYPE_p_wxBusyInfo swig_types[74] | |
284 | #define SWIGTYPE_p_wxPyDropTarget swig_types[75] | |
285 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[76] | |
286 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[77] | |
287 | #define SWIGTYPE_p_wxProcessEvent swig_types[78] | |
288 | #define SWIGTYPE_p_wxPyLog swig_types[79] | |
289 | #define SWIGTYPE_p_wxLogNull swig_types[80] | |
290 | #define SWIGTYPE_p_wxColour swig_types[81] | |
291 | #define SWIGTYPE_p_wxByte swig_types[82] | |
292 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[83] | |
293 | #define SWIGTYPE_p_wxPyTimer swig_types[84] | |
294 | #define SWIGTYPE_p_wxDateSpan swig_types[85] | |
295 | static swig_type_info *swig_types[87]; | |
296 | ||
297 | /* -------- TYPES TABLE (END) -------- */ | |
298 | ||
299 | ||
300 | /*----------------------------------------------- | |
301 | @(target):= _misc.so | |
302 | ------------------------------------------------*/ | |
303 | #define SWIG_init init_misc | |
304 | ||
305 | #define SWIG_name "_misc" | |
306 | ||
307 | /* Auxiliar swig macros */ | |
308 | ||
309 | #ifdef __cplusplus | |
310 | #define SWIGSTATICINLINE(a) static inline a | |
311 | #define SWIGSTATIC(a) static a | |
312 | #define swig_new_array(type, size) (new type[(size)]) | |
313 | #define swig_delete_array(cptr) delete[] cptr | |
314 | #define swig_const_cast(type,a) const_cast<type>(a) | |
315 | #define swig_static_cast(type,a) static_cast<type>(a) | |
316 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
317 | ||
318 | #ifdef HAVE_NUMERIC_CAST | |
319 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
320 | #else | |
321 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
322 | #endif | |
323 | ||
324 | #else /* C case */ | |
325 | ||
326 | #define SWIGSTATICINLINE(a) static a | |
327 | #define SWIGSTATIC(a) static a | |
328 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
329 | #define swig_delete_array(cptr) free((char*)cptr) | |
330 | #define swig_const_cast(type,a) (type)(a) | |
331 | #define swig_static_cast(type,a) (type)(a) | |
332 | #define swig_reinterpret_cast(type,a) (type)(a) | |
333 | #define swig_numeric_cast(type,a) (type)(a) | |
334 | ||
335 | #endif /* __cplusplus */ | |
336 | ||
337 | ||
338 | #define SWIG_FromSignedChar PyInt_FromLong | |
339 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
340 | #define SWIG_FromShort PyInt_FromLong | |
341 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
342 | #define SWIG_FromInt PyInt_FromLong | |
343 | #define SWIG_FromLong PyInt_FromLong | |
344 | #define SWIG_FromFloat PyFloat_FromDouble | |
345 | #define SWIG_FromDouble PyFloat_FromDouble | |
346 | #define SWIG_FromFloat PyFloat_FromDouble | |
347 | #define SWIG_FromDouble PyFloat_FromDouble | |
348 | ||
349 | ||
350 | #include "wx/wxPython/wxPython.h" | |
351 | #include "wx/wxPython/pyclasses.h" | |
352 | #include "wx/wxPython/pyistream.h" | |
353 | ||
354 | ||
355 | static const wxString wxPyEmptyString(wxEmptyString); | |
356 | ||
357 | ||
358 | ||
359 | #include <limits.h> | |
360 | ||
361 | ||
362 | SWIGSTATICINLINE(long) | |
363 | SWIG_CheckLongInRange(long value, const char* type, | |
364 | long min_value, long max_value) | |
365 | { | |
366 | if (!PyErr_Occurred()) { | |
367 | if (value < min_value) { | |
368 | PyObject *err = | |
369 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
370 | value, type, min_value); | |
371 | ||
372 | PyErr_SetObject(PyExc_OverflowError, err); | |
373 | Py_DECREF(err); | |
374 | } else if (value > max_value) { | |
375 | PyObject *err = | |
376 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
377 | value, type, max_value); | |
378 | PyErr_SetObject(PyExc_OverflowError, err); | |
379 | Py_DECREF(err); | |
380 | } | |
381 | } | |
382 | return value; | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATICINLINE(long) | |
387 | SWIG_AsLong(PyObject * obj) | |
388 | { | |
389 | if (PyNumber_Check(obj)) | |
390 | return PyInt_AsLong(obj); | |
391 | else { | |
392 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
393 | obj->ob_type->tp_name); | |
394 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
395 | Py_DECREF(errmsg); | |
396 | return 0; | |
397 | } | |
398 | } | |
399 | ||
400 | ||
401 | #if INT_MAX != LONG_MAX | |
402 | SWIGSTATICINLINE(int) | |
403 | SWIG_AsInt(PyObject *obj) | |
404 | { | |
405 | return swig_numeric_cast(int, | |
406 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
407 | "int", INT_MIN, INT_MAX)); | |
408 | } | |
409 | #else | |
410 | #define SWIG_AsInt SWIG_AsLong | |
411 | #endif | |
412 | ||
413 | ||
414 | SWIGSTATICINLINE(int) | |
415 | SWIG_CheckInt(PyObject* obj) | |
416 | { | |
417 | SWIG_AsInt(obj); | |
418 | if (PyErr_Occurred()) { | |
419 | PyErr_Clear(); | |
420 | return 0; | |
421 | } else { | |
422 | return 1; | |
423 | } | |
424 | } | |
425 | ||
426 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
427 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
428 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
429 | ||
430 | SWIGSTATICINLINE(int) | |
431 | SWIG_CheckLong(PyObject* obj) | |
432 | { | |
433 | SWIG_AsLong(obj); | |
434 | if (PyErr_Occurred()) { | |
435 | PyErr_Clear(); | |
436 | return 0; | |
437 | } else { | |
438 | return 1; | |
439 | } | |
440 | } | |
441 | ||
442 | ||
443 | SWIGSTATICINLINE(bool) | |
444 | SWIG_AsBool(PyObject *obj) | |
445 | { | |
446 | return PyObject_IsTrue(obj) ? true : false; | |
447 | } | |
448 | ||
449 | ||
450 | SWIGSTATICINLINE(int) | |
451 | SWIG_CheckBool(PyObject* obj) | |
452 | { | |
453 | SWIG_AsBool(obj); | |
454 | if (PyErr_Occurred()) { | |
455 | PyErr_Clear(); | |
456 | return 0; | |
457 | } else { | |
458 | return 1; | |
459 | } | |
460 | } | |
461 | ||
462 | ||
463 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
464 | PyObject* o2; | |
465 | PyObject* o3; | |
466 | ||
467 | if (!target) { | |
468 | target = o; | |
469 | } else if (target == Py_None) { | |
470 | Py_DECREF(Py_None); | |
471 | target = o; | |
472 | } else { | |
473 | if (!PyTuple_Check(target)) { | |
474 | o2 = target; | |
475 | target = PyTuple_New(1); | |
476 | PyTuple_SetItem(target, 0, o2); | |
477 | } | |
478 | o3 = PyTuple_New(1); | |
479 | PyTuple_SetItem(o3, 0, o); | |
480 | ||
481 | o2 = target; | |
482 | target = PySequence_Concat(o2, o3); | |
483 | Py_DECREF(o2); | |
484 | Py_DECREF(o3); | |
485 | } | |
486 | return target; | |
487 | } | |
488 | ||
489 | ||
490 | long wxGetFreeMemory() | |
491 | { wxPyRaiseNotImplemented(); return 0; } | |
492 | ||
493 | ||
494 | SWIGSTATICINLINE(unsigned long) | |
495 | SWIG_AsUnsignedLong(PyObject * obj) | |
496 | { | |
497 | if (PyLong_Check(obj)) { | |
498 | return PyLong_AsUnsignedLong(obj); | |
499 | } else { | |
500 | long i = SWIG_AsLong(obj); | |
501 | if ( !PyErr_Occurred() && (i < 0)) { | |
502 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
503 | } | |
504 | return i; | |
505 | } | |
506 | } | |
507 | ||
508 | ||
509 | SWIGSTATICINLINE(int) | |
510 | SWIG_CheckUnsignedLong(PyObject* obj) | |
511 | { | |
512 | SWIG_AsUnsignedLong(obj); | |
513 | if (PyErr_Occurred()) { | |
514 | PyErr_Clear(); | |
515 | return 0; | |
516 | } else { | |
517 | return 1; | |
518 | } | |
519 | } | |
520 | ||
521 | ||
522 | SWIGSTATICINLINE(PyObject* ) | |
523 | SWIG_FromUnsignedLong(unsigned long value) | |
524 | { | |
525 | return (value > LONG_MAX) ? | |
526 | PyLong_FromUnsignedLong(value) | |
527 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
528 | } | |
529 | ||
530 | ||
531 | bool wxGetKeyState(wxKeyCode key) | |
532 | { wxPyRaiseNotImplemented(); return False; } | |
533 | ||
534 | ||
535 | void wxWakeUpMainThread() {} | |
536 | ||
537 | ||
538 | bool wxThread_IsMain() { | |
539 | #ifdef WXP_WITH_THREAD | |
540 | return wxThread::IsMain(); | |
541 | #else | |
542 | return True; | |
543 | #endif | |
544 | } | |
545 | ||
546 | ||
547 | int wxCaret_GetBlinkTime() { | |
548 | return wxCaret::GetBlinkTime(); | |
549 | } | |
550 | ||
551 | void wxCaret_SetBlinkTime(int milliseconds) { | |
552 | wxCaret::SetBlinkTime(milliseconds); | |
553 | } | |
554 | ||
555 | ||
556 | #include <wx/snglinst.h> | |
557 | ||
558 | ||
559 | #ifdef __WXMSW__ | |
560 | #include <wx/msw/private.h> | |
561 | #include <wx/dynload.h> | |
562 | #endif | |
563 | ||
564 | ||
565 | ||
566 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
567 | { | |
568 | #ifdef __WXMSW__ | |
569 | ||
570 | switch (method) | |
571 | { | |
572 | case 1: | |
573 | // This one only partially works. Appears to be an undocumented | |
574 | // "standard" convention that not all widgets adhear to. For | |
575 | // example, for some widgets backgrounds or non-client areas may | |
576 | // not be painted. | |
577 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
578 | break; | |
579 | ||
580 | case 2: | |
581 | // This one works much better, except for on XP. On Win2k nearly | |
582 | // all widgets and their children are captured correctly[**]. On | |
583 | // XP with Themes activated most native widgets draw only | |
584 | // partially, if at all. Without themes it works just like on | |
585 | // Win2k. | |
586 | // | |
587 | // ** For example the radio buttons in a wxRadioBox are not its | |
588 | // children by default, but you can capture it via the panel | |
589 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
590 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
591 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
592 | PRF_ERASEBKGND | PRF_OWNED ); | |
593 | break; | |
594 | ||
595 | case 3: | |
596 | // This one is only defined in the latest SDK and is only | |
597 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
598 | // so I expect that it will work similar to the above. Since it | |
599 | // is avaialble only on XP, it can't be compiled like this and | |
600 | // will have to be loaded dynamically. | |
601 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
602 | ||
603 | // fall through | |
604 | ||
605 | case 4: | |
606 | // Use PrintWindow if available, or fallback to WM_PRINT | |
607 | // otherwise. Unfortunately using PrintWindow is even worse than | |
608 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
609 | // at all, with or without Themes. | |
610 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
611 | static bool s_triedToLoad = False; | |
612 | static PrintWindow_t pfnPrintWindow = NULL; | |
613 | if ( !s_triedToLoad ) | |
614 | { | |
615 | ||
616 | s_triedToLoad = True; | |
617 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
618 | if ( dllUser32.IsLoaded() ) | |
619 | { | |
620 | wxLogNull nolog; // Don't report errors here | |
621 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
622 | } | |
623 | } | |
624 | if (pfnPrintWindow) | |
625 | { | |
626 | printf("Using PrintWindow\n"); | |
627 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
628 | } | |
629 | else | |
630 | { | |
631 | printf("Using WM_PRINT\n"); | |
632 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
633 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
634 | } | |
635 | } | |
636 | #endif | |
637 | } | |
638 | ||
639 | ||
640 | ||
641 | #include <wx/tipdlg.h> | |
642 | ||
643 | ||
644 | class wxPyTipProvider : public wxTipProvider { | |
645 | public: | |
646 | wxPyTipProvider(size_t currentTip) | |
647 | : wxTipProvider(currentTip) {} | |
648 | ||
649 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
650 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
651 | PYPRIVATE; | |
652 | }; | |
653 | ||
654 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
655 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
656 | ||
657 | ||
658 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
659 | ||
660 | void wxPyTimer::Notify() { | |
661 | bool found; | |
662 | bool blocked = wxPyBeginBlockThreads(); | |
663 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
664 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
665 | wxPyEndBlockThreads(blocked); | |
666 | if (! found) | |
667 | wxTimer::Notify(); | |
668 | } | |
669 | void wxPyTimer::base_Notify() { | |
670 | wxTimer::Notify(); | |
671 | } | |
672 | ||
673 | ||
674 | ||
675 | SWIGSTATICINLINE(PyObject *) | |
676 | SWIG_FromCharPtr(const char* cptr) | |
677 | { | |
678 | size_t size = cptr ? strlen(cptr) : 0; | |
679 | if (cptr) { | |
680 | if (size > INT_MAX) { | |
681 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
682 | SWIG_TypeQuery("char *"), 0); | |
683 | } else { | |
684 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
685 | } | |
686 | } else { | |
687 | Py_INCREF(Py_None); | |
688 | return Py_None; | |
689 | } | |
690 | } | |
691 | ||
692 | ||
693 | SWIGSTATICINLINE(unsigned long) | |
694 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
695 | unsigned long max_value) | |
696 | { | |
697 | if (!PyErr_Occurred()) { | |
698 | if (value > max_value) { | |
699 | PyObject *err = | |
700 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
701 | value, type, max_value); | |
702 | PyErr_SetObject(PyExc_OverflowError, err); | |
703 | Py_DECREF(err); | |
704 | } | |
705 | } | |
706 | return value; | |
707 | } | |
708 | ||
709 | ||
710 | #if UINT_MAX != ULONG_MAX | |
711 | SWIGSTATICINLINE(unsigned int) | |
712 | SWIG_AsUnsignedInt(PyObject *obj) | |
713 | { | |
714 | return swig_numeric_cast(unsigned int, | |
715 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
716 | "unsigned int", UINT_MAX)); | |
717 | } | |
718 | #else | |
719 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
720 | #endif | |
721 | ||
722 | ||
723 | SWIGSTATICINLINE(int) | |
724 | SWIG_CheckUnsignedInt(PyObject* obj) | |
725 | { | |
726 | SWIG_AsUnsignedInt(obj); | |
727 | if (PyErr_Occurred()) { | |
728 | PyErr_Clear(); | |
729 | return 0; | |
730 | } else { | |
731 | return 1; | |
732 | } | |
733 | } | |
734 | ||
735 | wxString Log_TimeStamp(){ | |
736 | wxString msg; | |
737 | wxLog::TimeStamp(&msg); | |
738 | return msg; | |
739 | } | |
740 | void wxLog_Destroy(wxLog *self){ delete self; } | |
741 | ||
742 | // A wxLog class that can be derived from in wxPython | |
743 | class wxPyLog : public wxLog { | |
744 | public: | |
745 | wxPyLog() : wxLog() {} | |
746 | ||
747 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
748 | bool found; | |
749 | bool blocked = wxPyBeginBlockThreads(); | |
750 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
751 | PyObject* s = wx2PyString(szString); | |
752 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
753 | Py_DECREF(s); | |
754 | } | |
755 | wxPyEndBlockThreads(blocked); | |
756 | if (! found) | |
757 | wxLog::DoLog(level, szString, t); | |
758 | } | |
759 | ||
760 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
761 | bool found; | |
762 | bool blocked = wxPyBeginBlockThreads(); | |
763 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
764 | PyObject* s = wx2PyString(szString); | |
765 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
766 | Py_DECREF(s); | |
767 | } | |
768 | wxPyEndBlockThreads(blocked); | |
769 | if (! found) | |
770 | wxLog::DoLogString(szString, t); | |
771 | } | |
772 | ||
773 | PYPRIVATE; | |
774 | }; | |
775 | ||
776 | ||
777 | ||
778 | ||
779 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
780 | ||
781 | ||
782 | #include <wx/joystick.h> | |
783 | ||
784 | ||
785 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
786 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
787 | class wxJoystick : public wxObject { | |
788 | public: | |
789 | wxJoystick(int joystick = wxJOYSTICK1) { | |
790 | bool blocked = wxPyBeginBlockThreads(); | |
791 | PyErr_SetString(PyExc_NotImplementedError, | |
792 | "wxJoystick is not available on this platform."); | |
793 | wxPyEndBlockThreads(blocked); | |
794 | } | |
795 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
796 | int GetZPosition() { return -1; } | |
797 | int GetButtonState() { return -1; } | |
798 | int GetPOVPosition() { return -1; } | |
799 | int GetPOVCTSPosition() { return -1; } | |
800 | int GetRudderPosition() { return -1; } | |
801 | int GetUPosition() { return -1; } | |
802 | int GetVPosition() { return -1; } | |
803 | int GetMovementThreshold() { return -1; } | |
804 | void SetMovementThreshold(int threshold) {} | |
805 | ||
806 | bool IsOk(void) { return False; } | |
807 | int GetNumberJoysticks() { return -1; } | |
808 | int GetManufacturerId() { return -1; } | |
809 | int GetProductId() { return -1; } | |
810 | wxString GetProductName() { return ""; } | |
811 | int GetXMin() { return -1; } | |
812 | int GetYMin() { return -1; } | |
813 | int GetZMin() { return -1; } | |
814 | int GetXMax() { return -1; } | |
815 | int GetYMax() { return -1; } | |
816 | int GetZMax() { return -1; } | |
817 | int GetNumberButtons() { return -1; } | |
818 | int GetNumberAxes() { return -1; } | |
819 | int GetMaxButtons() { return -1; } | |
820 | int GetMaxAxes() { return -1; } | |
821 | int GetPollingMin() { return -1; } | |
822 | int GetPollingMax() { return -1; } | |
823 | int GetRudderMin() { return -1; } | |
824 | int GetRudderMax() { return -1; } | |
825 | int GetUMin() { return -1; } | |
826 | int GetUMax() { return -1; } | |
827 | int GetVMin() { return -1; } | |
828 | int GetVMax() { return -1; } | |
829 | ||
830 | bool HasRudder() { return False; } | |
831 | bool HasZ() { return False; } | |
832 | bool HasU() { return False; } | |
833 | bool HasV() { return False; } | |
834 | bool HasPOV() { return False; } | |
835 | bool HasPOV4Dir() { return False; } | |
836 | bool HasPOVCTS() { return False; } | |
837 | ||
838 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } | |
839 | bool ReleaseCapture() { return False; } | |
840 | }; | |
841 | #endif | |
842 | ||
843 | ||
844 | #include <wx/sound.h> | |
845 | ||
846 | ||
847 | #if !wxUSE_SOUND | |
848 | // A C++ stub class for wxWave for platforms that don't have it. | |
849 | class wxSound : public wxObject | |
850 | { | |
851 | public: | |
852 | wxSound() { | |
853 | bool blocked = wxPyBeginBlockThreads(); | |
854 | PyErr_SetString(PyExc_NotImplementedError, | |
855 | "wxSound is not available on this platform."); | |
856 | wxPyEndBlockThreads(blocked); | |
857 | } | |
858 | wxSound(const wxString&, bool) { | |
859 | bool blocked = wxPyBeginBlockThreads(); | |
860 | PyErr_SetString(PyExc_NotImplementedError, | |
861 | "wxSound is not available on this platform."); | |
862 | wxPyEndBlockThreads(blocked); | |
863 | } | |
864 | wxSound(int, const wxByte*) { | |
865 | bool blocked = wxPyBeginBlockThreads(); | |
866 | PyErr_SetString(PyExc_NotImplementedError, | |
867 | "wxSound is not available on this platform."); | |
868 | wxPyEndBlockThreads(blocked); | |
869 | } | |
870 | ||
871 | ~wxSound() {}; | |
872 | ||
873 | bool Create(const wxString&, bool) { return false; } | |
874 | bool Create(int, const wxByte*) { return false; }; | |
875 | bool IsOk() { return false; }; | |
876 | bool Play(unsigned) const { return false; } | |
877 | static bool Play(const wxString&, unsigned) { return false; } | |
878 | static void Stop() {} | |
879 | }; | |
880 | ||
881 | #endif | |
882 | ||
883 | ||
884 | #include <wx/mimetype.h> | |
885 | ||
886 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
887 | wxString str; | |
888 | if (self->GetMimeType(&str)) | |
889 | return wx2PyString(str); | |
890 | else | |
891 | RETURN_NONE(); | |
892 | } | |
893 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
894 | wxArrayString arr; | |
895 | if (self->GetMimeTypes(arr)) | |
896 | return wxArrayString2PyList_helper(arr); | |
897 | else | |
898 | RETURN_NONE(); | |
899 | } | |
900 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
901 | wxArrayString arr; | |
902 | if (self->GetExtensions(arr)) | |
903 | return wxArrayString2PyList_helper(arr); | |
904 | else | |
905 | RETURN_NONE(); | |
906 | } | |
907 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
908 | wxIconLocation loc; | |
909 | if (self->GetIcon(&loc)) | |
910 | return new wxIcon(loc); | |
911 | else | |
912 | return NULL; | |
913 | } | |
914 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
915 | wxIconLocation loc; | |
916 | if (self->GetIcon(&loc)) { | |
917 | wxString iconFile = loc.GetFileName(); | |
918 | int iconIndex = -1; | |
919 | ||
920 | ||
921 | ||
922 | // Make a tuple and put the values in it | |
923 | bool blocked = wxPyBeginBlockThreads(); | |
924 | PyObject* tuple = PyTuple_New(3); | |
925 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
926 | wxT("wxIcon"), True)); | |
927 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
928 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
929 | wxPyEndBlockThreads(blocked); | |
930 | return tuple; | |
931 | } | |
932 | else | |
933 | RETURN_NONE(); | |
934 | } | |
935 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
936 | wxString str; | |
937 | if (self->GetDescription(&str)) | |
938 | return wx2PyString(str); | |
939 | else | |
940 | RETURN_NONE(); | |
941 | } | |
942 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
943 | wxString str; | |
944 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
945 | return wx2PyString(str); | |
946 | else | |
947 | RETURN_NONE(); | |
948 | } | |
949 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
950 | wxString str; | |
951 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
952 | return wx2PyString(str); | |
953 | else | |
954 | RETURN_NONE(); | |
955 | } | |
956 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
957 | wxArrayString verbs; | |
958 | wxArrayString commands; | |
959 | if (self->GetAllCommands(&verbs, &commands, | |
960 | wxFileType::MessageParameters(filename, mimetype))) { | |
961 | bool blocked = wxPyBeginBlockThreads(); | |
962 | PyObject* tuple = PyTuple_New(2); | |
963 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
964 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
965 | wxPyEndBlockThreads(blocked); | |
966 | return tuple; | |
967 | } | |
968 | else | |
969 | RETURN_NONE(); | |
970 | } | |
971 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
972 | return wxFileType::ExpandCommand(command, | |
973 | wxFileType::MessageParameters(filename, mimetype)); | |
974 | } | |
975 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
976 | wxArrayString arr; | |
977 | self->EnumAllFileTypes(arr); | |
978 | return wxArrayString2PyList_helper(arr); | |
979 | } | |
980 | ||
981 | #include <wx/artprov.h> | |
982 | ||
983 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
984 | static const wxString wxPyART_MENU(wxART_MENU); | |
985 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
986 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
987 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
988 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
989 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
990 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
991 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
992 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
993 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
994 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
995 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
996 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
997 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
998 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
999 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1000 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1001 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1002 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1003 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1004 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1005 | static const wxString wxPyART_HELP(wxART_HELP); | |
1006 | static const wxString wxPyART_TIP(wxART_TIP); | |
1007 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1008 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1009 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1010 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1011 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1012 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1013 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1014 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1015 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1016 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1017 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1018 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1019 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1020 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1021 | // Python aware wxArtProvider | |
1022 | class wxPyArtProvider : public wxArtProvider { | |
1023 | public: | |
1024 | ||
1025 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1026 | const wxArtClient& client, | |
1027 | const wxSize& size) { | |
1028 | wxBitmap rval = wxNullBitmap; | |
1029 | bool blocked = wxPyBeginBlockThreads(); | |
1030 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1031 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1032 | PyObject* ro; | |
1033 | wxBitmap* ptr; | |
1034 | PyObject* s1, *s2; | |
1035 | s1 = wx2PyString(id); | |
1036 | s2 = wx2PyString(client); | |
1037 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1038 | Py_DECREF(so); | |
1039 | Py_DECREF(s1); | |
1040 | Py_DECREF(s2); | |
1041 | if (ro) { | |
1042 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1043 | rval = *ptr; | |
1044 | Py_DECREF(ro); | |
1045 | } | |
1046 | } | |
1047 | wxPyEndBlockThreads(blocked); | |
1048 | return rval; | |
1049 | } | |
1050 | ||
1051 | PYPRIVATE; | |
1052 | }; | |
1053 | ||
1054 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1055 | ||
1056 | ||
1057 | ||
1058 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1059 | PyObject* ret = PyTuple_New(3); | |
1060 | if (ret) { | |
1061 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1062 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1063 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1064 | } | |
1065 | return ret; | |
1066 | } | |
1067 | ||
1068 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1069 | bool cont; | |
1070 | long index = 0; | |
1071 | wxString value; | |
1072 | ||
1073 | cont = self->GetFirstGroup(value, index); | |
1074 | return __EnumerationHelper(cont, value, index); | |
1075 | } | |
1076 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1077 | bool cont; | |
1078 | wxString value; | |
1079 | ||
1080 | cont = self->GetNextGroup(value, index); | |
1081 | return __EnumerationHelper(cont, value, index); | |
1082 | } | |
1083 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1084 | bool cont; | |
1085 | long index = 0; | |
1086 | wxString value; | |
1087 | ||
1088 | cont = self->GetFirstEntry(value, index); | |
1089 | return __EnumerationHelper(cont, value, index); | |
1090 | } | |
1091 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1092 | bool cont; | |
1093 | wxString value; | |
1094 | ||
1095 | cont = self->GetNextEntry(value, index); | |
1096 | return __EnumerationHelper(cont, value, index); | |
1097 | } | |
1098 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1099 | long rv; | |
1100 | self->Read(key, &rv, defaultVal); | |
1101 | return rv; | |
1102 | } | |
1103 | ||
1104 | SWIGSTATICINLINE(double) | |
1105 | SWIG_AsDouble(PyObject *obj) | |
1106 | { | |
1107 | if (PyNumber_Check(obj)) | |
1108 | return PyFloat_AsDouble(obj); | |
1109 | else { | |
1110 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1111 | obj->ob_type->tp_name); | |
1112 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1113 | Py_DECREF(errmsg); | |
1114 | return 0; | |
1115 | } | |
1116 | } | |
1117 | ||
1118 | ||
1119 | SWIGSTATICINLINE(int) | |
1120 | SWIG_CheckDouble(PyObject* obj) | |
1121 | { | |
1122 | SWIG_AsDouble(obj); | |
1123 | if (PyErr_Occurred()) { | |
1124 | PyErr_Clear(); | |
1125 | return 0; | |
1126 | } else { | |
1127 | return 1; | |
1128 | } | |
1129 | } | |
1130 | ||
1131 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1132 | double rv; | |
1133 | self->Read(key, &rv, defaultVal); | |
1134 | return rv; | |
1135 | } | |
1136 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1137 | bool rv; | |
1138 | self->Read(key, &rv, defaultVal); | |
1139 | return rv; | |
1140 | } | |
1141 | ||
1142 | #include <wx/datetime.h> | |
1143 | ||
1144 | ||
1145 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1146 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1147 | ||
1148 | #define LOCAL_TZ wxDateTime::Local | |
1149 | ||
1150 | ||
1151 | #if UINT_MAX < LONG_MAX | |
1152 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1153 | #else | |
1154 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1155 | #endif | |
1156 | ||
1157 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1158 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1159 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1160 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1161 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1162 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self < *other) : False; } | |
1163 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ return other ? (*self <= *other) : False; } | |
1164 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self > *other) : True; } | |
1165 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ return other ? (*self >= *other) : True; } | |
1166 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ return other ? (*self == *other) : False; } | |
1167 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ return other ? (*self != *other) : True; } | |
1168 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1169 | const wxChar* rv; | |
1170 | const wxChar* _date = date; | |
1171 | rv = self->ParseRfc822Date(_date); | |
1172 | if (rv == NULL) return -1; | |
1173 | return rv - _date; | |
1174 | } | |
1175 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1176 | const wxChar* rv; | |
1177 | const wxChar* _date = date; | |
1178 | rv = self->ParseFormat(_date, format, dateDef); | |
1179 | if (rv == NULL) return -1; | |
1180 | return rv - _date; | |
1181 | } | |
1182 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1183 | const wxChar* rv; | |
1184 | const wxChar* _datetime = datetime; | |
1185 | rv = self->ParseDateTime(_datetime); | |
1186 | if (rv == NULL) return -1; | |
1187 | return rv - _datetime; | |
1188 | } | |
1189 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1190 | const wxChar* rv; | |
1191 | const wxChar* _date = date; | |
1192 | rv = self->ParseDate(_date); | |
1193 | if (rv == NULL) return -1; | |
1194 | return rv - _date; | |
1195 | } | |
1196 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1197 | const wxChar* rv; | |
1198 | const wxChar* _time = time; | |
1199 | rv = self->ParseTime(_time); | |
1200 | if (rv == NULL) return -1; | |
1201 | return rv - _time; | |
1202 | } | |
1203 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1204 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1205 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1206 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
1207 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } | |
1208 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } | |
1209 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } | |
1210 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } | |
1211 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } | |
1212 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } | |
1213 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
1214 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1215 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1216 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
1217 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } | |
1218 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } | |
1219 | ||
1220 | #include <wx/dataobj.h> | |
1221 | ||
1222 | // Create a new class for wxPython to use | |
1223 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1224 | public: | |
1225 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1226 | : wxDataObjectSimple(format) {} | |
1227 | ||
1228 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1229 | bool GetDataHere(void *buf) const; | |
1230 | bool SetData(size_t len, const void *buf) const; | |
1231 | PYPRIVATE; | |
1232 | }; | |
1233 | ||
1234 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1235 | ||
1236 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1237 | // We need to get the data for this object and write it to buf. I think | |
1238 | // the best way to do this for wxPython is to have the Python method | |
1239 | // return either a string or None and then act appropriately with the | |
1240 | // C++ version. | |
1241 | ||
1242 | bool rval = False; | |
1243 | bool blocked = wxPyBeginBlockThreads(); | |
1244 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1245 | PyObject* ro; | |
1246 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1247 | if (ro) { | |
1248 | rval = (ro != Py_None && PyString_Check(ro)); | |
1249 | if (rval) | |
1250 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1251 | Py_DECREF(ro); | |
1252 | } | |
1253 | } | |
1254 | wxPyEndBlockThreads(blocked); | |
1255 | return rval; | |
1256 | } | |
1257 | ||
1258 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1259 | // For this one we simply need to make a string from buf and len | |
1260 | // and send it to the Python method. | |
1261 | bool rval = False; | |
1262 | bool blocked = wxPyBeginBlockThreads(); | |
1263 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1264 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1265 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1266 | Py_DECREF(data); | |
1267 | } | |
1268 | wxPyEndBlockThreads(blocked); | |
1269 | return rval; | |
1270 | } | |
1271 | ||
1272 | // Create a new class for wxPython to use | |
1273 | class wxPyTextDataObject : public wxTextDataObject { | |
1274 | public: | |
1275 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1276 | : wxTextDataObject(text) {} | |
1277 | ||
1278 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1279 | DEC_PYCALLBACK_STRING__const(GetText); | |
1280 | DEC_PYCALLBACK__STRING(SetText); | |
1281 | PYPRIVATE; | |
1282 | }; | |
1283 | ||
1284 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1285 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1286 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1287 | ||
1288 | ||
1289 | // Create a new class for wxPython to use | |
1290 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1291 | public: | |
1292 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1293 | : wxBitmapDataObject(bitmap) {} | |
1294 | ||
1295 | wxBitmap GetBitmap() const; | |
1296 | void SetBitmap(const wxBitmap& bitmap); | |
1297 | PYPRIVATE; | |
1298 | }; | |
1299 | ||
1300 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1301 | wxBitmap* rval = &wxNullBitmap; | |
1302 | bool blocked = wxPyBeginBlockThreads(); | |
1303 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1304 | PyObject* ro; | |
1305 | wxBitmap* ptr; | |
1306 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1307 | if (ro) { | |
1308 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1309 | rval = ptr; | |
1310 | Py_DECREF(ro); | |
1311 | } | |
1312 | } | |
1313 | wxPyEndBlockThreads(blocked); | |
1314 | return *rval; | |
1315 | } | |
1316 | ||
1317 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1318 | bool blocked = wxPyBeginBlockThreads(); | |
1319 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
1320 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); | |
1321 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
1322 | Py_DECREF(bo); | |
1323 | } | |
1324 | wxPyEndBlockThreads(blocked); | |
1325 | } | |
1326 | ||
1327 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1328 | if (PyString_Check(data)) { | |
1329 | // for Python we just call SetData here since we always need it to make a copy. | |
1330 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1331 | } | |
1332 | else { | |
1333 | // raise a TypeError if not a string | |
1334 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1335 | } | |
1336 | } | |
1337 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1338 | if (PyString_Check(data)) { | |
1339 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1340 | } | |
1341 | else { | |
1342 | // raise a TypeError if not a string | |
1343 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1344 | return False; | |
1345 | } | |
1346 | } | |
1347 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1348 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1349 | } | |
1350 | ||
1351 | class wxMetafileDataObject : public wxDataObjectSimple | |
1352 | { | |
1353 | public: | |
1354 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } | |
1355 | }; | |
1356 | ||
1357 | ||
1358 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1359 | ||
1360 | ||
1361 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1362 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1363 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1364 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1365 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1366 | ||
1367 | ||
1368 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1369 | public: | |
1370 | wxPyTextDropTarget() {} | |
1371 | ||
1372 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1373 | ||
1374 | DEC_PYCALLBACK__(OnLeave); | |
1375 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1376 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1377 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1378 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1379 | ||
1380 | PYPRIVATE; | |
1381 | }; | |
1382 | ||
1383 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1384 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1385 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1386 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1387 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1388 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1389 | ||
1390 | ||
1391 | ||
1392 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1393 | public: | |
1394 | wxPyFileDropTarget() {} | |
1395 | ||
1396 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1397 | ||
1398 | DEC_PYCALLBACK__(OnLeave); | |
1399 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1400 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1401 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1402 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1403 | ||
1404 | PYPRIVATE; | |
1405 | }; | |
1406 | ||
1407 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1408 | const wxArrayString& filenames) { | |
1409 | bool rval = False; | |
1410 | bool blocked = wxPyBeginBlockThreads(); | |
1411 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1412 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1413 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1414 | Py_DECREF(list); | |
1415 | } | |
1416 | wxPyEndBlockThreads(blocked); | |
1417 | return rval; | |
1418 | } | |
1419 | ||
1420 | ||
1421 | ||
1422 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1423 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1424 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1425 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1426 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1427 | ||
1428 | ||
1429 | ||
1430 | ||
1431 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1432 | ||
1433 | #include "wx/display.h" | |
1434 | ||
1435 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1436 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1437 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1438 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1439 | PyObject* pyList = NULL; | |
1440 | wxArrayVideoModes arr = self->GetModes(mode); | |
1441 | bool blocked = wxPyBeginBlockThreads(); | |
1442 | pyList = PyList_New(0); | |
1443 | for (int i=0; i < arr.GetCount(); i++) { | |
1444 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1445 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1446 | PyList_Append(pyList, pyObj); | |
1447 | } | |
1448 | wxPyEndBlockThreads(blocked); | |
1449 | return pyList; | |
1450 | } | |
1451 | #ifdef __cplusplus | |
1452 | extern "C" { | |
1453 | #endif | |
1454 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1455 | PyObject *resultobj; | |
1456 | int arg1 ; | |
1457 | wxColour result; | |
1458 | PyObject * obj0 = 0 ; | |
1459 | char *kwnames[] = { | |
1460 | (char *) "index", NULL | |
1461 | }; | |
1462 | ||
1463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
1464 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); | |
1465 | if (PyErr_Occurred()) SWIG_fail; | |
1466 | { | |
1467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1468 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1469 | ||
1470 | wxPyEndAllowThreads(__tstate); | |
1471 | if (PyErr_Occurred()) SWIG_fail; | |
1472 | } | |
1473 | { | |
1474 | wxColour * resultptr; | |
1475 | resultptr = new wxColour((wxColour &) result); | |
1476 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1477 | } | |
1478 | return resultobj; | |
1479 | fail: | |
1480 | return NULL; | |
1481 | } | |
1482 | ||
1483 | ||
1484 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1485 | PyObject *resultobj; | |
1486 | int arg1 ; | |
1487 | wxFont result; | |
1488 | PyObject * obj0 = 0 ; | |
1489 | char *kwnames[] = { | |
1490 | (char *) "index", NULL | |
1491 | }; | |
1492 | ||
1493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
1494 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); | |
1495 | if (PyErr_Occurred()) SWIG_fail; | |
1496 | { | |
1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1498 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1499 | ||
1500 | wxPyEndAllowThreads(__tstate); | |
1501 | if (PyErr_Occurred()) SWIG_fail; | |
1502 | } | |
1503 | { | |
1504 | wxFont * resultptr; | |
1505 | resultptr = new wxFont((wxFont &) result); | |
1506 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1507 | } | |
1508 | return resultobj; | |
1509 | fail: | |
1510 | return NULL; | |
1511 | } | |
1512 | ||
1513 | ||
1514 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1515 | PyObject *resultobj; | |
1516 | int arg1 ; | |
1517 | int result; | |
1518 | PyObject * obj0 = 0 ; | |
1519 | char *kwnames[] = { | |
1520 | (char *) "index", NULL | |
1521 | }; | |
1522 | ||
1523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
1524 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | { | |
1527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1528 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1529 | ||
1530 | wxPyEndAllowThreads(__tstate); | |
1531 | if (PyErr_Occurred()) SWIG_fail; | |
1532 | } | |
1533 | resultobj = SWIG_FromInt((int)result); | |
1534 | return resultobj; | |
1535 | fail: | |
1536 | return NULL; | |
1537 | } | |
1538 | ||
1539 | ||
1540 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1541 | PyObject *resultobj; | |
1542 | int arg1 ; | |
1543 | bool result; | |
1544 | PyObject * obj0 = 0 ; | |
1545 | char *kwnames[] = { | |
1546 | (char *) "index", NULL | |
1547 | }; | |
1548 | ||
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
1550 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); | |
1551 | if (PyErr_Occurred()) SWIG_fail; | |
1552 | { | |
1553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1554 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1555 | ||
1556 | wxPyEndAllowThreads(__tstate); | |
1557 | if (PyErr_Occurred()) SWIG_fail; | |
1558 | } | |
1559 | { | |
1560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1561 | } | |
1562 | return resultobj; | |
1563 | fail: | |
1564 | return NULL; | |
1565 | } | |
1566 | ||
1567 | ||
1568 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1569 | PyObject *resultobj; | |
1570 | int result; | |
1571 | char *kwnames[] = { | |
1572 | NULL | |
1573 | }; | |
1574 | ||
1575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1576 | { | |
1577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1578 | result = (int)wxSystemSettings::GetScreenType(); | |
1579 | ||
1580 | wxPyEndAllowThreads(__tstate); | |
1581 | if (PyErr_Occurred()) SWIG_fail; | |
1582 | } | |
1583 | resultobj = SWIG_FromInt((int)result); | |
1584 | return resultobj; | |
1585 | fail: | |
1586 | return NULL; | |
1587 | } | |
1588 | ||
1589 | ||
1590 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1591 | PyObject *resultobj; | |
1592 | int arg1 ; | |
1593 | PyObject * obj0 = 0 ; | |
1594 | char *kwnames[] = { | |
1595 | (char *) "screen", NULL | |
1596 | }; | |
1597 | ||
1598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
1599 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); | |
1600 | if (PyErr_Occurred()) SWIG_fail; | |
1601 | { | |
1602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1603 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1604 | ||
1605 | wxPyEndAllowThreads(__tstate); | |
1606 | if (PyErr_Occurred()) SWIG_fail; | |
1607 | } | |
1608 | Py_INCREF(Py_None); resultobj = Py_None; | |
1609 | return resultobj; | |
1610 | fail: | |
1611 | return NULL; | |
1612 | } | |
1613 | ||
1614 | ||
1615 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1616 | PyObject *obj; | |
1617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1618 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1619 | Py_INCREF(obj); | |
1620 | return Py_BuildValue((char *)""); | |
1621 | } | |
1622 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject *resultobj; | |
1624 | wxSystemOptions *result; | |
1625 | char *kwnames[] = { | |
1626 | NULL | |
1627 | }; | |
1628 | ||
1629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1630 | { | |
1631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1632 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1633 | ||
1634 | wxPyEndAllowThreads(__tstate); | |
1635 | if (PyErr_Occurred()) SWIG_fail; | |
1636 | } | |
1637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
1638 | return resultobj; | |
1639 | fail: | |
1640 | return NULL; | |
1641 | } | |
1642 | ||
1643 | ||
1644 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject *resultobj; | |
1646 | wxString *arg1 = 0 ; | |
1647 | wxString *arg2 = 0 ; | |
1648 | bool temp1 = False ; | |
1649 | bool temp2 = False ; | |
1650 | PyObject * obj0 = 0 ; | |
1651 | PyObject * obj1 = 0 ; | |
1652 | char *kwnames[] = { | |
1653 | (char *) "name",(char *) "value", NULL | |
1654 | }; | |
1655 | ||
1656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1657 | { | |
1658 | arg1 = wxString_in_helper(obj0); | |
1659 | if (arg1 == NULL) SWIG_fail; | |
1660 | temp1 = True; | |
1661 | } | |
1662 | { | |
1663 | arg2 = wxString_in_helper(obj1); | |
1664 | if (arg2 == NULL) SWIG_fail; | |
1665 | temp2 = True; | |
1666 | } | |
1667 | { | |
1668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1669 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1670 | ||
1671 | wxPyEndAllowThreads(__tstate); | |
1672 | if (PyErr_Occurred()) SWIG_fail; | |
1673 | } | |
1674 | Py_INCREF(Py_None); resultobj = Py_None; | |
1675 | { | |
1676 | if (temp1) | |
1677 | delete arg1; | |
1678 | } | |
1679 | { | |
1680 | if (temp2) | |
1681 | delete arg2; | |
1682 | } | |
1683 | return resultobj; | |
1684 | fail: | |
1685 | { | |
1686 | if (temp1) | |
1687 | delete arg1; | |
1688 | } | |
1689 | { | |
1690 | if (temp2) | |
1691 | delete arg2; | |
1692 | } | |
1693 | return NULL; | |
1694 | } | |
1695 | ||
1696 | ||
1697 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1698 | PyObject *resultobj; | |
1699 | wxString *arg1 = 0 ; | |
1700 | int arg2 ; | |
1701 | bool temp1 = False ; | |
1702 | PyObject * obj0 = 0 ; | |
1703 | PyObject * obj1 = 0 ; | |
1704 | char *kwnames[] = { | |
1705 | (char *) "name",(char *) "value", NULL | |
1706 | }; | |
1707 | ||
1708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
1709 | { | |
1710 | arg1 = wxString_in_helper(obj0); | |
1711 | if (arg1 == NULL) SWIG_fail; | |
1712 | temp1 = True; | |
1713 | } | |
1714 | arg2 = (int) SWIG_AsInt(obj1); | |
1715 | if (PyErr_Occurred()) SWIG_fail; | |
1716 | { | |
1717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1718 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1719 | ||
1720 | wxPyEndAllowThreads(__tstate); | |
1721 | if (PyErr_Occurred()) SWIG_fail; | |
1722 | } | |
1723 | Py_INCREF(Py_None); resultobj = Py_None; | |
1724 | { | |
1725 | if (temp1) | |
1726 | delete arg1; | |
1727 | } | |
1728 | return resultobj; | |
1729 | fail: | |
1730 | { | |
1731 | if (temp1) | |
1732 | delete arg1; | |
1733 | } | |
1734 | return NULL; | |
1735 | } | |
1736 | ||
1737 | ||
1738 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1739 | PyObject *resultobj; | |
1740 | wxString *arg1 = 0 ; | |
1741 | wxString result; | |
1742 | bool temp1 = False ; | |
1743 | PyObject * obj0 = 0 ; | |
1744 | char *kwnames[] = { | |
1745 | (char *) "name", NULL | |
1746 | }; | |
1747 | ||
1748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1749 | { | |
1750 | arg1 = wxString_in_helper(obj0); | |
1751 | if (arg1 == NULL) SWIG_fail; | |
1752 | temp1 = True; | |
1753 | } | |
1754 | { | |
1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1756 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1757 | ||
1758 | wxPyEndAllowThreads(__tstate); | |
1759 | if (PyErr_Occurred()) SWIG_fail; | |
1760 | } | |
1761 | { | |
1762 | #if wxUSE_UNICODE | |
1763 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1764 | #else | |
1765 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1766 | #endif | |
1767 | } | |
1768 | { | |
1769 | if (temp1) | |
1770 | delete arg1; | |
1771 | } | |
1772 | return resultobj; | |
1773 | fail: | |
1774 | { | |
1775 | if (temp1) | |
1776 | delete arg1; | |
1777 | } | |
1778 | return NULL; | |
1779 | } | |
1780 | ||
1781 | ||
1782 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1783 | PyObject *resultobj; | |
1784 | wxString *arg1 = 0 ; | |
1785 | int result; | |
1786 | bool temp1 = False ; | |
1787 | PyObject * obj0 = 0 ; | |
1788 | char *kwnames[] = { | |
1789 | (char *) "name", NULL | |
1790 | }; | |
1791 | ||
1792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1793 | { | |
1794 | arg1 = wxString_in_helper(obj0); | |
1795 | if (arg1 == NULL) SWIG_fail; | |
1796 | temp1 = True; | |
1797 | } | |
1798 | { | |
1799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1800 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1801 | ||
1802 | wxPyEndAllowThreads(__tstate); | |
1803 | if (PyErr_Occurred()) SWIG_fail; | |
1804 | } | |
1805 | resultobj = SWIG_FromInt((int)result); | |
1806 | { | |
1807 | if (temp1) | |
1808 | delete arg1; | |
1809 | } | |
1810 | return resultobj; | |
1811 | fail: | |
1812 | { | |
1813 | if (temp1) | |
1814 | delete arg1; | |
1815 | } | |
1816 | return NULL; | |
1817 | } | |
1818 | ||
1819 | ||
1820 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject *resultobj; | |
1822 | wxString *arg1 = 0 ; | |
1823 | bool result; | |
1824 | bool temp1 = False ; | |
1825 | PyObject * obj0 = 0 ; | |
1826 | char *kwnames[] = { | |
1827 | (char *) "name", NULL | |
1828 | }; | |
1829 | ||
1830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1831 | { | |
1832 | arg1 = wxString_in_helper(obj0); | |
1833 | if (arg1 == NULL) SWIG_fail; | |
1834 | temp1 = True; | |
1835 | } | |
1836 | { | |
1837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1838 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1839 | ||
1840 | wxPyEndAllowThreads(__tstate); | |
1841 | if (PyErr_Occurred()) SWIG_fail; | |
1842 | } | |
1843 | { | |
1844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1845 | } | |
1846 | { | |
1847 | if (temp1) | |
1848 | delete arg1; | |
1849 | } | |
1850 | return resultobj; | |
1851 | fail: | |
1852 | { | |
1853 | if (temp1) | |
1854 | delete arg1; | |
1855 | } | |
1856 | return NULL; | |
1857 | } | |
1858 | ||
1859 | ||
1860 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1861 | PyObject *obj; | |
1862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1863 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1864 | Py_INCREF(obj); | |
1865 | return Py_BuildValue((char *)""); | |
1866 | } | |
1867 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
1868 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1869 | return 1; | |
1870 | } | |
1871 | ||
1872 | ||
1873 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1874 | PyObject *pyobj; | |
1875 | ||
1876 | { | |
1877 | #if wxUSE_UNICODE | |
1878 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1879 | #else | |
1880 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1881 | #endif | |
1882 | } | |
1883 | return pyobj; | |
1884 | } | |
1885 | ||
1886 | ||
1887 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1888 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1889 | return 1; | |
1890 | } | |
1891 | ||
1892 | ||
1893 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1894 | PyObject *pyobj; | |
1895 | ||
1896 | { | |
1897 | #if wxUSE_UNICODE | |
1898 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1899 | #else | |
1900 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1901 | #endif | |
1902 | } | |
1903 | return pyobj; | |
1904 | } | |
1905 | ||
1906 | ||
1907 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1908 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1909 | return 1; | |
1910 | } | |
1911 | ||
1912 | ||
1913 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1914 | PyObject *pyobj; | |
1915 | ||
1916 | { | |
1917 | #if wxUSE_UNICODE | |
1918 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1919 | #else | |
1920 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1921 | #endif | |
1922 | } | |
1923 | return pyobj; | |
1924 | } | |
1925 | ||
1926 | ||
1927 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1928 | PyObject *resultobj; | |
1929 | long result; | |
1930 | char *kwnames[] = { | |
1931 | NULL | |
1932 | }; | |
1933 | ||
1934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1935 | { | |
1936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1937 | result = (long)wxNewId(); | |
1938 | ||
1939 | wxPyEndAllowThreads(__tstate); | |
1940 | if (PyErr_Occurred()) SWIG_fail; | |
1941 | } | |
1942 | resultobj = SWIG_FromLong((long)result); | |
1943 | return resultobj; | |
1944 | fail: | |
1945 | return NULL; | |
1946 | } | |
1947 | ||
1948 | ||
1949 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1950 | PyObject *resultobj; | |
1951 | long arg1 ; | |
1952 | PyObject * obj0 = 0 ; | |
1953 | char *kwnames[] = { | |
1954 | (char *) "id", NULL | |
1955 | }; | |
1956 | ||
1957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
1958 | arg1 = (long) SWIG_AsLong(obj0); | |
1959 | if (PyErr_Occurred()) SWIG_fail; | |
1960 | { | |
1961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1962 | wxRegisterId(arg1); | |
1963 | ||
1964 | wxPyEndAllowThreads(__tstate); | |
1965 | if (PyErr_Occurred()) SWIG_fail; | |
1966 | } | |
1967 | Py_INCREF(Py_None); resultobj = Py_None; | |
1968 | return resultobj; | |
1969 | fail: | |
1970 | return NULL; | |
1971 | } | |
1972 | ||
1973 | ||
1974 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1975 | PyObject *resultobj; | |
1976 | long result; | |
1977 | char *kwnames[] = { | |
1978 | NULL | |
1979 | }; | |
1980 | ||
1981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1982 | { | |
1983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1984 | result = (long)wxGetCurrentId(); | |
1985 | ||
1986 | wxPyEndAllowThreads(__tstate); | |
1987 | if (PyErr_Occurred()) SWIG_fail; | |
1988 | } | |
1989 | resultobj = SWIG_FromLong((long)result); | |
1990 | return resultobj; | |
1991 | fail: | |
1992 | return NULL; | |
1993 | } | |
1994 | ||
1995 | ||
1996 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1997 | PyObject *resultobj; | |
1998 | char *kwnames[] = { | |
1999 | NULL | |
2000 | }; | |
2001 | ||
2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2003 | { | |
2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2005 | wxBell(); | |
2006 | ||
2007 | wxPyEndAllowThreads(__tstate); | |
2008 | if (PyErr_Occurred()) SWIG_fail; | |
2009 | } | |
2010 | Py_INCREF(Py_None); resultobj = Py_None; | |
2011 | return resultobj; | |
2012 | fail: | |
2013 | return NULL; | |
2014 | } | |
2015 | ||
2016 | ||
2017 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2018 | PyObject *resultobj; | |
2019 | char *kwnames[] = { | |
2020 | NULL | |
2021 | }; | |
2022 | ||
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2024 | { | |
2025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2026 | wxEndBusyCursor(); | |
2027 | ||
2028 | wxPyEndAllowThreads(__tstate); | |
2029 | if (PyErr_Occurred()) SWIG_fail; | |
2030 | } | |
2031 | Py_INCREF(Py_None); resultobj = Py_None; | |
2032 | return resultobj; | |
2033 | fail: | |
2034 | return NULL; | |
2035 | } | |
2036 | ||
2037 | ||
2038 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2039 | PyObject *resultobj; | |
2040 | bool arg1 = (bool) True ; | |
2041 | long result; | |
2042 | PyObject * obj0 = 0 ; | |
2043 | char *kwnames[] = { | |
2044 | (char *) "resetTimer", NULL | |
2045 | }; | |
2046 | ||
2047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2048 | if (obj0) { | |
2049 | arg1 = (bool) SWIG_AsBool(obj0); | |
2050 | if (PyErr_Occurred()) SWIG_fail; | |
2051 | } | |
2052 | { | |
2053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2054 | result = (long)wxGetElapsedTime(arg1); | |
2055 | ||
2056 | wxPyEndAllowThreads(__tstate); | |
2057 | if (PyErr_Occurred()) SWIG_fail; | |
2058 | } | |
2059 | resultobj = SWIG_FromLong((long)result); | |
2060 | return resultobj; | |
2061 | fail: | |
2062 | return NULL; | |
2063 | } | |
2064 | ||
2065 | ||
2066 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2067 | PyObject *resultobj; | |
2068 | int *arg1 = (int *) 0 ; | |
2069 | int *arg2 = (int *) 0 ; | |
2070 | int temp1 ; | |
2071 | int temp2 ; | |
2072 | char *kwnames[] = { | |
2073 | NULL | |
2074 | }; | |
2075 | ||
2076 | arg1 = &temp1; | |
2077 | arg2 = &temp2; | |
2078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2079 | { | |
2080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2081 | wxGetMousePosition(arg1,arg2); | |
2082 | ||
2083 | wxPyEndAllowThreads(__tstate); | |
2084 | if (PyErr_Occurred()) SWIG_fail; | |
2085 | } | |
2086 | Py_INCREF(Py_None); resultobj = Py_None; | |
2087 | { | |
2088 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2089 | resultobj = t_output_helper(resultobj,o); | |
2090 | } | |
2091 | { | |
2092 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2093 | resultobj = t_output_helper(resultobj,o); | |
2094 | } | |
2095 | return resultobj; | |
2096 | fail: | |
2097 | return NULL; | |
2098 | } | |
2099 | ||
2100 | ||
2101 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2102 | PyObject *resultobj; | |
2103 | bool result; | |
2104 | char *kwnames[] = { | |
2105 | NULL | |
2106 | }; | |
2107 | ||
2108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2109 | { | |
2110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2111 | result = (bool)wxIsBusy(); | |
2112 | ||
2113 | wxPyEndAllowThreads(__tstate); | |
2114 | if (PyErr_Occurred()) SWIG_fail; | |
2115 | } | |
2116 | { | |
2117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2118 | } | |
2119 | return resultobj; | |
2120 | fail: | |
2121 | return NULL; | |
2122 | } | |
2123 | ||
2124 | ||
2125 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2126 | PyObject *resultobj; | |
2127 | wxString result; | |
2128 | char *kwnames[] = { | |
2129 | NULL | |
2130 | }; | |
2131 | ||
2132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2133 | { | |
2134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2135 | result = wxNow(); | |
2136 | ||
2137 | wxPyEndAllowThreads(__tstate); | |
2138 | if (PyErr_Occurred()) SWIG_fail; | |
2139 | } | |
2140 | { | |
2141 | #if wxUSE_UNICODE | |
2142 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2143 | #else | |
2144 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2145 | #endif | |
2146 | } | |
2147 | return resultobj; | |
2148 | fail: | |
2149 | return NULL; | |
2150 | } | |
2151 | ||
2152 | ||
2153 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2154 | PyObject *resultobj; | |
2155 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2156 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2157 | bool result; | |
2158 | bool temp1 = False ; | |
2159 | PyObject * obj0 = 0 ; | |
2160 | char *kwnames[] = { | |
2161 | (char *) "command", NULL | |
2162 | }; | |
2163 | ||
2164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2165 | if (obj0) { | |
2166 | { | |
2167 | arg1 = wxString_in_helper(obj0); | |
2168 | if (arg1 == NULL) SWIG_fail; | |
2169 | temp1 = True; | |
2170 | } | |
2171 | } | |
2172 | { | |
2173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2174 | result = (bool)wxShell((wxString const &)*arg1); | |
2175 | ||
2176 | wxPyEndAllowThreads(__tstate); | |
2177 | if (PyErr_Occurred()) SWIG_fail; | |
2178 | } | |
2179 | { | |
2180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2181 | } | |
2182 | { | |
2183 | if (temp1) | |
2184 | delete arg1; | |
2185 | } | |
2186 | return resultobj; | |
2187 | fail: | |
2188 | { | |
2189 | if (temp1) | |
2190 | delete arg1; | |
2191 | } | |
2192 | return NULL; | |
2193 | } | |
2194 | ||
2195 | ||
2196 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2197 | PyObject *resultobj; | |
2198 | char *kwnames[] = { | |
2199 | NULL | |
2200 | }; | |
2201 | ||
2202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2203 | { | |
2204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2205 | wxStartTimer(); | |
2206 | ||
2207 | wxPyEndAllowThreads(__tstate); | |
2208 | if (PyErr_Occurred()) SWIG_fail; | |
2209 | } | |
2210 | Py_INCREF(Py_None); resultobj = Py_None; | |
2211 | return resultobj; | |
2212 | fail: | |
2213 | return NULL; | |
2214 | } | |
2215 | ||
2216 | ||
2217 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2218 | PyObject *resultobj; | |
2219 | int *arg1 = (int *) 0 ; | |
2220 | int *arg2 = (int *) 0 ; | |
2221 | int result; | |
2222 | int temp1 ; | |
2223 | int temp2 ; | |
2224 | char *kwnames[] = { | |
2225 | NULL | |
2226 | }; | |
2227 | ||
2228 | arg1 = &temp1; | |
2229 | arg2 = &temp2; | |
2230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2231 | { | |
2232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2233 | result = (int)wxGetOsVersion(arg1,arg2); | |
2234 | ||
2235 | wxPyEndAllowThreads(__tstate); | |
2236 | if (PyErr_Occurred()) SWIG_fail; | |
2237 | } | |
2238 | resultobj = SWIG_FromInt((int)result); | |
2239 | { | |
2240 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2241 | resultobj = t_output_helper(resultobj,o); | |
2242 | } | |
2243 | { | |
2244 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2245 | resultobj = t_output_helper(resultobj,o); | |
2246 | } | |
2247 | return resultobj; | |
2248 | fail: | |
2249 | return NULL; | |
2250 | } | |
2251 | ||
2252 | ||
2253 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2254 | PyObject *resultobj; | |
2255 | wxString result; | |
2256 | char *kwnames[] = { | |
2257 | NULL | |
2258 | }; | |
2259 | ||
2260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2261 | { | |
2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2263 | result = wxGetOsDescription(); | |
2264 | ||
2265 | wxPyEndAllowThreads(__tstate); | |
2266 | if (PyErr_Occurred()) SWIG_fail; | |
2267 | } | |
2268 | { | |
2269 | #if wxUSE_UNICODE | |
2270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2271 | #else | |
2272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2273 | #endif | |
2274 | } | |
2275 | return resultobj; | |
2276 | fail: | |
2277 | return NULL; | |
2278 | } | |
2279 | ||
2280 | ||
2281 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2282 | PyObject *resultobj; | |
2283 | long result; | |
2284 | char *kwnames[] = { | |
2285 | NULL | |
2286 | }; | |
2287 | ||
2288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2289 | { | |
2290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2291 | result = (long)wxGetFreeMemory(); | |
2292 | ||
2293 | wxPyEndAllowThreads(__tstate); | |
2294 | if (PyErr_Occurred()) SWIG_fail; | |
2295 | } | |
2296 | resultobj = SWIG_FromLong((long)result); | |
2297 | return resultobj; | |
2298 | fail: | |
2299 | return NULL; | |
2300 | } | |
2301 | ||
2302 | ||
2303 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2304 | PyObject *resultobj; | |
2305 | int arg1 ; | |
2306 | bool result; | |
2307 | PyObject * obj0 = 0 ; | |
2308 | char *kwnames[] = { | |
2309 | (char *) "wFlags", NULL | |
2310 | }; | |
2311 | ||
2312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
2313 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); | |
2314 | if (PyErr_Occurred()) SWIG_fail; | |
2315 | { | |
2316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2317 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2318 | ||
2319 | wxPyEndAllowThreads(__tstate); | |
2320 | if (PyErr_Occurred()) SWIG_fail; | |
2321 | } | |
2322 | { | |
2323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2324 | } | |
2325 | return resultobj; | |
2326 | fail: | |
2327 | return NULL; | |
2328 | } | |
2329 | ||
2330 | ||
2331 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2332 | PyObject *resultobj; | |
2333 | int arg1 ; | |
2334 | PyObject * obj0 = 0 ; | |
2335 | char *kwnames[] = { | |
2336 | (char *) "secs", NULL | |
2337 | }; | |
2338 | ||
2339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
2340 | arg1 = (int) SWIG_AsInt(obj0); | |
2341 | if (PyErr_Occurred()) SWIG_fail; | |
2342 | { | |
2343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2344 | wxSleep(arg1); | |
2345 | ||
2346 | wxPyEndAllowThreads(__tstate); | |
2347 | if (PyErr_Occurred()) SWIG_fail; | |
2348 | } | |
2349 | Py_INCREF(Py_None); resultobj = Py_None; | |
2350 | return resultobj; | |
2351 | fail: | |
2352 | return NULL; | |
2353 | } | |
2354 | ||
2355 | ||
2356 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2357 | PyObject *resultobj; | |
2358 | unsigned long arg1 ; | |
2359 | PyObject * obj0 = 0 ; | |
2360 | char *kwnames[] = { | |
2361 | (char *) "milliseconds", NULL | |
2362 | }; | |
2363 | ||
2364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
2365 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
2366 | if (PyErr_Occurred()) SWIG_fail; | |
2367 | { | |
2368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2369 | wxUsleep(arg1); | |
2370 | ||
2371 | wxPyEndAllowThreads(__tstate); | |
2372 | if (PyErr_Occurred()) SWIG_fail; | |
2373 | } | |
2374 | Py_INCREF(Py_None); resultobj = Py_None; | |
2375 | return resultobj; | |
2376 | fail: | |
2377 | return NULL; | |
2378 | } | |
2379 | ||
2380 | ||
2381 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2382 | PyObject *resultobj; | |
2383 | bool arg1 ; | |
2384 | PyObject * obj0 = 0 ; | |
2385 | char *kwnames[] = { | |
2386 | (char *) "enable", NULL | |
2387 | }; | |
2388 | ||
2389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2390 | arg1 = (bool) SWIG_AsBool(obj0); | |
2391 | if (PyErr_Occurred()) SWIG_fail; | |
2392 | { | |
2393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2394 | wxEnableTopLevelWindows(arg1); | |
2395 | ||
2396 | wxPyEndAllowThreads(__tstate); | |
2397 | if (PyErr_Occurred()) SWIG_fail; | |
2398 | } | |
2399 | Py_INCREF(Py_None); resultobj = Py_None; | |
2400 | return resultobj; | |
2401 | fail: | |
2402 | return NULL; | |
2403 | } | |
2404 | ||
2405 | ||
2406 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2407 | PyObject *resultobj; | |
2408 | wxString *arg1 = 0 ; | |
2409 | wxString result; | |
2410 | bool temp1 = False ; | |
2411 | PyObject * obj0 = 0 ; | |
2412 | char *kwnames[] = { | |
2413 | (char *) "in", NULL | |
2414 | }; | |
2415 | ||
2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2417 | { | |
2418 | arg1 = wxString_in_helper(obj0); | |
2419 | if (arg1 == NULL) SWIG_fail; | |
2420 | temp1 = True; | |
2421 | } | |
2422 | { | |
2423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2424 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2425 | ||
2426 | wxPyEndAllowThreads(__tstate); | |
2427 | if (PyErr_Occurred()) SWIG_fail; | |
2428 | } | |
2429 | { | |
2430 | #if wxUSE_UNICODE | |
2431 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2432 | #else | |
2433 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2434 | #endif | |
2435 | } | |
2436 | { | |
2437 | if (temp1) | |
2438 | delete arg1; | |
2439 | } | |
2440 | return resultobj; | |
2441 | fail: | |
2442 | { | |
2443 | if (temp1) | |
2444 | delete arg1; | |
2445 | } | |
2446 | return NULL; | |
2447 | } | |
2448 | ||
2449 | ||
2450 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2451 | PyObject *resultobj; | |
2452 | wxString result; | |
2453 | char *kwnames[] = { | |
2454 | NULL | |
2455 | }; | |
2456 | ||
2457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2458 | { | |
2459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2460 | result = wxGetEmailAddress(); | |
2461 | ||
2462 | wxPyEndAllowThreads(__tstate); | |
2463 | if (PyErr_Occurred()) SWIG_fail; | |
2464 | } | |
2465 | { | |
2466 | #if wxUSE_UNICODE | |
2467 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2468 | #else | |
2469 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2470 | #endif | |
2471 | } | |
2472 | return resultobj; | |
2473 | fail: | |
2474 | return NULL; | |
2475 | } | |
2476 | ||
2477 | ||
2478 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2479 | PyObject *resultobj; | |
2480 | wxString result; | |
2481 | char *kwnames[] = { | |
2482 | NULL | |
2483 | }; | |
2484 | ||
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2486 | { | |
2487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2488 | result = wxGetHostName(); | |
2489 | ||
2490 | wxPyEndAllowThreads(__tstate); | |
2491 | if (PyErr_Occurred()) SWIG_fail; | |
2492 | } | |
2493 | { | |
2494 | #if wxUSE_UNICODE | |
2495 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2496 | #else | |
2497 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2498 | #endif | |
2499 | } | |
2500 | return resultobj; | |
2501 | fail: | |
2502 | return NULL; | |
2503 | } | |
2504 | ||
2505 | ||
2506 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2507 | PyObject *resultobj; | |
2508 | wxString result; | |
2509 | char *kwnames[] = { | |
2510 | NULL | |
2511 | }; | |
2512 | ||
2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2514 | { | |
2515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2516 | result = wxGetFullHostName(); | |
2517 | ||
2518 | wxPyEndAllowThreads(__tstate); | |
2519 | if (PyErr_Occurred()) SWIG_fail; | |
2520 | } | |
2521 | { | |
2522 | #if wxUSE_UNICODE | |
2523 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2524 | #else | |
2525 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2526 | #endif | |
2527 | } | |
2528 | return resultobj; | |
2529 | fail: | |
2530 | return NULL; | |
2531 | } | |
2532 | ||
2533 | ||
2534 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2535 | PyObject *resultobj; | |
2536 | wxString result; | |
2537 | char *kwnames[] = { | |
2538 | NULL | |
2539 | }; | |
2540 | ||
2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2542 | { | |
2543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2544 | result = wxGetUserId(); | |
2545 | ||
2546 | wxPyEndAllowThreads(__tstate); | |
2547 | if (PyErr_Occurred()) SWIG_fail; | |
2548 | } | |
2549 | { | |
2550 | #if wxUSE_UNICODE | |
2551 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2552 | #else | |
2553 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2554 | #endif | |
2555 | } | |
2556 | return resultobj; | |
2557 | fail: | |
2558 | return NULL; | |
2559 | } | |
2560 | ||
2561 | ||
2562 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2563 | PyObject *resultobj; | |
2564 | wxString result; | |
2565 | char *kwnames[] = { | |
2566 | NULL | |
2567 | }; | |
2568 | ||
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2570 | { | |
2571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2572 | result = wxGetUserName(); | |
2573 | ||
2574 | wxPyEndAllowThreads(__tstate); | |
2575 | if (PyErr_Occurred()) SWIG_fail; | |
2576 | } | |
2577 | { | |
2578 | #if wxUSE_UNICODE | |
2579 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2580 | #else | |
2581 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2582 | #endif | |
2583 | } | |
2584 | return resultobj; | |
2585 | fail: | |
2586 | return NULL; | |
2587 | } | |
2588 | ||
2589 | ||
2590 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2591 | PyObject *resultobj; | |
2592 | wxString result; | |
2593 | char *kwnames[] = { | |
2594 | NULL | |
2595 | }; | |
2596 | ||
2597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2598 | { | |
2599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2600 | result = wxGetHomeDir(); | |
2601 | ||
2602 | wxPyEndAllowThreads(__tstate); | |
2603 | if (PyErr_Occurred()) SWIG_fail; | |
2604 | } | |
2605 | { | |
2606 | #if wxUSE_UNICODE | |
2607 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2608 | #else | |
2609 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2610 | #endif | |
2611 | } | |
2612 | return resultobj; | |
2613 | fail: | |
2614 | return NULL; | |
2615 | } | |
2616 | ||
2617 | ||
2618 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2619 | PyObject *resultobj; | |
2620 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2621 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2622 | wxString result; | |
2623 | bool temp1 = False ; | |
2624 | PyObject * obj0 = 0 ; | |
2625 | char *kwnames[] = { | |
2626 | (char *) "user", NULL | |
2627 | }; | |
2628 | ||
2629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2630 | if (obj0) { | |
2631 | { | |
2632 | arg1 = wxString_in_helper(obj0); | |
2633 | if (arg1 == NULL) SWIG_fail; | |
2634 | temp1 = True; | |
2635 | } | |
2636 | } | |
2637 | { | |
2638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2639 | result = wxGetUserHome((wxString const &)*arg1); | |
2640 | ||
2641 | wxPyEndAllowThreads(__tstate); | |
2642 | if (PyErr_Occurred()) SWIG_fail; | |
2643 | } | |
2644 | { | |
2645 | #if wxUSE_UNICODE | |
2646 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2647 | #else | |
2648 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2649 | #endif | |
2650 | } | |
2651 | { | |
2652 | if (temp1) | |
2653 | delete arg1; | |
2654 | } | |
2655 | return resultobj; | |
2656 | fail: | |
2657 | { | |
2658 | if (temp1) | |
2659 | delete arg1; | |
2660 | } | |
2661 | return NULL; | |
2662 | } | |
2663 | ||
2664 | ||
2665 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2666 | PyObject *resultobj; | |
2667 | unsigned long result; | |
2668 | char *kwnames[] = { | |
2669 | NULL | |
2670 | }; | |
2671 | ||
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2673 | { | |
2674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2675 | result = (unsigned long)wxGetProcessId(); | |
2676 | ||
2677 | wxPyEndAllowThreads(__tstate); | |
2678 | if (PyErr_Occurred()) SWIG_fail; | |
2679 | } | |
2680 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
2681 | return resultobj; | |
2682 | fail: | |
2683 | return NULL; | |
2684 | } | |
2685 | ||
2686 | ||
2687 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2688 | PyObject *resultobj; | |
2689 | char *kwnames[] = { | |
2690 | NULL | |
2691 | }; | |
2692 | ||
2693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2694 | { | |
2695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2696 | wxTrap(); | |
2697 | ||
2698 | wxPyEndAllowThreads(__tstate); | |
2699 | if (PyErr_Occurred()) SWIG_fail; | |
2700 | } | |
2701 | Py_INCREF(Py_None); resultobj = Py_None; | |
2702 | return resultobj; | |
2703 | fail: | |
2704 | return NULL; | |
2705 | } | |
2706 | ||
2707 | ||
2708 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2709 | PyObject *resultobj; | |
2710 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2711 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2712 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2713 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2714 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2715 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2716 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2717 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2718 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2719 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2720 | int arg6 = (int) 0 ; | |
2721 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2722 | int arg8 = (int) -1 ; | |
2723 | int arg9 = (int) -1 ; | |
2724 | wxString result; | |
2725 | bool temp1 = False ; | |
2726 | bool temp2 = False ; | |
2727 | bool temp3 = False ; | |
2728 | bool temp4 = False ; | |
2729 | bool temp5 = False ; | |
2730 | PyObject * obj0 = 0 ; | |
2731 | PyObject * obj1 = 0 ; | |
2732 | PyObject * obj2 = 0 ; | |
2733 | PyObject * obj3 = 0 ; | |
2734 | PyObject * obj4 = 0 ; | |
2735 | PyObject * obj5 = 0 ; | |
2736 | PyObject * obj6 = 0 ; | |
2737 | PyObject * obj7 = 0 ; | |
2738 | PyObject * obj8 = 0 ; | |
2739 | char *kwnames[] = { | |
2740 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2741 | }; | |
2742 | ||
2743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2744 | if (obj0) { | |
2745 | { | |
2746 | arg1 = wxString_in_helper(obj0); | |
2747 | if (arg1 == NULL) SWIG_fail; | |
2748 | temp1 = True; | |
2749 | } | |
2750 | } | |
2751 | if (obj1) { | |
2752 | { | |
2753 | arg2 = wxString_in_helper(obj1); | |
2754 | if (arg2 == NULL) SWIG_fail; | |
2755 | temp2 = True; | |
2756 | } | |
2757 | } | |
2758 | if (obj2) { | |
2759 | { | |
2760 | arg3 = wxString_in_helper(obj2); | |
2761 | if (arg3 == NULL) SWIG_fail; | |
2762 | temp3 = True; | |
2763 | } | |
2764 | } | |
2765 | if (obj3) { | |
2766 | { | |
2767 | arg4 = wxString_in_helper(obj3); | |
2768 | if (arg4 == NULL) SWIG_fail; | |
2769 | temp4 = True; | |
2770 | } | |
2771 | } | |
2772 | if (obj4) { | |
2773 | { | |
2774 | arg5 = wxString_in_helper(obj4); | |
2775 | if (arg5 == NULL) SWIG_fail; | |
2776 | temp5 = True; | |
2777 | } | |
2778 | } | |
2779 | if (obj5) { | |
2780 | arg6 = (int) SWIG_AsInt(obj5); | |
2781 | if (PyErr_Occurred()) SWIG_fail; | |
2782 | } | |
2783 | if (obj6) { | |
2784 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
2785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2786 | } | |
2787 | if (obj7) { | |
2788 | arg8 = (int) SWIG_AsInt(obj7); | |
2789 | if (PyErr_Occurred()) SWIG_fail; | |
2790 | } | |
2791 | if (obj8) { | |
2792 | arg9 = (int) SWIG_AsInt(obj8); | |
2793 | if (PyErr_Occurred()) SWIG_fail; | |
2794 | } | |
2795 | { | |
2796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2797 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2798 | ||
2799 | wxPyEndAllowThreads(__tstate); | |
2800 | if (PyErr_Occurred()) SWIG_fail; | |
2801 | } | |
2802 | { | |
2803 | #if wxUSE_UNICODE | |
2804 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2805 | #else | |
2806 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2807 | #endif | |
2808 | } | |
2809 | { | |
2810 | if (temp1) | |
2811 | delete arg1; | |
2812 | } | |
2813 | { | |
2814 | if (temp2) | |
2815 | delete arg2; | |
2816 | } | |
2817 | { | |
2818 | if (temp3) | |
2819 | delete arg3; | |
2820 | } | |
2821 | { | |
2822 | if (temp4) | |
2823 | delete arg4; | |
2824 | } | |
2825 | { | |
2826 | if (temp5) | |
2827 | delete arg5; | |
2828 | } | |
2829 | return resultobj; | |
2830 | fail: | |
2831 | { | |
2832 | if (temp1) | |
2833 | delete arg1; | |
2834 | } | |
2835 | { | |
2836 | if (temp2) | |
2837 | delete arg2; | |
2838 | } | |
2839 | { | |
2840 | if (temp3) | |
2841 | delete arg3; | |
2842 | } | |
2843 | { | |
2844 | if (temp4) | |
2845 | delete arg4; | |
2846 | } | |
2847 | { | |
2848 | if (temp5) | |
2849 | delete arg5; | |
2850 | } | |
2851 | return NULL; | |
2852 | } | |
2853 | ||
2854 | ||
2855 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2856 | PyObject *resultobj; | |
2857 | wxString *arg1 = 0 ; | |
2858 | wxString *arg2 = 0 ; | |
2859 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2860 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2861 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2862 | wxString result; | |
2863 | bool temp1 = False ; | |
2864 | bool temp2 = False ; | |
2865 | bool temp3 = False ; | |
2866 | PyObject * obj0 = 0 ; | |
2867 | PyObject * obj1 = 0 ; | |
2868 | PyObject * obj2 = 0 ; | |
2869 | PyObject * obj3 = 0 ; | |
2870 | char *kwnames[] = { | |
2871 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2872 | }; | |
2873 | ||
2874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2875 | { | |
2876 | arg1 = wxString_in_helper(obj0); | |
2877 | if (arg1 == NULL) SWIG_fail; | |
2878 | temp1 = True; | |
2879 | } | |
2880 | { | |
2881 | arg2 = wxString_in_helper(obj1); | |
2882 | if (arg2 == NULL) SWIG_fail; | |
2883 | temp2 = True; | |
2884 | } | |
2885 | if (obj2) { | |
2886 | { | |
2887 | arg3 = wxString_in_helper(obj2); | |
2888 | if (arg3 == NULL) SWIG_fail; | |
2889 | temp3 = True; | |
2890 | } | |
2891 | } | |
2892 | if (obj3) { | |
2893 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
2894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2895 | } | |
2896 | { | |
2897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2898 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2899 | ||
2900 | wxPyEndAllowThreads(__tstate); | |
2901 | if (PyErr_Occurred()) SWIG_fail; | |
2902 | } | |
2903 | { | |
2904 | #if wxUSE_UNICODE | |
2905 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2906 | #else | |
2907 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2908 | #endif | |
2909 | } | |
2910 | { | |
2911 | if (temp1) | |
2912 | delete arg1; | |
2913 | } | |
2914 | { | |
2915 | if (temp2) | |
2916 | delete arg2; | |
2917 | } | |
2918 | { | |
2919 | if (temp3) | |
2920 | delete arg3; | |
2921 | } | |
2922 | return resultobj; | |
2923 | fail: | |
2924 | { | |
2925 | if (temp1) | |
2926 | delete arg1; | |
2927 | } | |
2928 | { | |
2929 | if (temp2) | |
2930 | delete arg2; | |
2931 | } | |
2932 | { | |
2933 | if (temp3) | |
2934 | delete arg3; | |
2935 | } | |
2936 | return NULL; | |
2937 | } | |
2938 | ||
2939 | ||
2940 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2941 | PyObject *resultobj; | |
2942 | wxString *arg1 = 0 ; | |
2943 | wxString *arg2 = 0 ; | |
2944 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2945 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2946 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2947 | wxString result; | |
2948 | bool temp1 = False ; | |
2949 | bool temp2 = False ; | |
2950 | bool temp3 = False ; | |
2951 | PyObject * obj0 = 0 ; | |
2952 | PyObject * obj1 = 0 ; | |
2953 | PyObject * obj2 = 0 ; | |
2954 | PyObject * obj3 = 0 ; | |
2955 | char *kwnames[] = { | |
2956 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2957 | }; | |
2958 | ||
2959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2960 | { | |
2961 | arg1 = wxString_in_helper(obj0); | |
2962 | if (arg1 == NULL) SWIG_fail; | |
2963 | temp1 = True; | |
2964 | } | |
2965 | { | |
2966 | arg2 = wxString_in_helper(obj1); | |
2967 | if (arg2 == NULL) SWIG_fail; | |
2968 | temp2 = True; | |
2969 | } | |
2970 | if (obj2) { | |
2971 | { | |
2972 | arg3 = wxString_in_helper(obj2); | |
2973 | if (arg3 == NULL) SWIG_fail; | |
2974 | temp3 = True; | |
2975 | } | |
2976 | } | |
2977 | if (obj3) { | |
2978 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
2979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2980 | } | |
2981 | { | |
2982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2983 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2984 | ||
2985 | wxPyEndAllowThreads(__tstate); | |
2986 | if (PyErr_Occurred()) SWIG_fail; | |
2987 | } | |
2988 | { | |
2989 | #if wxUSE_UNICODE | |
2990 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2991 | #else | |
2992 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2993 | #endif | |
2994 | } | |
2995 | { | |
2996 | if (temp1) | |
2997 | delete arg1; | |
2998 | } | |
2999 | { | |
3000 | if (temp2) | |
3001 | delete arg2; | |
3002 | } | |
3003 | { | |
3004 | if (temp3) | |
3005 | delete arg3; | |
3006 | } | |
3007 | return resultobj; | |
3008 | fail: | |
3009 | { | |
3010 | if (temp1) | |
3011 | delete arg1; | |
3012 | } | |
3013 | { | |
3014 | if (temp2) | |
3015 | delete arg2; | |
3016 | } | |
3017 | { | |
3018 | if (temp3) | |
3019 | delete arg3; | |
3020 | } | |
3021 | return NULL; | |
3022 | } | |
3023 | ||
3024 | ||
3025 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3026 | PyObject *resultobj; | |
3027 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3028 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3029 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3030 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3031 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3032 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3033 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3034 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3035 | wxString result; | |
3036 | bool temp1 = False ; | |
3037 | bool temp2 = False ; | |
3038 | wxPoint temp4 ; | |
3039 | PyObject * obj0 = 0 ; | |
3040 | PyObject * obj1 = 0 ; | |
3041 | PyObject * obj2 = 0 ; | |
3042 | PyObject * obj3 = 0 ; | |
3043 | PyObject * obj4 = 0 ; | |
3044 | char *kwnames[] = { | |
3045 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3046 | }; | |
3047 | ||
3048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3049 | if (obj0) { | |
3050 | { | |
3051 | arg1 = wxString_in_helper(obj0); | |
3052 | if (arg1 == NULL) SWIG_fail; | |
3053 | temp1 = True; | |
3054 | } | |
3055 | } | |
3056 | if (obj1) { | |
3057 | { | |
3058 | arg2 = wxString_in_helper(obj1); | |
3059 | if (arg2 == NULL) SWIG_fail; | |
3060 | temp2 = True; | |
3061 | } | |
3062 | } | |
3063 | if (obj2) { | |
3064 | arg3 = (long) SWIG_AsLong(obj2); | |
3065 | if (PyErr_Occurred()) SWIG_fail; | |
3066 | } | |
3067 | if (obj3) { | |
3068 | { | |
3069 | arg4 = &temp4; | |
3070 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3071 | } | |
3072 | } | |
3073 | if (obj4) { | |
3074 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3076 | } | |
3077 | { | |
3078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3079 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3080 | ||
3081 | wxPyEndAllowThreads(__tstate); | |
3082 | if (PyErr_Occurred()) SWIG_fail; | |
3083 | } | |
3084 | { | |
3085 | #if wxUSE_UNICODE | |
3086 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3087 | #else | |
3088 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3089 | #endif | |
3090 | } | |
3091 | { | |
3092 | if (temp1) | |
3093 | delete arg1; | |
3094 | } | |
3095 | { | |
3096 | if (temp2) | |
3097 | delete arg2; | |
3098 | } | |
3099 | return resultobj; | |
3100 | fail: | |
3101 | { | |
3102 | if (temp1) | |
3103 | delete arg1; | |
3104 | } | |
3105 | { | |
3106 | if (temp2) | |
3107 | delete arg2; | |
3108 | } | |
3109 | return NULL; | |
3110 | } | |
3111 | ||
3112 | ||
3113 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3114 | PyObject *resultobj; | |
3115 | wxString *arg1 = 0 ; | |
3116 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3117 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3118 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3119 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3120 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3121 | int arg5 = (int) -1 ; | |
3122 | int arg6 = (int) -1 ; | |
3123 | bool arg7 = (bool) True ; | |
3124 | wxString result; | |
3125 | bool temp1 = False ; | |
3126 | bool temp2 = False ; | |
3127 | bool temp3 = False ; | |
3128 | PyObject * obj0 = 0 ; | |
3129 | PyObject * obj1 = 0 ; | |
3130 | PyObject * obj2 = 0 ; | |
3131 | PyObject * obj3 = 0 ; | |
3132 | PyObject * obj4 = 0 ; | |
3133 | PyObject * obj5 = 0 ; | |
3134 | PyObject * obj6 = 0 ; | |
3135 | char *kwnames[] = { | |
3136 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3137 | }; | |
3138 | ||
3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3140 | { | |
3141 | arg1 = wxString_in_helper(obj0); | |
3142 | if (arg1 == NULL) SWIG_fail; | |
3143 | temp1 = True; | |
3144 | } | |
3145 | if (obj1) { | |
3146 | { | |
3147 | arg2 = wxString_in_helper(obj1); | |
3148 | if (arg2 == NULL) SWIG_fail; | |
3149 | temp2 = True; | |
3150 | } | |
3151 | } | |
3152 | if (obj2) { | |
3153 | { | |
3154 | arg3 = wxString_in_helper(obj2); | |
3155 | if (arg3 == NULL) SWIG_fail; | |
3156 | temp3 = True; | |
3157 | } | |
3158 | } | |
3159 | if (obj3) { | |
3160 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3162 | } | |
3163 | if (obj4) { | |
3164 | arg5 = (int) SWIG_AsInt(obj4); | |
3165 | if (PyErr_Occurred()) SWIG_fail; | |
3166 | } | |
3167 | if (obj5) { | |
3168 | arg6 = (int) SWIG_AsInt(obj5); | |
3169 | if (PyErr_Occurred()) SWIG_fail; | |
3170 | } | |
3171 | if (obj6) { | |
3172 | arg7 = (bool) SWIG_AsBool(obj6); | |
3173 | if (PyErr_Occurred()) SWIG_fail; | |
3174 | } | |
3175 | { | |
3176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3177 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3178 | ||
3179 | wxPyEndAllowThreads(__tstate); | |
3180 | if (PyErr_Occurred()) SWIG_fail; | |
3181 | } | |
3182 | { | |
3183 | #if wxUSE_UNICODE | |
3184 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3185 | #else | |
3186 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3187 | #endif | |
3188 | } | |
3189 | { | |
3190 | if (temp1) | |
3191 | delete arg1; | |
3192 | } | |
3193 | { | |
3194 | if (temp2) | |
3195 | delete arg2; | |
3196 | } | |
3197 | { | |
3198 | if (temp3) | |
3199 | delete arg3; | |
3200 | } | |
3201 | return resultobj; | |
3202 | fail: | |
3203 | { | |
3204 | if (temp1) | |
3205 | delete arg1; | |
3206 | } | |
3207 | { | |
3208 | if (temp2) | |
3209 | delete arg2; | |
3210 | } | |
3211 | { | |
3212 | if (temp3) | |
3213 | delete arg3; | |
3214 | } | |
3215 | return NULL; | |
3216 | } | |
3217 | ||
3218 | ||
3219 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3220 | PyObject *resultobj; | |
3221 | wxString *arg1 = 0 ; | |
3222 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3223 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3224 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3225 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3226 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3227 | wxString result; | |
3228 | bool temp1 = False ; | |
3229 | bool temp2 = False ; | |
3230 | bool temp3 = False ; | |
3231 | PyObject * obj0 = 0 ; | |
3232 | PyObject * obj1 = 0 ; | |
3233 | PyObject * obj2 = 0 ; | |
3234 | PyObject * obj3 = 0 ; | |
3235 | char *kwnames[] = { | |
3236 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3237 | }; | |
3238 | ||
3239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3240 | { | |
3241 | arg1 = wxString_in_helper(obj0); | |
3242 | if (arg1 == NULL) SWIG_fail; | |
3243 | temp1 = True; | |
3244 | } | |
3245 | if (obj1) { | |
3246 | { | |
3247 | arg2 = wxString_in_helper(obj1); | |
3248 | if (arg2 == NULL) SWIG_fail; | |
3249 | temp2 = True; | |
3250 | } | |
3251 | } | |
3252 | if (obj2) { | |
3253 | { | |
3254 | arg3 = wxString_in_helper(obj2); | |
3255 | if (arg3 == NULL) SWIG_fail; | |
3256 | temp3 = True; | |
3257 | } | |
3258 | } | |
3259 | if (obj3) { | |
3260 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3262 | } | |
3263 | { | |
3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3265 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3266 | ||
3267 | wxPyEndAllowThreads(__tstate); | |
3268 | if (PyErr_Occurred()) SWIG_fail; | |
3269 | } | |
3270 | { | |
3271 | #if wxUSE_UNICODE | |
3272 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3273 | #else | |
3274 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3275 | #endif | |
3276 | } | |
3277 | { | |
3278 | if (temp1) | |
3279 | delete arg1; | |
3280 | } | |
3281 | { | |
3282 | if (temp2) | |
3283 | delete arg2; | |
3284 | } | |
3285 | { | |
3286 | if (temp3) | |
3287 | delete arg3; | |
3288 | } | |
3289 | return resultobj; | |
3290 | fail: | |
3291 | { | |
3292 | if (temp1) | |
3293 | delete arg1; | |
3294 | } | |
3295 | { | |
3296 | if (temp2) | |
3297 | delete arg2; | |
3298 | } | |
3299 | { | |
3300 | if (temp3) | |
3301 | delete arg3; | |
3302 | } | |
3303 | return NULL; | |
3304 | } | |
3305 | ||
3306 | ||
3307 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3308 | PyObject *resultobj; | |
3309 | wxString *arg1 = 0 ; | |
3310 | wxString *arg2 = 0 ; | |
3311 | int arg3 ; | |
3312 | wxString *arg4 = (wxString *) 0 ; | |
3313 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3314 | int arg6 = (int) -1 ; | |
3315 | int arg7 = (int) -1 ; | |
3316 | bool arg8 = (bool) True ; | |
3317 | int arg9 = (int) 150 ; | |
3318 | int arg10 = (int) 200 ; | |
3319 | wxString result; | |
3320 | bool temp1 = False ; | |
3321 | bool temp2 = False ; | |
3322 | PyObject * obj0 = 0 ; | |
3323 | PyObject * obj1 = 0 ; | |
3324 | PyObject * obj2 = 0 ; | |
3325 | PyObject * obj3 = 0 ; | |
3326 | PyObject * obj4 = 0 ; | |
3327 | PyObject * obj5 = 0 ; | |
3328 | PyObject * obj6 = 0 ; | |
3329 | PyObject * obj7 = 0 ; | |
3330 | PyObject * obj8 = 0 ; | |
3331 | char *kwnames[] = { | |
3332 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3333 | }; | |
3334 | ||
3335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3336 | { | |
3337 | arg1 = wxString_in_helper(obj0); | |
3338 | if (arg1 == NULL) SWIG_fail; | |
3339 | temp1 = True; | |
3340 | } | |
3341 | { | |
3342 | arg2 = wxString_in_helper(obj1); | |
3343 | if (arg2 == NULL) SWIG_fail; | |
3344 | temp2 = True; | |
3345 | } | |
3346 | { | |
3347 | arg3 = PyList_Size(obj2); | |
3348 | arg4 = wxString_LIST_helper(obj2); | |
3349 | if (arg4 == NULL) SWIG_fail; | |
3350 | } | |
3351 | if (obj3) { | |
3352 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3354 | } | |
3355 | if (obj4) { | |
3356 | arg6 = (int) SWIG_AsInt(obj4); | |
3357 | if (PyErr_Occurred()) SWIG_fail; | |
3358 | } | |
3359 | if (obj5) { | |
3360 | arg7 = (int) SWIG_AsInt(obj5); | |
3361 | if (PyErr_Occurred()) SWIG_fail; | |
3362 | } | |
3363 | if (obj6) { | |
3364 | arg8 = (bool) SWIG_AsBool(obj6); | |
3365 | if (PyErr_Occurred()) SWIG_fail; | |
3366 | } | |
3367 | if (obj7) { | |
3368 | arg9 = (int) SWIG_AsInt(obj7); | |
3369 | if (PyErr_Occurred()) SWIG_fail; | |
3370 | } | |
3371 | if (obj8) { | |
3372 | arg10 = (int) SWIG_AsInt(obj8); | |
3373 | if (PyErr_Occurred()) SWIG_fail; | |
3374 | } | |
3375 | { | |
3376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3377 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3378 | ||
3379 | wxPyEndAllowThreads(__tstate); | |
3380 | if (PyErr_Occurred()) SWIG_fail; | |
3381 | } | |
3382 | { | |
3383 | #if wxUSE_UNICODE | |
3384 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3385 | #else | |
3386 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3387 | #endif | |
3388 | } | |
3389 | { | |
3390 | if (temp1) | |
3391 | delete arg1; | |
3392 | } | |
3393 | { | |
3394 | if (temp2) | |
3395 | delete arg2; | |
3396 | } | |
3397 | { | |
3398 | if (arg4) delete [] arg4; | |
3399 | } | |
3400 | return resultobj; | |
3401 | fail: | |
3402 | { | |
3403 | if (temp1) | |
3404 | delete arg1; | |
3405 | } | |
3406 | { | |
3407 | if (temp2) | |
3408 | delete arg2; | |
3409 | } | |
3410 | { | |
3411 | if (arg4) delete [] arg4; | |
3412 | } | |
3413 | return NULL; | |
3414 | } | |
3415 | ||
3416 | ||
3417 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3418 | PyObject *resultobj; | |
3419 | wxString *arg1 = 0 ; | |
3420 | wxString *arg2 = 0 ; | |
3421 | int arg3 ; | |
3422 | wxString *arg4 = (wxString *) 0 ; | |
3423 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3424 | int arg6 = (int) -1 ; | |
3425 | int arg7 = (int) -1 ; | |
3426 | bool arg8 = (bool) True ; | |
3427 | int arg9 = (int) 150 ; | |
3428 | int arg10 = (int) 200 ; | |
3429 | int result; | |
3430 | bool temp1 = False ; | |
3431 | bool temp2 = False ; | |
3432 | PyObject * obj0 = 0 ; | |
3433 | PyObject * obj1 = 0 ; | |
3434 | PyObject * obj2 = 0 ; | |
3435 | PyObject * obj3 = 0 ; | |
3436 | PyObject * obj4 = 0 ; | |
3437 | PyObject * obj5 = 0 ; | |
3438 | PyObject * obj6 = 0 ; | |
3439 | PyObject * obj7 = 0 ; | |
3440 | PyObject * obj8 = 0 ; | |
3441 | char *kwnames[] = { | |
3442 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3443 | }; | |
3444 | ||
3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3446 | { | |
3447 | arg1 = wxString_in_helper(obj0); | |
3448 | if (arg1 == NULL) SWIG_fail; | |
3449 | temp1 = True; | |
3450 | } | |
3451 | { | |
3452 | arg2 = wxString_in_helper(obj1); | |
3453 | if (arg2 == NULL) SWIG_fail; | |
3454 | temp2 = True; | |
3455 | } | |
3456 | { | |
3457 | arg3 = PyList_Size(obj2); | |
3458 | arg4 = wxString_LIST_helper(obj2); | |
3459 | if (arg4 == NULL) SWIG_fail; | |
3460 | } | |
3461 | if (obj3) { | |
3462 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3464 | } | |
3465 | if (obj4) { | |
3466 | arg6 = (int) SWIG_AsInt(obj4); | |
3467 | if (PyErr_Occurred()) SWIG_fail; | |
3468 | } | |
3469 | if (obj5) { | |
3470 | arg7 = (int) SWIG_AsInt(obj5); | |
3471 | if (PyErr_Occurred()) SWIG_fail; | |
3472 | } | |
3473 | if (obj6) { | |
3474 | arg8 = (bool) SWIG_AsBool(obj6); | |
3475 | if (PyErr_Occurred()) SWIG_fail; | |
3476 | } | |
3477 | if (obj7) { | |
3478 | arg9 = (int) SWIG_AsInt(obj7); | |
3479 | if (PyErr_Occurred()) SWIG_fail; | |
3480 | } | |
3481 | if (obj8) { | |
3482 | arg10 = (int) SWIG_AsInt(obj8); | |
3483 | if (PyErr_Occurred()) SWIG_fail; | |
3484 | } | |
3485 | { | |
3486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3487 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3488 | ||
3489 | wxPyEndAllowThreads(__tstate); | |
3490 | if (PyErr_Occurred()) SWIG_fail; | |
3491 | } | |
3492 | resultobj = SWIG_FromInt((int)result); | |
3493 | { | |
3494 | if (temp1) | |
3495 | delete arg1; | |
3496 | } | |
3497 | { | |
3498 | if (temp2) | |
3499 | delete arg2; | |
3500 | } | |
3501 | { | |
3502 | if (arg4) delete [] arg4; | |
3503 | } | |
3504 | return resultobj; | |
3505 | fail: | |
3506 | { | |
3507 | if (temp1) | |
3508 | delete arg1; | |
3509 | } | |
3510 | { | |
3511 | if (temp2) | |
3512 | delete arg2; | |
3513 | } | |
3514 | { | |
3515 | if (arg4) delete [] arg4; | |
3516 | } | |
3517 | return NULL; | |
3518 | } | |
3519 | ||
3520 | ||
3521 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3522 | PyObject *resultobj; | |
3523 | wxString *arg1 = 0 ; | |
3524 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3525 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3526 | int arg3 = (int) wxOK|wxCENTRE ; | |
3527 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3528 | int arg5 = (int) -1 ; | |
3529 | int arg6 = (int) -1 ; | |
3530 | int result; | |
3531 | bool temp1 = False ; | |
3532 | bool temp2 = False ; | |
3533 | PyObject * obj0 = 0 ; | |
3534 | PyObject * obj1 = 0 ; | |
3535 | PyObject * obj2 = 0 ; | |
3536 | PyObject * obj3 = 0 ; | |
3537 | PyObject * obj4 = 0 ; | |
3538 | PyObject * obj5 = 0 ; | |
3539 | char *kwnames[] = { | |
3540 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3541 | }; | |
3542 | ||
3543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3544 | { | |
3545 | arg1 = wxString_in_helper(obj0); | |
3546 | if (arg1 == NULL) SWIG_fail; | |
3547 | temp1 = True; | |
3548 | } | |
3549 | if (obj1) { | |
3550 | { | |
3551 | arg2 = wxString_in_helper(obj1); | |
3552 | if (arg2 == NULL) SWIG_fail; | |
3553 | temp2 = True; | |
3554 | } | |
3555 | } | |
3556 | if (obj2) { | |
3557 | arg3 = (int) SWIG_AsInt(obj2); | |
3558 | if (PyErr_Occurred()) SWIG_fail; | |
3559 | } | |
3560 | if (obj3) { | |
3561 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3563 | } | |
3564 | if (obj4) { | |
3565 | arg5 = (int) SWIG_AsInt(obj4); | |
3566 | if (PyErr_Occurred()) SWIG_fail; | |
3567 | } | |
3568 | if (obj5) { | |
3569 | arg6 = (int) SWIG_AsInt(obj5); | |
3570 | if (PyErr_Occurred()) SWIG_fail; | |
3571 | } | |
3572 | { | |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3574 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3575 | ||
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
3579 | resultobj = SWIG_FromInt((int)result); | |
3580 | { | |
3581 | if (temp1) | |
3582 | delete arg1; | |
3583 | } | |
3584 | { | |
3585 | if (temp2) | |
3586 | delete arg2; | |
3587 | } | |
3588 | return resultobj; | |
3589 | fail: | |
3590 | { | |
3591 | if (temp1) | |
3592 | delete arg1; | |
3593 | } | |
3594 | { | |
3595 | if (temp2) | |
3596 | delete arg2; | |
3597 | } | |
3598 | return NULL; | |
3599 | } | |
3600 | ||
3601 | ||
3602 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3603 | PyObject *resultobj; | |
3604 | wxString *arg1 = 0 ; | |
3605 | wxString *arg2 = 0 ; | |
3606 | wxString *arg3 = 0 ; | |
3607 | long arg4 ; | |
3608 | long arg5 = (long) 0 ; | |
3609 | long arg6 = (long) 100 ; | |
3610 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3611 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3612 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3613 | long result; | |
3614 | bool temp1 = False ; | |
3615 | bool temp2 = False ; | |
3616 | bool temp3 = False ; | |
3617 | wxPoint temp8 ; | |
3618 | PyObject * obj0 = 0 ; | |
3619 | PyObject * obj1 = 0 ; | |
3620 | PyObject * obj2 = 0 ; | |
3621 | PyObject * obj3 = 0 ; | |
3622 | PyObject * obj4 = 0 ; | |
3623 | PyObject * obj5 = 0 ; | |
3624 | PyObject * obj6 = 0 ; | |
3625 | PyObject * obj7 = 0 ; | |
3626 | char *kwnames[] = { | |
3627 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3628 | }; | |
3629 | ||
3630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3631 | { | |
3632 | arg1 = wxString_in_helper(obj0); | |
3633 | if (arg1 == NULL) SWIG_fail; | |
3634 | temp1 = True; | |
3635 | } | |
3636 | { | |
3637 | arg2 = wxString_in_helper(obj1); | |
3638 | if (arg2 == NULL) SWIG_fail; | |
3639 | temp2 = True; | |
3640 | } | |
3641 | { | |
3642 | arg3 = wxString_in_helper(obj2); | |
3643 | if (arg3 == NULL) SWIG_fail; | |
3644 | temp3 = True; | |
3645 | } | |
3646 | arg4 = (long) SWIG_AsLong(obj3); | |
3647 | if (PyErr_Occurred()) SWIG_fail; | |
3648 | if (obj4) { | |
3649 | arg5 = (long) SWIG_AsLong(obj4); | |
3650 | if (PyErr_Occurred()) SWIG_fail; | |
3651 | } | |
3652 | if (obj5) { | |
3653 | arg6 = (long) SWIG_AsLong(obj5); | |
3654 | if (PyErr_Occurred()) SWIG_fail; | |
3655 | } | |
3656 | if (obj6) { | |
3657 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3659 | } | |
3660 | if (obj7) { | |
3661 | { | |
3662 | arg8 = &temp8; | |
3663 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3664 | } | |
3665 | } | |
3666 | { | |
3667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3668 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3669 | ||
3670 | wxPyEndAllowThreads(__tstate); | |
3671 | if (PyErr_Occurred()) SWIG_fail; | |
3672 | } | |
3673 | resultobj = SWIG_FromLong((long)result); | |
3674 | { | |
3675 | if (temp1) | |
3676 | delete arg1; | |
3677 | } | |
3678 | { | |
3679 | if (temp2) | |
3680 | delete arg2; | |
3681 | } | |
3682 | { | |
3683 | if (temp3) | |
3684 | delete arg3; | |
3685 | } | |
3686 | return resultobj; | |
3687 | fail: | |
3688 | { | |
3689 | if (temp1) | |
3690 | delete arg1; | |
3691 | } | |
3692 | { | |
3693 | if (temp2) | |
3694 | delete arg2; | |
3695 | } | |
3696 | { | |
3697 | if (temp3) | |
3698 | delete arg3; | |
3699 | } | |
3700 | return NULL; | |
3701 | } | |
3702 | ||
3703 | ||
3704 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject *resultobj; | |
3706 | bool result; | |
3707 | char *kwnames[] = { | |
3708 | NULL | |
3709 | }; | |
3710 | ||
3711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3712 | { | |
3713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3714 | result = (bool)wxColourDisplay(); | |
3715 | ||
3716 | wxPyEndAllowThreads(__tstate); | |
3717 | if (PyErr_Occurred()) SWIG_fail; | |
3718 | } | |
3719 | { | |
3720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3721 | } | |
3722 | return resultobj; | |
3723 | fail: | |
3724 | return NULL; | |
3725 | } | |
3726 | ||
3727 | ||
3728 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3729 | PyObject *resultobj; | |
3730 | int result; | |
3731 | char *kwnames[] = { | |
3732 | NULL | |
3733 | }; | |
3734 | ||
3735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3736 | { | |
3737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3738 | result = (int)wxDisplayDepth(); | |
3739 | ||
3740 | wxPyEndAllowThreads(__tstate); | |
3741 | if (PyErr_Occurred()) SWIG_fail; | |
3742 | } | |
3743 | resultobj = SWIG_FromInt((int)result); | |
3744 | return resultobj; | |
3745 | fail: | |
3746 | return NULL; | |
3747 | } | |
3748 | ||
3749 | ||
3750 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3751 | PyObject *resultobj; | |
3752 | int result; | |
3753 | char *kwnames[] = { | |
3754 | NULL | |
3755 | }; | |
3756 | ||
3757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3758 | { | |
3759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3760 | result = (int)wxGetDisplayDepth(); | |
3761 | ||
3762 | wxPyEndAllowThreads(__tstate); | |
3763 | if (PyErr_Occurred()) SWIG_fail; | |
3764 | } | |
3765 | resultobj = SWIG_FromInt((int)result); | |
3766 | return resultobj; | |
3767 | fail: | |
3768 | return NULL; | |
3769 | } | |
3770 | ||
3771 | ||
3772 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3773 | PyObject *resultobj; | |
3774 | int *arg1 = (int *) 0 ; | |
3775 | int *arg2 = (int *) 0 ; | |
3776 | int temp1 ; | |
3777 | int temp2 ; | |
3778 | char *kwnames[] = { | |
3779 | NULL | |
3780 | }; | |
3781 | ||
3782 | arg1 = &temp1; | |
3783 | arg2 = &temp2; | |
3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3785 | { | |
3786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3787 | wxDisplaySize(arg1,arg2); | |
3788 | ||
3789 | wxPyEndAllowThreads(__tstate); | |
3790 | if (PyErr_Occurred()) SWIG_fail; | |
3791 | } | |
3792 | Py_INCREF(Py_None); resultobj = Py_None; | |
3793 | { | |
3794 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3795 | resultobj = t_output_helper(resultobj,o); | |
3796 | } | |
3797 | { | |
3798 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3799 | resultobj = t_output_helper(resultobj,o); | |
3800 | } | |
3801 | return resultobj; | |
3802 | fail: | |
3803 | return NULL; | |
3804 | } | |
3805 | ||
3806 | ||
3807 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3808 | PyObject *resultobj; | |
3809 | wxSize result; | |
3810 | char *kwnames[] = { | |
3811 | NULL | |
3812 | }; | |
3813 | ||
3814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3815 | { | |
3816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3817 | result = wxGetDisplaySize(); | |
3818 | ||
3819 | wxPyEndAllowThreads(__tstate); | |
3820 | if (PyErr_Occurred()) SWIG_fail; | |
3821 | } | |
3822 | { | |
3823 | wxSize * resultptr; | |
3824 | resultptr = new wxSize((wxSize &) result); | |
3825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3826 | } | |
3827 | return resultobj; | |
3828 | fail: | |
3829 | return NULL; | |
3830 | } | |
3831 | ||
3832 | ||
3833 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3834 | PyObject *resultobj; | |
3835 | int *arg1 = (int *) 0 ; | |
3836 | int *arg2 = (int *) 0 ; | |
3837 | int temp1 ; | |
3838 | int temp2 ; | |
3839 | char *kwnames[] = { | |
3840 | NULL | |
3841 | }; | |
3842 | ||
3843 | arg1 = &temp1; | |
3844 | arg2 = &temp2; | |
3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3846 | { | |
3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3848 | wxDisplaySizeMM(arg1,arg2); | |
3849 | ||
3850 | wxPyEndAllowThreads(__tstate); | |
3851 | if (PyErr_Occurred()) SWIG_fail; | |
3852 | } | |
3853 | Py_INCREF(Py_None); resultobj = Py_None; | |
3854 | { | |
3855 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3856 | resultobj = t_output_helper(resultobj,o); | |
3857 | } | |
3858 | { | |
3859 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3860 | resultobj = t_output_helper(resultobj,o); | |
3861 | } | |
3862 | return resultobj; | |
3863 | fail: | |
3864 | return NULL; | |
3865 | } | |
3866 | ||
3867 | ||
3868 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3869 | PyObject *resultobj; | |
3870 | wxSize result; | |
3871 | char *kwnames[] = { | |
3872 | NULL | |
3873 | }; | |
3874 | ||
3875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3876 | { | |
3877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3878 | result = wxGetDisplaySizeMM(); | |
3879 | ||
3880 | wxPyEndAllowThreads(__tstate); | |
3881 | if (PyErr_Occurred()) SWIG_fail; | |
3882 | } | |
3883 | { | |
3884 | wxSize * resultptr; | |
3885 | resultptr = new wxSize((wxSize &) result); | |
3886 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3887 | } | |
3888 | return resultobj; | |
3889 | fail: | |
3890 | return NULL; | |
3891 | } | |
3892 | ||
3893 | ||
3894 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3895 | PyObject *resultobj; | |
3896 | int *arg1 = (int *) 0 ; | |
3897 | int *arg2 = (int *) 0 ; | |
3898 | int *arg3 = (int *) 0 ; | |
3899 | int *arg4 = (int *) 0 ; | |
3900 | int temp1 ; | |
3901 | int temp2 ; | |
3902 | int temp3 ; | |
3903 | int temp4 ; | |
3904 | char *kwnames[] = { | |
3905 | NULL | |
3906 | }; | |
3907 | ||
3908 | arg1 = &temp1; | |
3909 | arg2 = &temp2; | |
3910 | arg3 = &temp3; | |
3911 | arg4 = &temp4; | |
3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3913 | { | |
3914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3915 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3916 | ||
3917 | wxPyEndAllowThreads(__tstate); | |
3918 | if (PyErr_Occurred()) SWIG_fail; | |
3919 | } | |
3920 | Py_INCREF(Py_None); resultobj = Py_None; | |
3921 | { | |
3922 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3923 | resultobj = t_output_helper(resultobj,o); | |
3924 | } | |
3925 | { | |
3926 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3927 | resultobj = t_output_helper(resultobj,o); | |
3928 | } | |
3929 | { | |
3930 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3931 | resultobj = t_output_helper(resultobj,o); | |
3932 | } | |
3933 | { | |
3934 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3935 | resultobj = t_output_helper(resultobj,o); | |
3936 | } | |
3937 | return resultobj; | |
3938 | fail: | |
3939 | return NULL; | |
3940 | } | |
3941 | ||
3942 | ||
3943 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3944 | PyObject *resultobj; | |
3945 | wxRect result; | |
3946 | char *kwnames[] = { | |
3947 | NULL | |
3948 | }; | |
3949 | ||
3950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3951 | { | |
3952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3953 | result = wxGetClientDisplayRect(); | |
3954 | ||
3955 | wxPyEndAllowThreads(__tstate); | |
3956 | if (PyErr_Occurred()) SWIG_fail; | |
3957 | } | |
3958 | { | |
3959 | wxRect * resultptr; | |
3960 | resultptr = new wxRect((wxRect &) result); | |
3961 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
3962 | } | |
3963 | return resultobj; | |
3964 | fail: | |
3965 | return NULL; | |
3966 | } | |
3967 | ||
3968 | ||
3969 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3970 | PyObject *resultobj; | |
3971 | wxCursor *arg1 = 0 ; | |
3972 | PyObject * obj0 = 0 ; | |
3973 | char *kwnames[] = { | |
3974 | (char *) "cursor", NULL | |
3975 | }; | |
3976 | ||
3977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
3979 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3980 | SWIG_fail; | |
3981 | if (arg1 == NULL) { | |
3982 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3983 | SWIG_fail; | |
3984 | } | |
3985 | { | |
3986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3987 | wxSetCursor(*arg1); | |
3988 | ||
3989 | wxPyEndAllowThreads(__tstate); | |
3990 | if (PyErr_Occurred()) SWIG_fail; | |
3991 | } | |
3992 | Py_INCREF(Py_None); resultobj = Py_None; | |
3993 | return resultobj; | |
3994 | fail: | |
3995 | return NULL; | |
3996 | } | |
3997 | ||
3998 | ||
3999 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4000 | PyObject *resultobj; | |
4001 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4002 | PyObject * obj0 = 0 ; | |
4003 | char *kwnames[] = { | |
4004 | (char *) "cursor", NULL | |
4005 | }; | |
4006 | ||
4007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4008 | if (obj0) { | |
4009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4011 | } | |
4012 | { | |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | wxBeginBusyCursor(arg1); | |
4015 | ||
4016 | wxPyEndAllowThreads(__tstate); | |
4017 | if (PyErr_Occurred()) SWIG_fail; | |
4018 | } | |
4019 | Py_INCREF(Py_None); resultobj = Py_None; | |
4020 | return resultobj; | |
4021 | fail: | |
4022 | return NULL; | |
4023 | } | |
4024 | ||
4025 | ||
4026 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4027 | PyObject *resultobj; | |
4028 | wxWindow *result; | |
4029 | char *kwnames[] = { | |
4030 | NULL | |
4031 | }; | |
4032 | ||
4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4034 | { | |
4035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4036 | result = (wxWindow *)wxGetActiveWindow(); | |
4037 | ||
4038 | wxPyEndAllowThreads(__tstate); | |
4039 | if (PyErr_Occurred()) SWIG_fail; | |
4040 | } | |
4041 | { | |
4042 | resultobj = wxPyMake_wxObject(result); | |
4043 | } | |
4044 | return resultobj; | |
4045 | fail: | |
4046 | return NULL; | |
4047 | } | |
4048 | ||
4049 | ||
4050 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4051 | PyObject *resultobj; | |
4052 | wxPoint *arg1 = 0 ; | |
4053 | wxWindow *result; | |
4054 | wxPoint temp1 ; | |
4055 | PyObject * obj0 = 0 ; | |
4056 | char *kwnames[] = { | |
4057 | (char *) "pt", NULL | |
4058 | }; | |
4059 | ||
4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4061 | { | |
4062 | arg1 = &temp1; | |
4063 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4064 | } | |
4065 | { | |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4067 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
4072 | { | |
4073 | resultobj = wxPyMake_wxObject(result); | |
4074 | } | |
4075 | return resultobj; | |
4076 | fail: | |
4077 | return NULL; | |
4078 | } | |
4079 | ||
4080 | ||
4081 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4082 | PyObject *resultobj; | |
4083 | wxPoint *arg1 = 0 ; | |
4084 | wxWindow *result; | |
4085 | wxPoint temp1 ; | |
4086 | PyObject * obj0 = 0 ; | |
4087 | char *kwnames[] = { | |
4088 | (char *) "pt", NULL | |
4089 | }; | |
4090 | ||
4091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4092 | { | |
4093 | arg1 = &temp1; | |
4094 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4095 | } | |
4096 | { | |
4097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4098 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4099 | ||
4100 | wxPyEndAllowThreads(__tstate); | |
4101 | if (PyErr_Occurred()) SWIG_fail; | |
4102 | } | |
4103 | { | |
4104 | resultobj = wxPyMake_wxObject(result); | |
4105 | } | |
4106 | return resultobj; | |
4107 | fail: | |
4108 | return NULL; | |
4109 | } | |
4110 | ||
4111 | ||
4112 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4113 | PyObject *resultobj; | |
4114 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4115 | wxWindow *result; | |
4116 | PyObject * obj0 = 0 ; | |
4117 | char *kwnames[] = { | |
4118 | (char *) "win", NULL | |
4119 | }; | |
4120 | ||
4121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4124 | { | |
4125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4126 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4127 | ||
4128 | wxPyEndAllowThreads(__tstate); | |
4129 | if (PyErr_Occurred()) SWIG_fail; | |
4130 | } | |
4131 | { | |
4132 | resultobj = wxPyMake_wxObject(result); | |
4133 | } | |
4134 | return resultobj; | |
4135 | fail: | |
4136 | return NULL; | |
4137 | } | |
4138 | ||
4139 | ||
4140 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4141 | PyObject *resultobj; | |
4142 | int arg1 ; | |
4143 | bool result; | |
4144 | PyObject * obj0 = 0 ; | |
4145 | char *kwnames[] = { | |
4146 | (char *) "key", NULL | |
4147 | }; | |
4148 | ||
4149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
4150 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); | |
4151 | if (PyErr_Occurred()) SWIG_fail; | |
4152 | { | |
4153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4154 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4155 | ||
4156 | wxPyEndAllowThreads(__tstate); | |
4157 | if (PyErr_Occurred()) SWIG_fail; | |
4158 | } | |
4159 | { | |
4160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4161 | } | |
4162 | return resultobj; | |
4163 | fail: | |
4164 | return NULL; | |
4165 | } | |
4166 | ||
4167 | ||
4168 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4169 | PyObject *resultobj; | |
4170 | char *kwnames[] = { | |
4171 | NULL | |
4172 | }; | |
4173 | ||
4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4175 | { | |
4176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4177 | wxWakeUpMainThread(); | |
4178 | ||
4179 | wxPyEndAllowThreads(__tstate); | |
4180 | if (PyErr_Occurred()) SWIG_fail; | |
4181 | } | |
4182 | Py_INCREF(Py_None); resultobj = Py_None; | |
4183 | return resultobj; | |
4184 | fail: | |
4185 | return NULL; | |
4186 | } | |
4187 | ||
4188 | ||
4189 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4190 | PyObject *resultobj; | |
4191 | char *kwnames[] = { | |
4192 | NULL | |
4193 | }; | |
4194 | ||
4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4196 | { | |
4197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4198 | wxMutexGuiEnter(); | |
4199 | ||
4200 | wxPyEndAllowThreads(__tstate); | |
4201 | if (PyErr_Occurred()) SWIG_fail; | |
4202 | } | |
4203 | Py_INCREF(Py_None); resultobj = Py_None; | |
4204 | return resultobj; | |
4205 | fail: | |
4206 | return NULL; | |
4207 | } | |
4208 | ||
4209 | ||
4210 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4211 | PyObject *resultobj; | |
4212 | char *kwnames[] = { | |
4213 | NULL | |
4214 | }; | |
4215 | ||
4216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4217 | { | |
4218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4219 | wxMutexGuiLeave(); | |
4220 | ||
4221 | wxPyEndAllowThreads(__tstate); | |
4222 | if (PyErr_Occurred()) SWIG_fail; | |
4223 | } | |
4224 | Py_INCREF(Py_None); resultobj = Py_None; | |
4225 | return resultobj; | |
4226 | fail: | |
4227 | return NULL; | |
4228 | } | |
4229 | ||
4230 | ||
4231 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4232 | PyObject *resultobj; | |
4233 | wxMutexGuiLocker *result; | |
4234 | char *kwnames[] = { | |
4235 | NULL | |
4236 | }; | |
4237 | ||
4238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4239 | { | |
4240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4241 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4242 | ||
4243 | wxPyEndAllowThreads(__tstate); | |
4244 | if (PyErr_Occurred()) SWIG_fail; | |
4245 | } | |
4246 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4247 | return resultobj; | |
4248 | fail: | |
4249 | return NULL; | |
4250 | } | |
4251 | ||
4252 | ||
4253 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4254 | PyObject *resultobj; | |
4255 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4256 | PyObject * obj0 = 0 ; | |
4257 | char *kwnames[] = { | |
4258 | (char *) "self", NULL | |
4259 | }; | |
4260 | ||
4261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4264 | { | |
4265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4266 | delete arg1; | |
4267 | ||
4268 | wxPyEndAllowThreads(__tstate); | |
4269 | if (PyErr_Occurred()) SWIG_fail; | |
4270 | } | |
4271 | Py_INCREF(Py_None); resultobj = Py_None; | |
4272 | return resultobj; | |
4273 | fail: | |
4274 | return NULL; | |
4275 | } | |
4276 | ||
4277 | ||
4278 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4279 | PyObject *obj; | |
4280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4281 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4282 | Py_INCREF(obj); | |
4283 | return Py_BuildValue((char *)""); | |
4284 | } | |
4285 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4286 | PyObject *resultobj; | |
4287 | bool result; | |
4288 | char *kwnames[] = { | |
4289 | NULL | |
4290 | }; | |
4291 | ||
4292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4293 | { | |
4294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4295 | result = (bool)wxThread_IsMain(); | |
4296 | ||
4297 | wxPyEndAllowThreads(__tstate); | |
4298 | if (PyErr_Occurred()) SWIG_fail; | |
4299 | } | |
4300 | { | |
4301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4302 | } | |
4303 | return resultobj; | |
4304 | fail: | |
4305 | return NULL; | |
4306 | } | |
4307 | ||
4308 | ||
4309 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4310 | PyObject *resultobj; | |
4311 | wxString *arg1 = 0 ; | |
4312 | wxToolTip *result; | |
4313 | bool temp1 = False ; | |
4314 | PyObject * obj0 = 0 ; | |
4315 | char *kwnames[] = { | |
4316 | (char *) "tip", NULL | |
4317 | }; | |
4318 | ||
4319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4320 | { | |
4321 | arg1 = wxString_in_helper(obj0); | |
4322 | if (arg1 == NULL) SWIG_fail; | |
4323 | temp1 = True; | |
4324 | } | |
4325 | { | |
4326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4327 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4328 | ||
4329 | wxPyEndAllowThreads(__tstate); | |
4330 | if (PyErr_Occurred()) SWIG_fail; | |
4331 | } | |
4332 | { | |
4333 | resultobj = wxPyMake_wxObject(result); | |
4334 | } | |
4335 | { | |
4336 | if (temp1) | |
4337 | delete arg1; | |
4338 | } | |
4339 | return resultobj; | |
4340 | fail: | |
4341 | { | |
4342 | if (temp1) | |
4343 | delete arg1; | |
4344 | } | |
4345 | return NULL; | |
4346 | } | |
4347 | ||
4348 | ||
4349 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4350 | PyObject *resultobj; | |
4351 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4352 | wxString *arg2 = 0 ; | |
4353 | bool temp2 = False ; | |
4354 | PyObject * obj0 = 0 ; | |
4355 | PyObject * obj1 = 0 ; | |
4356 | char *kwnames[] = { | |
4357 | (char *) "self",(char *) "tip", NULL | |
4358 | }; | |
4359 | ||
4360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4363 | { | |
4364 | arg2 = wxString_in_helper(obj1); | |
4365 | if (arg2 == NULL) SWIG_fail; | |
4366 | temp2 = True; | |
4367 | } | |
4368 | { | |
4369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4370 | (arg1)->SetTip((wxString const &)*arg2); | |
4371 | ||
4372 | wxPyEndAllowThreads(__tstate); | |
4373 | if (PyErr_Occurred()) SWIG_fail; | |
4374 | } | |
4375 | Py_INCREF(Py_None); resultobj = Py_None; | |
4376 | { | |
4377 | if (temp2) | |
4378 | delete arg2; | |
4379 | } | |
4380 | return resultobj; | |
4381 | fail: | |
4382 | { | |
4383 | if (temp2) | |
4384 | delete arg2; | |
4385 | } | |
4386 | return NULL; | |
4387 | } | |
4388 | ||
4389 | ||
4390 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4391 | PyObject *resultobj; | |
4392 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4393 | wxString result; | |
4394 | PyObject * obj0 = 0 ; | |
4395 | char *kwnames[] = { | |
4396 | (char *) "self", NULL | |
4397 | }; | |
4398 | ||
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4402 | { | |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4404 | result = (arg1)->GetTip(); | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
4409 | { | |
4410 | #if wxUSE_UNICODE | |
4411 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4412 | #else | |
4413 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4414 | #endif | |
4415 | } | |
4416 | return resultobj; | |
4417 | fail: | |
4418 | return NULL; | |
4419 | } | |
4420 | ||
4421 | ||
4422 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4423 | PyObject *resultobj; | |
4424 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4425 | wxWindow *result; | |
4426 | PyObject * obj0 = 0 ; | |
4427 | char *kwnames[] = { | |
4428 | (char *) "self", NULL | |
4429 | }; | |
4430 | ||
4431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4434 | { | |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4436 | result = (wxWindow *)(arg1)->GetWindow(); | |
4437 | ||
4438 | wxPyEndAllowThreads(__tstate); | |
4439 | if (PyErr_Occurred()) SWIG_fail; | |
4440 | } | |
4441 | { | |
4442 | resultobj = wxPyMake_wxObject(result); | |
4443 | } | |
4444 | return resultobj; | |
4445 | fail: | |
4446 | return NULL; | |
4447 | } | |
4448 | ||
4449 | ||
4450 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4451 | PyObject *resultobj; | |
4452 | bool arg1 ; | |
4453 | PyObject * obj0 = 0 ; | |
4454 | char *kwnames[] = { | |
4455 | (char *) "flag", NULL | |
4456 | }; | |
4457 | ||
4458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
4459 | arg1 = (bool) SWIG_AsBool(obj0); | |
4460 | if (PyErr_Occurred()) SWIG_fail; | |
4461 | { | |
4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4463 | wxToolTip::Enable(arg1); | |
4464 | ||
4465 | wxPyEndAllowThreads(__tstate); | |
4466 | if (PyErr_Occurred()) SWIG_fail; | |
4467 | } | |
4468 | Py_INCREF(Py_None); resultobj = Py_None; | |
4469 | return resultobj; | |
4470 | fail: | |
4471 | return NULL; | |
4472 | } | |
4473 | ||
4474 | ||
4475 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4476 | PyObject *resultobj; | |
4477 | long arg1 ; | |
4478 | PyObject * obj0 = 0 ; | |
4479 | char *kwnames[] = { | |
4480 | (char *) "milliseconds", NULL | |
4481 | }; | |
4482 | ||
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
4484 | arg1 = (long) SWIG_AsLong(obj0); | |
4485 | if (PyErr_Occurred()) SWIG_fail; | |
4486 | { | |
4487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4488 | wxToolTip::SetDelay(arg1); | |
4489 | ||
4490 | wxPyEndAllowThreads(__tstate); | |
4491 | if (PyErr_Occurred()) SWIG_fail; | |
4492 | } | |
4493 | Py_INCREF(Py_None); resultobj = Py_None; | |
4494 | return resultobj; | |
4495 | fail: | |
4496 | return NULL; | |
4497 | } | |
4498 | ||
4499 | ||
4500 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4501 | PyObject *obj; | |
4502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4503 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4504 | Py_INCREF(obj); | |
4505 | return Py_BuildValue((char *)""); | |
4506 | } | |
4507 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject *resultobj; | |
4509 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4510 | wxSize *arg2 = 0 ; | |
4511 | wxCaret *result; | |
4512 | wxSize temp2 ; | |
4513 | PyObject * obj0 = 0 ; | |
4514 | PyObject * obj1 = 0 ; | |
4515 | char *kwnames[] = { | |
4516 | (char *) "window",(char *) "size", NULL | |
4517 | }; | |
4518 | ||
4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4522 | { | |
4523 | arg2 = &temp2; | |
4524 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4525 | } | |
4526 | { | |
4527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4528 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4529 | ||
4530 | wxPyEndAllowThreads(__tstate); | |
4531 | if (PyErr_Occurred()) SWIG_fail; | |
4532 | } | |
4533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
4534 | return resultobj; | |
4535 | fail: | |
4536 | return NULL; | |
4537 | } | |
4538 | ||
4539 | ||
4540 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4541 | PyObject *resultobj; | |
4542 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4543 | PyObject * obj0 = 0 ; | |
4544 | char *kwnames[] = { | |
4545 | (char *) "self", NULL | |
4546 | }; | |
4547 | ||
4548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4551 | { | |
4552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4553 | delete arg1; | |
4554 | ||
4555 | wxPyEndAllowThreads(__tstate); | |
4556 | if (PyErr_Occurred()) SWIG_fail; | |
4557 | } | |
4558 | Py_INCREF(Py_None); resultobj = Py_None; | |
4559 | return resultobj; | |
4560 | fail: | |
4561 | return NULL; | |
4562 | } | |
4563 | ||
4564 | ||
4565 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4566 | PyObject *resultobj; | |
4567 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4568 | bool result; | |
4569 | PyObject * obj0 = 0 ; | |
4570 | char *kwnames[] = { | |
4571 | (char *) "self", NULL | |
4572 | }; | |
4573 | ||
4574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4577 | { | |
4578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4579 | result = (bool)(arg1)->IsOk(); | |
4580 | ||
4581 | wxPyEndAllowThreads(__tstate); | |
4582 | if (PyErr_Occurred()) SWIG_fail; | |
4583 | } | |
4584 | { | |
4585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4586 | } | |
4587 | return resultobj; | |
4588 | fail: | |
4589 | return NULL; | |
4590 | } | |
4591 | ||
4592 | ||
4593 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4594 | PyObject *resultobj; | |
4595 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4596 | bool result; | |
4597 | PyObject * obj0 = 0 ; | |
4598 | char *kwnames[] = { | |
4599 | (char *) "self", NULL | |
4600 | }; | |
4601 | ||
4602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4605 | { | |
4606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4607 | result = (bool)(arg1)->IsVisible(); | |
4608 | ||
4609 | wxPyEndAllowThreads(__tstate); | |
4610 | if (PyErr_Occurred()) SWIG_fail; | |
4611 | } | |
4612 | { | |
4613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4614 | } | |
4615 | return resultobj; | |
4616 | fail: | |
4617 | return NULL; | |
4618 | } | |
4619 | ||
4620 | ||
4621 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4622 | PyObject *resultobj; | |
4623 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4624 | wxPoint result; | |
4625 | PyObject * obj0 = 0 ; | |
4626 | char *kwnames[] = { | |
4627 | (char *) "self", NULL | |
4628 | }; | |
4629 | ||
4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4633 | { | |
4634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4635 | result = (arg1)->GetPosition(); | |
4636 | ||
4637 | wxPyEndAllowThreads(__tstate); | |
4638 | if (PyErr_Occurred()) SWIG_fail; | |
4639 | } | |
4640 | { | |
4641 | wxPoint * resultptr; | |
4642 | resultptr = new wxPoint((wxPoint &) result); | |
4643 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4644 | } | |
4645 | return resultobj; | |
4646 | fail: | |
4647 | return NULL; | |
4648 | } | |
4649 | ||
4650 | ||
4651 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4652 | PyObject *resultobj; | |
4653 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4654 | int *arg2 = (int *) 0 ; | |
4655 | int *arg3 = (int *) 0 ; | |
4656 | int temp2 ; | |
4657 | int temp3 ; | |
4658 | PyObject * obj0 = 0 ; | |
4659 | char *kwnames[] = { | |
4660 | (char *) "self", NULL | |
4661 | }; | |
4662 | ||
4663 | arg2 = &temp2; | |
4664 | arg3 = &temp3; | |
4665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4668 | { | |
4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4670 | (arg1)->GetPosition(arg2,arg3); | |
4671 | ||
4672 | wxPyEndAllowThreads(__tstate); | |
4673 | if (PyErr_Occurred()) SWIG_fail; | |
4674 | } | |
4675 | Py_INCREF(Py_None); resultobj = Py_None; | |
4676 | { | |
4677 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4678 | resultobj = t_output_helper(resultobj,o); | |
4679 | } | |
4680 | { | |
4681 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4682 | resultobj = t_output_helper(resultobj,o); | |
4683 | } | |
4684 | return resultobj; | |
4685 | fail: | |
4686 | return NULL; | |
4687 | } | |
4688 | ||
4689 | ||
4690 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4691 | PyObject *resultobj; | |
4692 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4693 | wxSize result; | |
4694 | PyObject * obj0 = 0 ; | |
4695 | char *kwnames[] = { | |
4696 | (char *) "self", NULL | |
4697 | }; | |
4698 | ||
4699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
4700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4702 | { | |
4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4704 | result = (arg1)->GetSize(); | |
4705 | ||
4706 | wxPyEndAllowThreads(__tstate); | |
4707 | if (PyErr_Occurred()) SWIG_fail; | |
4708 | } | |
4709 | { | |
4710 | wxSize * resultptr; | |
4711 | resultptr = new wxSize((wxSize &) result); | |
4712 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4713 | } | |
4714 | return resultobj; | |
4715 | fail: | |
4716 | return NULL; | |
4717 | } | |
4718 | ||
4719 | ||
4720 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4721 | PyObject *resultobj; | |
4722 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4723 | int *arg2 = (int *) 0 ; | |
4724 | int *arg3 = (int *) 0 ; | |
4725 | int temp2 ; | |
4726 | int temp3 ; | |
4727 | PyObject * obj0 = 0 ; | |
4728 | char *kwnames[] = { | |
4729 | (char *) "self", NULL | |
4730 | }; | |
4731 | ||
4732 | arg2 = &temp2; | |
4733 | arg3 = &temp3; | |
4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4737 | { | |
4738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4739 | (arg1)->GetSize(arg2,arg3); | |
4740 | ||
4741 | wxPyEndAllowThreads(__tstate); | |
4742 | if (PyErr_Occurred()) SWIG_fail; | |
4743 | } | |
4744 | Py_INCREF(Py_None); resultobj = Py_None; | |
4745 | { | |
4746 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4747 | resultobj = t_output_helper(resultobj,o); | |
4748 | } | |
4749 | { | |
4750 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4751 | resultobj = t_output_helper(resultobj,o); | |
4752 | } | |
4753 | return resultobj; | |
4754 | fail: | |
4755 | return NULL; | |
4756 | } | |
4757 | ||
4758 | ||
4759 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4760 | PyObject *resultobj; | |
4761 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4762 | wxWindow *result; | |
4763 | PyObject * obj0 = 0 ; | |
4764 | char *kwnames[] = { | |
4765 | (char *) "self", NULL | |
4766 | }; | |
4767 | ||
4768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4771 | { | |
4772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4773 | result = (wxWindow *)(arg1)->GetWindow(); | |
4774 | ||
4775 | wxPyEndAllowThreads(__tstate); | |
4776 | if (PyErr_Occurred()) SWIG_fail; | |
4777 | } | |
4778 | { | |
4779 | resultobj = wxPyMake_wxObject(result); | |
4780 | } | |
4781 | return resultobj; | |
4782 | fail: | |
4783 | return NULL; | |
4784 | } | |
4785 | ||
4786 | ||
4787 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4788 | PyObject *resultobj; | |
4789 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4790 | int arg2 ; | |
4791 | int arg3 ; | |
4792 | PyObject * obj0 = 0 ; | |
4793 | PyObject * obj1 = 0 ; | |
4794 | PyObject * obj2 = 0 ; | |
4795 | char *kwnames[] = { | |
4796 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4797 | }; | |
4798 | ||
4799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4802 | arg2 = (int) SWIG_AsInt(obj1); | |
4803 | if (PyErr_Occurred()) SWIG_fail; | |
4804 | arg3 = (int) SWIG_AsInt(obj2); | |
4805 | if (PyErr_Occurred()) SWIG_fail; | |
4806 | { | |
4807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4808 | (arg1)->Move(arg2,arg3); | |
4809 | ||
4810 | wxPyEndAllowThreads(__tstate); | |
4811 | if (PyErr_Occurred()) SWIG_fail; | |
4812 | } | |
4813 | Py_INCREF(Py_None); resultobj = Py_None; | |
4814 | return resultobj; | |
4815 | fail: | |
4816 | return NULL; | |
4817 | } | |
4818 | ||
4819 | ||
4820 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4821 | PyObject *resultobj; | |
4822 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4823 | wxPoint *arg2 = 0 ; | |
4824 | wxPoint temp2 ; | |
4825 | PyObject * obj0 = 0 ; | |
4826 | PyObject * obj1 = 0 ; | |
4827 | char *kwnames[] = { | |
4828 | (char *) "self",(char *) "pt", NULL | |
4829 | }; | |
4830 | ||
4831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4834 | { | |
4835 | arg2 = &temp2; | |
4836 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4837 | } | |
4838 | { | |
4839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4840 | (arg1)->Move((wxPoint const &)*arg2); | |
4841 | ||
4842 | wxPyEndAllowThreads(__tstate); | |
4843 | if (PyErr_Occurred()) SWIG_fail; | |
4844 | } | |
4845 | Py_INCREF(Py_None); resultobj = Py_None; | |
4846 | return resultobj; | |
4847 | fail: | |
4848 | return NULL; | |
4849 | } | |
4850 | ||
4851 | ||
4852 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4853 | PyObject *resultobj; | |
4854 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4855 | int arg2 ; | |
4856 | int arg3 ; | |
4857 | PyObject * obj0 = 0 ; | |
4858 | PyObject * obj1 = 0 ; | |
4859 | PyObject * obj2 = 0 ; | |
4860 | char *kwnames[] = { | |
4861 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4862 | }; | |
4863 | ||
4864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4867 | arg2 = (int) SWIG_AsInt(obj1); | |
4868 | if (PyErr_Occurred()) SWIG_fail; | |
4869 | arg3 = (int) SWIG_AsInt(obj2); | |
4870 | if (PyErr_Occurred()) SWIG_fail; | |
4871 | { | |
4872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4873 | (arg1)->SetSize(arg2,arg3); | |
4874 | ||
4875 | wxPyEndAllowThreads(__tstate); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | } | |
4878 | Py_INCREF(Py_None); resultobj = Py_None; | |
4879 | return resultobj; | |
4880 | fail: | |
4881 | return NULL; | |
4882 | } | |
4883 | ||
4884 | ||
4885 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject *resultobj; | |
4887 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4888 | wxSize *arg2 = 0 ; | |
4889 | wxSize temp2 ; | |
4890 | PyObject * obj0 = 0 ; | |
4891 | PyObject * obj1 = 0 ; | |
4892 | char *kwnames[] = { | |
4893 | (char *) "self",(char *) "size", NULL | |
4894 | }; | |
4895 | ||
4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4899 | { | |
4900 | arg2 = &temp2; | |
4901 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4902 | } | |
4903 | { | |
4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4905 | (arg1)->SetSize((wxSize const &)*arg2); | |
4906 | ||
4907 | wxPyEndAllowThreads(__tstate); | |
4908 | if (PyErr_Occurred()) SWIG_fail; | |
4909 | } | |
4910 | Py_INCREF(Py_None); resultobj = Py_None; | |
4911 | return resultobj; | |
4912 | fail: | |
4913 | return NULL; | |
4914 | } | |
4915 | ||
4916 | ||
4917 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4918 | PyObject *resultobj; | |
4919 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4920 | int arg2 = (int) True ; | |
4921 | PyObject * obj0 = 0 ; | |
4922 | PyObject * obj1 = 0 ; | |
4923 | char *kwnames[] = { | |
4924 | (char *) "self",(char *) "show", NULL | |
4925 | }; | |
4926 | ||
4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
4928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4930 | if (obj1) { | |
4931 | arg2 = (int) SWIG_AsInt(obj1); | |
4932 | if (PyErr_Occurred()) SWIG_fail; | |
4933 | } | |
4934 | { | |
4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4936 | (arg1)->Show(arg2); | |
4937 | ||
4938 | wxPyEndAllowThreads(__tstate); | |
4939 | if (PyErr_Occurred()) SWIG_fail; | |
4940 | } | |
4941 | Py_INCREF(Py_None); resultobj = Py_None; | |
4942 | return resultobj; | |
4943 | fail: | |
4944 | return NULL; | |
4945 | } | |
4946 | ||
4947 | ||
4948 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4949 | PyObject *resultobj; | |
4950 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4951 | PyObject * obj0 = 0 ; | |
4952 | char *kwnames[] = { | |
4953 | (char *) "self", NULL | |
4954 | }; | |
4955 | ||
4956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4959 | { | |
4960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4961 | (arg1)->Hide(); | |
4962 | ||
4963 | wxPyEndAllowThreads(__tstate); | |
4964 | if (PyErr_Occurred()) SWIG_fail; | |
4965 | } | |
4966 | Py_INCREF(Py_None); resultobj = Py_None; | |
4967 | return resultobj; | |
4968 | fail: | |
4969 | return NULL; | |
4970 | } | |
4971 | ||
4972 | ||
4973 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4974 | PyObject *obj; | |
4975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4976 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4977 | Py_INCREF(obj); | |
4978 | return Py_BuildValue((char *)""); | |
4979 | } | |
4980 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4981 | PyObject *resultobj; | |
4982 | int result; | |
4983 | char *kwnames[] = { | |
4984 | NULL | |
4985 | }; | |
4986 | ||
4987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4988 | { | |
4989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4990 | result = (int)wxCaret_GetBlinkTime(); | |
4991 | ||
4992 | wxPyEndAllowThreads(__tstate); | |
4993 | if (PyErr_Occurred()) SWIG_fail; | |
4994 | } | |
4995 | resultobj = SWIG_FromInt((int)result); | |
4996 | return resultobj; | |
4997 | fail: | |
4998 | return NULL; | |
4999 | } | |
5000 | ||
5001 | ||
5002 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5003 | PyObject *resultobj; | |
5004 | int arg1 ; | |
5005 | PyObject * obj0 = 0 ; | |
5006 | char *kwnames[] = { | |
5007 | (char *) "milliseconds", NULL | |
5008 | }; | |
5009 | ||
5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
5011 | arg1 = (int) SWIG_AsInt(obj0); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
5013 | { | |
5014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5015 | wxCaret_SetBlinkTime(arg1); | |
5016 | ||
5017 | wxPyEndAllowThreads(__tstate); | |
5018 | if (PyErr_Occurred()) SWIG_fail; | |
5019 | } | |
5020 | Py_INCREF(Py_None); resultobj = Py_None; | |
5021 | return resultobj; | |
5022 | fail: | |
5023 | return NULL; | |
5024 | } | |
5025 | ||
5026 | ||
5027 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5028 | PyObject *resultobj; | |
5029 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5030 | wxBusyCursor *result; | |
5031 | PyObject * obj0 = 0 ; | |
5032 | char *kwnames[] = { | |
5033 | (char *) "cursor", NULL | |
5034 | }; | |
5035 | ||
5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5037 | if (obj0) { | |
5038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5040 | } | |
5041 | { | |
5042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5043 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5044 | ||
5045 | wxPyEndAllowThreads(__tstate); | |
5046 | if (PyErr_Occurred()) SWIG_fail; | |
5047 | } | |
5048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5049 | return resultobj; | |
5050 | fail: | |
5051 | return NULL; | |
5052 | } | |
5053 | ||
5054 | ||
5055 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5056 | PyObject *resultobj; | |
5057 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5058 | PyObject * obj0 = 0 ; | |
5059 | char *kwnames[] = { | |
5060 | (char *) "self", NULL | |
5061 | }; | |
5062 | ||
5063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5066 | { | |
5067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5068 | delete arg1; | |
5069 | ||
5070 | wxPyEndAllowThreads(__tstate); | |
5071 | if (PyErr_Occurred()) SWIG_fail; | |
5072 | } | |
5073 | Py_INCREF(Py_None); resultobj = Py_None; | |
5074 | return resultobj; | |
5075 | fail: | |
5076 | return NULL; | |
5077 | } | |
5078 | ||
5079 | ||
5080 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5081 | PyObject *obj; | |
5082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5083 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5084 | Py_INCREF(obj); | |
5085 | return Py_BuildValue((char *)""); | |
5086 | } | |
5087 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5088 | PyObject *resultobj; | |
5089 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5090 | wxWindowDisabler *result; | |
5091 | PyObject * obj0 = 0 ; | |
5092 | char *kwnames[] = { | |
5093 | (char *) "winToSkip", NULL | |
5094 | }; | |
5095 | ||
5096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5097 | if (obj0) { | |
5098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5100 | } | |
5101 | { | |
5102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5103 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5104 | ||
5105 | wxPyEndAllowThreads(__tstate); | |
5106 | if (PyErr_Occurred()) SWIG_fail; | |
5107 | } | |
5108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5109 | return resultobj; | |
5110 | fail: | |
5111 | return NULL; | |
5112 | } | |
5113 | ||
5114 | ||
5115 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5116 | PyObject *resultobj; | |
5117 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5118 | PyObject * obj0 = 0 ; | |
5119 | char *kwnames[] = { | |
5120 | (char *) "self", NULL | |
5121 | }; | |
5122 | ||
5123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5126 | { | |
5127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5128 | delete arg1; | |
5129 | ||
5130 | wxPyEndAllowThreads(__tstate); | |
5131 | if (PyErr_Occurred()) SWIG_fail; | |
5132 | } | |
5133 | Py_INCREF(Py_None); resultobj = Py_None; | |
5134 | return resultobj; | |
5135 | fail: | |
5136 | return NULL; | |
5137 | } | |
5138 | ||
5139 | ||
5140 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5141 | PyObject *obj; | |
5142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5143 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5144 | Py_INCREF(obj); | |
5145 | return Py_BuildValue((char *)""); | |
5146 | } | |
5147 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5148 | PyObject *resultobj; | |
5149 | wxString *arg1 = 0 ; | |
5150 | wxBusyInfo *result; | |
5151 | bool temp1 = False ; | |
5152 | PyObject * obj0 = 0 ; | |
5153 | char *kwnames[] = { | |
5154 | (char *) "message", NULL | |
5155 | }; | |
5156 | ||
5157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5158 | { | |
5159 | arg1 = wxString_in_helper(obj0); | |
5160 | if (arg1 == NULL) SWIG_fail; | |
5161 | temp1 = True; | |
5162 | } | |
5163 | { | |
5164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5165 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5166 | ||
5167 | wxPyEndAllowThreads(__tstate); | |
5168 | if (PyErr_Occurred()) SWIG_fail; | |
5169 | } | |
5170 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5171 | { | |
5172 | if (temp1) | |
5173 | delete arg1; | |
5174 | } | |
5175 | return resultobj; | |
5176 | fail: | |
5177 | { | |
5178 | if (temp1) | |
5179 | delete arg1; | |
5180 | } | |
5181 | return NULL; | |
5182 | } | |
5183 | ||
5184 | ||
5185 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5186 | PyObject *resultobj; | |
5187 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5188 | PyObject * obj0 = 0 ; | |
5189 | char *kwnames[] = { | |
5190 | (char *) "self", NULL | |
5191 | }; | |
5192 | ||
5193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5196 | { | |
5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5198 | delete arg1; | |
5199 | ||
5200 | wxPyEndAllowThreads(__tstate); | |
5201 | if (PyErr_Occurred()) SWIG_fail; | |
5202 | } | |
5203 | Py_INCREF(Py_None); resultobj = Py_None; | |
5204 | return resultobj; | |
5205 | fail: | |
5206 | return NULL; | |
5207 | } | |
5208 | ||
5209 | ||
5210 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5211 | PyObject *obj; | |
5212 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5213 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5214 | Py_INCREF(obj); | |
5215 | return Py_BuildValue((char *)""); | |
5216 | } | |
5217 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5218 | PyObject *resultobj; | |
5219 | wxStopWatch *result; | |
5220 | char *kwnames[] = { | |
5221 | NULL | |
5222 | }; | |
5223 | ||
5224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5225 | { | |
5226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5227 | result = (wxStopWatch *)new wxStopWatch(); | |
5228 | ||
5229 | wxPyEndAllowThreads(__tstate); | |
5230 | if (PyErr_Occurred()) SWIG_fail; | |
5231 | } | |
5232 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5233 | return resultobj; | |
5234 | fail: | |
5235 | return NULL; | |
5236 | } | |
5237 | ||
5238 | ||
5239 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5240 | PyObject *resultobj; | |
5241 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5242 | long arg2 = (long) 0 ; | |
5243 | PyObject * obj0 = 0 ; | |
5244 | PyObject * obj1 = 0 ; | |
5245 | char *kwnames[] = { | |
5246 | (char *) "self",(char *) "t0", NULL | |
5247 | }; | |
5248 | ||
5249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5252 | if (obj1) { | |
5253 | arg2 = (long) SWIG_AsLong(obj1); | |
5254 | if (PyErr_Occurred()) SWIG_fail; | |
5255 | } | |
5256 | { | |
5257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5258 | (arg1)->Start(arg2); | |
5259 | ||
5260 | wxPyEndAllowThreads(__tstate); | |
5261 | if (PyErr_Occurred()) SWIG_fail; | |
5262 | } | |
5263 | Py_INCREF(Py_None); resultobj = Py_None; | |
5264 | return resultobj; | |
5265 | fail: | |
5266 | return NULL; | |
5267 | } | |
5268 | ||
5269 | ||
5270 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5271 | PyObject *resultobj; | |
5272 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5273 | PyObject * obj0 = 0 ; | |
5274 | char *kwnames[] = { | |
5275 | (char *) "self", NULL | |
5276 | }; | |
5277 | ||
5278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5281 | { | |
5282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5283 | (arg1)->Pause(); | |
5284 | ||
5285 | wxPyEndAllowThreads(__tstate); | |
5286 | if (PyErr_Occurred()) SWIG_fail; | |
5287 | } | |
5288 | Py_INCREF(Py_None); resultobj = Py_None; | |
5289 | return resultobj; | |
5290 | fail: | |
5291 | return NULL; | |
5292 | } | |
5293 | ||
5294 | ||
5295 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5296 | PyObject *resultobj; | |
5297 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5298 | PyObject * obj0 = 0 ; | |
5299 | char *kwnames[] = { | |
5300 | (char *) "self", NULL | |
5301 | }; | |
5302 | ||
5303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5306 | { | |
5307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5308 | (arg1)->Resume(); | |
5309 | ||
5310 | wxPyEndAllowThreads(__tstate); | |
5311 | if (PyErr_Occurred()) SWIG_fail; | |
5312 | } | |
5313 | Py_INCREF(Py_None); resultobj = Py_None; | |
5314 | return resultobj; | |
5315 | fail: | |
5316 | return NULL; | |
5317 | } | |
5318 | ||
5319 | ||
5320 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5321 | PyObject *resultobj; | |
5322 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5323 | long result; | |
5324 | PyObject * obj0 = 0 ; | |
5325 | char *kwnames[] = { | |
5326 | (char *) "self", NULL | |
5327 | }; | |
5328 | ||
5329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5332 | { | |
5333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5334 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5335 | ||
5336 | wxPyEndAllowThreads(__tstate); | |
5337 | if (PyErr_Occurred()) SWIG_fail; | |
5338 | } | |
5339 | resultobj = SWIG_FromLong((long)result); | |
5340 | return resultobj; | |
5341 | fail: | |
5342 | return NULL; | |
5343 | } | |
5344 | ||
5345 | ||
5346 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5347 | PyObject *obj; | |
5348 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5349 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5350 | Py_INCREF(obj); | |
5351 | return Py_BuildValue((char *)""); | |
5352 | } | |
5353 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5354 | PyObject *resultobj; | |
5355 | int arg1 = (int) 9 ; | |
5356 | wxFileHistory *result; | |
5357 | PyObject * obj0 = 0 ; | |
5358 | char *kwnames[] = { | |
5359 | (char *) "maxFiles", NULL | |
5360 | }; | |
5361 | ||
5362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; | |
5363 | if (obj0) { | |
5364 | arg1 = (int) SWIG_AsInt(obj0); | |
5365 | if (PyErr_Occurred()) SWIG_fail; | |
5366 | } | |
5367 | { | |
5368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5369 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5370 | ||
5371 | wxPyEndAllowThreads(__tstate); | |
5372 | if (PyErr_Occurred()) SWIG_fail; | |
5373 | } | |
5374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5375 | return resultobj; | |
5376 | fail: | |
5377 | return NULL; | |
5378 | } | |
5379 | ||
5380 | ||
5381 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5382 | PyObject *resultobj; | |
5383 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5384 | PyObject * obj0 = 0 ; | |
5385 | char *kwnames[] = { | |
5386 | (char *) "self", NULL | |
5387 | }; | |
5388 | ||
5389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5392 | { | |
5393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5394 | delete arg1; | |
5395 | ||
5396 | wxPyEndAllowThreads(__tstate); | |
5397 | if (PyErr_Occurred()) SWIG_fail; | |
5398 | } | |
5399 | Py_INCREF(Py_None); resultobj = Py_None; | |
5400 | return resultobj; | |
5401 | fail: | |
5402 | return NULL; | |
5403 | } | |
5404 | ||
5405 | ||
5406 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5407 | PyObject *resultobj; | |
5408 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5409 | wxString *arg2 = 0 ; | |
5410 | bool temp2 = False ; | |
5411 | PyObject * obj0 = 0 ; | |
5412 | PyObject * obj1 = 0 ; | |
5413 | char *kwnames[] = { | |
5414 | (char *) "self",(char *) "file", NULL | |
5415 | }; | |
5416 | ||
5417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5420 | { | |
5421 | arg2 = wxString_in_helper(obj1); | |
5422 | if (arg2 == NULL) SWIG_fail; | |
5423 | temp2 = True; | |
5424 | } | |
5425 | { | |
5426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5427 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5428 | ||
5429 | wxPyEndAllowThreads(__tstate); | |
5430 | if (PyErr_Occurred()) SWIG_fail; | |
5431 | } | |
5432 | Py_INCREF(Py_None); resultobj = Py_None; | |
5433 | { | |
5434 | if (temp2) | |
5435 | delete arg2; | |
5436 | } | |
5437 | return resultobj; | |
5438 | fail: | |
5439 | { | |
5440 | if (temp2) | |
5441 | delete arg2; | |
5442 | } | |
5443 | return NULL; | |
5444 | } | |
5445 | ||
5446 | ||
5447 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5448 | PyObject *resultobj; | |
5449 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5450 | int arg2 ; | |
5451 | PyObject * obj0 = 0 ; | |
5452 | PyObject * obj1 = 0 ; | |
5453 | char *kwnames[] = { | |
5454 | (char *) "self",(char *) "i", NULL | |
5455 | }; | |
5456 | ||
5457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5460 | arg2 = (int) SWIG_AsInt(obj1); | |
5461 | if (PyErr_Occurred()) SWIG_fail; | |
5462 | { | |
5463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5464 | (arg1)->RemoveFileFromHistory(arg2); | |
5465 | ||
5466 | wxPyEndAllowThreads(__tstate); | |
5467 | if (PyErr_Occurred()) SWIG_fail; | |
5468 | } | |
5469 | Py_INCREF(Py_None); resultobj = Py_None; | |
5470 | return resultobj; | |
5471 | fail: | |
5472 | return NULL; | |
5473 | } | |
5474 | ||
5475 | ||
5476 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5477 | PyObject *resultobj; | |
5478 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5479 | int result; | |
5480 | PyObject * obj0 = 0 ; | |
5481 | char *kwnames[] = { | |
5482 | (char *) "self", NULL | |
5483 | }; | |
5484 | ||
5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5488 | { | |
5489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5490 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5491 | ||
5492 | wxPyEndAllowThreads(__tstate); | |
5493 | if (PyErr_Occurred()) SWIG_fail; | |
5494 | } | |
5495 | resultobj = SWIG_FromInt((int)result); | |
5496 | return resultobj; | |
5497 | fail: | |
5498 | return NULL; | |
5499 | } | |
5500 | ||
5501 | ||
5502 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5503 | PyObject *resultobj; | |
5504 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5505 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5506 | PyObject * obj0 = 0 ; | |
5507 | PyObject * obj1 = 0 ; | |
5508 | char *kwnames[] = { | |
5509 | (char *) "self",(char *) "menu", NULL | |
5510 | }; | |
5511 | ||
5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
5513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5517 | { | |
5518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5519 | (arg1)->UseMenu(arg2); | |
5520 | ||
5521 | wxPyEndAllowThreads(__tstate); | |
5522 | if (PyErr_Occurred()) SWIG_fail; | |
5523 | } | |
5524 | Py_INCREF(Py_None); resultobj = Py_None; | |
5525 | return resultobj; | |
5526 | fail: | |
5527 | return NULL; | |
5528 | } | |
5529 | ||
5530 | ||
5531 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5532 | PyObject *resultobj; | |
5533 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5534 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5535 | PyObject * obj0 = 0 ; | |
5536 | PyObject * obj1 = 0 ; | |
5537 | char *kwnames[] = { | |
5538 | (char *) "self",(char *) "menu", NULL | |
5539 | }; | |
5540 | ||
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
5542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5546 | { | |
5547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5548 | (arg1)->RemoveMenu(arg2); | |
5549 | ||
5550 | wxPyEndAllowThreads(__tstate); | |
5551 | if (PyErr_Occurred()) SWIG_fail; | |
5552 | } | |
5553 | Py_INCREF(Py_None); resultobj = Py_None; | |
5554 | return resultobj; | |
5555 | fail: | |
5556 | return NULL; | |
5557 | } | |
5558 | ||
5559 | ||
5560 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5561 | PyObject *resultobj; | |
5562 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5563 | wxConfigBase *arg2 = 0 ; | |
5564 | PyObject * obj0 = 0 ; | |
5565 | PyObject * obj1 = 0 ; | |
5566 | char *kwnames[] = { | |
5567 | (char *) "self",(char *) "config", NULL | |
5568 | }; | |
5569 | ||
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5573 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5574 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5575 | SWIG_fail; | |
5576 | if (arg2 == NULL) { | |
5577 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5578 | SWIG_fail; | |
5579 | } | |
5580 | { | |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5582 | (arg1)->Load(*arg2); | |
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_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5595 | PyObject *resultobj; | |
5596 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5597 | wxConfigBase *arg2 = 0 ; | |
5598 | PyObject * obj0 = 0 ; | |
5599 | PyObject * obj1 = 0 ; | |
5600 | char *kwnames[] = { | |
5601 | (char *) "self",(char *) "config", NULL | |
5602 | }; | |
5603 | ||
5604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5608 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5609 | SWIG_fail; | |
5610 | if (arg2 == NULL) { | |
5611 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5612 | SWIG_fail; | |
5613 | } | |
5614 | { | |
5615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5616 | (arg1)->Save(*arg2); | |
5617 | ||
5618 | wxPyEndAllowThreads(__tstate); | |
5619 | if (PyErr_Occurred()) SWIG_fail; | |
5620 | } | |
5621 | Py_INCREF(Py_None); resultobj = Py_None; | |
5622 | return resultobj; | |
5623 | fail: | |
5624 | return NULL; | |
5625 | } | |
5626 | ||
5627 | ||
5628 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5629 | PyObject *resultobj; | |
5630 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5631 | PyObject * obj0 = 0 ; | |
5632 | char *kwnames[] = { | |
5633 | (char *) "self", NULL | |
5634 | }; | |
5635 | ||
5636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5639 | { | |
5640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5641 | (arg1)->AddFilesToMenu(); | |
5642 | ||
5643 | wxPyEndAllowThreads(__tstate); | |
5644 | if (PyErr_Occurred()) SWIG_fail; | |
5645 | } | |
5646 | Py_INCREF(Py_None); resultobj = Py_None; | |
5647 | return resultobj; | |
5648 | fail: | |
5649 | return NULL; | |
5650 | } | |
5651 | ||
5652 | ||
5653 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5654 | PyObject *resultobj; | |
5655 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5656 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5657 | PyObject * obj0 = 0 ; | |
5658 | PyObject * obj1 = 0 ; | |
5659 | char *kwnames[] = { | |
5660 | (char *) "self",(char *) "menu", NULL | |
5661 | }; | |
5662 | ||
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5668 | { | |
5669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5670 | (arg1)->AddFilesToMenu(arg2); | |
5671 | ||
5672 | wxPyEndAllowThreads(__tstate); | |
5673 | if (PyErr_Occurred()) SWIG_fail; | |
5674 | } | |
5675 | Py_INCREF(Py_None); resultobj = Py_None; | |
5676 | return resultobj; | |
5677 | fail: | |
5678 | return NULL; | |
5679 | } | |
5680 | ||
5681 | ||
5682 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5683 | PyObject *resultobj; | |
5684 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5685 | int arg2 ; | |
5686 | wxString result; | |
5687 | PyObject * obj0 = 0 ; | |
5688 | PyObject * obj1 = 0 ; | |
5689 | char *kwnames[] = { | |
5690 | (char *) "self",(char *) "i", NULL | |
5691 | }; | |
5692 | ||
5693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
5694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5696 | arg2 = (int) SWIG_AsInt(obj1); | |
5697 | if (PyErr_Occurred()) SWIG_fail; | |
5698 | { | |
5699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5700 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5701 | ||
5702 | wxPyEndAllowThreads(__tstate); | |
5703 | if (PyErr_Occurred()) SWIG_fail; | |
5704 | } | |
5705 | { | |
5706 | #if wxUSE_UNICODE | |
5707 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5708 | #else | |
5709 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5710 | #endif | |
5711 | } | |
5712 | return resultobj; | |
5713 | fail: | |
5714 | return NULL; | |
5715 | } | |
5716 | ||
5717 | ||
5718 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5719 | PyObject *resultobj; | |
5720 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5721 | int result; | |
5722 | PyObject * obj0 = 0 ; | |
5723 | char *kwnames[] = { | |
5724 | (char *) "self", NULL | |
5725 | }; | |
5726 | ||
5727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5730 | { | |
5731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5732 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5733 | ||
5734 | wxPyEndAllowThreads(__tstate); | |
5735 | if (PyErr_Occurred()) SWIG_fail; | |
5736 | } | |
5737 | resultobj = SWIG_FromInt((int)result); | |
5738 | return resultobj; | |
5739 | fail: | |
5740 | return NULL; | |
5741 | } | |
5742 | ||
5743 | ||
5744 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5745 | PyObject *obj; | |
5746 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5747 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5748 | Py_INCREF(obj); | |
5749 | return Py_BuildValue((char *)""); | |
5750 | } | |
5751 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5752 | PyObject *resultobj; | |
5753 | wxString *arg1 = 0 ; | |
5754 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5755 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5756 | wxSingleInstanceChecker *result; | |
5757 | bool temp1 = False ; | |
5758 | bool temp2 = False ; | |
5759 | PyObject * obj0 = 0 ; | |
5760 | PyObject * obj1 = 0 ; | |
5761 | char *kwnames[] = { | |
5762 | (char *) "name",(char *) "path", NULL | |
5763 | }; | |
5764 | ||
5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5766 | { | |
5767 | arg1 = wxString_in_helper(obj0); | |
5768 | if (arg1 == NULL) SWIG_fail; | |
5769 | temp1 = True; | |
5770 | } | |
5771 | if (obj1) { | |
5772 | { | |
5773 | arg2 = wxString_in_helper(obj1); | |
5774 | if (arg2 == NULL) SWIG_fail; | |
5775 | temp2 = True; | |
5776 | } | |
5777 | } | |
5778 | { | |
5779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5780 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5781 | ||
5782 | wxPyEndAllowThreads(__tstate); | |
5783 | if (PyErr_Occurred()) SWIG_fail; | |
5784 | } | |
5785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5786 | { | |
5787 | if (temp1) | |
5788 | delete arg1; | |
5789 | } | |
5790 | { | |
5791 | if (temp2) | |
5792 | delete arg2; | |
5793 | } | |
5794 | return resultobj; | |
5795 | fail: | |
5796 | { | |
5797 | if (temp1) | |
5798 | delete arg1; | |
5799 | } | |
5800 | { | |
5801 | if (temp2) | |
5802 | delete arg2; | |
5803 | } | |
5804 | return NULL; | |
5805 | } | |
5806 | ||
5807 | ||
5808 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5809 | PyObject *resultobj; | |
5810 | wxSingleInstanceChecker *result; | |
5811 | char *kwnames[] = { | |
5812 | NULL | |
5813 | }; | |
5814 | ||
5815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5816 | { | |
5817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5818 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5819 | ||
5820 | wxPyEndAllowThreads(__tstate); | |
5821 | if (PyErr_Occurred()) SWIG_fail; | |
5822 | } | |
5823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5824 | return resultobj; | |
5825 | fail: | |
5826 | return NULL; | |
5827 | } | |
5828 | ||
5829 | ||
5830 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5831 | PyObject *resultobj; | |
5832 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5833 | PyObject * obj0 = 0 ; | |
5834 | char *kwnames[] = { | |
5835 | (char *) "self", NULL | |
5836 | }; | |
5837 | ||
5838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5841 | { | |
5842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5843 | delete arg1; | |
5844 | ||
5845 | wxPyEndAllowThreads(__tstate); | |
5846 | if (PyErr_Occurred()) SWIG_fail; | |
5847 | } | |
5848 | Py_INCREF(Py_None); resultobj = Py_None; | |
5849 | return resultobj; | |
5850 | fail: | |
5851 | return NULL; | |
5852 | } | |
5853 | ||
5854 | ||
5855 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5856 | PyObject *resultobj; | |
5857 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5858 | wxString *arg2 = 0 ; | |
5859 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5860 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5861 | bool result; | |
5862 | bool temp2 = False ; | |
5863 | bool temp3 = False ; | |
5864 | PyObject * obj0 = 0 ; | |
5865 | PyObject * obj1 = 0 ; | |
5866 | PyObject * obj2 = 0 ; | |
5867 | char *kwnames[] = { | |
5868 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5869 | }; | |
5870 | ||
5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5874 | { | |
5875 | arg2 = wxString_in_helper(obj1); | |
5876 | if (arg2 == NULL) SWIG_fail; | |
5877 | temp2 = True; | |
5878 | } | |
5879 | if (obj2) { | |
5880 | { | |
5881 | arg3 = wxString_in_helper(obj2); | |
5882 | if (arg3 == NULL) SWIG_fail; | |
5883 | temp3 = True; | |
5884 | } | |
5885 | } | |
5886 | { | |
5887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5888 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5889 | ||
5890 | wxPyEndAllowThreads(__tstate); | |
5891 | if (PyErr_Occurred()) SWIG_fail; | |
5892 | } | |
5893 | { | |
5894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5895 | } | |
5896 | { | |
5897 | if (temp2) | |
5898 | delete arg2; | |
5899 | } | |
5900 | { | |
5901 | if (temp3) | |
5902 | delete arg3; | |
5903 | } | |
5904 | return resultobj; | |
5905 | fail: | |
5906 | { | |
5907 | if (temp2) | |
5908 | delete arg2; | |
5909 | } | |
5910 | { | |
5911 | if (temp3) | |
5912 | delete arg3; | |
5913 | } | |
5914 | return NULL; | |
5915 | } | |
5916 | ||
5917 | ||
5918 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5919 | PyObject *resultobj; | |
5920 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5921 | bool result; | |
5922 | PyObject * obj0 = 0 ; | |
5923 | char *kwnames[] = { | |
5924 | (char *) "self", NULL | |
5925 | }; | |
5926 | ||
5927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5930 | { | |
5931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5932 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5933 | ||
5934 | wxPyEndAllowThreads(__tstate); | |
5935 | if (PyErr_Occurred()) SWIG_fail; | |
5936 | } | |
5937 | { | |
5938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5939 | } | |
5940 | return resultobj; | |
5941 | fail: | |
5942 | return NULL; | |
5943 | } | |
5944 | ||
5945 | ||
5946 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5947 | PyObject *obj; | |
5948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5949 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5950 | Py_INCREF(obj); | |
5951 | return Py_BuildValue((char *)""); | |
5952 | } | |
5953 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5954 | PyObject *resultobj; | |
5955 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5956 | wxDC *arg2 = 0 ; | |
5957 | int arg3 ; | |
5958 | PyObject * obj0 = 0 ; | |
5959 | PyObject * obj1 = 0 ; | |
5960 | PyObject * obj2 = 0 ; | |
5961 | char *kwnames[] = { | |
5962 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5963 | }; | |
5964 | ||
5965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5968 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5969 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5970 | SWIG_fail; | |
5971 | if (arg2 == NULL) { | |
5972 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5973 | SWIG_fail; | |
5974 | } | |
5975 | arg3 = (int) SWIG_AsInt(obj2); | |
5976 | if (PyErr_Occurred()) SWIG_fail; | |
5977 | { | |
5978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5979 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5980 | ||
5981 | wxPyEndAllowThreads(__tstate); | |
5982 | if (PyErr_Occurred()) SWIG_fail; | |
5983 | } | |
5984 | Py_INCREF(Py_None); resultobj = Py_None; | |
5985 | return resultobj; | |
5986 | fail: | |
5987 | return NULL; | |
5988 | } | |
5989 | ||
5990 | ||
5991 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5992 | PyObject *resultobj; | |
5993 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5994 | PyObject * obj0 = 0 ; | |
5995 | char *kwnames[] = { | |
5996 | (char *) "self", NULL | |
5997 | }; | |
5998 | ||
5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6002 | { | |
6003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6004 | delete arg1; | |
6005 | ||
6006 | wxPyEndAllowThreads(__tstate); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
6008 | } | |
6009 | Py_INCREF(Py_None); resultobj = Py_None; | |
6010 | return resultobj; | |
6011 | fail: | |
6012 | return NULL; | |
6013 | } | |
6014 | ||
6015 | ||
6016 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6017 | PyObject *resultobj; | |
6018 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6019 | wxString result; | |
6020 | PyObject * obj0 = 0 ; | |
6021 | char *kwnames[] = { | |
6022 | (char *) "self", NULL | |
6023 | }; | |
6024 | ||
6025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6028 | { | |
6029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6030 | result = (arg1)->GetTip(); | |
6031 | ||
6032 | wxPyEndAllowThreads(__tstate); | |
6033 | if (PyErr_Occurred()) SWIG_fail; | |
6034 | } | |
6035 | { | |
6036 | #if wxUSE_UNICODE | |
6037 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6038 | #else | |
6039 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6040 | #endif | |
6041 | } | |
6042 | return resultobj; | |
6043 | fail: | |
6044 | return NULL; | |
6045 | } | |
6046 | ||
6047 | ||
6048 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6049 | PyObject *resultobj; | |
6050 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6051 | size_t result; | |
6052 | PyObject * obj0 = 0 ; | |
6053 | char *kwnames[] = { | |
6054 | (char *) "self", NULL | |
6055 | }; | |
6056 | ||
6057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6060 | { | |
6061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6062 | result = (size_t)(arg1)->GetCurrentTip(); | |
6063 | ||
6064 | wxPyEndAllowThreads(__tstate); | |
6065 | if (PyErr_Occurred()) SWIG_fail; | |
6066 | } | |
6067 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
6068 | return resultobj; | |
6069 | fail: | |
6070 | return NULL; | |
6071 | } | |
6072 | ||
6073 | ||
6074 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6075 | PyObject *resultobj; | |
6076 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6077 | wxString *arg2 = 0 ; | |
6078 | wxString result; | |
6079 | bool temp2 = False ; | |
6080 | PyObject * obj0 = 0 ; | |
6081 | PyObject * obj1 = 0 ; | |
6082 | char *kwnames[] = { | |
6083 | (char *) "self",(char *) "tip", NULL | |
6084 | }; | |
6085 | ||
6086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6089 | { | |
6090 | arg2 = wxString_in_helper(obj1); | |
6091 | if (arg2 == NULL) SWIG_fail; | |
6092 | temp2 = True; | |
6093 | } | |
6094 | { | |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6096 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6097 | ||
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
6101 | { | |
6102 | #if wxUSE_UNICODE | |
6103 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6104 | #else | |
6105 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6106 | #endif | |
6107 | } | |
6108 | { | |
6109 | if (temp2) | |
6110 | delete arg2; | |
6111 | } | |
6112 | return resultobj; | |
6113 | fail: | |
6114 | { | |
6115 | if (temp2) | |
6116 | delete arg2; | |
6117 | } | |
6118 | return NULL; | |
6119 | } | |
6120 | ||
6121 | ||
6122 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6123 | PyObject *obj; | |
6124 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6125 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6126 | Py_INCREF(obj); | |
6127 | return Py_BuildValue((char *)""); | |
6128 | } | |
6129 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject *resultobj; | |
6131 | size_t arg1 ; | |
6132 | wxPyTipProvider *result; | |
6133 | PyObject * obj0 = 0 ; | |
6134 | char *kwnames[] = { | |
6135 | (char *) "currentTip", NULL | |
6136 | }; | |
6137 | ||
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
6139 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
6140 | if (PyErr_Occurred()) SWIG_fail; | |
6141 | { | |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6144 | ||
6145 | wxPyEndAllowThreads(__tstate); | |
6146 | if (PyErr_Occurred()) SWIG_fail; | |
6147 | } | |
6148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6149 | return resultobj; | |
6150 | fail: | |
6151 | return NULL; | |
6152 | } | |
6153 | ||
6154 | ||
6155 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6156 | PyObject *resultobj; | |
6157 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6158 | PyObject *arg2 = (PyObject *) 0 ; | |
6159 | PyObject *arg3 = (PyObject *) 0 ; | |
6160 | PyObject * obj0 = 0 ; | |
6161 | PyObject * obj1 = 0 ; | |
6162 | PyObject * obj2 = 0 ; | |
6163 | char *kwnames[] = { | |
6164 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6165 | }; | |
6166 | ||
6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6170 | arg2 = obj1; | |
6171 | arg3 = obj2; | |
6172 | { | |
6173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6174 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6175 | ||
6176 | wxPyEndAllowThreads(__tstate); | |
6177 | if (PyErr_Occurred()) SWIG_fail; | |
6178 | } | |
6179 | Py_INCREF(Py_None); resultobj = Py_None; | |
6180 | return resultobj; | |
6181 | fail: | |
6182 | return NULL; | |
6183 | } | |
6184 | ||
6185 | ||
6186 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6187 | PyObject *obj; | |
6188 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6189 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6190 | Py_INCREF(obj); | |
6191 | return Py_BuildValue((char *)""); | |
6192 | } | |
6193 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6194 | PyObject *resultobj; | |
6195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6196 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
6197 | bool arg3 = (bool) True ; | |
6198 | bool result; | |
6199 | PyObject * obj0 = 0 ; | |
6200 | PyObject * obj1 = 0 ; | |
6201 | PyObject * obj2 = 0 ; | |
6202 | char *kwnames[] = { | |
6203 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6204 | }; | |
6205 | ||
6206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6211 | if (obj2) { | |
6212 | arg3 = (bool) SWIG_AsBool(obj2); | |
6213 | if (PyErr_Occurred()) SWIG_fail; | |
6214 | } | |
6215 | { | |
6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6217 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6218 | ||
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | { | |
6223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6224 | } | |
6225 | return resultobj; | |
6226 | fail: | |
6227 | return NULL; | |
6228 | } | |
6229 | ||
6230 | ||
6231 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6232 | PyObject *resultobj; | |
6233 | wxString *arg1 = 0 ; | |
6234 | size_t arg2 ; | |
6235 | wxTipProvider *result; | |
6236 | bool temp1 = False ; | |
6237 | PyObject * obj0 = 0 ; | |
6238 | PyObject * obj1 = 0 ; | |
6239 | char *kwnames[] = { | |
6240 | (char *) "filename",(char *) "currentTip", NULL | |
6241 | }; | |
6242 | ||
6243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6244 | { | |
6245 | arg1 = wxString_in_helper(obj0); | |
6246 | if (arg1 == NULL) SWIG_fail; | |
6247 | temp1 = True; | |
6248 | } | |
6249 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6250 | if (PyErr_Occurred()) SWIG_fail; | |
6251 | { | |
6252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6253 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6254 | ||
6255 | wxPyEndAllowThreads(__tstate); | |
6256 | if (PyErr_Occurred()) SWIG_fail; | |
6257 | } | |
6258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6259 | { | |
6260 | if (temp1) | |
6261 | delete arg1; | |
6262 | } | |
6263 | return resultobj; | |
6264 | fail: | |
6265 | { | |
6266 | if (temp1) | |
6267 | delete arg1; | |
6268 | } | |
6269 | return NULL; | |
6270 | } | |
6271 | ||
6272 | ||
6273 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6274 | PyObject *resultobj; | |
6275 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6276 | int arg2 = (int) -1 ; | |
6277 | wxPyTimer *result; | |
6278 | PyObject * obj0 = 0 ; | |
6279 | PyObject * obj1 = 0 ; | |
6280 | char *kwnames[] = { | |
6281 | (char *) "owner",(char *) "id", NULL | |
6282 | }; | |
6283 | ||
6284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6285 | if (obj0) { | |
6286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6288 | } | |
6289 | if (obj1) { | |
6290 | arg2 = (int) SWIG_AsInt(obj1); | |
6291 | if (PyErr_Occurred()) SWIG_fail; | |
6292 | } | |
6293 | { | |
6294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6295 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6296 | ||
6297 | wxPyEndAllowThreads(__tstate); | |
6298 | if (PyErr_Occurred()) SWIG_fail; | |
6299 | } | |
6300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6301 | return resultobj; | |
6302 | fail: | |
6303 | return NULL; | |
6304 | } | |
6305 | ||
6306 | ||
6307 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6308 | PyObject *resultobj; | |
6309 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6310 | PyObject * obj0 = 0 ; | |
6311 | char *kwnames[] = { | |
6312 | (char *) "self", NULL | |
6313 | }; | |
6314 | ||
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6318 | { | |
6319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6320 | delete arg1; | |
6321 | ||
6322 | wxPyEndAllowThreads(__tstate); | |
6323 | if (PyErr_Occurred()) SWIG_fail; | |
6324 | } | |
6325 | Py_INCREF(Py_None); resultobj = Py_None; | |
6326 | return resultobj; | |
6327 | fail: | |
6328 | return NULL; | |
6329 | } | |
6330 | ||
6331 | ||
6332 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6333 | PyObject *resultobj; | |
6334 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6335 | PyObject *arg2 = (PyObject *) 0 ; | |
6336 | PyObject *arg3 = (PyObject *) 0 ; | |
6337 | int arg4 = (int) 1 ; | |
6338 | PyObject * obj0 = 0 ; | |
6339 | PyObject * obj1 = 0 ; | |
6340 | PyObject * obj2 = 0 ; | |
6341 | PyObject * obj3 = 0 ; | |
6342 | char *kwnames[] = { | |
6343 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6344 | }; | |
6345 | ||
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6349 | arg2 = obj1; | |
6350 | arg3 = obj2; | |
6351 | if (obj3) { | |
6352 | arg4 = (int) SWIG_AsInt(obj3); | |
6353 | if (PyErr_Occurred()) SWIG_fail; | |
6354 | } | |
6355 | { | |
6356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6357 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6358 | ||
6359 | wxPyEndAllowThreads(__tstate); | |
6360 | if (PyErr_Occurred()) SWIG_fail; | |
6361 | } | |
6362 | Py_INCREF(Py_None); resultobj = Py_None; | |
6363 | return resultobj; | |
6364 | fail: | |
6365 | return NULL; | |
6366 | } | |
6367 | ||
6368 | ||
6369 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6370 | PyObject *resultobj; | |
6371 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6372 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6373 | int arg3 = (int) -1 ; | |
6374 | PyObject * obj0 = 0 ; | |
6375 | PyObject * obj1 = 0 ; | |
6376 | PyObject * obj2 = 0 ; | |
6377 | char *kwnames[] = { | |
6378 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6379 | }; | |
6380 | ||
6381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6384 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6386 | if (obj2) { | |
6387 | arg3 = (int) SWIG_AsInt(obj2); | |
6388 | if (PyErr_Occurred()) SWIG_fail; | |
6389 | } | |
6390 | { | |
6391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6392 | (arg1)->SetOwner(arg2,arg3); | |
6393 | ||
6394 | wxPyEndAllowThreads(__tstate); | |
6395 | if (PyErr_Occurred()) SWIG_fail; | |
6396 | } | |
6397 | Py_INCREF(Py_None); resultobj = Py_None; | |
6398 | return resultobj; | |
6399 | fail: | |
6400 | return NULL; | |
6401 | } | |
6402 | ||
6403 | ||
6404 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6405 | PyObject *resultobj; | |
6406 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6407 | int arg2 = (int) -1 ; | |
6408 | bool arg3 = (bool) False ; | |
6409 | bool result; | |
6410 | PyObject * obj0 = 0 ; | |
6411 | PyObject * obj1 = 0 ; | |
6412 | PyObject * obj2 = 0 ; | |
6413 | char *kwnames[] = { | |
6414 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6415 | }; | |
6416 | ||
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6420 | if (obj1) { | |
6421 | arg2 = (int) SWIG_AsInt(obj1); | |
6422 | if (PyErr_Occurred()) SWIG_fail; | |
6423 | } | |
6424 | if (obj2) { | |
6425 | arg3 = (bool) SWIG_AsBool(obj2); | |
6426 | if (PyErr_Occurred()) SWIG_fail; | |
6427 | } | |
6428 | { | |
6429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6430 | result = (bool)(arg1)->Start(arg2,arg3); | |
6431 | ||
6432 | wxPyEndAllowThreads(__tstate); | |
6433 | if (PyErr_Occurred()) SWIG_fail; | |
6434 | } | |
6435 | { | |
6436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6437 | } | |
6438 | return resultobj; | |
6439 | fail: | |
6440 | return NULL; | |
6441 | } | |
6442 | ||
6443 | ||
6444 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6445 | PyObject *resultobj; | |
6446 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6447 | PyObject * obj0 = 0 ; | |
6448 | char *kwnames[] = { | |
6449 | (char *) "self", NULL | |
6450 | }; | |
6451 | ||
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6455 | { | |
6456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6457 | (arg1)->Stop(); | |
6458 | ||
6459 | wxPyEndAllowThreads(__tstate); | |
6460 | if (PyErr_Occurred()) SWIG_fail; | |
6461 | } | |
6462 | Py_INCREF(Py_None); resultobj = Py_None; | |
6463 | return resultobj; | |
6464 | fail: | |
6465 | return NULL; | |
6466 | } | |
6467 | ||
6468 | ||
6469 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6470 | PyObject *resultobj; | |
6471 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6472 | bool result; | |
6473 | PyObject * obj0 = 0 ; | |
6474 | char *kwnames[] = { | |
6475 | (char *) "self", NULL | |
6476 | }; | |
6477 | ||
6478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
6479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6481 | { | |
6482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6483 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6484 | ||
6485 | wxPyEndAllowThreads(__tstate); | |
6486 | if (PyErr_Occurred()) SWIG_fail; | |
6487 | } | |
6488 | { | |
6489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6490 | } | |
6491 | return resultobj; | |
6492 | fail: | |
6493 | return NULL; | |
6494 | } | |
6495 | ||
6496 | ||
6497 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6498 | PyObject *resultobj; | |
6499 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6500 | int result; | |
6501 | PyObject * obj0 = 0 ; | |
6502 | char *kwnames[] = { | |
6503 | (char *) "self", NULL | |
6504 | }; | |
6505 | ||
6506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
6507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6509 | { | |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6511 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6512 | ||
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | resultobj = SWIG_FromInt((int)result); | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
6523 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6524 | PyObject *resultobj; | |
6525 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6526 | bool result; | |
6527 | PyObject * obj0 = 0 ; | |
6528 | char *kwnames[] = { | |
6529 | (char *) "self", NULL | |
6530 | }; | |
6531 | ||
6532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
6533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6535 | { | |
6536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6537 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6538 | ||
6539 | wxPyEndAllowThreads(__tstate); | |
6540 | if (PyErr_Occurred()) SWIG_fail; | |
6541 | } | |
6542 | { | |
6543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6544 | } | |
6545 | return resultobj; | |
6546 | fail: | |
6547 | return NULL; | |
6548 | } | |
6549 | ||
6550 | ||
6551 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6552 | PyObject *resultobj; | |
6553 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6554 | int result; | |
6555 | PyObject * obj0 = 0 ; | |
6556 | char *kwnames[] = { | |
6557 | (char *) "self", NULL | |
6558 | }; | |
6559 | ||
6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
6561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6563 | { | |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6566 | ||
6567 | wxPyEndAllowThreads(__tstate); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
6570 | resultobj = SWIG_FromInt((int)result); | |
6571 | return resultobj; | |
6572 | fail: | |
6573 | return NULL; | |
6574 | } | |
6575 | ||
6576 | ||
6577 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { | |
6578 | PyObject *obj; | |
6579 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6580 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6581 | Py_INCREF(obj); | |
6582 | return Py_BuildValue((char *)""); | |
6583 | } | |
6584 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6585 | PyObject *resultobj; | |
6586 | int arg1 = (int) 0 ; | |
6587 | int arg2 = (int) 0 ; | |
6588 | wxTimerEvent *result; | |
6589 | PyObject * obj0 = 0 ; | |
6590 | PyObject * obj1 = 0 ; | |
6591 | char *kwnames[] = { | |
6592 | (char *) "timerid",(char *) "interval", NULL | |
6593 | }; | |
6594 | ||
6595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
6596 | if (obj0) { | |
6597 | arg1 = (int) SWIG_AsInt(obj0); | |
6598 | if (PyErr_Occurred()) SWIG_fail; | |
6599 | } | |
6600 | if (obj1) { | |
6601 | arg2 = (int) SWIG_AsInt(obj1); | |
6602 | if (PyErr_Occurred()) SWIG_fail; | |
6603 | } | |
6604 | { | |
6605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6606 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6607 | ||
6608 | wxPyEndAllowThreads(__tstate); | |
6609 | if (PyErr_Occurred()) SWIG_fail; | |
6610 | } | |
6611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
6612 | return resultobj; | |
6613 | fail: | |
6614 | return NULL; | |
6615 | } | |
6616 | ||
6617 | ||
6618 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6619 | PyObject *resultobj; | |
6620 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6621 | int result; | |
6622 | PyObject * obj0 = 0 ; | |
6623 | char *kwnames[] = { | |
6624 | (char *) "self", NULL | |
6625 | }; | |
6626 | ||
6627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
6628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
6629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6630 | { | |
6631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6632 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6633 | ||
6634 | wxPyEndAllowThreads(__tstate); | |
6635 | if (PyErr_Occurred()) SWIG_fail; | |
6636 | } | |
6637 | resultobj = SWIG_FromInt((int)result); | |
6638 | return resultobj; | |
6639 | fail: | |
6640 | return NULL; | |
6641 | } | |
6642 | ||
6643 | ||
6644 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6645 | PyObject *obj; | |
6646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6647 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6648 | Py_INCREF(obj); | |
6649 | return Py_BuildValue((char *)""); | |
6650 | } | |
6651 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6652 | PyObject *resultobj; | |
6653 | wxTimer *arg1 = 0 ; | |
6654 | wxTimerRunner *result; | |
6655 | PyObject * obj0 = 0 ; | |
6656 | ||
6657 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6659 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6660 | SWIG_fail; | |
6661 | if (arg1 == NULL) { | |
6662 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6663 | SWIG_fail; | |
6664 | } | |
6665 | { | |
6666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6667 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6668 | ||
6669 | wxPyEndAllowThreads(__tstate); | |
6670 | if (PyErr_Occurred()) SWIG_fail; | |
6671 | } | |
6672 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
6673 | return resultobj; | |
6674 | fail: | |
6675 | return NULL; | |
6676 | } | |
6677 | ||
6678 | ||
6679 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6680 | PyObject *resultobj; | |
6681 | wxTimer *arg1 = 0 ; | |
6682 | int arg2 ; | |
6683 | bool arg3 = (bool) False ; | |
6684 | wxTimerRunner *result; | |
6685 | PyObject * obj0 = 0 ; | |
6686 | PyObject * obj1 = 0 ; | |
6687 | PyObject * obj2 = 0 ; | |
6688 | ||
6689 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
6690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6691 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6692 | SWIG_fail; | |
6693 | if (arg1 == NULL) { | |
6694 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6695 | SWIG_fail; | |
6696 | } | |
6697 | arg2 = (int) SWIG_AsInt(obj1); | |
6698 | if (PyErr_Occurred()) SWIG_fail; | |
6699 | if (obj2) { | |
6700 | arg3 = (bool) SWIG_AsBool(obj2); | |
6701 | if (PyErr_Occurred()) SWIG_fail; | |
6702 | } | |
6703 | { | |
6704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6705 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6706 | ||
6707 | wxPyEndAllowThreads(__tstate); | |
6708 | if (PyErr_Occurred()) SWIG_fail; | |
6709 | } | |
6710 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
6711 | return resultobj; | |
6712 | fail: | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
6717 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6718 | int argc; | |
6719 | PyObject *argv[4]; | |
6720 | int ii; | |
6721 | ||
6722 | argc = PyObject_Length(args); | |
6723 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6724 | argv[ii] = PyTuple_GetItem(args,ii); | |
6725 | } | |
6726 | if (argc == 1) { | |
6727 | int _v; | |
6728 | { | |
6729 | void *ptr; | |
6730 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6731 | _v = 0; | |
6732 | PyErr_Clear(); | |
6733 | } else { | |
6734 | _v = 1; | |
6735 | } | |
6736 | } | |
6737 | if (_v) { | |
6738 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6739 | } | |
6740 | } | |
6741 | if ((argc >= 2) && (argc <= 3)) { | |
6742 | int _v; | |
6743 | { | |
6744 | void *ptr; | |
6745 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6746 | _v = 0; | |
6747 | PyErr_Clear(); | |
6748 | } else { | |
6749 | _v = 1; | |
6750 | } | |
6751 | } | |
6752 | if (_v) { | |
6753 | _v = SWIG_CheckInt(argv[1]); | |
6754 | if (_v) { | |
6755 | if (argc <= 2) { | |
6756 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6757 | } | |
6758 | _v = SWIG_CheckBool(argv[2]); | |
6759 | if (_v) { | |
6760 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6761 | } | |
6762 | } | |
6763 | } | |
6764 | } | |
6765 | ||
6766 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6767 | return NULL; | |
6768 | } | |
6769 | ||
6770 | ||
6771 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6772 | PyObject *resultobj; | |
6773 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6774 | PyObject * obj0 = 0 ; | |
6775 | char *kwnames[] = { | |
6776 | (char *) "self", NULL | |
6777 | }; | |
6778 | ||
6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
6781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6782 | { | |
6783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6784 | delete arg1; | |
6785 | ||
6786 | wxPyEndAllowThreads(__tstate); | |
6787 | if (PyErr_Occurred()) SWIG_fail; | |
6788 | } | |
6789 | Py_INCREF(Py_None); resultobj = Py_None; | |
6790 | return resultobj; | |
6791 | fail: | |
6792 | return NULL; | |
6793 | } | |
6794 | ||
6795 | ||
6796 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6797 | PyObject *resultobj; | |
6798 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6799 | int arg2 ; | |
6800 | bool arg3 = (bool) False ; | |
6801 | PyObject * obj0 = 0 ; | |
6802 | PyObject * obj1 = 0 ; | |
6803 | PyObject * obj2 = 0 ; | |
6804 | char *kwnames[] = { | |
6805 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6806 | }; | |
6807 | ||
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
6810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6811 | arg2 = (int) SWIG_AsInt(obj1); | |
6812 | if (PyErr_Occurred()) SWIG_fail; | |
6813 | if (obj2) { | |
6814 | arg3 = (bool) SWIG_AsBool(obj2); | |
6815 | if (PyErr_Occurred()) SWIG_fail; | |
6816 | } | |
6817 | { | |
6818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6819 | (arg1)->Start(arg2,arg3); | |
6820 | ||
6821 | wxPyEndAllowThreads(__tstate); | |
6822 | if (PyErr_Occurred()) SWIG_fail; | |
6823 | } | |
6824 | Py_INCREF(Py_None); resultobj = Py_None; | |
6825 | return resultobj; | |
6826 | fail: | |
6827 | return NULL; | |
6828 | } | |
6829 | ||
6830 | ||
6831 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6832 | PyObject *obj; | |
6833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6834 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6835 | Py_INCREF(obj); | |
6836 | return Py_BuildValue((char *)""); | |
6837 | } | |
6838 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6839 | PyObject *resultobj; | |
6840 | wxLog *result; | |
6841 | char *kwnames[] = { | |
6842 | NULL | |
6843 | }; | |
6844 | ||
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6846 | { | |
6847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6848 | result = (wxLog *)new wxLog(); | |
6849 | ||
6850 | wxPyEndAllowThreads(__tstate); | |
6851 | if (PyErr_Occurred()) SWIG_fail; | |
6852 | } | |
6853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
6854 | return resultobj; | |
6855 | fail: | |
6856 | return NULL; | |
6857 | } | |
6858 | ||
6859 | ||
6860 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6861 | PyObject *resultobj; | |
6862 | bool result; | |
6863 | char *kwnames[] = { | |
6864 | NULL | |
6865 | }; | |
6866 | ||
6867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6868 | { | |
6869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6870 | result = (bool)wxLog::IsEnabled(); | |
6871 | ||
6872 | wxPyEndAllowThreads(__tstate); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | } | |
6875 | { | |
6876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6877 | } | |
6878 | return resultobj; | |
6879 | fail: | |
6880 | return NULL; | |
6881 | } | |
6882 | ||
6883 | ||
6884 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6885 | PyObject *resultobj; | |
6886 | bool arg1 = (bool) True ; | |
6887 | bool result; | |
6888 | PyObject * obj0 = 0 ; | |
6889 | char *kwnames[] = { | |
6890 | (char *) "doIt", NULL | |
6891 | }; | |
6892 | ||
6893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6894 | if (obj0) { | |
6895 | arg1 = (bool) SWIG_AsBool(obj0); | |
6896 | if (PyErr_Occurred()) SWIG_fail; | |
6897 | } | |
6898 | { | |
6899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6900 | result = (bool)wxLog::EnableLogging(arg1); | |
6901 | ||
6902 | wxPyEndAllowThreads(__tstate); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
6905 | { | |
6906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6907 | } | |
6908 | return resultobj; | |
6909 | fail: | |
6910 | return NULL; | |
6911 | } | |
6912 | ||
6913 | ||
6914 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6915 | PyObject *resultobj; | |
6916 | wxLogLevel arg1 ; | |
6917 | wxChar *arg2 = (wxChar *) 0 ; | |
6918 | time_t arg3 ; | |
6919 | PyObject * obj0 = 0 ; | |
6920 | PyObject * obj1 = 0 ; | |
6921 | PyObject * obj2 = 0 ; | |
6922 | char *kwnames[] = { | |
6923 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6924 | }; | |
6925 | ||
6926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6927 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
6928 | if (PyErr_Occurred()) SWIG_fail; | |
6929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
6930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6931 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
6932 | if (PyErr_Occurred()) SWIG_fail; | |
6933 | { | |
6934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6935 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6936 | ||
6937 | wxPyEndAllowThreads(__tstate); | |
6938 | if (PyErr_Occurred()) SWIG_fail; | |
6939 | } | |
6940 | Py_INCREF(Py_None); resultobj = Py_None; | |
6941 | return resultobj; | |
6942 | fail: | |
6943 | return NULL; | |
6944 | } | |
6945 | ||
6946 | ||
6947 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6948 | PyObject *resultobj; | |
6949 | wxLog *arg1 = (wxLog *) 0 ; | |
6950 | PyObject * obj0 = 0 ; | |
6951 | char *kwnames[] = { | |
6952 | (char *) "self", NULL | |
6953 | }; | |
6954 | ||
6955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
6957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6958 | { | |
6959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6960 | (arg1)->Flush(); | |
6961 | ||
6962 | wxPyEndAllowThreads(__tstate); | |
6963 | if (PyErr_Occurred()) SWIG_fail; | |
6964 | } | |
6965 | Py_INCREF(Py_None); resultobj = Py_None; | |
6966 | return resultobj; | |
6967 | fail: | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
6972 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6973 | PyObject *resultobj; | |
6974 | char *kwnames[] = { | |
6975 | NULL | |
6976 | }; | |
6977 | ||
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6979 | { | |
6980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6981 | wxLog::FlushActive(); | |
6982 | ||
6983 | wxPyEndAllowThreads(__tstate); | |
6984 | if (PyErr_Occurred()) SWIG_fail; | |
6985 | } | |
6986 | Py_INCREF(Py_None); resultobj = Py_None; | |
6987 | return resultobj; | |
6988 | fail: | |
6989 | return NULL; | |
6990 | } | |
6991 | ||
6992 | ||
6993 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6994 | PyObject *resultobj; | |
6995 | wxLog *result; | |
6996 | char *kwnames[] = { | |
6997 | NULL | |
6998 | }; | |
6999 | ||
7000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7001 | { | |
7002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7003 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7004 | ||
7005 | wxPyEndAllowThreads(__tstate); | |
7006 | if (PyErr_Occurred()) SWIG_fail; | |
7007 | } | |
7008 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7009 | return resultobj; | |
7010 | fail: | |
7011 | return NULL; | |
7012 | } | |
7013 | ||
7014 | ||
7015 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7016 | PyObject *resultobj; | |
7017 | wxLog *arg1 = (wxLog *) 0 ; | |
7018 | wxLog *result; | |
7019 | PyObject * obj0 = 0 ; | |
7020 | char *kwnames[] = { | |
7021 | (char *) "pLogger", NULL | |
7022 | }; | |
7023 | ||
7024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7027 | { | |
7028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7029 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7030 | ||
7031 | wxPyEndAllowThreads(__tstate); | |
7032 | if (PyErr_Occurred()) SWIG_fail; | |
7033 | } | |
7034 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7035 | return resultobj; | |
7036 | fail: | |
7037 | return NULL; | |
7038 | } | |
7039 | ||
7040 | ||
7041 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7042 | PyObject *resultobj; | |
7043 | char *kwnames[] = { | |
7044 | NULL | |
7045 | }; | |
7046 | ||
7047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7048 | { | |
7049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7050 | wxLog::Suspend(); | |
7051 | ||
7052 | wxPyEndAllowThreads(__tstate); | |
7053 | if (PyErr_Occurred()) SWIG_fail; | |
7054 | } | |
7055 | Py_INCREF(Py_None); resultobj = Py_None; | |
7056 | return resultobj; | |
7057 | fail: | |
7058 | return NULL; | |
7059 | } | |
7060 | ||
7061 | ||
7062 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7063 | PyObject *resultobj; | |
7064 | char *kwnames[] = { | |
7065 | NULL | |
7066 | }; | |
7067 | ||
7068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7069 | { | |
7070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7071 | wxLog::Resume(); | |
7072 | ||
7073 | wxPyEndAllowThreads(__tstate); | |
7074 | if (PyErr_Occurred()) SWIG_fail; | |
7075 | } | |
7076 | Py_INCREF(Py_None); resultobj = Py_None; | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
7083 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7084 | PyObject *resultobj; | |
7085 | bool arg1 = (bool) True ; | |
7086 | PyObject * obj0 = 0 ; | |
7087 | char *kwnames[] = { | |
7088 | (char *) "bVerbose", NULL | |
7089 | }; | |
7090 | ||
7091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7092 | if (obj0) { | |
7093 | arg1 = (bool) SWIG_AsBool(obj0); | |
7094 | if (PyErr_Occurred()) SWIG_fail; | |
7095 | } | |
7096 | { | |
7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7098 | wxLog::SetVerbose(arg1); | |
7099 | ||
7100 | wxPyEndAllowThreads(__tstate); | |
7101 | if (PyErr_Occurred()) SWIG_fail; | |
7102 | } | |
7103 | Py_INCREF(Py_None); resultobj = Py_None; | |
7104 | return resultobj; | |
7105 | fail: | |
7106 | return NULL; | |
7107 | } | |
7108 | ||
7109 | ||
7110 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7111 | PyObject *resultobj; | |
7112 | wxLogLevel arg1 ; | |
7113 | PyObject * obj0 = 0 ; | |
7114 | char *kwnames[] = { | |
7115 | (char *) "logLevel", NULL | |
7116 | }; | |
7117 | ||
7118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
7119 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
7120 | if (PyErr_Occurred()) SWIG_fail; | |
7121 | { | |
7122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7123 | wxLog::SetLogLevel(arg1); | |
7124 | ||
7125 | wxPyEndAllowThreads(__tstate); | |
7126 | if (PyErr_Occurred()) SWIG_fail; | |
7127 | } | |
7128 | Py_INCREF(Py_None); resultobj = Py_None; | |
7129 | return resultobj; | |
7130 | fail: | |
7131 | return NULL; | |
7132 | } | |
7133 | ||
7134 | ||
7135 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7136 | PyObject *resultobj; | |
7137 | char *kwnames[] = { | |
7138 | NULL | |
7139 | }; | |
7140 | ||
7141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7142 | { | |
7143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7144 | wxLog::DontCreateOnDemand(); | |
7145 | ||
7146 | wxPyEndAllowThreads(__tstate); | |
7147 | if (PyErr_Occurred()) SWIG_fail; | |
7148 | } | |
7149 | Py_INCREF(Py_None); resultobj = Py_None; | |
7150 | return resultobj; | |
7151 | fail: | |
7152 | return NULL; | |
7153 | } | |
7154 | ||
7155 | ||
7156 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7157 | PyObject *resultobj; | |
7158 | wxTraceMask arg1 ; | |
7159 | PyObject * obj0 = 0 ; | |
7160 | char *kwnames[] = { | |
7161 | (char *) "ulMask", NULL | |
7162 | }; | |
7163 | ||
7164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
7165 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); | |
7166 | if (PyErr_Occurred()) SWIG_fail; | |
7167 | { | |
7168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7169 | wxLog::SetTraceMask(arg1); | |
7170 | ||
7171 | wxPyEndAllowThreads(__tstate); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
7174 | Py_INCREF(Py_None); resultobj = Py_None; | |
7175 | return resultobj; | |
7176 | fail: | |
7177 | return NULL; | |
7178 | } | |
7179 | ||
7180 | ||
7181 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7182 | PyObject *resultobj; | |
7183 | wxString *arg1 = 0 ; | |
7184 | bool temp1 = False ; | |
7185 | PyObject * obj0 = 0 ; | |
7186 | char *kwnames[] = { | |
7187 | (char *) "str", NULL | |
7188 | }; | |
7189 | ||
7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7191 | { | |
7192 | arg1 = wxString_in_helper(obj0); | |
7193 | if (arg1 == NULL) SWIG_fail; | |
7194 | temp1 = True; | |
7195 | } | |
7196 | { | |
7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7198 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7199 | ||
7200 | wxPyEndAllowThreads(__tstate); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | Py_INCREF(Py_None); resultobj = Py_None; | |
7204 | { | |
7205 | if (temp1) | |
7206 | delete arg1; | |
7207 | } | |
7208 | return resultobj; | |
7209 | fail: | |
7210 | { | |
7211 | if (temp1) | |
7212 | delete arg1; | |
7213 | } | |
7214 | return NULL; | |
7215 | } | |
7216 | ||
7217 | ||
7218 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7219 | PyObject *resultobj; | |
7220 | wxString *arg1 = 0 ; | |
7221 | bool temp1 = False ; | |
7222 | PyObject * obj0 = 0 ; | |
7223 | char *kwnames[] = { | |
7224 | (char *) "str", NULL | |
7225 | }; | |
7226 | ||
7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7228 | { | |
7229 | arg1 = wxString_in_helper(obj0); | |
7230 | if (arg1 == NULL) SWIG_fail; | |
7231 | temp1 = True; | |
7232 | } | |
7233 | { | |
7234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7235 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7236 | ||
7237 | wxPyEndAllowThreads(__tstate); | |
7238 | if (PyErr_Occurred()) SWIG_fail; | |
7239 | } | |
7240 | Py_INCREF(Py_None); resultobj = Py_None; | |
7241 | { | |
7242 | if (temp1) | |
7243 | delete arg1; | |
7244 | } | |
7245 | return resultobj; | |
7246 | fail: | |
7247 | { | |
7248 | if (temp1) | |
7249 | delete arg1; | |
7250 | } | |
7251 | return NULL; | |
7252 | } | |
7253 | ||
7254 | ||
7255 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7256 | PyObject *resultobj; | |
7257 | char *kwnames[] = { | |
7258 | NULL | |
7259 | }; | |
7260 | ||
7261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7262 | { | |
7263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7264 | wxLog::ClearTraceMasks(); | |
7265 | ||
7266 | wxPyEndAllowThreads(__tstate); | |
7267 | if (PyErr_Occurred()) SWIG_fail; | |
7268 | } | |
7269 | Py_INCREF(Py_None); resultobj = Py_None; | |
7270 | return resultobj; | |
7271 | fail: | |
7272 | return NULL; | |
7273 | } | |
7274 | ||
7275 | ||
7276 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7277 | PyObject *resultobj; | |
7278 | wxArrayString *result; | |
7279 | char *kwnames[] = { | |
7280 | NULL | |
7281 | }; | |
7282 | ||
7283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7284 | { | |
7285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7286 | { | |
7287 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7288 | result = (wxArrayString *) &_result_ref; | |
7289 | } | |
7290 | ||
7291 | wxPyEndAllowThreads(__tstate); | |
7292 | if (PyErr_Occurred()) SWIG_fail; | |
7293 | } | |
7294 | { | |
7295 | resultobj = wxArrayString2PyList_helper(*result); | |
7296 | } | |
7297 | return resultobj; | |
7298 | fail: | |
7299 | return NULL; | |
7300 | } | |
7301 | ||
7302 | ||
7303 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7304 | PyObject *resultobj; | |
7305 | wxChar *arg1 = (wxChar *) 0 ; | |
7306 | PyObject * obj0 = 0 ; | |
7307 | char *kwnames[] = { | |
7308 | (char *) "ts", NULL | |
7309 | }; | |
7310 | ||
7311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7314 | { | |
7315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7316 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7317 | ||
7318 | wxPyEndAllowThreads(__tstate); | |
7319 | if (PyErr_Occurred()) SWIG_fail; | |
7320 | } | |
7321 | Py_INCREF(Py_None); resultobj = Py_None; | |
7322 | return resultobj; | |
7323 | fail: | |
7324 | return NULL; | |
7325 | } | |
7326 | ||
7327 | ||
7328 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7329 | PyObject *resultobj; | |
7330 | bool result; | |
7331 | char *kwnames[] = { | |
7332 | NULL | |
7333 | }; | |
7334 | ||
7335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7336 | { | |
7337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7338 | result = (bool)wxLog::GetVerbose(); | |
7339 | ||
7340 | wxPyEndAllowThreads(__tstate); | |
7341 | if (PyErr_Occurred()) SWIG_fail; | |
7342 | } | |
7343 | { | |
7344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7345 | } | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject *resultobj; | |
7354 | wxTraceMask result; | |
7355 | char *kwnames[] = { | |
7356 | NULL | |
7357 | }; | |
7358 | ||
7359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7360 | { | |
7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7362 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7363 | ||
7364 | wxPyEndAllowThreads(__tstate); | |
7365 | if (PyErr_Occurred()) SWIG_fail; | |
7366 | } | |
7367 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7368 | return resultobj; | |
7369 | fail: | |
7370 | return NULL; | |
7371 | } | |
7372 | ||
7373 | ||
7374 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7375 | PyObject *resultobj; | |
7376 | wxChar *arg1 = (wxChar *) 0 ; | |
7377 | bool result; | |
7378 | PyObject * obj0 = 0 ; | |
7379 | char *kwnames[] = { | |
7380 | (char *) "mask", NULL | |
7381 | }; | |
7382 | ||
7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7386 | { | |
7387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7388 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7389 | ||
7390 | wxPyEndAllowThreads(__tstate); | |
7391 | if (PyErr_Occurred()) SWIG_fail; | |
7392 | } | |
7393 | { | |
7394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7395 | } | |
7396 | return resultobj; | |
7397 | fail: | |
7398 | return NULL; | |
7399 | } | |
7400 | ||
7401 | ||
7402 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7403 | PyObject *resultobj; | |
7404 | wxLogLevel result; | |
7405 | char *kwnames[] = { | |
7406 | NULL | |
7407 | }; | |
7408 | ||
7409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7410 | { | |
7411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7412 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7413 | ||
7414 | wxPyEndAllowThreads(__tstate); | |
7415 | if (PyErr_Occurred()) SWIG_fail; | |
7416 | } | |
7417 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7418 | return resultobj; | |
7419 | fail: | |
7420 | return NULL; | |
7421 | } | |
7422 | ||
7423 | ||
7424 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7425 | PyObject *resultobj; | |
7426 | wxChar *result; | |
7427 | char *kwnames[] = { | |
7428 | NULL | |
7429 | }; | |
7430 | ||
7431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7432 | { | |
7433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7434 | result = (wxChar *)wxLog::GetTimestamp(); | |
7435 | ||
7436 | wxPyEndAllowThreads(__tstate); | |
7437 | if (PyErr_Occurred()) SWIG_fail; | |
7438 | } | |
7439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
7440 | return resultobj; | |
7441 | fail: | |
7442 | return NULL; | |
7443 | } | |
7444 | ||
7445 | ||
7446 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7447 | PyObject *resultobj; | |
7448 | wxString result; | |
7449 | char *kwnames[] = { | |
7450 | NULL | |
7451 | }; | |
7452 | ||
7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7454 | { | |
7455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7456 | result = Log_TimeStamp(); | |
7457 | ||
7458 | wxPyEndAllowThreads(__tstate); | |
7459 | if (PyErr_Occurred()) SWIG_fail; | |
7460 | } | |
7461 | { | |
7462 | #if wxUSE_UNICODE | |
7463 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7464 | #else | |
7465 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7466 | #endif | |
7467 | } | |
7468 | return resultobj; | |
7469 | fail: | |
7470 | return NULL; | |
7471 | } | |
7472 | ||
7473 | ||
7474 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7475 | PyObject *resultobj; | |
7476 | wxLog *arg1 = (wxLog *) 0 ; | |
7477 | PyObject * obj0 = 0 ; | |
7478 | char *kwnames[] = { | |
7479 | (char *) "self", NULL | |
7480 | }; | |
7481 | ||
7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
7483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7485 | { | |
7486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7487 | wxLog_Destroy(arg1); | |
7488 | ||
7489 | wxPyEndAllowThreads(__tstate); | |
7490 | if (PyErr_Occurred()) SWIG_fail; | |
7491 | } | |
7492 | Py_INCREF(Py_None); resultobj = Py_None; | |
7493 | return resultobj; | |
7494 | fail: | |
7495 | return NULL; | |
7496 | } | |
7497 | ||
7498 | ||
7499 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7500 | PyObject *obj; | |
7501 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7502 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7503 | Py_INCREF(obj); | |
7504 | return Py_BuildValue((char *)""); | |
7505 | } | |
7506 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7507 | PyObject *resultobj; | |
7508 | wxLogStderr *result; | |
7509 | char *kwnames[] = { | |
7510 | NULL | |
7511 | }; | |
7512 | ||
7513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | result = (wxLogStderr *)new wxLogStderr(); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
7522 | return resultobj; | |
7523 | fail: | |
7524 | return NULL; | |
7525 | } | |
7526 | ||
7527 | ||
7528 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7529 | PyObject *obj; | |
7530 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7531 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7532 | Py_INCREF(obj); | |
7533 | return Py_BuildValue((char *)""); | |
7534 | } | |
7535 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7536 | PyObject *resultobj; | |
7537 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7538 | wxLogTextCtrl *result; | |
7539 | PyObject * obj0 = 0 ; | |
7540 | char *kwnames[] = { | |
7541 | (char *) "pTextCtrl", NULL | |
7542 | }; | |
7543 | ||
7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
7545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7547 | { | |
7548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7549 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7550 | ||
7551 | wxPyEndAllowThreads(__tstate); | |
7552 | if (PyErr_Occurred()) SWIG_fail; | |
7553 | } | |
7554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
7555 | return resultobj; | |
7556 | fail: | |
7557 | return NULL; | |
7558 | } | |
7559 | ||
7560 | ||
7561 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7562 | PyObject *obj; | |
7563 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7564 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7565 | Py_INCREF(obj); | |
7566 | return Py_BuildValue((char *)""); | |
7567 | } | |
7568 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7569 | PyObject *resultobj; | |
7570 | wxLogGui *result; | |
7571 | char *kwnames[] = { | |
7572 | NULL | |
7573 | }; | |
7574 | ||
7575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7576 | { | |
7577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7578 | result = (wxLogGui *)new wxLogGui(); | |
7579 | ||
7580 | wxPyEndAllowThreads(__tstate); | |
7581 | if (PyErr_Occurred()) SWIG_fail; | |
7582 | } | |
7583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
7584 | return resultobj; | |
7585 | fail: | |
7586 | return NULL; | |
7587 | } | |
7588 | ||
7589 | ||
7590 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7591 | PyObject *obj; | |
7592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7593 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7594 | Py_INCREF(obj); | |
7595 | return Py_BuildValue((char *)""); | |
7596 | } | |
7597 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7598 | PyObject *resultobj; | |
7599 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7600 | wxString *arg2 = 0 ; | |
7601 | bool arg3 = (bool) True ; | |
7602 | bool arg4 = (bool) True ; | |
7603 | wxLogWindow *result; | |
7604 | bool temp2 = False ; | |
7605 | PyObject * obj0 = 0 ; | |
7606 | PyObject * obj1 = 0 ; | |
7607 | PyObject * obj2 = 0 ; | |
7608 | PyObject * obj3 = 0 ; | |
7609 | char *kwnames[] = { | |
7610 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7611 | }; | |
7612 | ||
7613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
7615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7616 | { | |
7617 | arg2 = wxString_in_helper(obj1); | |
7618 | if (arg2 == NULL) SWIG_fail; | |
7619 | temp2 = True; | |
7620 | } | |
7621 | if (obj2) { | |
7622 | arg3 = (bool) SWIG_AsBool(obj2); | |
7623 | if (PyErr_Occurred()) SWIG_fail; | |
7624 | } | |
7625 | if (obj3) { | |
7626 | arg4 = (bool) SWIG_AsBool(obj3); | |
7627 | if (PyErr_Occurred()) SWIG_fail; | |
7628 | } | |
7629 | { | |
7630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7631 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7632 | ||
7633 | wxPyEndAllowThreads(__tstate); | |
7634 | if (PyErr_Occurred()) SWIG_fail; | |
7635 | } | |
7636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
7637 | { | |
7638 | if (temp2) | |
7639 | delete arg2; | |
7640 | } | |
7641 | return resultobj; | |
7642 | fail: | |
7643 | { | |
7644 | if (temp2) | |
7645 | delete arg2; | |
7646 | } | |
7647 | return NULL; | |
7648 | } | |
7649 | ||
7650 | ||
7651 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7652 | PyObject *resultobj; | |
7653 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7654 | bool arg2 = (bool) True ; | |
7655 | PyObject * obj0 = 0 ; | |
7656 | PyObject * obj1 = 0 ; | |
7657 | char *kwnames[] = { | |
7658 | (char *) "self",(char *) "bShow", NULL | |
7659 | }; | |
7660 | ||
7661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
7662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7664 | if (obj1) { | |
7665 | arg2 = (bool) SWIG_AsBool(obj1); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
7668 | { | |
7669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7670 | (arg1)->Show(arg2); | |
7671 | ||
7672 | wxPyEndAllowThreads(__tstate); | |
7673 | if (PyErr_Occurred()) SWIG_fail; | |
7674 | } | |
7675 | Py_INCREF(Py_None); resultobj = Py_None; | |
7676 | return resultobj; | |
7677 | fail: | |
7678 | return NULL; | |
7679 | } | |
7680 | ||
7681 | ||
7682 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7683 | PyObject *resultobj; | |
7684 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7685 | wxFrame *result; | |
7686 | PyObject * obj0 = 0 ; | |
7687 | char *kwnames[] = { | |
7688 | (char *) "self", NULL | |
7689 | }; | |
7690 | ||
7691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7694 | { | |
7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7696 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7697 | ||
7698 | wxPyEndAllowThreads(__tstate); | |
7699 | if (PyErr_Occurred()) SWIG_fail; | |
7700 | } | |
7701 | { | |
7702 | resultobj = wxPyMake_wxObject(result); | |
7703 | } | |
7704 | return resultobj; | |
7705 | fail: | |
7706 | return NULL; | |
7707 | } | |
7708 | ||
7709 | ||
7710 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7711 | PyObject *resultobj; | |
7712 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7713 | wxLog *result; | |
7714 | PyObject * obj0 = 0 ; | |
7715 | char *kwnames[] = { | |
7716 | (char *) "self", NULL | |
7717 | }; | |
7718 | ||
7719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7722 | { | |
7723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7724 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7725 | ||
7726 | wxPyEndAllowThreads(__tstate); | |
7727 | if (PyErr_Occurred()) SWIG_fail; | |
7728 | } | |
7729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7730 | return resultobj; | |
7731 | fail: | |
7732 | return NULL; | |
7733 | } | |
7734 | ||
7735 | ||
7736 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7737 | PyObject *resultobj; | |
7738 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7739 | bool result; | |
7740 | PyObject * obj0 = 0 ; | |
7741 | char *kwnames[] = { | |
7742 | (char *) "self", NULL | |
7743 | }; | |
7744 | ||
7745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7748 | { | |
7749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7750 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7751 | ||
7752 | wxPyEndAllowThreads(__tstate); | |
7753 | if (PyErr_Occurred()) SWIG_fail; | |
7754 | } | |
7755 | { | |
7756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7757 | } | |
7758 | return resultobj; | |
7759 | fail: | |
7760 | return NULL; | |
7761 | } | |
7762 | ||
7763 | ||
7764 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7765 | PyObject *resultobj; | |
7766 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7767 | bool arg2 ; | |
7768 | PyObject * obj0 = 0 ; | |
7769 | PyObject * obj1 = 0 ; | |
7770 | char *kwnames[] = { | |
7771 | (char *) "self",(char *) "bDoPass", NULL | |
7772 | }; | |
7773 | ||
7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7777 | arg2 = (bool) SWIG_AsBool(obj1); | |
7778 | if (PyErr_Occurred()) SWIG_fail; | |
7779 | { | |
7780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7781 | (arg1)->PassMessages(arg2); | |
7782 | ||
7783 | wxPyEndAllowThreads(__tstate); | |
7784 | if (PyErr_Occurred()) SWIG_fail; | |
7785 | } | |
7786 | Py_INCREF(Py_None); resultobj = Py_None; | |
7787 | return resultobj; | |
7788 | fail: | |
7789 | return NULL; | |
7790 | } | |
7791 | ||
7792 | ||
7793 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7794 | PyObject *obj; | |
7795 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7796 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7797 | Py_INCREF(obj); | |
7798 | return Py_BuildValue((char *)""); | |
7799 | } | |
7800 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7801 | PyObject *resultobj; | |
7802 | wxLog *arg1 = (wxLog *) 0 ; | |
7803 | wxLogChain *result; | |
7804 | PyObject * obj0 = 0 ; | |
7805 | char *kwnames[] = { | |
7806 | (char *) "logger", NULL | |
7807 | }; | |
7808 | ||
7809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7812 | { | |
7813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7814 | result = (wxLogChain *)new wxLogChain(arg1); | |
7815 | ||
7816 | wxPyEndAllowThreads(__tstate); | |
7817 | if (PyErr_Occurred()) SWIG_fail; | |
7818 | } | |
7819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
7820 | return resultobj; | |
7821 | fail: | |
7822 | return NULL; | |
7823 | } | |
7824 | ||
7825 | ||
7826 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7827 | PyObject *resultobj; | |
7828 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7829 | wxLog *arg2 = (wxLog *) 0 ; | |
7830 | PyObject * obj0 = 0 ; | |
7831 | PyObject * obj1 = 0 ; | |
7832 | char *kwnames[] = { | |
7833 | (char *) "self",(char *) "logger", NULL | |
7834 | }; | |
7835 | ||
7836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7839 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
7840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7841 | { | |
7842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7843 | (arg1)->SetLog(arg2); | |
7844 | ||
7845 | wxPyEndAllowThreads(__tstate); | |
7846 | if (PyErr_Occurred()) SWIG_fail; | |
7847 | } | |
7848 | Py_INCREF(Py_None); resultobj = Py_None; | |
7849 | return resultobj; | |
7850 | fail: | |
7851 | return NULL; | |
7852 | } | |
7853 | ||
7854 | ||
7855 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7856 | PyObject *resultobj; | |
7857 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7858 | bool arg2 ; | |
7859 | PyObject * obj0 = 0 ; | |
7860 | PyObject * obj1 = 0 ; | |
7861 | char *kwnames[] = { | |
7862 | (char *) "self",(char *) "bDoPass", NULL | |
7863 | }; | |
7864 | ||
7865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7868 | arg2 = (bool) SWIG_AsBool(obj1); | |
7869 | if (PyErr_Occurred()) SWIG_fail; | |
7870 | { | |
7871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7872 | (arg1)->PassMessages(arg2); | |
7873 | ||
7874 | wxPyEndAllowThreads(__tstate); | |
7875 | if (PyErr_Occurred()) SWIG_fail; | |
7876 | } | |
7877 | Py_INCREF(Py_None); resultobj = Py_None; | |
7878 | return resultobj; | |
7879 | fail: | |
7880 | return NULL; | |
7881 | } | |
7882 | ||
7883 | ||
7884 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7885 | PyObject *resultobj; | |
7886 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7887 | bool result; | |
7888 | PyObject * obj0 = 0 ; | |
7889 | char *kwnames[] = { | |
7890 | (char *) "self", NULL | |
7891 | }; | |
7892 | ||
7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7896 | { | |
7897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7898 | result = (bool)(arg1)->IsPassingMessages(); | |
7899 | ||
7900 | wxPyEndAllowThreads(__tstate); | |
7901 | if (PyErr_Occurred()) SWIG_fail; | |
7902 | } | |
7903 | { | |
7904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7905 | } | |
7906 | return resultobj; | |
7907 | fail: | |
7908 | return NULL; | |
7909 | } | |
7910 | ||
7911 | ||
7912 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7913 | PyObject *resultobj; | |
7914 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7915 | wxLog *result; | |
7916 | PyObject * obj0 = 0 ; | |
7917 | char *kwnames[] = { | |
7918 | (char *) "self", NULL | |
7919 | }; | |
7920 | ||
7921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7924 | { | |
7925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7926 | result = (wxLog *)(arg1)->GetOldLog(); | |
7927 | ||
7928 | wxPyEndAllowThreads(__tstate); | |
7929 | if (PyErr_Occurred()) SWIG_fail; | |
7930 | } | |
7931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7932 | return resultobj; | |
7933 | fail: | |
7934 | return NULL; | |
7935 | } | |
7936 | ||
7937 | ||
7938 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7939 | PyObject *obj; | |
7940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7941 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7942 | Py_INCREF(obj); | |
7943 | return Py_BuildValue((char *)""); | |
7944 | } | |
7945 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7946 | PyObject *resultobj; | |
7947 | unsigned long result; | |
7948 | char *kwnames[] = { | |
7949 | NULL | |
7950 | }; | |
7951 | ||
7952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7953 | { | |
7954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7955 | result = (unsigned long)wxSysErrorCode(); | |
7956 | ||
7957 | wxPyEndAllowThreads(__tstate); | |
7958 | if (PyErr_Occurred()) SWIG_fail; | |
7959 | } | |
7960 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7961 | return resultobj; | |
7962 | fail: | |
7963 | return NULL; | |
7964 | } | |
7965 | ||
7966 | ||
7967 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7968 | PyObject *resultobj; | |
7969 | unsigned long arg1 = (unsigned long) 0 ; | |
7970 | wxString result; | |
7971 | PyObject * obj0 = 0 ; | |
7972 | char *kwnames[] = { | |
7973 | (char *) "nErrCode", NULL | |
7974 | }; | |
7975 | ||
7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7977 | if (obj0) { | |
7978 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
7979 | if (PyErr_Occurred()) SWIG_fail; | |
7980 | } | |
7981 | { | |
7982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7983 | result = wxSysErrorMsg(arg1); | |
7984 | ||
7985 | wxPyEndAllowThreads(__tstate); | |
7986 | if (PyErr_Occurred()) SWIG_fail; | |
7987 | } | |
7988 | { | |
7989 | #if wxUSE_UNICODE | |
7990 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7991 | #else | |
7992 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7993 | #endif | |
7994 | } | |
7995 | return resultobj; | |
7996 | fail: | |
7997 | return NULL; | |
7998 | } | |
7999 | ||
8000 | ||
8001 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8002 | PyObject *resultobj; | |
8003 | wxString *arg1 = 0 ; | |
8004 | bool temp1 = False ; | |
8005 | PyObject * obj0 = 0 ; | |
8006 | char *kwnames[] = { | |
8007 | (char *) "msg", NULL | |
8008 | }; | |
8009 | ||
8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8011 | { | |
8012 | arg1 = wxString_in_helper(obj0); | |
8013 | if (arg1 == NULL) SWIG_fail; | |
8014 | temp1 = True; | |
8015 | } | |
8016 | { | |
8017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8018 | wxLogFatalError((wxString const &)*arg1); | |
8019 | ||
8020 | wxPyEndAllowThreads(__tstate); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | } | |
8023 | Py_INCREF(Py_None); resultobj = Py_None; | |
8024 | { | |
8025 | if (temp1) | |
8026 | delete arg1; | |
8027 | } | |
8028 | return resultobj; | |
8029 | fail: | |
8030 | { | |
8031 | if (temp1) | |
8032 | delete arg1; | |
8033 | } | |
8034 | return NULL; | |
8035 | } | |
8036 | ||
8037 | ||
8038 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8039 | PyObject *resultobj; | |
8040 | wxString *arg1 = 0 ; | |
8041 | bool temp1 = False ; | |
8042 | PyObject * obj0 = 0 ; | |
8043 | char *kwnames[] = { | |
8044 | (char *) "msg", NULL | |
8045 | }; | |
8046 | ||
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8048 | { | |
8049 | arg1 = wxString_in_helper(obj0); | |
8050 | if (arg1 == NULL) SWIG_fail; | |
8051 | temp1 = True; | |
8052 | } | |
8053 | { | |
8054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8055 | wxLogError((wxString const &)*arg1); | |
8056 | ||
8057 | wxPyEndAllowThreads(__tstate); | |
8058 | if (PyErr_Occurred()) SWIG_fail; | |
8059 | } | |
8060 | Py_INCREF(Py_None); resultobj = Py_None; | |
8061 | { | |
8062 | if (temp1) | |
8063 | delete arg1; | |
8064 | } | |
8065 | return resultobj; | |
8066 | fail: | |
8067 | { | |
8068 | if (temp1) | |
8069 | delete arg1; | |
8070 | } | |
8071 | return NULL; | |
8072 | } | |
8073 | ||
8074 | ||
8075 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8076 | PyObject *resultobj; | |
8077 | wxString *arg1 = 0 ; | |
8078 | bool temp1 = False ; | |
8079 | PyObject * obj0 = 0 ; | |
8080 | char *kwnames[] = { | |
8081 | (char *) "msg", NULL | |
8082 | }; | |
8083 | ||
8084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8085 | { | |
8086 | arg1 = wxString_in_helper(obj0); | |
8087 | if (arg1 == NULL) SWIG_fail; | |
8088 | temp1 = True; | |
8089 | } | |
8090 | { | |
8091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8092 | wxLogWarning((wxString const &)*arg1); | |
8093 | ||
8094 | wxPyEndAllowThreads(__tstate); | |
8095 | if (PyErr_Occurred()) SWIG_fail; | |
8096 | } | |
8097 | Py_INCREF(Py_None); resultobj = Py_None; | |
8098 | { | |
8099 | if (temp1) | |
8100 | delete arg1; | |
8101 | } | |
8102 | return resultobj; | |
8103 | fail: | |
8104 | { | |
8105 | if (temp1) | |
8106 | delete arg1; | |
8107 | } | |
8108 | return NULL; | |
8109 | } | |
8110 | ||
8111 | ||
8112 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8113 | PyObject *resultobj; | |
8114 | wxString *arg1 = 0 ; | |
8115 | bool temp1 = False ; | |
8116 | PyObject * obj0 = 0 ; | |
8117 | char *kwnames[] = { | |
8118 | (char *) "msg", NULL | |
8119 | }; | |
8120 | ||
8121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8122 | { | |
8123 | arg1 = wxString_in_helper(obj0); | |
8124 | if (arg1 == NULL) SWIG_fail; | |
8125 | temp1 = True; | |
8126 | } | |
8127 | { | |
8128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8129 | wxLogMessage((wxString const &)*arg1); | |
8130 | ||
8131 | wxPyEndAllowThreads(__tstate); | |
8132 | if (PyErr_Occurred()) SWIG_fail; | |
8133 | } | |
8134 | Py_INCREF(Py_None); resultobj = Py_None; | |
8135 | { | |
8136 | if (temp1) | |
8137 | delete arg1; | |
8138 | } | |
8139 | return resultobj; | |
8140 | fail: | |
8141 | { | |
8142 | if (temp1) | |
8143 | delete arg1; | |
8144 | } | |
8145 | return NULL; | |
8146 | } | |
8147 | ||
8148 | ||
8149 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8150 | PyObject *resultobj; | |
8151 | wxString *arg1 = 0 ; | |
8152 | bool temp1 = False ; | |
8153 | PyObject * obj0 = 0 ; | |
8154 | char *kwnames[] = { | |
8155 | (char *) "msg", NULL | |
8156 | }; | |
8157 | ||
8158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8159 | { | |
8160 | arg1 = wxString_in_helper(obj0); | |
8161 | if (arg1 == NULL) SWIG_fail; | |
8162 | temp1 = True; | |
8163 | } | |
8164 | { | |
8165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8166 | wxLogInfo((wxString const &)*arg1); | |
8167 | ||
8168 | wxPyEndAllowThreads(__tstate); | |
8169 | if (PyErr_Occurred()) SWIG_fail; | |
8170 | } | |
8171 | Py_INCREF(Py_None); resultobj = Py_None; | |
8172 | { | |
8173 | if (temp1) | |
8174 | delete arg1; | |
8175 | } | |
8176 | return resultobj; | |
8177 | fail: | |
8178 | { | |
8179 | if (temp1) | |
8180 | delete arg1; | |
8181 | } | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
8186 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8187 | PyObject *resultobj; | |
8188 | wxString *arg1 = 0 ; | |
8189 | bool temp1 = False ; | |
8190 | PyObject * obj0 = 0 ; | |
8191 | char *kwnames[] = { | |
8192 | (char *) "msg", NULL | |
8193 | }; | |
8194 | ||
8195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8196 | { | |
8197 | arg1 = wxString_in_helper(obj0); | |
8198 | if (arg1 == NULL) SWIG_fail; | |
8199 | temp1 = True; | |
8200 | } | |
8201 | { | |
8202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8203 | wxLogDebug((wxString const &)*arg1); | |
8204 | ||
8205 | wxPyEndAllowThreads(__tstate); | |
8206 | if (PyErr_Occurred()) SWIG_fail; | |
8207 | } | |
8208 | Py_INCREF(Py_None); resultobj = Py_None; | |
8209 | { | |
8210 | if (temp1) | |
8211 | delete arg1; | |
8212 | } | |
8213 | return resultobj; | |
8214 | fail: | |
8215 | { | |
8216 | if (temp1) | |
8217 | delete arg1; | |
8218 | } | |
8219 | return NULL; | |
8220 | } | |
8221 | ||
8222 | ||
8223 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8224 | PyObject *resultobj; | |
8225 | wxString *arg1 = 0 ; | |
8226 | bool temp1 = False ; | |
8227 | PyObject * obj0 = 0 ; | |
8228 | char *kwnames[] = { | |
8229 | (char *) "msg", NULL | |
8230 | }; | |
8231 | ||
8232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8233 | { | |
8234 | arg1 = wxString_in_helper(obj0); | |
8235 | if (arg1 == NULL) SWIG_fail; | |
8236 | temp1 = True; | |
8237 | } | |
8238 | { | |
8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8240 | wxLogVerbose((wxString const &)*arg1); | |
8241 | ||
8242 | wxPyEndAllowThreads(__tstate); | |
8243 | if (PyErr_Occurred()) SWIG_fail; | |
8244 | } | |
8245 | Py_INCREF(Py_None); resultobj = Py_None; | |
8246 | { | |
8247 | if (temp1) | |
8248 | delete arg1; | |
8249 | } | |
8250 | return resultobj; | |
8251 | fail: | |
8252 | { | |
8253 | if (temp1) | |
8254 | delete arg1; | |
8255 | } | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
8260 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8261 | PyObject *resultobj; | |
8262 | wxString *arg1 = 0 ; | |
8263 | bool temp1 = False ; | |
8264 | PyObject * obj0 = 0 ; | |
8265 | char *kwnames[] = { | |
8266 | (char *) "msg", NULL | |
8267 | }; | |
8268 | ||
8269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8270 | { | |
8271 | arg1 = wxString_in_helper(obj0); | |
8272 | if (arg1 == NULL) SWIG_fail; | |
8273 | temp1 = True; | |
8274 | } | |
8275 | { | |
8276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8277 | wxLogStatus((wxString const &)*arg1); | |
8278 | ||
8279 | wxPyEndAllowThreads(__tstate); | |
8280 | if (PyErr_Occurred()) SWIG_fail; | |
8281 | } | |
8282 | Py_INCREF(Py_None); resultobj = Py_None; | |
8283 | { | |
8284 | if (temp1) | |
8285 | delete arg1; | |
8286 | } | |
8287 | return resultobj; | |
8288 | fail: | |
8289 | { | |
8290 | if (temp1) | |
8291 | delete arg1; | |
8292 | } | |
8293 | return NULL; | |
8294 | } | |
8295 | ||
8296 | ||
8297 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8298 | PyObject *resultobj; | |
8299 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8300 | wxString *arg2 = 0 ; | |
8301 | bool temp2 = False ; | |
8302 | PyObject * obj0 = 0 ; | |
8303 | PyObject * obj1 = 0 ; | |
8304 | char *kwnames[] = { | |
8305 | (char *) "pFrame",(char *) "msg", NULL | |
8306 | }; | |
8307 | ||
8308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8311 | { | |
8312 | arg2 = wxString_in_helper(obj1); | |
8313 | if (arg2 == NULL) SWIG_fail; | |
8314 | temp2 = True; | |
8315 | } | |
8316 | { | |
8317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8318 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8319 | ||
8320 | wxPyEndAllowThreads(__tstate); | |
8321 | if (PyErr_Occurred()) SWIG_fail; | |
8322 | } | |
8323 | Py_INCREF(Py_None); resultobj = Py_None; | |
8324 | { | |
8325 | if (temp2) | |
8326 | delete arg2; | |
8327 | } | |
8328 | return resultobj; | |
8329 | fail: | |
8330 | { | |
8331 | if (temp2) | |
8332 | delete arg2; | |
8333 | } | |
8334 | return NULL; | |
8335 | } | |
8336 | ||
8337 | ||
8338 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8339 | PyObject *resultobj; | |
8340 | wxString *arg1 = 0 ; | |
8341 | bool temp1 = False ; | |
8342 | PyObject * obj0 = 0 ; | |
8343 | char *kwnames[] = { | |
8344 | (char *) "msg", NULL | |
8345 | }; | |
8346 | ||
8347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8348 | { | |
8349 | arg1 = wxString_in_helper(obj0); | |
8350 | if (arg1 == NULL) SWIG_fail; | |
8351 | temp1 = True; | |
8352 | } | |
8353 | { | |
8354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8355 | wxLogSysError((wxString const &)*arg1); | |
8356 | ||
8357 | wxPyEndAllowThreads(__tstate); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | } | |
8360 | Py_INCREF(Py_None); resultobj = Py_None; | |
8361 | { | |
8362 | if (temp1) | |
8363 | delete arg1; | |
8364 | } | |
8365 | return resultobj; | |
8366 | fail: | |
8367 | { | |
8368 | if (temp1) | |
8369 | delete arg1; | |
8370 | } | |
8371 | return NULL; | |
8372 | } | |
8373 | ||
8374 | ||
8375 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { | |
8376 | PyObject *resultobj; | |
8377 | unsigned long arg1 ; | |
8378 | wxString *arg2 = 0 ; | |
8379 | bool temp2 = False ; | |
8380 | PyObject * obj0 = 0 ; | |
8381 | PyObject * obj1 = 0 ; | |
8382 | ||
8383 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8384 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8385 | if (PyErr_Occurred()) SWIG_fail; | |
8386 | { | |
8387 | arg2 = wxString_in_helper(obj1); | |
8388 | if (arg2 == NULL) SWIG_fail; | |
8389 | temp2 = True; | |
8390 | } | |
8391 | { | |
8392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8393 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8394 | ||
8395 | wxPyEndAllowThreads(__tstate); | |
8396 | if (PyErr_Occurred()) SWIG_fail; | |
8397 | } | |
8398 | Py_INCREF(Py_None); resultobj = Py_None; | |
8399 | { | |
8400 | if (temp2) | |
8401 | delete arg2; | |
8402 | } | |
8403 | return resultobj; | |
8404 | fail: | |
8405 | { | |
8406 | if (temp2) | |
8407 | delete arg2; | |
8408 | } | |
8409 | return NULL; | |
8410 | } | |
8411 | ||
8412 | ||
8413 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { | |
8414 | PyObject *resultobj; | |
8415 | wxString *arg1 = 0 ; | |
8416 | wxString *arg2 = 0 ; | |
8417 | bool temp1 = False ; | |
8418 | bool temp2 = False ; | |
8419 | PyObject * obj0 = 0 ; | |
8420 | PyObject * obj1 = 0 ; | |
8421 | ||
8422 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8423 | { | |
8424 | arg1 = wxString_in_helper(obj0); | |
8425 | if (arg1 == NULL) SWIG_fail; | |
8426 | temp1 = True; | |
8427 | } | |
8428 | { | |
8429 | arg2 = wxString_in_helper(obj1); | |
8430 | if (arg2 == NULL) SWIG_fail; | |
8431 | temp2 = True; | |
8432 | } | |
8433 | { | |
8434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8435 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8436 | ||
8437 | wxPyEndAllowThreads(__tstate); | |
8438 | if (PyErr_Occurred()) SWIG_fail; | |
8439 | } | |
8440 | Py_INCREF(Py_None); resultobj = Py_None; | |
8441 | { | |
8442 | if (temp1) | |
8443 | delete arg1; | |
8444 | } | |
8445 | { | |
8446 | if (temp2) | |
8447 | delete arg2; | |
8448 | } | |
8449 | return resultobj; | |
8450 | fail: | |
8451 | { | |
8452 | if (temp1) | |
8453 | delete arg1; | |
8454 | } | |
8455 | { | |
8456 | if (temp2) | |
8457 | delete arg2; | |
8458 | } | |
8459 | return NULL; | |
8460 | } | |
8461 | ||
8462 | ||
8463 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
8464 | int argc; | |
8465 | PyObject *argv[3]; | |
8466 | int ii; | |
8467 | ||
8468 | argc = PyObject_Length(args); | |
8469 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8470 | argv[ii] = PyTuple_GetItem(args,ii); | |
8471 | } | |
8472 | if (argc == 2) { | |
8473 | int _v; | |
8474 | { | |
8475 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
8476 | } | |
8477 | if (_v) { | |
8478 | { | |
8479 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8480 | } | |
8481 | if (_v) { | |
8482 | return _wrap_LogTrace__SWIG_1(self,args); | |
8483 | } | |
8484 | } | |
8485 | } | |
8486 | if (argc == 2) { | |
8487 | int _v; | |
8488 | _v = SWIG_CheckUnsignedLong(argv[0]); | |
8489 | if (_v) { | |
8490 | { | |
8491 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8492 | } | |
8493 | if (_v) { | |
8494 | return _wrap_LogTrace__SWIG_0(self,args); | |
8495 | } | |
8496 | } | |
8497 | } | |
8498 | ||
8499 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8500 | return NULL; | |
8501 | } | |
8502 | ||
8503 | ||
8504 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8505 | PyObject *resultobj; | |
8506 | unsigned long arg1 ; | |
8507 | wxString *arg2 = 0 ; | |
8508 | bool temp2 = False ; | |
8509 | PyObject * obj0 = 0 ; | |
8510 | PyObject * obj1 = 0 ; | |
8511 | char *kwnames[] = { | |
8512 | (char *) "level",(char *) "msg", NULL | |
8513 | }; | |
8514 | ||
8515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
8516 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8517 | if (PyErr_Occurred()) SWIG_fail; | |
8518 | { | |
8519 | arg2 = wxString_in_helper(obj1); | |
8520 | if (arg2 == NULL) SWIG_fail; | |
8521 | temp2 = True; | |
8522 | } | |
8523 | { | |
8524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8525 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8526 | ||
8527 | wxPyEndAllowThreads(__tstate); | |
8528 | if (PyErr_Occurred()) SWIG_fail; | |
8529 | } | |
8530 | Py_INCREF(Py_None); resultobj = Py_None; | |
8531 | { | |
8532 | if (temp2) | |
8533 | delete arg2; | |
8534 | } | |
8535 | return resultobj; | |
8536 | fail: | |
8537 | { | |
8538 | if (temp2) | |
8539 | delete arg2; | |
8540 | } | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
8545 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8546 | PyObject *resultobj; | |
8547 | wxString *arg1 = 0 ; | |
8548 | wxString *arg2 = 0 ; | |
8549 | bool temp1 = False ; | |
8550 | bool temp2 = False ; | |
8551 | PyObject * obj0 = 0 ; | |
8552 | PyObject * obj1 = 0 ; | |
8553 | char *kwnames[] = { | |
8554 | (char *) "title",(char *) "text", NULL | |
8555 | }; | |
8556 | ||
8557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8558 | { | |
8559 | arg1 = wxString_in_helper(obj0); | |
8560 | if (arg1 == NULL) SWIG_fail; | |
8561 | temp1 = True; | |
8562 | } | |
8563 | { | |
8564 | arg2 = wxString_in_helper(obj1); | |
8565 | if (arg2 == NULL) SWIG_fail; | |
8566 | temp2 = True; | |
8567 | } | |
8568 | { | |
8569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8570 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8571 | ||
8572 | wxPyEndAllowThreads(__tstate); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
8575 | Py_INCREF(Py_None); resultobj = Py_None; | |
8576 | { | |
8577 | if (temp1) | |
8578 | delete arg1; | |
8579 | } | |
8580 | { | |
8581 | if (temp2) | |
8582 | delete arg2; | |
8583 | } | |
8584 | return resultobj; | |
8585 | fail: | |
8586 | { | |
8587 | if (temp1) | |
8588 | delete arg1; | |
8589 | } | |
8590 | { | |
8591 | if (temp2) | |
8592 | delete arg2; | |
8593 | } | |
8594 | return NULL; | |
8595 | } | |
8596 | ||
8597 | ||
8598 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8599 | PyObject *resultobj; | |
8600 | wxLogNull *result; | |
8601 | char *kwnames[] = { | |
8602 | NULL | |
8603 | }; | |
8604 | ||
8605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8606 | { | |
8607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8608 | result = (wxLogNull *)new wxLogNull(); | |
8609 | ||
8610 | wxPyEndAllowThreads(__tstate); | |
8611 | if (PyErr_Occurred()) SWIG_fail; | |
8612 | } | |
8613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
8614 | return resultobj; | |
8615 | fail: | |
8616 | return NULL; | |
8617 | } | |
8618 | ||
8619 | ||
8620 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8621 | PyObject *resultobj; | |
8622 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8623 | PyObject * obj0 = 0 ; | |
8624 | char *kwnames[] = { | |
8625 | (char *) "self", NULL | |
8626 | }; | |
8627 | ||
8628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
8629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
8630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8631 | { | |
8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8633 | delete arg1; | |
8634 | ||
8635 | wxPyEndAllowThreads(__tstate); | |
8636 | if (PyErr_Occurred()) SWIG_fail; | |
8637 | } | |
8638 | Py_INCREF(Py_None); resultobj = Py_None; | |
8639 | return resultobj; | |
8640 | fail: | |
8641 | return NULL; | |
8642 | } | |
8643 | ||
8644 | ||
8645 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8646 | PyObject *obj; | |
8647 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8648 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8649 | Py_INCREF(obj); | |
8650 | return Py_BuildValue((char *)""); | |
8651 | } | |
8652 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8653 | PyObject *resultobj; | |
8654 | wxPyLog *result; | |
8655 | char *kwnames[] = { | |
8656 | NULL | |
8657 | }; | |
8658 | ||
8659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8660 | { | |
8661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8662 | result = (wxPyLog *)new wxPyLog(); | |
8663 | ||
8664 | wxPyEndAllowThreads(__tstate); | |
8665 | if (PyErr_Occurred()) SWIG_fail; | |
8666 | } | |
8667 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
8668 | return resultobj; | |
8669 | fail: | |
8670 | return NULL; | |
8671 | } | |
8672 | ||
8673 | ||
8674 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8675 | PyObject *resultobj; | |
8676 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8677 | PyObject *arg2 = (PyObject *) 0 ; | |
8678 | PyObject *arg3 = (PyObject *) 0 ; | |
8679 | PyObject * obj0 = 0 ; | |
8680 | PyObject * obj1 = 0 ; | |
8681 | PyObject * obj2 = 0 ; | |
8682 | char *kwnames[] = { | |
8683 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8684 | }; | |
8685 | ||
8686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
8688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8689 | arg2 = obj1; | |
8690 | arg3 = obj2; | |
8691 | { | |
8692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8693 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8694 | ||
8695 | wxPyEndAllowThreads(__tstate); | |
8696 | if (PyErr_Occurred()) SWIG_fail; | |
8697 | } | |
8698 | Py_INCREF(Py_None); resultobj = Py_None; | |
8699 | return resultobj; | |
8700 | fail: | |
8701 | return NULL; | |
8702 | } | |
8703 | ||
8704 | ||
8705 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8706 | PyObject *obj; | |
8707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8708 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8709 | Py_INCREF(obj); | |
8710 | return Py_BuildValue((char *)""); | |
8711 | } | |
8712 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8713 | PyObject *resultobj; | |
8714 | int arg1 ; | |
8715 | int arg2 = (int) wxSIGTERM ; | |
8716 | int result; | |
8717 | PyObject * obj0 = 0 ; | |
8718 | PyObject * obj1 = 0 ; | |
8719 | char *kwnames[] = { | |
8720 | (char *) "pid",(char *) "sig", NULL | |
8721 | }; | |
8722 | ||
8723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
8724 | arg1 = (int) SWIG_AsInt(obj0); | |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
8726 | if (obj1) { | |
8727 | arg2 = (wxSignal) SWIG_AsInt(obj1); | |
8728 | if (PyErr_Occurred()) SWIG_fail; | |
8729 | } | |
8730 | { | |
8731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8732 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8733 | ||
8734 | wxPyEndAllowThreads(__tstate); | |
8735 | if (PyErr_Occurred()) SWIG_fail; | |
8736 | } | |
8737 | resultobj = SWIG_FromInt((int)result); | |
8738 | return resultobj; | |
8739 | fail: | |
8740 | return NULL; | |
8741 | } | |
8742 | ||
8743 | ||
8744 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8745 | PyObject *resultobj; | |
8746 | int arg1 ; | |
8747 | bool result; | |
8748 | PyObject * obj0 = 0 ; | |
8749 | char *kwnames[] = { | |
8750 | (char *) "pid", NULL | |
8751 | }; | |
8752 | ||
8753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
8754 | arg1 = (int) SWIG_AsInt(obj0); | |
8755 | if (PyErr_Occurred()) SWIG_fail; | |
8756 | { | |
8757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8758 | result = (bool)wxPyProcess::Exists(arg1); | |
8759 | ||
8760 | wxPyEndAllowThreads(__tstate); | |
8761 | if (PyErr_Occurred()) SWIG_fail; | |
8762 | } | |
8763 | { | |
8764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8765 | } | |
8766 | return resultobj; | |
8767 | fail: | |
8768 | return NULL; | |
8769 | } | |
8770 | ||
8771 | ||
8772 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8773 | PyObject *resultobj; | |
8774 | wxString *arg1 = 0 ; | |
8775 | int arg2 = (int) wxEXEC_ASYNC ; | |
8776 | wxPyProcess *result; | |
8777 | bool temp1 = False ; | |
8778 | PyObject * obj0 = 0 ; | |
8779 | PyObject * obj1 = 0 ; | |
8780 | char *kwnames[] = { | |
8781 | (char *) "cmd",(char *) "flags", NULL | |
8782 | }; | |
8783 | ||
8784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
8785 | { | |
8786 | arg1 = wxString_in_helper(obj0); | |
8787 | if (arg1 == NULL) SWIG_fail; | |
8788 | temp1 = True; | |
8789 | } | |
8790 | if (obj1) { | |
8791 | arg2 = (int) SWIG_AsInt(obj1); | |
8792 | if (PyErr_Occurred()) SWIG_fail; | |
8793 | } | |
8794 | { | |
8795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8796 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8797 | ||
8798 | wxPyEndAllowThreads(__tstate); | |
8799 | if (PyErr_Occurred()) SWIG_fail; | |
8800 | } | |
8801 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
8802 | { | |
8803 | if (temp1) | |
8804 | delete arg1; | |
8805 | } | |
8806 | return resultobj; | |
8807 | fail: | |
8808 | { | |
8809 | if (temp1) | |
8810 | delete arg1; | |
8811 | } | |
8812 | return NULL; | |
8813 | } | |
8814 | ||
8815 | ||
8816 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8817 | PyObject *resultobj; | |
8818 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8819 | int arg2 = (int) -1 ; | |
8820 | wxPyProcess *result; | |
8821 | PyObject * obj0 = 0 ; | |
8822 | PyObject * obj1 = 0 ; | |
8823 | char *kwnames[] = { | |
8824 | (char *) "parent",(char *) "id", NULL | |
8825 | }; | |
8826 | ||
8827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
8828 | if (obj0) { | |
8829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
8830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8831 | } | |
8832 | if (obj1) { | |
8833 | arg2 = (int) SWIG_AsInt(obj1); | |
8834 | if (PyErr_Occurred()) SWIG_fail; | |
8835 | } | |
8836 | { | |
8837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8838 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8839 | ||
8840 | wxPyEndAllowThreads(__tstate); | |
8841 | if (PyErr_Occurred()) SWIG_fail; | |
8842 | } | |
8843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
8844 | return resultobj; | |
8845 | fail: | |
8846 | return NULL; | |
8847 | } | |
8848 | ||
8849 | ||
8850 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8851 | PyObject *resultobj; | |
8852 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8853 | PyObject *arg2 = (PyObject *) 0 ; | |
8854 | PyObject *arg3 = (PyObject *) 0 ; | |
8855 | PyObject * obj0 = 0 ; | |
8856 | PyObject * obj1 = 0 ; | |
8857 | PyObject * obj2 = 0 ; | |
8858 | char *kwnames[] = { | |
8859 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8860 | }; | |
8861 | ||
8862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8865 | arg2 = obj1; | |
8866 | arg3 = obj2; | |
8867 | { | |
8868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8869 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8870 | ||
8871 | wxPyEndAllowThreads(__tstate); | |
8872 | if (PyErr_Occurred()) SWIG_fail; | |
8873 | } | |
8874 | Py_INCREF(Py_None); resultobj = Py_None; | |
8875 | return resultobj; | |
8876 | fail: | |
8877 | return NULL; | |
8878 | } | |
8879 | ||
8880 | ||
8881 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8882 | PyObject *resultobj; | |
8883 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8884 | int arg2 ; | |
8885 | int arg3 ; | |
8886 | PyObject * obj0 = 0 ; | |
8887 | PyObject * obj1 = 0 ; | |
8888 | PyObject * obj2 = 0 ; | |
8889 | char *kwnames[] = { | |
8890 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8891 | }; | |
8892 | ||
8893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8896 | arg2 = (int) SWIG_AsInt(obj1); | |
8897 | if (PyErr_Occurred()) SWIG_fail; | |
8898 | arg3 = (int) SWIG_AsInt(obj2); | |
8899 | if (PyErr_Occurred()) SWIG_fail; | |
8900 | { | |
8901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8902 | (arg1)->base_OnTerminate(arg2,arg3); | |
8903 | ||
8904 | wxPyEndAllowThreads(__tstate); | |
8905 | if (PyErr_Occurred()) SWIG_fail; | |
8906 | } | |
8907 | Py_INCREF(Py_None); resultobj = Py_None; | |
8908 | return resultobj; | |
8909 | fail: | |
8910 | return NULL; | |
8911 | } | |
8912 | ||
8913 | ||
8914 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8915 | PyObject *resultobj; | |
8916 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8917 | PyObject * obj0 = 0 ; | |
8918 | char *kwnames[] = { | |
8919 | (char *) "self", NULL | |
8920 | }; | |
8921 | ||
8922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8925 | { | |
8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8927 | (arg1)->Redirect(); | |
8928 | ||
8929 | wxPyEndAllowThreads(__tstate); | |
8930 | if (PyErr_Occurred()) SWIG_fail; | |
8931 | } | |
8932 | Py_INCREF(Py_None); resultobj = Py_None; | |
8933 | return resultobj; | |
8934 | fail: | |
8935 | return NULL; | |
8936 | } | |
8937 | ||
8938 | ||
8939 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8940 | PyObject *resultobj; | |
8941 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8942 | bool result; | |
8943 | PyObject * obj0 = 0 ; | |
8944 | char *kwnames[] = { | |
8945 | (char *) "self", NULL | |
8946 | }; | |
8947 | ||
8948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8951 | { | |
8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8953 | result = (bool)(arg1)->IsRedirected(); | |
8954 | ||
8955 | wxPyEndAllowThreads(__tstate); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | } | |
8958 | { | |
8959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8960 | } | |
8961 | return resultobj; | |
8962 | fail: | |
8963 | return NULL; | |
8964 | } | |
8965 | ||
8966 | ||
8967 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8968 | PyObject *resultobj; | |
8969 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8970 | PyObject * obj0 = 0 ; | |
8971 | char *kwnames[] = { | |
8972 | (char *) "self", NULL | |
8973 | }; | |
8974 | ||
8975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8978 | { | |
8979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8980 | (arg1)->Detach(); | |
8981 | ||
8982 | wxPyEndAllowThreads(__tstate); | |
8983 | if (PyErr_Occurred()) SWIG_fail; | |
8984 | } | |
8985 | Py_INCREF(Py_None); resultobj = Py_None; | |
8986 | return resultobj; | |
8987 | fail: | |
8988 | return NULL; | |
8989 | } | |
8990 | ||
8991 | ||
8992 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8993 | PyObject *resultobj; | |
8994 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8995 | wxInputStream *result; | |
8996 | PyObject * obj0 = 0 ; | |
8997 | char *kwnames[] = { | |
8998 | (char *) "self", NULL | |
8999 | }; | |
9000 | ||
9001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9004 | { | |
9005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9006 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9007 | ||
9008 | wxPyEndAllowThreads(__tstate); | |
9009 | if (PyErr_Occurred()) SWIG_fail; | |
9010 | } | |
9011 | { | |
9012 | wxPyInputStream * _ptr = NULL; | |
9013 | ||
9014 | if (result) { | |
9015 | _ptr = new wxPyInputStream(result); | |
9016 | } | |
9017 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9018 | } | |
9019 | return resultobj; | |
9020 | fail: | |
9021 | return NULL; | |
9022 | } | |
9023 | ||
9024 | ||
9025 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9026 | PyObject *resultobj; | |
9027 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9028 | wxInputStream *result; | |
9029 | PyObject * obj0 = 0 ; | |
9030 | char *kwnames[] = { | |
9031 | (char *) "self", NULL | |
9032 | }; | |
9033 | ||
9034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9037 | { | |
9038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9039 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9040 | ||
9041 | wxPyEndAllowThreads(__tstate); | |
9042 | if (PyErr_Occurred()) SWIG_fail; | |
9043 | } | |
9044 | { | |
9045 | wxPyInputStream * _ptr = NULL; | |
9046 | ||
9047 | if (result) { | |
9048 | _ptr = new wxPyInputStream(result); | |
9049 | } | |
9050 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9051 | } | |
9052 | return resultobj; | |
9053 | fail: | |
9054 | return NULL; | |
9055 | } | |
9056 | ||
9057 | ||
9058 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9059 | PyObject *resultobj; | |
9060 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9061 | wxOutputStream *result; | |
9062 | PyObject * obj0 = 0 ; | |
9063 | char *kwnames[] = { | |
9064 | (char *) "self", NULL | |
9065 | }; | |
9066 | ||
9067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9070 | { | |
9071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9072 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9073 | ||
9074 | wxPyEndAllowThreads(__tstate); | |
9075 | if (PyErr_Occurred()) SWIG_fail; | |
9076 | } | |
9077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9078 | return resultobj; | |
9079 | fail: | |
9080 | return NULL; | |
9081 | } | |
9082 | ||
9083 | ||
9084 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9085 | PyObject *resultobj; | |
9086 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9087 | PyObject * obj0 = 0 ; | |
9088 | char *kwnames[] = { | |
9089 | (char *) "self", NULL | |
9090 | }; | |
9091 | ||
9092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9095 | { | |
9096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9097 | (arg1)->CloseOutput(); | |
9098 | ||
9099 | wxPyEndAllowThreads(__tstate); | |
9100 | if (PyErr_Occurred()) SWIG_fail; | |
9101 | } | |
9102 | Py_INCREF(Py_None); resultobj = Py_None; | |
9103 | return resultobj; | |
9104 | fail: | |
9105 | return NULL; | |
9106 | } | |
9107 | ||
9108 | ||
9109 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9110 | PyObject *resultobj; | |
9111 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9112 | bool result; | |
9113 | PyObject * obj0 = 0 ; | |
9114 | char *kwnames[] = { | |
9115 | (char *) "self", NULL | |
9116 | }; | |
9117 | ||
9118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9121 | { | |
9122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9123 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9124 | ||
9125 | wxPyEndAllowThreads(__tstate); | |
9126 | if (PyErr_Occurred()) SWIG_fail; | |
9127 | } | |
9128 | { | |
9129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9130 | } | |
9131 | return resultobj; | |
9132 | fail: | |
9133 | return NULL; | |
9134 | } | |
9135 | ||
9136 | ||
9137 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9138 | PyObject *resultobj; | |
9139 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9140 | bool result; | |
9141 | PyObject * obj0 = 0 ; | |
9142 | char *kwnames[] = { | |
9143 | (char *) "self", NULL | |
9144 | }; | |
9145 | ||
9146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9149 | { | |
9150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9151 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9152 | ||
9153 | wxPyEndAllowThreads(__tstate); | |
9154 | if (PyErr_Occurred()) SWIG_fail; | |
9155 | } | |
9156 | { | |
9157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9158 | } | |
9159 | return resultobj; | |
9160 | fail: | |
9161 | return NULL; | |
9162 | } | |
9163 | ||
9164 | ||
9165 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9166 | PyObject *resultobj; | |
9167 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9168 | bool result; | |
9169 | PyObject * obj0 = 0 ; | |
9170 | char *kwnames[] = { | |
9171 | (char *) "self", NULL | |
9172 | }; | |
9173 | ||
9174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9177 | { | |
9178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9179 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9180 | ||
9181 | wxPyEndAllowThreads(__tstate); | |
9182 | if (PyErr_Occurred()) SWIG_fail; | |
9183 | } | |
9184 | { | |
9185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9186 | } | |
9187 | return resultobj; | |
9188 | fail: | |
9189 | return NULL; | |
9190 | } | |
9191 | ||
9192 | ||
9193 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9194 | PyObject *obj; | |
9195 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9196 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9197 | Py_INCREF(obj); | |
9198 | return Py_BuildValue((char *)""); | |
9199 | } | |
9200 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9201 | PyObject *resultobj; | |
9202 | int arg1 = (int) 0 ; | |
9203 | int arg2 = (int) 0 ; | |
9204 | int arg3 = (int) 0 ; | |
9205 | wxProcessEvent *result; | |
9206 | PyObject * obj0 = 0 ; | |
9207 | PyObject * obj1 = 0 ; | |
9208 | PyObject * obj2 = 0 ; | |
9209 | char *kwnames[] = { | |
9210 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9211 | }; | |
9212 | ||
9213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9214 | if (obj0) { | |
9215 | arg1 = (int) SWIG_AsInt(obj0); | |
9216 | if (PyErr_Occurred()) SWIG_fail; | |
9217 | } | |
9218 | if (obj1) { | |
9219 | arg2 = (int) SWIG_AsInt(obj1); | |
9220 | if (PyErr_Occurred()) SWIG_fail; | |
9221 | } | |
9222 | if (obj2) { | |
9223 | arg3 = (int) SWIG_AsInt(obj2); | |
9224 | if (PyErr_Occurred()) SWIG_fail; | |
9225 | } | |
9226 | { | |
9227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9228 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9229 | ||
9230 | wxPyEndAllowThreads(__tstate); | |
9231 | if (PyErr_Occurred()) SWIG_fail; | |
9232 | } | |
9233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9234 | return resultobj; | |
9235 | fail: | |
9236 | return NULL; | |
9237 | } | |
9238 | ||
9239 | ||
9240 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9241 | PyObject *resultobj; | |
9242 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9243 | int result; | |
9244 | PyObject * obj0 = 0 ; | |
9245 | char *kwnames[] = { | |
9246 | (char *) "self", NULL | |
9247 | }; | |
9248 | ||
9249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9252 | { | |
9253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9254 | result = (int)(arg1)->GetPid(); | |
9255 | ||
9256 | wxPyEndAllowThreads(__tstate); | |
9257 | if (PyErr_Occurred()) SWIG_fail; | |
9258 | } | |
9259 | resultobj = SWIG_FromInt((int)result); | |
9260 | return resultobj; | |
9261 | fail: | |
9262 | return NULL; | |
9263 | } | |
9264 | ||
9265 | ||
9266 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9267 | PyObject *resultobj; | |
9268 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9269 | int result; | |
9270 | PyObject * obj0 = 0 ; | |
9271 | char *kwnames[] = { | |
9272 | (char *) "self", NULL | |
9273 | }; | |
9274 | ||
9275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9278 | { | |
9279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9280 | result = (int)(arg1)->GetExitCode(); | |
9281 | ||
9282 | wxPyEndAllowThreads(__tstate); | |
9283 | if (PyErr_Occurred()) SWIG_fail; | |
9284 | } | |
9285 | resultobj = SWIG_FromInt((int)result); | |
9286 | return resultobj; | |
9287 | fail: | |
9288 | return NULL; | |
9289 | } | |
9290 | ||
9291 | ||
9292 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9293 | PyObject *resultobj; | |
9294 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9295 | int arg2 ; | |
9296 | PyObject * obj0 = 0 ; | |
9297 | PyObject * obj1 = 0 ; | |
9298 | char *kwnames[] = { | |
9299 | (char *) "self",(char *) "m_pid", NULL | |
9300 | }; | |
9301 | ||
9302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9305 | arg2 = (int) SWIG_AsInt(obj1); | |
9306 | if (PyErr_Occurred()) SWIG_fail; | |
9307 | if (arg1) (arg1)->m_pid = arg2; | |
9308 | ||
9309 | Py_INCREF(Py_None); resultobj = Py_None; | |
9310 | return resultobj; | |
9311 | fail: | |
9312 | return NULL; | |
9313 | } | |
9314 | ||
9315 | ||
9316 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9317 | PyObject *resultobj; | |
9318 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9319 | int result; | |
9320 | PyObject * obj0 = 0 ; | |
9321 | char *kwnames[] = { | |
9322 | (char *) "self", NULL | |
9323 | }; | |
9324 | ||
9325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9328 | result = (int) ((arg1)->m_pid); | |
9329 | ||
9330 | resultobj = SWIG_FromInt((int)result); | |
9331 | return resultobj; | |
9332 | fail: | |
9333 | return NULL; | |
9334 | } | |
9335 | ||
9336 | ||
9337 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9338 | PyObject *resultobj; | |
9339 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9340 | int arg2 ; | |
9341 | PyObject * obj0 = 0 ; | |
9342 | PyObject * obj1 = 0 ; | |
9343 | char *kwnames[] = { | |
9344 | (char *) "self",(char *) "m_exitcode", NULL | |
9345 | }; | |
9346 | ||
9347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9350 | arg2 = (int) SWIG_AsInt(obj1); | |
9351 | if (PyErr_Occurred()) SWIG_fail; | |
9352 | if (arg1) (arg1)->m_exitcode = arg2; | |
9353 | ||
9354 | Py_INCREF(Py_None); resultobj = Py_None; | |
9355 | return resultobj; | |
9356 | fail: | |
9357 | return NULL; | |
9358 | } | |
9359 | ||
9360 | ||
9361 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9362 | PyObject *resultobj; | |
9363 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9364 | int result; | |
9365 | PyObject * obj0 = 0 ; | |
9366 | char *kwnames[] = { | |
9367 | (char *) "self", NULL | |
9368 | }; | |
9369 | ||
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9373 | result = (int) ((arg1)->m_exitcode); | |
9374 | ||
9375 | resultobj = SWIG_FromInt((int)result); | |
9376 | return resultobj; | |
9377 | fail: | |
9378 | return NULL; | |
9379 | } | |
9380 | ||
9381 | ||
9382 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9383 | PyObject *obj; | |
9384 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9385 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9386 | Py_INCREF(obj); | |
9387 | return Py_BuildValue((char *)""); | |
9388 | } | |
9389 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9390 | PyObject *resultobj; | |
9391 | wxString *arg1 = 0 ; | |
9392 | int arg2 = (int) wxEXEC_ASYNC ; | |
9393 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9394 | long result; | |
9395 | bool temp1 = False ; | |
9396 | PyObject * obj0 = 0 ; | |
9397 | PyObject * obj1 = 0 ; | |
9398 | PyObject * obj2 = 0 ; | |
9399 | char *kwnames[] = { | |
9400 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9401 | }; | |
9402 | ||
9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9404 | { | |
9405 | arg1 = wxString_in_helper(obj0); | |
9406 | if (arg1 == NULL) SWIG_fail; | |
9407 | temp1 = True; | |
9408 | } | |
9409 | if (obj1) { | |
9410 | arg2 = (int) SWIG_AsInt(obj1); | |
9411 | if (PyErr_Occurred()) SWIG_fail; | |
9412 | } | |
9413 | if (obj2) { | |
9414 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
9415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9416 | } | |
9417 | { | |
9418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9419 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9420 | ||
9421 | wxPyEndAllowThreads(__tstate); | |
9422 | if (PyErr_Occurred()) SWIG_fail; | |
9423 | } | |
9424 | resultobj = SWIG_FromLong((long)result); | |
9425 | { | |
9426 | if (temp1) | |
9427 | delete arg1; | |
9428 | } | |
9429 | return resultobj; | |
9430 | fail: | |
9431 | { | |
9432 | if (temp1) | |
9433 | delete arg1; | |
9434 | } | |
9435 | return NULL; | |
9436 | } | |
9437 | ||
9438 | ||
9439 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9440 | PyObject *resultobj; | |
9441 | int arg1 = (int) wxJOYSTICK1 ; | |
9442 | wxJoystick *result; | |
9443 | PyObject * obj0 = 0 ; | |
9444 | char *kwnames[] = { | |
9445 | (char *) "joystick", NULL | |
9446 | }; | |
9447 | ||
9448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9449 | if (obj0) { | |
9450 | arg1 = (int) SWIG_AsInt(obj0); | |
9451 | if (PyErr_Occurred()) SWIG_fail; | |
9452 | } | |
9453 | { | |
9454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9455 | result = (wxJoystick *)new wxJoystick(arg1); | |
9456 | ||
9457 | wxPyEndAllowThreads(__tstate); | |
9458 | if (PyErr_Occurred()) SWIG_fail; | |
9459 | } | |
9460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
9461 | return resultobj; | |
9462 | fail: | |
9463 | return NULL; | |
9464 | } | |
9465 | ||
9466 | ||
9467 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9468 | PyObject *resultobj; | |
9469 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9470 | PyObject * obj0 = 0 ; | |
9471 | char *kwnames[] = { | |
9472 | (char *) "self", NULL | |
9473 | }; | |
9474 | ||
9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
9476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9478 | { | |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | delete arg1; | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
9485 | Py_INCREF(Py_None); resultobj = Py_None; | |
9486 | return resultobj; | |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
9492 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9493 | PyObject *resultobj; | |
9494 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9495 | wxPoint result; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | char *kwnames[] = { | |
9498 | (char *) "self", NULL | |
9499 | }; | |
9500 | ||
9501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
9502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9504 | { | |
9505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9506 | result = (arg1)->GetPosition(); | |
9507 | ||
9508 | wxPyEndAllowThreads(__tstate); | |
9509 | if (PyErr_Occurred()) SWIG_fail; | |
9510 | } | |
9511 | { | |
9512 | wxPoint * resultptr; | |
9513 | resultptr = new wxPoint((wxPoint &) result); | |
9514 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
9515 | } | |
9516 | return resultobj; | |
9517 | fail: | |
9518 | return NULL; | |
9519 | } | |
9520 | ||
9521 | ||
9522 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9523 | PyObject *resultobj; | |
9524 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9525 | int result; | |
9526 | PyObject * obj0 = 0 ; | |
9527 | char *kwnames[] = { | |
9528 | (char *) "self", NULL | |
9529 | }; | |
9530 | ||
9531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
9532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9534 | { | |
9535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9536 | result = (int)(arg1)->GetZPosition(); | |
9537 | ||
9538 | wxPyEndAllowThreads(__tstate); | |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
9540 | } | |
9541 | resultobj = SWIG_FromInt((int)result); | |
9542 | return resultobj; | |
9543 | fail: | |
9544 | return NULL; | |
9545 | } | |
9546 | ||
9547 | ||
9548 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9549 | PyObject *resultobj; | |
9550 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9551 | int result; | |
9552 | PyObject * obj0 = 0 ; | |
9553 | char *kwnames[] = { | |
9554 | (char *) "self", NULL | |
9555 | }; | |
9556 | ||
9557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
9558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9560 | { | |
9561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9562 | result = (int)(arg1)->GetButtonState(); | |
9563 | ||
9564 | wxPyEndAllowThreads(__tstate); | |
9565 | if (PyErr_Occurred()) SWIG_fail; | |
9566 | } | |
9567 | resultobj = SWIG_FromInt((int)result); | |
9568 | return resultobj; | |
9569 | fail: | |
9570 | return NULL; | |
9571 | } | |
9572 | ||
9573 | ||
9574 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9575 | PyObject *resultobj; | |
9576 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9577 | int result; | |
9578 | PyObject * obj0 = 0 ; | |
9579 | char *kwnames[] = { | |
9580 | (char *) "self", NULL | |
9581 | }; | |
9582 | ||
9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
9584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9586 | { | |
9587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9588 | result = (int)(arg1)->GetPOVPosition(); | |
9589 | ||
9590 | wxPyEndAllowThreads(__tstate); | |
9591 | if (PyErr_Occurred()) SWIG_fail; | |
9592 | } | |
9593 | resultobj = SWIG_FromInt((int)result); | |
9594 | return resultobj; | |
9595 | fail: | |
9596 | return NULL; | |
9597 | } | |
9598 | ||
9599 | ||
9600 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9601 | PyObject *resultobj; | |
9602 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9603 | int result; | |
9604 | PyObject * obj0 = 0 ; | |
9605 | char *kwnames[] = { | |
9606 | (char *) "self", NULL | |
9607 | }; | |
9608 | ||
9609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
9610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9612 | { | |
9613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9614 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9615 | ||
9616 | wxPyEndAllowThreads(__tstate); | |
9617 | if (PyErr_Occurred()) SWIG_fail; | |
9618 | } | |
9619 | resultobj = SWIG_FromInt((int)result); | |
9620 | return resultobj; | |
9621 | fail: | |
9622 | return NULL; | |
9623 | } | |
9624 | ||
9625 | ||
9626 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9627 | PyObject *resultobj; | |
9628 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9629 | int result; | |
9630 | PyObject * obj0 = 0 ; | |
9631 | char *kwnames[] = { | |
9632 | (char *) "self", NULL | |
9633 | }; | |
9634 | ||
9635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
9636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9638 | { | |
9639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9640 | result = (int)(arg1)->GetRudderPosition(); | |
9641 | ||
9642 | wxPyEndAllowThreads(__tstate); | |
9643 | if (PyErr_Occurred()) SWIG_fail; | |
9644 | } | |
9645 | resultobj = SWIG_FromInt((int)result); | |
9646 | return resultobj; | |
9647 | fail: | |
9648 | return NULL; | |
9649 | } | |
9650 | ||
9651 | ||
9652 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9653 | PyObject *resultobj; | |
9654 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9655 | int result; | |
9656 | PyObject * obj0 = 0 ; | |
9657 | char *kwnames[] = { | |
9658 | (char *) "self", NULL | |
9659 | }; | |
9660 | ||
9661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
9662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9664 | { | |
9665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9666 | result = (int)(arg1)->GetUPosition(); | |
9667 | ||
9668 | wxPyEndAllowThreads(__tstate); | |
9669 | if (PyErr_Occurred()) SWIG_fail; | |
9670 | } | |
9671 | resultobj = SWIG_FromInt((int)result); | |
9672 | return resultobj; | |
9673 | fail: | |
9674 | return NULL; | |
9675 | } | |
9676 | ||
9677 | ||
9678 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9679 | PyObject *resultobj; | |
9680 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9681 | int result; | |
9682 | PyObject * obj0 = 0 ; | |
9683 | char *kwnames[] = { | |
9684 | (char *) "self", NULL | |
9685 | }; | |
9686 | ||
9687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
9688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9690 | { | |
9691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9692 | result = (int)(arg1)->GetVPosition(); | |
9693 | ||
9694 | wxPyEndAllowThreads(__tstate); | |
9695 | if (PyErr_Occurred()) SWIG_fail; | |
9696 | } | |
9697 | resultobj = SWIG_FromInt((int)result); | |
9698 | return resultobj; | |
9699 | fail: | |
9700 | return NULL; | |
9701 | } | |
9702 | ||
9703 | ||
9704 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9705 | PyObject *resultobj; | |
9706 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9707 | int result; | |
9708 | PyObject * obj0 = 0 ; | |
9709 | char *kwnames[] = { | |
9710 | (char *) "self", NULL | |
9711 | }; | |
9712 | ||
9713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
9714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9716 | { | |
9717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9718 | result = (int)(arg1)->GetMovementThreshold(); | |
9719 | ||
9720 | wxPyEndAllowThreads(__tstate); | |
9721 | if (PyErr_Occurred()) SWIG_fail; | |
9722 | } | |
9723 | resultobj = SWIG_FromInt((int)result); | |
9724 | return resultobj; | |
9725 | fail: | |
9726 | return NULL; | |
9727 | } | |
9728 | ||
9729 | ||
9730 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9731 | PyObject *resultobj; | |
9732 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9733 | int arg2 ; | |
9734 | PyObject * obj0 = 0 ; | |
9735 | PyObject * obj1 = 0 ; | |
9736 | char *kwnames[] = { | |
9737 | (char *) "self",(char *) "threshold", NULL | |
9738 | }; | |
9739 | ||
9740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
9741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9743 | arg2 = (int) SWIG_AsInt(obj1); | |
9744 | if (PyErr_Occurred()) SWIG_fail; | |
9745 | { | |
9746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9747 | (arg1)->SetMovementThreshold(arg2); | |
9748 | ||
9749 | wxPyEndAllowThreads(__tstate); | |
9750 | if (PyErr_Occurred()) SWIG_fail; | |
9751 | } | |
9752 | Py_INCREF(Py_None); resultobj = Py_None; | |
9753 | return resultobj; | |
9754 | fail: | |
9755 | return NULL; | |
9756 | } | |
9757 | ||
9758 | ||
9759 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9760 | PyObject *resultobj; | |
9761 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9762 | bool result; | |
9763 | PyObject * obj0 = 0 ; | |
9764 | char *kwnames[] = { | |
9765 | (char *) "self", NULL | |
9766 | }; | |
9767 | ||
9768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9771 | { | |
9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9773 | result = (bool)(arg1)->IsOk(); | |
9774 | ||
9775 | wxPyEndAllowThreads(__tstate); | |
9776 | if (PyErr_Occurred()) SWIG_fail; | |
9777 | } | |
9778 | { | |
9779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9780 | } | |
9781 | return resultobj; | |
9782 | fail: | |
9783 | return NULL; | |
9784 | } | |
9785 | ||
9786 | ||
9787 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9788 | PyObject *resultobj; | |
9789 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9790 | int result; | |
9791 | PyObject * obj0 = 0 ; | |
9792 | char *kwnames[] = { | |
9793 | (char *) "self", NULL | |
9794 | }; | |
9795 | ||
9796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9799 | { | |
9800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9801 | result = (int)(arg1)->GetNumberJoysticks(); | |
9802 | ||
9803 | wxPyEndAllowThreads(__tstate); | |
9804 | if (PyErr_Occurred()) SWIG_fail; | |
9805 | } | |
9806 | resultobj = SWIG_FromInt((int)result); | |
9807 | return resultobj; | |
9808 | fail: | |
9809 | return NULL; | |
9810 | } | |
9811 | ||
9812 | ||
9813 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9814 | PyObject *resultobj; | |
9815 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9816 | int result; | |
9817 | PyObject * obj0 = 0 ; | |
9818 | char *kwnames[] = { | |
9819 | (char *) "self", NULL | |
9820 | }; | |
9821 | ||
9822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9825 | { | |
9826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9827 | result = (int)(arg1)->GetManufacturerId(); | |
9828 | ||
9829 | wxPyEndAllowThreads(__tstate); | |
9830 | if (PyErr_Occurred()) SWIG_fail; | |
9831 | } | |
9832 | resultobj = SWIG_FromInt((int)result); | |
9833 | return resultobj; | |
9834 | fail: | |
9835 | return NULL; | |
9836 | } | |
9837 | ||
9838 | ||
9839 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9840 | PyObject *resultobj; | |
9841 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9842 | int result; | |
9843 | PyObject * obj0 = 0 ; | |
9844 | char *kwnames[] = { | |
9845 | (char *) "self", NULL | |
9846 | }; | |
9847 | ||
9848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9851 | { | |
9852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9853 | result = (int)(arg1)->GetProductId(); | |
9854 | ||
9855 | wxPyEndAllowThreads(__tstate); | |
9856 | if (PyErr_Occurred()) SWIG_fail; | |
9857 | } | |
9858 | resultobj = SWIG_FromInt((int)result); | |
9859 | return resultobj; | |
9860 | fail: | |
9861 | return NULL; | |
9862 | } | |
9863 | ||
9864 | ||
9865 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9866 | PyObject *resultobj; | |
9867 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9868 | wxString result; | |
9869 | PyObject * obj0 = 0 ; | |
9870 | char *kwnames[] = { | |
9871 | (char *) "self", NULL | |
9872 | }; | |
9873 | ||
9874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9877 | { | |
9878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9879 | result = (arg1)->GetProductName(); | |
9880 | ||
9881 | wxPyEndAllowThreads(__tstate); | |
9882 | if (PyErr_Occurred()) SWIG_fail; | |
9883 | } | |
9884 | { | |
9885 | #if wxUSE_UNICODE | |
9886 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9887 | #else | |
9888 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9889 | #endif | |
9890 | } | |
9891 | return resultobj; | |
9892 | fail: | |
9893 | return NULL; | |
9894 | } | |
9895 | ||
9896 | ||
9897 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9898 | PyObject *resultobj; | |
9899 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9900 | int result; | |
9901 | PyObject * obj0 = 0 ; | |
9902 | char *kwnames[] = { | |
9903 | (char *) "self", NULL | |
9904 | }; | |
9905 | ||
9906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9909 | { | |
9910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9911 | result = (int)(arg1)->GetXMin(); | |
9912 | ||
9913 | wxPyEndAllowThreads(__tstate); | |
9914 | if (PyErr_Occurred()) SWIG_fail; | |
9915 | } | |
9916 | resultobj = SWIG_FromInt((int)result); | |
9917 | return resultobj; | |
9918 | fail: | |
9919 | return NULL; | |
9920 | } | |
9921 | ||
9922 | ||
9923 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9924 | PyObject *resultobj; | |
9925 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9926 | int result; | |
9927 | PyObject * obj0 = 0 ; | |
9928 | char *kwnames[] = { | |
9929 | (char *) "self", NULL | |
9930 | }; | |
9931 | ||
9932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9935 | { | |
9936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9937 | result = (int)(arg1)->GetYMin(); | |
9938 | ||
9939 | wxPyEndAllowThreads(__tstate); | |
9940 | if (PyErr_Occurred()) SWIG_fail; | |
9941 | } | |
9942 | resultobj = SWIG_FromInt((int)result); | |
9943 | return resultobj; | |
9944 | fail: | |
9945 | return NULL; | |
9946 | } | |
9947 | ||
9948 | ||
9949 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9950 | PyObject *resultobj; | |
9951 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9952 | int result; | |
9953 | PyObject * obj0 = 0 ; | |
9954 | char *kwnames[] = { | |
9955 | (char *) "self", NULL | |
9956 | }; | |
9957 | ||
9958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9961 | { | |
9962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9963 | result = (int)(arg1)->GetZMin(); | |
9964 | ||
9965 | wxPyEndAllowThreads(__tstate); | |
9966 | if (PyErr_Occurred()) SWIG_fail; | |
9967 | } | |
9968 | resultobj = SWIG_FromInt((int)result); | |
9969 | return resultobj; | |
9970 | fail: | |
9971 | return NULL; | |
9972 | } | |
9973 | ||
9974 | ||
9975 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9976 | PyObject *resultobj; | |
9977 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9978 | int result; | |
9979 | PyObject * obj0 = 0 ; | |
9980 | char *kwnames[] = { | |
9981 | (char *) "self", NULL | |
9982 | }; | |
9983 | ||
9984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9987 | { | |
9988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9989 | result = (int)(arg1)->GetXMax(); | |
9990 | ||
9991 | wxPyEndAllowThreads(__tstate); | |
9992 | if (PyErr_Occurred()) SWIG_fail; | |
9993 | } | |
9994 | resultobj = SWIG_FromInt((int)result); | |
9995 | return resultobj; | |
9996 | fail: | |
9997 | return NULL; | |
9998 | } | |
9999 | ||
10000 | ||
10001 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10002 | PyObject *resultobj; | |
10003 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10004 | int result; | |
10005 | PyObject * obj0 = 0 ; | |
10006 | char *kwnames[] = { | |
10007 | (char *) "self", NULL | |
10008 | }; | |
10009 | ||
10010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10013 | { | |
10014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10015 | result = (int)(arg1)->GetYMax(); | |
10016 | ||
10017 | wxPyEndAllowThreads(__tstate); | |
10018 | if (PyErr_Occurred()) SWIG_fail; | |
10019 | } | |
10020 | resultobj = SWIG_FromInt((int)result); | |
10021 | return resultobj; | |
10022 | fail: | |
10023 | return NULL; | |
10024 | } | |
10025 | ||
10026 | ||
10027 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10028 | PyObject *resultobj; | |
10029 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10030 | int result; | |
10031 | PyObject * obj0 = 0 ; | |
10032 | char *kwnames[] = { | |
10033 | (char *) "self", NULL | |
10034 | }; | |
10035 | ||
10036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10039 | { | |
10040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10041 | result = (int)(arg1)->GetZMax(); | |
10042 | ||
10043 | wxPyEndAllowThreads(__tstate); | |
10044 | if (PyErr_Occurred()) SWIG_fail; | |
10045 | } | |
10046 | resultobj = SWIG_FromInt((int)result); | |
10047 | return resultobj; | |
10048 | fail: | |
10049 | return NULL; | |
10050 | } | |
10051 | ||
10052 | ||
10053 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10054 | PyObject *resultobj; | |
10055 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10056 | int result; | |
10057 | PyObject * obj0 = 0 ; | |
10058 | char *kwnames[] = { | |
10059 | (char *) "self", NULL | |
10060 | }; | |
10061 | ||
10062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10065 | { | |
10066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10067 | result = (int)(arg1)->GetNumberButtons(); | |
10068 | ||
10069 | wxPyEndAllowThreads(__tstate); | |
10070 | if (PyErr_Occurred()) SWIG_fail; | |
10071 | } | |
10072 | resultobj = SWIG_FromInt((int)result); | |
10073 | return resultobj; | |
10074 | fail: | |
10075 | return NULL; | |
10076 | } | |
10077 | ||
10078 | ||
10079 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10080 | PyObject *resultobj; | |
10081 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10082 | int result; | |
10083 | PyObject * obj0 = 0 ; | |
10084 | char *kwnames[] = { | |
10085 | (char *) "self", NULL | |
10086 | }; | |
10087 | ||
10088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10091 | { | |
10092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10093 | result = (int)(arg1)->GetNumberAxes(); | |
10094 | ||
10095 | wxPyEndAllowThreads(__tstate); | |
10096 | if (PyErr_Occurred()) SWIG_fail; | |
10097 | } | |
10098 | resultobj = SWIG_FromInt((int)result); | |
10099 | return resultobj; | |
10100 | fail: | |
10101 | return NULL; | |
10102 | } | |
10103 | ||
10104 | ||
10105 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10106 | PyObject *resultobj; | |
10107 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10108 | int result; | |
10109 | PyObject * obj0 = 0 ; | |
10110 | char *kwnames[] = { | |
10111 | (char *) "self", NULL | |
10112 | }; | |
10113 | ||
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
10115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10117 | { | |
10118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10119 | result = (int)(arg1)->GetMaxButtons(); | |
10120 | ||
10121 | wxPyEndAllowThreads(__tstate); | |
10122 | if (PyErr_Occurred()) SWIG_fail; | |
10123 | } | |
10124 | resultobj = SWIG_FromInt((int)result); | |
10125 | return resultobj; | |
10126 | fail: | |
10127 | return NULL; | |
10128 | } | |
10129 | ||
10130 | ||
10131 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10132 | PyObject *resultobj; | |
10133 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10134 | int result; | |
10135 | PyObject * obj0 = 0 ; | |
10136 | char *kwnames[] = { | |
10137 | (char *) "self", NULL | |
10138 | }; | |
10139 | ||
10140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10143 | { | |
10144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10145 | result = (int)(arg1)->GetMaxAxes(); | |
10146 | ||
10147 | wxPyEndAllowThreads(__tstate); | |
10148 | if (PyErr_Occurred()) SWIG_fail; | |
10149 | } | |
10150 | resultobj = SWIG_FromInt((int)result); | |
10151 | return resultobj; | |
10152 | fail: | |
10153 | return NULL; | |
10154 | } | |
10155 | ||
10156 | ||
10157 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10158 | PyObject *resultobj; | |
10159 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10160 | int result; | |
10161 | PyObject * obj0 = 0 ; | |
10162 | char *kwnames[] = { | |
10163 | (char *) "self", NULL | |
10164 | }; | |
10165 | ||
10166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10169 | { | |
10170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10171 | result = (int)(arg1)->GetPollingMin(); | |
10172 | ||
10173 | wxPyEndAllowThreads(__tstate); | |
10174 | if (PyErr_Occurred()) SWIG_fail; | |
10175 | } | |
10176 | resultobj = SWIG_FromInt((int)result); | |
10177 | return resultobj; | |
10178 | fail: | |
10179 | return NULL; | |
10180 | } | |
10181 | ||
10182 | ||
10183 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10184 | PyObject *resultobj; | |
10185 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10186 | int result; | |
10187 | PyObject * obj0 = 0 ; | |
10188 | char *kwnames[] = { | |
10189 | (char *) "self", NULL | |
10190 | }; | |
10191 | ||
10192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10195 | { | |
10196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10197 | result = (int)(arg1)->GetPollingMax(); | |
10198 | ||
10199 | wxPyEndAllowThreads(__tstate); | |
10200 | if (PyErr_Occurred()) SWIG_fail; | |
10201 | } | |
10202 | resultobj = SWIG_FromInt((int)result); | |
10203 | return resultobj; | |
10204 | fail: | |
10205 | return NULL; | |
10206 | } | |
10207 | ||
10208 | ||
10209 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10210 | PyObject *resultobj; | |
10211 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10212 | int result; | |
10213 | PyObject * obj0 = 0 ; | |
10214 | char *kwnames[] = { | |
10215 | (char *) "self", NULL | |
10216 | }; | |
10217 | ||
10218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10221 | { | |
10222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10223 | result = (int)(arg1)->GetRudderMin(); | |
10224 | ||
10225 | wxPyEndAllowThreads(__tstate); | |
10226 | if (PyErr_Occurred()) SWIG_fail; | |
10227 | } | |
10228 | resultobj = SWIG_FromInt((int)result); | |
10229 | return resultobj; | |
10230 | fail: | |
10231 | return NULL; | |
10232 | } | |
10233 | ||
10234 | ||
10235 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10236 | PyObject *resultobj; | |
10237 | wxJoystick *arg1 = (wxJoystick *) 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:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10247 | { | |
10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10249 | result = (int)(arg1)->GetRudderMax(); | |
10250 | ||
10251 | wxPyEndAllowThreads(__tstate); | |
10252 | if (PyErr_Occurred()) SWIG_fail; | |
10253 | } | |
10254 | resultobj = SWIG_FromInt((int)result); | |
10255 | return resultobj; | |
10256 | fail: | |
10257 | return NULL; | |
10258 | } | |
10259 | ||
10260 | ||
10261 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10262 | PyObject *resultobj; | |
10263 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10264 | int result; | |
10265 | PyObject * obj0 = 0 ; | |
10266 | char *kwnames[] = { | |
10267 | (char *) "self", NULL | |
10268 | }; | |
10269 | ||
10270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10273 | { | |
10274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10275 | result = (int)(arg1)->GetUMin(); | |
10276 | ||
10277 | wxPyEndAllowThreads(__tstate); | |
10278 | if (PyErr_Occurred()) SWIG_fail; | |
10279 | } | |
10280 | resultobj = SWIG_FromInt((int)result); | |
10281 | return resultobj; | |
10282 | fail: | |
10283 | return NULL; | |
10284 | } | |
10285 | ||
10286 | ||
10287 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10288 | PyObject *resultobj; | |
10289 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10290 | int result; | |
10291 | PyObject * obj0 = 0 ; | |
10292 | char *kwnames[] = { | |
10293 | (char *) "self", NULL | |
10294 | }; | |
10295 | ||
10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10299 | { | |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10301 | result = (int)(arg1)->GetUMax(); | |
10302 | ||
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
10306 | resultobj = SWIG_FromInt((int)result); | |
10307 | return resultobj; | |
10308 | fail: | |
10309 | return NULL; | |
10310 | } | |
10311 | ||
10312 | ||
10313 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10314 | PyObject *resultobj; | |
10315 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10316 | int result; | |
10317 | PyObject * obj0 = 0 ; | |
10318 | char *kwnames[] = { | |
10319 | (char *) "self", NULL | |
10320 | }; | |
10321 | ||
10322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10325 | { | |
10326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10327 | result = (int)(arg1)->GetVMin(); | |
10328 | ||
10329 | wxPyEndAllowThreads(__tstate); | |
10330 | if (PyErr_Occurred()) SWIG_fail; | |
10331 | } | |
10332 | resultobj = SWIG_FromInt((int)result); | |
10333 | return resultobj; | |
10334 | fail: | |
10335 | return NULL; | |
10336 | } | |
10337 | ||
10338 | ||
10339 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10340 | PyObject *resultobj; | |
10341 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10342 | int result; | |
10343 | PyObject * obj0 = 0 ; | |
10344 | char *kwnames[] = { | |
10345 | (char *) "self", NULL | |
10346 | }; | |
10347 | ||
10348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10351 | { | |
10352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10353 | result = (int)(arg1)->GetVMax(); | |
10354 | ||
10355 | wxPyEndAllowThreads(__tstate); | |
10356 | if (PyErr_Occurred()) SWIG_fail; | |
10357 | } | |
10358 | resultobj = SWIG_FromInt((int)result); | |
10359 | return resultobj; | |
10360 | fail: | |
10361 | return NULL; | |
10362 | } | |
10363 | ||
10364 | ||
10365 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10366 | PyObject *resultobj; | |
10367 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10368 | bool result; | |
10369 | PyObject * obj0 = 0 ; | |
10370 | char *kwnames[] = { | |
10371 | (char *) "self", NULL | |
10372 | }; | |
10373 | ||
10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10377 | { | |
10378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10379 | result = (bool)(arg1)->HasRudder(); | |
10380 | ||
10381 | wxPyEndAllowThreads(__tstate); | |
10382 | if (PyErr_Occurred()) SWIG_fail; | |
10383 | } | |
10384 | { | |
10385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10386 | } | |
10387 | return resultobj; | |
10388 | fail: | |
10389 | return NULL; | |
10390 | } | |
10391 | ||
10392 | ||
10393 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10394 | PyObject *resultobj; | |
10395 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10396 | bool result; | |
10397 | PyObject * obj0 = 0 ; | |
10398 | char *kwnames[] = { | |
10399 | (char *) "self", NULL | |
10400 | }; | |
10401 | ||
10402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10405 | { | |
10406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10407 | result = (bool)(arg1)->HasZ(); | |
10408 | ||
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
10412 | { | |
10413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10414 | } | |
10415 | return resultobj; | |
10416 | fail: | |
10417 | return NULL; | |
10418 | } | |
10419 | ||
10420 | ||
10421 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10422 | PyObject *resultobj; | |
10423 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10424 | bool result; | |
10425 | PyObject * obj0 = 0 ; | |
10426 | char *kwnames[] = { | |
10427 | (char *) "self", NULL | |
10428 | }; | |
10429 | ||
10430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10433 | { | |
10434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10435 | result = (bool)(arg1)->HasU(); | |
10436 | ||
10437 | wxPyEndAllowThreads(__tstate); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
10440 | { | |
10441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10442 | } | |
10443 | return resultobj; | |
10444 | fail: | |
10445 | return NULL; | |
10446 | } | |
10447 | ||
10448 | ||
10449 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10450 | PyObject *resultobj; | |
10451 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10452 | bool result; | |
10453 | PyObject * obj0 = 0 ; | |
10454 | char *kwnames[] = { | |
10455 | (char *) "self", NULL | |
10456 | }; | |
10457 | ||
10458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10461 | { | |
10462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10463 | result = (bool)(arg1)->HasV(); | |
10464 | ||
10465 | wxPyEndAllowThreads(__tstate); | |
10466 | if (PyErr_Occurred()) SWIG_fail; | |
10467 | } | |
10468 | { | |
10469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10470 | } | |
10471 | return resultobj; | |
10472 | fail: | |
10473 | return NULL; | |
10474 | } | |
10475 | ||
10476 | ||
10477 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10478 | PyObject *resultobj; | |
10479 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10480 | bool result; | |
10481 | PyObject * obj0 = 0 ; | |
10482 | char *kwnames[] = { | |
10483 | (char *) "self", NULL | |
10484 | }; | |
10485 | ||
10486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
10487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10489 | { | |
10490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10491 | result = (bool)(arg1)->HasPOV(); | |
10492 | ||
10493 | wxPyEndAllowThreads(__tstate); | |
10494 | if (PyErr_Occurred()) SWIG_fail; | |
10495 | } | |
10496 | { | |
10497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10498 | } | |
10499 | return resultobj; | |
10500 | fail: | |
10501 | return NULL; | |
10502 | } | |
10503 | ||
10504 | ||
10505 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10506 | PyObject *resultobj; | |
10507 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10508 | bool result; | |
10509 | PyObject * obj0 = 0 ; | |
10510 | char *kwnames[] = { | |
10511 | (char *) "self", NULL | |
10512 | }; | |
10513 | ||
10514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
10515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10517 | { | |
10518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10519 | result = (bool)(arg1)->HasPOV4Dir(); | |
10520 | ||
10521 | wxPyEndAllowThreads(__tstate); | |
10522 | if (PyErr_Occurred()) SWIG_fail; | |
10523 | } | |
10524 | { | |
10525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10526 | } | |
10527 | return resultobj; | |
10528 | fail: | |
10529 | return NULL; | |
10530 | } | |
10531 | ||
10532 | ||
10533 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10534 | PyObject *resultobj; | |
10535 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10536 | bool result; | |
10537 | PyObject * obj0 = 0 ; | |
10538 | char *kwnames[] = { | |
10539 | (char *) "self", NULL | |
10540 | }; | |
10541 | ||
10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
10543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10545 | { | |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | result = (bool)(arg1)->HasPOVCTS(); | |
10548 | ||
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | { | |
10553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10554 | } | |
10555 | return resultobj; | |
10556 | fail: | |
10557 | return NULL; | |
10558 | } | |
10559 | ||
10560 | ||
10561 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10562 | PyObject *resultobj; | |
10563 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10564 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10565 | int arg3 = (int) 0 ; | |
10566 | bool result; | |
10567 | PyObject * obj0 = 0 ; | |
10568 | PyObject * obj1 = 0 ; | |
10569 | PyObject * obj2 = 0 ; | |
10570 | char *kwnames[] = { | |
10571 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10572 | }; | |
10573 | ||
10574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10577 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10579 | if (obj2) { | |
10580 | arg3 = (int) SWIG_AsInt(obj2); | |
10581 | if (PyErr_Occurred()) SWIG_fail; | |
10582 | } | |
10583 | { | |
10584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10585 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10586 | ||
10587 | wxPyEndAllowThreads(__tstate); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
10590 | { | |
10591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10592 | } | |
10593 | return resultobj; | |
10594 | fail: | |
10595 | return NULL; | |
10596 | } | |
10597 | ||
10598 | ||
10599 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10600 | PyObject *resultobj; | |
10601 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10602 | bool result; | |
10603 | PyObject * obj0 = 0 ; | |
10604 | char *kwnames[] = { | |
10605 | (char *) "self", NULL | |
10606 | }; | |
10607 | ||
10608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
10609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10611 | { | |
10612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10613 | result = (bool)(arg1)->ReleaseCapture(); | |
10614 | ||
10615 | wxPyEndAllowThreads(__tstate); | |
10616 | if (PyErr_Occurred()) SWIG_fail; | |
10617 | } | |
10618 | { | |
10619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10620 | } | |
10621 | return resultobj; | |
10622 | fail: | |
10623 | return NULL; | |
10624 | } | |
10625 | ||
10626 | ||
10627 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10628 | PyObject *obj; | |
10629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10630 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10631 | Py_INCREF(obj); | |
10632 | return Py_BuildValue((char *)""); | |
10633 | } | |
10634 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10635 | PyObject *resultobj; | |
10636 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10637 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10638 | PyObject * obj0 = 0 ; | |
10639 | PyObject * obj1 = 0 ; | |
10640 | char *kwnames[] = { | |
10641 | (char *) "self",(char *) "m_pos", NULL | |
10642 | }; | |
10643 | ||
10644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
10645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10649 | if (arg1) (arg1)->m_pos = *arg2; | |
10650 | ||
10651 | Py_INCREF(Py_None); resultobj = Py_None; | |
10652 | return resultobj; | |
10653 | fail: | |
10654 | return NULL; | |
10655 | } | |
10656 | ||
10657 | ||
10658 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10659 | PyObject *resultobj; | |
10660 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10661 | wxPoint *result; | |
10662 | PyObject * obj0 = 0 ; | |
10663 | char *kwnames[] = { | |
10664 | (char *) "self", NULL | |
10665 | }; | |
10666 | ||
10667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
10668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10670 | result = (wxPoint *)& ((arg1)->m_pos); | |
10671 | ||
10672 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
10673 | return resultobj; | |
10674 | fail: | |
10675 | return NULL; | |
10676 | } | |
10677 | ||
10678 | ||
10679 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10680 | PyObject *resultobj; | |
10681 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10682 | int arg2 ; | |
10683 | PyObject * obj0 = 0 ; | |
10684 | PyObject * obj1 = 0 ; | |
10685 | char *kwnames[] = { | |
10686 | (char *) "self",(char *) "m_zPosition", NULL | |
10687 | }; | |
10688 | ||
10689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
10690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10692 | arg2 = (int) SWIG_AsInt(obj1); | |
10693 | if (PyErr_Occurred()) SWIG_fail; | |
10694 | if (arg1) (arg1)->m_zPosition = arg2; | |
10695 | ||
10696 | Py_INCREF(Py_None); resultobj = Py_None; | |
10697 | return resultobj; | |
10698 | fail: | |
10699 | return NULL; | |
10700 | } | |
10701 | ||
10702 | ||
10703 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10704 | PyObject *resultobj; | |
10705 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10706 | int result; | |
10707 | PyObject * obj0 = 0 ; | |
10708 | char *kwnames[] = { | |
10709 | (char *) "self", NULL | |
10710 | }; | |
10711 | ||
10712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
10713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10715 | result = (int) ((arg1)->m_zPosition); | |
10716 | ||
10717 | resultobj = SWIG_FromInt((int)result); | |
10718 | return resultobj; | |
10719 | fail: | |
10720 | return NULL; | |
10721 | } | |
10722 | ||
10723 | ||
10724 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10725 | PyObject *resultobj; | |
10726 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10727 | int arg2 ; | |
10728 | PyObject * obj0 = 0 ; | |
10729 | PyObject * obj1 = 0 ; | |
10730 | char *kwnames[] = { | |
10731 | (char *) "self",(char *) "m_buttonChange", NULL | |
10732 | }; | |
10733 | ||
10734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
10735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10737 | arg2 = (int) SWIG_AsInt(obj1); | |
10738 | if (PyErr_Occurred()) SWIG_fail; | |
10739 | if (arg1) (arg1)->m_buttonChange = arg2; | |
10740 | ||
10741 | Py_INCREF(Py_None); resultobj = Py_None; | |
10742 | return resultobj; | |
10743 | fail: | |
10744 | return NULL; | |
10745 | } | |
10746 | ||
10747 | ||
10748 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10749 | PyObject *resultobj; | |
10750 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10751 | int result; | |
10752 | PyObject * obj0 = 0 ; | |
10753 | char *kwnames[] = { | |
10754 | (char *) "self", NULL | |
10755 | }; | |
10756 | ||
10757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
10758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10760 | result = (int) ((arg1)->m_buttonChange); | |
10761 | ||
10762 | resultobj = SWIG_FromInt((int)result); | |
10763 | return resultobj; | |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
10769 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10770 | PyObject *resultobj; | |
10771 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10772 | int arg2 ; | |
10773 | PyObject * obj0 = 0 ; | |
10774 | PyObject * obj1 = 0 ; | |
10775 | char *kwnames[] = { | |
10776 | (char *) "self",(char *) "m_buttonState", NULL | |
10777 | }; | |
10778 | ||
10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
10780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10782 | arg2 = (int) SWIG_AsInt(obj1); | |
10783 | if (PyErr_Occurred()) SWIG_fail; | |
10784 | if (arg1) (arg1)->m_buttonState = arg2; | |
10785 | ||
10786 | Py_INCREF(Py_None); resultobj = Py_None; | |
10787 | return resultobj; | |
10788 | fail: | |
10789 | return NULL; | |
10790 | } | |
10791 | ||
10792 | ||
10793 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10794 | PyObject *resultobj; | |
10795 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10796 | int result; | |
10797 | PyObject * obj0 = 0 ; | |
10798 | char *kwnames[] = { | |
10799 | (char *) "self", NULL | |
10800 | }; | |
10801 | ||
10802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
10803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10805 | result = (int) ((arg1)->m_buttonState); | |
10806 | ||
10807 | resultobj = SWIG_FromInt((int)result); | |
10808 | return resultobj; | |
10809 | fail: | |
10810 | return NULL; | |
10811 | } | |
10812 | ||
10813 | ||
10814 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10815 | PyObject *resultobj; | |
10816 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10817 | int arg2 ; | |
10818 | PyObject * obj0 = 0 ; | |
10819 | PyObject * obj1 = 0 ; | |
10820 | char *kwnames[] = { | |
10821 | (char *) "self",(char *) "m_joyStick", NULL | |
10822 | }; | |
10823 | ||
10824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
10825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10827 | arg2 = (int) SWIG_AsInt(obj1); | |
10828 | if (PyErr_Occurred()) SWIG_fail; | |
10829 | if (arg1) (arg1)->m_joyStick = arg2; | |
10830 | ||
10831 | Py_INCREF(Py_None); resultobj = Py_None; | |
10832 | return resultobj; | |
10833 | fail: | |
10834 | return NULL; | |
10835 | } | |
10836 | ||
10837 | ||
10838 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10839 | PyObject *resultobj; | |
10840 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10841 | int result; | |
10842 | PyObject * obj0 = 0 ; | |
10843 | char *kwnames[] = { | |
10844 | (char *) "self", NULL | |
10845 | }; | |
10846 | ||
10847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
10848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10850 | result = (int) ((arg1)->m_joyStick); | |
10851 | ||
10852 | resultobj = SWIG_FromInt((int)result); | |
10853 | return resultobj; | |
10854 | fail: | |
10855 | return NULL; | |
10856 | } | |
10857 | ||
10858 | ||
10859 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10860 | PyObject *resultobj; | |
10861 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10862 | int arg2 = (int) 0 ; | |
10863 | int arg3 = (int) wxJOYSTICK1 ; | |
10864 | int arg4 = (int) 0 ; | |
10865 | wxJoystickEvent *result; | |
10866 | PyObject * obj0 = 0 ; | |
10867 | PyObject * obj1 = 0 ; | |
10868 | PyObject * obj2 = 0 ; | |
10869 | PyObject * obj3 = 0 ; | |
10870 | char *kwnames[] = { | |
10871 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10872 | }; | |
10873 | ||
10874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10875 | if (obj0) { | |
10876 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
10877 | if (PyErr_Occurred()) SWIG_fail; | |
10878 | } | |
10879 | if (obj1) { | |
10880 | arg2 = (int) SWIG_AsInt(obj1); | |
10881 | if (PyErr_Occurred()) SWIG_fail; | |
10882 | } | |
10883 | if (obj2) { | |
10884 | arg3 = (int) SWIG_AsInt(obj2); | |
10885 | if (PyErr_Occurred()) SWIG_fail; | |
10886 | } | |
10887 | if (obj3) { | |
10888 | arg4 = (int) SWIG_AsInt(obj3); | |
10889 | if (PyErr_Occurred()) SWIG_fail; | |
10890 | } | |
10891 | { | |
10892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10893 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10894 | ||
10895 | wxPyEndAllowThreads(__tstate); | |
10896 | if (PyErr_Occurred()) SWIG_fail; | |
10897 | } | |
10898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
10899 | return resultobj; | |
10900 | fail: | |
10901 | return NULL; | |
10902 | } | |
10903 | ||
10904 | ||
10905 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10906 | PyObject *resultobj; | |
10907 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10908 | wxPoint result; | |
10909 | PyObject * obj0 = 0 ; | |
10910 | char *kwnames[] = { | |
10911 | (char *) "self", NULL | |
10912 | }; | |
10913 | ||
10914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10917 | { | |
10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10919 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10920 | ||
10921 | wxPyEndAllowThreads(__tstate); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | { | |
10925 | wxPoint * resultptr; | |
10926 | resultptr = new wxPoint((wxPoint &) result); | |
10927 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10928 | } | |
10929 | return resultobj; | |
10930 | fail: | |
10931 | return NULL; | |
10932 | } | |
10933 | ||
10934 | ||
10935 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10936 | PyObject *resultobj; | |
10937 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10938 | int result; | |
10939 | PyObject * obj0 = 0 ; | |
10940 | char *kwnames[] = { | |
10941 | (char *) "self", NULL | |
10942 | }; | |
10943 | ||
10944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
10945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10947 | { | |
10948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10949 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10950 | ||
10951 | wxPyEndAllowThreads(__tstate); | |
10952 | if (PyErr_Occurred()) SWIG_fail; | |
10953 | } | |
10954 | resultobj = SWIG_FromInt((int)result); | |
10955 | return resultobj; | |
10956 | fail: | |
10957 | return NULL; | |
10958 | } | |
10959 | ||
10960 | ||
10961 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10962 | PyObject *resultobj; | |
10963 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10964 | int result; | |
10965 | PyObject * obj0 = 0 ; | |
10966 | char *kwnames[] = { | |
10967 | (char *) "self", NULL | |
10968 | }; | |
10969 | ||
10970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
10971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10973 | { | |
10974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10975 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10976 | ||
10977 | wxPyEndAllowThreads(__tstate); | |
10978 | if (PyErr_Occurred()) SWIG_fail; | |
10979 | } | |
10980 | resultobj = SWIG_FromInt((int)result); | |
10981 | return resultobj; | |
10982 | fail: | |
10983 | return NULL; | |
10984 | } | |
10985 | ||
10986 | ||
10987 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10988 | PyObject *resultobj; | |
10989 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10990 | int result; | |
10991 | PyObject * obj0 = 0 ; | |
10992 | char *kwnames[] = { | |
10993 | (char *) "self", NULL | |
10994 | }; | |
10995 | ||
10996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
10997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10999 | { | |
11000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11001 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11002 | ||
11003 | wxPyEndAllowThreads(__tstate); | |
11004 | if (PyErr_Occurred()) SWIG_fail; | |
11005 | } | |
11006 | resultobj = SWIG_FromInt((int)result); | |
11007 | return resultobj; | |
11008 | fail: | |
11009 | return NULL; | |
11010 | } | |
11011 | ||
11012 | ||
11013 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11014 | PyObject *resultobj; | |
11015 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11016 | int result; | |
11017 | PyObject * obj0 = 0 ; | |
11018 | char *kwnames[] = { | |
11019 | (char *) "self", NULL | |
11020 | }; | |
11021 | ||
11022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11025 | { | |
11026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11027 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11028 | ||
11029 | wxPyEndAllowThreads(__tstate); | |
11030 | if (PyErr_Occurred()) SWIG_fail; | |
11031 | } | |
11032 | resultobj = SWIG_FromInt((int)result); | |
11033 | return resultobj; | |
11034 | fail: | |
11035 | return NULL; | |
11036 | } | |
11037 | ||
11038 | ||
11039 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11040 | PyObject *resultobj; | |
11041 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11042 | int arg2 ; | |
11043 | PyObject * obj0 = 0 ; | |
11044 | PyObject * obj1 = 0 ; | |
11045 | char *kwnames[] = { | |
11046 | (char *) "self",(char *) "stick", NULL | |
11047 | }; | |
11048 | ||
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11052 | arg2 = (int) SWIG_AsInt(obj1); | |
11053 | if (PyErr_Occurred()) SWIG_fail; | |
11054 | { | |
11055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11056 | (arg1)->SetJoystick(arg2); | |
11057 | ||
11058 | wxPyEndAllowThreads(__tstate); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | Py_INCREF(Py_None); resultobj = Py_None; | |
11062 | return resultobj; | |
11063 | fail: | |
11064 | return NULL; | |
11065 | } | |
11066 | ||
11067 | ||
11068 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11069 | PyObject *resultobj; | |
11070 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11071 | int arg2 ; | |
11072 | PyObject * obj0 = 0 ; | |
11073 | PyObject * obj1 = 0 ; | |
11074 | char *kwnames[] = { | |
11075 | (char *) "self",(char *) "state", NULL | |
11076 | }; | |
11077 | ||
11078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11081 | arg2 = (int) SWIG_AsInt(obj1); | |
11082 | if (PyErr_Occurred()) SWIG_fail; | |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | (arg1)->SetButtonState(arg2); | |
11086 | ||
11087 | wxPyEndAllowThreads(__tstate); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | } | |
11090 | Py_INCREF(Py_None); resultobj = Py_None; | |
11091 | return resultobj; | |
11092 | fail: | |
11093 | return NULL; | |
11094 | } | |
11095 | ||
11096 | ||
11097 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11098 | PyObject *resultobj; | |
11099 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11100 | int arg2 ; | |
11101 | PyObject * obj0 = 0 ; | |
11102 | PyObject * obj1 = 0 ; | |
11103 | char *kwnames[] = { | |
11104 | (char *) "self",(char *) "change", NULL | |
11105 | }; | |
11106 | ||
11107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11110 | arg2 = (int) SWIG_AsInt(obj1); | |
11111 | if (PyErr_Occurred()) SWIG_fail; | |
11112 | { | |
11113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11114 | (arg1)->SetButtonChange(arg2); | |
11115 | ||
11116 | wxPyEndAllowThreads(__tstate); | |
11117 | if (PyErr_Occurred()) SWIG_fail; | |
11118 | } | |
11119 | Py_INCREF(Py_None); resultobj = Py_None; | |
11120 | return resultobj; | |
11121 | fail: | |
11122 | return NULL; | |
11123 | } | |
11124 | ||
11125 | ||
11126 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11127 | PyObject *resultobj; | |
11128 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11129 | wxPoint *arg2 = 0 ; | |
11130 | wxPoint temp2 ; | |
11131 | PyObject * obj0 = 0 ; | |
11132 | PyObject * obj1 = 0 ; | |
11133 | char *kwnames[] = { | |
11134 | (char *) "self",(char *) "pos", NULL | |
11135 | }; | |
11136 | ||
11137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11140 | { | |
11141 | arg2 = &temp2; | |
11142 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11143 | } | |
11144 | { | |
11145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11146 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11147 | ||
11148 | wxPyEndAllowThreads(__tstate); | |
11149 | if (PyErr_Occurred()) SWIG_fail; | |
11150 | } | |
11151 | Py_INCREF(Py_None); resultobj = Py_None; | |
11152 | return resultobj; | |
11153 | fail: | |
11154 | return NULL; | |
11155 | } | |
11156 | ||
11157 | ||
11158 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11159 | PyObject *resultobj; | |
11160 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11161 | int arg2 ; | |
11162 | PyObject * obj0 = 0 ; | |
11163 | PyObject * obj1 = 0 ; | |
11164 | char *kwnames[] = { | |
11165 | (char *) "self",(char *) "zPos", NULL | |
11166 | }; | |
11167 | ||
11168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11171 | arg2 = (int) SWIG_AsInt(obj1); | |
11172 | if (PyErr_Occurred()) SWIG_fail; | |
11173 | { | |
11174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11175 | (arg1)->SetZPosition(arg2); | |
11176 | ||
11177 | wxPyEndAllowThreads(__tstate); | |
11178 | if (PyErr_Occurred()) SWIG_fail; | |
11179 | } | |
11180 | Py_INCREF(Py_None); resultobj = Py_None; | |
11181 | return resultobj; | |
11182 | fail: | |
11183 | return NULL; | |
11184 | } | |
11185 | ||
11186 | ||
11187 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11188 | PyObject *resultobj; | |
11189 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11190 | bool result; | |
11191 | PyObject * obj0 = 0 ; | |
11192 | char *kwnames[] = { | |
11193 | (char *) "self", NULL | |
11194 | }; | |
11195 | ||
11196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11199 | { | |
11200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11201 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11202 | ||
11203 | wxPyEndAllowThreads(__tstate); | |
11204 | if (PyErr_Occurred()) SWIG_fail; | |
11205 | } | |
11206 | { | |
11207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11208 | } | |
11209 | return resultobj; | |
11210 | fail: | |
11211 | return NULL; | |
11212 | } | |
11213 | ||
11214 | ||
11215 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11216 | PyObject *resultobj; | |
11217 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11218 | bool result; | |
11219 | PyObject * obj0 = 0 ; | |
11220 | char *kwnames[] = { | |
11221 | (char *) "self", NULL | |
11222 | }; | |
11223 | ||
11224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11227 | { | |
11228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11229 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11230 | ||
11231 | wxPyEndAllowThreads(__tstate); | |
11232 | if (PyErr_Occurred()) SWIG_fail; | |
11233 | } | |
11234 | { | |
11235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11236 | } | |
11237 | return resultobj; | |
11238 | fail: | |
11239 | return NULL; | |
11240 | } | |
11241 | ||
11242 | ||
11243 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11244 | PyObject *resultobj; | |
11245 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11246 | bool result; | |
11247 | PyObject * obj0 = 0 ; | |
11248 | char *kwnames[] = { | |
11249 | (char *) "self", NULL | |
11250 | }; | |
11251 | ||
11252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11255 | { | |
11256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11257 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11258 | ||
11259 | wxPyEndAllowThreads(__tstate); | |
11260 | if (PyErr_Occurred()) SWIG_fail; | |
11261 | } | |
11262 | { | |
11263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11264 | } | |
11265 | return resultobj; | |
11266 | fail: | |
11267 | return NULL; | |
11268 | } | |
11269 | ||
11270 | ||
11271 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11272 | PyObject *resultobj; | |
11273 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11274 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11275 | bool result; | |
11276 | PyObject * obj0 = 0 ; | |
11277 | PyObject * obj1 = 0 ; | |
11278 | char *kwnames[] = { | |
11279 | (char *) "self",(char *) "but", NULL | |
11280 | }; | |
11281 | ||
11282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11285 | if (obj1) { | |
11286 | arg2 = (int) SWIG_AsInt(obj1); | |
11287 | if (PyErr_Occurred()) SWIG_fail; | |
11288 | } | |
11289 | { | |
11290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11291 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11292 | ||
11293 | wxPyEndAllowThreads(__tstate); | |
11294 | if (PyErr_Occurred()) SWIG_fail; | |
11295 | } | |
11296 | { | |
11297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11298 | } | |
11299 | return resultobj; | |
11300 | fail: | |
11301 | return NULL; | |
11302 | } | |
11303 | ||
11304 | ||
11305 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11306 | PyObject *resultobj; | |
11307 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11308 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11309 | bool result; | |
11310 | PyObject * obj0 = 0 ; | |
11311 | PyObject * obj1 = 0 ; | |
11312 | char *kwnames[] = { | |
11313 | (char *) "self",(char *) "but", NULL | |
11314 | }; | |
11315 | ||
11316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11319 | if (obj1) { | |
11320 | arg2 = (int) SWIG_AsInt(obj1); | |
11321 | if (PyErr_Occurred()) SWIG_fail; | |
11322 | } | |
11323 | { | |
11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11325 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11326 | ||
11327 | wxPyEndAllowThreads(__tstate); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | } | |
11330 | { | |
11331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11332 | } | |
11333 | return resultobj; | |
11334 | fail: | |
11335 | return NULL; | |
11336 | } | |
11337 | ||
11338 | ||
11339 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11340 | PyObject *resultobj; | |
11341 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11342 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11343 | bool result; | |
11344 | PyObject * obj0 = 0 ; | |
11345 | PyObject * obj1 = 0 ; | |
11346 | char *kwnames[] = { | |
11347 | (char *) "self",(char *) "but", NULL | |
11348 | }; | |
11349 | ||
11350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11353 | if (obj1) { | |
11354 | arg2 = (int) SWIG_AsInt(obj1); | |
11355 | if (PyErr_Occurred()) SWIG_fail; | |
11356 | } | |
11357 | { | |
11358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11359 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11360 | ||
11361 | wxPyEndAllowThreads(__tstate); | |
11362 | if (PyErr_Occurred()) SWIG_fail; | |
11363 | } | |
11364 | { | |
11365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11366 | } | |
11367 | return resultobj; | |
11368 | fail: | |
11369 | return NULL; | |
11370 | } | |
11371 | ||
11372 | ||
11373 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11374 | PyObject *obj; | |
11375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11376 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11377 | Py_INCREF(obj); | |
11378 | return Py_BuildValue((char *)""); | |
11379 | } | |
11380 | static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) { | |
11381 | PyObject *resultobj; | |
11382 | wxSound *result; | |
11383 | ||
11384 | if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail; | |
11385 | { | |
11386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11387 | result = (wxSound *)new wxSound(); | |
11388 | ||
11389 | wxPyEndAllowThreads(__tstate); | |
11390 | if (PyErr_Occurred()) SWIG_fail; | |
11391 | } | |
11392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11393 | return resultobj; | |
11394 | fail: | |
11395 | return NULL; | |
11396 | } | |
11397 | ||
11398 | ||
11399 | static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) { | |
11400 | PyObject *resultobj; | |
11401 | wxString *arg1 = 0 ; | |
11402 | bool arg2 = (bool) false ; | |
11403 | wxSound *result; | |
11404 | bool temp1 = False ; | |
11405 | PyObject * obj0 = 0 ; | |
11406 | PyObject * obj1 = 0 ; | |
11407 | ||
11408 | if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail; | |
11409 | { | |
11410 | arg1 = wxString_in_helper(obj0); | |
11411 | if (arg1 == NULL) SWIG_fail; | |
11412 | temp1 = True; | |
11413 | } | |
11414 | if (obj1) { | |
11415 | arg2 = (bool) SWIG_AsBool(obj1); | |
11416 | if (PyErr_Occurred()) SWIG_fail; | |
11417 | } | |
11418 | { | |
11419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11420 | result = (wxSound *)new wxSound((wxString const &)*arg1,arg2); | |
11421 | ||
11422 | wxPyEndAllowThreads(__tstate); | |
11423 | if (PyErr_Occurred()) SWIG_fail; | |
11424 | } | |
11425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11426 | { | |
11427 | if (temp1) | |
11428 | delete arg1; | |
11429 | } | |
11430 | return resultobj; | |
11431 | fail: | |
11432 | { | |
11433 | if (temp1) | |
11434 | delete arg1; | |
11435 | } | |
11436 | return NULL; | |
11437 | } | |
11438 | ||
11439 | ||
11440 | static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) { | |
11441 | PyObject *resultobj; | |
11442 | int arg1 ; | |
11443 | wxByte *arg2 = (wxByte *) 0 ; | |
11444 | wxSound *result; | |
11445 | PyObject * obj0 = 0 ; | |
11446 | PyObject * obj1 = 0 ; | |
11447 | ||
11448 | if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail; | |
11449 | arg1 = (int) SWIG_AsInt(obj0); | |
11450 | if (PyErr_Occurred()) SWIG_fail; | |
11451 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte, | |
11452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11453 | { | |
11454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11455 | result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2); | |
11456 | ||
11457 | wxPyEndAllowThreads(__tstate); | |
11458 | if (PyErr_Occurred()) SWIG_fail; | |
11459 | } | |
11460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11461 | return resultobj; | |
11462 | fail: | |
11463 | return NULL; | |
11464 | } | |
11465 | ||
11466 | ||
11467 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) { | |
11468 | int argc; | |
11469 | PyObject *argv[3]; | |
11470 | int ii; | |
11471 | ||
11472 | argc = PyObject_Length(args); | |
11473 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
11474 | argv[ii] = PyTuple_GetItem(args,ii); | |
11475 | } | |
11476 | if (argc == 0) { | |
11477 | return _wrap_new_Sound__SWIG_0(self,args); | |
11478 | } | |
11479 | if ((argc >= 1) && (argc <= 2)) { | |
11480 | int _v; | |
11481 | { | |
11482 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
11483 | } | |
11484 | if (_v) { | |
11485 | if (argc <= 1) { | |
11486 | return _wrap_new_Sound__SWIG_1(self,args); | |
11487 | } | |
11488 | _v = SWIG_CheckBool(argv[1]); | |
11489 | if (_v) { | |
11490 | return _wrap_new_Sound__SWIG_1(self,args); | |
11491 | } | |
11492 | } | |
11493 | } | |
11494 | if (argc == 2) { | |
11495 | int _v; | |
11496 | _v = SWIG_CheckInt(argv[0]); | |
11497 | if (_v) { | |
11498 | { | |
11499 | void *ptr; | |
11500 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { | |
11501 | _v = 0; | |
11502 | PyErr_Clear(); | |
11503 | } else { | |
11504 | _v = 1; | |
11505 | } | |
11506 | } | |
11507 | if (_v) { | |
11508 | return _wrap_new_Sound__SWIG_2(self,args); | |
11509 | } | |
11510 | } | |
11511 | } | |
11512 | ||
11513 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'"); | |
11514 | return NULL; | |
11515 | } | |
11516 | ||
11517 | ||
11518 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11519 | PyObject *resultobj; | |
11520 | wxSound *arg1 = (wxSound *) 0 ; | |
11521 | PyObject * obj0 = 0 ; | |
11522 | char *kwnames[] = { | |
11523 | (char *) "self", NULL | |
11524 | }; | |
11525 | ||
11526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
11527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11529 | { | |
11530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11531 | delete arg1; | |
11532 | ||
11533 | wxPyEndAllowThreads(__tstate); | |
11534 | if (PyErr_Occurred()) SWIG_fail; | |
11535 | } | |
11536 | Py_INCREF(Py_None); resultobj = Py_None; | |
11537 | return resultobj; | |
11538 | fail: | |
11539 | return NULL; | |
11540 | } | |
11541 | ||
11542 | ||
11543 | static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) { | |
11544 | PyObject *resultobj; | |
11545 | wxSound *arg1 = (wxSound *) 0 ; | |
11546 | wxString *arg2 = 0 ; | |
11547 | bool arg3 = (bool) false ; | |
11548 | bool result; | |
11549 | bool temp2 = False ; | |
11550 | PyObject * obj0 = 0 ; | |
11551 | PyObject * obj1 = 0 ; | |
11552 | PyObject * obj2 = 0 ; | |
11553 | ||
11554 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail; | |
11555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11557 | { | |
11558 | arg2 = wxString_in_helper(obj1); | |
11559 | if (arg2 == NULL) SWIG_fail; | |
11560 | temp2 = True; | |
11561 | } | |
11562 | if (obj2) { | |
11563 | arg3 = (bool) SWIG_AsBool(obj2); | |
11564 | if (PyErr_Occurred()) SWIG_fail; | |
11565 | } | |
11566 | { | |
11567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11568 | result = (bool)(arg1)->Create((wxString const &)*arg2,arg3); | |
11569 | ||
11570 | wxPyEndAllowThreads(__tstate); | |
11571 | if (PyErr_Occurred()) SWIG_fail; | |
11572 | } | |
11573 | { | |
11574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11575 | } | |
11576 | { | |
11577 | if (temp2) | |
11578 | delete arg2; | |
11579 | } | |
11580 | return resultobj; | |
11581 | fail: | |
11582 | { | |
11583 | if (temp2) | |
11584 | delete arg2; | |
11585 | } | |
11586 | return NULL; | |
11587 | } | |
11588 | ||
11589 | ||
11590 | static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) { | |
11591 | PyObject *resultobj; | |
11592 | wxSound *arg1 = (wxSound *) 0 ; | |
11593 | int arg2 ; | |
11594 | wxByte *arg3 = (wxByte *) 0 ; | |
11595 | bool result; | |
11596 | PyObject * obj0 = 0 ; | |
11597 | PyObject * obj1 = 0 ; | |
11598 | PyObject * obj2 = 0 ; | |
11599 | ||
11600 | if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail; | |
11601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11603 | arg2 = (int) SWIG_AsInt(obj1); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte, | |
11606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11607 | { | |
11608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11609 | result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3); | |
11610 | ||
11611 | wxPyEndAllowThreads(__tstate); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | } | |
11614 | { | |
11615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11616 | } | |
11617 | return resultobj; | |
11618 | fail: | |
11619 | return NULL; | |
11620 | } | |
11621 | ||
11622 | ||
11623 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) { | |
11624 | int argc; | |
11625 | PyObject *argv[4]; | |
11626 | int ii; | |
11627 | ||
11628 | argc = PyObject_Length(args); | |
11629 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
11630 | argv[ii] = PyTuple_GetItem(args,ii); | |
11631 | } | |
11632 | if ((argc >= 2) && (argc <= 3)) { | |
11633 | int _v; | |
11634 | { | |
11635 | void *ptr; | |
11636 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { | |
11637 | _v = 0; | |
11638 | PyErr_Clear(); | |
11639 | } else { | |
11640 | _v = 1; | |
11641 | } | |
11642 | } | |
11643 | if (_v) { | |
11644 | { | |
11645 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
11646 | } | |
11647 | if (_v) { | |
11648 | if (argc <= 2) { | |
11649 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11650 | } | |
11651 | _v = SWIG_CheckBool(argv[2]); | |
11652 | if (_v) { | |
11653 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11654 | } | |
11655 | } | |
11656 | } | |
11657 | } | |
11658 | if (argc == 3) { | |
11659 | int _v; | |
11660 | { | |
11661 | void *ptr; | |
11662 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { | |
11663 | _v = 0; | |
11664 | PyErr_Clear(); | |
11665 | } else { | |
11666 | _v = 1; | |
11667 | } | |
11668 | } | |
11669 | if (_v) { | |
11670 | _v = SWIG_CheckInt(argv[1]); | |
11671 | if (_v) { | |
11672 | { | |
11673 | void *ptr; | |
11674 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { | |
11675 | _v = 0; | |
11676 | PyErr_Clear(); | |
11677 | } else { | |
11678 | _v = 1; | |
11679 | } | |
11680 | } | |
11681 | if (_v) { | |
11682 | return _wrap_Sound_Create__SWIG_1(self,args); | |
11683 | } | |
11684 | } | |
11685 | } | |
11686 | } | |
11687 | ||
11688 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'"); | |
11689 | return NULL; | |
11690 | } | |
11691 | ||
11692 | ||
11693 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11694 | PyObject *resultobj; | |
11695 | wxSound *arg1 = (wxSound *) 0 ; | |
11696 | bool result; | |
11697 | PyObject * obj0 = 0 ; | |
11698 | char *kwnames[] = { | |
11699 | (char *) "self", NULL | |
11700 | }; | |
11701 | ||
11702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
11703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11705 | { | |
11706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11707 | result = (bool)(arg1)->IsOk(); | |
11708 | ||
11709 | wxPyEndAllowThreads(__tstate); | |
11710 | if (PyErr_Occurred()) SWIG_fail; | |
11711 | } | |
11712 | { | |
11713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11714 | } | |
11715 | return resultobj; | |
11716 | fail: | |
11717 | return NULL; | |
11718 | } | |
11719 | ||
11720 | ||
11721 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) { | |
11722 | PyObject *resultobj; | |
11723 | wxSound *arg1 = (wxSound *) 0 ; | |
11724 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11725 | bool result; | |
11726 | PyObject * obj0 = 0 ; | |
11727 | PyObject * obj1 = 0 ; | |
11728 | ||
11729 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail; | |
11730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11732 | if (obj1) { | |
11733 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11734 | if (PyErr_Occurred()) SWIG_fail; | |
11735 | } | |
11736 | { | |
11737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11738 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11739 | ||
11740 | wxPyEndAllowThreads(__tstate); | |
11741 | if (PyErr_Occurred()) SWIG_fail; | |
11742 | } | |
11743 | { | |
11744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11745 | } | |
11746 | return resultobj; | |
11747 | fail: | |
11748 | return NULL; | |
11749 | } | |
11750 | ||
11751 | ||
11752 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) { | |
11753 | PyObject *resultobj; | |
11754 | wxString *arg1 = 0 ; | |
11755 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11756 | bool result; | |
11757 | bool temp1 = False ; | |
11758 | PyObject * obj0 = 0 ; | |
11759 | PyObject * obj1 = 0 ; | |
11760 | ||
11761 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail; | |
11762 | { | |
11763 | arg1 = wxString_in_helper(obj0); | |
11764 | if (arg1 == NULL) SWIG_fail; | |
11765 | temp1 = True; | |
11766 | } | |
11767 | if (obj1) { | |
11768 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11769 | if (PyErr_Occurred()) SWIG_fail; | |
11770 | } | |
11771 | { | |
11772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11773 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
11774 | ||
11775 | wxPyEndAllowThreads(__tstate); | |
11776 | if (PyErr_Occurred()) SWIG_fail; | |
11777 | } | |
11778 | { | |
11779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11780 | } | |
11781 | { | |
11782 | if (temp1) | |
11783 | delete arg1; | |
11784 | } | |
11785 | return resultobj; | |
11786 | fail: | |
11787 | { | |
11788 | if (temp1) | |
11789 | delete arg1; | |
11790 | } | |
11791 | return NULL; | |
11792 | } | |
11793 | ||
11794 | ||
11795 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11796 | PyObject *resultobj; | |
11797 | char *kwnames[] = { | |
11798 | NULL | |
11799 | }; | |
11800 | ||
11801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11802 | { | |
11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11804 | wxSound::Stop(); | |
11805 | ||
11806 | wxPyEndAllowThreads(__tstate); | |
11807 | if (PyErr_Occurred()) SWIG_fail; | |
11808 | } | |
11809 | Py_INCREF(Py_None); resultobj = Py_None; | |
11810 | return resultobj; | |
11811 | fail: | |
11812 | return NULL; | |
11813 | } | |
11814 | ||
11815 | ||
11816 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
11817 | PyObject *obj; | |
11818 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11819 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
11820 | Py_INCREF(obj); | |
11821 | return Py_BuildValue((char *)""); | |
11822 | } | |
11823 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11824 | PyObject *resultobj; | |
11825 | wxString *arg1 = 0 ; | |
11826 | wxString *arg2 = 0 ; | |
11827 | wxString *arg3 = 0 ; | |
11828 | wxString *arg4 = 0 ; | |
11829 | wxFileTypeInfo *result; | |
11830 | bool temp1 = False ; | |
11831 | bool temp2 = False ; | |
11832 | bool temp3 = False ; | |
11833 | bool temp4 = False ; | |
11834 | PyObject * obj0 = 0 ; | |
11835 | PyObject * obj1 = 0 ; | |
11836 | PyObject * obj2 = 0 ; | |
11837 | PyObject * obj3 = 0 ; | |
11838 | char *kwnames[] = { | |
11839 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11840 | }; | |
11841 | ||
11842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11843 | { | |
11844 | arg1 = wxString_in_helper(obj0); | |
11845 | if (arg1 == NULL) SWIG_fail; | |
11846 | temp1 = True; | |
11847 | } | |
11848 | { | |
11849 | arg2 = wxString_in_helper(obj1); | |
11850 | if (arg2 == NULL) SWIG_fail; | |
11851 | temp2 = True; | |
11852 | } | |
11853 | { | |
11854 | arg3 = wxString_in_helper(obj2); | |
11855 | if (arg3 == NULL) SWIG_fail; | |
11856 | temp3 = True; | |
11857 | } | |
11858 | { | |
11859 | arg4 = wxString_in_helper(obj3); | |
11860 | if (arg4 == NULL) SWIG_fail; | |
11861 | temp4 = True; | |
11862 | } | |
11863 | { | |
11864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11865 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11866 | ||
11867 | wxPyEndAllowThreads(__tstate); | |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
11869 | } | |
11870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11871 | { | |
11872 | if (temp1) | |
11873 | delete arg1; | |
11874 | } | |
11875 | { | |
11876 | if (temp2) | |
11877 | delete arg2; | |
11878 | } | |
11879 | { | |
11880 | if (temp3) | |
11881 | delete arg3; | |
11882 | } | |
11883 | { | |
11884 | if (temp4) | |
11885 | delete arg4; | |
11886 | } | |
11887 | return resultobj; | |
11888 | fail: | |
11889 | { | |
11890 | if (temp1) | |
11891 | delete arg1; | |
11892 | } | |
11893 | { | |
11894 | if (temp2) | |
11895 | delete arg2; | |
11896 | } | |
11897 | { | |
11898 | if (temp3) | |
11899 | delete arg3; | |
11900 | } | |
11901 | { | |
11902 | if (temp4) | |
11903 | delete arg4; | |
11904 | } | |
11905 | return NULL; | |
11906 | } | |
11907 | ||
11908 | ||
11909 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11910 | PyObject *resultobj; | |
11911 | wxArrayString *arg1 = 0 ; | |
11912 | wxFileTypeInfo *result; | |
11913 | bool temp1 = False ; | |
11914 | PyObject * obj0 = 0 ; | |
11915 | char *kwnames[] = { | |
11916 | (char *) "sArray", NULL | |
11917 | }; | |
11918 | ||
11919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11920 | { | |
11921 | if (! PySequence_Check(obj0)) { | |
11922 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11923 | SWIG_fail; | |
11924 | } | |
11925 | arg1 = new wxArrayString; | |
11926 | temp1 = True; | |
11927 | int i, len=PySequence_Length(obj0); | |
11928 | for (i=0; i<len; i++) { | |
11929 | PyObject* item = PySequence_GetItem(obj0, i); | |
11930 | #if wxUSE_UNICODE | |
11931 | PyObject* str = PyObject_Unicode(item); | |
11932 | #else | |
11933 | PyObject* str = PyObject_Str(item); | |
11934 | #endif | |
11935 | if (PyErr_Occurred()) SWIG_fail; | |
11936 | arg1->Add(Py2wxString(str)); | |
11937 | Py_DECREF(item); | |
11938 | Py_DECREF(str); | |
11939 | } | |
11940 | } | |
11941 | { | |
11942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11943 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11944 | ||
11945 | wxPyEndAllowThreads(__tstate); | |
11946 | if (PyErr_Occurred()) SWIG_fail; | |
11947 | } | |
11948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11949 | { | |
11950 | if (temp1) delete arg1; | |
11951 | } | |
11952 | return resultobj; | |
11953 | fail: | |
11954 | { | |
11955 | if (temp1) delete arg1; | |
11956 | } | |
11957 | return NULL; | |
11958 | } | |
11959 | ||
11960 | ||
11961 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11962 | PyObject *resultobj; | |
11963 | wxFileTypeInfo *result; | |
11964 | char *kwnames[] = { | |
11965 | NULL | |
11966 | }; | |
11967 | ||
11968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11969 | { | |
11970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11971 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11972 | ||
11973 | wxPyEndAllowThreads(__tstate); | |
11974 | if (PyErr_Occurred()) SWIG_fail; | |
11975 | } | |
11976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11977 | return resultobj; | |
11978 | fail: | |
11979 | return NULL; | |
11980 | } | |
11981 | ||
11982 | ||
11983 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11984 | PyObject *resultobj; | |
11985 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11986 | bool result; | |
11987 | PyObject * obj0 = 0 ; | |
11988 | char *kwnames[] = { | |
11989 | (char *) "self", NULL | |
11990 | }; | |
11991 | ||
11992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
11993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
11994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11995 | { | |
11996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11997 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
11998 | ||
11999 | wxPyEndAllowThreads(__tstate); | |
12000 | if (PyErr_Occurred()) SWIG_fail; | |
12001 | } | |
12002 | { | |
12003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12004 | } | |
12005 | return resultobj; | |
12006 | fail: | |
12007 | return NULL; | |
12008 | } | |
12009 | ||
12010 | ||
12011 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12012 | PyObject *resultobj; | |
12013 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12014 | wxString *arg2 = 0 ; | |
12015 | int arg3 = (int) 0 ; | |
12016 | bool temp2 = False ; | |
12017 | PyObject * obj0 = 0 ; | |
12018 | PyObject * obj1 = 0 ; | |
12019 | PyObject * obj2 = 0 ; | |
12020 | char *kwnames[] = { | |
12021 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12022 | }; | |
12023 | ||
12024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12027 | { | |
12028 | arg2 = wxString_in_helper(obj1); | |
12029 | if (arg2 == NULL) SWIG_fail; | |
12030 | temp2 = True; | |
12031 | } | |
12032 | if (obj2) { | |
12033 | arg3 = (int) SWIG_AsInt(obj2); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | } | |
12036 | { | |
12037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12038 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12039 | ||
12040 | wxPyEndAllowThreads(__tstate); | |
12041 | if (PyErr_Occurred()) SWIG_fail; | |
12042 | } | |
12043 | Py_INCREF(Py_None); resultobj = Py_None; | |
12044 | { | |
12045 | if (temp2) | |
12046 | delete arg2; | |
12047 | } | |
12048 | return resultobj; | |
12049 | fail: | |
12050 | { | |
12051 | if (temp2) | |
12052 | delete arg2; | |
12053 | } | |
12054 | return NULL; | |
12055 | } | |
12056 | ||
12057 | ||
12058 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12059 | PyObject *resultobj; | |
12060 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12061 | wxString *arg2 = 0 ; | |
12062 | bool temp2 = False ; | |
12063 | PyObject * obj0 = 0 ; | |
12064 | PyObject * obj1 = 0 ; | |
12065 | char *kwnames[] = { | |
12066 | (char *) "self",(char *) "shortDesc", NULL | |
12067 | }; | |
12068 | ||
12069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12072 | { | |
12073 | arg2 = wxString_in_helper(obj1); | |
12074 | if (arg2 == NULL) SWIG_fail; | |
12075 | temp2 = True; | |
12076 | } | |
12077 | { | |
12078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12079 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12080 | ||
12081 | wxPyEndAllowThreads(__tstate); | |
12082 | if (PyErr_Occurred()) SWIG_fail; | |
12083 | } | |
12084 | Py_INCREF(Py_None); resultobj = Py_None; | |
12085 | { | |
12086 | if (temp2) | |
12087 | delete arg2; | |
12088 | } | |
12089 | return resultobj; | |
12090 | fail: | |
12091 | { | |
12092 | if (temp2) | |
12093 | delete arg2; | |
12094 | } | |
12095 | return NULL; | |
12096 | } | |
12097 | ||
12098 | ||
12099 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12100 | PyObject *resultobj; | |
12101 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12102 | wxString *result; | |
12103 | PyObject * obj0 = 0 ; | |
12104 | char *kwnames[] = { | |
12105 | (char *) "self", NULL | |
12106 | }; | |
12107 | ||
12108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12111 | { | |
12112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12113 | { | |
12114 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12115 | result = (wxString *) &_result_ref; | |
12116 | } | |
12117 | ||
12118 | wxPyEndAllowThreads(__tstate); | |
12119 | if (PyErr_Occurred()) SWIG_fail; | |
12120 | } | |
12121 | { | |
12122 | #if wxUSE_UNICODE | |
12123 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12124 | #else | |
12125 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12126 | #endif | |
12127 | } | |
12128 | return resultobj; | |
12129 | fail: | |
12130 | return NULL; | |
12131 | } | |
12132 | ||
12133 | ||
12134 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12135 | PyObject *resultobj; | |
12136 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12137 | wxString *result; | |
12138 | PyObject * obj0 = 0 ; | |
12139 | char *kwnames[] = { | |
12140 | (char *) "self", NULL | |
12141 | }; | |
12142 | ||
12143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12146 | { | |
12147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12148 | { | |
12149 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12150 | result = (wxString *) &_result_ref; | |
12151 | } | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
12156 | { | |
12157 | #if wxUSE_UNICODE | |
12158 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12159 | #else | |
12160 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12161 | #endif | |
12162 | } | |
12163 | return resultobj; | |
12164 | fail: | |
12165 | return NULL; | |
12166 | } | |
12167 | ||
12168 | ||
12169 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12170 | PyObject *resultobj; | |
12171 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12172 | wxString *result; | |
12173 | PyObject * obj0 = 0 ; | |
12174 | char *kwnames[] = { | |
12175 | (char *) "self", NULL | |
12176 | }; | |
12177 | ||
12178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
12179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12181 | { | |
12182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12183 | { | |
12184 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12185 | result = (wxString *) &_result_ref; | |
12186 | } | |
12187 | ||
12188 | wxPyEndAllowThreads(__tstate); | |
12189 | if (PyErr_Occurred()) SWIG_fail; | |
12190 | } | |
12191 | { | |
12192 | #if wxUSE_UNICODE | |
12193 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12194 | #else | |
12195 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12196 | #endif | |
12197 | } | |
12198 | return resultobj; | |
12199 | fail: | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
12204 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12205 | PyObject *resultobj; | |
12206 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12207 | wxString *result; | |
12208 | PyObject * obj0 = 0 ; | |
12209 | char *kwnames[] = { | |
12210 | (char *) "self", NULL | |
12211 | }; | |
12212 | ||
12213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12216 | { | |
12217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12218 | { | |
12219 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12220 | result = (wxString *) &_result_ref; | |
12221 | } | |
12222 | ||
12223 | wxPyEndAllowThreads(__tstate); | |
12224 | if (PyErr_Occurred()) SWIG_fail; | |
12225 | } | |
12226 | { | |
12227 | #if wxUSE_UNICODE | |
12228 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12229 | #else | |
12230 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12231 | #endif | |
12232 | } | |
12233 | return resultobj; | |
12234 | fail: | |
12235 | return NULL; | |
12236 | } | |
12237 | ||
12238 | ||
12239 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12240 | PyObject *resultobj; | |
12241 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12242 | wxString *result; | |
12243 | PyObject * obj0 = 0 ; | |
12244 | char *kwnames[] = { | |
12245 | (char *) "self", NULL | |
12246 | }; | |
12247 | ||
12248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12251 | { | |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | { | |
12254 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12255 | result = (wxString *) &_result_ref; | |
12256 | } | |
12257 | ||
12258 | wxPyEndAllowThreads(__tstate); | |
12259 | if (PyErr_Occurred()) SWIG_fail; | |
12260 | } | |
12261 | { | |
12262 | #if wxUSE_UNICODE | |
12263 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12264 | #else | |
12265 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12266 | #endif | |
12267 | } | |
12268 | return resultobj; | |
12269 | fail: | |
12270 | return NULL; | |
12271 | } | |
12272 | ||
12273 | ||
12274 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12275 | PyObject *resultobj; | |
12276 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12277 | wxArrayString *result; | |
12278 | PyObject * obj0 = 0 ; | |
12279 | char *kwnames[] = { | |
12280 | (char *) "self", NULL | |
12281 | }; | |
12282 | ||
12283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12286 | { | |
12287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12288 | { | |
12289 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12290 | result = (wxArrayString *) &_result_ref; | |
12291 | } | |
12292 | ||
12293 | wxPyEndAllowThreads(__tstate); | |
12294 | if (PyErr_Occurred()) SWIG_fail; | |
12295 | } | |
12296 | { | |
12297 | resultobj = wxArrayString2PyList_helper(*result); | |
12298 | } | |
12299 | return resultobj; | |
12300 | fail: | |
12301 | return NULL; | |
12302 | } | |
12303 | ||
12304 | ||
12305 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12306 | PyObject *resultobj; | |
12307 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12308 | int result; | |
12309 | PyObject * obj0 = 0 ; | |
12310 | char *kwnames[] = { | |
12311 | (char *) "self", NULL | |
12312 | }; | |
12313 | ||
12314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12317 | { | |
12318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12319 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12320 | ||
12321 | wxPyEndAllowThreads(__tstate); | |
12322 | if (PyErr_Occurred()) SWIG_fail; | |
12323 | } | |
12324 | resultobj = SWIG_FromInt((int)result); | |
12325 | return resultobj; | |
12326 | fail: | |
12327 | return NULL; | |
12328 | } | |
12329 | ||
12330 | ||
12331 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12332 | PyObject *resultobj; | |
12333 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12334 | wxString *result; | |
12335 | PyObject * obj0 = 0 ; | |
12336 | char *kwnames[] = { | |
12337 | (char *) "self", NULL | |
12338 | }; | |
12339 | ||
12340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12343 | { | |
12344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12345 | { | |
12346 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12347 | result = (wxString *) &_result_ref; | |
12348 | } | |
12349 | ||
12350 | wxPyEndAllowThreads(__tstate); | |
12351 | if (PyErr_Occurred()) SWIG_fail; | |
12352 | } | |
12353 | { | |
12354 | #if wxUSE_UNICODE | |
12355 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12356 | #else | |
12357 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12358 | #endif | |
12359 | } | |
12360 | return resultobj; | |
12361 | fail: | |
12362 | return NULL; | |
12363 | } | |
12364 | ||
12365 | ||
12366 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12367 | PyObject *resultobj; | |
12368 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12369 | int result; | |
12370 | PyObject * obj0 = 0 ; | |
12371 | char *kwnames[] = { | |
12372 | (char *) "self", NULL | |
12373 | }; | |
12374 | ||
12375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12378 | { | |
12379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12380 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12381 | ||
12382 | wxPyEndAllowThreads(__tstate); | |
12383 | if (PyErr_Occurred()) SWIG_fail; | |
12384 | } | |
12385 | resultobj = SWIG_FromInt((int)result); | |
12386 | return resultobj; | |
12387 | fail: | |
12388 | return NULL; | |
12389 | } | |
12390 | ||
12391 | ||
12392 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12393 | PyObject *obj; | |
12394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12395 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12396 | Py_INCREF(obj); | |
12397 | return Py_BuildValue((char *)""); | |
12398 | } | |
12399 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12400 | PyObject *resultobj; | |
12401 | wxFileTypeInfo *arg1 = 0 ; | |
12402 | wxFileType *result; | |
12403 | PyObject * obj0 = 0 ; | |
12404 | char *kwnames[] = { | |
12405 | (char *) "ftInfo", NULL | |
12406 | }; | |
12407 | ||
12408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12410 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12411 | SWIG_fail; | |
12412 | if (arg1 == NULL) { | |
12413 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12414 | SWIG_fail; | |
12415 | } | |
12416 | { | |
12417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12418 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12419 | ||
12420 | wxPyEndAllowThreads(__tstate); | |
12421 | if (PyErr_Occurred()) SWIG_fail; | |
12422 | } | |
12423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12424 | return resultobj; | |
12425 | fail: | |
12426 | return NULL; | |
12427 | } | |
12428 | ||
12429 | ||
12430 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12431 | PyObject *resultobj; | |
12432 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12433 | PyObject * obj0 = 0 ; | |
12434 | char *kwnames[] = { | |
12435 | (char *) "self", NULL | |
12436 | }; | |
12437 | ||
12438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | delete arg1; | |
12444 | ||
12445 | wxPyEndAllowThreads(__tstate); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | } | |
12448 | Py_INCREF(Py_None); resultobj = Py_None; | |
12449 | return resultobj; | |
12450 | fail: | |
12451 | return NULL; | |
12452 | } | |
12453 | ||
12454 | ||
12455 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12456 | PyObject *resultobj; | |
12457 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12458 | PyObject *result; | |
12459 | PyObject * obj0 = 0 ; | |
12460 | char *kwnames[] = { | |
12461 | (char *) "self", NULL | |
12462 | }; | |
12463 | ||
12464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12467 | { | |
12468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12469 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12470 | ||
12471 | wxPyEndAllowThreads(__tstate); | |
12472 | if (PyErr_Occurred()) SWIG_fail; | |
12473 | } | |
12474 | resultobj = result; | |
12475 | return resultobj; | |
12476 | fail: | |
12477 | return NULL; | |
12478 | } | |
12479 | ||
12480 | ||
12481 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12482 | PyObject *resultobj; | |
12483 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12484 | PyObject *result; | |
12485 | PyObject * obj0 = 0 ; | |
12486 | char *kwnames[] = { | |
12487 | (char *) "self", NULL | |
12488 | }; | |
12489 | ||
12490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12493 | { | |
12494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12495 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12496 | ||
12497 | wxPyEndAllowThreads(__tstate); | |
12498 | if (PyErr_Occurred()) SWIG_fail; | |
12499 | } | |
12500 | resultobj = result; | |
12501 | return resultobj; | |
12502 | fail: | |
12503 | return NULL; | |
12504 | } | |
12505 | ||
12506 | ||
12507 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12508 | PyObject *resultobj; | |
12509 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12510 | PyObject *result; | |
12511 | PyObject * obj0 = 0 ; | |
12512 | char *kwnames[] = { | |
12513 | (char *) "self", NULL | |
12514 | }; | |
12515 | ||
12516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12519 | { | |
12520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12521 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12522 | ||
12523 | wxPyEndAllowThreads(__tstate); | |
12524 | if (PyErr_Occurred()) SWIG_fail; | |
12525 | } | |
12526 | resultobj = result; | |
12527 | return resultobj; | |
12528 | fail: | |
12529 | return NULL; | |
12530 | } | |
12531 | ||
12532 | ||
12533 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12534 | PyObject *resultobj; | |
12535 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12536 | wxIcon *result; | |
12537 | PyObject * obj0 = 0 ; | |
12538 | char *kwnames[] = { | |
12539 | (char *) "self", NULL | |
12540 | }; | |
12541 | ||
12542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12545 | { | |
12546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12547 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12548 | ||
12549 | wxPyEndAllowThreads(__tstate); | |
12550 | if (PyErr_Occurred()) SWIG_fail; | |
12551 | } | |
12552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
12553 | return resultobj; | |
12554 | fail: | |
12555 | return NULL; | |
12556 | } | |
12557 | ||
12558 | ||
12559 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12560 | PyObject *resultobj; | |
12561 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12562 | PyObject *result; | |
12563 | PyObject * obj0 = 0 ; | |
12564 | char *kwnames[] = { | |
12565 | (char *) "self", NULL | |
12566 | }; | |
12567 | ||
12568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12571 | { | |
12572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12573 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12574 | ||
12575 | wxPyEndAllowThreads(__tstate); | |
12576 | if (PyErr_Occurred()) SWIG_fail; | |
12577 | } | |
12578 | resultobj = result; | |
12579 | return resultobj; | |
12580 | fail: | |
12581 | return NULL; | |
12582 | } | |
12583 | ||
12584 | ||
12585 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12586 | PyObject *resultobj; | |
12587 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12588 | PyObject *result; | |
12589 | PyObject * obj0 = 0 ; | |
12590 | char *kwnames[] = { | |
12591 | (char *) "self", NULL | |
12592 | }; | |
12593 | ||
12594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12597 | { | |
12598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12599 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12600 | ||
12601 | wxPyEndAllowThreads(__tstate); | |
12602 | if (PyErr_Occurred()) SWIG_fail; | |
12603 | } | |
12604 | resultobj = result; | |
12605 | return resultobj; | |
12606 | fail: | |
12607 | return NULL; | |
12608 | } | |
12609 | ||
12610 | ||
12611 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12612 | PyObject *resultobj; | |
12613 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12614 | wxString *arg2 = 0 ; | |
12615 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12616 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12617 | PyObject *result; | |
12618 | bool temp2 = False ; | |
12619 | bool temp3 = False ; | |
12620 | PyObject * obj0 = 0 ; | |
12621 | PyObject * obj1 = 0 ; | |
12622 | PyObject * obj2 = 0 ; | |
12623 | char *kwnames[] = { | |
12624 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12625 | }; | |
12626 | ||
12627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12630 | { | |
12631 | arg2 = wxString_in_helper(obj1); | |
12632 | if (arg2 == NULL) SWIG_fail; | |
12633 | temp2 = True; | |
12634 | } | |
12635 | if (obj2) { | |
12636 | { | |
12637 | arg3 = wxString_in_helper(obj2); | |
12638 | if (arg3 == NULL) SWIG_fail; | |
12639 | temp3 = True; | |
12640 | } | |
12641 | } | |
12642 | { | |
12643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12644 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12645 | ||
12646 | wxPyEndAllowThreads(__tstate); | |
12647 | if (PyErr_Occurred()) SWIG_fail; | |
12648 | } | |
12649 | resultobj = result; | |
12650 | { | |
12651 | if (temp2) | |
12652 | delete arg2; | |
12653 | } | |
12654 | { | |
12655 | if (temp3) | |
12656 | delete arg3; | |
12657 | } | |
12658 | return resultobj; | |
12659 | fail: | |
12660 | { | |
12661 | if (temp2) | |
12662 | delete arg2; | |
12663 | } | |
12664 | { | |
12665 | if (temp3) | |
12666 | delete arg3; | |
12667 | } | |
12668 | return NULL; | |
12669 | } | |
12670 | ||
12671 | ||
12672 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12673 | PyObject *resultobj; | |
12674 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12675 | wxString *arg2 = 0 ; | |
12676 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12677 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12678 | PyObject *result; | |
12679 | bool temp2 = False ; | |
12680 | bool temp3 = False ; | |
12681 | PyObject * obj0 = 0 ; | |
12682 | PyObject * obj1 = 0 ; | |
12683 | PyObject * obj2 = 0 ; | |
12684 | char *kwnames[] = { | |
12685 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12686 | }; | |
12687 | ||
12688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12691 | { | |
12692 | arg2 = wxString_in_helper(obj1); | |
12693 | if (arg2 == NULL) SWIG_fail; | |
12694 | temp2 = True; | |
12695 | } | |
12696 | if (obj2) { | |
12697 | { | |
12698 | arg3 = wxString_in_helper(obj2); | |
12699 | if (arg3 == NULL) SWIG_fail; | |
12700 | temp3 = True; | |
12701 | } | |
12702 | } | |
12703 | { | |
12704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12705 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12706 | ||
12707 | wxPyEndAllowThreads(__tstate); | |
12708 | if (PyErr_Occurred()) SWIG_fail; | |
12709 | } | |
12710 | resultobj = result; | |
12711 | { | |
12712 | if (temp2) | |
12713 | delete arg2; | |
12714 | } | |
12715 | { | |
12716 | if (temp3) | |
12717 | delete arg3; | |
12718 | } | |
12719 | return resultobj; | |
12720 | fail: | |
12721 | { | |
12722 | if (temp2) | |
12723 | delete arg2; | |
12724 | } | |
12725 | { | |
12726 | if (temp3) | |
12727 | delete arg3; | |
12728 | } | |
12729 | return NULL; | |
12730 | } | |
12731 | ||
12732 | ||
12733 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12734 | PyObject *resultobj; | |
12735 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12736 | wxString *arg2 = 0 ; | |
12737 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12738 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12739 | PyObject *result; | |
12740 | bool temp2 = False ; | |
12741 | bool temp3 = False ; | |
12742 | PyObject * obj0 = 0 ; | |
12743 | PyObject * obj1 = 0 ; | |
12744 | PyObject * obj2 = 0 ; | |
12745 | char *kwnames[] = { | |
12746 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12747 | }; | |
12748 | ||
12749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12752 | { | |
12753 | arg2 = wxString_in_helper(obj1); | |
12754 | if (arg2 == NULL) SWIG_fail; | |
12755 | temp2 = True; | |
12756 | } | |
12757 | if (obj2) { | |
12758 | { | |
12759 | arg3 = wxString_in_helper(obj2); | |
12760 | if (arg3 == NULL) SWIG_fail; | |
12761 | temp3 = True; | |
12762 | } | |
12763 | } | |
12764 | { | |
12765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12766 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12767 | ||
12768 | wxPyEndAllowThreads(__tstate); | |
12769 | if (PyErr_Occurred()) SWIG_fail; | |
12770 | } | |
12771 | resultobj = result; | |
12772 | { | |
12773 | if (temp2) | |
12774 | delete arg2; | |
12775 | } | |
12776 | { | |
12777 | if (temp3) | |
12778 | delete arg3; | |
12779 | } | |
12780 | return resultobj; | |
12781 | fail: | |
12782 | { | |
12783 | if (temp2) | |
12784 | delete arg2; | |
12785 | } | |
12786 | { | |
12787 | if (temp3) | |
12788 | delete arg3; | |
12789 | } | |
12790 | return NULL; | |
12791 | } | |
12792 | ||
12793 | ||
12794 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12795 | PyObject *resultobj; | |
12796 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12797 | wxString *arg2 = 0 ; | |
12798 | wxString *arg3 = 0 ; | |
12799 | bool arg4 = (bool) True ; | |
12800 | bool result; | |
12801 | bool temp2 = False ; | |
12802 | bool temp3 = False ; | |
12803 | PyObject * obj0 = 0 ; | |
12804 | PyObject * obj1 = 0 ; | |
12805 | PyObject * obj2 = 0 ; | |
12806 | PyObject * obj3 = 0 ; | |
12807 | char *kwnames[] = { | |
12808 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12809 | }; | |
12810 | ||
12811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12814 | { | |
12815 | arg2 = wxString_in_helper(obj1); | |
12816 | if (arg2 == NULL) SWIG_fail; | |
12817 | temp2 = True; | |
12818 | } | |
12819 | { | |
12820 | arg3 = wxString_in_helper(obj2); | |
12821 | if (arg3 == NULL) SWIG_fail; | |
12822 | temp3 = True; | |
12823 | } | |
12824 | if (obj3) { | |
12825 | arg4 = (bool) SWIG_AsBool(obj3); | |
12826 | if (PyErr_Occurred()) SWIG_fail; | |
12827 | } | |
12828 | { | |
12829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12830 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12831 | ||
12832 | wxPyEndAllowThreads(__tstate); | |
12833 | if (PyErr_Occurred()) SWIG_fail; | |
12834 | } | |
12835 | { | |
12836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12837 | } | |
12838 | { | |
12839 | if (temp2) | |
12840 | delete arg2; | |
12841 | } | |
12842 | { | |
12843 | if (temp3) | |
12844 | delete arg3; | |
12845 | } | |
12846 | return resultobj; | |
12847 | fail: | |
12848 | { | |
12849 | if (temp2) | |
12850 | delete arg2; | |
12851 | } | |
12852 | { | |
12853 | if (temp3) | |
12854 | delete arg3; | |
12855 | } | |
12856 | return NULL; | |
12857 | } | |
12858 | ||
12859 | ||
12860 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12861 | PyObject *resultobj; | |
12862 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12863 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12864 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12865 | int arg3 = (int) 0 ; | |
12866 | bool result; | |
12867 | bool temp2 = False ; | |
12868 | PyObject * obj0 = 0 ; | |
12869 | PyObject * obj1 = 0 ; | |
12870 | PyObject * obj2 = 0 ; | |
12871 | char *kwnames[] = { | |
12872 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12873 | }; | |
12874 | ||
12875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12878 | if (obj1) { | |
12879 | { | |
12880 | arg2 = wxString_in_helper(obj1); | |
12881 | if (arg2 == NULL) SWIG_fail; | |
12882 | temp2 = True; | |
12883 | } | |
12884 | } | |
12885 | if (obj2) { | |
12886 | arg3 = (int) SWIG_AsInt(obj2); | |
12887 | if (PyErr_Occurred()) SWIG_fail; | |
12888 | } | |
12889 | { | |
12890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12891 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12892 | ||
12893 | wxPyEndAllowThreads(__tstate); | |
12894 | if (PyErr_Occurred()) SWIG_fail; | |
12895 | } | |
12896 | { | |
12897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12898 | } | |
12899 | { | |
12900 | if (temp2) | |
12901 | delete arg2; | |
12902 | } | |
12903 | return resultobj; | |
12904 | fail: | |
12905 | { | |
12906 | if (temp2) | |
12907 | delete arg2; | |
12908 | } | |
12909 | return NULL; | |
12910 | } | |
12911 | ||
12912 | ||
12913 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12914 | PyObject *resultobj; | |
12915 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12916 | bool result; | |
12917 | PyObject * obj0 = 0 ; | |
12918 | char *kwnames[] = { | |
12919 | (char *) "self", NULL | |
12920 | }; | |
12921 | ||
12922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
12923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12925 | { | |
12926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12927 | result = (bool)(arg1)->Unassociate(); | |
12928 | ||
12929 | wxPyEndAllowThreads(__tstate); | |
12930 | if (PyErr_Occurred()) SWIG_fail; | |
12931 | } | |
12932 | { | |
12933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12934 | } | |
12935 | return resultobj; | |
12936 | fail: | |
12937 | return NULL; | |
12938 | } | |
12939 | ||
12940 | ||
12941 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12942 | PyObject *resultobj; | |
12943 | wxString *arg1 = 0 ; | |
12944 | wxString *arg2 = 0 ; | |
12945 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12946 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12947 | wxString result; | |
12948 | bool temp1 = False ; | |
12949 | bool temp2 = False ; | |
12950 | bool temp3 = False ; | |
12951 | PyObject * obj0 = 0 ; | |
12952 | PyObject * obj1 = 0 ; | |
12953 | PyObject * obj2 = 0 ; | |
12954 | char *kwnames[] = { | |
12955 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12956 | }; | |
12957 | ||
12958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12959 | { | |
12960 | arg1 = wxString_in_helper(obj0); | |
12961 | if (arg1 == NULL) SWIG_fail; | |
12962 | temp1 = True; | |
12963 | } | |
12964 | { | |
12965 | arg2 = wxString_in_helper(obj1); | |
12966 | if (arg2 == NULL) SWIG_fail; | |
12967 | temp2 = True; | |
12968 | } | |
12969 | if (obj2) { | |
12970 | { | |
12971 | arg3 = wxString_in_helper(obj2); | |
12972 | if (arg3 == NULL) SWIG_fail; | |
12973 | temp3 = True; | |
12974 | } | |
12975 | } | |
12976 | { | |
12977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12978 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12979 | ||
12980 | wxPyEndAllowThreads(__tstate); | |
12981 | if (PyErr_Occurred()) SWIG_fail; | |
12982 | } | |
12983 | { | |
12984 | #if wxUSE_UNICODE | |
12985 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12986 | #else | |
12987 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12988 | #endif | |
12989 | } | |
12990 | { | |
12991 | if (temp1) | |
12992 | delete arg1; | |
12993 | } | |
12994 | { | |
12995 | if (temp2) | |
12996 | delete arg2; | |
12997 | } | |
12998 | { | |
12999 | if (temp3) | |
13000 | delete arg3; | |
13001 | } | |
13002 | return resultobj; | |
13003 | fail: | |
13004 | { | |
13005 | if (temp1) | |
13006 | delete arg1; | |
13007 | } | |
13008 | { | |
13009 | if (temp2) | |
13010 | delete arg2; | |
13011 | } | |
13012 | { | |
13013 | if (temp3) | |
13014 | delete arg3; | |
13015 | } | |
13016 | return NULL; | |
13017 | } | |
13018 | ||
13019 | ||
13020 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
13021 | PyObject *obj; | |
13022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13023 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13024 | Py_INCREF(obj); | |
13025 | return Py_BuildValue((char *)""); | |
13026 | } | |
13027 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
13028 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
13029 | return 1; | |
13030 | } | |
13031 | ||
13032 | ||
13033 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13034 | PyObject *pyobj; | |
13035 | ||
13036 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
13037 | return pyobj; | |
13038 | } | |
13039 | ||
13040 | ||
13041 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13042 | PyObject *resultobj; | |
13043 | wxString *arg1 = 0 ; | |
13044 | wxString *arg2 = 0 ; | |
13045 | bool result; | |
13046 | bool temp1 = False ; | |
13047 | bool temp2 = False ; | |
13048 | PyObject * obj0 = 0 ; | |
13049 | PyObject * obj1 = 0 ; | |
13050 | char *kwnames[] = { | |
13051 | (char *) "mimeType",(char *) "wildcard", NULL | |
13052 | }; | |
13053 | ||
13054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13055 | { | |
13056 | arg1 = wxString_in_helper(obj0); | |
13057 | if (arg1 == NULL) SWIG_fail; | |
13058 | temp1 = True; | |
13059 | } | |
13060 | { | |
13061 | arg2 = wxString_in_helper(obj1); | |
13062 | if (arg2 == NULL) SWIG_fail; | |
13063 | temp2 = True; | |
13064 | } | |
13065 | { | |
13066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13067 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13068 | ||
13069 | wxPyEndAllowThreads(__tstate); | |
13070 | if (PyErr_Occurred()) SWIG_fail; | |
13071 | } | |
13072 | { | |
13073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13074 | } | |
13075 | { | |
13076 | if (temp1) | |
13077 | delete arg1; | |
13078 | } | |
13079 | { | |
13080 | if (temp2) | |
13081 | delete arg2; | |
13082 | } | |
13083 | return resultobj; | |
13084 | fail: | |
13085 | { | |
13086 | if (temp1) | |
13087 | delete arg1; | |
13088 | } | |
13089 | { | |
13090 | if (temp2) | |
13091 | delete arg2; | |
13092 | } | |
13093 | return NULL; | |
13094 | } | |
13095 | ||
13096 | ||
13097 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13098 | PyObject *resultobj; | |
13099 | wxMimeTypesManager *result; | |
13100 | char *kwnames[] = { | |
13101 | NULL | |
13102 | }; | |
13103 | ||
13104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13105 | { | |
13106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13107 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13108 | ||
13109 | wxPyEndAllowThreads(__tstate); | |
13110 | if (PyErr_Occurred()) SWIG_fail; | |
13111 | } | |
13112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13113 | return resultobj; | |
13114 | fail: | |
13115 | return NULL; | |
13116 | } | |
13117 | ||
13118 | ||
13119 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13120 | PyObject *resultobj; | |
13121 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13122 | int arg2 = (int) wxMAILCAP_ALL ; | |
13123 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13124 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13125 | bool temp3 = False ; | |
13126 | PyObject * obj0 = 0 ; | |
13127 | PyObject * obj1 = 0 ; | |
13128 | PyObject * obj2 = 0 ; | |
13129 | char *kwnames[] = { | |
13130 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13131 | }; | |
13132 | ||
13133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13136 | if (obj1) { | |
13137 | arg2 = (int) SWIG_AsInt(obj1); | |
13138 | if (PyErr_Occurred()) SWIG_fail; | |
13139 | } | |
13140 | if (obj2) { | |
13141 | { | |
13142 | arg3 = wxString_in_helper(obj2); | |
13143 | if (arg3 == NULL) SWIG_fail; | |
13144 | temp3 = True; | |
13145 | } | |
13146 | } | |
13147 | { | |
13148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13149 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13150 | ||
13151 | wxPyEndAllowThreads(__tstate); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | } | |
13154 | Py_INCREF(Py_None); resultobj = Py_None; | |
13155 | { | |
13156 | if (temp3) | |
13157 | delete arg3; | |
13158 | } | |
13159 | return resultobj; | |
13160 | fail: | |
13161 | { | |
13162 | if (temp3) | |
13163 | delete arg3; | |
13164 | } | |
13165 | return NULL; | |
13166 | } | |
13167 | ||
13168 | ||
13169 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13170 | PyObject *resultobj; | |
13171 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13172 | PyObject * obj0 = 0 ; | |
13173 | char *kwnames[] = { | |
13174 | (char *) "self", NULL | |
13175 | }; | |
13176 | ||
13177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13180 | { | |
13181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13182 | (arg1)->ClearData(); | |
13183 | ||
13184 | wxPyEndAllowThreads(__tstate); | |
13185 | if (PyErr_Occurred()) SWIG_fail; | |
13186 | } | |
13187 | Py_INCREF(Py_None); resultobj = Py_None; | |
13188 | return resultobj; | |
13189 | fail: | |
13190 | return NULL; | |
13191 | } | |
13192 | ||
13193 | ||
13194 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13195 | PyObject *resultobj; | |
13196 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13197 | wxString *arg2 = 0 ; | |
13198 | wxFileType *result; | |
13199 | bool temp2 = False ; | |
13200 | PyObject * obj0 = 0 ; | |
13201 | PyObject * obj1 = 0 ; | |
13202 | char *kwnames[] = { | |
13203 | (char *) "self",(char *) "ext", NULL | |
13204 | }; | |
13205 | ||
13206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13209 | { | |
13210 | arg2 = wxString_in_helper(obj1); | |
13211 | if (arg2 == NULL) SWIG_fail; | |
13212 | temp2 = True; | |
13213 | } | |
13214 | { | |
13215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13216 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13217 | ||
13218 | wxPyEndAllowThreads(__tstate); | |
13219 | if (PyErr_Occurred()) SWIG_fail; | |
13220 | } | |
13221 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13222 | { | |
13223 | if (temp2) | |
13224 | delete arg2; | |
13225 | } | |
13226 | return resultobj; | |
13227 | fail: | |
13228 | { | |
13229 | if (temp2) | |
13230 | delete arg2; | |
13231 | } | |
13232 | return NULL; | |
13233 | } | |
13234 | ||
13235 | ||
13236 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13237 | PyObject *resultobj; | |
13238 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13239 | wxString *arg2 = 0 ; | |
13240 | wxFileType *result; | |
13241 | bool temp2 = False ; | |
13242 | PyObject * obj0 = 0 ; | |
13243 | PyObject * obj1 = 0 ; | |
13244 | char *kwnames[] = { | |
13245 | (char *) "self",(char *) "mimeType", NULL | |
13246 | }; | |
13247 | ||
13248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13251 | { | |
13252 | arg2 = wxString_in_helper(obj1); | |
13253 | if (arg2 == NULL) SWIG_fail; | |
13254 | temp2 = True; | |
13255 | } | |
13256 | { | |
13257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13258 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13259 | ||
13260 | wxPyEndAllowThreads(__tstate); | |
13261 | if (PyErr_Occurred()) SWIG_fail; | |
13262 | } | |
13263 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13264 | { | |
13265 | if (temp2) | |
13266 | delete arg2; | |
13267 | } | |
13268 | return resultobj; | |
13269 | fail: | |
13270 | { | |
13271 | if (temp2) | |
13272 | delete arg2; | |
13273 | } | |
13274 | return NULL; | |
13275 | } | |
13276 | ||
13277 | ||
13278 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13279 | PyObject *resultobj; | |
13280 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13281 | wxString *arg2 = 0 ; | |
13282 | bool arg3 = (bool) False ; | |
13283 | bool result; | |
13284 | bool temp2 = False ; | |
13285 | PyObject * obj0 = 0 ; | |
13286 | PyObject * obj1 = 0 ; | |
13287 | PyObject * obj2 = 0 ; | |
13288 | char *kwnames[] = { | |
13289 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13290 | }; | |
13291 | ||
13292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13295 | { | |
13296 | arg2 = wxString_in_helper(obj1); | |
13297 | if (arg2 == NULL) SWIG_fail; | |
13298 | temp2 = True; | |
13299 | } | |
13300 | if (obj2) { | |
13301 | arg3 = (bool) SWIG_AsBool(obj2); | |
13302 | if (PyErr_Occurred()) SWIG_fail; | |
13303 | } | |
13304 | { | |
13305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13306 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13307 | ||
13308 | wxPyEndAllowThreads(__tstate); | |
13309 | if (PyErr_Occurred()) SWIG_fail; | |
13310 | } | |
13311 | { | |
13312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13313 | } | |
13314 | { | |
13315 | if (temp2) | |
13316 | delete arg2; | |
13317 | } | |
13318 | return resultobj; | |
13319 | fail: | |
13320 | { | |
13321 | if (temp2) | |
13322 | delete arg2; | |
13323 | } | |
13324 | return NULL; | |
13325 | } | |
13326 | ||
13327 | ||
13328 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13329 | PyObject *resultobj; | |
13330 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13331 | wxString *arg2 = 0 ; | |
13332 | bool result; | |
13333 | bool temp2 = False ; | |
13334 | PyObject * obj0 = 0 ; | |
13335 | PyObject * obj1 = 0 ; | |
13336 | char *kwnames[] = { | |
13337 | (char *) "self",(char *) "filename", NULL | |
13338 | }; | |
13339 | ||
13340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13343 | { | |
13344 | arg2 = wxString_in_helper(obj1); | |
13345 | if (arg2 == NULL) SWIG_fail; | |
13346 | temp2 = True; | |
13347 | } | |
13348 | { | |
13349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13350 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13351 | ||
13352 | wxPyEndAllowThreads(__tstate); | |
13353 | if (PyErr_Occurred()) SWIG_fail; | |
13354 | } | |
13355 | { | |
13356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13357 | } | |
13358 | { | |
13359 | if (temp2) | |
13360 | delete arg2; | |
13361 | } | |
13362 | return resultobj; | |
13363 | fail: | |
13364 | { | |
13365 | if (temp2) | |
13366 | delete arg2; | |
13367 | } | |
13368 | return NULL; | |
13369 | } | |
13370 | ||
13371 | ||
13372 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13373 | PyObject *resultobj; | |
13374 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13375 | PyObject *result; | |
13376 | PyObject * obj0 = 0 ; | |
13377 | char *kwnames[] = { | |
13378 | (char *) "self", NULL | |
13379 | }; | |
13380 | ||
13381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13384 | { | |
13385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13386 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13387 | ||
13388 | wxPyEndAllowThreads(__tstate); | |
13389 | if (PyErr_Occurred()) SWIG_fail; | |
13390 | } | |
13391 | resultobj = result; | |
13392 | return resultobj; | |
13393 | fail: | |
13394 | return NULL; | |
13395 | } | |
13396 | ||
13397 | ||
13398 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13399 | PyObject *resultobj; | |
13400 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13401 | wxFileTypeInfo *arg2 = 0 ; | |
13402 | PyObject * obj0 = 0 ; | |
13403 | PyObject * obj1 = 0 ; | |
13404 | char *kwnames[] = { | |
13405 | (char *) "self",(char *) "ft", NULL | |
13406 | }; | |
13407 | ||
13408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13412 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13413 | SWIG_fail; | |
13414 | if (arg2 == NULL) { | |
13415 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13416 | SWIG_fail; | |
13417 | } | |
13418 | { | |
13419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13420 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13421 | ||
13422 | wxPyEndAllowThreads(__tstate); | |
13423 | if (PyErr_Occurred()) SWIG_fail; | |
13424 | } | |
13425 | Py_INCREF(Py_None); resultobj = Py_None; | |
13426 | return resultobj; | |
13427 | fail: | |
13428 | return NULL; | |
13429 | } | |
13430 | ||
13431 | ||
13432 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13433 | PyObject *resultobj; | |
13434 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13435 | wxFileTypeInfo *arg2 = 0 ; | |
13436 | wxFileType *result; | |
13437 | PyObject * obj0 = 0 ; | |
13438 | PyObject * obj1 = 0 ; | |
13439 | char *kwnames[] = { | |
13440 | (char *) "self",(char *) "ftInfo", NULL | |
13441 | }; | |
13442 | ||
13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13446 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13447 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13448 | SWIG_fail; | |
13449 | if (arg2 == NULL) { | |
13450 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13451 | SWIG_fail; | |
13452 | } | |
13453 | { | |
13454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13455 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13456 | ||
13457 | wxPyEndAllowThreads(__tstate); | |
13458 | if (PyErr_Occurred()) SWIG_fail; | |
13459 | } | |
13460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13461 | return resultobj; | |
13462 | fail: | |
13463 | return NULL; | |
13464 | } | |
13465 | ||
13466 | ||
13467 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13468 | PyObject *resultobj; | |
13469 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13470 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13471 | bool result; | |
13472 | PyObject * obj0 = 0 ; | |
13473 | PyObject * obj1 = 0 ; | |
13474 | char *kwnames[] = { | |
13475 | (char *) "self",(char *) "ft", NULL | |
13476 | }; | |
13477 | ||
13478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13481 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13483 | { | |
13484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13485 | result = (bool)(arg1)->Unassociate(arg2); | |
13486 | ||
13487 | wxPyEndAllowThreads(__tstate); | |
13488 | if (PyErr_Occurred()) SWIG_fail; | |
13489 | } | |
13490 | { | |
13491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13492 | } | |
13493 | return resultobj; | |
13494 | fail: | |
13495 | return NULL; | |
13496 | } | |
13497 | ||
13498 | ||
13499 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13500 | PyObject *resultobj; | |
13501 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13502 | PyObject * obj0 = 0 ; | |
13503 | char *kwnames[] = { | |
13504 | (char *) "self", NULL | |
13505 | }; | |
13506 | ||
13507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13510 | { | |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13512 | delete arg1; | |
13513 | ||
13514 | wxPyEndAllowThreads(__tstate); | |
13515 | if (PyErr_Occurred()) SWIG_fail; | |
13516 | } | |
13517 | Py_INCREF(Py_None); resultobj = Py_None; | |
13518 | return resultobj; | |
13519 | fail: | |
13520 | return NULL; | |
13521 | } | |
13522 | ||
13523 | ||
13524 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13525 | PyObject *obj; | |
13526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13527 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13528 | Py_INCREF(obj); | |
13529 | return Py_BuildValue((char *)""); | |
13530 | } | |
13531 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13532 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13533 | return 1; | |
13534 | } | |
13535 | ||
13536 | ||
13537 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13538 | PyObject *pyobj; | |
13539 | ||
13540 | { | |
13541 | #if wxUSE_UNICODE | |
13542 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13543 | #else | |
13544 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13545 | #endif | |
13546 | } | |
13547 | return pyobj; | |
13548 | } | |
13549 | ||
13550 | ||
13551 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13552 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13553 | return 1; | |
13554 | } | |
13555 | ||
13556 | ||
13557 | static PyObject *_wrap_ART_MENU_get() { | |
13558 | PyObject *pyobj; | |
13559 | ||
13560 | { | |
13561 | #if wxUSE_UNICODE | |
13562 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13563 | #else | |
13564 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13565 | #endif | |
13566 | } | |
13567 | return pyobj; | |
13568 | } | |
13569 | ||
13570 | ||
13571 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13572 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13573 | return 1; | |
13574 | } | |
13575 | ||
13576 | ||
13577 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13578 | PyObject *pyobj; | |
13579 | ||
13580 | { | |
13581 | #if wxUSE_UNICODE | |
13582 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13583 | #else | |
13584 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13585 | #endif | |
13586 | } | |
13587 | return pyobj; | |
13588 | } | |
13589 | ||
13590 | ||
13591 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13592 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13593 | return 1; | |
13594 | } | |
13595 | ||
13596 | ||
13597 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13598 | PyObject *pyobj; | |
13599 | ||
13600 | { | |
13601 | #if wxUSE_UNICODE | |
13602 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13603 | #else | |
13604 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13605 | #endif | |
13606 | } | |
13607 | return pyobj; | |
13608 | } | |
13609 | ||
13610 | ||
13611 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13612 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13613 | return 1; | |
13614 | } | |
13615 | ||
13616 | ||
13617 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13618 | PyObject *pyobj; | |
13619 | ||
13620 | { | |
13621 | #if wxUSE_UNICODE | |
13622 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13623 | #else | |
13624 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13625 | #endif | |
13626 | } | |
13627 | return pyobj; | |
13628 | } | |
13629 | ||
13630 | ||
13631 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13632 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13633 | return 1; | |
13634 | } | |
13635 | ||
13636 | ||
13637 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13638 | PyObject *pyobj; | |
13639 | ||
13640 | { | |
13641 | #if wxUSE_UNICODE | |
13642 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13643 | #else | |
13644 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13645 | #endif | |
13646 | } | |
13647 | return pyobj; | |
13648 | } | |
13649 | ||
13650 | ||
13651 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13652 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13653 | return 1; | |
13654 | } | |
13655 | ||
13656 | ||
13657 | static PyObject *_wrap_ART_OTHER_get() { | |
13658 | PyObject *pyobj; | |
13659 | ||
13660 | { | |
13661 | #if wxUSE_UNICODE | |
13662 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13663 | #else | |
13664 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13665 | #endif | |
13666 | } | |
13667 | return pyobj; | |
13668 | } | |
13669 | ||
13670 | ||
13671 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13672 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13673 | return 1; | |
13674 | } | |
13675 | ||
13676 | ||
13677 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13678 | PyObject *pyobj; | |
13679 | ||
13680 | { | |
13681 | #if wxUSE_UNICODE | |
13682 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13683 | #else | |
13684 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13685 | #endif | |
13686 | } | |
13687 | return pyobj; | |
13688 | } | |
13689 | ||
13690 | ||
13691 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13692 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13693 | return 1; | |
13694 | } | |
13695 | ||
13696 | ||
13697 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13698 | PyObject *pyobj; | |
13699 | ||
13700 | { | |
13701 | #if wxUSE_UNICODE | |
13702 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13703 | #else | |
13704 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13705 | #endif | |
13706 | } | |
13707 | return pyobj; | |
13708 | } | |
13709 | ||
13710 | ||
13711 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13712 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13713 | return 1; | |
13714 | } | |
13715 | ||
13716 | ||
13717 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13718 | PyObject *pyobj; | |
13719 | ||
13720 | { | |
13721 | #if wxUSE_UNICODE | |
13722 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13723 | #else | |
13724 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13725 | #endif | |
13726 | } | |
13727 | return pyobj; | |
13728 | } | |
13729 | ||
13730 | ||
13731 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13732 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13733 | return 1; | |
13734 | } | |
13735 | ||
13736 | ||
13737 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13738 | PyObject *pyobj; | |
13739 | ||
13740 | { | |
13741 | #if wxUSE_UNICODE | |
13742 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13743 | #else | |
13744 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13745 | #endif | |
13746 | } | |
13747 | return pyobj; | |
13748 | } | |
13749 | ||
13750 | ||
13751 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13752 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13753 | return 1; | |
13754 | } | |
13755 | ||
13756 | ||
13757 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13758 | PyObject *pyobj; | |
13759 | ||
13760 | { | |
13761 | #if wxUSE_UNICODE | |
13762 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13763 | #else | |
13764 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13765 | #endif | |
13766 | } | |
13767 | return pyobj; | |
13768 | } | |
13769 | ||
13770 | ||
13771 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13772 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13773 | return 1; | |
13774 | } | |
13775 | ||
13776 | ||
13777 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13778 | PyObject *pyobj; | |
13779 | ||
13780 | { | |
13781 | #if wxUSE_UNICODE | |
13782 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13783 | #else | |
13784 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13785 | #endif | |
13786 | } | |
13787 | return pyobj; | |
13788 | } | |
13789 | ||
13790 | ||
13791 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13792 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13793 | return 1; | |
13794 | } | |
13795 | ||
13796 | ||
13797 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13798 | PyObject *pyobj; | |
13799 | ||
13800 | { | |
13801 | #if wxUSE_UNICODE | |
13802 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13803 | #else | |
13804 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13805 | #endif | |
13806 | } | |
13807 | return pyobj; | |
13808 | } | |
13809 | ||
13810 | ||
13811 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13812 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13813 | return 1; | |
13814 | } | |
13815 | ||
13816 | ||
13817 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13818 | PyObject *pyobj; | |
13819 | ||
13820 | { | |
13821 | #if wxUSE_UNICODE | |
13822 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13823 | #else | |
13824 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13825 | #endif | |
13826 | } | |
13827 | return pyobj; | |
13828 | } | |
13829 | ||
13830 | ||
13831 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13832 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13833 | return 1; | |
13834 | } | |
13835 | ||
13836 | ||
13837 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13838 | PyObject *pyobj; | |
13839 | ||
13840 | { | |
13841 | #if wxUSE_UNICODE | |
13842 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13843 | #else | |
13844 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13845 | #endif | |
13846 | } | |
13847 | return pyobj; | |
13848 | } | |
13849 | ||
13850 | ||
13851 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13852 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13853 | return 1; | |
13854 | } | |
13855 | ||
13856 | ||
13857 | static PyObject *_wrap_ART_GO_UP_get() { | |
13858 | PyObject *pyobj; | |
13859 | ||
13860 | { | |
13861 | #if wxUSE_UNICODE | |
13862 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13863 | #else | |
13864 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13865 | #endif | |
13866 | } | |
13867 | return pyobj; | |
13868 | } | |
13869 | ||
13870 | ||
13871 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13872 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13873 | return 1; | |
13874 | } | |
13875 | ||
13876 | ||
13877 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13878 | PyObject *pyobj; | |
13879 | ||
13880 | { | |
13881 | #if wxUSE_UNICODE | |
13882 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13883 | #else | |
13884 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13885 | #endif | |
13886 | } | |
13887 | return pyobj; | |
13888 | } | |
13889 | ||
13890 | ||
13891 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13892 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13893 | return 1; | |
13894 | } | |
13895 | ||
13896 | ||
13897 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13898 | PyObject *pyobj; | |
13899 | ||
13900 | { | |
13901 | #if wxUSE_UNICODE | |
13902 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13903 | #else | |
13904 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13905 | #endif | |
13906 | } | |
13907 | return pyobj; | |
13908 | } | |
13909 | ||
13910 | ||
13911 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13912 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13913 | return 1; | |
13914 | } | |
13915 | ||
13916 | ||
13917 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13918 | PyObject *pyobj; | |
13919 | ||
13920 | { | |
13921 | #if wxUSE_UNICODE | |
13922 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13923 | #else | |
13924 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13925 | #endif | |
13926 | } | |
13927 | return pyobj; | |
13928 | } | |
13929 | ||
13930 | ||
13931 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13932 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13933 | return 1; | |
13934 | } | |
13935 | ||
13936 | ||
13937 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13938 | PyObject *pyobj; | |
13939 | ||
13940 | { | |
13941 | #if wxUSE_UNICODE | |
13942 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13943 | #else | |
13944 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13945 | #endif | |
13946 | } | |
13947 | return pyobj; | |
13948 | } | |
13949 | ||
13950 | ||
13951 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
13952 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13953 | return 1; | |
13954 | } | |
13955 | ||
13956 | ||
13957 | static PyObject *_wrap_ART_PRINT_get() { | |
13958 | PyObject *pyobj; | |
13959 | ||
13960 | { | |
13961 | #if wxUSE_UNICODE | |
13962 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13963 | #else | |
13964 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13965 | #endif | |
13966 | } | |
13967 | return pyobj; | |
13968 | } | |
13969 | ||
13970 | ||
13971 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
13972 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13973 | return 1; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | static PyObject *_wrap_ART_HELP_get() { | |
13978 | PyObject *pyobj; | |
13979 | ||
13980 | { | |
13981 | #if wxUSE_UNICODE | |
13982 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13983 | #else | |
13984 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13985 | #endif | |
13986 | } | |
13987 | return pyobj; | |
13988 | } | |
13989 | ||
13990 | ||
13991 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
13992 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
13993 | return 1; | |
13994 | } | |
13995 | ||
13996 | ||
13997 | static PyObject *_wrap_ART_TIP_get() { | |
13998 | PyObject *pyobj; | |
13999 | ||
14000 | { | |
14001 | #if wxUSE_UNICODE | |
14002 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14003 | #else | |
14004 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14005 | #endif | |
14006 | } | |
14007 | return pyobj; | |
14008 | } | |
14009 | ||
14010 | ||
14011 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
14012 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
14013 | return 1; | |
14014 | } | |
14015 | ||
14016 | ||
14017 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14018 | PyObject *pyobj; | |
14019 | ||
14020 | { | |
14021 | #if wxUSE_UNICODE | |
14022 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14023 | #else | |
14024 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14025 | #endif | |
14026 | } | |
14027 | return pyobj; | |
14028 | } | |
14029 | ||
14030 | ||
14031 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
14032 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
14033 | return 1; | |
14034 | } | |
14035 | ||
14036 | ||
14037 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14038 | PyObject *pyobj; | |
14039 | ||
14040 | { | |
14041 | #if wxUSE_UNICODE | |
14042 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14043 | #else | |
14044 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14045 | #endif | |
14046 | } | |
14047 | return pyobj; | |
14048 | } | |
14049 | ||
14050 | ||
14051 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
14052 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
14053 | return 1; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14058 | PyObject *pyobj; | |
14059 | ||
14060 | { | |
14061 | #if wxUSE_UNICODE | |
14062 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14063 | #else | |
14064 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14065 | #endif | |
14066 | } | |
14067 | return pyobj; | |
14068 | } | |
14069 | ||
14070 | ||
14071 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14072 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14073 | return 1; | |
14074 | } | |
14075 | ||
14076 | ||
14077 | static PyObject *_wrap_ART_FOLDER_get() { | |
14078 | PyObject *pyobj; | |
14079 | ||
14080 | { | |
14081 | #if wxUSE_UNICODE | |
14082 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14083 | #else | |
14084 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14085 | #endif | |
14086 | } | |
14087 | return pyobj; | |
14088 | } | |
14089 | ||
14090 | ||
14091 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14092 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14093 | return 1; | |
14094 | } | |
14095 | ||
14096 | ||
14097 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14098 | PyObject *pyobj; | |
14099 | ||
14100 | { | |
14101 | #if wxUSE_UNICODE | |
14102 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14103 | #else | |
14104 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14105 | #endif | |
14106 | } | |
14107 | return pyobj; | |
14108 | } | |
14109 | ||
14110 | ||
14111 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14112 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14113 | return 1; | |
14114 | } | |
14115 | ||
14116 | ||
14117 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14118 | PyObject *pyobj; | |
14119 | ||
14120 | { | |
14121 | #if wxUSE_UNICODE | |
14122 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14123 | #else | |
14124 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14125 | #endif | |
14126 | } | |
14127 | return pyobj; | |
14128 | } | |
14129 | ||
14130 | ||
14131 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14132 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14133 | return 1; | |
14134 | } | |
14135 | ||
14136 | ||
14137 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14138 | PyObject *pyobj; | |
14139 | ||
14140 | { | |
14141 | #if wxUSE_UNICODE | |
14142 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14143 | #else | |
14144 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14145 | #endif | |
14146 | } | |
14147 | return pyobj; | |
14148 | } | |
14149 | ||
14150 | ||
14151 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14152 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14153 | return 1; | |
14154 | } | |
14155 | ||
14156 | ||
14157 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14158 | PyObject *pyobj; | |
14159 | ||
14160 | { | |
14161 | #if wxUSE_UNICODE | |
14162 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14163 | #else | |
14164 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14165 | #endif | |
14166 | } | |
14167 | return pyobj; | |
14168 | } | |
14169 | ||
14170 | ||
14171 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14172 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14173 | return 1; | |
14174 | } | |
14175 | ||
14176 | ||
14177 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14178 | PyObject *pyobj; | |
14179 | ||
14180 | { | |
14181 | #if wxUSE_UNICODE | |
14182 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14183 | #else | |
14184 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14185 | #endif | |
14186 | } | |
14187 | return pyobj; | |
14188 | } | |
14189 | ||
14190 | ||
14191 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14192 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14193 | return 1; | |
14194 | } | |
14195 | ||
14196 | ||
14197 | static PyObject *_wrap_ART_ERROR_get() { | |
14198 | PyObject *pyobj; | |
14199 | ||
14200 | { | |
14201 | #if wxUSE_UNICODE | |
14202 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14203 | #else | |
14204 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14205 | #endif | |
14206 | } | |
14207 | return pyobj; | |
14208 | } | |
14209 | ||
14210 | ||
14211 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14212 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14213 | return 1; | |
14214 | } | |
14215 | ||
14216 | ||
14217 | static PyObject *_wrap_ART_QUESTION_get() { | |
14218 | PyObject *pyobj; | |
14219 | ||
14220 | { | |
14221 | #if wxUSE_UNICODE | |
14222 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14223 | #else | |
14224 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14225 | #endif | |
14226 | } | |
14227 | return pyobj; | |
14228 | } | |
14229 | ||
14230 | ||
14231 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14232 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14233 | return 1; | |
14234 | } | |
14235 | ||
14236 | ||
14237 | static PyObject *_wrap_ART_WARNING_get() { | |
14238 | PyObject *pyobj; | |
14239 | ||
14240 | { | |
14241 | #if wxUSE_UNICODE | |
14242 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14243 | #else | |
14244 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14245 | #endif | |
14246 | } | |
14247 | return pyobj; | |
14248 | } | |
14249 | ||
14250 | ||
14251 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14252 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14253 | return 1; | |
14254 | } | |
14255 | ||
14256 | ||
14257 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14258 | PyObject *pyobj; | |
14259 | ||
14260 | { | |
14261 | #if wxUSE_UNICODE | |
14262 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14263 | #else | |
14264 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14265 | #endif | |
14266 | } | |
14267 | return pyobj; | |
14268 | } | |
14269 | ||
14270 | ||
14271 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14272 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14273 | return 1; | |
14274 | } | |
14275 | ||
14276 | ||
14277 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14278 | PyObject *pyobj; | |
14279 | ||
14280 | { | |
14281 | #if wxUSE_UNICODE | |
14282 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14283 | #else | |
14284 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14285 | #endif | |
14286 | } | |
14287 | return pyobj; | |
14288 | } | |
14289 | ||
14290 | ||
14291 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14292 | PyObject *resultobj; | |
14293 | wxPyArtProvider *result; | |
14294 | char *kwnames[] = { | |
14295 | NULL | |
14296 | }; | |
14297 | ||
14298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14299 | { | |
14300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14301 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14302 | ||
14303 | wxPyEndAllowThreads(__tstate); | |
14304 | if (PyErr_Occurred()) SWIG_fail; | |
14305 | } | |
14306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14307 | return resultobj; | |
14308 | fail: | |
14309 | return NULL; | |
14310 | } | |
14311 | ||
14312 | ||
14313 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14314 | PyObject *resultobj; | |
14315 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14316 | PyObject *arg2 = (PyObject *) 0 ; | |
14317 | PyObject *arg3 = (PyObject *) 0 ; | |
14318 | PyObject * obj0 = 0 ; | |
14319 | PyObject * obj1 = 0 ; | |
14320 | PyObject * obj2 = 0 ; | |
14321 | char *kwnames[] = { | |
14322 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14323 | }; | |
14324 | ||
14325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14328 | arg2 = obj1; | |
14329 | arg3 = obj2; | |
14330 | { | |
14331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14332 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14333 | ||
14334 | wxPyEndAllowThreads(__tstate); | |
14335 | if (PyErr_Occurred()) SWIG_fail; | |
14336 | } | |
14337 | Py_INCREF(Py_None); resultobj = Py_None; | |
14338 | return resultobj; | |
14339 | fail: | |
14340 | return NULL; | |
14341 | } | |
14342 | ||
14343 | ||
14344 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14345 | PyObject *resultobj; | |
14346 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14347 | PyObject * obj0 = 0 ; | |
14348 | char *kwnames[] = { | |
14349 | (char *) "provider", NULL | |
14350 | }; | |
14351 | ||
14352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14355 | { | |
14356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14357 | wxPyArtProvider::PushProvider(arg1); | |
14358 | ||
14359 | wxPyEndAllowThreads(__tstate); | |
14360 | if (PyErr_Occurred()) SWIG_fail; | |
14361 | } | |
14362 | Py_INCREF(Py_None); resultobj = Py_None; | |
14363 | return resultobj; | |
14364 | fail: | |
14365 | return NULL; | |
14366 | } | |
14367 | ||
14368 | ||
14369 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14370 | PyObject *resultobj; | |
14371 | bool result; | |
14372 | char *kwnames[] = { | |
14373 | NULL | |
14374 | }; | |
14375 | ||
14376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14377 | { | |
14378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14379 | result = (bool)wxPyArtProvider::PopProvider(); | |
14380 | ||
14381 | wxPyEndAllowThreads(__tstate); | |
14382 | if (PyErr_Occurred()) SWIG_fail; | |
14383 | } | |
14384 | { | |
14385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14386 | } | |
14387 | return resultobj; | |
14388 | fail: | |
14389 | return NULL; | |
14390 | } | |
14391 | ||
14392 | ||
14393 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14394 | PyObject *resultobj; | |
14395 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14396 | bool result; | |
14397 | PyObject * obj0 = 0 ; | |
14398 | char *kwnames[] = { | |
14399 | (char *) "provider", NULL | |
14400 | }; | |
14401 | ||
14402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14405 | { | |
14406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14407 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14408 | ||
14409 | wxPyEndAllowThreads(__tstate); | |
14410 | if (PyErr_Occurred()) SWIG_fail; | |
14411 | } | |
14412 | { | |
14413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14414 | } | |
14415 | return resultobj; | |
14416 | fail: | |
14417 | return NULL; | |
14418 | } | |
14419 | ||
14420 | ||
14421 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14422 | PyObject *resultobj; | |
14423 | wxString *arg1 = 0 ; | |
14424 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14425 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14426 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14427 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14428 | wxBitmap result; | |
14429 | bool temp1 = False ; | |
14430 | bool temp2 = False ; | |
14431 | wxSize temp3 ; | |
14432 | PyObject * obj0 = 0 ; | |
14433 | PyObject * obj1 = 0 ; | |
14434 | PyObject * obj2 = 0 ; | |
14435 | char *kwnames[] = { | |
14436 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14437 | }; | |
14438 | ||
14439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14440 | { | |
14441 | arg1 = wxString_in_helper(obj0); | |
14442 | if (arg1 == NULL) SWIG_fail; | |
14443 | temp1 = True; | |
14444 | } | |
14445 | if (obj1) { | |
14446 | { | |
14447 | arg2 = wxString_in_helper(obj1); | |
14448 | if (arg2 == NULL) SWIG_fail; | |
14449 | temp2 = True; | |
14450 | } | |
14451 | } | |
14452 | if (obj2) { | |
14453 | { | |
14454 | arg3 = &temp3; | |
14455 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14456 | } | |
14457 | } | |
14458 | { | |
14459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14460 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14461 | ||
14462 | wxPyEndAllowThreads(__tstate); | |
14463 | if (PyErr_Occurred()) SWIG_fail; | |
14464 | } | |
14465 | { | |
14466 | wxBitmap * resultptr; | |
14467 | resultptr = new wxBitmap((wxBitmap &) result); | |
14468 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
14469 | } | |
14470 | { | |
14471 | if (temp1) | |
14472 | delete arg1; | |
14473 | } | |
14474 | { | |
14475 | if (temp2) | |
14476 | delete arg2; | |
14477 | } | |
14478 | return resultobj; | |
14479 | fail: | |
14480 | { | |
14481 | if (temp1) | |
14482 | delete arg1; | |
14483 | } | |
14484 | { | |
14485 | if (temp2) | |
14486 | delete arg2; | |
14487 | } | |
14488 | return NULL; | |
14489 | } | |
14490 | ||
14491 | ||
14492 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14493 | PyObject *resultobj; | |
14494 | wxString *arg1 = 0 ; | |
14495 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14496 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14497 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14498 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14499 | wxIcon result; | |
14500 | bool temp1 = False ; | |
14501 | bool temp2 = False ; | |
14502 | wxSize temp3 ; | |
14503 | PyObject * obj0 = 0 ; | |
14504 | PyObject * obj1 = 0 ; | |
14505 | PyObject * obj2 = 0 ; | |
14506 | char *kwnames[] = { | |
14507 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14508 | }; | |
14509 | ||
14510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14511 | { | |
14512 | arg1 = wxString_in_helper(obj0); | |
14513 | if (arg1 == NULL) SWIG_fail; | |
14514 | temp1 = True; | |
14515 | } | |
14516 | if (obj1) { | |
14517 | { | |
14518 | arg2 = wxString_in_helper(obj1); | |
14519 | if (arg2 == NULL) SWIG_fail; | |
14520 | temp2 = True; | |
14521 | } | |
14522 | } | |
14523 | if (obj2) { | |
14524 | { | |
14525 | arg3 = &temp3; | |
14526 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14527 | } | |
14528 | } | |
14529 | { | |
14530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14531 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14532 | ||
14533 | wxPyEndAllowThreads(__tstate); | |
14534 | if (PyErr_Occurred()) SWIG_fail; | |
14535 | } | |
14536 | { | |
14537 | wxIcon * resultptr; | |
14538 | resultptr = new wxIcon((wxIcon &) result); | |
14539 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
14540 | } | |
14541 | { | |
14542 | if (temp1) | |
14543 | delete arg1; | |
14544 | } | |
14545 | { | |
14546 | if (temp2) | |
14547 | delete arg2; | |
14548 | } | |
14549 | return resultobj; | |
14550 | fail: | |
14551 | { | |
14552 | if (temp1) | |
14553 | delete arg1; | |
14554 | } | |
14555 | { | |
14556 | if (temp2) | |
14557 | delete arg2; | |
14558 | } | |
14559 | return NULL; | |
14560 | } | |
14561 | ||
14562 | ||
14563 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14564 | PyObject *resultobj; | |
14565 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14566 | PyObject * obj0 = 0 ; | |
14567 | char *kwnames[] = { | |
14568 | (char *) "self", NULL | |
14569 | }; | |
14570 | ||
14571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14574 | { | |
14575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14576 | wxPyArtProvider_Destroy(arg1); | |
14577 | ||
14578 | wxPyEndAllowThreads(__tstate); | |
14579 | if (PyErr_Occurred()) SWIG_fail; | |
14580 | } | |
14581 | Py_INCREF(Py_None); resultobj = Py_None; | |
14582 | return resultobj; | |
14583 | fail: | |
14584 | return NULL; | |
14585 | } | |
14586 | ||
14587 | ||
14588 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { | |
14589 | PyObject *obj; | |
14590 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14591 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14592 | Py_INCREF(obj); | |
14593 | return Py_BuildValue((char *)""); | |
14594 | } | |
14595 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14596 | PyObject *resultobj; | |
14597 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14598 | PyObject * obj0 = 0 ; | |
14599 | char *kwnames[] = { | |
14600 | (char *) "self", NULL | |
14601 | }; | |
14602 | ||
14603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
14604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14606 | { | |
14607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14608 | delete arg1; | |
14609 | ||
14610 | wxPyEndAllowThreads(__tstate); | |
14611 | if (PyErr_Occurred()) SWIG_fail; | |
14612 | } | |
14613 | Py_INCREF(Py_None); resultobj = Py_None; | |
14614 | return resultobj; | |
14615 | fail: | |
14616 | return NULL; | |
14617 | } | |
14618 | ||
14619 | ||
14620 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14621 | PyObject *resultobj; | |
14622 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14623 | wxConfigBase *result; | |
14624 | PyObject * obj0 = 0 ; | |
14625 | char *kwnames[] = { | |
14626 | (char *) "config", NULL | |
14627 | }; | |
14628 | ||
14629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
14630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14632 | { | |
14633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14634 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14635 | ||
14636 | wxPyEndAllowThreads(__tstate); | |
14637 | if (PyErr_Occurred()) SWIG_fail; | |
14638 | } | |
14639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14640 | return resultobj; | |
14641 | fail: | |
14642 | return NULL; | |
14643 | } | |
14644 | ||
14645 | ||
14646 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14647 | PyObject *resultobj; | |
14648 | bool arg1 = (bool) True ; | |
14649 | wxConfigBase *result; | |
14650 | PyObject * obj0 = 0 ; | |
14651 | char *kwnames[] = { | |
14652 | (char *) "createOnDemand", NULL | |
14653 | }; | |
14654 | ||
14655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14656 | if (obj0) { | |
14657 | arg1 = (bool) SWIG_AsBool(obj0); | |
14658 | if (PyErr_Occurred()) SWIG_fail; | |
14659 | } | |
14660 | { | |
14661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14662 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14663 | ||
14664 | wxPyEndAllowThreads(__tstate); | |
14665 | if (PyErr_Occurred()) SWIG_fail; | |
14666 | } | |
14667 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14668 | return resultobj; | |
14669 | fail: | |
14670 | return NULL; | |
14671 | } | |
14672 | ||
14673 | ||
14674 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14675 | PyObject *resultobj; | |
14676 | wxConfigBase *result; | |
14677 | char *kwnames[] = { | |
14678 | NULL | |
14679 | }; | |
14680 | ||
14681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14682 | { | |
14683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14684 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14685 | ||
14686 | wxPyEndAllowThreads(__tstate); | |
14687 | if (PyErr_Occurred()) SWIG_fail; | |
14688 | } | |
14689 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14690 | return resultobj; | |
14691 | fail: | |
14692 | return NULL; | |
14693 | } | |
14694 | ||
14695 | ||
14696 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14697 | PyObject *resultobj; | |
14698 | char *kwnames[] = { | |
14699 | NULL | |
14700 | }; | |
14701 | ||
14702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14703 | { | |
14704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14705 | wxConfigBase::DontCreateOnDemand(); | |
14706 | ||
14707 | wxPyEndAllowThreads(__tstate); | |
14708 | if (PyErr_Occurred()) SWIG_fail; | |
14709 | } | |
14710 | Py_INCREF(Py_None); resultobj = Py_None; | |
14711 | return resultobj; | |
14712 | fail: | |
14713 | return NULL; | |
14714 | } | |
14715 | ||
14716 | ||
14717 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14718 | PyObject *resultobj; | |
14719 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14720 | wxString *arg2 = 0 ; | |
14721 | bool temp2 = False ; | |
14722 | PyObject * obj0 = 0 ; | |
14723 | PyObject * obj1 = 0 ; | |
14724 | char *kwnames[] = { | |
14725 | (char *) "self",(char *) "path", NULL | |
14726 | }; | |
14727 | ||
14728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
14729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14731 | { | |
14732 | arg2 = wxString_in_helper(obj1); | |
14733 | if (arg2 == NULL) SWIG_fail; | |
14734 | temp2 = True; | |
14735 | } | |
14736 | { | |
14737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14738 | (arg1)->SetPath((wxString const &)*arg2); | |
14739 | ||
14740 | wxPyEndAllowThreads(__tstate); | |
14741 | if (PyErr_Occurred()) SWIG_fail; | |
14742 | } | |
14743 | Py_INCREF(Py_None); resultobj = Py_None; | |
14744 | { | |
14745 | if (temp2) | |
14746 | delete arg2; | |
14747 | } | |
14748 | return resultobj; | |
14749 | fail: | |
14750 | { | |
14751 | if (temp2) | |
14752 | delete arg2; | |
14753 | } | |
14754 | return NULL; | |
14755 | } | |
14756 | ||
14757 | ||
14758 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14759 | PyObject *resultobj; | |
14760 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14761 | wxString *result; | |
14762 | PyObject * obj0 = 0 ; | |
14763 | char *kwnames[] = { | |
14764 | (char *) "self", NULL | |
14765 | }; | |
14766 | ||
14767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
14768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14770 | { | |
14771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14772 | { | |
14773 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14774 | result = (wxString *) &_result_ref; | |
14775 | } | |
14776 | ||
14777 | wxPyEndAllowThreads(__tstate); | |
14778 | if (PyErr_Occurred()) SWIG_fail; | |
14779 | } | |
14780 | { | |
14781 | #if wxUSE_UNICODE | |
14782 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14783 | #else | |
14784 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14785 | #endif | |
14786 | } | |
14787 | return resultobj; | |
14788 | fail: | |
14789 | return NULL; | |
14790 | } | |
14791 | ||
14792 | ||
14793 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14794 | PyObject *resultobj; | |
14795 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14796 | PyObject *result; | |
14797 | PyObject * obj0 = 0 ; | |
14798 | char *kwnames[] = { | |
14799 | (char *) "self", NULL | |
14800 | }; | |
14801 | ||
14802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
14803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14805 | { | |
14806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14807 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14808 | ||
14809 | wxPyEndAllowThreads(__tstate); | |
14810 | if (PyErr_Occurred()) SWIG_fail; | |
14811 | } | |
14812 | resultobj = result; | |
14813 | return resultobj; | |
14814 | fail: | |
14815 | return NULL; | |
14816 | } | |
14817 | ||
14818 | ||
14819 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14820 | PyObject *resultobj; | |
14821 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14822 | long arg2 ; | |
14823 | PyObject *result; | |
14824 | PyObject * obj0 = 0 ; | |
14825 | PyObject * obj1 = 0 ; | |
14826 | char *kwnames[] = { | |
14827 | (char *) "self",(char *) "index", NULL | |
14828 | }; | |
14829 | ||
14830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
14831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14833 | arg2 = (long) SWIG_AsLong(obj1); | |
14834 | if (PyErr_Occurred()) SWIG_fail; | |
14835 | { | |
14836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14837 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14838 | ||
14839 | wxPyEndAllowThreads(__tstate); | |
14840 | if (PyErr_Occurred()) SWIG_fail; | |
14841 | } | |
14842 | resultobj = result; | |
14843 | return resultobj; | |
14844 | fail: | |
14845 | return NULL; | |
14846 | } | |
14847 | ||
14848 | ||
14849 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14850 | PyObject *resultobj; | |
14851 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14852 | PyObject *result; | |
14853 | PyObject * obj0 = 0 ; | |
14854 | char *kwnames[] = { | |
14855 | (char *) "self", NULL | |
14856 | }; | |
14857 | ||
14858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
14859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14861 | { | |
14862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14863 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14864 | ||
14865 | wxPyEndAllowThreads(__tstate); | |
14866 | if (PyErr_Occurred()) SWIG_fail; | |
14867 | } | |
14868 | resultobj = result; | |
14869 | return resultobj; | |
14870 | fail: | |
14871 | return NULL; | |
14872 | } | |
14873 | ||
14874 | ||
14875 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14876 | PyObject *resultobj; | |
14877 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14878 | long arg2 ; | |
14879 | PyObject *result; | |
14880 | PyObject * obj0 = 0 ; | |
14881 | PyObject * obj1 = 0 ; | |
14882 | char *kwnames[] = { | |
14883 | (char *) "self",(char *) "index", NULL | |
14884 | }; | |
14885 | ||
14886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
14887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14889 | arg2 = (long) SWIG_AsLong(obj1); | |
14890 | if (PyErr_Occurred()) SWIG_fail; | |
14891 | { | |
14892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14893 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14894 | ||
14895 | wxPyEndAllowThreads(__tstate); | |
14896 | if (PyErr_Occurred()) SWIG_fail; | |
14897 | } | |
14898 | resultobj = result; | |
14899 | return resultobj; | |
14900 | fail: | |
14901 | return NULL; | |
14902 | } | |
14903 | ||
14904 | ||
14905 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14906 | PyObject *resultobj; | |
14907 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14908 | bool arg2 = (bool) False ; | |
14909 | size_t result; | |
14910 | PyObject * obj0 = 0 ; | |
14911 | PyObject * obj1 = 0 ; | |
14912 | char *kwnames[] = { | |
14913 | (char *) "self",(char *) "recursive", NULL | |
14914 | }; | |
14915 | ||
14916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
14917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14919 | if (obj1) { | |
14920 | arg2 = (bool) SWIG_AsBool(obj1); | |
14921 | if (PyErr_Occurred()) SWIG_fail; | |
14922 | } | |
14923 | { | |
14924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14925 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14926 | ||
14927 | wxPyEndAllowThreads(__tstate); | |
14928 | if (PyErr_Occurred()) SWIG_fail; | |
14929 | } | |
14930 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14931 | return resultobj; | |
14932 | fail: | |
14933 | return NULL; | |
14934 | } | |
14935 | ||
14936 | ||
14937 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14938 | PyObject *resultobj; | |
14939 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14940 | bool arg2 = (bool) False ; | |
14941 | size_t result; | |
14942 | PyObject * obj0 = 0 ; | |
14943 | PyObject * obj1 = 0 ; | |
14944 | char *kwnames[] = { | |
14945 | (char *) "self",(char *) "recursive", NULL | |
14946 | }; | |
14947 | ||
14948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
14949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14951 | if (obj1) { | |
14952 | arg2 = (bool) SWIG_AsBool(obj1); | |
14953 | if (PyErr_Occurred()) SWIG_fail; | |
14954 | } | |
14955 | { | |
14956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14957 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14958 | ||
14959 | wxPyEndAllowThreads(__tstate); | |
14960 | if (PyErr_Occurred()) SWIG_fail; | |
14961 | } | |
14962 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14963 | return resultobj; | |
14964 | fail: | |
14965 | return NULL; | |
14966 | } | |
14967 | ||
14968 | ||
14969 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14970 | PyObject *resultobj; | |
14971 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14972 | wxString *arg2 = 0 ; | |
14973 | bool result; | |
14974 | bool temp2 = False ; | |
14975 | PyObject * obj0 = 0 ; | |
14976 | PyObject * obj1 = 0 ; | |
14977 | char *kwnames[] = { | |
14978 | (char *) "self",(char *) "name", NULL | |
14979 | }; | |
14980 | ||
14981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
14982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14984 | { | |
14985 | arg2 = wxString_in_helper(obj1); | |
14986 | if (arg2 == NULL) SWIG_fail; | |
14987 | temp2 = True; | |
14988 | } | |
14989 | { | |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14991 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
14992 | ||
14993 | wxPyEndAllowThreads(__tstate); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
14996 | { | |
14997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14998 | } | |
14999 | { | |
15000 | if (temp2) | |
15001 | delete arg2; | |
15002 | } | |
15003 | return resultobj; | |
15004 | fail: | |
15005 | { | |
15006 | if (temp2) | |
15007 | delete arg2; | |
15008 | } | |
15009 | return NULL; | |
15010 | } | |
15011 | ||
15012 | ||
15013 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15014 | PyObject *resultobj; | |
15015 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15016 | wxString *arg2 = 0 ; | |
15017 | bool result; | |
15018 | bool temp2 = False ; | |
15019 | PyObject * obj0 = 0 ; | |
15020 | PyObject * obj1 = 0 ; | |
15021 | char *kwnames[] = { | |
15022 | (char *) "self",(char *) "name", NULL | |
15023 | }; | |
15024 | ||
15025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15028 | { | |
15029 | arg2 = wxString_in_helper(obj1); | |
15030 | if (arg2 == NULL) SWIG_fail; | |
15031 | temp2 = True; | |
15032 | } | |
15033 | { | |
15034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15035 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15036 | ||
15037 | wxPyEndAllowThreads(__tstate); | |
15038 | if (PyErr_Occurred()) SWIG_fail; | |
15039 | } | |
15040 | { | |
15041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15042 | } | |
15043 | { | |
15044 | if (temp2) | |
15045 | delete arg2; | |
15046 | } | |
15047 | return resultobj; | |
15048 | fail: | |
15049 | { | |
15050 | if (temp2) | |
15051 | delete arg2; | |
15052 | } | |
15053 | return NULL; | |
15054 | } | |
15055 | ||
15056 | ||
15057 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15058 | PyObject *resultobj; | |
15059 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15060 | wxString *arg2 = 0 ; | |
15061 | bool result; | |
15062 | bool temp2 = False ; | |
15063 | PyObject * obj0 = 0 ; | |
15064 | PyObject * obj1 = 0 ; | |
15065 | char *kwnames[] = { | |
15066 | (char *) "self",(char *) "name", NULL | |
15067 | }; | |
15068 | ||
15069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15072 | { | |
15073 | arg2 = wxString_in_helper(obj1); | |
15074 | if (arg2 == NULL) SWIG_fail; | |
15075 | temp2 = True; | |
15076 | } | |
15077 | { | |
15078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15079 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15080 | ||
15081 | wxPyEndAllowThreads(__tstate); | |
15082 | if (PyErr_Occurred()) SWIG_fail; | |
15083 | } | |
15084 | { | |
15085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15086 | } | |
15087 | { | |
15088 | if (temp2) | |
15089 | delete arg2; | |
15090 | } | |
15091 | return resultobj; | |
15092 | fail: | |
15093 | { | |
15094 | if (temp2) | |
15095 | delete arg2; | |
15096 | } | |
15097 | return NULL; | |
15098 | } | |
15099 | ||
15100 | ||
15101 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15102 | PyObject *resultobj; | |
15103 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15104 | wxString *arg2 = 0 ; | |
15105 | int result; | |
15106 | bool temp2 = False ; | |
15107 | PyObject * obj0 = 0 ; | |
15108 | PyObject * obj1 = 0 ; | |
15109 | char *kwnames[] = { | |
15110 | (char *) "self",(char *) "name", NULL | |
15111 | }; | |
15112 | ||
15113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15116 | { | |
15117 | arg2 = wxString_in_helper(obj1); | |
15118 | if (arg2 == NULL) SWIG_fail; | |
15119 | temp2 = True; | |
15120 | } | |
15121 | { | |
15122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15123 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15124 | ||
15125 | wxPyEndAllowThreads(__tstate); | |
15126 | if (PyErr_Occurred()) SWIG_fail; | |
15127 | } | |
15128 | resultobj = SWIG_FromInt((int)result); | |
15129 | { | |
15130 | if (temp2) | |
15131 | delete arg2; | |
15132 | } | |
15133 | return resultobj; | |
15134 | fail: | |
15135 | { | |
15136 | if (temp2) | |
15137 | delete arg2; | |
15138 | } | |
15139 | return NULL; | |
15140 | } | |
15141 | ||
15142 | ||
15143 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15144 | PyObject *resultobj; | |
15145 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15146 | wxString *arg2 = 0 ; | |
15147 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15148 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15149 | wxString result; | |
15150 | bool temp2 = False ; | |
15151 | bool temp3 = False ; | |
15152 | PyObject * obj0 = 0 ; | |
15153 | PyObject * obj1 = 0 ; | |
15154 | PyObject * obj2 = 0 ; | |
15155 | char *kwnames[] = { | |
15156 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15157 | }; | |
15158 | ||
15159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15162 | { | |
15163 | arg2 = wxString_in_helper(obj1); | |
15164 | if (arg2 == NULL) SWIG_fail; | |
15165 | temp2 = True; | |
15166 | } | |
15167 | if (obj2) { | |
15168 | { | |
15169 | arg3 = wxString_in_helper(obj2); | |
15170 | if (arg3 == NULL) SWIG_fail; | |
15171 | temp3 = True; | |
15172 | } | |
15173 | } | |
15174 | { | |
15175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15176 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15177 | ||
15178 | wxPyEndAllowThreads(__tstate); | |
15179 | if (PyErr_Occurred()) SWIG_fail; | |
15180 | } | |
15181 | { | |
15182 | #if wxUSE_UNICODE | |
15183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15184 | #else | |
15185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15186 | #endif | |
15187 | } | |
15188 | { | |
15189 | if (temp2) | |
15190 | delete arg2; | |
15191 | } | |
15192 | { | |
15193 | if (temp3) | |
15194 | delete arg3; | |
15195 | } | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | { | |
15199 | if (temp2) | |
15200 | delete arg2; | |
15201 | } | |
15202 | { | |
15203 | if (temp3) | |
15204 | delete arg3; | |
15205 | } | |
15206 | return NULL; | |
15207 | } | |
15208 | ||
15209 | ||
15210 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15211 | PyObject *resultobj; | |
15212 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15213 | wxString *arg2 = 0 ; | |
15214 | long arg3 = (long) 0 ; | |
15215 | long result; | |
15216 | bool temp2 = False ; | |
15217 | PyObject * obj0 = 0 ; | |
15218 | PyObject * obj1 = 0 ; | |
15219 | PyObject * obj2 = 0 ; | |
15220 | char *kwnames[] = { | |
15221 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15222 | }; | |
15223 | ||
15224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15227 | { | |
15228 | arg2 = wxString_in_helper(obj1); | |
15229 | if (arg2 == NULL) SWIG_fail; | |
15230 | temp2 = True; | |
15231 | } | |
15232 | if (obj2) { | |
15233 | arg3 = (long) SWIG_AsLong(obj2); | |
15234 | if (PyErr_Occurred()) SWIG_fail; | |
15235 | } | |
15236 | { | |
15237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15238 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15239 | ||
15240 | wxPyEndAllowThreads(__tstate); | |
15241 | if (PyErr_Occurred()) SWIG_fail; | |
15242 | } | |
15243 | resultobj = SWIG_FromLong((long)result); | |
15244 | { | |
15245 | if (temp2) | |
15246 | delete arg2; | |
15247 | } | |
15248 | return resultobj; | |
15249 | fail: | |
15250 | { | |
15251 | if (temp2) | |
15252 | delete arg2; | |
15253 | } | |
15254 | return NULL; | |
15255 | } | |
15256 | ||
15257 | ||
15258 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15259 | PyObject *resultobj; | |
15260 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15261 | wxString *arg2 = 0 ; | |
15262 | double arg3 = (double) 0.0 ; | |
15263 | double result; | |
15264 | bool temp2 = False ; | |
15265 | PyObject * obj0 = 0 ; | |
15266 | PyObject * obj1 = 0 ; | |
15267 | PyObject * obj2 = 0 ; | |
15268 | char *kwnames[] = { | |
15269 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15270 | }; | |
15271 | ||
15272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15275 | { | |
15276 | arg2 = wxString_in_helper(obj1); | |
15277 | if (arg2 == NULL) SWIG_fail; | |
15278 | temp2 = True; | |
15279 | } | |
15280 | if (obj2) { | |
15281 | arg3 = (double) SWIG_AsDouble(obj2); | |
15282 | if (PyErr_Occurred()) SWIG_fail; | |
15283 | } | |
15284 | { | |
15285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15286 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15287 | ||
15288 | wxPyEndAllowThreads(__tstate); | |
15289 | if (PyErr_Occurred()) SWIG_fail; | |
15290 | } | |
15291 | resultobj = SWIG_FromDouble((double)result); | |
15292 | { | |
15293 | if (temp2) | |
15294 | delete arg2; | |
15295 | } | |
15296 | return resultobj; | |
15297 | fail: | |
15298 | { | |
15299 | if (temp2) | |
15300 | delete arg2; | |
15301 | } | |
15302 | return NULL; | |
15303 | } | |
15304 | ||
15305 | ||
15306 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15307 | PyObject *resultobj; | |
15308 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15309 | wxString *arg2 = 0 ; | |
15310 | bool arg3 = (bool) False ; | |
15311 | bool result; | |
15312 | bool temp2 = False ; | |
15313 | PyObject * obj0 = 0 ; | |
15314 | PyObject * obj1 = 0 ; | |
15315 | PyObject * obj2 = 0 ; | |
15316 | char *kwnames[] = { | |
15317 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15318 | }; | |
15319 | ||
15320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15323 | { | |
15324 | arg2 = wxString_in_helper(obj1); | |
15325 | if (arg2 == NULL) SWIG_fail; | |
15326 | temp2 = True; | |
15327 | } | |
15328 | if (obj2) { | |
15329 | arg3 = (bool) SWIG_AsBool(obj2); | |
15330 | if (PyErr_Occurred()) SWIG_fail; | |
15331 | } | |
15332 | { | |
15333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15334 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15335 | ||
15336 | wxPyEndAllowThreads(__tstate); | |
15337 | if (PyErr_Occurred()) SWIG_fail; | |
15338 | } | |
15339 | { | |
15340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15341 | } | |
15342 | { | |
15343 | if (temp2) | |
15344 | delete arg2; | |
15345 | } | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | { | |
15349 | if (temp2) | |
15350 | delete arg2; | |
15351 | } | |
15352 | return NULL; | |
15353 | } | |
15354 | ||
15355 | ||
15356 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15357 | PyObject *resultobj; | |
15358 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15359 | wxString *arg2 = 0 ; | |
15360 | wxString *arg3 = 0 ; | |
15361 | bool result; | |
15362 | bool temp2 = False ; | |
15363 | bool temp3 = False ; | |
15364 | PyObject * obj0 = 0 ; | |
15365 | PyObject * obj1 = 0 ; | |
15366 | PyObject * obj2 = 0 ; | |
15367 | char *kwnames[] = { | |
15368 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15369 | }; | |
15370 | ||
15371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15374 | { | |
15375 | arg2 = wxString_in_helper(obj1); | |
15376 | if (arg2 == NULL) SWIG_fail; | |
15377 | temp2 = True; | |
15378 | } | |
15379 | { | |
15380 | arg3 = wxString_in_helper(obj2); | |
15381 | if (arg3 == NULL) SWIG_fail; | |
15382 | temp3 = True; | |
15383 | } | |
15384 | { | |
15385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15386 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15387 | ||
15388 | wxPyEndAllowThreads(__tstate); | |
15389 | if (PyErr_Occurred()) SWIG_fail; | |
15390 | } | |
15391 | { | |
15392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15393 | } | |
15394 | { | |
15395 | if (temp2) | |
15396 | delete arg2; | |
15397 | } | |
15398 | { | |
15399 | if (temp3) | |
15400 | delete arg3; | |
15401 | } | |
15402 | return resultobj; | |
15403 | fail: | |
15404 | { | |
15405 | if (temp2) | |
15406 | delete arg2; | |
15407 | } | |
15408 | { | |
15409 | if (temp3) | |
15410 | delete arg3; | |
15411 | } | |
15412 | return NULL; | |
15413 | } | |
15414 | ||
15415 | ||
15416 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15417 | PyObject *resultobj; | |
15418 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15419 | wxString *arg2 = 0 ; | |
15420 | long arg3 ; | |
15421 | bool result; | |
15422 | bool temp2 = False ; | |
15423 | PyObject * obj0 = 0 ; | |
15424 | PyObject * obj1 = 0 ; | |
15425 | PyObject * obj2 = 0 ; | |
15426 | char *kwnames[] = { | |
15427 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15428 | }; | |
15429 | ||
15430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15433 | { | |
15434 | arg2 = wxString_in_helper(obj1); | |
15435 | if (arg2 == NULL) SWIG_fail; | |
15436 | temp2 = True; | |
15437 | } | |
15438 | arg3 = (long) SWIG_AsLong(obj2); | |
15439 | if (PyErr_Occurred()) SWIG_fail; | |
15440 | { | |
15441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15442 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15443 | ||
15444 | wxPyEndAllowThreads(__tstate); | |
15445 | if (PyErr_Occurred()) SWIG_fail; | |
15446 | } | |
15447 | { | |
15448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15449 | } | |
15450 | { | |
15451 | if (temp2) | |
15452 | delete arg2; | |
15453 | } | |
15454 | return resultobj; | |
15455 | fail: | |
15456 | { | |
15457 | if (temp2) | |
15458 | delete arg2; | |
15459 | } | |
15460 | return NULL; | |
15461 | } | |
15462 | ||
15463 | ||
15464 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15465 | PyObject *resultobj; | |
15466 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15467 | wxString *arg2 = 0 ; | |
15468 | double arg3 ; | |
15469 | bool result; | |
15470 | bool temp2 = False ; | |
15471 | PyObject * obj0 = 0 ; | |
15472 | PyObject * obj1 = 0 ; | |
15473 | PyObject * obj2 = 0 ; | |
15474 | char *kwnames[] = { | |
15475 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15476 | }; | |
15477 | ||
15478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15481 | { | |
15482 | arg2 = wxString_in_helper(obj1); | |
15483 | if (arg2 == NULL) SWIG_fail; | |
15484 | temp2 = True; | |
15485 | } | |
15486 | arg3 = (double) SWIG_AsDouble(obj2); | |
15487 | if (PyErr_Occurred()) SWIG_fail; | |
15488 | { | |
15489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15490 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15491 | ||
15492 | wxPyEndAllowThreads(__tstate); | |
15493 | if (PyErr_Occurred()) SWIG_fail; | |
15494 | } | |
15495 | { | |
15496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15497 | } | |
15498 | { | |
15499 | if (temp2) | |
15500 | delete arg2; | |
15501 | } | |
15502 | return resultobj; | |
15503 | fail: | |
15504 | { | |
15505 | if (temp2) | |
15506 | delete arg2; | |
15507 | } | |
15508 | return NULL; | |
15509 | } | |
15510 | ||
15511 | ||
15512 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15513 | PyObject *resultobj; | |
15514 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15515 | wxString *arg2 = 0 ; | |
15516 | bool arg3 ; | |
15517 | bool result; | |
15518 | bool temp2 = False ; | |
15519 | PyObject * obj0 = 0 ; | |
15520 | PyObject * obj1 = 0 ; | |
15521 | PyObject * obj2 = 0 ; | |
15522 | char *kwnames[] = { | |
15523 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15524 | }; | |
15525 | ||
15526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15529 | { | |
15530 | arg2 = wxString_in_helper(obj1); | |
15531 | if (arg2 == NULL) SWIG_fail; | |
15532 | temp2 = True; | |
15533 | } | |
15534 | arg3 = (bool) SWIG_AsBool(obj2); | |
15535 | if (PyErr_Occurred()) SWIG_fail; | |
15536 | { | |
15537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15538 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15539 | ||
15540 | wxPyEndAllowThreads(__tstate); | |
15541 | if (PyErr_Occurred()) SWIG_fail; | |
15542 | } | |
15543 | { | |
15544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15545 | } | |
15546 | { | |
15547 | if (temp2) | |
15548 | delete arg2; | |
15549 | } | |
15550 | return resultobj; | |
15551 | fail: | |
15552 | { | |
15553 | if (temp2) | |
15554 | delete arg2; | |
15555 | } | |
15556 | return NULL; | |
15557 | } | |
15558 | ||
15559 | ||
15560 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15561 | PyObject *resultobj; | |
15562 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15563 | bool arg2 = (bool) False ; | |
15564 | bool result; | |
15565 | PyObject * obj0 = 0 ; | |
15566 | PyObject * obj1 = 0 ; | |
15567 | char *kwnames[] = { | |
15568 | (char *) "self",(char *) "currentOnly", NULL | |
15569 | }; | |
15570 | ||
15571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15574 | if (obj1) { | |
15575 | arg2 = (bool) SWIG_AsBool(obj1); | |
15576 | if (PyErr_Occurred()) SWIG_fail; | |
15577 | } | |
15578 | { | |
15579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15580 | result = (bool)(arg1)->Flush(arg2); | |
15581 | ||
15582 | wxPyEndAllowThreads(__tstate); | |
15583 | if (PyErr_Occurred()) SWIG_fail; | |
15584 | } | |
15585 | { | |
15586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15587 | } | |
15588 | return resultobj; | |
15589 | fail: | |
15590 | return NULL; | |
15591 | } | |
15592 | ||
15593 | ||
15594 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15595 | PyObject *resultobj; | |
15596 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15597 | wxString *arg2 = 0 ; | |
15598 | wxString *arg3 = 0 ; | |
15599 | bool result; | |
15600 | bool temp2 = False ; | |
15601 | bool temp3 = False ; | |
15602 | PyObject * obj0 = 0 ; | |
15603 | PyObject * obj1 = 0 ; | |
15604 | PyObject * obj2 = 0 ; | |
15605 | char *kwnames[] = { | |
15606 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15607 | }; | |
15608 | ||
15609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15612 | { | |
15613 | arg2 = wxString_in_helper(obj1); | |
15614 | if (arg2 == NULL) SWIG_fail; | |
15615 | temp2 = True; | |
15616 | } | |
15617 | { | |
15618 | arg3 = wxString_in_helper(obj2); | |
15619 | if (arg3 == NULL) SWIG_fail; | |
15620 | temp3 = True; | |
15621 | } | |
15622 | { | |
15623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15624 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15625 | ||
15626 | wxPyEndAllowThreads(__tstate); | |
15627 | if (PyErr_Occurred()) SWIG_fail; | |
15628 | } | |
15629 | { | |
15630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15631 | } | |
15632 | { | |
15633 | if (temp2) | |
15634 | delete arg2; | |
15635 | } | |
15636 | { | |
15637 | if (temp3) | |
15638 | delete arg3; | |
15639 | } | |
15640 | return resultobj; | |
15641 | fail: | |
15642 | { | |
15643 | if (temp2) | |
15644 | delete arg2; | |
15645 | } | |
15646 | { | |
15647 | if (temp3) | |
15648 | delete arg3; | |
15649 | } | |
15650 | return NULL; | |
15651 | } | |
15652 | ||
15653 | ||
15654 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15655 | PyObject *resultobj; | |
15656 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15657 | wxString *arg2 = 0 ; | |
15658 | wxString *arg3 = 0 ; | |
15659 | bool result; | |
15660 | bool temp2 = False ; | |
15661 | bool temp3 = False ; | |
15662 | PyObject * obj0 = 0 ; | |
15663 | PyObject * obj1 = 0 ; | |
15664 | PyObject * obj2 = 0 ; | |
15665 | char *kwnames[] = { | |
15666 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15667 | }; | |
15668 | ||
15669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15672 | { | |
15673 | arg2 = wxString_in_helper(obj1); | |
15674 | if (arg2 == NULL) SWIG_fail; | |
15675 | temp2 = True; | |
15676 | } | |
15677 | { | |
15678 | arg3 = wxString_in_helper(obj2); | |
15679 | if (arg3 == NULL) SWIG_fail; | |
15680 | temp3 = True; | |
15681 | } | |
15682 | { | |
15683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15684 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15685 | ||
15686 | wxPyEndAllowThreads(__tstate); | |
15687 | if (PyErr_Occurred()) SWIG_fail; | |
15688 | } | |
15689 | { | |
15690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15691 | } | |
15692 | { | |
15693 | if (temp2) | |
15694 | delete arg2; | |
15695 | } | |
15696 | { | |
15697 | if (temp3) | |
15698 | delete arg3; | |
15699 | } | |
15700 | return resultobj; | |
15701 | fail: | |
15702 | { | |
15703 | if (temp2) | |
15704 | delete arg2; | |
15705 | } | |
15706 | { | |
15707 | if (temp3) | |
15708 | delete arg3; | |
15709 | } | |
15710 | return NULL; | |
15711 | } | |
15712 | ||
15713 | ||
15714 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15715 | PyObject *resultobj; | |
15716 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15717 | wxString *arg2 = 0 ; | |
15718 | bool arg3 = (bool) True ; | |
15719 | bool result; | |
15720 | bool temp2 = False ; | |
15721 | PyObject * obj0 = 0 ; | |
15722 | PyObject * obj1 = 0 ; | |
15723 | PyObject * obj2 = 0 ; | |
15724 | char *kwnames[] = { | |
15725 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
15726 | }; | |
15727 | ||
15728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15731 | { | |
15732 | arg2 = wxString_in_helper(obj1); | |
15733 | if (arg2 == NULL) SWIG_fail; | |
15734 | temp2 = True; | |
15735 | } | |
15736 | if (obj2) { | |
15737 | arg3 = (bool) SWIG_AsBool(obj2); | |
15738 | if (PyErr_Occurred()) SWIG_fail; | |
15739 | } | |
15740 | { | |
15741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15742 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15743 | ||
15744 | wxPyEndAllowThreads(__tstate); | |
15745 | if (PyErr_Occurred()) SWIG_fail; | |
15746 | } | |
15747 | { | |
15748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15749 | } | |
15750 | { | |
15751 | if (temp2) | |
15752 | delete arg2; | |
15753 | } | |
15754 | return resultobj; | |
15755 | fail: | |
15756 | { | |
15757 | if (temp2) | |
15758 | delete arg2; | |
15759 | } | |
15760 | return NULL; | |
15761 | } | |
15762 | ||
15763 | ||
15764 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15765 | PyObject *resultobj; | |
15766 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15767 | wxString *arg2 = 0 ; | |
15768 | bool result; | |
15769 | bool temp2 = False ; | |
15770 | PyObject * obj0 = 0 ; | |
15771 | PyObject * obj1 = 0 ; | |
15772 | char *kwnames[] = { | |
15773 | (char *) "self",(char *) "key", NULL | |
15774 | }; | |
15775 | ||
15776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15779 | { | |
15780 | arg2 = wxString_in_helper(obj1); | |
15781 | if (arg2 == NULL) SWIG_fail; | |
15782 | temp2 = True; | |
15783 | } | |
15784 | { | |
15785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15786 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15787 | ||
15788 | wxPyEndAllowThreads(__tstate); | |
15789 | if (PyErr_Occurred()) SWIG_fail; | |
15790 | } | |
15791 | { | |
15792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15793 | } | |
15794 | { | |
15795 | if (temp2) | |
15796 | delete arg2; | |
15797 | } | |
15798 | return resultobj; | |
15799 | fail: | |
15800 | { | |
15801 | if (temp2) | |
15802 | delete arg2; | |
15803 | } | |
15804 | return NULL; | |
15805 | } | |
15806 | ||
15807 | ||
15808 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15809 | PyObject *resultobj; | |
15810 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15811 | bool result; | |
15812 | PyObject * obj0 = 0 ; | |
15813 | char *kwnames[] = { | |
15814 | (char *) "self", NULL | |
15815 | }; | |
15816 | ||
15817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15820 | { | |
15821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15822 | result = (bool)(arg1)->DeleteAll(); | |
15823 | ||
15824 | wxPyEndAllowThreads(__tstate); | |
15825 | if (PyErr_Occurred()) SWIG_fail; | |
15826 | } | |
15827 | { | |
15828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15829 | } | |
15830 | return resultobj; | |
15831 | fail: | |
15832 | return NULL; | |
15833 | } | |
15834 | ||
15835 | ||
15836 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15837 | PyObject *resultobj; | |
15838 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15839 | bool arg2 = (bool) True ; | |
15840 | PyObject * obj0 = 0 ; | |
15841 | PyObject * obj1 = 0 ; | |
15842 | char *kwnames[] = { | |
15843 | (char *) "self",(char *) "doIt", NULL | |
15844 | }; | |
15845 | ||
15846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15849 | if (obj1) { | |
15850 | arg2 = (bool) SWIG_AsBool(obj1); | |
15851 | if (PyErr_Occurred()) SWIG_fail; | |
15852 | } | |
15853 | { | |
15854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15855 | (arg1)->SetExpandEnvVars(arg2); | |
15856 | ||
15857 | wxPyEndAllowThreads(__tstate); | |
15858 | if (PyErr_Occurred()) SWIG_fail; | |
15859 | } | |
15860 | Py_INCREF(Py_None); resultobj = Py_None; | |
15861 | return resultobj; | |
15862 | fail: | |
15863 | return NULL; | |
15864 | } | |
15865 | ||
15866 | ||
15867 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15868 | PyObject *resultobj; | |
15869 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15870 | bool result; | |
15871 | PyObject * obj0 = 0 ; | |
15872 | char *kwnames[] = { | |
15873 | (char *) "self", NULL | |
15874 | }; | |
15875 | ||
15876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
15877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15879 | { | |
15880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15881 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
15882 | ||
15883 | wxPyEndAllowThreads(__tstate); | |
15884 | if (PyErr_Occurred()) SWIG_fail; | |
15885 | } | |
15886 | { | |
15887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15888 | } | |
15889 | return resultobj; | |
15890 | fail: | |
15891 | return NULL; | |
15892 | } | |
15893 | ||
15894 | ||
15895 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15896 | PyObject *resultobj; | |
15897 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15898 | bool arg2 = (bool) True ; | |
15899 | PyObject * obj0 = 0 ; | |
15900 | PyObject * obj1 = 0 ; | |
15901 | char *kwnames[] = { | |
15902 | (char *) "self",(char *) "doIt", NULL | |
15903 | }; | |
15904 | ||
15905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15908 | if (obj1) { | |
15909 | arg2 = (bool) SWIG_AsBool(obj1); | |
15910 | if (PyErr_Occurred()) SWIG_fail; | |
15911 | } | |
15912 | { | |
15913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15914 | (arg1)->SetRecordDefaults(arg2); | |
15915 | ||
15916 | wxPyEndAllowThreads(__tstate); | |
15917 | if (PyErr_Occurred()) SWIG_fail; | |
15918 | } | |
15919 | Py_INCREF(Py_None); resultobj = Py_None; | |
15920 | return resultobj; | |
15921 | fail: | |
15922 | return NULL; | |
15923 | } | |
15924 | ||
15925 | ||
15926 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15927 | PyObject *resultobj; | |
15928 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15929 | bool result; | |
15930 | PyObject * obj0 = 0 ; | |
15931 | char *kwnames[] = { | |
15932 | (char *) "self", NULL | |
15933 | }; | |
15934 | ||
15935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15938 | { | |
15939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15940 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15941 | ||
15942 | wxPyEndAllowThreads(__tstate); | |
15943 | if (PyErr_Occurred()) SWIG_fail; | |
15944 | } | |
15945 | { | |
15946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15947 | } | |
15948 | return resultobj; | |
15949 | fail: | |
15950 | return NULL; | |
15951 | } | |
15952 | ||
15953 | ||
15954 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15955 | PyObject *resultobj; | |
15956 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15957 | wxString *arg2 = 0 ; | |
15958 | wxString result; | |
15959 | bool temp2 = False ; | |
15960 | PyObject * obj0 = 0 ; | |
15961 | PyObject * obj1 = 0 ; | |
15962 | char *kwnames[] = { | |
15963 | (char *) "self",(char *) "str", NULL | |
15964 | }; | |
15965 | ||
15966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15969 | { | |
15970 | arg2 = wxString_in_helper(obj1); | |
15971 | if (arg2 == NULL) SWIG_fail; | |
15972 | temp2 = True; | |
15973 | } | |
15974 | { | |
15975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15976 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15977 | ||
15978 | wxPyEndAllowThreads(__tstate); | |
15979 | if (PyErr_Occurred()) SWIG_fail; | |
15980 | } | |
15981 | { | |
15982 | #if wxUSE_UNICODE | |
15983 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15984 | #else | |
15985 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15986 | #endif | |
15987 | } | |
15988 | { | |
15989 | if (temp2) | |
15990 | delete arg2; | |
15991 | } | |
15992 | return resultobj; | |
15993 | fail: | |
15994 | { | |
15995 | if (temp2) | |
15996 | delete arg2; | |
15997 | } | |
15998 | return NULL; | |
15999 | } | |
16000 | ||
16001 | ||
16002 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16003 | PyObject *resultobj; | |
16004 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16005 | wxString result; | |
16006 | PyObject * obj0 = 0 ; | |
16007 | char *kwnames[] = { | |
16008 | (char *) "self", NULL | |
16009 | }; | |
16010 | ||
16011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
16012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16014 | { | |
16015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16016 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16017 | ||
16018 | wxPyEndAllowThreads(__tstate); | |
16019 | if (PyErr_Occurred()) SWIG_fail; | |
16020 | } | |
16021 | { | |
16022 | #if wxUSE_UNICODE | |
16023 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16024 | #else | |
16025 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16026 | #endif | |
16027 | } | |
16028 | return resultobj; | |
16029 | fail: | |
16030 | return NULL; | |
16031 | } | |
16032 | ||
16033 | ||
16034 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16035 | PyObject *resultobj; | |
16036 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16037 | wxString result; | |
16038 | PyObject * obj0 = 0 ; | |
16039 | char *kwnames[] = { | |
16040 | (char *) "self", NULL | |
16041 | }; | |
16042 | ||
16043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
16044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16046 | { | |
16047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16048 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16049 | ||
16050 | wxPyEndAllowThreads(__tstate); | |
16051 | if (PyErr_Occurred()) SWIG_fail; | |
16052 | } | |
16053 | { | |
16054 | #if wxUSE_UNICODE | |
16055 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16056 | #else | |
16057 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16058 | #endif | |
16059 | } | |
16060 | return resultobj; | |
16061 | fail: | |
16062 | return NULL; | |
16063 | } | |
16064 | ||
16065 | ||
16066 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16067 | PyObject *resultobj; | |
16068 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16069 | wxString *arg2 = 0 ; | |
16070 | bool temp2 = False ; | |
16071 | PyObject * obj0 = 0 ; | |
16072 | PyObject * obj1 = 0 ; | |
16073 | char *kwnames[] = { | |
16074 | (char *) "self",(char *) "appName", NULL | |
16075 | }; | |
16076 | ||
16077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16080 | { | |
16081 | arg2 = wxString_in_helper(obj1); | |
16082 | if (arg2 == NULL) SWIG_fail; | |
16083 | temp2 = True; | |
16084 | } | |
16085 | { | |
16086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16087 | (arg1)->SetAppName((wxString const &)*arg2); | |
16088 | ||
16089 | wxPyEndAllowThreads(__tstate); | |
16090 | if (PyErr_Occurred()) SWIG_fail; | |
16091 | } | |
16092 | Py_INCREF(Py_None); resultobj = Py_None; | |
16093 | { | |
16094 | if (temp2) | |
16095 | delete arg2; | |
16096 | } | |
16097 | return resultobj; | |
16098 | fail: | |
16099 | { | |
16100 | if (temp2) | |
16101 | delete arg2; | |
16102 | } | |
16103 | return NULL; | |
16104 | } | |
16105 | ||
16106 | ||
16107 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16108 | PyObject *resultobj; | |
16109 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16110 | wxString *arg2 = 0 ; | |
16111 | bool temp2 = False ; | |
16112 | PyObject * obj0 = 0 ; | |
16113 | PyObject * obj1 = 0 ; | |
16114 | char *kwnames[] = { | |
16115 | (char *) "self",(char *) "vendorName", NULL | |
16116 | }; | |
16117 | ||
16118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16121 | { | |
16122 | arg2 = wxString_in_helper(obj1); | |
16123 | if (arg2 == NULL) SWIG_fail; | |
16124 | temp2 = True; | |
16125 | } | |
16126 | { | |
16127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16128 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16129 | ||
16130 | wxPyEndAllowThreads(__tstate); | |
16131 | if (PyErr_Occurred()) SWIG_fail; | |
16132 | } | |
16133 | Py_INCREF(Py_None); resultobj = Py_None; | |
16134 | { | |
16135 | if (temp2) | |
16136 | delete arg2; | |
16137 | } | |
16138 | return resultobj; | |
16139 | fail: | |
16140 | { | |
16141 | if (temp2) | |
16142 | delete arg2; | |
16143 | } | |
16144 | return NULL; | |
16145 | } | |
16146 | ||
16147 | ||
16148 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16149 | PyObject *resultobj; | |
16150 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16151 | long arg2 ; | |
16152 | PyObject * obj0 = 0 ; | |
16153 | PyObject * obj1 = 0 ; | |
16154 | char *kwnames[] = { | |
16155 | (char *) "self",(char *) "style", NULL | |
16156 | }; | |
16157 | ||
16158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16161 | arg2 = (long) SWIG_AsLong(obj1); | |
16162 | if (PyErr_Occurred()) SWIG_fail; | |
16163 | { | |
16164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16165 | (arg1)->SetStyle(arg2); | |
16166 | ||
16167 | wxPyEndAllowThreads(__tstate); | |
16168 | if (PyErr_Occurred()) SWIG_fail; | |
16169 | } | |
16170 | Py_INCREF(Py_None); resultobj = Py_None; | |
16171 | return resultobj; | |
16172 | fail: | |
16173 | return NULL; | |
16174 | } | |
16175 | ||
16176 | ||
16177 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16178 | PyObject *resultobj; | |
16179 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16180 | long result; | |
16181 | PyObject * obj0 = 0 ; | |
16182 | char *kwnames[] = { | |
16183 | (char *) "self", NULL | |
16184 | }; | |
16185 | ||
16186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16189 | { | |
16190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16191 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16192 | ||
16193 | wxPyEndAllowThreads(__tstate); | |
16194 | if (PyErr_Occurred()) SWIG_fail; | |
16195 | } | |
16196 | resultobj = SWIG_FromLong((long)result); | |
16197 | return resultobj; | |
16198 | fail: | |
16199 | return NULL; | |
16200 | } | |
16201 | ||
16202 | ||
16203 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16204 | PyObject *obj; | |
16205 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16206 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16207 | Py_INCREF(obj); | |
16208 | return Py_BuildValue((char *)""); | |
16209 | } | |
16210 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16211 | PyObject *resultobj; | |
16212 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16213 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16214 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16215 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16216 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16217 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16218 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16219 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16220 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16221 | wxConfig *result; | |
16222 | bool temp1 = False ; | |
16223 | bool temp2 = False ; | |
16224 | bool temp3 = False ; | |
16225 | bool temp4 = False ; | |
16226 | PyObject * obj0 = 0 ; | |
16227 | PyObject * obj1 = 0 ; | |
16228 | PyObject * obj2 = 0 ; | |
16229 | PyObject * obj3 = 0 ; | |
16230 | PyObject * obj4 = 0 ; | |
16231 | char *kwnames[] = { | |
16232 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16233 | }; | |
16234 | ||
16235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16236 | if (obj0) { | |
16237 | { | |
16238 | arg1 = wxString_in_helper(obj0); | |
16239 | if (arg1 == NULL) SWIG_fail; | |
16240 | temp1 = True; | |
16241 | } | |
16242 | } | |
16243 | if (obj1) { | |
16244 | { | |
16245 | arg2 = wxString_in_helper(obj1); | |
16246 | if (arg2 == NULL) SWIG_fail; | |
16247 | temp2 = True; | |
16248 | } | |
16249 | } | |
16250 | if (obj2) { | |
16251 | { | |
16252 | arg3 = wxString_in_helper(obj2); | |
16253 | if (arg3 == NULL) SWIG_fail; | |
16254 | temp3 = True; | |
16255 | } | |
16256 | } | |
16257 | if (obj3) { | |
16258 | { | |
16259 | arg4 = wxString_in_helper(obj3); | |
16260 | if (arg4 == NULL) SWIG_fail; | |
16261 | temp4 = True; | |
16262 | } | |
16263 | } | |
16264 | if (obj4) { | |
16265 | arg5 = (long) SWIG_AsLong(obj4); | |
16266 | if (PyErr_Occurred()) SWIG_fail; | |
16267 | } | |
16268 | { | |
16269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16270 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16271 | ||
16272 | wxPyEndAllowThreads(__tstate); | |
16273 | if (PyErr_Occurred()) SWIG_fail; | |
16274 | } | |
16275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16276 | { | |
16277 | if (temp1) | |
16278 | delete arg1; | |
16279 | } | |
16280 | { | |
16281 | if (temp2) | |
16282 | delete arg2; | |
16283 | } | |
16284 | { | |
16285 | if (temp3) | |
16286 | delete arg3; | |
16287 | } | |
16288 | { | |
16289 | if (temp4) | |
16290 | delete arg4; | |
16291 | } | |
16292 | return resultobj; | |
16293 | fail: | |
16294 | { | |
16295 | if (temp1) | |
16296 | delete arg1; | |
16297 | } | |
16298 | { | |
16299 | if (temp2) | |
16300 | delete arg2; | |
16301 | } | |
16302 | { | |
16303 | if (temp3) | |
16304 | delete arg3; | |
16305 | } | |
16306 | { | |
16307 | if (temp4) | |
16308 | delete arg4; | |
16309 | } | |
16310 | return NULL; | |
16311 | } | |
16312 | ||
16313 | ||
16314 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16315 | PyObject *resultobj; | |
16316 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16317 | PyObject * obj0 = 0 ; | |
16318 | char *kwnames[] = { | |
16319 | (char *) "self", NULL | |
16320 | }; | |
16321 | ||
16322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
16324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16325 | { | |
16326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16327 | delete arg1; | |
16328 | ||
16329 | wxPyEndAllowThreads(__tstate); | |
16330 | if (PyErr_Occurred()) SWIG_fail; | |
16331 | } | |
16332 | Py_INCREF(Py_None); resultobj = Py_None; | |
16333 | return resultobj; | |
16334 | fail: | |
16335 | return NULL; | |
16336 | } | |
16337 | ||
16338 | ||
16339 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16340 | PyObject *obj; | |
16341 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16342 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16343 | Py_INCREF(obj); | |
16344 | return Py_BuildValue((char *)""); | |
16345 | } | |
16346 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16347 | PyObject *resultobj; | |
16348 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16349 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16350 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16351 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16352 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16353 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16354 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16355 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16356 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16357 | wxFileConfig *result; | |
16358 | bool temp1 = False ; | |
16359 | bool temp2 = False ; | |
16360 | bool temp3 = False ; | |
16361 | bool temp4 = False ; | |
16362 | PyObject * obj0 = 0 ; | |
16363 | PyObject * obj1 = 0 ; | |
16364 | PyObject * obj2 = 0 ; | |
16365 | PyObject * obj3 = 0 ; | |
16366 | PyObject * obj4 = 0 ; | |
16367 | char *kwnames[] = { | |
16368 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16369 | }; | |
16370 | ||
16371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16372 | if (obj0) { | |
16373 | { | |
16374 | arg1 = wxString_in_helper(obj0); | |
16375 | if (arg1 == NULL) SWIG_fail; | |
16376 | temp1 = True; | |
16377 | } | |
16378 | } | |
16379 | if (obj1) { | |
16380 | { | |
16381 | arg2 = wxString_in_helper(obj1); | |
16382 | if (arg2 == NULL) SWIG_fail; | |
16383 | temp2 = True; | |
16384 | } | |
16385 | } | |
16386 | if (obj2) { | |
16387 | { | |
16388 | arg3 = wxString_in_helper(obj2); | |
16389 | if (arg3 == NULL) SWIG_fail; | |
16390 | temp3 = True; | |
16391 | } | |
16392 | } | |
16393 | if (obj3) { | |
16394 | { | |
16395 | arg4 = wxString_in_helper(obj3); | |
16396 | if (arg4 == NULL) SWIG_fail; | |
16397 | temp4 = True; | |
16398 | } | |
16399 | } | |
16400 | if (obj4) { | |
16401 | arg5 = (long) SWIG_AsLong(obj4); | |
16402 | if (PyErr_Occurred()) SWIG_fail; | |
16403 | } | |
16404 | { | |
16405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16406 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16407 | ||
16408 | wxPyEndAllowThreads(__tstate); | |
16409 | if (PyErr_Occurred()) SWIG_fail; | |
16410 | } | |
16411 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
16412 | { | |
16413 | if (temp1) | |
16414 | delete arg1; | |
16415 | } | |
16416 | { | |
16417 | if (temp2) | |
16418 | delete arg2; | |
16419 | } | |
16420 | { | |
16421 | if (temp3) | |
16422 | delete arg3; | |
16423 | } | |
16424 | { | |
16425 | if (temp4) | |
16426 | delete arg4; | |
16427 | } | |
16428 | return resultobj; | |
16429 | fail: | |
16430 | { | |
16431 | if (temp1) | |
16432 | delete arg1; | |
16433 | } | |
16434 | { | |
16435 | if (temp2) | |
16436 | delete arg2; | |
16437 | } | |
16438 | { | |
16439 | if (temp3) | |
16440 | delete arg3; | |
16441 | } | |
16442 | { | |
16443 | if (temp4) | |
16444 | delete arg4; | |
16445 | } | |
16446 | return NULL; | |
16447 | } | |
16448 | ||
16449 | ||
16450 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16451 | PyObject *resultobj; | |
16452 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16453 | PyObject * obj0 = 0 ; | |
16454 | char *kwnames[] = { | |
16455 | (char *) "self", NULL | |
16456 | }; | |
16457 | ||
16458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
16460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16461 | { | |
16462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16463 | delete arg1; | |
16464 | ||
16465 | wxPyEndAllowThreads(__tstate); | |
16466 | if (PyErr_Occurred()) SWIG_fail; | |
16467 | } | |
16468 | Py_INCREF(Py_None); resultobj = Py_None; | |
16469 | return resultobj; | |
16470 | fail: | |
16471 | return NULL; | |
16472 | } | |
16473 | ||
16474 | ||
16475 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16476 | PyObject *obj; | |
16477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16478 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16479 | Py_INCREF(obj); | |
16480 | return Py_BuildValue((char *)""); | |
16481 | } | |
16482 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16483 | PyObject *resultobj; | |
16484 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16485 | wxString *arg2 = 0 ; | |
16486 | wxConfigPathChanger *result; | |
16487 | bool temp2 = False ; | |
16488 | PyObject * obj0 = 0 ; | |
16489 | PyObject * obj1 = 0 ; | |
16490 | char *kwnames[] = { | |
16491 | (char *) "config",(char *) "entry", NULL | |
16492 | }; | |
16493 | ||
16494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
16495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16497 | { | |
16498 | arg2 = wxString_in_helper(obj1); | |
16499 | if (arg2 == NULL) SWIG_fail; | |
16500 | temp2 = True; | |
16501 | } | |
16502 | { | |
16503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16504 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16505 | ||
16506 | wxPyEndAllowThreads(__tstate); | |
16507 | if (PyErr_Occurred()) SWIG_fail; | |
16508 | } | |
16509 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
16510 | { | |
16511 | if (temp2) | |
16512 | delete arg2; | |
16513 | } | |
16514 | return resultobj; | |
16515 | fail: | |
16516 | { | |
16517 | if (temp2) | |
16518 | delete arg2; | |
16519 | } | |
16520 | return NULL; | |
16521 | } | |
16522 | ||
16523 | ||
16524 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16525 | PyObject *resultobj; | |
16526 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16527 | PyObject * obj0 = 0 ; | |
16528 | char *kwnames[] = { | |
16529 | (char *) "self", NULL | |
16530 | }; | |
16531 | ||
16532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
16533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16535 | { | |
16536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16537 | delete arg1; | |
16538 | ||
16539 | wxPyEndAllowThreads(__tstate); | |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
16541 | } | |
16542 | Py_INCREF(Py_None); resultobj = Py_None; | |
16543 | return resultobj; | |
16544 | fail: | |
16545 | return NULL; | |
16546 | } | |
16547 | ||
16548 | ||
16549 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16550 | PyObject *resultobj; | |
16551 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16552 | wxString *result; | |
16553 | PyObject * obj0 = 0 ; | |
16554 | char *kwnames[] = { | |
16555 | (char *) "self", NULL | |
16556 | }; | |
16557 | ||
16558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
16559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16561 | { | |
16562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16563 | { | |
16564 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16565 | result = (wxString *) &_result_ref; | |
16566 | } | |
16567 | ||
16568 | wxPyEndAllowThreads(__tstate); | |
16569 | if (PyErr_Occurred()) SWIG_fail; | |
16570 | } | |
16571 | { | |
16572 | #if wxUSE_UNICODE | |
16573 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16574 | #else | |
16575 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16576 | #endif | |
16577 | } | |
16578 | return resultobj; | |
16579 | fail: | |
16580 | return NULL; | |
16581 | } | |
16582 | ||
16583 | ||
16584 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16585 | PyObject *obj; | |
16586 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16587 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16588 | Py_INCREF(obj); | |
16589 | return Py_BuildValue((char *)""); | |
16590 | } | |
16591 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16592 | PyObject *resultobj; | |
16593 | wxString *arg1 = 0 ; | |
16594 | wxString result; | |
16595 | bool temp1 = False ; | |
16596 | PyObject * obj0 = 0 ; | |
16597 | char *kwnames[] = { | |
16598 | (char *) "sz", NULL | |
16599 | }; | |
16600 | ||
16601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16602 | { | |
16603 | arg1 = wxString_in_helper(obj0); | |
16604 | if (arg1 == NULL) SWIG_fail; | |
16605 | temp1 = True; | |
16606 | } | |
16607 | { | |
16608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16609 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16610 | ||
16611 | wxPyEndAllowThreads(__tstate); | |
16612 | if (PyErr_Occurred()) SWIG_fail; | |
16613 | } | |
16614 | { | |
16615 | #if wxUSE_UNICODE | |
16616 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16617 | #else | |
16618 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16619 | #endif | |
16620 | } | |
16621 | { | |
16622 | if (temp1) | |
16623 | delete arg1; | |
16624 | } | |
16625 | return resultobj; | |
16626 | fail: | |
16627 | { | |
16628 | if (temp1) | |
16629 | delete arg1; | |
16630 | } | |
16631 | return NULL; | |
16632 | } | |
16633 | ||
16634 | ||
16635 | static int _wrap_DateFormatStr_set(PyObject *_val) { | |
16636 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16637 | return 1; | |
16638 | } | |
16639 | ||
16640 | ||
16641 | static PyObject *_wrap_DateFormatStr_get() { | |
16642 | PyObject *pyobj; | |
16643 | ||
16644 | { | |
16645 | #if wxUSE_UNICODE | |
16646 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16647 | #else | |
16648 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16649 | #endif | |
16650 | } | |
16651 | return pyobj; | |
16652 | } | |
16653 | ||
16654 | ||
16655 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16656 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16657 | return 1; | |
16658 | } | |
16659 | ||
16660 | ||
16661 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16662 | PyObject *pyobj; | |
16663 | ||
16664 | { | |
16665 | #if wxUSE_UNICODE | |
16666 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16667 | #else | |
16668 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16669 | #endif | |
16670 | } | |
16671 | return pyobj; | |
16672 | } | |
16673 | ||
16674 | ||
16675 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16676 | PyObject *resultobj; | |
16677 | int arg1 ; | |
16678 | PyObject * obj0 = 0 ; | |
16679 | char *kwnames[] = { | |
16680 | (char *) "country", NULL | |
16681 | }; | |
16682 | ||
16683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
16684 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16685 | if (PyErr_Occurred()) SWIG_fail; | |
16686 | { | |
16687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16688 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16689 | ||
16690 | wxPyEndAllowThreads(__tstate); | |
16691 | if (PyErr_Occurred()) SWIG_fail; | |
16692 | } | |
16693 | Py_INCREF(Py_None); resultobj = Py_None; | |
16694 | return resultobj; | |
16695 | fail: | |
16696 | return NULL; | |
16697 | } | |
16698 | ||
16699 | ||
16700 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16701 | PyObject *resultobj; | |
16702 | int result; | |
16703 | char *kwnames[] = { | |
16704 | NULL | |
16705 | }; | |
16706 | ||
16707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16708 | { | |
16709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16710 | result = (int)wxDateTime::GetCountry(); | |
16711 | ||
16712 | wxPyEndAllowThreads(__tstate); | |
16713 | if (PyErr_Occurred()) SWIG_fail; | |
16714 | } | |
16715 | resultobj = SWIG_FromInt((int)result); | |
16716 | return resultobj; | |
16717 | fail: | |
16718 | return NULL; | |
16719 | } | |
16720 | ||
16721 | ||
16722 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16723 | PyObject *resultobj; | |
16724 | int arg1 = (int) wxDateTime::Country_Default ; | |
16725 | bool result; | |
16726 | PyObject * obj0 = 0 ; | |
16727 | char *kwnames[] = { | |
16728 | (char *) "country", NULL | |
16729 | }; | |
16730 | ||
16731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
16732 | if (obj0) { | |
16733 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | } | |
16736 | { | |
16737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16738 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16739 | ||
16740 | wxPyEndAllowThreads(__tstate); | |
16741 | if (PyErr_Occurred()) SWIG_fail; | |
16742 | } | |
16743 | { | |
16744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16745 | } | |
16746 | return resultobj; | |
16747 | fail: | |
16748 | return NULL; | |
16749 | } | |
16750 | ||
16751 | ||
16752 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16753 | PyObject *resultobj; | |
16754 | int arg1 = (int) wxDateTime::Gregorian ; | |
16755 | int result; | |
16756 | PyObject * obj0 = 0 ; | |
16757 | char *kwnames[] = { | |
16758 | (char *) "cal", NULL | |
16759 | }; | |
16760 | ||
16761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
16762 | if (obj0) { | |
16763 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16764 | if (PyErr_Occurred()) SWIG_fail; | |
16765 | } | |
16766 | { | |
16767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16768 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16769 | ||
16770 | wxPyEndAllowThreads(__tstate); | |
16771 | if (PyErr_Occurred()) SWIG_fail; | |
16772 | } | |
16773 | resultobj = SWIG_FromInt((int)result); | |
16774 | return resultobj; | |
16775 | fail: | |
16776 | return NULL; | |
16777 | } | |
16778 | ||
16779 | ||
16780 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16781 | PyObject *resultobj; | |
16782 | int arg1 ; | |
16783 | int result; | |
16784 | PyObject * obj0 = 0 ; | |
16785 | char *kwnames[] = { | |
16786 | (char *) "year", NULL | |
16787 | }; | |
16788 | ||
16789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
16790 | arg1 = (int) SWIG_AsInt(obj0); | |
16791 | if (PyErr_Occurred()) SWIG_fail; | |
16792 | { | |
16793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16794 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16795 | ||
16796 | wxPyEndAllowThreads(__tstate); | |
16797 | if (PyErr_Occurred()) SWIG_fail; | |
16798 | } | |
16799 | resultobj = SWIG_FromInt((int)result); | |
16800 | return resultobj; | |
16801 | fail: | |
16802 | return NULL; | |
16803 | } | |
16804 | ||
16805 | ||
16806 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16807 | PyObject *resultobj; | |
16808 | int arg1 = (int) wxDateTime::Gregorian ; | |
16809 | int result; | |
16810 | PyObject * obj0 = 0 ; | |
16811 | char *kwnames[] = { | |
16812 | (char *) "cal", NULL | |
16813 | }; | |
16814 | ||
16815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
16816 | if (obj0) { | |
16817 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16818 | if (PyErr_Occurred()) SWIG_fail; | |
16819 | } | |
16820 | { | |
16821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16822 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16823 | ||
16824 | wxPyEndAllowThreads(__tstate); | |
16825 | if (PyErr_Occurred()) SWIG_fail; | |
16826 | } | |
16827 | resultobj = SWIG_FromInt((int)result); | |
16828 | return resultobj; | |
16829 | fail: | |
16830 | return NULL; | |
16831 | } | |
16832 | ||
16833 | ||
16834 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16835 | PyObject *resultobj; | |
16836 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16837 | int arg2 = (int) wxDateTime::Gregorian ; | |
16838 | bool result; | |
16839 | PyObject * obj0 = 0 ; | |
16840 | PyObject * obj1 = 0 ; | |
16841 | char *kwnames[] = { | |
16842 | (char *) "year",(char *) "cal", NULL | |
16843 | }; | |
16844 | ||
16845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
16846 | if (obj0) { | |
16847 | arg1 = (int) SWIG_AsInt(obj0); | |
16848 | if (PyErr_Occurred()) SWIG_fail; | |
16849 | } | |
16850 | if (obj1) { | |
16851 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
16853 | } | |
16854 | { | |
16855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16856 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16857 | ||
16858 | wxPyEndAllowThreads(__tstate); | |
16859 | if (PyErr_Occurred()) SWIG_fail; | |
16860 | } | |
16861 | { | |
16862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16863 | } | |
16864 | return resultobj; | |
16865 | fail: | |
16866 | return NULL; | |
16867 | } | |
16868 | ||
16869 | ||
16870 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16871 | PyObject *resultobj; | |
16872 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16873 | int result; | |
16874 | PyObject * obj0 = 0 ; | |
16875 | char *kwnames[] = { | |
16876 | (char *) "year", NULL | |
16877 | }; | |
16878 | ||
16879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
16880 | if (obj0) { | |
16881 | arg1 = (int) SWIG_AsInt(obj0); | |
16882 | if (PyErr_Occurred()) SWIG_fail; | |
16883 | } | |
16884 | { | |
16885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16886 | result = (int)wxDateTime::GetCentury(arg1); | |
16887 | ||
16888 | wxPyEndAllowThreads(__tstate); | |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
16890 | } | |
16891 | resultobj = SWIG_FromInt((int)result); | |
16892 | return resultobj; | |
16893 | fail: | |
16894 | return NULL; | |
16895 | } | |
16896 | ||
16897 | ||
16898 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16899 | PyObject *resultobj; | |
16900 | int arg1 ; | |
16901 | int arg2 = (int) wxDateTime::Gregorian ; | |
16902 | int result; | |
16903 | PyObject * obj0 = 0 ; | |
16904 | PyObject * obj1 = 0 ; | |
16905 | char *kwnames[] = { | |
16906 | (char *) "year",(char *) "cal", NULL | |
16907 | }; | |
16908 | ||
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
16910 | arg1 = (int) SWIG_AsInt(obj0); | |
16911 | if (PyErr_Occurred()) SWIG_fail; | |
16912 | if (obj1) { | |
16913 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
16915 | } | |
16916 | { | |
16917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16918 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
16919 | ||
16920 | wxPyEndAllowThreads(__tstate); | |
16921 | if (PyErr_Occurred()) SWIG_fail; | |
16922 | } | |
16923 | resultobj = SWIG_FromInt((int)result); | |
16924 | return resultobj; | |
16925 | fail: | |
16926 | return NULL; | |
16927 | } | |
16928 | ||
16929 | ||
16930 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16931 | PyObject *resultobj; | |
16932 | int arg1 ; | |
16933 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16934 | int arg3 = (int) wxDateTime::Gregorian ; | |
16935 | int result; | |
16936 | PyObject * obj0 = 0 ; | |
16937 | PyObject * obj1 = 0 ; | |
16938 | PyObject * obj2 = 0 ; | |
16939 | char *kwnames[] = { | |
16940 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16941 | }; | |
16942 | ||
16943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16944 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
16945 | if (PyErr_Occurred()) SWIG_fail; | |
16946 | if (obj1) { | |
16947 | arg2 = (int) SWIG_AsInt(obj1); | |
16948 | if (PyErr_Occurred()) SWIG_fail; | |
16949 | } | |
16950 | if (obj2) { | |
16951 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | { | |
16955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16956 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
16957 | ||
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | resultobj = SWIG_FromInt((int)result); | |
16962 | return resultobj; | |
16963 | fail: | |
16964 | return NULL; | |
16965 | } | |
16966 | ||
16967 | ||
16968 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16969 | PyObject *resultobj; | |
16970 | int arg1 ; | |
16971 | int arg2 = (int) wxDateTime::Name_Full ; | |
16972 | wxString result; | |
16973 | PyObject * obj0 = 0 ; | |
16974 | PyObject * obj1 = 0 ; | |
16975 | char *kwnames[] = { | |
16976 | (char *) "month",(char *) "flags", NULL | |
16977 | }; | |
16978 | ||
16979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
16980 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
16981 | if (PyErr_Occurred()) SWIG_fail; | |
16982 | if (obj1) { | |
16983 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
16984 | if (PyErr_Occurred()) SWIG_fail; | |
16985 | } | |
16986 | { | |
16987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16988 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
16989 | ||
16990 | wxPyEndAllowThreads(__tstate); | |
16991 | if (PyErr_Occurred()) SWIG_fail; | |
16992 | } | |
16993 | { | |
16994 | #if wxUSE_UNICODE | |
16995 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16996 | #else | |
16997 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16998 | #endif | |
16999 | } | |
17000 | return resultobj; | |
17001 | fail: | |
17002 | return NULL; | |
17003 | } | |
17004 | ||
17005 | ||
17006 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17007 | PyObject *resultobj; | |
17008 | int arg1 ; | |
17009 | int arg2 = (int) wxDateTime::Name_Full ; | |
17010 | wxString result; | |
17011 | PyObject * obj0 = 0 ; | |
17012 | PyObject * obj1 = 0 ; | |
17013 | char *kwnames[] = { | |
17014 | (char *) "weekday",(char *) "flags", NULL | |
17015 | }; | |
17016 | ||
17017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
17018 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); | |
17019 | if (PyErr_Occurred()) SWIG_fail; | |
17020 | if (obj1) { | |
17021 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
17022 | if (PyErr_Occurred()) SWIG_fail; | |
17023 | } | |
17024 | { | |
17025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17026 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17027 | ||
17028 | wxPyEndAllowThreads(__tstate); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
17031 | { | |
17032 | #if wxUSE_UNICODE | |
17033 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17034 | #else | |
17035 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17036 | #endif | |
17037 | } | |
17038 | return resultobj; | |
17039 | fail: | |
17040 | return NULL; | |
17041 | } | |
17042 | ||
17043 | ||
17044 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17045 | PyObject *resultobj; | |
17046 | wxString *arg1 = (wxString *) 0 ; | |
17047 | wxString *arg2 = (wxString *) 0 ; | |
17048 | bool temp1 = False ; | |
17049 | bool temp2 = False ; | |
17050 | PyObject * obj0 = 0 ; | |
17051 | PyObject * obj1 = 0 ; | |
17052 | char *kwnames[] = { | |
17053 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17054 | }; | |
17055 | ||
17056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
17057 | { | |
17058 | arg1 = wxString_in_helper(obj0); | |
17059 | if (arg1 == NULL) SWIG_fail; | |
17060 | temp1 = True; | |
17061 | } | |
17062 | { | |
17063 | arg2 = wxString_in_helper(obj1); | |
17064 | if (arg2 == NULL) SWIG_fail; | |
17065 | temp2 = True; | |
17066 | } | |
17067 | { | |
17068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17069 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17070 | ||
17071 | wxPyEndAllowThreads(__tstate); | |
17072 | if (PyErr_Occurred()) SWIG_fail; | |
17073 | } | |
17074 | Py_INCREF(Py_None); resultobj = Py_None; | |
17075 | { | |
17076 | if (temp1) | |
17077 | delete arg1; | |
17078 | } | |
17079 | { | |
17080 | if (temp2) | |
17081 | delete arg2; | |
17082 | } | |
17083 | return resultobj; | |
17084 | fail: | |
17085 | { | |
17086 | if (temp1) | |
17087 | delete arg1; | |
17088 | } | |
17089 | { | |
17090 | if (temp2) | |
17091 | delete arg2; | |
17092 | } | |
17093 | return NULL; | |
17094 | } | |
17095 | ||
17096 | ||
17097 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17098 | PyObject *resultobj; | |
17099 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17100 | int arg2 = (int) wxDateTime::Country_Default ; | |
17101 | bool result; | |
17102 | PyObject * obj0 = 0 ; | |
17103 | PyObject * obj1 = 0 ; | |
17104 | char *kwnames[] = { | |
17105 | (char *) "year",(char *) "country", NULL | |
17106 | }; | |
17107 | ||
17108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17109 | if (obj0) { | |
17110 | arg1 = (int) SWIG_AsInt(obj0); | |
17111 | if (PyErr_Occurred()) SWIG_fail; | |
17112 | } | |
17113 | if (obj1) { | |
17114 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
17117 | { | |
17118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17119 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17120 | ||
17121 | wxPyEndAllowThreads(__tstate); | |
17122 | if (PyErr_Occurred()) SWIG_fail; | |
17123 | } | |
17124 | { | |
17125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17126 | } | |
17127 | return resultobj; | |
17128 | fail: | |
17129 | return NULL; | |
17130 | } | |
17131 | ||
17132 | ||
17133 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17134 | PyObject *resultobj; | |
17135 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17136 | int arg2 = (int) wxDateTime::Country_Default ; | |
17137 | wxDateTime result; | |
17138 | PyObject * obj0 = 0 ; | |
17139 | PyObject * obj1 = 0 ; | |
17140 | char *kwnames[] = { | |
17141 | (char *) "year",(char *) "country", NULL | |
17142 | }; | |
17143 | ||
17144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17145 | if (obj0) { | |
17146 | arg1 = (int) SWIG_AsInt(obj0); | |
17147 | if (PyErr_Occurred()) SWIG_fail; | |
17148 | } | |
17149 | if (obj1) { | |
17150 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17151 | if (PyErr_Occurred()) SWIG_fail; | |
17152 | } | |
17153 | { | |
17154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17155 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17156 | ||
17157 | wxPyEndAllowThreads(__tstate); | |
17158 | if (PyErr_Occurred()) SWIG_fail; | |
17159 | } | |
17160 | { | |
17161 | wxDateTime * resultptr; | |
17162 | resultptr = new wxDateTime((wxDateTime &) result); | |
17163 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17164 | } | |
17165 | return resultobj; | |
17166 | fail: | |
17167 | return NULL; | |
17168 | } | |
17169 | ||
17170 | ||
17171 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17172 | PyObject *resultobj; | |
17173 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17174 | int arg2 = (int) wxDateTime::Country_Default ; | |
17175 | wxDateTime result; | |
17176 | PyObject * obj0 = 0 ; | |
17177 | PyObject * obj1 = 0 ; | |
17178 | char *kwnames[] = { | |
17179 | (char *) "year",(char *) "country", NULL | |
17180 | }; | |
17181 | ||
17182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17183 | if (obj0) { | |
17184 | arg1 = (int) SWIG_AsInt(obj0); | |
17185 | if (PyErr_Occurred()) SWIG_fail; | |
17186 | } | |
17187 | if (obj1) { | |
17188 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17189 | if (PyErr_Occurred()) SWIG_fail; | |
17190 | } | |
17191 | { | |
17192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17193 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17194 | ||
17195 | wxPyEndAllowThreads(__tstate); | |
17196 | if (PyErr_Occurred()) SWIG_fail; | |
17197 | } | |
17198 | { | |
17199 | wxDateTime * resultptr; | |
17200 | resultptr = new wxDateTime((wxDateTime &) result); | |
17201 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17202 | } | |
17203 | return resultobj; | |
17204 | fail: | |
17205 | return NULL; | |
17206 | } | |
17207 | ||
17208 | ||
17209 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17210 | PyObject *resultobj; | |
17211 | wxDateTime result; | |
17212 | char *kwnames[] = { | |
17213 | NULL | |
17214 | }; | |
17215 | ||
17216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17217 | { | |
17218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17219 | result = wxDateTime::Now(); | |
17220 | ||
17221 | wxPyEndAllowThreads(__tstate); | |
17222 | if (PyErr_Occurred()) SWIG_fail; | |
17223 | } | |
17224 | { | |
17225 | wxDateTime * resultptr; | |
17226 | resultptr = new wxDateTime((wxDateTime &) result); | |
17227 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17228 | } | |
17229 | return resultobj; | |
17230 | fail: | |
17231 | return NULL; | |
17232 | } | |
17233 | ||
17234 | ||
17235 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17236 | PyObject *resultobj; | |
17237 | wxDateTime result; | |
17238 | char *kwnames[] = { | |
17239 | NULL | |
17240 | }; | |
17241 | ||
17242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17243 | { | |
17244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17245 | result = wxDateTime::UNow(); | |
17246 | ||
17247 | wxPyEndAllowThreads(__tstate); | |
17248 | if (PyErr_Occurred()) SWIG_fail; | |
17249 | } | |
17250 | { | |
17251 | wxDateTime * resultptr; | |
17252 | resultptr = new wxDateTime((wxDateTime &) result); | |
17253 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17254 | } | |
17255 | return resultobj; | |
17256 | fail: | |
17257 | return NULL; | |
17258 | } | |
17259 | ||
17260 | ||
17261 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17262 | PyObject *resultobj; | |
17263 | wxDateTime result; | |
17264 | char *kwnames[] = { | |
17265 | NULL | |
17266 | }; | |
17267 | ||
17268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17269 | { | |
17270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17271 | result = wxDateTime::Today(); | |
17272 | ||
17273 | wxPyEndAllowThreads(__tstate); | |
17274 | if (PyErr_Occurred()) SWIG_fail; | |
17275 | } | |
17276 | { | |
17277 | wxDateTime * resultptr; | |
17278 | resultptr = new wxDateTime((wxDateTime &) result); | |
17279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17280 | } | |
17281 | return resultobj; | |
17282 | fail: | |
17283 | return NULL; | |
17284 | } | |
17285 | ||
17286 | ||
17287 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17288 | PyObject *resultobj; | |
17289 | wxDateTime *result; | |
17290 | char *kwnames[] = { | |
17291 | NULL | |
17292 | }; | |
17293 | ||
17294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17295 | { | |
17296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17297 | result = (wxDateTime *)new wxDateTime(); | |
17298 | ||
17299 | wxPyEndAllowThreads(__tstate); | |
17300 | if (PyErr_Occurred()) SWIG_fail; | |
17301 | } | |
17302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17303 | return resultobj; | |
17304 | fail: | |
17305 | return NULL; | |
17306 | } | |
17307 | ||
17308 | ||
17309 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17310 | PyObject *resultobj; | |
17311 | time_t arg1 ; | |
17312 | wxDateTime *result; | |
17313 | PyObject * obj0 = 0 ; | |
17314 | char *kwnames[] = { | |
17315 | (char *) "timet", NULL | |
17316 | }; | |
17317 | ||
17318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
17319 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); | |
17320 | if (PyErr_Occurred()) SWIG_fail; | |
17321 | { | |
17322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17323 | result = (wxDateTime *)new wxDateTime(arg1); | |
17324 | ||
17325 | wxPyEndAllowThreads(__tstate); | |
17326 | if (PyErr_Occurred()) SWIG_fail; | |
17327 | } | |
17328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17329 | return resultobj; | |
17330 | fail: | |
17331 | return NULL; | |
17332 | } | |
17333 | ||
17334 | ||
17335 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17336 | PyObject *resultobj; | |
17337 | double arg1 ; | |
17338 | wxDateTime *result; | |
17339 | PyObject * obj0 = 0 ; | |
17340 | char *kwnames[] = { | |
17341 | (char *) "jdn", NULL | |
17342 | }; | |
17343 | ||
17344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
17345 | arg1 = (double) SWIG_AsDouble(obj0); | |
17346 | if (PyErr_Occurred()) SWIG_fail; | |
17347 | { | |
17348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17349 | result = (wxDateTime *)new wxDateTime(arg1); | |
17350 | ||
17351 | wxPyEndAllowThreads(__tstate); | |
17352 | if (PyErr_Occurred()) SWIG_fail; | |
17353 | } | |
17354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17355 | return resultobj; | |
17356 | fail: | |
17357 | return NULL; | |
17358 | } | |
17359 | ||
17360 | ||
17361 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17362 | PyObject *resultobj; | |
17363 | int arg1 ; | |
17364 | int arg2 = (int) 0 ; | |
17365 | int arg3 = (int) 0 ; | |
17366 | int arg4 = (int) 0 ; | |
17367 | wxDateTime *result; | |
17368 | PyObject * obj0 = 0 ; | |
17369 | PyObject * obj1 = 0 ; | |
17370 | PyObject * obj2 = 0 ; | |
17371 | PyObject * obj3 = 0 ; | |
17372 | char *kwnames[] = { | |
17373 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17374 | }; | |
17375 | ||
17376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17377 | arg1 = (int) SWIG_AsInt(obj0); | |
17378 | if (PyErr_Occurred()) SWIG_fail; | |
17379 | if (obj1) { | |
17380 | arg2 = (int) SWIG_AsInt(obj1); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | } | |
17383 | if (obj2) { | |
17384 | arg3 = (int) SWIG_AsInt(obj2); | |
17385 | if (PyErr_Occurred()) SWIG_fail; | |
17386 | } | |
17387 | if (obj3) { | |
17388 | arg4 = (int) SWIG_AsInt(obj3); | |
17389 | if (PyErr_Occurred()) SWIG_fail; | |
17390 | } | |
17391 | { | |
17392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17393 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17394 | ||
17395 | wxPyEndAllowThreads(__tstate); | |
17396 | if (PyErr_Occurred()) SWIG_fail; | |
17397 | } | |
17398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17399 | return resultobj; | |
17400 | fail: | |
17401 | return NULL; | |
17402 | } | |
17403 | ||
17404 | ||
17405 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17406 | PyObject *resultobj; | |
17407 | int arg1 ; | |
17408 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17409 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17410 | int arg4 = (int) 0 ; | |
17411 | int arg5 = (int) 0 ; | |
17412 | int arg6 = (int) 0 ; | |
17413 | int arg7 = (int) 0 ; | |
17414 | wxDateTime *result; | |
17415 | PyObject * obj0 = 0 ; | |
17416 | PyObject * obj1 = 0 ; | |
17417 | PyObject * obj2 = 0 ; | |
17418 | PyObject * obj3 = 0 ; | |
17419 | PyObject * obj4 = 0 ; | |
17420 | PyObject * obj5 = 0 ; | |
17421 | PyObject * obj6 = 0 ; | |
17422 | char *kwnames[] = { | |
17423 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17424 | }; | |
17425 | ||
17426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17427 | arg1 = (int) SWIG_AsInt(obj0); | |
17428 | if (PyErr_Occurred()) SWIG_fail; | |
17429 | if (obj1) { | |
17430 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17431 | if (PyErr_Occurred()) SWIG_fail; | |
17432 | } | |
17433 | if (obj2) { | |
17434 | arg3 = (int) SWIG_AsInt(obj2); | |
17435 | if (PyErr_Occurred()) SWIG_fail; | |
17436 | } | |
17437 | if (obj3) { | |
17438 | arg4 = (int) SWIG_AsInt(obj3); | |
17439 | if (PyErr_Occurred()) SWIG_fail; | |
17440 | } | |
17441 | if (obj4) { | |
17442 | arg5 = (int) SWIG_AsInt(obj4); | |
17443 | if (PyErr_Occurred()) SWIG_fail; | |
17444 | } | |
17445 | if (obj5) { | |
17446 | arg6 = (int) SWIG_AsInt(obj5); | |
17447 | if (PyErr_Occurred()) SWIG_fail; | |
17448 | } | |
17449 | if (obj6) { | |
17450 | arg7 = (int) SWIG_AsInt(obj6); | |
17451 | if (PyErr_Occurred()) SWIG_fail; | |
17452 | } | |
17453 | { | |
17454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17455 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17456 | ||
17457 | wxPyEndAllowThreads(__tstate); | |
17458 | if (PyErr_Occurred()) SWIG_fail; | |
17459 | } | |
17460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17461 | return resultobj; | |
17462 | fail: | |
17463 | return NULL; | |
17464 | } | |
17465 | ||
17466 | ||
17467 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17468 | PyObject *resultobj; | |
17469 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17470 | PyObject * obj0 = 0 ; | |
17471 | char *kwnames[] = { | |
17472 | (char *) "self", NULL | |
17473 | }; | |
17474 | ||
17475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17478 | { | |
17479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17480 | delete arg1; | |
17481 | ||
17482 | wxPyEndAllowThreads(__tstate); | |
17483 | if (PyErr_Occurred()) SWIG_fail; | |
17484 | } | |
17485 | Py_INCREF(Py_None); resultobj = Py_None; | |
17486 | return resultobj; | |
17487 | fail: | |
17488 | return NULL; | |
17489 | } | |
17490 | ||
17491 | ||
17492 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17493 | PyObject *resultobj; | |
17494 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17495 | wxDateTime *result; | |
17496 | PyObject * obj0 = 0 ; | |
17497 | char *kwnames[] = { | |
17498 | (char *) "self", NULL | |
17499 | }; | |
17500 | ||
17501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17504 | { | |
17505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17506 | { | |
17507 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17508 | result = (wxDateTime *) &_result_ref; | |
17509 | } | |
17510 | ||
17511 | wxPyEndAllowThreads(__tstate); | |
17512 | if (PyErr_Occurred()) SWIG_fail; | |
17513 | } | |
17514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17515 | return resultobj; | |
17516 | fail: | |
17517 | return NULL; | |
17518 | } | |
17519 | ||
17520 | ||
17521 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17522 | PyObject *resultobj; | |
17523 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17524 | time_t arg2 ; | |
17525 | wxDateTime *result; | |
17526 | PyObject * obj0 = 0 ; | |
17527 | PyObject * obj1 = 0 ; | |
17528 | char *kwnames[] = { | |
17529 | (char *) "self",(char *) "timet", NULL | |
17530 | }; | |
17531 | ||
17532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17535 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17536 | if (PyErr_Occurred()) SWIG_fail; | |
17537 | { | |
17538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17539 | { | |
17540 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17541 | result = (wxDateTime *) &_result_ref; | |
17542 | } | |
17543 | ||
17544 | wxPyEndAllowThreads(__tstate); | |
17545 | if (PyErr_Occurred()) SWIG_fail; | |
17546 | } | |
17547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17548 | return resultobj; | |
17549 | fail: | |
17550 | return NULL; | |
17551 | } | |
17552 | ||
17553 | ||
17554 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17555 | PyObject *resultobj; | |
17556 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17557 | double arg2 ; | |
17558 | wxDateTime *result; | |
17559 | PyObject * obj0 = 0 ; | |
17560 | PyObject * obj1 = 0 ; | |
17561 | char *kwnames[] = { | |
17562 | (char *) "self",(char *) "jdn", NULL | |
17563 | }; | |
17564 | ||
17565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17568 | arg2 = (double) SWIG_AsDouble(obj1); | |
17569 | if (PyErr_Occurred()) SWIG_fail; | |
17570 | { | |
17571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17572 | { | |
17573 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17574 | result = (wxDateTime *) &_result_ref; | |
17575 | } | |
17576 | ||
17577 | wxPyEndAllowThreads(__tstate); | |
17578 | if (PyErr_Occurred()) SWIG_fail; | |
17579 | } | |
17580 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17581 | return resultobj; | |
17582 | fail: | |
17583 | return NULL; | |
17584 | } | |
17585 | ||
17586 | ||
17587 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17588 | PyObject *resultobj; | |
17589 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17590 | int arg2 ; | |
17591 | int arg3 = (int) 0 ; | |
17592 | int arg4 = (int) 0 ; | |
17593 | int arg5 = (int) 0 ; | |
17594 | wxDateTime *result; | |
17595 | PyObject * obj0 = 0 ; | |
17596 | PyObject * obj1 = 0 ; | |
17597 | PyObject * obj2 = 0 ; | |
17598 | PyObject * obj3 = 0 ; | |
17599 | PyObject * obj4 = 0 ; | |
17600 | char *kwnames[] = { | |
17601 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17602 | }; | |
17603 | ||
17604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17607 | arg2 = (int) SWIG_AsInt(obj1); | |
17608 | if (PyErr_Occurred()) SWIG_fail; | |
17609 | if (obj2) { | |
17610 | arg3 = (int) SWIG_AsInt(obj2); | |
17611 | if (PyErr_Occurred()) SWIG_fail; | |
17612 | } | |
17613 | if (obj3) { | |
17614 | arg4 = (int) SWIG_AsInt(obj3); | |
17615 | if (PyErr_Occurred()) SWIG_fail; | |
17616 | } | |
17617 | if (obj4) { | |
17618 | arg5 = (int) SWIG_AsInt(obj4); | |
17619 | if (PyErr_Occurred()) SWIG_fail; | |
17620 | } | |
17621 | { | |
17622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17623 | { | |
17624 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17625 | result = (wxDateTime *) &_result_ref; | |
17626 | } | |
17627 | ||
17628 | wxPyEndAllowThreads(__tstate); | |
17629 | if (PyErr_Occurred()) SWIG_fail; | |
17630 | } | |
17631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17632 | return resultobj; | |
17633 | fail: | |
17634 | return NULL; | |
17635 | } | |
17636 | ||
17637 | ||
17638 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17639 | PyObject *resultobj; | |
17640 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17641 | int arg2 ; | |
17642 | int arg3 = (int) wxDateTime::Inv_Month ; | |
17643 | int arg4 = (int) wxDateTime::Inv_Year ; | |
17644 | int arg5 = (int) 0 ; | |
17645 | int arg6 = (int) 0 ; | |
17646 | int arg7 = (int) 0 ; | |
17647 | int arg8 = (int) 0 ; | |
17648 | wxDateTime *result; | |
17649 | PyObject * obj0 = 0 ; | |
17650 | PyObject * obj1 = 0 ; | |
17651 | PyObject * obj2 = 0 ; | |
17652 | PyObject * obj3 = 0 ; | |
17653 | PyObject * obj4 = 0 ; | |
17654 | PyObject * obj5 = 0 ; | |
17655 | PyObject * obj6 = 0 ; | |
17656 | PyObject * obj7 = 0 ; | |
17657 | char *kwnames[] = { | |
17658 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17659 | }; | |
17660 | ||
17661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
17662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17664 | arg2 = (int) SWIG_AsInt(obj1); | |
17665 | if (PyErr_Occurred()) SWIG_fail; | |
17666 | if (obj2) { | |
17667 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
17668 | if (PyErr_Occurred()) SWIG_fail; | |
17669 | } | |
17670 | if (obj3) { | |
17671 | arg4 = (int) SWIG_AsInt(obj3); | |
17672 | if (PyErr_Occurred()) SWIG_fail; | |
17673 | } | |
17674 | if (obj4) { | |
17675 | arg5 = (int) SWIG_AsInt(obj4); | |
17676 | if (PyErr_Occurred()) SWIG_fail; | |
17677 | } | |
17678 | if (obj5) { | |
17679 | arg6 = (int) SWIG_AsInt(obj5); | |
17680 | if (PyErr_Occurred()) SWIG_fail; | |
17681 | } | |
17682 | if (obj6) { | |
17683 | arg7 = (int) SWIG_AsInt(obj6); | |
17684 | if (PyErr_Occurred()) SWIG_fail; | |
17685 | } | |
17686 | if (obj7) { | |
17687 | arg8 = (int) SWIG_AsInt(obj7); | |
17688 | if (PyErr_Occurred()) SWIG_fail; | |
17689 | } | |
17690 | { | |
17691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17692 | { | |
17693 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17694 | result = (wxDateTime *) &_result_ref; | |
17695 | } | |
17696 | ||
17697 | wxPyEndAllowThreads(__tstate); | |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
17699 | } | |
17700 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17701 | return resultobj; | |
17702 | fail: | |
17703 | return NULL; | |
17704 | } | |
17705 | ||
17706 | ||
17707 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17708 | PyObject *resultobj; | |
17709 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17710 | wxDateTime *result; | |
17711 | PyObject * obj0 = 0 ; | |
17712 | char *kwnames[] = { | |
17713 | (char *) "self", NULL | |
17714 | }; | |
17715 | ||
17716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
17717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17719 | { | |
17720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17721 | { | |
17722 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17723 | result = (wxDateTime *) &_result_ref; | |
17724 | } | |
17725 | ||
17726 | wxPyEndAllowThreads(__tstate); | |
17727 | if (PyErr_Occurred()) SWIG_fail; | |
17728 | } | |
17729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17730 | return resultobj; | |
17731 | fail: | |
17732 | return NULL; | |
17733 | } | |
17734 | ||
17735 | ||
17736 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17737 | PyObject *resultobj; | |
17738 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17739 | int arg2 ; | |
17740 | wxDateTime *result; | |
17741 | PyObject * obj0 = 0 ; | |
17742 | PyObject * obj1 = 0 ; | |
17743 | char *kwnames[] = { | |
17744 | (char *) "self",(char *) "year", NULL | |
17745 | }; | |
17746 | ||
17747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
17748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17750 | arg2 = (int) SWIG_AsInt(obj1); | |
17751 | if (PyErr_Occurred()) SWIG_fail; | |
17752 | { | |
17753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17754 | { | |
17755 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17756 | result = (wxDateTime *) &_result_ref; | |
17757 | } | |
17758 | ||
17759 | wxPyEndAllowThreads(__tstate); | |
17760 | if (PyErr_Occurred()) SWIG_fail; | |
17761 | } | |
17762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17763 | return resultobj; | |
17764 | fail: | |
17765 | return NULL; | |
17766 | } | |
17767 | ||
17768 | ||
17769 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17770 | PyObject *resultobj; | |
17771 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17772 | int arg2 ; | |
17773 | wxDateTime *result; | |
17774 | PyObject * obj0 = 0 ; | |
17775 | PyObject * obj1 = 0 ; | |
17776 | char *kwnames[] = { | |
17777 | (char *) "self",(char *) "month", NULL | |
17778 | }; | |
17779 | ||
17780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17783 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17784 | if (PyErr_Occurred()) SWIG_fail; | |
17785 | { | |
17786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17787 | { | |
17788 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17789 | result = (wxDateTime *) &_result_ref; | |
17790 | } | |
17791 | ||
17792 | wxPyEndAllowThreads(__tstate); | |
17793 | if (PyErr_Occurred()) SWIG_fail; | |
17794 | } | |
17795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17796 | return resultobj; | |
17797 | fail: | |
17798 | return NULL; | |
17799 | } | |
17800 | ||
17801 | ||
17802 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17803 | PyObject *resultobj; | |
17804 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17805 | int arg2 ; | |
17806 | wxDateTime *result; | |
17807 | PyObject * obj0 = 0 ; | |
17808 | PyObject * obj1 = 0 ; | |
17809 | char *kwnames[] = { | |
17810 | (char *) "self",(char *) "day", NULL | |
17811 | }; | |
17812 | ||
17813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
17814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17816 | arg2 = (int) SWIG_AsInt(obj1); | |
17817 | if (PyErr_Occurred()) SWIG_fail; | |
17818 | { | |
17819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17820 | { | |
17821 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17822 | result = (wxDateTime *) &_result_ref; | |
17823 | } | |
17824 | ||
17825 | wxPyEndAllowThreads(__tstate); | |
17826 | if (PyErr_Occurred()) SWIG_fail; | |
17827 | } | |
17828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17829 | return resultobj; | |
17830 | fail: | |
17831 | return NULL; | |
17832 | } | |
17833 | ||
17834 | ||
17835 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17836 | PyObject *resultobj; | |
17837 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17838 | int arg2 ; | |
17839 | wxDateTime *result; | |
17840 | PyObject * obj0 = 0 ; | |
17841 | PyObject * obj1 = 0 ; | |
17842 | char *kwnames[] = { | |
17843 | (char *) "self",(char *) "hour", NULL | |
17844 | }; | |
17845 | ||
17846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
17847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17849 | arg2 = (int) SWIG_AsInt(obj1); | |
17850 | if (PyErr_Occurred()) SWIG_fail; | |
17851 | { | |
17852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17853 | { | |
17854 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17855 | result = (wxDateTime *) &_result_ref; | |
17856 | } | |
17857 | ||
17858 | wxPyEndAllowThreads(__tstate); | |
17859 | if (PyErr_Occurred()) SWIG_fail; | |
17860 | } | |
17861 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17862 | return resultobj; | |
17863 | fail: | |
17864 | return NULL; | |
17865 | } | |
17866 | ||
17867 | ||
17868 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17869 | PyObject *resultobj; | |
17870 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17871 | int arg2 ; | |
17872 | wxDateTime *result; | |
17873 | PyObject * obj0 = 0 ; | |
17874 | PyObject * obj1 = 0 ; | |
17875 | char *kwnames[] = { | |
17876 | (char *) "self",(char *) "minute", NULL | |
17877 | }; | |
17878 | ||
17879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17882 | arg2 = (int) SWIG_AsInt(obj1); | |
17883 | if (PyErr_Occurred()) SWIG_fail; | |
17884 | { | |
17885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17886 | { | |
17887 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17888 | result = (wxDateTime *) &_result_ref; | |
17889 | } | |
17890 | ||
17891 | wxPyEndAllowThreads(__tstate); | |
17892 | if (PyErr_Occurred()) SWIG_fail; | |
17893 | } | |
17894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17895 | return resultobj; | |
17896 | fail: | |
17897 | return NULL; | |
17898 | } | |
17899 | ||
17900 | ||
17901 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17902 | PyObject *resultobj; | |
17903 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17904 | int arg2 ; | |
17905 | wxDateTime *result; | |
17906 | PyObject * obj0 = 0 ; | |
17907 | PyObject * obj1 = 0 ; | |
17908 | char *kwnames[] = { | |
17909 | (char *) "self",(char *) "second", NULL | |
17910 | }; | |
17911 | ||
17912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17915 | arg2 = (int) SWIG_AsInt(obj1); | |
17916 | if (PyErr_Occurred()) SWIG_fail; | |
17917 | { | |
17918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17919 | { | |
17920 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17921 | result = (wxDateTime *) &_result_ref; | |
17922 | } | |
17923 | ||
17924 | wxPyEndAllowThreads(__tstate); | |
17925 | if (PyErr_Occurred()) SWIG_fail; | |
17926 | } | |
17927 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17928 | return resultobj; | |
17929 | fail: | |
17930 | return NULL; | |
17931 | } | |
17932 | ||
17933 | ||
17934 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17935 | PyObject *resultobj; | |
17936 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17937 | int arg2 ; | |
17938 | wxDateTime *result; | |
17939 | PyObject * obj0 = 0 ; | |
17940 | PyObject * obj1 = 0 ; | |
17941 | char *kwnames[] = { | |
17942 | (char *) "self",(char *) "millisecond", NULL | |
17943 | }; | |
17944 | ||
17945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17948 | arg2 = (int) SWIG_AsInt(obj1); | |
17949 | if (PyErr_Occurred()) SWIG_fail; | |
17950 | { | |
17951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17952 | { | |
17953 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17954 | result = (wxDateTime *) &_result_ref; | |
17955 | } | |
17956 | ||
17957 | wxPyEndAllowThreads(__tstate); | |
17958 | if (PyErr_Occurred()) SWIG_fail; | |
17959 | } | |
17960 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17961 | return resultobj; | |
17962 | fail: | |
17963 | return NULL; | |
17964 | } | |
17965 | ||
17966 | ||
17967 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17968 | PyObject *resultobj; | |
17969 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17970 | int arg2 ; | |
17971 | int arg3 = (int) wxDateTime::Monday_First ; | |
17972 | wxDateTime *result; | |
17973 | PyObject * obj0 = 0 ; | |
17974 | PyObject * obj1 = 0 ; | |
17975 | PyObject * obj2 = 0 ; | |
17976 | char *kwnames[] = { | |
17977 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17978 | }; | |
17979 | ||
17980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17983 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17984 | if (PyErr_Occurred()) SWIG_fail; | |
17985 | if (obj2) { | |
17986 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
17987 | if (PyErr_Occurred()) SWIG_fail; | |
17988 | } | |
17989 | { | |
17990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17991 | { | |
17992 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17993 | result = (wxDateTime *) &_result_ref; | |
17994 | } | |
17995 | ||
17996 | wxPyEndAllowThreads(__tstate); | |
17997 | if (PyErr_Occurred()) SWIG_fail; | |
17998 | } | |
17999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18000 | return resultobj; | |
18001 | fail: | |
18002 | return NULL; | |
18003 | } | |
18004 | ||
18005 | ||
18006 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18007 | PyObject *resultobj; | |
18008 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18009 | int arg2 ; | |
18010 | int arg3 = (int) wxDateTime::Monday_First ; | |
18011 | wxDateTime result; | |
18012 | PyObject * obj0 = 0 ; | |
18013 | PyObject * obj1 = 0 ; | |
18014 | PyObject * obj2 = 0 ; | |
18015 | char *kwnames[] = { | |
18016 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18017 | }; | |
18018 | ||
18019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18022 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18023 | if (PyErr_Occurred()) SWIG_fail; | |
18024 | if (obj2) { | |
18025 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
18026 | if (PyErr_Occurred()) SWIG_fail; | |
18027 | } | |
18028 | { | |
18029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18030 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18031 | ||
18032 | wxPyEndAllowThreads(__tstate); | |
18033 | if (PyErr_Occurred()) SWIG_fail; | |
18034 | } | |
18035 | { | |
18036 | wxDateTime * resultptr; | |
18037 | resultptr = new wxDateTime((wxDateTime &) result); | |
18038 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18039 | } | |
18040 | return resultobj; | |
18041 | fail: | |
18042 | return NULL; | |
18043 | } | |
18044 | ||
18045 | ||
18046 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18047 | PyObject *resultobj; | |
18048 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18049 | int arg2 ; | |
18050 | wxDateTime *result; | |
18051 | PyObject * obj0 = 0 ; | |
18052 | PyObject * obj1 = 0 ; | |
18053 | char *kwnames[] = { | |
18054 | (char *) "self",(char *) "weekday", NULL | |
18055 | }; | |
18056 | ||
18057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18060 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18061 | if (PyErr_Occurred()) SWIG_fail; | |
18062 | { | |
18063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18064 | { | |
18065 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18066 | result = (wxDateTime *) &_result_ref; | |
18067 | } | |
18068 | ||
18069 | wxPyEndAllowThreads(__tstate); | |
18070 | if (PyErr_Occurred()) SWIG_fail; | |
18071 | } | |
18072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18073 | return resultobj; | |
18074 | fail: | |
18075 | return NULL; | |
18076 | } | |
18077 | ||
18078 | ||
18079 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18080 | PyObject *resultobj; | |
18081 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18082 | int arg2 ; | |
18083 | wxDateTime result; | |
18084 | PyObject * obj0 = 0 ; | |
18085 | PyObject * obj1 = 0 ; | |
18086 | char *kwnames[] = { | |
18087 | (char *) "self",(char *) "weekday", NULL | |
18088 | }; | |
18089 | ||
18090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18093 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18094 | if (PyErr_Occurred()) SWIG_fail; | |
18095 | { | |
18096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18097 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18098 | ||
18099 | wxPyEndAllowThreads(__tstate); | |
18100 | if (PyErr_Occurred()) SWIG_fail; | |
18101 | } | |
18102 | { | |
18103 | wxDateTime * resultptr; | |
18104 | resultptr = new wxDateTime((wxDateTime &) result); | |
18105 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18106 | } | |
18107 | return resultobj; | |
18108 | fail: | |
18109 | return NULL; | |
18110 | } | |
18111 | ||
18112 | ||
18113 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18114 | PyObject *resultobj; | |
18115 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18116 | int arg2 ; | |
18117 | wxDateTime *result; | |
18118 | PyObject * obj0 = 0 ; | |
18119 | PyObject * obj1 = 0 ; | |
18120 | char *kwnames[] = { | |
18121 | (char *) "self",(char *) "weekday", NULL | |
18122 | }; | |
18123 | ||
18124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18127 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18128 | if (PyErr_Occurred()) SWIG_fail; | |
18129 | { | |
18130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18131 | { | |
18132 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18133 | result = (wxDateTime *) &_result_ref; | |
18134 | } | |
18135 | ||
18136 | wxPyEndAllowThreads(__tstate); | |
18137 | if (PyErr_Occurred()) SWIG_fail; | |
18138 | } | |
18139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18140 | return resultobj; | |
18141 | fail: | |
18142 | return NULL; | |
18143 | } | |
18144 | ||
18145 | ||
18146 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18147 | PyObject *resultobj; | |
18148 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18149 | int arg2 ; | |
18150 | wxDateTime result; | |
18151 | PyObject * obj0 = 0 ; | |
18152 | PyObject * obj1 = 0 ; | |
18153 | char *kwnames[] = { | |
18154 | (char *) "self",(char *) "weekday", NULL | |
18155 | }; | |
18156 | ||
18157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18160 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18161 | if (PyErr_Occurred()) SWIG_fail; | |
18162 | { | |
18163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18164 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18165 | ||
18166 | wxPyEndAllowThreads(__tstate); | |
18167 | if (PyErr_Occurred()) SWIG_fail; | |
18168 | } | |
18169 | { | |
18170 | wxDateTime * resultptr; | |
18171 | resultptr = new wxDateTime((wxDateTime &) result); | |
18172 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18173 | } | |
18174 | return resultobj; | |
18175 | fail: | |
18176 | return NULL; | |
18177 | } | |
18178 | ||
18179 | ||
18180 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18181 | PyObject *resultobj; | |
18182 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18183 | int arg2 ; | |
18184 | int arg3 = (int) 1 ; | |
18185 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18186 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18187 | bool result; | |
18188 | PyObject * obj0 = 0 ; | |
18189 | PyObject * obj1 = 0 ; | |
18190 | PyObject * obj2 = 0 ; | |
18191 | PyObject * obj3 = 0 ; | |
18192 | PyObject * obj4 = 0 ; | |
18193 | char *kwnames[] = { | |
18194 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18195 | }; | |
18196 | ||
18197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18200 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18201 | if (PyErr_Occurred()) SWIG_fail; | |
18202 | if (obj2) { | |
18203 | arg3 = (int) SWIG_AsInt(obj2); | |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
18205 | } | |
18206 | if (obj3) { | |
18207 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); | |
18208 | if (PyErr_Occurred()) SWIG_fail; | |
18209 | } | |
18210 | if (obj4) { | |
18211 | arg5 = (int) SWIG_AsInt(obj4); | |
18212 | if (PyErr_Occurred()) SWIG_fail; | |
18213 | } | |
18214 | { | |
18215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18216 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18217 | ||
18218 | wxPyEndAllowThreads(__tstate); | |
18219 | if (PyErr_Occurred()) SWIG_fail; | |
18220 | } | |
18221 | { | |
18222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18223 | } | |
18224 | return resultobj; | |
18225 | fail: | |
18226 | return NULL; | |
18227 | } | |
18228 | ||
18229 | ||
18230 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18231 | PyObject *resultobj; | |
18232 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18233 | int arg2 ; | |
18234 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18235 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18236 | bool result; | |
18237 | PyObject * obj0 = 0 ; | |
18238 | PyObject * obj1 = 0 ; | |
18239 | PyObject * obj2 = 0 ; | |
18240 | PyObject * obj3 = 0 ; | |
18241 | char *kwnames[] = { | |
18242 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18243 | }; | |
18244 | ||
18245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18248 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | if (obj2) { | |
18251 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18252 | if (PyErr_Occurred()) SWIG_fail; | |
18253 | } | |
18254 | if (obj3) { | |
18255 | arg4 = (int) SWIG_AsInt(obj3); | |
18256 | if (PyErr_Occurred()) SWIG_fail; | |
18257 | } | |
18258 | { | |
18259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18260 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18261 | ||
18262 | wxPyEndAllowThreads(__tstate); | |
18263 | if (PyErr_Occurred()) SWIG_fail; | |
18264 | } | |
18265 | { | |
18266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18267 | } | |
18268 | return resultobj; | |
18269 | fail: | |
18270 | return NULL; | |
18271 | } | |
18272 | ||
18273 | ||
18274 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18275 | PyObject *resultobj; | |
18276 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18277 | int arg2 ; | |
18278 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18279 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18280 | wxDateTime result; | |
18281 | PyObject * obj0 = 0 ; | |
18282 | PyObject * obj1 = 0 ; | |
18283 | PyObject * obj2 = 0 ; | |
18284 | PyObject * obj3 = 0 ; | |
18285 | char *kwnames[] = { | |
18286 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18287 | }; | |
18288 | ||
18289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18292 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18293 | if (PyErr_Occurred()) SWIG_fail; | |
18294 | if (obj2) { | |
18295 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18296 | if (PyErr_Occurred()) SWIG_fail; | |
18297 | } | |
18298 | if (obj3) { | |
18299 | arg4 = (int) SWIG_AsInt(obj3); | |
18300 | if (PyErr_Occurred()) SWIG_fail; | |
18301 | } | |
18302 | { | |
18303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18304 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18305 | ||
18306 | wxPyEndAllowThreads(__tstate); | |
18307 | if (PyErr_Occurred()) SWIG_fail; | |
18308 | } | |
18309 | { | |
18310 | wxDateTime * resultptr; | |
18311 | resultptr = new wxDateTime((wxDateTime &) result); | |
18312 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18313 | } | |
18314 | return resultobj; | |
18315 | fail: | |
18316 | return NULL; | |
18317 | } | |
18318 | ||
18319 | ||
18320 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18321 | PyObject *resultobj; | |
18322 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18323 | int arg2 ; | |
18324 | int arg3 = (int) wxDateTime::Mon ; | |
18325 | int arg4 = (int) wxDateTime::Monday_First ; | |
18326 | bool result; | |
18327 | PyObject * obj0 = 0 ; | |
18328 | PyObject * obj1 = 0 ; | |
18329 | PyObject * obj2 = 0 ; | |
18330 | PyObject * obj3 = 0 ; | |
18331 | char *kwnames[] = { | |
18332 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18333 | }; | |
18334 | ||
18335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18338 | arg2 = (int) SWIG_AsInt(obj1); | |
18339 | if (PyErr_Occurred()) SWIG_fail; | |
18340 | if (obj2) { | |
18341 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18342 | if (PyErr_Occurred()) SWIG_fail; | |
18343 | } | |
18344 | if (obj3) { | |
18345 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18346 | if (PyErr_Occurred()) SWIG_fail; | |
18347 | } | |
18348 | { | |
18349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18350 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18351 | ||
18352 | wxPyEndAllowThreads(__tstate); | |
18353 | if (PyErr_Occurred()) SWIG_fail; | |
18354 | } | |
18355 | { | |
18356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18357 | } | |
18358 | return resultobj; | |
18359 | fail: | |
18360 | return NULL; | |
18361 | } | |
18362 | ||
18363 | ||
18364 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18365 | PyObject *resultobj; | |
18366 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18367 | int arg2 ; | |
18368 | int arg3 = (int) wxDateTime::Mon ; | |
18369 | int arg4 = (int) wxDateTime::Monday_First ; | |
18370 | wxDateTime result; | |
18371 | PyObject * obj0 = 0 ; | |
18372 | PyObject * obj1 = 0 ; | |
18373 | PyObject * obj2 = 0 ; | |
18374 | PyObject * obj3 = 0 ; | |
18375 | char *kwnames[] = { | |
18376 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18377 | }; | |
18378 | ||
18379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18382 | arg2 = (int) SWIG_AsInt(obj1); | |
18383 | if (PyErr_Occurred()) SWIG_fail; | |
18384 | if (obj2) { | |
18385 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18386 | if (PyErr_Occurred()) SWIG_fail; | |
18387 | } | |
18388 | if (obj3) { | |
18389 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18390 | if (PyErr_Occurred()) SWIG_fail; | |
18391 | } | |
18392 | { | |
18393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18394 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18395 | ||
18396 | wxPyEndAllowThreads(__tstate); | |
18397 | if (PyErr_Occurred()) SWIG_fail; | |
18398 | } | |
18399 | { | |
18400 | wxDateTime * resultptr; | |
18401 | resultptr = new wxDateTime((wxDateTime &) result); | |
18402 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18403 | } | |
18404 | return resultobj; | |
18405 | fail: | |
18406 | return NULL; | |
18407 | } | |
18408 | ||
18409 | ||
18410 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18411 | PyObject *resultobj; | |
18412 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18413 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18414 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18415 | wxDateTime *result; | |
18416 | PyObject * obj0 = 0 ; | |
18417 | PyObject * obj1 = 0 ; | |
18418 | PyObject * obj2 = 0 ; | |
18419 | char *kwnames[] = { | |
18420 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18421 | }; | |
18422 | ||
18423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18426 | if (obj1) { | |
18427 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18428 | if (PyErr_Occurred()) SWIG_fail; | |
18429 | } | |
18430 | if (obj2) { | |
18431 | arg3 = (int) SWIG_AsInt(obj2); | |
18432 | if (PyErr_Occurred()) SWIG_fail; | |
18433 | } | |
18434 | { | |
18435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18436 | { | |
18437 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18438 | result = (wxDateTime *) &_result_ref; | |
18439 | } | |
18440 | ||
18441 | wxPyEndAllowThreads(__tstate); | |
18442 | if (PyErr_Occurred()) SWIG_fail; | |
18443 | } | |
18444 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18445 | return resultobj; | |
18446 | fail: | |
18447 | return NULL; | |
18448 | } | |
18449 | ||
18450 | ||
18451 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18452 | PyObject *resultobj; | |
18453 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18454 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18455 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18456 | wxDateTime result; | |
18457 | PyObject * obj0 = 0 ; | |
18458 | PyObject * obj1 = 0 ; | |
18459 | PyObject * obj2 = 0 ; | |
18460 | char *kwnames[] = { | |
18461 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18462 | }; | |
18463 | ||
18464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18467 | if (obj1) { | |
18468 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18469 | if (PyErr_Occurred()) SWIG_fail; | |
18470 | } | |
18471 | if (obj2) { | |
18472 | arg3 = (int) SWIG_AsInt(obj2); | |
18473 | if (PyErr_Occurred()) SWIG_fail; | |
18474 | } | |
18475 | { | |
18476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18477 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18478 | ||
18479 | wxPyEndAllowThreads(__tstate); | |
18480 | if (PyErr_Occurred()) SWIG_fail; | |
18481 | } | |
18482 | { | |
18483 | wxDateTime * resultptr; | |
18484 | resultptr = new wxDateTime((wxDateTime &) result); | |
18485 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18486 | } | |
18487 | return resultobj; | |
18488 | fail: | |
18489 | return NULL; | |
18490 | } | |
18491 | ||
18492 | ||
18493 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18494 | PyObject *resultobj; | |
18495 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18496 | int arg2 ; | |
18497 | wxDateTime *result; | |
18498 | PyObject * obj0 = 0 ; | |
18499 | PyObject * obj1 = 0 ; | |
18500 | char *kwnames[] = { | |
18501 | (char *) "self",(char *) "yday", NULL | |
18502 | }; | |
18503 | ||
18504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18507 | arg2 = (int) SWIG_AsInt(obj1); | |
18508 | if (PyErr_Occurred()) SWIG_fail; | |
18509 | { | |
18510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18511 | { | |
18512 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18513 | result = (wxDateTime *) &_result_ref; | |
18514 | } | |
18515 | ||
18516 | wxPyEndAllowThreads(__tstate); | |
18517 | if (PyErr_Occurred()) SWIG_fail; | |
18518 | } | |
18519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18520 | return resultobj; | |
18521 | fail: | |
18522 | return NULL; | |
18523 | } | |
18524 | ||
18525 | ||
18526 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18527 | PyObject *resultobj; | |
18528 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18529 | int arg2 ; | |
18530 | wxDateTime result; | |
18531 | PyObject * obj0 = 0 ; | |
18532 | PyObject * obj1 = 0 ; | |
18533 | char *kwnames[] = { | |
18534 | (char *) "self",(char *) "yday", NULL | |
18535 | }; | |
18536 | ||
18537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18540 | arg2 = (int) SWIG_AsInt(obj1); | |
18541 | if (PyErr_Occurred()) SWIG_fail; | |
18542 | { | |
18543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18544 | result = (arg1)->GetYearDay(arg2); | |
18545 | ||
18546 | wxPyEndAllowThreads(__tstate); | |
18547 | if (PyErr_Occurred()) SWIG_fail; | |
18548 | } | |
18549 | { | |
18550 | wxDateTime * resultptr; | |
18551 | resultptr = new wxDateTime((wxDateTime &) result); | |
18552 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18553 | } | |
18554 | return resultobj; | |
18555 | fail: | |
18556 | return NULL; | |
18557 | } | |
18558 | ||
18559 | ||
18560 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18561 | PyObject *resultobj; | |
18562 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18563 | double result; | |
18564 | PyObject * obj0 = 0 ; | |
18565 | char *kwnames[] = { | |
18566 | (char *) "self", NULL | |
18567 | }; | |
18568 | ||
18569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
18570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18572 | { | |
18573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18574 | result = (double)(arg1)->GetJulianDayNumber(); | |
18575 | ||
18576 | wxPyEndAllowThreads(__tstate); | |
18577 | if (PyErr_Occurred()) SWIG_fail; | |
18578 | } | |
18579 | resultobj = SWIG_FromDouble((double)result); | |
18580 | return resultobj; | |
18581 | fail: | |
18582 | return NULL; | |
18583 | } | |
18584 | ||
18585 | ||
18586 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18587 | PyObject *resultobj; | |
18588 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18589 | double result; | |
18590 | PyObject * obj0 = 0 ; | |
18591 | char *kwnames[] = { | |
18592 | (char *) "self", NULL | |
18593 | }; | |
18594 | ||
18595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
18596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18598 | { | |
18599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18600 | result = (double)(arg1)->GetJDN(); | |
18601 | ||
18602 | wxPyEndAllowThreads(__tstate); | |
18603 | if (PyErr_Occurred()) SWIG_fail; | |
18604 | } | |
18605 | resultobj = SWIG_FromDouble((double)result); | |
18606 | return resultobj; | |
18607 | fail: | |
18608 | return NULL; | |
18609 | } | |
18610 | ||
18611 | ||
18612 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18613 | PyObject *resultobj; | |
18614 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18615 | double result; | |
18616 | PyObject * obj0 = 0 ; | |
18617 | char *kwnames[] = { | |
18618 | (char *) "self", NULL | |
18619 | }; | |
18620 | ||
18621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
18622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18624 | { | |
18625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18626 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18627 | ||
18628 | wxPyEndAllowThreads(__tstate); | |
18629 | if (PyErr_Occurred()) SWIG_fail; | |
18630 | } | |
18631 | resultobj = SWIG_FromDouble((double)result); | |
18632 | return resultobj; | |
18633 | fail: | |
18634 | return NULL; | |
18635 | } | |
18636 | ||
18637 | ||
18638 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18639 | PyObject *resultobj; | |
18640 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18641 | double result; | |
18642 | PyObject * obj0 = 0 ; | |
18643 | char *kwnames[] = { | |
18644 | (char *) "self", NULL | |
18645 | }; | |
18646 | ||
18647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
18648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18650 | { | |
18651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18652 | result = (double)(arg1)->GetMJD(); | |
18653 | ||
18654 | wxPyEndAllowThreads(__tstate); | |
18655 | if (PyErr_Occurred()) SWIG_fail; | |
18656 | } | |
18657 | resultobj = SWIG_FromDouble((double)result); | |
18658 | return resultobj; | |
18659 | fail: | |
18660 | return NULL; | |
18661 | } | |
18662 | ||
18663 | ||
18664 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18665 | PyObject *resultobj; | |
18666 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18667 | double result; | |
18668 | PyObject * obj0 = 0 ; | |
18669 | char *kwnames[] = { | |
18670 | (char *) "self", NULL | |
18671 | }; | |
18672 | ||
18673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
18674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18676 | { | |
18677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18678 | result = (double)(arg1)->GetRataDie(); | |
18679 | ||
18680 | wxPyEndAllowThreads(__tstate); | |
18681 | if (PyErr_Occurred()) SWIG_fail; | |
18682 | } | |
18683 | resultobj = SWIG_FromDouble((double)result); | |
18684 | return resultobj; | |
18685 | fail: | |
18686 | return NULL; | |
18687 | } | |
18688 | ||
18689 | ||
18690 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18691 | PyObject *resultobj; | |
18692 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18693 | wxDateTime::TimeZone *arg2 = 0 ; | |
18694 | bool arg3 = (bool) False ; | |
18695 | wxDateTime result; | |
18696 | bool temp2 = False ; | |
18697 | PyObject * obj0 = 0 ; | |
18698 | PyObject * obj1 = 0 ; | |
18699 | PyObject * obj2 = 0 ; | |
18700 | char *kwnames[] = { | |
18701 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18702 | }; | |
18703 | ||
18704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18707 | { | |
18708 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18709 | temp2 = True; | |
18710 | } | |
18711 | if (obj2) { | |
18712 | arg3 = (bool) SWIG_AsBool(obj2); | |
18713 | if (PyErr_Occurred()) SWIG_fail; | |
18714 | } | |
18715 | { | |
18716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18717 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18718 | ||
18719 | wxPyEndAllowThreads(__tstate); | |
18720 | if (PyErr_Occurred()) SWIG_fail; | |
18721 | } | |
18722 | { | |
18723 | wxDateTime * resultptr; | |
18724 | resultptr = new wxDateTime((wxDateTime &) result); | |
18725 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18726 | } | |
18727 | { | |
18728 | if (temp2) delete arg2; | |
18729 | } | |
18730 | return resultobj; | |
18731 | fail: | |
18732 | { | |
18733 | if (temp2) delete arg2; | |
18734 | } | |
18735 | return NULL; | |
18736 | } | |
18737 | ||
18738 | ||
18739 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18740 | PyObject *resultobj; | |
18741 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18742 | wxDateTime::TimeZone *arg2 = 0 ; | |
18743 | bool arg3 = (bool) False ; | |
18744 | wxDateTime *result; | |
18745 | bool temp2 = False ; | |
18746 | PyObject * obj0 = 0 ; | |
18747 | PyObject * obj1 = 0 ; | |
18748 | PyObject * obj2 = 0 ; | |
18749 | char *kwnames[] = { | |
18750 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18751 | }; | |
18752 | ||
18753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18756 | { | |
18757 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18758 | temp2 = True; | |
18759 | } | |
18760 | if (obj2) { | |
18761 | arg3 = (bool) SWIG_AsBool(obj2); | |
18762 | if (PyErr_Occurred()) SWIG_fail; | |
18763 | } | |
18764 | { | |
18765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18766 | { | |
18767 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18768 | result = (wxDateTime *) &_result_ref; | |
18769 | } | |
18770 | ||
18771 | wxPyEndAllowThreads(__tstate); | |
18772 | if (PyErr_Occurred()) SWIG_fail; | |
18773 | } | |
18774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18775 | { | |
18776 | if (temp2) delete arg2; | |
18777 | } | |
18778 | return resultobj; | |
18779 | fail: | |
18780 | { | |
18781 | if (temp2) delete arg2; | |
18782 | } | |
18783 | return NULL; | |
18784 | } | |
18785 | ||
18786 | ||
18787 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18788 | PyObject *resultobj; | |
18789 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18790 | bool arg2 = (bool) False ; | |
18791 | wxDateTime result; | |
18792 | PyObject * obj0 = 0 ; | |
18793 | PyObject * obj1 = 0 ; | |
18794 | char *kwnames[] = { | |
18795 | (char *) "self",(char *) "noDST", NULL | |
18796 | }; | |
18797 | ||
18798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
18799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18801 | if (obj1) { | |
18802 | arg2 = (bool) SWIG_AsBool(obj1); | |
18803 | if (PyErr_Occurred()) SWIG_fail; | |
18804 | } | |
18805 | { | |
18806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18807 | result = (arg1)->ToGMT(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_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18824 | PyObject *resultobj; | |
18825 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18826 | bool arg2 = (bool) False ; | |
18827 | wxDateTime *result; | |
18828 | PyObject * obj0 = 0 ; | |
18829 | PyObject * obj1 = 0 ; | |
18830 | char *kwnames[] = { | |
18831 | (char *) "self",(char *) "noDST", NULL | |
18832 | }; | |
18833 | ||
18834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
18835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18837 | if (obj1) { | |
18838 | arg2 = (bool) SWIG_AsBool(obj1); | |
18839 | if (PyErr_Occurred()) SWIG_fail; | |
18840 | } | |
18841 | { | |
18842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18843 | { | |
18844 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18845 | result = (wxDateTime *) &_result_ref; | |
18846 | } | |
18847 | ||
18848 | wxPyEndAllowThreads(__tstate); | |
18849 | if (PyErr_Occurred()) SWIG_fail; | |
18850 | } | |
18851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18852 | return resultobj; | |
18853 | fail: | |
18854 | return NULL; | |
18855 | } | |
18856 | ||
18857 | ||
18858 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18859 | PyObject *resultobj; | |
18860 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18861 | int arg2 = (int) wxDateTime::Country_Default ; | |
18862 | int result; | |
18863 | PyObject * obj0 = 0 ; | |
18864 | PyObject * obj1 = 0 ; | |
18865 | char *kwnames[] = { | |
18866 | (char *) "self",(char *) "country", NULL | |
18867 | }; | |
18868 | ||
18869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
18870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18872 | if (obj1) { | |
18873 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
18874 | if (PyErr_Occurred()) SWIG_fail; | |
18875 | } | |
18876 | { | |
18877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18878 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18879 | ||
18880 | wxPyEndAllowThreads(__tstate); | |
18881 | if (PyErr_Occurred()) SWIG_fail; | |
18882 | } | |
18883 | resultobj = SWIG_FromInt((int)result); | |
18884 | return resultobj; | |
18885 | fail: | |
18886 | return NULL; | |
18887 | } | |
18888 | ||
18889 | ||
18890 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18891 | PyObject *resultobj; | |
18892 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18893 | bool result; | |
18894 | PyObject * obj0 = 0 ; | |
18895 | char *kwnames[] = { | |
18896 | (char *) "self", NULL | |
18897 | }; | |
18898 | ||
18899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
18900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18902 | { | |
18903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18904 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18905 | ||
18906 | wxPyEndAllowThreads(__tstate); | |
18907 | if (PyErr_Occurred()) SWIG_fail; | |
18908 | } | |
18909 | { | |
18910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18911 | } | |
18912 | return resultobj; | |
18913 | fail: | |
18914 | return NULL; | |
18915 | } | |
18916 | ||
18917 | ||
18918 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18919 | PyObject *resultobj; | |
18920 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18921 | time_t result; | |
18922 | PyObject * obj0 = 0 ; | |
18923 | char *kwnames[] = { | |
18924 | (char *) "self", NULL | |
18925 | }; | |
18926 | ||
18927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
18928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18930 | { | |
18931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18932 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18933 | ||
18934 | wxPyEndAllowThreads(__tstate); | |
18935 | if (PyErr_Occurred()) SWIG_fail; | |
18936 | } | |
18937 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
18938 | return resultobj; | |
18939 | fail: | |
18940 | return NULL; | |
18941 | } | |
18942 | ||
18943 | ||
18944 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18945 | PyObject *resultobj; | |
18946 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18947 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18948 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18949 | int result; | |
18950 | bool temp2 = False ; | |
18951 | PyObject * obj0 = 0 ; | |
18952 | PyObject * obj1 = 0 ; | |
18953 | char *kwnames[] = { | |
18954 | (char *) "self",(char *) "tz", NULL | |
18955 | }; | |
18956 | ||
18957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
18958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18960 | if (obj1) { | |
18961 | { | |
18962 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18963 | temp2 = True; | |
18964 | } | |
18965 | } | |
18966 | { | |
18967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18968 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18969 | ||
18970 | wxPyEndAllowThreads(__tstate); | |
18971 | if (PyErr_Occurred()) SWIG_fail; | |
18972 | } | |
18973 | resultobj = SWIG_FromInt((int)result); | |
18974 | { | |
18975 | if (temp2) delete arg2; | |
18976 | } | |
18977 | return resultobj; | |
18978 | fail: | |
18979 | { | |
18980 | if (temp2) delete arg2; | |
18981 | } | |
18982 | return NULL; | |
18983 | } | |
18984 | ||
18985 | ||
18986 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18987 | PyObject *resultobj; | |
18988 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18989 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18990 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18991 | int result; | |
18992 | bool temp2 = False ; | |
18993 | PyObject * obj0 = 0 ; | |
18994 | PyObject * obj1 = 0 ; | |
18995 | char *kwnames[] = { | |
18996 | (char *) "self",(char *) "tz", NULL | |
18997 | }; | |
18998 | ||
18999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
19000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19002 | if (obj1) { | |
19003 | { | |
19004 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19005 | temp2 = True; | |
19006 | } | |
19007 | } | |
19008 | { | |
19009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19010 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19011 | ||
19012 | wxPyEndAllowThreads(__tstate); | |
19013 | if (PyErr_Occurred()) SWIG_fail; | |
19014 | } | |
19015 | resultobj = SWIG_FromInt((int)result); | |
19016 | { | |
19017 | if (temp2) delete arg2; | |
19018 | } | |
19019 | return resultobj; | |
19020 | fail: | |
19021 | { | |
19022 | if (temp2) delete arg2; | |
19023 | } | |
19024 | return NULL; | |
19025 | } | |
19026 | ||
19027 | ||
19028 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19029 | PyObject *resultobj; | |
19030 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19031 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19032 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19033 | int result; | |
19034 | bool temp2 = False ; | |
19035 | PyObject * obj0 = 0 ; | |
19036 | PyObject * obj1 = 0 ; | |
19037 | char *kwnames[] = { | |
19038 | (char *) "self",(char *) "tz", NULL | |
19039 | }; | |
19040 | ||
19041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
19042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19044 | if (obj1) { | |
19045 | { | |
19046 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19047 | temp2 = True; | |
19048 | } | |
19049 | } | |
19050 | { | |
19051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19052 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
19053 | ||
19054 | wxPyEndAllowThreads(__tstate); | |
19055 | if (PyErr_Occurred()) SWIG_fail; | |
19056 | } | |
19057 | resultobj = SWIG_FromInt((int)result); | |
19058 | { | |
19059 | if (temp2) delete arg2; | |
19060 | } | |
19061 | return resultobj; | |
19062 | fail: | |
19063 | { | |
19064 | if (temp2) delete arg2; | |
19065 | } | |
19066 | return NULL; | |
19067 | } | |
19068 | ||
19069 | ||
19070 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19071 | PyObject *resultobj; | |
19072 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19073 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19074 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19075 | int result; | |
19076 | bool temp2 = False ; | |
19077 | PyObject * obj0 = 0 ; | |
19078 | PyObject * obj1 = 0 ; | |
19079 | char *kwnames[] = { | |
19080 | (char *) "self",(char *) "tz", NULL | |
19081 | }; | |
19082 | ||
19083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19086 | if (obj1) { | |
19087 | { | |
19088 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19089 | temp2 = True; | |
19090 | } | |
19091 | } | |
19092 | { | |
19093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19094 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19095 | ||
19096 | wxPyEndAllowThreads(__tstate); | |
19097 | if (PyErr_Occurred()) SWIG_fail; | |
19098 | } | |
19099 | resultobj = SWIG_FromInt((int)result); | |
19100 | { | |
19101 | if (temp2) delete arg2; | |
19102 | } | |
19103 | return resultobj; | |
19104 | fail: | |
19105 | { | |
19106 | if (temp2) delete arg2; | |
19107 | } | |
19108 | return NULL; | |
19109 | } | |
19110 | ||
19111 | ||
19112 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19113 | PyObject *resultobj; | |
19114 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19115 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19116 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19117 | int result; | |
19118 | bool temp2 = False ; | |
19119 | PyObject * obj0 = 0 ; | |
19120 | PyObject * obj1 = 0 ; | |
19121 | char *kwnames[] = { | |
19122 | (char *) "self",(char *) "tz", NULL | |
19123 | }; | |
19124 | ||
19125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19128 | if (obj1) { | |
19129 | { | |
19130 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19131 | temp2 = True; | |
19132 | } | |
19133 | } | |
19134 | { | |
19135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19136 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19137 | ||
19138 | wxPyEndAllowThreads(__tstate); | |
19139 | if (PyErr_Occurred()) SWIG_fail; | |
19140 | } | |
19141 | resultobj = SWIG_FromInt((int)result); | |
19142 | { | |
19143 | if (temp2) delete arg2; | |
19144 | } | |
19145 | return resultobj; | |
19146 | fail: | |
19147 | { | |
19148 | if (temp2) delete arg2; | |
19149 | } | |
19150 | return NULL; | |
19151 | } | |
19152 | ||
19153 | ||
19154 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19155 | PyObject *resultobj; | |
19156 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19157 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19158 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19159 | int result; | |
19160 | bool temp2 = False ; | |
19161 | PyObject * obj0 = 0 ; | |
19162 | PyObject * obj1 = 0 ; | |
19163 | char *kwnames[] = { | |
19164 | (char *) "self",(char *) "tz", NULL | |
19165 | }; | |
19166 | ||
19167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19170 | if (obj1) { | |
19171 | { | |
19172 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19173 | temp2 = True; | |
19174 | } | |
19175 | } | |
19176 | { | |
19177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19178 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19179 | ||
19180 | wxPyEndAllowThreads(__tstate); | |
19181 | if (PyErr_Occurred()) SWIG_fail; | |
19182 | } | |
19183 | resultobj = SWIG_FromInt((int)result); | |
19184 | { | |
19185 | if (temp2) delete arg2; | |
19186 | } | |
19187 | return resultobj; | |
19188 | fail: | |
19189 | { | |
19190 | if (temp2) delete arg2; | |
19191 | } | |
19192 | return NULL; | |
19193 | } | |
19194 | ||
19195 | ||
19196 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19197 | PyObject *resultobj; | |
19198 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19199 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19200 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19201 | int result; | |
19202 | bool temp2 = False ; | |
19203 | PyObject * obj0 = 0 ; | |
19204 | PyObject * obj1 = 0 ; | |
19205 | char *kwnames[] = { | |
19206 | (char *) "self",(char *) "tz", NULL | |
19207 | }; | |
19208 | ||
19209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19212 | if (obj1) { | |
19213 | { | |
19214 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19215 | temp2 = True; | |
19216 | } | |
19217 | } | |
19218 | { | |
19219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19220 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19221 | ||
19222 | wxPyEndAllowThreads(__tstate); | |
19223 | if (PyErr_Occurred()) SWIG_fail; | |
19224 | } | |
19225 | resultobj = SWIG_FromInt((int)result); | |
19226 | { | |
19227 | if (temp2) delete arg2; | |
19228 | } | |
19229 | return resultobj; | |
19230 | fail: | |
19231 | { | |
19232 | if (temp2) delete arg2; | |
19233 | } | |
19234 | return NULL; | |
19235 | } | |
19236 | ||
19237 | ||
19238 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19239 | PyObject *resultobj; | |
19240 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19241 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19242 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19243 | int result; | |
19244 | bool temp2 = False ; | |
19245 | PyObject * obj0 = 0 ; | |
19246 | PyObject * obj1 = 0 ; | |
19247 | char *kwnames[] = { | |
19248 | (char *) "self",(char *) "tz", NULL | |
19249 | }; | |
19250 | ||
19251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19254 | if (obj1) { | |
19255 | { | |
19256 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19257 | temp2 = True; | |
19258 | } | |
19259 | } | |
19260 | { | |
19261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19262 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19263 | ||
19264 | wxPyEndAllowThreads(__tstate); | |
19265 | if (PyErr_Occurred()) SWIG_fail; | |
19266 | } | |
19267 | resultobj = SWIG_FromInt((int)result); | |
19268 | { | |
19269 | if (temp2) delete arg2; | |
19270 | } | |
19271 | return resultobj; | |
19272 | fail: | |
19273 | { | |
19274 | if (temp2) delete arg2; | |
19275 | } | |
19276 | return NULL; | |
19277 | } | |
19278 | ||
19279 | ||
19280 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19281 | PyObject *resultobj; | |
19282 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19283 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19284 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19285 | int result; | |
19286 | bool temp2 = False ; | |
19287 | PyObject * obj0 = 0 ; | |
19288 | PyObject * obj1 = 0 ; | |
19289 | char *kwnames[] = { | |
19290 | (char *) "self",(char *) "tz", NULL | |
19291 | }; | |
19292 | ||
19293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19296 | if (obj1) { | |
19297 | { | |
19298 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19299 | temp2 = True; | |
19300 | } | |
19301 | } | |
19302 | { | |
19303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19304 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
19305 | ||
19306 | wxPyEndAllowThreads(__tstate); | |
19307 | if (PyErr_Occurred()) SWIG_fail; | |
19308 | } | |
19309 | resultobj = SWIG_FromInt((int)result); | |
19310 | { | |
19311 | if (temp2) delete arg2; | |
19312 | } | |
19313 | return resultobj; | |
19314 | fail: | |
19315 | { | |
19316 | if (temp2) delete arg2; | |
19317 | } | |
19318 | return NULL; | |
19319 | } | |
19320 | ||
19321 | ||
19322 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19323 | PyObject *resultobj; | |
19324 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19325 | int arg2 = (int) wxDateTime::Monday_First ; | |
19326 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19327 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19328 | int result; | |
19329 | bool temp3 = False ; | |
19330 | PyObject * obj0 = 0 ; | |
19331 | PyObject * obj1 = 0 ; | |
19332 | PyObject * obj2 = 0 ; | |
19333 | char *kwnames[] = { | |
19334 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19335 | }; | |
19336 | ||
19337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19340 | if (obj1) { | |
19341 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19342 | if (PyErr_Occurred()) SWIG_fail; | |
19343 | } | |
19344 | if (obj2) { | |
19345 | { | |
19346 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19347 | temp3 = True; | |
19348 | } | |
19349 | } | |
19350 | { | |
19351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19352 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19353 | ||
19354 | wxPyEndAllowThreads(__tstate); | |
19355 | if (PyErr_Occurred()) SWIG_fail; | |
19356 | } | |
19357 | resultobj = SWIG_FromInt((int)result); | |
19358 | { | |
19359 | if (temp3) delete arg3; | |
19360 | } | |
19361 | return resultobj; | |
19362 | fail: | |
19363 | { | |
19364 | if (temp3) delete arg3; | |
19365 | } | |
19366 | return NULL; | |
19367 | } | |
19368 | ||
19369 | ||
19370 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19371 | PyObject *resultobj; | |
19372 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19373 | int arg2 = (int) wxDateTime::Monday_First ; | |
19374 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19375 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19376 | int result; | |
19377 | bool temp3 = False ; | |
19378 | PyObject * obj0 = 0 ; | |
19379 | PyObject * obj1 = 0 ; | |
19380 | PyObject * obj2 = 0 ; | |
19381 | char *kwnames[] = { | |
19382 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19383 | }; | |
19384 | ||
19385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19388 | if (obj1) { | |
19389 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19390 | if (PyErr_Occurred()) SWIG_fail; | |
19391 | } | |
19392 | if (obj2) { | |
19393 | { | |
19394 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19395 | temp3 = True; | |
19396 | } | |
19397 | } | |
19398 | { | |
19399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19400 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19401 | ||
19402 | wxPyEndAllowThreads(__tstate); | |
19403 | if (PyErr_Occurred()) SWIG_fail; | |
19404 | } | |
19405 | resultobj = SWIG_FromInt((int)result); | |
19406 | { | |
19407 | if (temp3) delete arg3; | |
19408 | } | |
19409 | return resultobj; | |
19410 | fail: | |
19411 | { | |
19412 | if (temp3) delete arg3; | |
19413 | } | |
19414 | return NULL; | |
19415 | } | |
19416 | ||
19417 | ||
19418 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19419 | PyObject *resultobj; | |
19420 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19421 | int arg2 = (int) wxDateTime::Country_Default ; | |
19422 | bool result; | |
19423 | PyObject * obj0 = 0 ; | |
19424 | PyObject * obj1 = 0 ; | |
19425 | char *kwnames[] = { | |
19426 | (char *) "self",(char *) "country", NULL | |
19427 | }; | |
19428 | ||
19429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
19430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19432 | if (obj1) { | |
19433 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
19434 | if (PyErr_Occurred()) SWIG_fail; | |
19435 | } | |
19436 | { | |
19437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19438 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19439 | ||
19440 | wxPyEndAllowThreads(__tstate); | |
19441 | if (PyErr_Occurred()) SWIG_fail; | |
19442 | } | |
19443 | { | |
19444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19445 | } | |
19446 | return resultobj; | |
19447 | fail: | |
19448 | return NULL; | |
19449 | } | |
19450 | ||
19451 | ||
19452 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19453 | PyObject *resultobj; | |
19454 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19455 | wxDateTime *arg2 = 0 ; | |
19456 | bool result; | |
19457 | PyObject * obj0 = 0 ; | |
19458 | PyObject * obj1 = 0 ; | |
19459 | char *kwnames[] = { | |
19460 | (char *) "self",(char *) "datetime", NULL | |
19461 | }; | |
19462 | ||
19463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19467 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19468 | SWIG_fail; | |
19469 | if (arg2 == NULL) { | |
19470 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19471 | SWIG_fail; | |
19472 | } | |
19473 | { | |
19474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19475 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19476 | ||
19477 | wxPyEndAllowThreads(__tstate); | |
19478 | if (PyErr_Occurred()) SWIG_fail; | |
19479 | } | |
19480 | { | |
19481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19482 | } | |
19483 | return resultobj; | |
19484 | fail: | |
19485 | return NULL; | |
19486 | } | |
19487 | ||
19488 | ||
19489 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19490 | PyObject *resultobj; | |
19491 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19492 | wxDateTime *arg2 = 0 ; | |
19493 | bool result; | |
19494 | PyObject * obj0 = 0 ; | |
19495 | PyObject * obj1 = 0 ; | |
19496 | char *kwnames[] = { | |
19497 | (char *) "self",(char *) "datetime", NULL | |
19498 | }; | |
19499 | ||
19500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19505 | SWIG_fail; | |
19506 | if (arg2 == NULL) { | |
19507 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19508 | SWIG_fail; | |
19509 | } | |
19510 | { | |
19511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19512 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19513 | ||
19514 | wxPyEndAllowThreads(__tstate); | |
19515 | if (PyErr_Occurred()) SWIG_fail; | |
19516 | } | |
19517 | { | |
19518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19519 | } | |
19520 | return resultobj; | |
19521 | fail: | |
19522 | return NULL; | |
19523 | } | |
19524 | ||
19525 | ||
19526 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19527 | PyObject *resultobj; | |
19528 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19529 | wxDateTime *arg2 = 0 ; | |
19530 | bool result; | |
19531 | PyObject * obj0 = 0 ; | |
19532 | PyObject * obj1 = 0 ; | |
19533 | char *kwnames[] = { | |
19534 | (char *) "self",(char *) "datetime", NULL | |
19535 | }; | |
19536 | ||
19537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
19538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19540 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19541 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19542 | SWIG_fail; | |
19543 | if (arg2 == NULL) { | |
19544 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19545 | SWIG_fail; | |
19546 | } | |
19547 | { | |
19548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19549 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19550 | ||
19551 | wxPyEndAllowThreads(__tstate); | |
19552 | if (PyErr_Occurred()) SWIG_fail; | |
19553 | } | |
19554 | { | |
19555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19556 | } | |
19557 | return resultobj; | |
19558 | fail: | |
19559 | return NULL; | |
19560 | } | |
19561 | ||
19562 | ||
19563 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19564 | PyObject *resultobj; | |
19565 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19566 | wxDateTime *arg2 = 0 ; | |
19567 | wxDateTime *arg3 = 0 ; | |
19568 | bool result; | |
19569 | PyObject * obj0 = 0 ; | |
19570 | PyObject * obj1 = 0 ; | |
19571 | PyObject * obj2 = 0 ; | |
19572 | char *kwnames[] = { | |
19573 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19574 | }; | |
19575 | ||
19576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19579 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19580 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19581 | SWIG_fail; | |
19582 | if (arg2 == NULL) { | |
19583 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19584 | SWIG_fail; | |
19585 | } | |
19586 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19587 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19588 | SWIG_fail; | |
19589 | if (arg3 == NULL) { | |
19590 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19591 | SWIG_fail; | |
19592 | } | |
19593 | { | |
19594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19595 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19596 | ||
19597 | wxPyEndAllowThreads(__tstate); | |
19598 | if (PyErr_Occurred()) SWIG_fail; | |
19599 | } | |
19600 | { | |
19601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19602 | } | |
19603 | return resultobj; | |
19604 | fail: | |
19605 | return NULL; | |
19606 | } | |
19607 | ||
19608 | ||
19609 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19610 | PyObject *resultobj; | |
19611 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19612 | wxDateTime *arg2 = 0 ; | |
19613 | wxDateTime *arg3 = 0 ; | |
19614 | bool result; | |
19615 | PyObject * obj0 = 0 ; | |
19616 | PyObject * obj1 = 0 ; | |
19617 | PyObject * obj2 = 0 ; | |
19618 | char *kwnames[] = { | |
19619 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19620 | }; | |
19621 | ||
19622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19626 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19627 | SWIG_fail; | |
19628 | if (arg2 == NULL) { | |
19629 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19630 | SWIG_fail; | |
19631 | } | |
19632 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19633 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19634 | SWIG_fail; | |
19635 | if (arg3 == NULL) { | |
19636 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19637 | SWIG_fail; | |
19638 | } | |
19639 | { | |
19640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19641 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19642 | ||
19643 | wxPyEndAllowThreads(__tstate); | |
19644 | if (PyErr_Occurred()) SWIG_fail; | |
19645 | } | |
19646 | { | |
19647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19648 | } | |
19649 | return resultobj; | |
19650 | fail: | |
19651 | return NULL; | |
19652 | } | |
19653 | ||
19654 | ||
19655 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19656 | PyObject *resultobj; | |
19657 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19658 | wxDateTime *arg2 = 0 ; | |
19659 | bool result; | |
19660 | PyObject * obj0 = 0 ; | |
19661 | PyObject * obj1 = 0 ; | |
19662 | char *kwnames[] = { | |
19663 | (char *) "self",(char *) "dt", NULL | |
19664 | }; | |
19665 | ||
19666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
19667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19671 | SWIG_fail; | |
19672 | if (arg2 == NULL) { | |
19673 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19674 | SWIG_fail; | |
19675 | } | |
19676 | { | |
19677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19678 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19679 | ||
19680 | wxPyEndAllowThreads(__tstate); | |
19681 | if (PyErr_Occurred()) SWIG_fail; | |
19682 | } | |
19683 | { | |
19684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19685 | } | |
19686 | return resultobj; | |
19687 | fail: | |
19688 | return NULL; | |
19689 | } | |
19690 | ||
19691 | ||
19692 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19693 | PyObject *resultobj; | |
19694 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19695 | wxDateTime *arg2 = 0 ; | |
19696 | bool result; | |
19697 | PyObject * obj0 = 0 ; | |
19698 | PyObject * obj1 = 0 ; | |
19699 | char *kwnames[] = { | |
19700 | (char *) "self",(char *) "dt", NULL | |
19701 | }; | |
19702 | ||
19703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
19704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19708 | SWIG_fail; | |
19709 | if (arg2 == NULL) { | |
19710 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19711 | SWIG_fail; | |
19712 | } | |
19713 | { | |
19714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19715 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19716 | ||
19717 | wxPyEndAllowThreads(__tstate); | |
19718 | if (PyErr_Occurred()) SWIG_fail; | |
19719 | } | |
19720 | { | |
19721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19722 | } | |
19723 | return resultobj; | |
19724 | fail: | |
19725 | return NULL; | |
19726 | } | |
19727 | ||
19728 | ||
19729 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19730 | PyObject *resultobj; | |
19731 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19732 | wxDateTime *arg2 = 0 ; | |
19733 | wxTimeSpan *arg3 = 0 ; | |
19734 | bool result; | |
19735 | PyObject * obj0 = 0 ; | |
19736 | PyObject * obj1 = 0 ; | |
19737 | PyObject * obj2 = 0 ; | |
19738 | char *kwnames[] = { | |
19739 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19740 | }; | |
19741 | ||
19742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19745 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19746 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19747 | SWIG_fail; | |
19748 | if (arg2 == NULL) { | |
19749 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19750 | SWIG_fail; | |
19751 | } | |
19752 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
19753 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19754 | SWIG_fail; | |
19755 | if (arg3 == NULL) { | |
19756 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19757 | SWIG_fail; | |
19758 | } | |
19759 | { | |
19760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19761 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19762 | ||
19763 | wxPyEndAllowThreads(__tstate); | |
19764 | if (PyErr_Occurred()) SWIG_fail; | |
19765 | } | |
19766 | { | |
19767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19768 | } | |
19769 | return resultobj; | |
19770 | fail: | |
19771 | return NULL; | |
19772 | } | |
19773 | ||
19774 | ||
19775 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19776 | PyObject *resultobj; | |
19777 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19778 | wxTimeSpan *arg2 = 0 ; | |
19779 | wxDateTime *result; | |
19780 | PyObject * obj0 = 0 ; | |
19781 | PyObject * obj1 = 0 ; | |
19782 | char *kwnames[] = { | |
19783 | (char *) "self",(char *) "diff", NULL | |
19784 | }; | |
19785 | ||
19786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
19787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19789 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19790 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19791 | SWIG_fail; | |
19792 | if (arg2 == NULL) { | |
19793 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19794 | SWIG_fail; | |
19795 | } | |
19796 | { | |
19797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19798 | { | |
19799 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19800 | result = (wxDateTime *) &_result_ref; | |
19801 | } | |
19802 | ||
19803 | wxPyEndAllowThreads(__tstate); | |
19804 | if (PyErr_Occurred()) SWIG_fail; | |
19805 | } | |
19806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19807 | return resultobj; | |
19808 | fail: | |
19809 | return NULL; | |
19810 | } | |
19811 | ||
19812 | ||
19813 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19814 | PyObject *resultobj; | |
19815 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19816 | wxDateSpan *arg2 = 0 ; | |
19817 | wxDateTime *result; | |
19818 | PyObject * obj0 = 0 ; | |
19819 | PyObject * obj1 = 0 ; | |
19820 | char *kwnames[] = { | |
19821 | (char *) "self",(char *) "diff", NULL | |
19822 | }; | |
19823 | ||
19824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
19825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19828 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19829 | SWIG_fail; | |
19830 | if (arg2 == NULL) { | |
19831 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19832 | SWIG_fail; | |
19833 | } | |
19834 | { | |
19835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19836 | { | |
19837 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19838 | result = (wxDateTime *) &_result_ref; | |
19839 | } | |
19840 | ||
19841 | wxPyEndAllowThreads(__tstate); | |
19842 | if (PyErr_Occurred()) SWIG_fail; | |
19843 | } | |
19844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19845 | return resultobj; | |
19846 | fail: | |
19847 | return NULL; | |
19848 | } | |
19849 | ||
19850 | ||
19851 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19852 | PyObject *resultobj; | |
19853 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19854 | wxTimeSpan *arg2 = 0 ; | |
19855 | wxDateTime *result; | |
19856 | PyObject * obj0 = 0 ; | |
19857 | PyObject * obj1 = 0 ; | |
19858 | char *kwnames[] = { | |
19859 | (char *) "self",(char *) "diff", NULL | |
19860 | }; | |
19861 | ||
19862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
19863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19867 | SWIG_fail; | |
19868 | if (arg2 == NULL) { | |
19869 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19870 | SWIG_fail; | |
19871 | } | |
19872 | { | |
19873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19874 | { | |
19875 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19876 | result = (wxDateTime *) &_result_ref; | |
19877 | } | |
19878 | ||
19879 | wxPyEndAllowThreads(__tstate); | |
19880 | if (PyErr_Occurred()) SWIG_fail; | |
19881 | } | |
19882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19883 | return resultobj; | |
19884 | fail: | |
19885 | return NULL; | |
19886 | } | |
19887 | ||
19888 | ||
19889 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19890 | PyObject *resultobj; | |
19891 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19892 | wxDateSpan *arg2 = 0 ; | |
19893 | wxDateTime *result; | |
19894 | PyObject * obj0 = 0 ; | |
19895 | PyObject * obj1 = 0 ; | |
19896 | char *kwnames[] = { | |
19897 | (char *) "self",(char *) "diff", NULL | |
19898 | }; | |
19899 | ||
19900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
19901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19903 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19904 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19905 | SWIG_fail; | |
19906 | if (arg2 == NULL) { | |
19907 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19908 | SWIG_fail; | |
19909 | } | |
19910 | { | |
19911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19912 | { | |
19913 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19914 | result = (wxDateTime *) &_result_ref; | |
19915 | } | |
19916 | ||
19917 | wxPyEndAllowThreads(__tstate); | |
19918 | if (PyErr_Occurred()) SWIG_fail; | |
19919 | } | |
19920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19921 | return resultobj; | |
19922 | fail: | |
19923 | return NULL; | |
19924 | } | |
19925 | ||
19926 | ||
19927 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19928 | PyObject *resultobj; | |
19929 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19930 | wxDateTime *arg2 = 0 ; | |
19931 | wxTimeSpan result; | |
19932 | PyObject * obj0 = 0 ; | |
19933 | PyObject * obj1 = 0 ; | |
19934 | char *kwnames[] = { | |
19935 | (char *) "self",(char *) "dt", NULL | |
19936 | }; | |
19937 | ||
19938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19941 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19942 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19943 | SWIG_fail; | |
19944 | if (arg2 == NULL) { | |
19945 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19946 | SWIG_fail; | |
19947 | } | |
19948 | { | |
19949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19950 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19951 | ||
19952 | wxPyEndAllowThreads(__tstate); | |
19953 | if (PyErr_Occurred()) SWIG_fail; | |
19954 | } | |
19955 | { | |
19956 | wxTimeSpan * resultptr; | |
19957 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19958 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
19959 | } | |
19960 | return resultobj; | |
19961 | fail: | |
19962 | return NULL; | |
19963 | } | |
19964 | ||
19965 | ||
19966 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19967 | PyObject *resultobj; | |
19968 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19969 | wxTimeSpan *arg2 = 0 ; | |
19970 | wxDateTime *result; | |
19971 | PyObject * obj0 = 0 ; | |
19972 | PyObject * obj1 = 0 ; | |
19973 | ||
19974 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19978 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19979 | SWIG_fail; | |
19980 | if (arg2 == NULL) { | |
19981 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19982 | SWIG_fail; | |
19983 | } | |
19984 | { | |
19985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19986 | { | |
19987 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19988 | result = (wxDateTime *) &_result_ref; | |
19989 | } | |
19990 | ||
19991 | wxPyEndAllowThreads(__tstate); | |
19992 | if (PyErr_Occurred()) SWIG_fail; | |
19993 | } | |
19994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19995 | return resultobj; | |
19996 | fail: | |
19997 | return NULL; | |
19998 | } | |
19999 | ||
20000 | ||
20001 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
20002 | PyObject *resultobj; | |
20003 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20004 | wxDateSpan *arg2 = 0 ; | |
20005 | wxDateTime *result; | |
20006 | PyObject * obj0 = 0 ; | |
20007 | PyObject * obj1 = 0 ; | |
20008 | ||
20009 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20012 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20013 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20014 | SWIG_fail; | |
20015 | if (arg2 == NULL) { | |
20016 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20017 | SWIG_fail; | |
20018 | } | |
20019 | { | |
20020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20021 | { | |
20022 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20023 | result = (wxDateTime *) &_result_ref; | |
20024 | } | |
20025 | ||
20026 | wxPyEndAllowThreads(__tstate); | |
20027 | if (PyErr_Occurred()) SWIG_fail; | |
20028 | } | |
20029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20030 | return resultobj; | |
20031 | fail: | |
20032 | return NULL; | |
20033 | } | |
20034 | ||
20035 | ||
20036 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20037 | int argc; | |
20038 | PyObject *argv[3]; | |
20039 | int ii; | |
20040 | ||
20041 | argc = PyObject_Length(args); | |
20042 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20043 | argv[ii] = PyTuple_GetItem(args,ii); | |
20044 | } | |
20045 | if (argc == 2) { | |
20046 | int _v; | |
20047 | { | |
20048 | void *ptr; | |
20049 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20050 | _v = 0; | |
20051 | PyErr_Clear(); | |
20052 | } else { | |
20053 | _v = 1; | |
20054 | } | |
20055 | } | |
20056 | if (_v) { | |
20057 | { | |
20058 | void *ptr; | |
20059 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20060 | _v = 0; | |
20061 | PyErr_Clear(); | |
20062 | } else { | |
20063 | _v = 1; | |
20064 | } | |
20065 | } | |
20066 | if (_v) { | |
20067 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20068 | } | |
20069 | } | |
20070 | } | |
20071 | if (argc == 2) { | |
20072 | int _v; | |
20073 | { | |
20074 | void *ptr; | |
20075 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20076 | _v = 0; | |
20077 | PyErr_Clear(); | |
20078 | } else { | |
20079 | _v = 1; | |
20080 | } | |
20081 | } | |
20082 | if (_v) { | |
20083 | { | |
20084 | void *ptr; | |
20085 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20086 | _v = 0; | |
20087 | PyErr_Clear(); | |
20088 | } else { | |
20089 | _v = 1; | |
20090 | } | |
20091 | } | |
20092 | if (_v) { | |
20093 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20094 | } | |
20095 | } | |
20096 | } | |
20097 | ||
20098 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20099 | return NULL; | |
20100 | } | |
20101 | ||
20102 | ||
20103 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20104 | PyObject *resultobj; | |
20105 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20106 | wxTimeSpan *arg2 = 0 ; | |
20107 | wxDateTime *result; | |
20108 | PyObject * obj0 = 0 ; | |
20109 | PyObject * obj1 = 0 ; | |
20110 | ||
20111 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20114 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20116 | SWIG_fail; | |
20117 | if (arg2 == NULL) { | |
20118 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20119 | SWIG_fail; | |
20120 | } | |
20121 | { | |
20122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20123 | { | |
20124 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20125 | result = (wxDateTime *) &_result_ref; | |
20126 | } | |
20127 | ||
20128 | wxPyEndAllowThreads(__tstate); | |
20129 | if (PyErr_Occurred()) SWIG_fail; | |
20130 | } | |
20131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20132 | return resultobj; | |
20133 | fail: | |
20134 | return NULL; | |
20135 | } | |
20136 | ||
20137 | ||
20138 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20139 | PyObject *resultobj; | |
20140 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20141 | wxDateSpan *arg2 = 0 ; | |
20142 | wxDateTime *result; | |
20143 | PyObject * obj0 = 0 ; | |
20144 | PyObject * obj1 = 0 ; | |
20145 | ||
20146 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20149 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20150 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20151 | SWIG_fail; | |
20152 | if (arg2 == NULL) { | |
20153 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20154 | SWIG_fail; | |
20155 | } | |
20156 | { | |
20157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20158 | { | |
20159 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20160 | result = (wxDateTime *) &_result_ref; | |
20161 | } | |
20162 | ||
20163 | wxPyEndAllowThreads(__tstate); | |
20164 | if (PyErr_Occurred()) SWIG_fail; | |
20165 | } | |
20166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20167 | return resultobj; | |
20168 | fail: | |
20169 | return NULL; | |
20170 | } | |
20171 | ||
20172 | ||
20173 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20174 | int argc; | |
20175 | PyObject *argv[3]; | |
20176 | int ii; | |
20177 | ||
20178 | argc = PyObject_Length(args); | |
20179 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20180 | argv[ii] = PyTuple_GetItem(args,ii); | |
20181 | } | |
20182 | if (argc == 2) { | |
20183 | int _v; | |
20184 | { | |
20185 | void *ptr; | |
20186 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20187 | _v = 0; | |
20188 | PyErr_Clear(); | |
20189 | } else { | |
20190 | _v = 1; | |
20191 | } | |
20192 | } | |
20193 | if (_v) { | |
20194 | { | |
20195 | void *ptr; | |
20196 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20197 | _v = 0; | |
20198 | PyErr_Clear(); | |
20199 | } else { | |
20200 | _v = 1; | |
20201 | } | |
20202 | } | |
20203 | if (_v) { | |
20204 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20205 | } | |
20206 | } | |
20207 | } | |
20208 | if (argc == 2) { | |
20209 | int _v; | |
20210 | { | |
20211 | void *ptr; | |
20212 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20213 | _v = 0; | |
20214 | PyErr_Clear(); | |
20215 | } else { | |
20216 | _v = 1; | |
20217 | } | |
20218 | } | |
20219 | if (_v) { | |
20220 | { | |
20221 | void *ptr; | |
20222 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20223 | _v = 0; | |
20224 | PyErr_Clear(); | |
20225 | } else { | |
20226 | _v = 1; | |
20227 | } | |
20228 | } | |
20229 | if (_v) { | |
20230 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20231 | } | |
20232 | } | |
20233 | } | |
20234 | ||
20235 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20236 | return NULL; | |
20237 | } | |
20238 | ||
20239 | ||
20240 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20241 | PyObject *resultobj; | |
20242 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20243 | wxTimeSpan *arg2 = 0 ; | |
20244 | wxDateTime result; | |
20245 | PyObject * obj0 = 0 ; | |
20246 | PyObject * obj1 = 0 ; | |
20247 | ||
20248 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20251 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20252 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20253 | SWIG_fail; | |
20254 | if (arg2 == NULL) { | |
20255 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20256 | SWIG_fail; | |
20257 | } | |
20258 | { | |
20259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20260 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20261 | ||
20262 | wxPyEndAllowThreads(__tstate); | |
20263 | if (PyErr_Occurred()) SWIG_fail; | |
20264 | } | |
20265 | { | |
20266 | wxDateTime * resultptr; | |
20267 | resultptr = new wxDateTime((wxDateTime &) result); | |
20268 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20269 | } | |
20270 | return resultobj; | |
20271 | fail: | |
20272 | return NULL; | |
20273 | } | |
20274 | ||
20275 | ||
20276 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20277 | PyObject *resultobj; | |
20278 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20279 | wxDateSpan *arg2 = 0 ; | |
20280 | wxDateTime result; | |
20281 | PyObject * obj0 = 0 ; | |
20282 | PyObject * obj1 = 0 ; | |
20283 | ||
20284 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20288 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20289 | SWIG_fail; | |
20290 | if (arg2 == NULL) { | |
20291 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20292 | SWIG_fail; | |
20293 | } | |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20297 | ||
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
20301 | { | |
20302 | wxDateTime * resultptr; | |
20303 | resultptr = new wxDateTime((wxDateTime &) result); | |
20304 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20305 | } | |
20306 | return resultobj; | |
20307 | fail: | |
20308 | return NULL; | |
20309 | } | |
20310 | ||
20311 | ||
20312 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20313 | int argc; | |
20314 | PyObject *argv[3]; | |
20315 | int ii; | |
20316 | ||
20317 | argc = PyObject_Length(args); | |
20318 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20319 | argv[ii] = PyTuple_GetItem(args,ii); | |
20320 | } | |
20321 | if (argc == 2) { | |
20322 | int _v; | |
20323 | { | |
20324 | void *ptr; | |
20325 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20326 | _v = 0; | |
20327 | PyErr_Clear(); | |
20328 | } else { | |
20329 | _v = 1; | |
20330 | } | |
20331 | } | |
20332 | if (_v) { | |
20333 | { | |
20334 | void *ptr; | |
20335 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20336 | _v = 0; | |
20337 | PyErr_Clear(); | |
20338 | } else { | |
20339 | _v = 1; | |
20340 | } | |
20341 | } | |
20342 | if (_v) { | |
20343 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20344 | } | |
20345 | } | |
20346 | } | |
20347 | if (argc == 2) { | |
20348 | int _v; | |
20349 | { | |
20350 | void *ptr; | |
20351 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20352 | _v = 0; | |
20353 | PyErr_Clear(); | |
20354 | } else { | |
20355 | _v = 1; | |
20356 | } | |
20357 | } | |
20358 | if (_v) { | |
20359 | { | |
20360 | void *ptr; | |
20361 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20362 | _v = 0; | |
20363 | PyErr_Clear(); | |
20364 | } else { | |
20365 | _v = 1; | |
20366 | } | |
20367 | } | |
20368 | if (_v) { | |
20369 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20370 | } | |
20371 | } | |
20372 | } | |
20373 | ||
20374 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20375 | return NULL; | |
20376 | } | |
20377 | ||
20378 | ||
20379 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20380 | PyObject *resultobj; | |
20381 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20382 | wxDateTime *arg2 = 0 ; | |
20383 | wxTimeSpan result; | |
20384 | PyObject * obj0 = 0 ; | |
20385 | PyObject * obj1 = 0 ; | |
20386 | ||
20387 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20390 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20391 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20392 | SWIG_fail; | |
20393 | if (arg2 == NULL) { | |
20394 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20395 | SWIG_fail; | |
20396 | } | |
20397 | { | |
20398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20399 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20400 | ||
20401 | wxPyEndAllowThreads(__tstate); | |
20402 | if (PyErr_Occurred()) SWIG_fail; | |
20403 | } | |
20404 | { | |
20405 | wxTimeSpan * resultptr; | |
20406 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20407 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20408 | } | |
20409 | return resultobj; | |
20410 | fail: | |
20411 | return NULL; | |
20412 | } | |
20413 | ||
20414 | ||
20415 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20416 | PyObject *resultobj; | |
20417 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20418 | wxTimeSpan *arg2 = 0 ; | |
20419 | wxDateTime result; | |
20420 | PyObject * obj0 = 0 ; | |
20421 | PyObject * obj1 = 0 ; | |
20422 | ||
20423 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20427 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20428 | SWIG_fail; | |
20429 | if (arg2 == NULL) { | |
20430 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20431 | SWIG_fail; | |
20432 | } | |
20433 | { | |
20434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20435 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20436 | ||
20437 | wxPyEndAllowThreads(__tstate); | |
20438 | if (PyErr_Occurred()) SWIG_fail; | |
20439 | } | |
20440 | { | |
20441 | wxDateTime * resultptr; | |
20442 | resultptr = new wxDateTime((wxDateTime &) result); | |
20443 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20444 | } | |
20445 | return resultobj; | |
20446 | fail: | |
20447 | return NULL; | |
20448 | } | |
20449 | ||
20450 | ||
20451 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20452 | PyObject *resultobj; | |
20453 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20454 | wxDateSpan *arg2 = 0 ; | |
20455 | wxDateTime result; | |
20456 | PyObject * obj0 = 0 ; | |
20457 | PyObject * obj1 = 0 ; | |
20458 | ||
20459 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20464 | SWIG_fail; | |
20465 | if (arg2 == NULL) { | |
20466 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20467 | SWIG_fail; | |
20468 | } | |
20469 | { | |
20470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20471 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20472 | ||
20473 | wxPyEndAllowThreads(__tstate); | |
20474 | if (PyErr_Occurred()) SWIG_fail; | |
20475 | } | |
20476 | { | |
20477 | wxDateTime * resultptr; | |
20478 | resultptr = new wxDateTime((wxDateTime &) result); | |
20479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20480 | } | |
20481 | return resultobj; | |
20482 | fail: | |
20483 | return NULL; | |
20484 | } | |
20485 | ||
20486 | ||
20487 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20488 | int argc; | |
20489 | PyObject *argv[3]; | |
20490 | int ii; | |
20491 | ||
20492 | argc = PyObject_Length(args); | |
20493 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20494 | argv[ii] = PyTuple_GetItem(args,ii); | |
20495 | } | |
20496 | if (argc == 2) { | |
20497 | int _v; | |
20498 | { | |
20499 | void *ptr; | |
20500 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20501 | _v = 0; | |
20502 | PyErr_Clear(); | |
20503 | } else { | |
20504 | _v = 1; | |
20505 | } | |
20506 | } | |
20507 | if (_v) { | |
20508 | { | |
20509 | void *ptr; | |
20510 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20511 | _v = 0; | |
20512 | PyErr_Clear(); | |
20513 | } else { | |
20514 | _v = 1; | |
20515 | } | |
20516 | } | |
20517 | if (_v) { | |
20518 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20519 | } | |
20520 | } | |
20521 | } | |
20522 | if (argc == 2) { | |
20523 | int _v; | |
20524 | { | |
20525 | void *ptr; | |
20526 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20527 | _v = 0; | |
20528 | PyErr_Clear(); | |
20529 | } else { | |
20530 | _v = 1; | |
20531 | } | |
20532 | } | |
20533 | if (_v) { | |
20534 | { | |
20535 | void *ptr; | |
20536 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20537 | _v = 0; | |
20538 | PyErr_Clear(); | |
20539 | } else { | |
20540 | _v = 1; | |
20541 | } | |
20542 | } | |
20543 | if (_v) { | |
20544 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20545 | } | |
20546 | } | |
20547 | } | |
20548 | if (argc == 2) { | |
20549 | int _v; | |
20550 | { | |
20551 | void *ptr; | |
20552 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20553 | _v = 0; | |
20554 | PyErr_Clear(); | |
20555 | } else { | |
20556 | _v = 1; | |
20557 | } | |
20558 | } | |
20559 | if (_v) { | |
20560 | { | |
20561 | void *ptr; | |
20562 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20563 | _v = 0; | |
20564 | PyErr_Clear(); | |
20565 | } else { | |
20566 | _v = 1; | |
20567 | } | |
20568 | } | |
20569 | if (_v) { | |
20570 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20571 | } | |
20572 | } | |
20573 | } | |
20574 | ||
20575 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20576 | return NULL; | |
20577 | } | |
20578 | ||
20579 | ||
20580 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20581 | PyObject *resultobj; | |
20582 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20583 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20584 | bool result; | |
20585 | PyObject * obj0 = 0 ; | |
20586 | PyObject * obj1 = 0 ; | |
20587 | ||
20588 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
20589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20593 | { | |
20594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20595 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
20596 | ||
20597 | wxPyEndAllowThreads(__tstate); | |
20598 | if (PyErr_Occurred()) SWIG_fail; | |
20599 | } | |
20600 | { | |
20601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20602 | } | |
20603 | return resultobj; | |
20604 | fail: | |
20605 | return NULL; | |
20606 | } | |
20607 | ||
20608 | ||
20609 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20610 | PyObject *resultobj; | |
20611 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20612 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20613 | bool result; | |
20614 | PyObject * obj0 = 0 ; | |
20615 | PyObject * obj1 = 0 ; | |
20616 | ||
20617 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
20618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20620 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20622 | { | |
20623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20624 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
20625 | ||
20626 | wxPyEndAllowThreads(__tstate); | |
20627 | if (PyErr_Occurred()) SWIG_fail; | |
20628 | } | |
20629 | { | |
20630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20631 | } | |
20632 | return resultobj; | |
20633 | fail: | |
20634 | return NULL; | |
20635 | } | |
20636 | ||
20637 | ||
20638 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20639 | PyObject *resultobj; | |
20640 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20641 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20642 | bool result; | |
20643 | PyObject * obj0 = 0 ; | |
20644 | PyObject * obj1 = 0 ; | |
20645 | ||
20646 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
20647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20651 | { | |
20652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20653 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
20654 | ||
20655 | wxPyEndAllowThreads(__tstate); | |
20656 | if (PyErr_Occurred()) SWIG_fail; | |
20657 | } | |
20658 | { | |
20659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20660 | } | |
20661 | return resultobj; | |
20662 | fail: | |
20663 | return NULL; | |
20664 | } | |
20665 | ||
20666 | ||
20667 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20668 | PyObject *resultobj; | |
20669 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20670 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20671 | bool result; | |
20672 | PyObject * obj0 = 0 ; | |
20673 | PyObject * obj1 = 0 ; | |
20674 | ||
20675 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
20676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20678 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20680 | { | |
20681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20682 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
20683 | ||
20684 | wxPyEndAllowThreads(__tstate); | |
20685 | if (PyErr_Occurred()) SWIG_fail; | |
20686 | } | |
20687 | { | |
20688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20689 | } | |
20690 | return resultobj; | |
20691 | fail: | |
20692 | return NULL; | |
20693 | } | |
20694 | ||
20695 | ||
20696 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20697 | PyObject *resultobj; | |
20698 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20699 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20700 | bool result; | |
20701 | PyObject * obj0 = 0 ; | |
20702 | PyObject * obj1 = 0 ; | |
20703 | ||
20704 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
20705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20707 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20709 | { | |
20710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20711 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
20712 | ||
20713 | wxPyEndAllowThreads(__tstate); | |
20714 | if (PyErr_Occurred()) SWIG_fail; | |
20715 | } | |
20716 | { | |
20717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20718 | } | |
20719 | return resultobj; | |
20720 | fail: | |
20721 | return NULL; | |
20722 | } | |
20723 | ||
20724 | ||
20725 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20726 | PyObject *resultobj; | |
20727 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20728 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20729 | bool result; | |
20730 | PyObject * obj0 = 0 ; | |
20731 | PyObject * obj1 = 0 ; | |
20732 | ||
20733 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
20734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20736 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20738 | { | |
20739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20740 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
20741 | ||
20742 | wxPyEndAllowThreads(__tstate); | |
20743 | if (PyErr_Occurred()) SWIG_fail; | |
20744 | } | |
20745 | { | |
20746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20747 | } | |
20748 | return resultobj; | |
20749 | fail: | |
20750 | return NULL; | |
20751 | } | |
20752 | ||
20753 | ||
20754 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20755 | PyObject *resultobj; | |
20756 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20757 | wxString *arg2 = 0 ; | |
20758 | int result; | |
20759 | bool temp2 = False ; | |
20760 | PyObject * obj0 = 0 ; | |
20761 | PyObject * obj1 = 0 ; | |
20762 | char *kwnames[] = { | |
20763 | (char *) "self",(char *) "date", NULL | |
20764 | }; | |
20765 | ||
20766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
20767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20769 | { | |
20770 | arg2 = wxString_in_helper(obj1); | |
20771 | if (arg2 == NULL) SWIG_fail; | |
20772 | temp2 = True; | |
20773 | } | |
20774 | { | |
20775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20776 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20777 | ||
20778 | wxPyEndAllowThreads(__tstate); | |
20779 | if (PyErr_Occurred()) SWIG_fail; | |
20780 | } | |
20781 | resultobj = SWIG_FromInt((int)result); | |
20782 | { | |
20783 | if (temp2) | |
20784 | delete arg2; | |
20785 | } | |
20786 | return resultobj; | |
20787 | fail: | |
20788 | { | |
20789 | if (temp2) | |
20790 | delete arg2; | |
20791 | } | |
20792 | return NULL; | |
20793 | } | |
20794 | ||
20795 | ||
20796 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20797 | PyObject *resultobj; | |
20798 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20799 | wxString *arg2 = 0 ; | |
20800 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20801 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20802 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20803 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20804 | int result; | |
20805 | bool temp2 = False ; | |
20806 | bool temp3 = False ; | |
20807 | PyObject * obj0 = 0 ; | |
20808 | PyObject * obj1 = 0 ; | |
20809 | PyObject * obj2 = 0 ; | |
20810 | PyObject * obj3 = 0 ; | |
20811 | char *kwnames[] = { | |
20812 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20813 | }; | |
20814 | ||
20815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20818 | { | |
20819 | arg2 = wxString_in_helper(obj1); | |
20820 | if (arg2 == NULL) SWIG_fail; | |
20821 | temp2 = True; | |
20822 | } | |
20823 | if (obj2) { | |
20824 | { | |
20825 | arg3 = wxString_in_helper(obj2); | |
20826 | if (arg3 == NULL) SWIG_fail; | |
20827 | temp3 = True; | |
20828 | } | |
20829 | } | |
20830 | if (obj3) { | |
20831 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
20832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20833 | SWIG_fail; | |
20834 | if (arg4 == NULL) { | |
20835 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20836 | SWIG_fail; | |
20837 | } | |
20838 | } | |
20839 | { | |
20840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20841 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20842 | ||
20843 | wxPyEndAllowThreads(__tstate); | |
20844 | if (PyErr_Occurred()) SWIG_fail; | |
20845 | } | |
20846 | resultobj = SWIG_FromInt((int)result); | |
20847 | { | |
20848 | if (temp2) | |
20849 | delete arg2; | |
20850 | } | |
20851 | { | |
20852 | if (temp3) | |
20853 | delete arg3; | |
20854 | } | |
20855 | return resultobj; | |
20856 | fail: | |
20857 | { | |
20858 | if (temp2) | |
20859 | delete arg2; | |
20860 | } | |
20861 | { | |
20862 | if (temp3) | |
20863 | delete arg3; | |
20864 | } | |
20865 | return NULL; | |
20866 | } | |
20867 | ||
20868 | ||
20869 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20870 | PyObject *resultobj; | |
20871 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20872 | wxString *arg2 = 0 ; | |
20873 | int result; | |
20874 | bool temp2 = False ; | |
20875 | PyObject * obj0 = 0 ; | |
20876 | PyObject * obj1 = 0 ; | |
20877 | char *kwnames[] = { | |
20878 | (char *) "self",(char *) "datetime", NULL | |
20879 | }; | |
20880 | ||
20881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
20882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20884 | { | |
20885 | arg2 = wxString_in_helper(obj1); | |
20886 | if (arg2 == NULL) SWIG_fail; | |
20887 | temp2 = True; | |
20888 | } | |
20889 | { | |
20890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20891 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20892 | ||
20893 | wxPyEndAllowThreads(__tstate); | |
20894 | if (PyErr_Occurred()) SWIG_fail; | |
20895 | } | |
20896 | resultobj = SWIG_FromInt((int)result); | |
20897 | { | |
20898 | if (temp2) | |
20899 | delete arg2; | |
20900 | } | |
20901 | return resultobj; | |
20902 | fail: | |
20903 | { | |
20904 | if (temp2) | |
20905 | delete arg2; | |
20906 | } | |
20907 | return NULL; | |
20908 | } | |
20909 | ||
20910 | ||
20911 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20912 | PyObject *resultobj; | |
20913 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20914 | wxString *arg2 = 0 ; | |
20915 | int result; | |
20916 | bool temp2 = False ; | |
20917 | PyObject * obj0 = 0 ; | |
20918 | PyObject * obj1 = 0 ; | |
20919 | char *kwnames[] = { | |
20920 | (char *) "self",(char *) "date", NULL | |
20921 | }; | |
20922 | ||
20923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
20924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20926 | { | |
20927 | arg2 = wxString_in_helper(obj1); | |
20928 | if (arg2 == NULL) SWIG_fail; | |
20929 | temp2 = True; | |
20930 | } | |
20931 | { | |
20932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20933 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20934 | ||
20935 | wxPyEndAllowThreads(__tstate); | |
20936 | if (PyErr_Occurred()) SWIG_fail; | |
20937 | } | |
20938 | resultobj = SWIG_FromInt((int)result); | |
20939 | { | |
20940 | if (temp2) | |
20941 | delete arg2; | |
20942 | } | |
20943 | return resultobj; | |
20944 | fail: | |
20945 | { | |
20946 | if (temp2) | |
20947 | delete arg2; | |
20948 | } | |
20949 | return NULL; | |
20950 | } | |
20951 | ||
20952 | ||
20953 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20954 | PyObject *resultobj; | |
20955 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20956 | wxString *arg2 = 0 ; | |
20957 | int result; | |
20958 | bool temp2 = False ; | |
20959 | PyObject * obj0 = 0 ; | |
20960 | PyObject * obj1 = 0 ; | |
20961 | char *kwnames[] = { | |
20962 | (char *) "self",(char *) "time", NULL | |
20963 | }; | |
20964 | ||
20965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
20966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20968 | { | |
20969 | arg2 = wxString_in_helper(obj1); | |
20970 | if (arg2 == NULL) SWIG_fail; | |
20971 | temp2 = True; | |
20972 | } | |
20973 | { | |
20974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20975 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20976 | ||
20977 | wxPyEndAllowThreads(__tstate); | |
20978 | if (PyErr_Occurred()) SWIG_fail; | |
20979 | } | |
20980 | resultobj = SWIG_FromInt((int)result); | |
20981 | { | |
20982 | if (temp2) | |
20983 | delete arg2; | |
20984 | } | |
20985 | return resultobj; | |
20986 | fail: | |
20987 | { | |
20988 | if (temp2) | |
20989 | delete arg2; | |
20990 | } | |
20991 | return NULL; | |
20992 | } | |
20993 | ||
20994 | ||
20995 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20996 | PyObject *resultobj; | |
20997 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20998 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
20999 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21000 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21001 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21002 | wxString result; | |
21003 | bool temp2 = False ; | |
21004 | bool temp3 = False ; | |
21005 | PyObject * obj0 = 0 ; | |
21006 | PyObject * obj1 = 0 ; | |
21007 | PyObject * obj2 = 0 ; | |
21008 | char *kwnames[] = { | |
21009 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21010 | }; | |
21011 | ||
21012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21015 | if (obj1) { | |
21016 | { | |
21017 | arg2 = wxString_in_helper(obj1); | |
21018 | if (arg2 == NULL) SWIG_fail; | |
21019 | temp2 = True; | |
21020 | } | |
21021 | } | |
21022 | if (obj2) { | |
21023 | { | |
21024 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
21025 | temp3 = True; | |
21026 | } | |
21027 | } | |
21028 | { | |
21029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21030 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21031 | ||
21032 | wxPyEndAllowThreads(__tstate); | |
21033 | if (PyErr_Occurred()) SWIG_fail; | |
21034 | } | |
21035 | { | |
21036 | #if wxUSE_UNICODE | |
21037 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21038 | #else | |
21039 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21040 | #endif | |
21041 | } | |
21042 | { | |
21043 | if (temp2) | |
21044 | delete arg2; | |
21045 | } | |
21046 | { | |
21047 | if (temp3) delete arg3; | |
21048 | } | |
21049 | return resultobj; | |
21050 | fail: | |
21051 | { | |
21052 | if (temp2) | |
21053 | delete arg2; | |
21054 | } | |
21055 | { | |
21056 | if (temp3) delete arg3; | |
21057 | } | |
21058 | return NULL; | |
21059 | } | |
21060 | ||
21061 | ||
21062 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21063 | PyObject *resultobj; | |
21064 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21065 | wxString result; | |
21066 | PyObject * obj0 = 0 ; | |
21067 | char *kwnames[] = { | |
21068 | (char *) "self", NULL | |
21069 | }; | |
21070 | ||
21071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21074 | { | |
21075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21076 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21077 | ||
21078 | wxPyEndAllowThreads(__tstate); | |
21079 | if (PyErr_Occurred()) SWIG_fail; | |
21080 | } | |
21081 | { | |
21082 | #if wxUSE_UNICODE | |
21083 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21084 | #else | |
21085 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21086 | #endif | |
21087 | } | |
21088 | return resultobj; | |
21089 | fail: | |
21090 | return NULL; | |
21091 | } | |
21092 | ||
21093 | ||
21094 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21095 | PyObject *resultobj; | |
21096 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21097 | wxString result; | |
21098 | PyObject * obj0 = 0 ; | |
21099 | char *kwnames[] = { | |
21100 | (char *) "self", NULL | |
21101 | }; | |
21102 | ||
21103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21106 | { | |
21107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21108 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21109 | ||
21110 | wxPyEndAllowThreads(__tstate); | |
21111 | if (PyErr_Occurred()) SWIG_fail; | |
21112 | } | |
21113 | { | |
21114 | #if wxUSE_UNICODE | |
21115 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21116 | #else | |
21117 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21118 | #endif | |
21119 | } | |
21120 | return resultobj; | |
21121 | fail: | |
21122 | return NULL; | |
21123 | } | |
21124 | ||
21125 | ||
21126 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21127 | PyObject *resultobj; | |
21128 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21129 | wxString result; | |
21130 | PyObject * obj0 = 0 ; | |
21131 | char *kwnames[] = { | |
21132 | (char *) "self", NULL | |
21133 | }; | |
21134 | ||
21135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21138 | { | |
21139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21140 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21141 | ||
21142 | wxPyEndAllowThreads(__tstate); | |
21143 | if (PyErr_Occurred()) SWIG_fail; | |
21144 | } | |
21145 | { | |
21146 | #if wxUSE_UNICODE | |
21147 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21148 | #else | |
21149 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21150 | #endif | |
21151 | } | |
21152 | return resultobj; | |
21153 | fail: | |
21154 | return NULL; | |
21155 | } | |
21156 | ||
21157 | ||
21158 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21159 | PyObject *resultobj; | |
21160 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21161 | wxString result; | |
21162 | PyObject * obj0 = 0 ; | |
21163 | char *kwnames[] = { | |
21164 | (char *) "self", NULL | |
21165 | }; | |
21166 | ||
21167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21170 | { | |
21171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21172 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21173 | ||
21174 | wxPyEndAllowThreads(__tstate); | |
21175 | if (PyErr_Occurred()) SWIG_fail; | |
21176 | } | |
21177 | { | |
21178 | #if wxUSE_UNICODE | |
21179 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21180 | #else | |
21181 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21182 | #endif | |
21183 | } | |
21184 | return resultobj; | |
21185 | fail: | |
21186 | return NULL; | |
21187 | } | |
21188 | ||
21189 | ||
21190 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21191 | PyObject *obj; | |
21192 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21193 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21194 | Py_INCREF(obj); | |
21195 | return Py_BuildValue((char *)""); | |
21196 | } | |
21197 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21198 | PyObject *resultobj; | |
21199 | long arg1 ; | |
21200 | wxTimeSpan result; | |
21201 | PyObject * obj0 = 0 ; | |
21202 | char *kwnames[] = { | |
21203 | (char *) "sec", NULL | |
21204 | }; | |
21205 | ||
21206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
21207 | arg1 = (long) SWIG_AsLong(obj0); | |
21208 | if (PyErr_Occurred()) SWIG_fail; | |
21209 | { | |
21210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21211 | result = wxTimeSpan::Seconds(arg1); | |
21212 | ||
21213 | wxPyEndAllowThreads(__tstate); | |
21214 | if (PyErr_Occurred()) SWIG_fail; | |
21215 | } | |
21216 | { | |
21217 | wxTimeSpan * resultptr; | |
21218 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21220 | } | |
21221 | return resultobj; | |
21222 | fail: | |
21223 | return NULL; | |
21224 | } | |
21225 | ||
21226 | ||
21227 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21228 | PyObject *resultobj; | |
21229 | wxTimeSpan result; | |
21230 | char *kwnames[] = { | |
21231 | NULL | |
21232 | }; | |
21233 | ||
21234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21235 | { | |
21236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21237 | result = wxTimeSpan::Second(); | |
21238 | ||
21239 | wxPyEndAllowThreads(__tstate); | |
21240 | if (PyErr_Occurred()) SWIG_fail; | |
21241 | } | |
21242 | { | |
21243 | wxTimeSpan * resultptr; | |
21244 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21245 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21246 | } | |
21247 | return resultobj; | |
21248 | fail: | |
21249 | return NULL; | |
21250 | } | |
21251 | ||
21252 | ||
21253 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21254 | PyObject *resultobj; | |
21255 | long arg1 ; | |
21256 | wxTimeSpan result; | |
21257 | PyObject * obj0 = 0 ; | |
21258 | char *kwnames[] = { | |
21259 | (char *) "min", NULL | |
21260 | }; | |
21261 | ||
21262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
21263 | arg1 = (long) SWIG_AsLong(obj0); | |
21264 | if (PyErr_Occurred()) SWIG_fail; | |
21265 | { | |
21266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21267 | result = wxTimeSpan::Minutes(arg1); | |
21268 | ||
21269 | wxPyEndAllowThreads(__tstate); | |
21270 | if (PyErr_Occurred()) SWIG_fail; | |
21271 | } | |
21272 | { | |
21273 | wxTimeSpan * resultptr; | |
21274 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21275 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21276 | } | |
21277 | return resultobj; | |
21278 | fail: | |
21279 | return NULL; | |
21280 | } | |
21281 | ||
21282 | ||
21283 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21284 | PyObject *resultobj; | |
21285 | wxTimeSpan result; | |
21286 | char *kwnames[] = { | |
21287 | NULL | |
21288 | }; | |
21289 | ||
21290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21291 | { | |
21292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21293 | result = wxTimeSpan::Minute(); | |
21294 | ||
21295 | wxPyEndAllowThreads(__tstate); | |
21296 | if (PyErr_Occurred()) SWIG_fail; | |
21297 | } | |
21298 | { | |
21299 | wxTimeSpan * resultptr; | |
21300 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21301 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21302 | } | |
21303 | return resultobj; | |
21304 | fail: | |
21305 | return NULL; | |
21306 | } | |
21307 | ||
21308 | ||
21309 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21310 | PyObject *resultobj; | |
21311 | long arg1 ; | |
21312 | wxTimeSpan result; | |
21313 | PyObject * obj0 = 0 ; | |
21314 | char *kwnames[] = { | |
21315 | (char *) "hours", NULL | |
21316 | }; | |
21317 | ||
21318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
21319 | arg1 = (long) SWIG_AsLong(obj0); | |
21320 | if (PyErr_Occurred()) SWIG_fail; | |
21321 | { | |
21322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21323 | result = wxTimeSpan::Hours(arg1); | |
21324 | ||
21325 | wxPyEndAllowThreads(__tstate); | |
21326 | if (PyErr_Occurred()) SWIG_fail; | |
21327 | } | |
21328 | { | |
21329 | wxTimeSpan * resultptr; | |
21330 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21331 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21332 | } | |
21333 | return resultobj; | |
21334 | fail: | |
21335 | return NULL; | |
21336 | } | |
21337 | ||
21338 | ||
21339 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21340 | PyObject *resultobj; | |
21341 | wxTimeSpan result; | |
21342 | char *kwnames[] = { | |
21343 | NULL | |
21344 | }; | |
21345 | ||
21346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21347 | { | |
21348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21349 | result = wxTimeSpan::Hour(); | |
21350 | ||
21351 | wxPyEndAllowThreads(__tstate); | |
21352 | if (PyErr_Occurred()) SWIG_fail; | |
21353 | } | |
21354 | { | |
21355 | wxTimeSpan * resultptr; | |
21356 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21357 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21358 | } | |
21359 | return resultobj; | |
21360 | fail: | |
21361 | return NULL; | |
21362 | } | |
21363 | ||
21364 | ||
21365 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21366 | PyObject *resultobj; | |
21367 | long arg1 ; | |
21368 | wxTimeSpan result; | |
21369 | PyObject * obj0 = 0 ; | |
21370 | char *kwnames[] = { | |
21371 | (char *) "days", NULL | |
21372 | }; | |
21373 | ||
21374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
21375 | arg1 = (long) SWIG_AsLong(obj0); | |
21376 | if (PyErr_Occurred()) SWIG_fail; | |
21377 | { | |
21378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21379 | result = wxTimeSpan::Days(arg1); | |
21380 | ||
21381 | wxPyEndAllowThreads(__tstate); | |
21382 | if (PyErr_Occurred()) SWIG_fail; | |
21383 | } | |
21384 | { | |
21385 | wxTimeSpan * resultptr; | |
21386 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21387 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21388 | } | |
21389 | return resultobj; | |
21390 | fail: | |
21391 | return NULL; | |
21392 | } | |
21393 | ||
21394 | ||
21395 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21396 | PyObject *resultobj; | |
21397 | wxTimeSpan result; | |
21398 | char *kwnames[] = { | |
21399 | NULL | |
21400 | }; | |
21401 | ||
21402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21403 | { | |
21404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21405 | result = wxTimeSpan::Day(); | |
21406 | ||
21407 | wxPyEndAllowThreads(__tstate); | |
21408 | if (PyErr_Occurred()) SWIG_fail; | |
21409 | } | |
21410 | { | |
21411 | wxTimeSpan * resultptr; | |
21412 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21413 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21414 | } | |
21415 | return resultobj; | |
21416 | fail: | |
21417 | return NULL; | |
21418 | } | |
21419 | ||
21420 | ||
21421 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21422 | PyObject *resultobj; | |
21423 | long arg1 ; | |
21424 | wxTimeSpan result; | |
21425 | PyObject * obj0 = 0 ; | |
21426 | char *kwnames[] = { | |
21427 | (char *) "days", NULL | |
21428 | }; | |
21429 | ||
21430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
21431 | arg1 = (long) SWIG_AsLong(obj0); | |
21432 | if (PyErr_Occurred()) SWIG_fail; | |
21433 | { | |
21434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21435 | result = wxTimeSpan::Weeks(arg1); | |
21436 | ||
21437 | wxPyEndAllowThreads(__tstate); | |
21438 | if (PyErr_Occurred()) SWIG_fail; | |
21439 | } | |
21440 | { | |
21441 | wxTimeSpan * resultptr; | |
21442 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21443 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21444 | } | |
21445 | return resultobj; | |
21446 | fail: | |
21447 | return NULL; | |
21448 | } | |
21449 | ||
21450 | ||
21451 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21452 | PyObject *resultobj; | |
21453 | wxTimeSpan result; | |
21454 | char *kwnames[] = { | |
21455 | NULL | |
21456 | }; | |
21457 | ||
21458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21459 | { | |
21460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21461 | result = wxTimeSpan::Week(); | |
21462 | ||
21463 | wxPyEndAllowThreads(__tstate); | |
21464 | if (PyErr_Occurred()) SWIG_fail; | |
21465 | } | |
21466 | { | |
21467 | wxTimeSpan * resultptr; | |
21468 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21469 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21470 | } | |
21471 | return resultobj; | |
21472 | fail: | |
21473 | return NULL; | |
21474 | } | |
21475 | ||
21476 | ||
21477 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21478 | PyObject *resultobj; | |
21479 | long arg1 = (long) 0 ; | |
21480 | long arg2 = (long) 0 ; | |
21481 | long arg3 = (long) 0 ; | |
21482 | long arg4 = (long) 0 ; | |
21483 | wxTimeSpan *result; | |
21484 | PyObject * obj0 = 0 ; | |
21485 | PyObject * obj1 = 0 ; | |
21486 | PyObject * obj2 = 0 ; | |
21487 | PyObject * obj3 = 0 ; | |
21488 | char *kwnames[] = { | |
21489 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21490 | }; | |
21491 | ||
21492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21493 | if (obj0) { | |
21494 | arg1 = (long) SWIG_AsLong(obj0); | |
21495 | if (PyErr_Occurred()) SWIG_fail; | |
21496 | } | |
21497 | if (obj1) { | |
21498 | arg2 = (long) SWIG_AsLong(obj1); | |
21499 | if (PyErr_Occurred()) SWIG_fail; | |
21500 | } | |
21501 | if (obj2) { | |
21502 | arg3 = (long) SWIG_AsLong(obj2); | |
21503 | if (PyErr_Occurred()) SWIG_fail; | |
21504 | } | |
21505 | if (obj3) { | |
21506 | arg4 = (long) SWIG_AsLong(obj3); | |
21507 | if (PyErr_Occurred()) SWIG_fail; | |
21508 | } | |
21509 | { | |
21510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21511 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21512 | ||
21513 | wxPyEndAllowThreads(__tstate); | |
21514 | if (PyErr_Occurred()) SWIG_fail; | |
21515 | } | |
21516 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
21517 | return resultobj; | |
21518 | fail: | |
21519 | return NULL; | |
21520 | } | |
21521 | ||
21522 | ||
21523 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21524 | PyObject *resultobj; | |
21525 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21526 | PyObject * obj0 = 0 ; | |
21527 | char *kwnames[] = { | |
21528 | (char *) "self", NULL | |
21529 | }; | |
21530 | ||
21531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21534 | { | |
21535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21536 | delete arg1; | |
21537 | ||
21538 | wxPyEndAllowThreads(__tstate); | |
21539 | if (PyErr_Occurred()) SWIG_fail; | |
21540 | } | |
21541 | Py_INCREF(Py_None); resultobj = Py_None; | |
21542 | return resultobj; | |
21543 | fail: | |
21544 | return NULL; | |
21545 | } | |
21546 | ||
21547 | ||
21548 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21549 | PyObject *resultobj; | |
21550 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21551 | wxTimeSpan *arg2 = 0 ; | |
21552 | wxTimeSpan *result; | |
21553 | PyObject * obj0 = 0 ; | |
21554 | PyObject * obj1 = 0 ; | |
21555 | char *kwnames[] = { | |
21556 | (char *) "self",(char *) "diff", NULL | |
21557 | }; | |
21558 | ||
21559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21562 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21563 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21564 | SWIG_fail; | |
21565 | if (arg2 == NULL) { | |
21566 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21567 | SWIG_fail; | |
21568 | } | |
21569 | { | |
21570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21571 | { | |
21572 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21573 | result = (wxTimeSpan *) &_result_ref; | |
21574 | } | |
21575 | ||
21576 | wxPyEndAllowThreads(__tstate); | |
21577 | if (PyErr_Occurred()) SWIG_fail; | |
21578 | } | |
21579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21580 | return resultobj; | |
21581 | fail: | |
21582 | return NULL; | |
21583 | } | |
21584 | ||
21585 | ||
21586 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21587 | PyObject *resultobj; | |
21588 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21589 | wxTimeSpan *arg2 = 0 ; | |
21590 | wxTimeSpan *result; | |
21591 | PyObject * obj0 = 0 ; | |
21592 | PyObject * obj1 = 0 ; | |
21593 | char *kwnames[] = { | |
21594 | (char *) "self",(char *) "diff", NULL | |
21595 | }; | |
21596 | ||
21597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21600 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21601 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21602 | SWIG_fail; | |
21603 | if (arg2 == NULL) { | |
21604 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21605 | SWIG_fail; | |
21606 | } | |
21607 | { | |
21608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21609 | { | |
21610 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21611 | result = (wxTimeSpan *) &_result_ref; | |
21612 | } | |
21613 | ||
21614 | wxPyEndAllowThreads(__tstate); | |
21615 | if (PyErr_Occurred()) SWIG_fail; | |
21616 | } | |
21617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21618 | return resultobj; | |
21619 | fail: | |
21620 | return NULL; | |
21621 | } | |
21622 | ||
21623 | ||
21624 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21625 | PyObject *resultobj; | |
21626 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21627 | int arg2 ; | |
21628 | wxTimeSpan *result; | |
21629 | PyObject * obj0 = 0 ; | |
21630 | PyObject * obj1 = 0 ; | |
21631 | char *kwnames[] = { | |
21632 | (char *) "self",(char *) "n", NULL | |
21633 | }; | |
21634 | ||
21635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
21636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21638 | arg2 = (int) SWIG_AsInt(obj1); | |
21639 | if (PyErr_Occurred()) SWIG_fail; | |
21640 | { | |
21641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21642 | { | |
21643 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21644 | result = (wxTimeSpan *) &_result_ref; | |
21645 | } | |
21646 | ||
21647 | wxPyEndAllowThreads(__tstate); | |
21648 | if (PyErr_Occurred()) SWIG_fail; | |
21649 | } | |
21650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21651 | return resultobj; | |
21652 | fail: | |
21653 | return NULL; | |
21654 | } | |
21655 | ||
21656 | ||
21657 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21658 | PyObject *resultobj; | |
21659 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21660 | wxTimeSpan *result; | |
21661 | PyObject * obj0 = 0 ; | |
21662 | char *kwnames[] = { | |
21663 | (char *) "self", NULL | |
21664 | }; | |
21665 | ||
21666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
21667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21669 | { | |
21670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21671 | { | |
21672 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21673 | result = (wxTimeSpan *) &_result_ref; | |
21674 | } | |
21675 | ||
21676 | wxPyEndAllowThreads(__tstate); | |
21677 | if (PyErr_Occurred()) SWIG_fail; | |
21678 | } | |
21679 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21680 | return resultobj; | |
21681 | fail: | |
21682 | return NULL; | |
21683 | } | |
21684 | ||
21685 | ||
21686 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21687 | PyObject *resultobj; | |
21688 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21689 | wxTimeSpan result; | |
21690 | PyObject * obj0 = 0 ; | |
21691 | char *kwnames[] = { | |
21692 | (char *) "self", NULL | |
21693 | }; | |
21694 | ||
21695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
21696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21698 | { | |
21699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21700 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21701 | ||
21702 | wxPyEndAllowThreads(__tstate); | |
21703 | if (PyErr_Occurred()) SWIG_fail; | |
21704 | } | |
21705 | { | |
21706 | wxTimeSpan * resultptr; | |
21707 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21708 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21709 | } | |
21710 | return resultobj; | |
21711 | fail: | |
21712 | return NULL; | |
21713 | } | |
21714 | ||
21715 | ||
21716 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21717 | PyObject *resultobj; | |
21718 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21719 | wxTimeSpan *arg2 = 0 ; | |
21720 | wxTimeSpan *result; | |
21721 | PyObject * obj0 = 0 ; | |
21722 | PyObject * obj1 = 0 ; | |
21723 | char *kwnames[] = { | |
21724 | (char *) "self",(char *) "diff", NULL | |
21725 | }; | |
21726 | ||
21727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21730 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21731 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21732 | SWIG_fail; | |
21733 | if (arg2 == NULL) { | |
21734 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21735 | SWIG_fail; | |
21736 | } | |
21737 | { | |
21738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21739 | { | |
21740 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21741 | result = (wxTimeSpan *) &_result_ref; | |
21742 | } | |
21743 | ||
21744 | wxPyEndAllowThreads(__tstate); | |
21745 | if (PyErr_Occurred()) SWIG_fail; | |
21746 | } | |
21747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21748 | return resultobj; | |
21749 | fail: | |
21750 | return NULL; | |
21751 | } | |
21752 | ||
21753 | ||
21754 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21755 | PyObject *resultobj; | |
21756 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21757 | wxTimeSpan *arg2 = 0 ; | |
21758 | wxTimeSpan *result; | |
21759 | PyObject * obj0 = 0 ; | |
21760 | PyObject * obj1 = 0 ; | |
21761 | char *kwnames[] = { | |
21762 | (char *) "self",(char *) "diff", NULL | |
21763 | }; | |
21764 | ||
21765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21768 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21769 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21770 | SWIG_fail; | |
21771 | if (arg2 == NULL) { | |
21772 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21773 | SWIG_fail; | |
21774 | } | |
21775 | { | |
21776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21777 | { | |
21778 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21779 | result = (wxTimeSpan *) &_result_ref; | |
21780 | } | |
21781 | ||
21782 | wxPyEndAllowThreads(__tstate); | |
21783 | if (PyErr_Occurred()) SWIG_fail; | |
21784 | } | |
21785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21786 | return resultobj; | |
21787 | fail: | |
21788 | return NULL; | |
21789 | } | |
21790 | ||
21791 | ||
21792 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21793 | PyObject *resultobj; | |
21794 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21795 | int arg2 ; | |
21796 | wxTimeSpan *result; | |
21797 | PyObject * obj0 = 0 ; | |
21798 | PyObject * obj1 = 0 ; | |
21799 | char *kwnames[] = { | |
21800 | (char *) "self",(char *) "n", NULL | |
21801 | }; | |
21802 | ||
21803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
21804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21806 | arg2 = (int) SWIG_AsInt(obj1); | |
21807 | if (PyErr_Occurred()) SWIG_fail; | |
21808 | { | |
21809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21810 | { | |
21811 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21812 | result = (wxTimeSpan *) &_result_ref; | |
21813 | } | |
21814 | ||
21815 | wxPyEndAllowThreads(__tstate); | |
21816 | if (PyErr_Occurred()) SWIG_fail; | |
21817 | } | |
21818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21819 | return resultobj; | |
21820 | fail: | |
21821 | return NULL; | |
21822 | } | |
21823 | ||
21824 | ||
21825 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21826 | PyObject *resultobj; | |
21827 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21828 | wxTimeSpan *result; | |
21829 | PyObject * obj0 = 0 ; | |
21830 | char *kwnames[] = { | |
21831 | (char *) "self", NULL | |
21832 | }; | |
21833 | ||
21834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
21835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21837 | { | |
21838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21839 | { | |
21840 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21841 | result = (wxTimeSpan *) &_result_ref; | |
21842 | } | |
21843 | ||
21844 | wxPyEndAllowThreads(__tstate); | |
21845 | if (PyErr_Occurred()) SWIG_fail; | |
21846 | } | |
21847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21848 | return resultobj; | |
21849 | fail: | |
21850 | return NULL; | |
21851 | } | |
21852 | ||
21853 | ||
21854 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21855 | PyObject *resultobj; | |
21856 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21857 | wxTimeSpan *arg2 = 0 ; | |
21858 | wxTimeSpan result; | |
21859 | PyObject * obj0 = 0 ; | |
21860 | PyObject * obj1 = 0 ; | |
21861 | char *kwnames[] = { | |
21862 | (char *) "self",(char *) "other", NULL | |
21863 | }; | |
21864 | ||
21865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21870 | SWIG_fail; | |
21871 | if (arg2 == NULL) { | |
21872 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21873 | SWIG_fail; | |
21874 | } | |
21875 | { | |
21876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21877 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21878 | ||
21879 | wxPyEndAllowThreads(__tstate); | |
21880 | if (PyErr_Occurred()) SWIG_fail; | |
21881 | } | |
21882 | { | |
21883 | wxTimeSpan * resultptr; | |
21884 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21886 | } | |
21887 | return resultobj; | |
21888 | fail: | |
21889 | return NULL; | |
21890 | } | |
21891 | ||
21892 | ||
21893 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21894 | PyObject *resultobj; | |
21895 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21896 | wxTimeSpan *arg2 = 0 ; | |
21897 | wxTimeSpan result; | |
21898 | PyObject * obj0 = 0 ; | |
21899 | PyObject * obj1 = 0 ; | |
21900 | char *kwnames[] = { | |
21901 | (char *) "self",(char *) "other", NULL | |
21902 | }; | |
21903 | ||
21904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21908 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21909 | SWIG_fail; | |
21910 | if (arg2 == NULL) { | |
21911 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21912 | SWIG_fail; | |
21913 | } | |
21914 | { | |
21915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21916 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21917 | ||
21918 | wxPyEndAllowThreads(__tstate); | |
21919 | if (PyErr_Occurred()) SWIG_fail; | |
21920 | } | |
21921 | { | |
21922 | wxTimeSpan * resultptr; | |
21923 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21924 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21925 | } | |
21926 | return resultobj; | |
21927 | fail: | |
21928 | return NULL; | |
21929 | } | |
21930 | ||
21931 | ||
21932 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21933 | PyObject *resultobj; | |
21934 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21935 | int arg2 ; | |
21936 | wxTimeSpan result; | |
21937 | PyObject * obj0 = 0 ; | |
21938 | PyObject * obj1 = 0 ; | |
21939 | char *kwnames[] = { | |
21940 | (char *) "self",(char *) "n", NULL | |
21941 | }; | |
21942 | ||
21943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
21944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21946 | arg2 = (int) SWIG_AsInt(obj1); | |
21947 | if (PyErr_Occurred()) SWIG_fail; | |
21948 | { | |
21949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21950 | result = wxTimeSpan___mul__(arg1,arg2); | |
21951 | ||
21952 | wxPyEndAllowThreads(__tstate); | |
21953 | if (PyErr_Occurred()) SWIG_fail; | |
21954 | } | |
21955 | { | |
21956 | wxTimeSpan * resultptr; | |
21957 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21958 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21959 | } | |
21960 | return resultobj; | |
21961 | fail: | |
21962 | return NULL; | |
21963 | } | |
21964 | ||
21965 | ||
21966 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21967 | PyObject *resultobj; | |
21968 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21969 | int arg2 ; | |
21970 | wxTimeSpan result; | |
21971 | PyObject * obj0 = 0 ; | |
21972 | PyObject * obj1 = 0 ; | |
21973 | char *kwnames[] = { | |
21974 | (char *) "self",(char *) "n", NULL | |
21975 | }; | |
21976 | ||
21977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
21978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21980 | arg2 = (int) SWIG_AsInt(obj1); | |
21981 | if (PyErr_Occurred()) SWIG_fail; | |
21982 | { | |
21983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21984 | result = wxTimeSpan___rmul__(arg1,arg2); | |
21985 | ||
21986 | wxPyEndAllowThreads(__tstate); | |
21987 | if (PyErr_Occurred()) SWIG_fail; | |
21988 | } | |
21989 | { | |
21990 | wxTimeSpan * resultptr; | |
21991 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21992 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21993 | } | |
21994 | return resultobj; | |
21995 | fail: | |
21996 | return NULL; | |
21997 | } | |
21998 | ||
21999 | ||
22000 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22001 | PyObject *resultobj; | |
22002 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22003 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22004 | bool result; | |
22005 | PyObject * obj0 = 0 ; | |
22006 | PyObject * obj1 = 0 ; | |
22007 | char *kwnames[] = { | |
22008 | (char *) "self",(char *) "other", NULL | |
22009 | }; | |
22010 | ||
22011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
22012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22014 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22016 | { | |
22017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22018 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
22019 | ||
22020 | wxPyEndAllowThreads(__tstate); | |
22021 | if (PyErr_Occurred()) SWIG_fail; | |
22022 | } | |
22023 | { | |
22024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22025 | } | |
22026 | return resultobj; | |
22027 | fail: | |
22028 | return NULL; | |
22029 | } | |
22030 | ||
22031 | ||
22032 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22033 | PyObject *resultobj; | |
22034 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22035 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22036 | bool result; | |
22037 | PyObject * obj0 = 0 ; | |
22038 | PyObject * obj1 = 0 ; | |
22039 | char *kwnames[] = { | |
22040 | (char *) "self",(char *) "other", NULL | |
22041 | }; | |
22042 | ||
22043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
22044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22048 | { | |
22049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22050 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
22051 | ||
22052 | wxPyEndAllowThreads(__tstate); | |
22053 | if (PyErr_Occurred()) SWIG_fail; | |
22054 | } | |
22055 | { | |
22056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22057 | } | |
22058 | return resultobj; | |
22059 | fail: | |
22060 | return NULL; | |
22061 | } | |
22062 | ||
22063 | ||
22064 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22065 | PyObject *resultobj; | |
22066 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22067 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22068 | bool result; | |
22069 | PyObject * obj0 = 0 ; | |
22070 | PyObject * obj1 = 0 ; | |
22071 | char *kwnames[] = { | |
22072 | (char *) "self",(char *) "other", NULL | |
22073 | }; | |
22074 | ||
22075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22078 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22080 | { | |
22081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22082 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22083 | ||
22084 | wxPyEndAllowThreads(__tstate); | |
22085 | if (PyErr_Occurred()) SWIG_fail; | |
22086 | } | |
22087 | { | |
22088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22089 | } | |
22090 | return resultobj; | |
22091 | fail: | |
22092 | return NULL; | |
22093 | } | |
22094 | ||
22095 | ||
22096 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22097 | PyObject *resultobj; | |
22098 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22099 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22100 | bool result; | |
22101 | PyObject * obj0 = 0 ; | |
22102 | PyObject * obj1 = 0 ; | |
22103 | char *kwnames[] = { | |
22104 | (char *) "self",(char *) "other", NULL | |
22105 | }; | |
22106 | ||
22107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22110 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22112 | { | |
22113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22114 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22115 | ||
22116 | wxPyEndAllowThreads(__tstate); | |
22117 | if (PyErr_Occurred()) SWIG_fail; | |
22118 | } | |
22119 | { | |
22120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22121 | } | |
22122 | return resultobj; | |
22123 | fail: | |
22124 | return NULL; | |
22125 | } | |
22126 | ||
22127 | ||
22128 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22129 | PyObject *resultobj; | |
22130 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22131 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22132 | bool result; | |
22133 | PyObject * obj0 = 0 ; | |
22134 | PyObject * obj1 = 0 ; | |
22135 | char *kwnames[] = { | |
22136 | (char *) "self",(char *) "other", NULL | |
22137 | }; | |
22138 | ||
22139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22144 | { | |
22145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22146 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22147 | ||
22148 | wxPyEndAllowThreads(__tstate); | |
22149 | if (PyErr_Occurred()) SWIG_fail; | |
22150 | } | |
22151 | { | |
22152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22153 | } | |
22154 | return resultobj; | |
22155 | fail: | |
22156 | return NULL; | |
22157 | } | |
22158 | ||
22159 | ||
22160 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22161 | PyObject *resultobj; | |
22162 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22163 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22164 | bool result; | |
22165 | PyObject * obj0 = 0 ; | |
22166 | PyObject * obj1 = 0 ; | |
22167 | char *kwnames[] = { | |
22168 | (char *) "self",(char *) "other", NULL | |
22169 | }; | |
22170 | ||
22171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22174 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22176 | { | |
22177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22178 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22179 | ||
22180 | wxPyEndAllowThreads(__tstate); | |
22181 | if (PyErr_Occurred()) SWIG_fail; | |
22182 | } | |
22183 | { | |
22184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22185 | } | |
22186 | return resultobj; | |
22187 | fail: | |
22188 | return NULL; | |
22189 | } | |
22190 | ||
22191 | ||
22192 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22193 | PyObject *resultobj; | |
22194 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22195 | bool result; | |
22196 | PyObject * obj0 = 0 ; | |
22197 | char *kwnames[] = { | |
22198 | (char *) "self", NULL | |
22199 | }; | |
22200 | ||
22201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22204 | { | |
22205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22206 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22207 | ||
22208 | wxPyEndAllowThreads(__tstate); | |
22209 | if (PyErr_Occurred()) SWIG_fail; | |
22210 | } | |
22211 | { | |
22212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22213 | } | |
22214 | return resultobj; | |
22215 | fail: | |
22216 | return NULL; | |
22217 | } | |
22218 | ||
22219 | ||
22220 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22221 | PyObject *resultobj; | |
22222 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22223 | bool result; | |
22224 | PyObject * obj0 = 0 ; | |
22225 | char *kwnames[] = { | |
22226 | (char *) "self", NULL | |
22227 | }; | |
22228 | ||
22229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22232 | { | |
22233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22234 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22235 | ||
22236 | wxPyEndAllowThreads(__tstate); | |
22237 | if (PyErr_Occurred()) SWIG_fail; | |
22238 | } | |
22239 | { | |
22240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22241 | } | |
22242 | return resultobj; | |
22243 | fail: | |
22244 | return NULL; | |
22245 | } | |
22246 | ||
22247 | ||
22248 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22249 | PyObject *resultobj; | |
22250 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22251 | bool result; | |
22252 | PyObject * obj0 = 0 ; | |
22253 | char *kwnames[] = { | |
22254 | (char *) "self", NULL | |
22255 | }; | |
22256 | ||
22257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22260 | { | |
22261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22262 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22263 | ||
22264 | wxPyEndAllowThreads(__tstate); | |
22265 | if (PyErr_Occurred()) SWIG_fail; | |
22266 | } | |
22267 | { | |
22268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22269 | } | |
22270 | return resultobj; | |
22271 | fail: | |
22272 | return NULL; | |
22273 | } | |
22274 | ||
22275 | ||
22276 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22277 | PyObject *resultobj; | |
22278 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22279 | wxTimeSpan *arg2 = 0 ; | |
22280 | bool result; | |
22281 | PyObject * obj0 = 0 ; | |
22282 | PyObject * obj1 = 0 ; | |
22283 | char *kwnames[] = { | |
22284 | (char *) "self",(char *) "ts", NULL | |
22285 | }; | |
22286 | ||
22287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
22288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22290 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22291 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22292 | SWIG_fail; | |
22293 | if (arg2 == NULL) { | |
22294 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22295 | SWIG_fail; | |
22296 | } | |
22297 | { | |
22298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22299 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22300 | ||
22301 | wxPyEndAllowThreads(__tstate); | |
22302 | if (PyErr_Occurred()) SWIG_fail; | |
22303 | } | |
22304 | { | |
22305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22306 | } | |
22307 | return resultobj; | |
22308 | fail: | |
22309 | return NULL; | |
22310 | } | |
22311 | ||
22312 | ||
22313 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22314 | PyObject *resultobj; | |
22315 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22316 | wxTimeSpan *arg2 = 0 ; | |
22317 | bool result; | |
22318 | PyObject * obj0 = 0 ; | |
22319 | PyObject * obj1 = 0 ; | |
22320 | char *kwnames[] = { | |
22321 | (char *) "self",(char *) "ts", NULL | |
22322 | }; | |
22323 | ||
22324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
22325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22327 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22328 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22329 | SWIG_fail; | |
22330 | if (arg2 == NULL) { | |
22331 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22332 | SWIG_fail; | |
22333 | } | |
22334 | { | |
22335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22336 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22337 | ||
22338 | wxPyEndAllowThreads(__tstate); | |
22339 | if (PyErr_Occurred()) SWIG_fail; | |
22340 | } | |
22341 | { | |
22342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22343 | } | |
22344 | return resultobj; | |
22345 | fail: | |
22346 | return NULL; | |
22347 | } | |
22348 | ||
22349 | ||
22350 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22351 | PyObject *resultobj; | |
22352 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22353 | wxTimeSpan *arg2 = 0 ; | |
22354 | bool result; | |
22355 | PyObject * obj0 = 0 ; | |
22356 | PyObject * obj1 = 0 ; | |
22357 | char *kwnames[] = { | |
22358 | (char *) "self",(char *) "t", NULL | |
22359 | }; | |
22360 | ||
22361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
22362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22364 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22365 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22366 | SWIG_fail; | |
22367 | if (arg2 == NULL) { | |
22368 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22369 | SWIG_fail; | |
22370 | } | |
22371 | { | |
22372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22373 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22374 | ||
22375 | wxPyEndAllowThreads(__tstate); | |
22376 | if (PyErr_Occurred()) SWIG_fail; | |
22377 | } | |
22378 | { | |
22379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22380 | } | |
22381 | return resultobj; | |
22382 | fail: | |
22383 | return NULL; | |
22384 | } | |
22385 | ||
22386 | ||
22387 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22388 | PyObject *resultobj; | |
22389 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22390 | int result; | |
22391 | PyObject * obj0 = 0 ; | |
22392 | char *kwnames[] = { | |
22393 | (char *) "self", NULL | |
22394 | }; | |
22395 | ||
22396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22399 | { | |
22400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22401 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22402 | ||
22403 | wxPyEndAllowThreads(__tstate); | |
22404 | if (PyErr_Occurred()) SWIG_fail; | |
22405 | } | |
22406 | resultobj = SWIG_FromInt((int)result); | |
22407 | return resultobj; | |
22408 | fail: | |
22409 | return NULL; | |
22410 | } | |
22411 | ||
22412 | ||
22413 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22414 | PyObject *resultobj; | |
22415 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22416 | int result; | |
22417 | PyObject * obj0 = 0 ; | |
22418 | char *kwnames[] = { | |
22419 | (char *) "self", NULL | |
22420 | }; | |
22421 | ||
22422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22425 | { | |
22426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22427 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22428 | ||
22429 | wxPyEndAllowThreads(__tstate); | |
22430 | if (PyErr_Occurred()) SWIG_fail; | |
22431 | } | |
22432 | resultobj = SWIG_FromInt((int)result); | |
22433 | return resultobj; | |
22434 | fail: | |
22435 | return NULL; | |
22436 | } | |
22437 | ||
22438 | ||
22439 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22440 | PyObject *resultobj; | |
22441 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22442 | int result; | |
22443 | PyObject * obj0 = 0 ; | |
22444 | char *kwnames[] = { | |
22445 | (char *) "self", NULL | |
22446 | }; | |
22447 | ||
22448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22451 | { | |
22452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22453 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22454 | ||
22455 | wxPyEndAllowThreads(__tstate); | |
22456 | if (PyErr_Occurred()) SWIG_fail; | |
22457 | } | |
22458 | resultobj = SWIG_FromInt((int)result); | |
22459 | return resultobj; | |
22460 | fail: | |
22461 | return NULL; | |
22462 | } | |
22463 | ||
22464 | ||
22465 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22466 | PyObject *resultobj; | |
22467 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22468 | int result; | |
22469 | PyObject * obj0 = 0 ; | |
22470 | char *kwnames[] = { | |
22471 | (char *) "self", NULL | |
22472 | }; | |
22473 | ||
22474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22477 | { | |
22478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22479 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22480 | ||
22481 | wxPyEndAllowThreads(__tstate); | |
22482 | if (PyErr_Occurred()) SWIG_fail; | |
22483 | } | |
22484 | resultobj = SWIG_FromInt((int)result); | |
22485 | return resultobj; | |
22486 | fail: | |
22487 | return NULL; | |
22488 | } | |
22489 | ||
22490 | ||
22491 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22492 | PyObject *resultobj; | |
22493 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22494 | wxLongLong result; | |
22495 | PyObject * obj0 = 0 ; | |
22496 | char *kwnames[] = { | |
22497 | (char *) "self", NULL | |
22498 | }; | |
22499 | ||
22500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22503 | { | |
22504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22505 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22506 | ||
22507 | wxPyEndAllowThreads(__tstate); | |
22508 | if (PyErr_Occurred()) SWIG_fail; | |
22509 | } | |
22510 | { | |
22511 | PyObject *hi, *lo, *shifter, *shifted; | |
22512 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22513 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22514 | shifter = PyLong_FromLong(32); | |
22515 | shifted = PyNumber_Lshift(hi, shifter); | |
22516 | resultobj = PyNumber_Or(shifted, lo); | |
22517 | Py_DECREF(hi); | |
22518 | Py_DECREF(lo); | |
22519 | Py_DECREF(shifter); | |
22520 | Py_DECREF(shifted); | |
22521 | } | |
22522 | return resultobj; | |
22523 | fail: | |
22524 | return NULL; | |
22525 | } | |
22526 | ||
22527 | ||
22528 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22529 | PyObject *resultobj; | |
22530 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22531 | wxLongLong result; | |
22532 | PyObject * obj0 = 0 ; | |
22533 | char *kwnames[] = { | |
22534 | (char *) "self", NULL | |
22535 | }; | |
22536 | ||
22537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
22538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22540 | { | |
22541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22542 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22543 | ||
22544 | wxPyEndAllowThreads(__tstate); | |
22545 | if (PyErr_Occurred()) SWIG_fail; | |
22546 | } | |
22547 | { | |
22548 | PyObject *hi, *lo, *shifter, *shifted; | |
22549 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22550 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22551 | shifter = PyLong_FromLong(32); | |
22552 | shifted = PyNumber_Lshift(hi, shifter); | |
22553 | resultobj = PyNumber_Or(shifted, lo); | |
22554 | Py_DECREF(hi); | |
22555 | Py_DECREF(lo); | |
22556 | Py_DECREF(shifter); | |
22557 | Py_DECREF(shifted); | |
22558 | } | |
22559 | return resultobj; | |
22560 | fail: | |
22561 | return NULL; | |
22562 | } | |
22563 | ||
22564 | ||
22565 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22566 | PyObject *resultobj; | |
22567 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22568 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22569 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22570 | wxString result; | |
22571 | bool temp2 = False ; | |
22572 | PyObject * obj0 = 0 ; | |
22573 | PyObject * obj1 = 0 ; | |
22574 | char *kwnames[] = { | |
22575 | (char *) "self",(char *) "format", NULL | |
22576 | }; | |
22577 | ||
22578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
22579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22581 | if (obj1) { | |
22582 | { | |
22583 | arg2 = wxString_in_helper(obj1); | |
22584 | if (arg2 == NULL) SWIG_fail; | |
22585 | temp2 = True; | |
22586 | } | |
22587 | } | |
22588 | { | |
22589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22590 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22591 | ||
22592 | wxPyEndAllowThreads(__tstate); | |
22593 | if (PyErr_Occurred()) SWIG_fail; | |
22594 | } | |
22595 | { | |
22596 | #if wxUSE_UNICODE | |
22597 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22598 | #else | |
22599 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22600 | #endif | |
22601 | } | |
22602 | { | |
22603 | if (temp2) | |
22604 | delete arg2; | |
22605 | } | |
22606 | return resultobj; | |
22607 | fail: | |
22608 | { | |
22609 | if (temp2) | |
22610 | delete arg2; | |
22611 | } | |
22612 | return NULL; | |
22613 | } | |
22614 | ||
22615 | ||
22616 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22617 | PyObject *obj; | |
22618 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22619 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22620 | Py_INCREF(obj); | |
22621 | return Py_BuildValue((char *)""); | |
22622 | } | |
22623 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22624 | PyObject *resultobj; | |
22625 | int arg1 = (int) 0 ; | |
22626 | int arg2 = (int) 0 ; | |
22627 | int arg3 = (int) 0 ; | |
22628 | int arg4 = (int) 0 ; | |
22629 | wxDateSpan *result; | |
22630 | PyObject * obj0 = 0 ; | |
22631 | PyObject * obj1 = 0 ; | |
22632 | PyObject * obj2 = 0 ; | |
22633 | PyObject * obj3 = 0 ; | |
22634 | char *kwnames[] = { | |
22635 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22636 | }; | |
22637 | ||
22638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22639 | if (obj0) { | |
22640 | arg1 = (int) SWIG_AsInt(obj0); | |
22641 | if (PyErr_Occurred()) SWIG_fail; | |
22642 | } | |
22643 | if (obj1) { | |
22644 | arg2 = (int) SWIG_AsInt(obj1); | |
22645 | if (PyErr_Occurred()) SWIG_fail; | |
22646 | } | |
22647 | if (obj2) { | |
22648 | arg3 = (int) SWIG_AsInt(obj2); | |
22649 | if (PyErr_Occurred()) SWIG_fail; | |
22650 | } | |
22651 | if (obj3) { | |
22652 | arg4 = (int) SWIG_AsInt(obj3); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | } | |
22655 | { | |
22656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22657 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22658 | ||
22659 | wxPyEndAllowThreads(__tstate); | |
22660 | if (PyErr_Occurred()) SWIG_fail; | |
22661 | } | |
22662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
22663 | return resultobj; | |
22664 | fail: | |
22665 | return NULL; | |
22666 | } | |
22667 | ||
22668 | ||
22669 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22670 | PyObject *resultobj; | |
22671 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22672 | PyObject * obj0 = 0 ; | |
22673 | char *kwnames[] = { | |
22674 | (char *) "self", NULL | |
22675 | }; | |
22676 | ||
22677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
22678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22680 | { | |
22681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22682 | delete arg1; | |
22683 | ||
22684 | wxPyEndAllowThreads(__tstate); | |
22685 | if (PyErr_Occurred()) SWIG_fail; | |
22686 | } | |
22687 | Py_INCREF(Py_None); resultobj = Py_None; | |
22688 | return resultobj; | |
22689 | fail: | |
22690 | return NULL; | |
22691 | } | |
22692 | ||
22693 | ||
22694 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22695 | PyObject *resultobj; | |
22696 | int arg1 ; | |
22697 | wxDateSpan result; | |
22698 | PyObject * obj0 = 0 ; | |
22699 | char *kwnames[] = { | |
22700 | (char *) "days", NULL | |
22701 | }; | |
22702 | ||
22703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
22704 | arg1 = (int) SWIG_AsInt(obj0); | |
22705 | if (PyErr_Occurred()) SWIG_fail; | |
22706 | { | |
22707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22708 | result = wxDateSpan::Days(arg1); | |
22709 | ||
22710 | wxPyEndAllowThreads(__tstate); | |
22711 | if (PyErr_Occurred()) SWIG_fail; | |
22712 | } | |
22713 | { | |
22714 | wxDateSpan * resultptr; | |
22715 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22716 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22717 | } | |
22718 | return resultobj; | |
22719 | fail: | |
22720 | return NULL; | |
22721 | } | |
22722 | ||
22723 | ||
22724 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22725 | PyObject *resultobj; | |
22726 | wxDateSpan result; | |
22727 | char *kwnames[] = { | |
22728 | NULL | |
22729 | }; | |
22730 | ||
22731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22732 | { | |
22733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22734 | result = wxDateSpan::Day(); | |
22735 | ||
22736 | wxPyEndAllowThreads(__tstate); | |
22737 | if (PyErr_Occurred()) SWIG_fail; | |
22738 | } | |
22739 | { | |
22740 | wxDateSpan * resultptr; | |
22741 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22743 | } | |
22744 | return resultobj; | |
22745 | fail: | |
22746 | return NULL; | |
22747 | } | |
22748 | ||
22749 | ||
22750 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22751 | PyObject *resultobj; | |
22752 | int arg1 ; | |
22753 | wxDateSpan result; | |
22754 | PyObject * obj0 = 0 ; | |
22755 | char *kwnames[] = { | |
22756 | (char *) "weeks", NULL | |
22757 | }; | |
22758 | ||
22759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
22760 | arg1 = (int) SWIG_AsInt(obj0); | |
22761 | if (PyErr_Occurred()) SWIG_fail; | |
22762 | { | |
22763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22764 | result = wxDateSpan::Weeks(arg1); | |
22765 | ||
22766 | wxPyEndAllowThreads(__tstate); | |
22767 | if (PyErr_Occurred()) SWIG_fail; | |
22768 | } | |
22769 | { | |
22770 | wxDateSpan * resultptr; | |
22771 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22772 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22773 | } | |
22774 | return resultobj; | |
22775 | fail: | |
22776 | return NULL; | |
22777 | } | |
22778 | ||
22779 | ||
22780 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22781 | PyObject *resultobj; | |
22782 | wxDateSpan result; | |
22783 | char *kwnames[] = { | |
22784 | NULL | |
22785 | }; | |
22786 | ||
22787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22788 | { | |
22789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22790 | result = wxDateSpan::Week(); | |
22791 | ||
22792 | wxPyEndAllowThreads(__tstate); | |
22793 | if (PyErr_Occurred()) SWIG_fail; | |
22794 | } | |
22795 | { | |
22796 | wxDateSpan * resultptr; | |
22797 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22798 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22799 | } | |
22800 | return resultobj; | |
22801 | fail: | |
22802 | return NULL; | |
22803 | } | |
22804 | ||
22805 | ||
22806 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22807 | PyObject *resultobj; | |
22808 | int arg1 ; | |
22809 | wxDateSpan result; | |
22810 | PyObject * obj0 = 0 ; | |
22811 | char *kwnames[] = { | |
22812 | (char *) "mon", NULL | |
22813 | }; | |
22814 | ||
22815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
22816 | arg1 = (int) SWIG_AsInt(obj0); | |
22817 | if (PyErr_Occurred()) SWIG_fail; | |
22818 | { | |
22819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22820 | result = wxDateSpan::Months(arg1); | |
22821 | ||
22822 | wxPyEndAllowThreads(__tstate); | |
22823 | if (PyErr_Occurred()) SWIG_fail; | |
22824 | } | |
22825 | { | |
22826 | wxDateSpan * resultptr; | |
22827 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22828 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22829 | } | |
22830 | return resultobj; | |
22831 | fail: | |
22832 | return NULL; | |
22833 | } | |
22834 | ||
22835 | ||
22836 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22837 | PyObject *resultobj; | |
22838 | wxDateSpan result; | |
22839 | char *kwnames[] = { | |
22840 | NULL | |
22841 | }; | |
22842 | ||
22843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22844 | { | |
22845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22846 | result = wxDateSpan::Month(); | |
22847 | ||
22848 | wxPyEndAllowThreads(__tstate); | |
22849 | if (PyErr_Occurred()) SWIG_fail; | |
22850 | } | |
22851 | { | |
22852 | wxDateSpan * resultptr; | |
22853 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22854 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22855 | } | |
22856 | return resultobj; | |
22857 | fail: | |
22858 | return NULL; | |
22859 | } | |
22860 | ||
22861 | ||
22862 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22863 | PyObject *resultobj; | |
22864 | int arg1 ; | |
22865 | wxDateSpan result; | |
22866 | PyObject * obj0 = 0 ; | |
22867 | char *kwnames[] = { | |
22868 | (char *) "years", NULL | |
22869 | }; | |
22870 | ||
22871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
22872 | arg1 = (int) SWIG_AsInt(obj0); | |
22873 | if (PyErr_Occurred()) SWIG_fail; | |
22874 | { | |
22875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22876 | result = wxDateSpan::Years(arg1); | |
22877 | ||
22878 | wxPyEndAllowThreads(__tstate); | |
22879 | if (PyErr_Occurred()) SWIG_fail; | |
22880 | } | |
22881 | { | |
22882 | wxDateSpan * resultptr; | |
22883 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22884 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22885 | } | |
22886 | return resultobj; | |
22887 | fail: | |
22888 | return NULL; | |
22889 | } | |
22890 | ||
22891 | ||
22892 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22893 | PyObject *resultobj; | |
22894 | wxDateSpan result; | |
22895 | char *kwnames[] = { | |
22896 | NULL | |
22897 | }; | |
22898 | ||
22899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22900 | { | |
22901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22902 | result = wxDateSpan::Year(); | |
22903 | ||
22904 | wxPyEndAllowThreads(__tstate); | |
22905 | if (PyErr_Occurred()) SWIG_fail; | |
22906 | } | |
22907 | { | |
22908 | wxDateSpan * resultptr; | |
22909 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22910 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22911 | } | |
22912 | return resultobj; | |
22913 | fail: | |
22914 | return NULL; | |
22915 | } | |
22916 | ||
22917 | ||
22918 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22919 | PyObject *resultobj; | |
22920 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22921 | int arg2 ; | |
22922 | wxDateSpan *result; | |
22923 | PyObject * obj0 = 0 ; | |
22924 | PyObject * obj1 = 0 ; | |
22925 | char *kwnames[] = { | |
22926 | (char *) "self",(char *) "n", NULL | |
22927 | }; | |
22928 | ||
22929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
22930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22932 | arg2 = (int) SWIG_AsInt(obj1); | |
22933 | if (PyErr_Occurred()) SWIG_fail; | |
22934 | { | |
22935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22936 | { | |
22937 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22938 | result = (wxDateSpan *) &_result_ref; | |
22939 | } | |
22940 | ||
22941 | wxPyEndAllowThreads(__tstate); | |
22942 | if (PyErr_Occurred()) SWIG_fail; | |
22943 | } | |
22944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22945 | return resultobj; | |
22946 | fail: | |
22947 | return NULL; | |
22948 | } | |
22949 | ||
22950 | ||
22951 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22952 | PyObject *resultobj; | |
22953 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22954 | int arg2 ; | |
22955 | wxDateSpan *result; | |
22956 | PyObject * obj0 = 0 ; | |
22957 | PyObject * obj1 = 0 ; | |
22958 | char *kwnames[] = { | |
22959 | (char *) "self",(char *) "n", NULL | |
22960 | }; | |
22961 | ||
22962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
22963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22965 | arg2 = (int) SWIG_AsInt(obj1); | |
22966 | if (PyErr_Occurred()) SWIG_fail; | |
22967 | { | |
22968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22969 | { | |
22970 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22971 | result = (wxDateSpan *) &_result_ref; | |
22972 | } | |
22973 | ||
22974 | wxPyEndAllowThreads(__tstate); | |
22975 | if (PyErr_Occurred()) SWIG_fail; | |
22976 | } | |
22977 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22978 | return resultobj; | |
22979 | fail: | |
22980 | return NULL; | |
22981 | } | |
22982 | ||
22983 | ||
22984 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22985 | PyObject *resultobj; | |
22986 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22987 | int arg2 ; | |
22988 | wxDateSpan *result; | |
22989 | PyObject * obj0 = 0 ; | |
22990 | PyObject * obj1 = 0 ; | |
22991 | char *kwnames[] = { | |
22992 | (char *) "self",(char *) "n", NULL | |
22993 | }; | |
22994 | ||
22995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
22996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22998 | arg2 = (int) SWIG_AsInt(obj1); | |
22999 | if (PyErr_Occurred()) SWIG_fail; | |
23000 | { | |
23001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23002 | { | |
23003 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23004 | result = (wxDateSpan *) &_result_ref; | |
23005 | } | |
23006 | ||
23007 | wxPyEndAllowThreads(__tstate); | |
23008 | if (PyErr_Occurred()) SWIG_fail; | |
23009 | } | |
23010 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23011 | return resultobj; | |
23012 | fail: | |
23013 | return NULL; | |
23014 | } | |
23015 | ||
23016 | ||
23017 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23018 | PyObject *resultobj; | |
23019 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23020 | int arg2 ; | |
23021 | wxDateSpan *result; | |
23022 | PyObject * obj0 = 0 ; | |
23023 | PyObject * obj1 = 0 ; | |
23024 | char *kwnames[] = { | |
23025 | (char *) "self",(char *) "n", NULL | |
23026 | }; | |
23027 | ||
23028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
23029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23031 | arg2 = (int) SWIG_AsInt(obj1); | |
23032 | if (PyErr_Occurred()) SWIG_fail; | |
23033 | { | |
23034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23035 | { | |
23036 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23037 | result = (wxDateSpan *) &_result_ref; | |
23038 | } | |
23039 | ||
23040 | wxPyEndAllowThreads(__tstate); | |
23041 | if (PyErr_Occurred()) SWIG_fail; | |
23042 | } | |
23043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23044 | return resultobj; | |
23045 | fail: | |
23046 | return NULL; | |
23047 | } | |
23048 | ||
23049 | ||
23050 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23051 | PyObject *resultobj; | |
23052 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23053 | int result; | |
23054 | PyObject * obj0 = 0 ; | |
23055 | char *kwnames[] = { | |
23056 | (char *) "self", NULL | |
23057 | }; | |
23058 | ||
23059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
23060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23062 | { | |
23063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23064 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23065 | ||
23066 | wxPyEndAllowThreads(__tstate); | |
23067 | if (PyErr_Occurred()) SWIG_fail; | |
23068 | } | |
23069 | resultobj = SWIG_FromInt((int)result); | |
23070 | return resultobj; | |
23071 | fail: | |
23072 | return NULL; | |
23073 | } | |
23074 | ||
23075 | ||
23076 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23077 | PyObject *resultobj; | |
23078 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23079 | int result; | |
23080 | PyObject * obj0 = 0 ; | |
23081 | char *kwnames[] = { | |
23082 | (char *) "self", NULL | |
23083 | }; | |
23084 | ||
23085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23088 | { | |
23089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23090 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23091 | ||
23092 | wxPyEndAllowThreads(__tstate); | |
23093 | if (PyErr_Occurred()) SWIG_fail; | |
23094 | } | |
23095 | resultobj = SWIG_FromInt((int)result); | |
23096 | return resultobj; | |
23097 | fail: | |
23098 | return NULL; | |
23099 | } | |
23100 | ||
23101 | ||
23102 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23103 | PyObject *resultobj; | |
23104 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23105 | int result; | |
23106 | PyObject * obj0 = 0 ; | |
23107 | char *kwnames[] = { | |
23108 | (char *) "self", NULL | |
23109 | }; | |
23110 | ||
23111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23114 | { | |
23115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23116 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23117 | ||
23118 | wxPyEndAllowThreads(__tstate); | |
23119 | if (PyErr_Occurred()) SWIG_fail; | |
23120 | } | |
23121 | resultobj = SWIG_FromInt((int)result); | |
23122 | return resultobj; | |
23123 | fail: | |
23124 | return NULL; | |
23125 | } | |
23126 | ||
23127 | ||
23128 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23129 | PyObject *resultobj; | |
23130 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23131 | int result; | |
23132 | PyObject * obj0 = 0 ; | |
23133 | char *kwnames[] = { | |
23134 | (char *) "self", NULL | |
23135 | }; | |
23136 | ||
23137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23140 | { | |
23141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23142 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23143 | ||
23144 | wxPyEndAllowThreads(__tstate); | |
23145 | if (PyErr_Occurred()) SWIG_fail; | |
23146 | } | |
23147 | resultobj = SWIG_FromInt((int)result); | |
23148 | return resultobj; | |
23149 | fail: | |
23150 | return NULL; | |
23151 | } | |
23152 | ||
23153 | ||
23154 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23155 | PyObject *resultobj; | |
23156 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23157 | int result; | |
23158 | PyObject * obj0 = 0 ; | |
23159 | char *kwnames[] = { | |
23160 | (char *) "self", NULL | |
23161 | }; | |
23162 | ||
23163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23166 | { | |
23167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23168 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23169 | ||
23170 | wxPyEndAllowThreads(__tstate); | |
23171 | if (PyErr_Occurred()) SWIG_fail; | |
23172 | } | |
23173 | resultobj = SWIG_FromInt((int)result); | |
23174 | return resultobj; | |
23175 | fail: | |
23176 | return NULL; | |
23177 | } | |
23178 | ||
23179 | ||
23180 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23181 | PyObject *resultobj; | |
23182 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23183 | wxDateSpan *arg2 = 0 ; | |
23184 | wxDateSpan *result; | |
23185 | PyObject * obj0 = 0 ; | |
23186 | PyObject * obj1 = 0 ; | |
23187 | char *kwnames[] = { | |
23188 | (char *) "self",(char *) "other", NULL | |
23189 | }; | |
23190 | ||
23191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23194 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23195 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23196 | SWIG_fail; | |
23197 | if (arg2 == NULL) { | |
23198 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23199 | SWIG_fail; | |
23200 | } | |
23201 | { | |
23202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23203 | { | |
23204 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23205 | result = (wxDateSpan *) &_result_ref; | |
23206 | } | |
23207 | ||
23208 | wxPyEndAllowThreads(__tstate); | |
23209 | if (PyErr_Occurred()) SWIG_fail; | |
23210 | } | |
23211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23212 | return resultobj; | |
23213 | fail: | |
23214 | return NULL; | |
23215 | } | |
23216 | ||
23217 | ||
23218 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23219 | PyObject *resultobj; | |
23220 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23221 | wxDateSpan *arg2 = 0 ; | |
23222 | wxDateSpan *result; | |
23223 | PyObject * obj0 = 0 ; | |
23224 | PyObject * obj1 = 0 ; | |
23225 | char *kwnames[] = { | |
23226 | (char *) "self",(char *) "other", NULL | |
23227 | }; | |
23228 | ||
23229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23232 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23233 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23234 | SWIG_fail; | |
23235 | if (arg2 == NULL) { | |
23236 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23237 | SWIG_fail; | |
23238 | } | |
23239 | { | |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23241 | { | |
23242 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23243 | result = (wxDateSpan *) &_result_ref; | |
23244 | } | |
23245 | ||
23246 | wxPyEndAllowThreads(__tstate); | |
23247 | if (PyErr_Occurred()) SWIG_fail; | |
23248 | } | |
23249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23250 | return resultobj; | |
23251 | fail: | |
23252 | return NULL; | |
23253 | } | |
23254 | ||
23255 | ||
23256 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23257 | PyObject *resultobj; | |
23258 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23259 | wxDateSpan *result; | |
23260 | PyObject * obj0 = 0 ; | |
23261 | char *kwnames[] = { | |
23262 | (char *) "self", NULL | |
23263 | }; | |
23264 | ||
23265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23268 | { | |
23269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23270 | { | |
23271 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23272 | result = (wxDateSpan *) &_result_ref; | |
23273 | } | |
23274 | ||
23275 | wxPyEndAllowThreads(__tstate); | |
23276 | if (PyErr_Occurred()) SWIG_fail; | |
23277 | } | |
23278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23279 | return resultobj; | |
23280 | fail: | |
23281 | return NULL; | |
23282 | } | |
23283 | ||
23284 | ||
23285 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23286 | PyObject *resultobj; | |
23287 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23288 | int arg2 ; | |
23289 | wxDateSpan *result; | |
23290 | PyObject * obj0 = 0 ; | |
23291 | PyObject * obj1 = 0 ; | |
23292 | char *kwnames[] = { | |
23293 | (char *) "self",(char *) "factor", NULL | |
23294 | }; | |
23295 | ||
23296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
23297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23299 | arg2 = (int) SWIG_AsInt(obj1); | |
23300 | if (PyErr_Occurred()) SWIG_fail; | |
23301 | { | |
23302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23303 | { | |
23304 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23305 | result = (wxDateSpan *) &_result_ref; | |
23306 | } | |
23307 | ||
23308 | wxPyEndAllowThreads(__tstate); | |
23309 | if (PyErr_Occurred()) SWIG_fail; | |
23310 | } | |
23311 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23312 | return resultobj; | |
23313 | fail: | |
23314 | return NULL; | |
23315 | } | |
23316 | ||
23317 | ||
23318 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23319 | PyObject *resultobj; | |
23320 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23321 | wxDateSpan *arg2 = 0 ; | |
23322 | wxDateSpan *result; | |
23323 | PyObject * obj0 = 0 ; | |
23324 | PyObject * obj1 = 0 ; | |
23325 | char *kwnames[] = { | |
23326 | (char *) "self",(char *) "other", NULL | |
23327 | }; | |
23328 | ||
23329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
23330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23332 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23333 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23334 | SWIG_fail; | |
23335 | if (arg2 == NULL) { | |
23336 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23337 | SWIG_fail; | |
23338 | } | |
23339 | { | |
23340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23341 | { | |
23342 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23343 | result = (wxDateSpan *) &_result_ref; | |
23344 | } | |
23345 | ||
23346 | wxPyEndAllowThreads(__tstate); | |
23347 | if (PyErr_Occurred()) SWIG_fail; | |
23348 | } | |
23349 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23350 | return resultobj; | |
23351 | fail: | |
23352 | return NULL; | |
23353 | } | |
23354 | ||
23355 | ||
23356 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23357 | PyObject *resultobj; | |
23358 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23359 | wxDateSpan *arg2 = 0 ; | |
23360 | wxDateSpan *result; | |
23361 | PyObject * obj0 = 0 ; | |
23362 | PyObject * obj1 = 0 ; | |
23363 | char *kwnames[] = { | |
23364 | (char *) "self",(char *) "other", NULL | |
23365 | }; | |
23366 | ||
23367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
23368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23371 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23372 | SWIG_fail; | |
23373 | if (arg2 == NULL) { | |
23374 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23375 | SWIG_fail; | |
23376 | } | |
23377 | { | |
23378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23379 | { | |
23380 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23381 | result = (wxDateSpan *) &_result_ref; | |
23382 | } | |
23383 | ||
23384 | wxPyEndAllowThreads(__tstate); | |
23385 | if (PyErr_Occurred()) SWIG_fail; | |
23386 | } | |
23387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23388 | return resultobj; | |
23389 | fail: | |
23390 | return NULL; | |
23391 | } | |
23392 | ||
23393 | ||
23394 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23395 | PyObject *resultobj; | |
23396 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23397 | wxDateSpan *result; | |
23398 | PyObject * obj0 = 0 ; | |
23399 | char *kwnames[] = { | |
23400 | (char *) "self", NULL | |
23401 | }; | |
23402 | ||
23403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23406 | { | |
23407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23408 | { | |
23409 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23410 | result = (wxDateSpan *) &_result_ref; | |
23411 | } | |
23412 | ||
23413 | wxPyEndAllowThreads(__tstate); | |
23414 | if (PyErr_Occurred()) SWIG_fail; | |
23415 | } | |
23416 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23417 | return resultobj; | |
23418 | fail: | |
23419 | return NULL; | |
23420 | } | |
23421 | ||
23422 | ||
23423 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23424 | PyObject *resultobj; | |
23425 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23426 | int arg2 ; | |
23427 | wxDateSpan *result; | |
23428 | PyObject * obj0 = 0 ; | |
23429 | PyObject * obj1 = 0 ; | |
23430 | char *kwnames[] = { | |
23431 | (char *) "self",(char *) "factor", NULL | |
23432 | }; | |
23433 | ||
23434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
23435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23437 | arg2 = (int) SWIG_AsInt(obj1); | |
23438 | if (PyErr_Occurred()) SWIG_fail; | |
23439 | { | |
23440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23441 | { | |
23442 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23443 | result = (wxDateSpan *) &_result_ref; | |
23444 | } | |
23445 | ||
23446 | wxPyEndAllowThreads(__tstate); | |
23447 | if (PyErr_Occurred()) SWIG_fail; | |
23448 | } | |
23449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23450 | return resultobj; | |
23451 | fail: | |
23452 | return NULL; | |
23453 | } | |
23454 | ||
23455 | ||
23456 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23457 | PyObject *resultobj; | |
23458 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23459 | wxDateSpan *arg2 = 0 ; | |
23460 | wxDateSpan result; | |
23461 | PyObject * obj0 = 0 ; | |
23462 | PyObject * obj1 = 0 ; | |
23463 | char *kwnames[] = { | |
23464 | (char *) "self",(char *) "other", NULL | |
23465 | }; | |
23466 | ||
23467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23472 | SWIG_fail; | |
23473 | if (arg2 == NULL) { | |
23474 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23475 | SWIG_fail; | |
23476 | } | |
23477 | { | |
23478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23479 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23480 | ||
23481 | wxPyEndAllowThreads(__tstate); | |
23482 | if (PyErr_Occurred()) SWIG_fail; | |
23483 | } | |
23484 | { | |
23485 | wxDateSpan * resultptr; | |
23486 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23487 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23488 | } | |
23489 | return resultobj; | |
23490 | fail: | |
23491 | return NULL; | |
23492 | } | |
23493 | ||
23494 | ||
23495 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23496 | PyObject *resultobj; | |
23497 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23498 | wxDateSpan *arg2 = 0 ; | |
23499 | wxDateSpan result; | |
23500 | PyObject * obj0 = 0 ; | |
23501 | PyObject * obj1 = 0 ; | |
23502 | char *kwnames[] = { | |
23503 | (char *) "self",(char *) "other", NULL | |
23504 | }; | |
23505 | ||
23506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23510 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23511 | SWIG_fail; | |
23512 | if (arg2 == NULL) { | |
23513 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23514 | SWIG_fail; | |
23515 | } | |
23516 | { | |
23517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23518 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23519 | ||
23520 | wxPyEndAllowThreads(__tstate); | |
23521 | if (PyErr_Occurred()) SWIG_fail; | |
23522 | } | |
23523 | { | |
23524 | wxDateSpan * resultptr; | |
23525 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23527 | } | |
23528 | return resultobj; | |
23529 | fail: | |
23530 | return NULL; | |
23531 | } | |
23532 | ||
23533 | ||
23534 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23535 | PyObject *resultobj; | |
23536 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23537 | int arg2 ; | |
23538 | wxDateSpan result; | |
23539 | PyObject * obj0 = 0 ; | |
23540 | PyObject * obj1 = 0 ; | |
23541 | char *kwnames[] = { | |
23542 | (char *) "self",(char *) "n", NULL | |
23543 | }; | |
23544 | ||
23545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
23546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23548 | arg2 = (int) SWIG_AsInt(obj1); | |
23549 | if (PyErr_Occurred()) SWIG_fail; | |
23550 | { | |
23551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23552 | result = wxDateSpan___mul__(arg1,arg2); | |
23553 | ||
23554 | wxPyEndAllowThreads(__tstate); | |
23555 | if (PyErr_Occurred()) SWIG_fail; | |
23556 | } | |
23557 | { | |
23558 | wxDateSpan * resultptr; | |
23559 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23560 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23561 | } | |
23562 | return resultobj; | |
23563 | fail: | |
23564 | return NULL; | |
23565 | } | |
23566 | ||
23567 | ||
23568 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23569 | PyObject *resultobj; | |
23570 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23571 | int arg2 ; | |
23572 | wxDateSpan result; | |
23573 | PyObject * obj0 = 0 ; | |
23574 | PyObject * obj1 = 0 ; | |
23575 | char *kwnames[] = { | |
23576 | (char *) "self",(char *) "n", NULL | |
23577 | }; | |
23578 | ||
23579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
23580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23582 | arg2 = (int) SWIG_AsInt(obj1); | |
23583 | if (PyErr_Occurred()) SWIG_fail; | |
23584 | { | |
23585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23586 | result = wxDateSpan___rmul__(arg1,arg2); | |
23587 | ||
23588 | wxPyEndAllowThreads(__tstate); | |
23589 | if (PyErr_Occurred()) SWIG_fail; | |
23590 | } | |
23591 | { | |
23592 | wxDateSpan * resultptr; | |
23593 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23594 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23595 | } | |
23596 | return resultobj; | |
23597 | fail: | |
23598 | return NULL; | |
23599 | } | |
23600 | ||
23601 | ||
23602 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23603 | PyObject *resultobj; | |
23604 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23605 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23606 | bool result; | |
23607 | PyObject * obj0 = 0 ; | |
23608 | PyObject * obj1 = 0 ; | |
23609 | char *kwnames[] = { | |
23610 | (char *) "self",(char *) "other", NULL | |
23611 | }; | |
23612 | ||
23613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23616 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23618 | { | |
23619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23620 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
23621 | ||
23622 | wxPyEndAllowThreads(__tstate); | |
23623 | if (PyErr_Occurred()) SWIG_fail; | |
23624 | } | |
23625 | { | |
23626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23627 | } | |
23628 | return resultobj; | |
23629 | fail: | |
23630 | return NULL; | |
23631 | } | |
23632 | ||
23633 | ||
23634 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23635 | PyObject *resultobj; | |
23636 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23637 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23638 | bool result; | |
23639 | PyObject * obj0 = 0 ; | |
23640 | PyObject * obj1 = 0 ; | |
23641 | char *kwnames[] = { | |
23642 | (char *) "self",(char *) "other", NULL | |
23643 | }; | |
23644 | ||
23645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23650 | { | |
23651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23652 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
23653 | ||
23654 | wxPyEndAllowThreads(__tstate); | |
23655 | if (PyErr_Occurred()) SWIG_fail; | |
23656 | } | |
23657 | { | |
23658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23659 | } | |
23660 | return resultobj; | |
23661 | fail: | |
23662 | return NULL; | |
23663 | } | |
23664 | ||
23665 | ||
23666 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23667 | PyObject *obj; | |
23668 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23669 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23670 | Py_INCREF(obj); | |
23671 | return Py_BuildValue((char *)""); | |
23672 | } | |
23673 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23674 | PyObject *resultobj; | |
23675 | long result; | |
23676 | char *kwnames[] = { | |
23677 | NULL | |
23678 | }; | |
23679 | ||
23680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23681 | { | |
23682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23683 | result = (long)wxGetLocalTime(); | |
23684 | ||
23685 | wxPyEndAllowThreads(__tstate); | |
23686 | if (PyErr_Occurred()) SWIG_fail; | |
23687 | } | |
23688 | resultobj = SWIG_FromLong((long)result); | |
23689 | return resultobj; | |
23690 | fail: | |
23691 | return NULL; | |
23692 | } | |
23693 | ||
23694 | ||
23695 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23696 | PyObject *resultobj; | |
23697 | long result; | |
23698 | char *kwnames[] = { | |
23699 | NULL | |
23700 | }; | |
23701 | ||
23702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23703 | { | |
23704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23705 | result = (long)wxGetUTCTime(); | |
23706 | ||
23707 | wxPyEndAllowThreads(__tstate); | |
23708 | if (PyErr_Occurred()) SWIG_fail; | |
23709 | } | |
23710 | resultobj = SWIG_FromLong((long)result); | |
23711 | return resultobj; | |
23712 | fail: | |
23713 | return NULL; | |
23714 | } | |
23715 | ||
23716 | ||
23717 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23718 | PyObject *resultobj; | |
23719 | long result; | |
23720 | char *kwnames[] = { | |
23721 | NULL | |
23722 | }; | |
23723 | ||
23724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23725 | { | |
23726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23727 | result = (long)wxGetCurrentTime(); | |
23728 | ||
23729 | wxPyEndAllowThreads(__tstate); | |
23730 | if (PyErr_Occurred()) SWIG_fail; | |
23731 | } | |
23732 | resultobj = SWIG_FromLong((long)result); | |
23733 | return resultobj; | |
23734 | fail: | |
23735 | return NULL; | |
23736 | } | |
23737 | ||
23738 | ||
23739 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23740 | PyObject *resultobj; | |
23741 | wxLongLong result; | |
23742 | char *kwnames[] = { | |
23743 | NULL | |
23744 | }; | |
23745 | ||
23746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23747 | { | |
23748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23749 | result = wxGetLocalTimeMillis(); | |
23750 | ||
23751 | wxPyEndAllowThreads(__tstate); | |
23752 | if (PyErr_Occurred()) SWIG_fail; | |
23753 | } | |
23754 | { | |
23755 | PyObject *hi, *lo, *shifter, *shifted; | |
23756 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23757 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23758 | shifter = PyLong_FromLong(32); | |
23759 | shifted = PyNumber_Lshift(hi, shifter); | |
23760 | resultobj = PyNumber_Or(shifted, lo); | |
23761 | Py_DECREF(hi); | |
23762 | Py_DECREF(lo); | |
23763 | Py_DECREF(shifter); | |
23764 | Py_DECREF(shifted); | |
23765 | } | |
23766 | return resultobj; | |
23767 | fail: | |
23768 | return NULL; | |
23769 | } | |
23770 | ||
23771 | ||
23772 | static int _wrap_DefaultDateTime_set(PyObject *_val) { | |
23773 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23774 | return 1; | |
23775 | } | |
23776 | ||
23777 | ||
23778 | static PyObject *_wrap_DefaultDateTime_get() { | |
23779 | PyObject *pyobj; | |
23780 | ||
23781 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
23782 | return pyobj; | |
23783 | } | |
23784 | ||
23785 | ||
23786 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23787 | PyObject *resultobj; | |
23788 | int arg1 ; | |
23789 | wxDataFormat *result; | |
23790 | PyObject * obj0 = 0 ; | |
23791 | char *kwnames[] = { | |
23792 | (char *) "type", NULL | |
23793 | }; | |
23794 | ||
23795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
23796 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); | |
23797 | if (PyErr_Occurred()) SWIG_fail; | |
23798 | { | |
23799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23800 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23801 | ||
23802 | wxPyEndAllowThreads(__tstate); | |
23803 | if (PyErr_Occurred()) SWIG_fail; | |
23804 | } | |
23805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23806 | return resultobj; | |
23807 | fail: | |
23808 | return NULL; | |
23809 | } | |
23810 | ||
23811 | ||
23812 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23813 | PyObject *resultobj; | |
23814 | wxString *arg1 = 0 ; | |
23815 | wxDataFormat *result; | |
23816 | bool temp1 = False ; | |
23817 | PyObject * obj0 = 0 ; | |
23818 | char *kwnames[] = { | |
23819 | (char *) "format", NULL | |
23820 | }; | |
23821 | ||
23822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23823 | { | |
23824 | arg1 = wxString_in_helper(obj0); | |
23825 | if (arg1 == NULL) SWIG_fail; | |
23826 | temp1 = True; | |
23827 | } | |
23828 | { | |
23829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23830 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23831 | ||
23832 | wxPyEndAllowThreads(__tstate); | |
23833 | if (PyErr_Occurred()) SWIG_fail; | |
23834 | } | |
23835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23836 | { | |
23837 | if (temp1) | |
23838 | delete arg1; | |
23839 | } | |
23840 | return resultobj; | |
23841 | fail: | |
23842 | { | |
23843 | if (temp1) | |
23844 | delete arg1; | |
23845 | } | |
23846 | return NULL; | |
23847 | } | |
23848 | ||
23849 | ||
23850 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23851 | PyObject *resultobj; | |
23852 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23853 | PyObject * obj0 = 0 ; | |
23854 | char *kwnames[] = { | |
23855 | (char *) "self", NULL | |
23856 | }; | |
23857 | ||
23858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
23859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23861 | { | |
23862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23863 | delete arg1; | |
23864 | ||
23865 | wxPyEndAllowThreads(__tstate); | |
23866 | if (PyErr_Occurred()) SWIG_fail; | |
23867 | } | |
23868 | Py_INCREF(Py_None); resultobj = Py_None; | |
23869 | return resultobj; | |
23870 | fail: | |
23871 | return NULL; | |
23872 | } | |
23873 | ||
23874 | ||
23875 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23876 | PyObject *resultobj; | |
23877 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23878 | int arg2 ; | |
23879 | bool result; | |
23880 | PyObject * obj0 = 0 ; | |
23881 | PyObject * obj1 = 0 ; | |
23882 | ||
23883 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23886 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23887 | if (PyErr_Occurred()) SWIG_fail; | |
23888 | { | |
23889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23890 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
23891 | ||
23892 | wxPyEndAllowThreads(__tstate); | |
23893 | if (PyErr_Occurred()) SWIG_fail; | |
23894 | } | |
23895 | { | |
23896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23897 | } | |
23898 | return resultobj; | |
23899 | fail: | |
23900 | return NULL; | |
23901 | } | |
23902 | ||
23903 | ||
23904 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23905 | PyObject *resultobj; | |
23906 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23907 | int arg2 ; | |
23908 | bool result; | |
23909 | PyObject * obj0 = 0 ; | |
23910 | PyObject * obj1 = 0 ; | |
23911 | ||
23912 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23915 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23916 | if (PyErr_Occurred()) SWIG_fail; | |
23917 | { | |
23918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23919 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
23920 | ||
23921 | wxPyEndAllowThreads(__tstate); | |
23922 | if (PyErr_Occurred()) SWIG_fail; | |
23923 | } | |
23924 | { | |
23925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23926 | } | |
23927 | return resultobj; | |
23928 | fail: | |
23929 | return NULL; | |
23930 | } | |
23931 | ||
23932 | ||
23933 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23934 | PyObject *resultobj; | |
23935 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23936 | wxDataFormat *arg2 = 0 ; | |
23937 | bool result; | |
23938 | PyObject * obj0 = 0 ; | |
23939 | PyObject * obj1 = 0 ; | |
23940 | ||
23941 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23944 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23945 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23946 | SWIG_fail; | |
23947 | if (arg2 == NULL) { | |
23948 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23949 | SWIG_fail; | |
23950 | } | |
23951 | { | |
23952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23953 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23954 | ||
23955 | wxPyEndAllowThreads(__tstate); | |
23956 | if (PyErr_Occurred()) SWIG_fail; | |
23957 | } | |
23958 | { | |
23959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23960 | } | |
23961 | return resultobj; | |
23962 | fail: | |
23963 | return NULL; | |
23964 | } | |
23965 | ||
23966 | ||
23967 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23968 | int argc; | |
23969 | PyObject *argv[3]; | |
23970 | int ii; | |
23971 | ||
23972 | argc = PyObject_Length(args); | |
23973 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23974 | argv[ii] = PyTuple_GetItem(args,ii); | |
23975 | } | |
23976 | if (argc == 2) { | |
23977 | int _v; | |
23978 | { | |
23979 | void *ptr; | |
23980 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23981 | _v = 0; | |
23982 | PyErr_Clear(); | |
23983 | } else { | |
23984 | _v = 1; | |
23985 | } | |
23986 | } | |
23987 | if (_v) { | |
23988 | { | |
23989 | void *ptr; | |
23990 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23991 | _v = 0; | |
23992 | PyErr_Clear(); | |
23993 | } else { | |
23994 | _v = 1; | |
23995 | } | |
23996 | } | |
23997 | if (_v) { | |
23998 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
23999 | } | |
24000 | } | |
24001 | } | |
24002 | if (argc == 2) { | |
24003 | int _v; | |
24004 | { | |
24005 | void *ptr; | |
24006 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24007 | _v = 0; | |
24008 | PyErr_Clear(); | |
24009 | } else { | |
24010 | _v = 1; | |
24011 | } | |
24012 | } | |
24013 | if (_v) { | |
24014 | _v = SWIG_CheckInt(argv[1]); | |
24015 | if (_v) { | |
24016 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24017 | } | |
24018 | } | |
24019 | } | |
24020 | ||
24021 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24022 | return NULL; | |
24023 | } | |
24024 | ||
24025 | ||
24026 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
24027 | PyObject *resultobj; | |
24028 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24029 | wxDataFormat *arg2 = 0 ; | |
24030 | bool result; | |
24031 | PyObject * obj0 = 0 ; | |
24032 | PyObject * obj1 = 0 ; | |
24033 | ||
24034 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24037 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24038 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24039 | SWIG_fail; | |
24040 | if (arg2 == NULL) { | |
24041 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24042 | SWIG_fail; | |
24043 | } | |
24044 | { | |
24045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24046 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24047 | ||
24048 | wxPyEndAllowThreads(__tstate); | |
24049 | if (PyErr_Occurred()) SWIG_fail; | |
24050 | } | |
24051 | { | |
24052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24053 | } | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
24060 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24061 | int argc; | |
24062 | PyObject *argv[3]; | |
24063 | int ii; | |
24064 | ||
24065 | argc = PyObject_Length(args); | |
24066 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24067 | argv[ii] = PyTuple_GetItem(args,ii); | |
24068 | } | |
24069 | if (argc == 2) { | |
24070 | int _v; | |
24071 | { | |
24072 | void *ptr; | |
24073 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24074 | _v = 0; | |
24075 | PyErr_Clear(); | |
24076 | } else { | |
24077 | _v = 1; | |
24078 | } | |
24079 | } | |
24080 | if (_v) { | |
24081 | { | |
24082 | void *ptr; | |
24083 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24084 | _v = 0; | |
24085 | PyErr_Clear(); | |
24086 | } else { | |
24087 | _v = 1; | |
24088 | } | |
24089 | } | |
24090 | if (_v) { | |
24091 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24092 | } | |
24093 | } | |
24094 | } | |
24095 | if (argc == 2) { | |
24096 | int _v; | |
24097 | { | |
24098 | void *ptr; | |
24099 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24100 | _v = 0; | |
24101 | PyErr_Clear(); | |
24102 | } else { | |
24103 | _v = 1; | |
24104 | } | |
24105 | } | |
24106 | if (_v) { | |
24107 | _v = SWIG_CheckInt(argv[1]); | |
24108 | if (_v) { | |
24109 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24110 | } | |
24111 | } | |
24112 | } | |
24113 | ||
24114 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24115 | return NULL; | |
24116 | } | |
24117 | ||
24118 | ||
24119 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24120 | PyObject *resultobj; | |
24121 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24122 | int arg2 ; | |
24123 | PyObject * obj0 = 0 ; | |
24124 | PyObject * obj1 = 0 ; | |
24125 | char *kwnames[] = { | |
24126 | (char *) "self",(char *) "format", NULL | |
24127 | }; | |
24128 | ||
24129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24132 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24133 | if (PyErr_Occurred()) SWIG_fail; | |
24134 | { | |
24135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24136 | (arg1)->SetType((wxDataFormatId )arg2); | |
24137 | ||
24138 | wxPyEndAllowThreads(__tstate); | |
24139 | if (PyErr_Occurred()) SWIG_fail; | |
24140 | } | |
24141 | Py_INCREF(Py_None); resultobj = Py_None; | |
24142 | return resultobj; | |
24143 | fail: | |
24144 | return NULL; | |
24145 | } | |
24146 | ||
24147 | ||
24148 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24149 | PyObject *resultobj; | |
24150 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24151 | int result; | |
24152 | PyObject * obj0 = 0 ; | |
24153 | char *kwnames[] = { | |
24154 | (char *) "self", NULL | |
24155 | }; | |
24156 | ||
24157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24160 | { | |
24161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24162 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24163 | ||
24164 | wxPyEndAllowThreads(__tstate); | |
24165 | if (PyErr_Occurred()) SWIG_fail; | |
24166 | } | |
24167 | resultobj = SWIG_FromInt((int)result); | |
24168 | return resultobj; | |
24169 | fail: | |
24170 | return NULL; | |
24171 | } | |
24172 | ||
24173 | ||
24174 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24175 | PyObject *resultobj; | |
24176 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24177 | wxString result; | |
24178 | PyObject * obj0 = 0 ; | |
24179 | char *kwnames[] = { | |
24180 | (char *) "self", NULL | |
24181 | }; | |
24182 | ||
24183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24186 | { | |
24187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24188 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24189 | ||
24190 | wxPyEndAllowThreads(__tstate); | |
24191 | if (PyErr_Occurred()) SWIG_fail; | |
24192 | } | |
24193 | { | |
24194 | #if wxUSE_UNICODE | |
24195 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24196 | #else | |
24197 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24198 | #endif | |
24199 | } | |
24200 | return resultobj; | |
24201 | fail: | |
24202 | return NULL; | |
24203 | } | |
24204 | ||
24205 | ||
24206 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24207 | PyObject *resultobj; | |
24208 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24209 | wxString *arg2 = 0 ; | |
24210 | bool temp2 = False ; | |
24211 | PyObject * obj0 = 0 ; | |
24212 | PyObject * obj1 = 0 ; | |
24213 | char *kwnames[] = { | |
24214 | (char *) "self",(char *) "format", NULL | |
24215 | }; | |
24216 | ||
24217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24220 | { | |
24221 | arg2 = wxString_in_helper(obj1); | |
24222 | if (arg2 == NULL) SWIG_fail; | |
24223 | temp2 = True; | |
24224 | } | |
24225 | { | |
24226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24227 | (arg1)->SetId((wxString const &)*arg2); | |
24228 | ||
24229 | wxPyEndAllowThreads(__tstate); | |
24230 | if (PyErr_Occurred()) SWIG_fail; | |
24231 | } | |
24232 | Py_INCREF(Py_None); resultobj = Py_None; | |
24233 | { | |
24234 | if (temp2) | |
24235 | delete arg2; | |
24236 | } | |
24237 | return resultobj; | |
24238 | fail: | |
24239 | { | |
24240 | if (temp2) | |
24241 | delete arg2; | |
24242 | } | |
24243 | return NULL; | |
24244 | } | |
24245 | ||
24246 | ||
24247 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24248 | PyObject *obj; | |
24249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24250 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24251 | Py_INCREF(obj); | |
24252 | return Py_BuildValue((char *)""); | |
24253 | } | |
24254 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24255 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24256 | return 1; | |
24257 | } | |
24258 | ||
24259 | ||
24260 | static PyObject *_wrap_FormatInvalid_get() { | |
24261 | PyObject *pyobj; | |
24262 | ||
24263 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24264 | return pyobj; | |
24265 | } | |
24266 | ||
24267 | ||
24268 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24269 | PyObject *resultobj; | |
24270 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24271 | PyObject * obj0 = 0 ; | |
24272 | char *kwnames[] = { | |
24273 | (char *) "self", NULL | |
24274 | }; | |
24275 | ||
24276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24279 | { | |
24280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24281 | delete arg1; | |
24282 | ||
24283 | wxPyEndAllowThreads(__tstate); | |
24284 | if (PyErr_Occurred()) SWIG_fail; | |
24285 | } | |
24286 | Py_INCREF(Py_None); resultobj = Py_None; | |
24287 | return resultobj; | |
24288 | fail: | |
24289 | return NULL; | |
24290 | } | |
24291 | ||
24292 | ||
24293 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24294 | PyObject *resultobj; | |
24295 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24296 | int arg2 = (int) wxDataObject::Get ; | |
24297 | SwigValueWrapper< wxDataFormat > result; | |
24298 | PyObject * obj0 = 0 ; | |
24299 | PyObject * obj1 = 0 ; | |
24300 | char *kwnames[] = { | |
24301 | (char *) "self",(char *) "dir", NULL | |
24302 | }; | |
24303 | ||
24304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
24305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24307 | if (obj1) { | |
24308 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24309 | if (PyErr_Occurred()) SWIG_fail; | |
24310 | } | |
24311 | { | |
24312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24313 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24314 | ||
24315 | wxPyEndAllowThreads(__tstate); | |
24316 | if (PyErr_Occurred()) SWIG_fail; | |
24317 | } | |
24318 | { | |
24319 | wxDataFormat * resultptr; | |
24320 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
24321 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
24322 | } | |
24323 | return resultobj; | |
24324 | fail: | |
24325 | return NULL; | |
24326 | } | |
24327 | ||
24328 | ||
24329 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24330 | PyObject *resultobj; | |
24331 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24332 | int arg2 = (int) wxDataObject::Get ; | |
24333 | size_t result; | |
24334 | PyObject * obj0 = 0 ; | |
24335 | PyObject * obj1 = 0 ; | |
24336 | char *kwnames[] = { | |
24337 | (char *) "self",(char *) "dir", NULL | |
24338 | }; | |
24339 | ||
24340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
24341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24343 | if (obj1) { | |
24344 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24345 | if (PyErr_Occurred()) SWIG_fail; | |
24346 | } | |
24347 | { | |
24348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24349 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24350 | ||
24351 | wxPyEndAllowThreads(__tstate); | |
24352 | if (PyErr_Occurred()) SWIG_fail; | |
24353 | } | |
24354 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24355 | return resultobj; | |
24356 | fail: | |
24357 | return NULL; | |
24358 | } | |
24359 | ||
24360 | ||
24361 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24362 | PyObject *resultobj; | |
24363 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24364 | wxDataFormat *arg2 = 0 ; | |
24365 | int arg3 = (int) wxDataObject::Get ; | |
24366 | bool result; | |
24367 | PyObject * obj0 = 0 ; | |
24368 | PyObject * obj1 = 0 ; | |
24369 | PyObject * obj2 = 0 ; | |
24370 | char *kwnames[] = { | |
24371 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24372 | }; | |
24373 | ||
24374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24377 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24378 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24379 | SWIG_fail; | |
24380 | if (arg2 == NULL) { | |
24381 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24382 | SWIG_fail; | |
24383 | } | |
24384 | if (obj2) { | |
24385 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); | |
24386 | if (PyErr_Occurred()) SWIG_fail; | |
24387 | } | |
24388 | { | |
24389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24390 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24391 | ||
24392 | wxPyEndAllowThreads(__tstate); | |
24393 | if (PyErr_Occurred()) SWIG_fail; | |
24394 | } | |
24395 | { | |
24396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24397 | } | |
24398 | return resultobj; | |
24399 | fail: | |
24400 | return NULL; | |
24401 | } | |
24402 | ||
24403 | ||
24404 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24405 | PyObject *resultobj; | |
24406 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24407 | wxDataFormat *arg2 = 0 ; | |
24408 | size_t result; | |
24409 | PyObject * obj0 = 0 ; | |
24410 | PyObject * obj1 = 0 ; | |
24411 | char *kwnames[] = { | |
24412 | (char *) "self",(char *) "format", NULL | |
24413 | }; | |
24414 | ||
24415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24419 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24420 | SWIG_fail; | |
24421 | if (arg2 == NULL) { | |
24422 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24423 | SWIG_fail; | |
24424 | } | |
24425 | { | |
24426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24427 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24428 | ||
24429 | wxPyEndAllowThreads(__tstate); | |
24430 | if (PyErr_Occurred()) SWIG_fail; | |
24431 | } | |
24432 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24433 | return resultobj; | |
24434 | fail: | |
24435 | return NULL; | |
24436 | } | |
24437 | ||
24438 | ||
24439 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24440 | PyObject *resultobj; | |
24441 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24442 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
24443 | int arg3 = (int) wxDataObject::Get ; | |
24444 | PyObject * obj0 = 0 ; | |
24445 | PyObject * obj1 = 0 ; | |
24446 | PyObject * obj2 = 0 ; | |
24447 | char *kwnames[] = { | |
24448 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
24449 | }; | |
24450 | ||
24451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24456 | if (obj2) { | |
24457 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); | |
24458 | if (PyErr_Occurred()) SWIG_fail; | |
24459 | } | |
24460 | { | |
24461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24462 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
24463 | ||
24464 | wxPyEndAllowThreads(__tstate); | |
24465 | if (PyErr_Occurred()) SWIG_fail; | |
24466 | } | |
24467 | Py_INCREF(Py_None); resultobj = Py_None; | |
24468 | return resultobj; | |
24469 | fail: | |
24470 | return NULL; | |
24471 | } | |
24472 | ||
24473 | ||
24474 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24475 | PyObject *resultobj; | |
24476 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24477 | wxDataFormat *arg2 = 0 ; | |
24478 | void *arg3 = (void *) 0 ; | |
24479 | bool result; | |
24480 | PyObject * obj0 = 0 ; | |
24481 | PyObject * obj1 = 0 ; | |
24482 | PyObject * obj2 = 0 ; | |
24483 | char *kwnames[] = { | |
24484 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
24485 | }; | |
24486 | ||
24487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24491 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24492 | SWIG_fail; | |
24493 | if (arg2 == NULL) { | |
24494 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24495 | SWIG_fail; | |
24496 | } | |
24497 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24498 | { | |
24499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24500 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
24501 | ||
24502 | wxPyEndAllowThreads(__tstate); | |
24503 | if (PyErr_Occurred()) SWIG_fail; | |
24504 | } | |
24505 | { | |
24506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24507 | } | |
24508 | return resultobj; | |
24509 | fail: | |
24510 | return NULL; | |
24511 | } | |
24512 | ||
24513 | ||
24514 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24515 | PyObject *resultobj; | |
24516 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24517 | wxDataFormat *arg2 = 0 ; | |
24518 | size_t arg3 ; | |
24519 | void *arg4 = (void *) 0 ; | |
24520 | bool result; | |
24521 | PyObject * obj0 = 0 ; | |
24522 | PyObject * obj1 = 0 ; | |
24523 | PyObject * obj2 = 0 ; | |
24524 | PyObject * obj3 = 0 ; | |
24525 | char *kwnames[] = { | |
24526 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
24527 | }; | |
24528 | ||
24529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24532 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24533 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24534 | SWIG_fail; | |
24535 | if (arg2 == NULL) { | |
24536 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24537 | SWIG_fail; | |
24538 | } | |
24539 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
24540 | if (PyErr_Occurred()) SWIG_fail; | |
24541 | if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24542 | { | |
24543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24544 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
24545 | ||
24546 | wxPyEndAllowThreads(__tstate); | |
24547 | if (PyErr_Occurred()) SWIG_fail; | |
24548 | } | |
24549 | { | |
24550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24551 | } | |
24552 | return resultobj; | |
24553 | fail: | |
24554 | return NULL; | |
24555 | } | |
24556 | ||
24557 | ||
24558 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24559 | PyObject *obj; | |
24560 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24561 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24562 | Py_INCREF(obj); | |
24563 | return Py_BuildValue((char *)""); | |
24564 | } | |
24565 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24566 | PyObject *resultobj; | |
24567 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24568 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24569 | wxDataObjectSimple *result; | |
24570 | PyObject * obj0 = 0 ; | |
24571 | char *kwnames[] = { | |
24572 | (char *) "format", NULL | |
24573 | }; | |
24574 | ||
24575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24576 | if (obj0) { | |
24577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24579 | SWIG_fail; | |
24580 | if (arg1 == NULL) { | |
24581 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24582 | SWIG_fail; | |
24583 | } | |
24584 | } | |
24585 | { | |
24586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24587 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24588 | ||
24589 | wxPyEndAllowThreads(__tstate); | |
24590 | if (PyErr_Occurred()) SWIG_fail; | |
24591 | } | |
24592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
24593 | return resultobj; | |
24594 | fail: | |
24595 | return NULL; | |
24596 | } | |
24597 | ||
24598 | ||
24599 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24600 | PyObject *resultobj; | |
24601 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24602 | wxDataFormat *result; | |
24603 | PyObject * obj0 = 0 ; | |
24604 | char *kwnames[] = { | |
24605 | (char *) "self", NULL | |
24606 | }; | |
24607 | ||
24608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
24609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24611 | { | |
24612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24613 | { | |
24614 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24615 | result = (wxDataFormat *) &_result_ref; | |
24616 | } | |
24617 | ||
24618 | wxPyEndAllowThreads(__tstate); | |
24619 | if (PyErr_Occurred()) SWIG_fail; | |
24620 | } | |
24621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
24622 | return resultobj; | |
24623 | fail: | |
24624 | return NULL; | |
24625 | } | |
24626 | ||
24627 | ||
24628 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24629 | PyObject *resultobj; | |
24630 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24631 | wxDataFormat *arg2 = 0 ; | |
24632 | PyObject * obj0 = 0 ; | |
24633 | PyObject * obj1 = 0 ; | |
24634 | char *kwnames[] = { | |
24635 | (char *) "self",(char *) "format", NULL | |
24636 | }; | |
24637 | ||
24638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
24639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24641 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24642 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24643 | SWIG_fail; | |
24644 | if (arg2 == NULL) { | |
24645 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24646 | SWIG_fail; | |
24647 | } | |
24648 | { | |
24649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24650 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24651 | ||
24652 | wxPyEndAllowThreads(__tstate); | |
24653 | if (PyErr_Occurred()) SWIG_fail; | |
24654 | } | |
24655 | Py_INCREF(Py_None); resultobj = Py_None; | |
24656 | return resultobj; | |
24657 | fail: | |
24658 | return NULL; | |
24659 | } | |
24660 | ||
24661 | ||
24662 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24663 | PyObject *obj; | |
24664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24665 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24666 | Py_INCREF(obj); | |
24667 | return Py_BuildValue((char *)""); | |
24668 | } | |
24669 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24670 | PyObject *resultobj; | |
24671 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24672 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24673 | wxPyDataObjectSimple *result; | |
24674 | PyObject * obj0 = 0 ; | |
24675 | char *kwnames[] = { | |
24676 | (char *) "format", NULL | |
24677 | }; | |
24678 | ||
24679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24680 | if (obj0) { | |
24681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24682 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24683 | SWIG_fail; | |
24684 | if (arg1 == NULL) { | |
24685 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24686 | SWIG_fail; | |
24687 | } | |
24688 | } | |
24689 | { | |
24690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24691 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24692 | ||
24693 | wxPyEndAllowThreads(__tstate); | |
24694 | if (PyErr_Occurred()) SWIG_fail; | |
24695 | } | |
24696 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
24697 | return resultobj; | |
24698 | fail: | |
24699 | return NULL; | |
24700 | } | |
24701 | ||
24702 | ||
24703 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24704 | PyObject *resultobj; | |
24705 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24706 | PyObject *arg2 = (PyObject *) 0 ; | |
24707 | PyObject *arg3 = (PyObject *) 0 ; | |
24708 | PyObject * obj0 = 0 ; | |
24709 | PyObject * obj1 = 0 ; | |
24710 | PyObject * obj2 = 0 ; | |
24711 | char *kwnames[] = { | |
24712 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24713 | }; | |
24714 | ||
24715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
24717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24718 | arg2 = obj1; | |
24719 | arg3 = obj2; | |
24720 | { | |
24721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24722 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24723 | ||
24724 | wxPyEndAllowThreads(__tstate); | |
24725 | if (PyErr_Occurred()) SWIG_fail; | |
24726 | } | |
24727 | Py_INCREF(Py_None); resultobj = Py_None; | |
24728 | return resultobj; | |
24729 | fail: | |
24730 | return NULL; | |
24731 | } | |
24732 | ||
24733 | ||
24734 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24735 | PyObject *obj; | |
24736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24737 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24738 | Py_INCREF(obj); | |
24739 | return Py_BuildValue((char *)""); | |
24740 | } | |
24741 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24742 | PyObject *resultobj; | |
24743 | wxDataObjectComposite *result; | |
24744 | char *kwnames[] = { | |
24745 | NULL | |
24746 | }; | |
24747 | ||
24748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24749 | { | |
24750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24751 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24752 | ||
24753 | wxPyEndAllowThreads(__tstate); | |
24754 | if (PyErr_Occurred()) SWIG_fail; | |
24755 | } | |
24756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
24757 | return resultobj; | |
24758 | fail: | |
24759 | return NULL; | |
24760 | } | |
24761 | ||
24762 | ||
24763 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24764 | PyObject *resultobj; | |
24765 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24766 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
24767 | int arg3 = (int) False ; | |
24768 | PyObject * obj0 = 0 ; | |
24769 | PyObject * obj1 = 0 ; | |
24770 | PyObject * obj2 = 0 ; | |
24771 | char *kwnames[] = { | |
24772 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24773 | }; | |
24774 | ||
24775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
24777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24778 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24779 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24780 | if (obj2) { | |
24781 | arg3 = (int) SWIG_AsInt(obj2); | |
24782 | if (PyErr_Occurred()) SWIG_fail; | |
24783 | } | |
24784 | { | |
24785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24786 | (arg1)->Add(arg2,arg3); | |
24787 | ||
24788 | wxPyEndAllowThreads(__tstate); | |
24789 | if (PyErr_Occurred()) SWIG_fail; | |
24790 | } | |
24791 | Py_INCREF(Py_None); resultobj = Py_None; | |
24792 | return resultobj; | |
24793 | fail: | |
24794 | return NULL; | |
24795 | } | |
24796 | ||
24797 | ||
24798 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24799 | PyObject *obj; | |
24800 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24801 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24802 | Py_INCREF(obj); | |
24803 | return Py_BuildValue((char *)""); | |
24804 | } | |
24805 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24806 | PyObject *resultobj; | |
24807 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24808 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24809 | wxTextDataObject *result; | |
24810 | bool temp1 = False ; | |
24811 | PyObject * obj0 = 0 ; | |
24812 | char *kwnames[] = { | |
24813 | (char *) "text", NULL | |
24814 | }; | |
24815 | ||
24816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24817 | if (obj0) { | |
24818 | { | |
24819 | arg1 = wxString_in_helper(obj0); | |
24820 | if (arg1 == NULL) SWIG_fail; | |
24821 | temp1 = True; | |
24822 | } | |
24823 | } | |
24824 | { | |
24825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24826 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24827 | ||
24828 | wxPyEndAllowThreads(__tstate); | |
24829 | if (PyErr_Occurred()) SWIG_fail; | |
24830 | } | |
24831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
24832 | { | |
24833 | if (temp1) | |
24834 | delete arg1; | |
24835 | } | |
24836 | return resultobj; | |
24837 | fail: | |
24838 | { | |
24839 | if (temp1) | |
24840 | delete arg1; | |
24841 | } | |
24842 | return NULL; | |
24843 | } | |
24844 | ||
24845 | ||
24846 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24847 | PyObject *resultobj; | |
24848 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24849 | size_t result; | |
24850 | PyObject * obj0 = 0 ; | |
24851 | char *kwnames[] = { | |
24852 | (char *) "self", NULL | |
24853 | }; | |
24854 | ||
24855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
24856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24858 | { | |
24859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24860 | result = (size_t)(arg1)->GetTextLength(); | |
24861 | ||
24862 | wxPyEndAllowThreads(__tstate); | |
24863 | if (PyErr_Occurred()) SWIG_fail; | |
24864 | } | |
24865 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24866 | return resultobj; | |
24867 | fail: | |
24868 | return NULL; | |
24869 | } | |
24870 | ||
24871 | ||
24872 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24873 | PyObject *resultobj; | |
24874 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24875 | wxString result; | |
24876 | PyObject * obj0 = 0 ; | |
24877 | char *kwnames[] = { | |
24878 | (char *) "self", NULL | |
24879 | }; | |
24880 | ||
24881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
24882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24884 | { | |
24885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24886 | result = (arg1)->GetText(); | |
24887 | ||
24888 | wxPyEndAllowThreads(__tstate); | |
24889 | if (PyErr_Occurred()) SWIG_fail; | |
24890 | } | |
24891 | { | |
24892 | #if wxUSE_UNICODE | |
24893 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24894 | #else | |
24895 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24896 | #endif | |
24897 | } | |
24898 | return resultobj; | |
24899 | fail: | |
24900 | return NULL; | |
24901 | } | |
24902 | ||
24903 | ||
24904 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24905 | PyObject *resultobj; | |
24906 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24907 | wxString *arg2 = 0 ; | |
24908 | bool temp2 = False ; | |
24909 | PyObject * obj0 = 0 ; | |
24910 | PyObject * obj1 = 0 ; | |
24911 | char *kwnames[] = { | |
24912 | (char *) "self",(char *) "text", NULL | |
24913 | }; | |
24914 | ||
24915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
24916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24918 | { | |
24919 | arg2 = wxString_in_helper(obj1); | |
24920 | if (arg2 == NULL) SWIG_fail; | |
24921 | temp2 = True; | |
24922 | } | |
24923 | { | |
24924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24925 | (arg1)->SetText((wxString const &)*arg2); | |
24926 | ||
24927 | wxPyEndAllowThreads(__tstate); | |
24928 | if (PyErr_Occurred()) SWIG_fail; | |
24929 | } | |
24930 | Py_INCREF(Py_None); resultobj = Py_None; | |
24931 | { | |
24932 | if (temp2) | |
24933 | delete arg2; | |
24934 | } | |
24935 | return resultobj; | |
24936 | fail: | |
24937 | { | |
24938 | if (temp2) | |
24939 | delete arg2; | |
24940 | } | |
24941 | return NULL; | |
24942 | } | |
24943 | ||
24944 | ||
24945 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24946 | PyObject *obj; | |
24947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24948 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24949 | Py_INCREF(obj); | |
24950 | return Py_BuildValue((char *)""); | |
24951 | } | |
24952 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24953 | PyObject *resultobj; | |
24954 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24955 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24956 | wxPyTextDataObject *result; | |
24957 | bool temp1 = False ; | |
24958 | PyObject * obj0 = 0 ; | |
24959 | char *kwnames[] = { | |
24960 | (char *) "text", NULL | |
24961 | }; | |
24962 | ||
24963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24964 | if (obj0) { | |
24965 | { | |
24966 | arg1 = wxString_in_helper(obj0); | |
24967 | if (arg1 == NULL) SWIG_fail; | |
24968 | temp1 = True; | |
24969 | } | |
24970 | } | |
24971 | { | |
24972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24973 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24974 | ||
24975 | wxPyEndAllowThreads(__tstate); | |
24976 | if (PyErr_Occurred()) SWIG_fail; | |
24977 | } | |
24978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
24979 | { | |
24980 | if (temp1) | |
24981 | delete arg1; | |
24982 | } | |
24983 | return resultobj; | |
24984 | fail: | |
24985 | { | |
24986 | if (temp1) | |
24987 | delete arg1; | |
24988 | } | |
24989 | return NULL; | |
24990 | } | |
24991 | ||
24992 | ||
24993 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24994 | PyObject *resultobj; | |
24995 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
24996 | PyObject *arg2 = (PyObject *) 0 ; | |
24997 | PyObject *arg3 = (PyObject *) 0 ; | |
24998 | PyObject * obj0 = 0 ; | |
24999 | PyObject * obj1 = 0 ; | |
25000 | PyObject * obj2 = 0 ; | |
25001 | char *kwnames[] = { | |
25002 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25003 | }; | |
25004 | ||
25005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
25007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25008 | arg2 = obj1; | |
25009 | arg3 = obj2; | |
25010 | { | |
25011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25012 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25013 | ||
25014 | wxPyEndAllowThreads(__tstate); | |
25015 | if (PyErr_Occurred()) SWIG_fail; | |
25016 | } | |
25017 | Py_INCREF(Py_None); resultobj = Py_None; | |
25018 | return resultobj; | |
25019 | fail: | |
25020 | return NULL; | |
25021 | } | |
25022 | ||
25023 | ||
25024 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25025 | PyObject *obj; | |
25026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25027 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25028 | Py_INCREF(obj); | |
25029 | return Py_BuildValue((char *)""); | |
25030 | } | |
25031 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25032 | PyObject *resultobj; | |
25033 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25034 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25035 | wxBitmapDataObject *result; | |
25036 | PyObject * obj0 = 0 ; | |
25037 | char *kwnames[] = { | |
25038 | (char *) "bitmap", NULL | |
25039 | }; | |
25040 | ||
25041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25042 | if (obj0) { | |
25043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25044 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25045 | SWIG_fail; | |
25046 | if (arg1 == NULL) { | |
25047 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25048 | SWIG_fail; | |
25049 | } | |
25050 | } | |
25051 | { | |
25052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25053 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25054 | ||
25055 | wxPyEndAllowThreads(__tstate); | |
25056 | if (PyErr_Occurred()) SWIG_fail; | |
25057 | } | |
25058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
25059 | return resultobj; | |
25060 | fail: | |
25061 | return NULL; | |
25062 | } | |
25063 | ||
25064 | ||
25065 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25066 | PyObject *resultobj; | |
25067 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25068 | wxBitmap result; | |
25069 | PyObject * obj0 = 0 ; | |
25070 | char *kwnames[] = { | |
25071 | (char *) "self", NULL | |
25072 | }; | |
25073 | ||
25074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25077 | { | |
25078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25079 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25080 | ||
25081 | wxPyEndAllowThreads(__tstate); | |
25082 | if (PyErr_Occurred()) SWIG_fail; | |
25083 | } | |
25084 | { | |
25085 | wxBitmap * resultptr; | |
25086 | resultptr = new wxBitmap((wxBitmap &) result); | |
25087 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25088 | } | |
25089 | return resultobj; | |
25090 | fail: | |
25091 | return NULL; | |
25092 | } | |
25093 | ||
25094 | ||
25095 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25096 | PyObject *resultobj; | |
25097 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25098 | wxBitmap *arg2 = 0 ; | |
25099 | PyObject * obj0 = 0 ; | |
25100 | PyObject * obj1 = 0 ; | |
25101 | char *kwnames[] = { | |
25102 | (char *) "self",(char *) "bitmap", NULL | |
25103 | }; | |
25104 | ||
25105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25108 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25109 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25110 | SWIG_fail; | |
25111 | if (arg2 == NULL) { | |
25112 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25113 | SWIG_fail; | |
25114 | } | |
25115 | { | |
25116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25117 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25118 | ||
25119 | wxPyEndAllowThreads(__tstate); | |
25120 | if (PyErr_Occurred()) SWIG_fail; | |
25121 | } | |
25122 | Py_INCREF(Py_None); resultobj = Py_None; | |
25123 | return resultobj; | |
25124 | fail: | |
25125 | return NULL; | |
25126 | } | |
25127 | ||
25128 | ||
25129 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25130 | PyObject *obj; | |
25131 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25132 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25133 | Py_INCREF(obj); | |
25134 | return Py_BuildValue((char *)""); | |
25135 | } | |
25136 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25137 | PyObject *resultobj; | |
25138 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25139 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25140 | wxPyBitmapDataObject *result; | |
25141 | PyObject * obj0 = 0 ; | |
25142 | char *kwnames[] = { | |
25143 | (char *) "bitmap", NULL | |
25144 | }; | |
25145 | ||
25146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25147 | if (obj0) { | |
25148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25149 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25150 | SWIG_fail; | |
25151 | if (arg1 == NULL) { | |
25152 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25153 | SWIG_fail; | |
25154 | } | |
25155 | } | |
25156 | { | |
25157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25158 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25159 | ||
25160 | wxPyEndAllowThreads(__tstate); | |
25161 | if (PyErr_Occurred()) SWIG_fail; | |
25162 | } | |
25163 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25164 | return resultobj; | |
25165 | fail: | |
25166 | return NULL; | |
25167 | } | |
25168 | ||
25169 | ||
25170 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25171 | PyObject *resultobj; | |
25172 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25173 | PyObject *arg2 = (PyObject *) 0 ; | |
25174 | PyObject *arg3 = (PyObject *) 0 ; | |
25175 | PyObject * obj0 = 0 ; | |
25176 | PyObject * obj1 = 0 ; | |
25177 | PyObject * obj2 = 0 ; | |
25178 | char *kwnames[] = { | |
25179 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25180 | }; | |
25181 | ||
25182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25185 | arg2 = obj1; | |
25186 | arg3 = obj2; | |
25187 | { | |
25188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25189 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25190 | ||
25191 | wxPyEndAllowThreads(__tstate); | |
25192 | if (PyErr_Occurred()) SWIG_fail; | |
25193 | } | |
25194 | Py_INCREF(Py_None); resultobj = Py_None; | |
25195 | return resultobj; | |
25196 | fail: | |
25197 | return NULL; | |
25198 | } | |
25199 | ||
25200 | ||
25201 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25202 | PyObject *obj; | |
25203 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25204 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25205 | Py_INCREF(obj); | |
25206 | return Py_BuildValue((char *)""); | |
25207 | } | |
25208 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25209 | PyObject *resultobj; | |
25210 | wxFileDataObject *result; | |
25211 | char *kwnames[] = { | |
25212 | NULL | |
25213 | }; | |
25214 | ||
25215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25216 | { | |
25217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25218 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25219 | ||
25220 | wxPyEndAllowThreads(__tstate); | |
25221 | if (PyErr_Occurred()) SWIG_fail; | |
25222 | } | |
25223 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
25224 | return resultobj; | |
25225 | fail: | |
25226 | return NULL; | |
25227 | } | |
25228 | ||
25229 | ||
25230 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25231 | PyObject *resultobj; | |
25232 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25233 | wxArrayString *result; | |
25234 | PyObject * obj0 = 0 ; | |
25235 | char *kwnames[] = { | |
25236 | (char *) "self", NULL | |
25237 | }; | |
25238 | ||
25239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
25240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25242 | { | |
25243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25244 | { | |
25245 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25246 | result = (wxArrayString *) &_result_ref; | |
25247 | } | |
25248 | ||
25249 | wxPyEndAllowThreads(__tstate); | |
25250 | if (PyErr_Occurred()) SWIG_fail; | |
25251 | } | |
25252 | { | |
25253 | resultobj = wxArrayString2PyList_helper(*result); | |
25254 | } | |
25255 | return resultobj; | |
25256 | fail: | |
25257 | return NULL; | |
25258 | } | |
25259 | ||
25260 | ||
25261 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25262 | PyObject *resultobj; | |
25263 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25264 | wxString *arg2 = 0 ; | |
25265 | bool temp2 = False ; | |
25266 | PyObject * obj0 = 0 ; | |
25267 | PyObject * obj1 = 0 ; | |
25268 | char *kwnames[] = { | |
25269 | (char *) "self",(char *) "filename", NULL | |
25270 | }; | |
25271 | ||
25272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25275 | { | |
25276 | arg2 = wxString_in_helper(obj1); | |
25277 | if (arg2 == NULL) SWIG_fail; | |
25278 | temp2 = True; | |
25279 | } | |
25280 | { | |
25281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25282 | (arg1)->AddFile((wxString const &)*arg2); | |
25283 | ||
25284 | wxPyEndAllowThreads(__tstate); | |
25285 | if (PyErr_Occurred()) SWIG_fail; | |
25286 | } | |
25287 | Py_INCREF(Py_None); resultobj = Py_None; | |
25288 | { | |
25289 | if (temp2) | |
25290 | delete arg2; | |
25291 | } | |
25292 | return resultobj; | |
25293 | fail: | |
25294 | { | |
25295 | if (temp2) | |
25296 | delete arg2; | |
25297 | } | |
25298 | return NULL; | |
25299 | } | |
25300 | ||
25301 | ||
25302 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25303 | PyObject *obj; | |
25304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25305 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25306 | Py_INCREF(obj); | |
25307 | return Py_BuildValue((char *)""); | |
25308 | } | |
25309 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25310 | PyObject *resultobj; | |
25311 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25312 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25313 | wxCustomDataObject *result; | |
25314 | PyObject * obj0 = 0 ; | |
25315 | char *kwnames[] = { | |
25316 | (char *) "format", NULL | |
25317 | }; | |
25318 | ||
25319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25320 | if (obj0) { | |
25321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25322 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25323 | SWIG_fail; | |
25324 | if (arg1 == NULL) { | |
25325 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25326 | SWIG_fail; | |
25327 | } | |
25328 | } | |
25329 | { | |
25330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25331 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25332 | ||
25333 | wxPyEndAllowThreads(__tstate); | |
25334 | if (PyErr_Occurred()) SWIG_fail; | |
25335 | } | |
25336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
25337 | return resultobj; | |
25338 | fail: | |
25339 | return NULL; | |
25340 | } | |
25341 | ||
25342 | ||
25343 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25344 | PyObject *resultobj; | |
25345 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25346 | PyObject *arg2 = (PyObject *) 0 ; | |
25347 | PyObject * obj0 = 0 ; | |
25348 | PyObject * obj1 = 0 ; | |
25349 | char *kwnames[] = { | |
25350 | (char *) "self",(char *) "data", NULL | |
25351 | }; | |
25352 | ||
25353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
25354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25356 | arg2 = obj1; | |
25357 | { | |
25358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25359 | wxCustomDataObject_TakeData(arg1,arg2); | |
25360 | ||
25361 | wxPyEndAllowThreads(__tstate); | |
25362 | if (PyErr_Occurred()) SWIG_fail; | |
25363 | } | |
25364 | Py_INCREF(Py_None); resultobj = Py_None; | |
25365 | return resultobj; | |
25366 | fail: | |
25367 | return NULL; | |
25368 | } | |
25369 | ||
25370 | ||
25371 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25372 | PyObject *resultobj; | |
25373 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25374 | PyObject *arg2 = (PyObject *) 0 ; | |
25375 | bool result; | |
25376 | PyObject * obj0 = 0 ; | |
25377 | PyObject * obj1 = 0 ; | |
25378 | char *kwnames[] = { | |
25379 | (char *) "self",(char *) "data", NULL | |
25380 | }; | |
25381 | ||
25382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25385 | arg2 = obj1; | |
25386 | { | |
25387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25388 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25389 | ||
25390 | wxPyEndAllowThreads(__tstate); | |
25391 | if (PyErr_Occurred()) SWIG_fail; | |
25392 | } | |
25393 | { | |
25394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25395 | } | |
25396 | return resultobj; | |
25397 | fail: | |
25398 | return NULL; | |
25399 | } | |
25400 | ||
25401 | ||
25402 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25403 | PyObject *resultobj; | |
25404 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25405 | size_t result; | |
25406 | PyObject * obj0 = 0 ; | |
25407 | char *kwnames[] = { | |
25408 | (char *) "self", NULL | |
25409 | }; | |
25410 | ||
25411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
25412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25414 | { | |
25415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25416 | result = (size_t)(arg1)->GetSize(); | |
25417 | ||
25418 | wxPyEndAllowThreads(__tstate); | |
25419 | if (PyErr_Occurred()) SWIG_fail; | |
25420 | } | |
25421 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25422 | return resultobj; | |
25423 | fail: | |
25424 | return NULL; | |
25425 | } | |
25426 | ||
25427 | ||
25428 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25429 | PyObject *resultobj; | |
25430 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25431 | PyObject *result; | |
25432 | PyObject * obj0 = 0 ; | |
25433 | char *kwnames[] = { | |
25434 | (char *) "self", NULL | |
25435 | }; | |
25436 | ||
25437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
25438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25440 | { | |
25441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25442 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25443 | ||
25444 | wxPyEndAllowThreads(__tstate); | |
25445 | if (PyErr_Occurred()) SWIG_fail; | |
25446 | } | |
25447 | resultobj = result; | |
25448 | return resultobj; | |
25449 | fail: | |
25450 | return NULL; | |
25451 | } | |
25452 | ||
25453 | ||
25454 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25455 | PyObject *obj; | |
25456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25457 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25458 | Py_INCREF(obj); | |
25459 | return Py_BuildValue((char *)""); | |
25460 | } | |
25461 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25462 | PyObject *resultobj; | |
25463 | wxURLDataObject *result; | |
25464 | char *kwnames[] = { | |
25465 | NULL | |
25466 | }; | |
25467 | ||
25468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25469 | { | |
25470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25471 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25472 | ||
25473 | wxPyEndAllowThreads(__tstate); | |
25474 | if (PyErr_Occurred()) SWIG_fail; | |
25475 | } | |
25476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
25477 | return resultobj; | |
25478 | fail: | |
25479 | return NULL; | |
25480 | } | |
25481 | ||
25482 | ||
25483 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25484 | PyObject *resultobj; | |
25485 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25486 | wxString result; | |
25487 | PyObject * obj0 = 0 ; | |
25488 | char *kwnames[] = { | |
25489 | (char *) "self", NULL | |
25490 | }; | |
25491 | ||
25492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
25493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25495 | { | |
25496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25497 | result = (arg1)->GetURL(); | |
25498 | ||
25499 | wxPyEndAllowThreads(__tstate); | |
25500 | if (PyErr_Occurred()) SWIG_fail; | |
25501 | } | |
25502 | { | |
25503 | #if wxUSE_UNICODE | |
25504 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25505 | #else | |
25506 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25507 | #endif | |
25508 | } | |
25509 | return resultobj; | |
25510 | fail: | |
25511 | return NULL; | |
25512 | } | |
25513 | ||
25514 | ||
25515 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25516 | PyObject *resultobj; | |
25517 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25518 | wxString *arg2 = 0 ; | |
25519 | bool temp2 = False ; | |
25520 | PyObject * obj0 = 0 ; | |
25521 | PyObject * obj1 = 0 ; | |
25522 | char *kwnames[] = { | |
25523 | (char *) "self",(char *) "url", NULL | |
25524 | }; | |
25525 | ||
25526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
25527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25529 | { | |
25530 | arg2 = wxString_in_helper(obj1); | |
25531 | if (arg2 == NULL) SWIG_fail; | |
25532 | temp2 = True; | |
25533 | } | |
25534 | { | |
25535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25536 | (arg1)->SetURL((wxString const &)*arg2); | |
25537 | ||
25538 | wxPyEndAllowThreads(__tstate); | |
25539 | if (PyErr_Occurred()) SWIG_fail; | |
25540 | } | |
25541 | Py_INCREF(Py_None); resultobj = Py_None; | |
25542 | { | |
25543 | if (temp2) | |
25544 | delete arg2; | |
25545 | } | |
25546 | return resultobj; | |
25547 | fail: | |
25548 | { | |
25549 | if (temp2) | |
25550 | delete arg2; | |
25551 | } | |
25552 | return NULL; | |
25553 | } | |
25554 | ||
25555 | ||
25556 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25557 | PyObject *obj; | |
25558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25559 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25560 | Py_INCREF(obj); | |
25561 | return Py_BuildValue((char *)""); | |
25562 | } | |
25563 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25564 | PyObject *resultobj; | |
25565 | wxMetafileDataObject *result; | |
25566 | char *kwnames[] = { | |
25567 | NULL | |
25568 | }; | |
25569 | ||
25570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25571 | { | |
25572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25573 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25574 | ||
25575 | wxPyEndAllowThreads(__tstate); | |
25576 | if (PyErr_Occurred()) SWIG_fail; | |
25577 | } | |
25578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
25579 | return resultobj; | |
25580 | fail: | |
25581 | return NULL; | |
25582 | } | |
25583 | ||
25584 | ||
25585 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25586 | PyObject *obj; | |
25587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25588 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25589 | Py_INCREF(obj); | |
25590 | return Py_BuildValue((char *)""); | |
25591 | } | |
25592 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25593 | PyObject *resultobj; | |
25594 | int arg1 ; | |
25595 | bool result; | |
25596 | PyObject * obj0 = 0 ; | |
25597 | char *kwnames[] = { | |
25598 | (char *) "res", NULL | |
25599 | }; | |
25600 | ||
25601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
25602 | arg1 = (wxDragResult) SWIG_AsInt(obj0); | |
25603 | if (PyErr_Occurred()) SWIG_fail; | |
25604 | { | |
25605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25606 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25607 | ||
25608 | wxPyEndAllowThreads(__tstate); | |
25609 | if (PyErr_Occurred()) SWIG_fail; | |
25610 | } | |
25611 | { | |
25612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25613 | } | |
25614 | return resultobj; | |
25615 | fail: | |
25616 | return NULL; | |
25617 | } | |
25618 | ||
25619 | ||
25620 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25621 | PyObject *resultobj; | |
25622 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25623 | wxIcon const &arg2_defvalue = wxNullIcon ; | |
25624 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
25625 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
25626 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
25627 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
25628 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
25629 | wxPyDropSource *result; | |
25630 | PyObject * obj0 = 0 ; | |
25631 | PyObject * obj1 = 0 ; | |
25632 | PyObject * obj2 = 0 ; | |
25633 | PyObject * obj3 = 0 ; | |
25634 | char *kwnames[] = { | |
25635 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25636 | }; | |
25637 | ||
25638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25641 | if (obj1) { | |
25642 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
25643 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25644 | SWIG_fail; | |
25645 | if (arg2 == NULL) { | |
25646 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25647 | SWIG_fail; | |
25648 | } | |
25649 | } | |
25650 | if (obj2) { | |
25651 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon, | |
25652 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25653 | SWIG_fail; | |
25654 | if (arg3 == NULL) { | |
25655 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25656 | SWIG_fail; | |
25657 | } | |
25658 | } | |
25659 | if (obj3) { | |
25660 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon, | |
25661 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25662 | SWIG_fail; | |
25663 | if (arg4 == NULL) { | |
25664 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25665 | SWIG_fail; | |
25666 | } | |
25667 | } | |
25668 | { | |
25669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25670 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
25671 | ||
25672 | wxPyEndAllowThreads(__tstate); | |
25673 | if (PyErr_Occurred()) SWIG_fail; | |
25674 | } | |
25675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
25676 | return resultobj; | |
25677 | fail: | |
25678 | return NULL; | |
25679 | } | |
25680 | ||
25681 | ||
25682 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25683 | PyObject *resultobj; | |
25684 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25685 | PyObject *arg2 = (PyObject *) 0 ; | |
25686 | PyObject *arg3 = (PyObject *) 0 ; | |
25687 | int arg4 ; | |
25688 | PyObject * obj0 = 0 ; | |
25689 | PyObject * obj1 = 0 ; | |
25690 | PyObject * obj2 = 0 ; | |
25691 | PyObject * obj3 = 0 ; | |
25692 | char *kwnames[] = { | |
25693 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25694 | }; | |
25695 | ||
25696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25699 | arg2 = obj1; | |
25700 | arg3 = obj2; | |
25701 | arg4 = (int) SWIG_AsInt(obj3); | |
25702 | if (PyErr_Occurred()) SWIG_fail; | |
25703 | { | |
25704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25705 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25706 | ||
25707 | wxPyEndAllowThreads(__tstate); | |
25708 | if (PyErr_Occurred()) SWIG_fail; | |
25709 | } | |
25710 | Py_INCREF(Py_None); resultobj = Py_None; | |
25711 | return resultobj; | |
25712 | fail: | |
25713 | return NULL; | |
25714 | } | |
25715 | ||
25716 | ||
25717 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25718 | PyObject *resultobj; | |
25719 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25720 | PyObject * obj0 = 0 ; | |
25721 | char *kwnames[] = { | |
25722 | (char *) "self", NULL | |
25723 | }; | |
25724 | ||
25725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
25726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25728 | { | |
25729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25730 | delete arg1; | |
25731 | ||
25732 | wxPyEndAllowThreads(__tstate); | |
25733 | if (PyErr_Occurred()) SWIG_fail; | |
25734 | } | |
25735 | Py_INCREF(Py_None); resultobj = Py_None; | |
25736 | return resultobj; | |
25737 | fail: | |
25738 | return NULL; | |
25739 | } | |
25740 | ||
25741 | ||
25742 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25743 | PyObject *resultobj; | |
25744 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25745 | wxDataObject *arg2 = 0 ; | |
25746 | PyObject * obj0 = 0 ; | |
25747 | PyObject * obj1 = 0 ; | |
25748 | char *kwnames[] = { | |
25749 | (char *) "self",(char *) "data", NULL | |
25750 | }; | |
25751 | ||
25752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25755 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25756 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25757 | SWIG_fail; | |
25758 | if (arg2 == NULL) { | |
25759 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25760 | SWIG_fail; | |
25761 | } | |
25762 | { | |
25763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25764 | (arg1)->SetData(*arg2); | |
25765 | ||
25766 | wxPyEndAllowThreads(__tstate); | |
25767 | if (PyErr_Occurred()) SWIG_fail; | |
25768 | } | |
25769 | Py_INCREF(Py_None); resultobj = Py_None; | |
25770 | return resultobj; | |
25771 | fail: | |
25772 | return NULL; | |
25773 | } | |
25774 | ||
25775 | ||
25776 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25777 | PyObject *resultobj; | |
25778 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25779 | wxDataObject *result; | |
25780 | PyObject * obj0 = 0 ; | |
25781 | char *kwnames[] = { | |
25782 | (char *) "self", NULL | |
25783 | }; | |
25784 | ||
25785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
25786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25788 | { | |
25789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25790 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25791 | ||
25792 | wxPyEndAllowThreads(__tstate); | |
25793 | if (PyErr_Occurred()) SWIG_fail; | |
25794 | } | |
25795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
25796 | return resultobj; | |
25797 | fail: | |
25798 | return NULL; | |
25799 | } | |
25800 | ||
25801 | ||
25802 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25803 | PyObject *resultobj; | |
25804 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25805 | int arg2 ; | |
25806 | wxCursor *arg3 = 0 ; | |
25807 | PyObject * obj0 = 0 ; | |
25808 | PyObject * obj1 = 0 ; | |
25809 | PyObject * obj2 = 0 ; | |
25810 | char *kwnames[] = { | |
25811 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25812 | }; | |
25813 | ||
25814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25817 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25818 | if (PyErr_Occurred()) SWIG_fail; | |
25819 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25820 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25821 | SWIG_fail; | |
25822 | if (arg3 == NULL) { | |
25823 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25824 | SWIG_fail; | |
25825 | } | |
25826 | { | |
25827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25828 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25829 | ||
25830 | wxPyEndAllowThreads(__tstate); | |
25831 | if (PyErr_Occurred()) SWIG_fail; | |
25832 | } | |
25833 | Py_INCREF(Py_None); resultobj = Py_None; | |
25834 | return resultobj; | |
25835 | fail: | |
25836 | return NULL; | |
25837 | } | |
25838 | ||
25839 | ||
25840 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25841 | PyObject *resultobj; | |
25842 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25843 | int arg2 = (int) wxDrag_CopyOnly ; | |
25844 | int result; | |
25845 | PyObject * obj0 = 0 ; | |
25846 | PyObject * obj1 = 0 ; | |
25847 | char *kwnames[] = { | |
25848 | (char *) "self",(char *) "flags", NULL | |
25849 | }; | |
25850 | ||
25851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
25852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25854 | if (obj1) { | |
25855 | arg2 = (int) SWIG_AsInt(obj1); | |
25856 | if (PyErr_Occurred()) SWIG_fail; | |
25857 | } | |
25858 | { | |
25859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25860 | result = (int)(arg1)->DoDragDrop(arg2); | |
25861 | ||
25862 | wxPyEndAllowThreads(__tstate); | |
25863 | if (PyErr_Occurred()) SWIG_fail; | |
25864 | } | |
25865 | resultobj = SWIG_FromInt((int)result); | |
25866 | return resultobj; | |
25867 | fail: | |
25868 | return NULL; | |
25869 | } | |
25870 | ||
25871 | ||
25872 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25873 | PyObject *resultobj; | |
25874 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25875 | int arg2 ; | |
25876 | bool result; | |
25877 | PyObject * obj0 = 0 ; | |
25878 | PyObject * obj1 = 0 ; | |
25879 | char *kwnames[] = { | |
25880 | (char *) "self",(char *) "effect", NULL | |
25881 | }; | |
25882 | ||
25883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
25884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25886 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25887 | if (PyErr_Occurred()) SWIG_fail; | |
25888 | { | |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
25895 | { | |
25896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25897 | } | |
25898 | return resultobj; | |
25899 | fail: | |
25900 | return NULL; | |
25901 | } | |
25902 | ||
25903 | ||
25904 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25905 | PyObject *obj; | |
25906 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25907 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25908 | Py_INCREF(obj); | |
25909 | return Py_BuildValue((char *)""); | |
25910 | } | |
25911 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25912 | PyObject *resultobj; | |
25913 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25914 | wxPyDropTarget *result; | |
25915 | PyObject * obj0 = 0 ; | |
25916 | char *kwnames[] = { | |
25917 | (char *) "dataObject", NULL | |
25918 | }; | |
25919 | ||
25920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
25921 | if (obj0) { | |
25922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25923 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25924 | } | |
25925 | { | |
25926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25927 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25928 | ||
25929 | wxPyEndAllowThreads(__tstate); | |
25930 | if (PyErr_Occurred()) SWIG_fail; | |
25931 | } | |
25932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
25933 | return resultobj; | |
25934 | fail: | |
25935 | return NULL; | |
25936 | } | |
25937 | ||
25938 | ||
25939 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25940 | PyObject *resultobj; | |
25941 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25942 | PyObject *arg2 = (PyObject *) 0 ; | |
25943 | PyObject *arg3 = (PyObject *) 0 ; | |
25944 | PyObject * obj0 = 0 ; | |
25945 | PyObject * obj1 = 0 ; | |
25946 | PyObject * obj2 = 0 ; | |
25947 | char *kwnames[] = { | |
25948 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25949 | }; | |
25950 | ||
25951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
25953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25954 | arg2 = obj1; | |
25955 | arg3 = obj2; | |
25956 | { | |
25957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25958 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25959 | ||
25960 | wxPyEndAllowThreads(__tstate); | |
25961 | if (PyErr_Occurred()) SWIG_fail; | |
25962 | } | |
25963 | Py_INCREF(Py_None); resultobj = Py_None; | |
25964 | return resultobj; | |
25965 | fail: | |
25966 | return NULL; | |
25967 | } | |
25968 | ||
25969 | ||
25970 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25971 | PyObject *resultobj; | |
25972 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25973 | PyObject * obj0 = 0 ; | |
25974 | char *kwnames[] = { | |
25975 | (char *) "self", NULL | |
25976 | }; | |
25977 | ||
25978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
25979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
25980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25981 | { | |
25982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25983 | delete arg1; | |
25984 | ||
25985 | wxPyEndAllowThreads(__tstate); | |
25986 | if (PyErr_Occurred()) SWIG_fail; | |
25987 | } | |
25988 | Py_INCREF(Py_None); resultobj = Py_None; | |
25989 | return resultobj; | |
25990 | fail: | |
25991 | return NULL; | |
25992 | } | |
25993 | ||
25994 | ||
25995 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25996 | PyObject *resultobj; | |
25997 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25998 | wxDataObject *result; | |
25999 | PyObject * obj0 = 0 ; | |
26000 | char *kwnames[] = { | |
26001 | (char *) "self", NULL | |
26002 | }; | |
26003 | ||
26004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
26005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26007 | { | |
26008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26009 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26010 | ||
26011 | wxPyEndAllowThreads(__tstate); | |
26012 | if (PyErr_Occurred()) SWIG_fail; | |
26013 | } | |
26014 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26015 | return resultobj; | |
26016 | fail: | |
26017 | return NULL; | |
26018 | } | |
26019 | ||
26020 | ||
26021 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26022 | PyObject *resultobj; | |
26023 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26024 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26025 | PyObject * obj0 = 0 ; | |
26026 | PyObject * obj1 = 0 ; | |
26027 | char *kwnames[] = { | |
26028 | (char *) "self",(char *) "dataObject", NULL | |
26029 | }; | |
26030 | ||
26031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26035 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26036 | { | |
26037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26038 | (arg1)->SetDataObject(arg2); | |
26039 | ||
26040 | wxPyEndAllowThreads(__tstate); | |
26041 | if (PyErr_Occurred()) SWIG_fail; | |
26042 | } | |
26043 | Py_INCREF(Py_None); resultobj = Py_None; | |
26044 | return resultobj; | |
26045 | fail: | |
26046 | return NULL; | |
26047 | } | |
26048 | ||
26049 | ||
26050 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26051 | PyObject *resultobj; | |
26052 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26053 | int arg2 ; | |
26054 | int arg3 ; | |
26055 | int arg4 ; | |
26056 | int result; | |
26057 | PyObject * obj0 = 0 ; | |
26058 | PyObject * obj1 = 0 ; | |
26059 | PyObject * obj2 = 0 ; | |
26060 | PyObject * obj3 = 0 ; | |
26061 | char *kwnames[] = { | |
26062 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26063 | }; | |
26064 | ||
26065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26068 | arg2 = (int) SWIG_AsInt(obj1); | |
26069 | if (PyErr_Occurred()) SWIG_fail; | |
26070 | arg3 = (int) SWIG_AsInt(obj2); | |
26071 | if (PyErr_Occurred()) SWIG_fail; | |
26072 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26073 | if (PyErr_Occurred()) SWIG_fail; | |
26074 | { | |
26075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26076 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26077 | ||
26078 | wxPyEndAllowThreads(__tstate); | |
26079 | if (PyErr_Occurred()) SWIG_fail; | |
26080 | } | |
26081 | resultobj = SWIG_FromInt((int)result); | |
26082 | return resultobj; | |
26083 | fail: | |
26084 | return NULL; | |
26085 | } | |
26086 | ||
26087 | ||
26088 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26089 | PyObject *resultobj; | |
26090 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26091 | int arg2 ; | |
26092 | int arg3 ; | |
26093 | int arg4 ; | |
26094 | int result; | |
26095 | PyObject * obj0 = 0 ; | |
26096 | PyObject * obj1 = 0 ; | |
26097 | PyObject * obj2 = 0 ; | |
26098 | PyObject * obj3 = 0 ; | |
26099 | char *kwnames[] = { | |
26100 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26101 | }; | |
26102 | ||
26103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26106 | arg2 = (int) SWIG_AsInt(obj1); | |
26107 | if (PyErr_Occurred()) SWIG_fail; | |
26108 | arg3 = (int) SWIG_AsInt(obj2); | |
26109 | if (PyErr_Occurred()) SWIG_fail; | |
26110 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26111 | if (PyErr_Occurred()) SWIG_fail; | |
26112 | { | |
26113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26114 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26115 | ||
26116 | wxPyEndAllowThreads(__tstate); | |
26117 | if (PyErr_Occurred()) SWIG_fail; | |
26118 | } | |
26119 | resultobj = SWIG_FromInt((int)result); | |
26120 | return resultobj; | |
26121 | fail: | |
26122 | return NULL; | |
26123 | } | |
26124 | ||
26125 | ||
26126 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26127 | PyObject *resultobj; | |
26128 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26129 | PyObject * obj0 = 0 ; | |
26130 | char *kwnames[] = { | |
26131 | (char *) "self", NULL | |
26132 | }; | |
26133 | ||
26134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26137 | { | |
26138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26139 | (arg1)->base_OnLeave(); | |
26140 | ||
26141 | wxPyEndAllowThreads(__tstate); | |
26142 | if (PyErr_Occurred()) SWIG_fail; | |
26143 | } | |
26144 | Py_INCREF(Py_None); resultobj = Py_None; | |
26145 | return resultobj; | |
26146 | fail: | |
26147 | return NULL; | |
26148 | } | |
26149 | ||
26150 | ||
26151 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26152 | PyObject *resultobj; | |
26153 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26154 | int arg2 ; | |
26155 | int arg3 ; | |
26156 | bool result; | |
26157 | PyObject * obj0 = 0 ; | |
26158 | PyObject * obj1 = 0 ; | |
26159 | PyObject * obj2 = 0 ; | |
26160 | char *kwnames[] = { | |
26161 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26162 | }; | |
26163 | ||
26164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26167 | arg2 = (int) SWIG_AsInt(obj1); | |
26168 | if (PyErr_Occurred()) SWIG_fail; | |
26169 | arg3 = (int) SWIG_AsInt(obj2); | |
26170 | if (PyErr_Occurred()) SWIG_fail; | |
26171 | { | |
26172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26173 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26174 | ||
26175 | wxPyEndAllowThreads(__tstate); | |
26176 | if (PyErr_Occurred()) SWIG_fail; | |
26177 | } | |
26178 | { | |
26179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26180 | } | |
26181 | return resultobj; | |
26182 | fail: | |
26183 | return NULL; | |
26184 | } | |
26185 | ||
26186 | ||
26187 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26188 | PyObject *resultobj; | |
26189 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26190 | bool result; | |
26191 | PyObject * obj0 = 0 ; | |
26192 | char *kwnames[] = { | |
26193 | (char *) "self", NULL | |
26194 | }; | |
26195 | ||
26196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
26197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26199 | { | |
26200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26201 | result = (bool)(arg1)->GetData(); | |
26202 | ||
26203 | wxPyEndAllowThreads(__tstate); | |
26204 | if (PyErr_Occurred()) SWIG_fail; | |
26205 | } | |
26206 | { | |
26207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26208 | } | |
26209 | return resultobj; | |
26210 | fail: | |
26211 | return NULL; | |
26212 | } | |
26213 | ||
26214 | ||
26215 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26216 | PyObject *obj; | |
26217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26218 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26219 | Py_INCREF(obj); | |
26220 | return Py_BuildValue((char *)""); | |
26221 | } | |
26222 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26223 | PyObject *resultobj; | |
26224 | wxPyTextDropTarget *result; | |
26225 | char *kwnames[] = { | |
26226 | NULL | |
26227 | }; | |
26228 | ||
26229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26230 | { | |
26231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26232 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26233 | ||
26234 | wxPyEndAllowThreads(__tstate); | |
26235 | if (PyErr_Occurred()) SWIG_fail; | |
26236 | } | |
26237 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
26238 | return resultobj; | |
26239 | fail: | |
26240 | return NULL; | |
26241 | } | |
26242 | ||
26243 | ||
26244 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26245 | PyObject *resultobj; | |
26246 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26247 | PyObject *arg2 = (PyObject *) 0 ; | |
26248 | PyObject *arg3 = (PyObject *) 0 ; | |
26249 | PyObject * obj0 = 0 ; | |
26250 | PyObject * obj1 = 0 ; | |
26251 | PyObject * obj2 = 0 ; | |
26252 | char *kwnames[] = { | |
26253 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26254 | }; | |
26255 | ||
26256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26259 | arg2 = obj1; | |
26260 | arg3 = obj2; | |
26261 | { | |
26262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26263 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26264 | ||
26265 | wxPyEndAllowThreads(__tstate); | |
26266 | if (PyErr_Occurred()) SWIG_fail; | |
26267 | } | |
26268 | Py_INCREF(Py_None); resultobj = Py_None; | |
26269 | return resultobj; | |
26270 | fail: | |
26271 | return NULL; | |
26272 | } | |
26273 | ||
26274 | ||
26275 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26276 | PyObject *resultobj; | |
26277 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26278 | int arg2 ; | |
26279 | int arg3 ; | |
26280 | int arg4 ; | |
26281 | int result; | |
26282 | PyObject * obj0 = 0 ; | |
26283 | PyObject * obj1 = 0 ; | |
26284 | PyObject * obj2 = 0 ; | |
26285 | PyObject * obj3 = 0 ; | |
26286 | char *kwnames[] = { | |
26287 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26288 | }; | |
26289 | ||
26290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26293 | arg2 = (int) SWIG_AsInt(obj1); | |
26294 | if (PyErr_Occurred()) SWIG_fail; | |
26295 | arg3 = (int) SWIG_AsInt(obj2); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26298 | if (PyErr_Occurred()) SWIG_fail; | |
26299 | { | |
26300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26301 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26302 | ||
26303 | wxPyEndAllowThreads(__tstate); | |
26304 | if (PyErr_Occurred()) SWIG_fail; | |
26305 | } | |
26306 | resultobj = SWIG_FromInt((int)result); | |
26307 | return resultobj; | |
26308 | fail: | |
26309 | return NULL; | |
26310 | } | |
26311 | ||
26312 | ||
26313 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26314 | PyObject *resultobj; | |
26315 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26316 | int arg2 ; | |
26317 | int arg3 ; | |
26318 | int arg4 ; | |
26319 | int result; | |
26320 | PyObject * obj0 = 0 ; | |
26321 | PyObject * obj1 = 0 ; | |
26322 | PyObject * obj2 = 0 ; | |
26323 | PyObject * obj3 = 0 ; | |
26324 | char *kwnames[] = { | |
26325 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26326 | }; | |
26327 | ||
26328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26331 | arg2 = (int) SWIG_AsInt(obj1); | |
26332 | if (PyErr_Occurred()) SWIG_fail; | |
26333 | arg3 = (int) SWIG_AsInt(obj2); | |
26334 | if (PyErr_Occurred()) SWIG_fail; | |
26335 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26336 | if (PyErr_Occurred()) SWIG_fail; | |
26337 | { | |
26338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26339 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26340 | ||
26341 | wxPyEndAllowThreads(__tstate); | |
26342 | if (PyErr_Occurred()) SWIG_fail; | |
26343 | } | |
26344 | resultobj = SWIG_FromInt((int)result); | |
26345 | return resultobj; | |
26346 | fail: | |
26347 | return NULL; | |
26348 | } | |
26349 | ||
26350 | ||
26351 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26352 | PyObject *resultobj; | |
26353 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26354 | PyObject * obj0 = 0 ; | |
26355 | char *kwnames[] = { | |
26356 | (char *) "self", NULL | |
26357 | }; | |
26358 | ||
26359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26362 | { | |
26363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26364 | (arg1)->base_OnLeave(); | |
26365 | ||
26366 | wxPyEndAllowThreads(__tstate); | |
26367 | if (PyErr_Occurred()) SWIG_fail; | |
26368 | } | |
26369 | Py_INCREF(Py_None); resultobj = Py_None; | |
26370 | return resultobj; | |
26371 | fail: | |
26372 | return NULL; | |
26373 | } | |
26374 | ||
26375 | ||
26376 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26377 | PyObject *resultobj; | |
26378 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26379 | int arg2 ; | |
26380 | int arg3 ; | |
26381 | bool result; | |
26382 | PyObject * obj0 = 0 ; | |
26383 | PyObject * obj1 = 0 ; | |
26384 | PyObject * obj2 = 0 ; | |
26385 | char *kwnames[] = { | |
26386 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26387 | }; | |
26388 | ||
26389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26392 | arg2 = (int) SWIG_AsInt(obj1); | |
26393 | if (PyErr_Occurred()) SWIG_fail; | |
26394 | arg3 = (int) SWIG_AsInt(obj2); | |
26395 | if (PyErr_Occurred()) SWIG_fail; | |
26396 | { | |
26397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26398 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26399 | ||
26400 | wxPyEndAllowThreads(__tstate); | |
26401 | if (PyErr_Occurred()) SWIG_fail; | |
26402 | } | |
26403 | { | |
26404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26405 | } | |
26406 | return resultobj; | |
26407 | fail: | |
26408 | return NULL; | |
26409 | } | |
26410 | ||
26411 | ||
26412 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26413 | PyObject *resultobj; | |
26414 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26415 | int arg2 ; | |
26416 | int arg3 ; | |
26417 | int arg4 ; | |
26418 | int result; | |
26419 | PyObject * obj0 = 0 ; | |
26420 | PyObject * obj1 = 0 ; | |
26421 | PyObject * obj2 = 0 ; | |
26422 | PyObject * obj3 = 0 ; | |
26423 | char *kwnames[] = { | |
26424 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26425 | }; | |
26426 | ||
26427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26430 | arg2 = (int) SWIG_AsInt(obj1); | |
26431 | if (PyErr_Occurred()) SWIG_fail; | |
26432 | arg3 = (int) SWIG_AsInt(obj2); | |
26433 | if (PyErr_Occurred()) SWIG_fail; | |
26434 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26435 | if (PyErr_Occurred()) SWIG_fail; | |
26436 | { | |
26437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26438 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26439 | ||
26440 | wxPyEndAllowThreads(__tstate); | |
26441 | if (PyErr_Occurred()) SWIG_fail; | |
26442 | } | |
26443 | resultobj = SWIG_FromInt((int)result); | |
26444 | return resultobj; | |
26445 | fail: | |
26446 | return NULL; | |
26447 | } | |
26448 | ||
26449 | ||
26450 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26451 | PyObject *obj; | |
26452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26453 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26454 | Py_INCREF(obj); | |
26455 | return Py_BuildValue((char *)""); | |
26456 | } | |
26457 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26458 | PyObject *resultobj; | |
26459 | wxPyFileDropTarget *result; | |
26460 | char *kwnames[] = { | |
26461 | NULL | |
26462 | }; | |
26463 | ||
26464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26465 | { | |
26466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26467 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26468 | ||
26469 | wxPyEndAllowThreads(__tstate); | |
26470 | if (PyErr_Occurred()) SWIG_fail; | |
26471 | } | |
26472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
26473 | return resultobj; | |
26474 | fail: | |
26475 | return NULL; | |
26476 | } | |
26477 | ||
26478 | ||
26479 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26480 | PyObject *resultobj; | |
26481 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26482 | PyObject *arg2 = (PyObject *) 0 ; | |
26483 | PyObject *arg3 = (PyObject *) 0 ; | |
26484 | PyObject * obj0 = 0 ; | |
26485 | PyObject * obj1 = 0 ; | |
26486 | PyObject * obj2 = 0 ; | |
26487 | char *kwnames[] = { | |
26488 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26489 | }; | |
26490 | ||
26491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26494 | arg2 = obj1; | |
26495 | arg3 = obj2; | |
26496 | { | |
26497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26498 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26499 | ||
26500 | wxPyEndAllowThreads(__tstate); | |
26501 | if (PyErr_Occurred()) SWIG_fail; | |
26502 | } | |
26503 | Py_INCREF(Py_None); resultobj = Py_None; | |
26504 | return resultobj; | |
26505 | fail: | |
26506 | return NULL; | |
26507 | } | |
26508 | ||
26509 | ||
26510 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26511 | PyObject *resultobj; | |
26512 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26513 | int arg2 ; | |
26514 | int arg3 ; | |
26515 | int arg4 ; | |
26516 | int result; | |
26517 | PyObject * obj0 = 0 ; | |
26518 | PyObject * obj1 = 0 ; | |
26519 | PyObject * obj2 = 0 ; | |
26520 | PyObject * obj3 = 0 ; | |
26521 | char *kwnames[] = { | |
26522 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26523 | }; | |
26524 | ||
26525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26528 | arg2 = (int) SWIG_AsInt(obj1); | |
26529 | if (PyErr_Occurred()) SWIG_fail; | |
26530 | arg3 = (int) SWIG_AsInt(obj2); | |
26531 | if (PyErr_Occurred()) SWIG_fail; | |
26532 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26533 | if (PyErr_Occurred()) SWIG_fail; | |
26534 | { | |
26535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26536 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26537 | ||
26538 | wxPyEndAllowThreads(__tstate); | |
26539 | if (PyErr_Occurred()) SWIG_fail; | |
26540 | } | |
26541 | resultobj = SWIG_FromInt((int)result); | |
26542 | return resultobj; | |
26543 | fail: | |
26544 | return NULL; | |
26545 | } | |
26546 | ||
26547 | ||
26548 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26549 | PyObject *resultobj; | |
26550 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26551 | int arg2 ; | |
26552 | int arg3 ; | |
26553 | int arg4 ; | |
26554 | int result; | |
26555 | PyObject * obj0 = 0 ; | |
26556 | PyObject * obj1 = 0 ; | |
26557 | PyObject * obj2 = 0 ; | |
26558 | PyObject * obj3 = 0 ; | |
26559 | char *kwnames[] = { | |
26560 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26561 | }; | |
26562 | ||
26563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26566 | arg2 = (int) SWIG_AsInt(obj1); | |
26567 | if (PyErr_Occurred()) SWIG_fail; | |
26568 | arg3 = (int) SWIG_AsInt(obj2); | |
26569 | if (PyErr_Occurred()) SWIG_fail; | |
26570 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26571 | if (PyErr_Occurred()) SWIG_fail; | |
26572 | { | |
26573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26574 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26575 | ||
26576 | wxPyEndAllowThreads(__tstate); | |
26577 | if (PyErr_Occurred()) SWIG_fail; | |
26578 | } | |
26579 | resultobj = SWIG_FromInt((int)result); | |
26580 | return resultobj; | |
26581 | fail: | |
26582 | return NULL; | |
26583 | } | |
26584 | ||
26585 | ||
26586 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26587 | PyObject *resultobj; | |
26588 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26589 | PyObject * obj0 = 0 ; | |
26590 | char *kwnames[] = { | |
26591 | (char *) "self", NULL | |
26592 | }; | |
26593 | ||
26594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26597 | { | |
26598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26599 | (arg1)->base_OnLeave(); | |
26600 | ||
26601 | wxPyEndAllowThreads(__tstate); | |
26602 | if (PyErr_Occurred()) SWIG_fail; | |
26603 | } | |
26604 | Py_INCREF(Py_None); resultobj = Py_None; | |
26605 | return resultobj; | |
26606 | fail: | |
26607 | return NULL; | |
26608 | } | |
26609 | ||
26610 | ||
26611 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26612 | PyObject *resultobj; | |
26613 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26614 | int arg2 ; | |
26615 | int arg3 ; | |
26616 | bool result; | |
26617 | PyObject * obj0 = 0 ; | |
26618 | PyObject * obj1 = 0 ; | |
26619 | PyObject * obj2 = 0 ; | |
26620 | char *kwnames[] = { | |
26621 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26622 | }; | |
26623 | ||
26624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26627 | arg2 = (int) SWIG_AsInt(obj1); | |
26628 | if (PyErr_Occurred()) SWIG_fail; | |
26629 | arg3 = (int) SWIG_AsInt(obj2); | |
26630 | if (PyErr_Occurred()) SWIG_fail; | |
26631 | { | |
26632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26633 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26634 | ||
26635 | wxPyEndAllowThreads(__tstate); | |
26636 | if (PyErr_Occurred()) SWIG_fail; | |
26637 | } | |
26638 | { | |
26639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26640 | } | |
26641 | return resultobj; | |
26642 | fail: | |
26643 | return NULL; | |
26644 | } | |
26645 | ||
26646 | ||
26647 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26648 | PyObject *resultobj; | |
26649 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26650 | int arg2 ; | |
26651 | int arg3 ; | |
26652 | int arg4 ; | |
26653 | int result; | |
26654 | PyObject * obj0 = 0 ; | |
26655 | PyObject * obj1 = 0 ; | |
26656 | PyObject * obj2 = 0 ; | |
26657 | PyObject * obj3 = 0 ; | |
26658 | char *kwnames[] = { | |
26659 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26660 | }; | |
26661 | ||
26662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26665 | arg2 = (int) SWIG_AsInt(obj1); | |
26666 | if (PyErr_Occurred()) SWIG_fail; | |
26667 | arg3 = (int) SWIG_AsInt(obj2); | |
26668 | if (PyErr_Occurred()) SWIG_fail; | |
26669 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26670 | if (PyErr_Occurred()) SWIG_fail; | |
26671 | { | |
26672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26673 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26674 | ||
26675 | wxPyEndAllowThreads(__tstate); | |
26676 | if (PyErr_Occurred()) SWIG_fail; | |
26677 | } | |
26678 | resultobj = SWIG_FromInt((int)result); | |
26679 | return resultobj; | |
26680 | fail: | |
26681 | return NULL; | |
26682 | } | |
26683 | ||
26684 | ||
26685 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26686 | PyObject *obj; | |
26687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26688 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26689 | Py_INCREF(obj); | |
26690 | return Py_BuildValue((char *)""); | |
26691 | } | |
26692 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26693 | PyObject *resultobj; | |
26694 | wxClipboard *result; | |
26695 | char *kwnames[] = { | |
26696 | NULL | |
26697 | }; | |
26698 | ||
26699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26700 | { | |
26701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26702 | result = (wxClipboard *)new wxClipboard(); | |
26703 | ||
26704 | wxPyEndAllowThreads(__tstate); | |
26705 | if (PyErr_Occurred()) SWIG_fail; | |
26706 | } | |
26707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
26708 | return resultobj; | |
26709 | fail: | |
26710 | return NULL; | |
26711 | } | |
26712 | ||
26713 | ||
26714 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26715 | PyObject *resultobj; | |
26716 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26717 | PyObject * obj0 = 0 ; | |
26718 | char *kwnames[] = { | |
26719 | (char *) "self", NULL | |
26720 | }; | |
26721 | ||
26722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
26723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26725 | { | |
26726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26727 | delete arg1; | |
26728 | ||
26729 | wxPyEndAllowThreads(__tstate); | |
26730 | if (PyErr_Occurred()) SWIG_fail; | |
26731 | } | |
26732 | Py_INCREF(Py_None); resultobj = Py_None; | |
26733 | return resultobj; | |
26734 | fail: | |
26735 | return NULL; | |
26736 | } | |
26737 | ||
26738 | ||
26739 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26740 | PyObject *resultobj; | |
26741 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26742 | bool result; | |
26743 | PyObject * obj0 = 0 ; | |
26744 | char *kwnames[] = { | |
26745 | (char *) "self", NULL | |
26746 | }; | |
26747 | ||
26748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
26749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26751 | { | |
26752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26753 | result = (bool)(arg1)->Open(); | |
26754 | ||
26755 | wxPyEndAllowThreads(__tstate); | |
26756 | if (PyErr_Occurred()) SWIG_fail; | |
26757 | } | |
26758 | { | |
26759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26760 | } | |
26761 | return resultobj; | |
26762 | fail: | |
26763 | return NULL; | |
26764 | } | |
26765 | ||
26766 | ||
26767 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26768 | PyObject *resultobj; | |
26769 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26770 | PyObject * obj0 = 0 ; | |
26771 | char *kwnames[] = { | |
26772 | (char *) "self", NULL | |
26773 | }; | |
26774 | ||
26775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
26776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26778 | { | |
26779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26780 | (arg1)->Close(); | |
26781 | ||
26782 | wxPyEndAllowThreads(__tstate); | |
26783 | if (PyErr_Occurred()) SWIG_fail; | |
26784 | } | |
26785 | Py_INCREF(Py_None); resultobj = Py_None; | |
26786 | return resultobj; | |
26787 | fail: | |
26788 | return NULL; | |
26789 | } | |
26790 | ||
26791 | ||
26792 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26793 | PyObject *resultobj; | |
26794 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26795 | bool result; | |
26796 | PyObject * obj0 = 0 ; | |
26797 | char *kwnames[] = { | |
26798 | (char *) "self", NULL | |
26799 | }; | |
26800 | ||
26801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
26802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26804 | { | |
26805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26806 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26807 | ||
26808 | wxPyEndAllowThreads(__tstate); | |
26809 | if (PyErr_Occurred()) SWIG_fail; | |
26810 | } | |
26811 | { | |
26812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26813 | } | |
26814 | return resultobj; | |
26815 | fail: | |
26816 | return NULL; | |
26817 | } | |
26818 | ||
26819 | ||
26820 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26821 | PyObject *resultobj; | |
26822 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26823 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26824 | bool result; | |
26825 | PyObject * obj0 = 0 ; | |
26826 | PyObject * obj1 = 0 ; | |
26827 | char *kwnames[] = { | |
26828 | (char *) "self",(char *) "data", NULL | |
26829 | }; | |
26830 | ||
26831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
26832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26834 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26835 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26836 | { | |
26837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26838 | result = (bool)(arg1)->AddData(arg2); | |
26839 | ||
26840 | wxPyEndAllowThreads(__tstate); | |
26841 | if (PyErr_Occurred()) SWIG_fail; | |
26842 | } | |
26843 | { | |
26844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26845 | } | |
26846 | return resultobj; | |
26847 | fail: | |
26848 | return NULL; | |
26849 | } | |
26850 | ||
26851 | ||
26852 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26853 | PyObject *resultobj; | |
26854 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26855 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26856 | bool result; | |
26857 | PyObject * obj0 = 0 ; | |
26858 | PyObject * obj1 = 0 ; | |
26859 | char *kwnames[] = { | |
26860 | (char *) "self",(char *) "data", NULL | |
26861 | }; | |
26862 | ||
26863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26866 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26867 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26868 | { | |
26869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26870 | result = (bool)(arg1)->SetData(arg2); | |
26871 | ||
26872 | wxPyEndAllowThreads(__tstate); | |
26873 | if (PyErr_Occurred()) SWIG_fail; | |
26874 | } | |
26875 | { | |
26876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26877 | } | |
26878 | return resultobj; | |
26879 | fail: | |
26880 | return NULL; | |
26881 | } | |
26882 | ||
26883 | ||
26884 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26885 | PyObject *resultobj; | |
26886 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26887 | wxDataFormat *arg2 = 0 ; | |
26888 | bool result; | |
26889 | PyObject * obj0 = 0 ; | |
26890 | PyObject * obj1 = 0 ; | |
26891 | char *kwnames[] = { | |
26892 | (char *) "self",(char *) "format", NULL | |
26893 | }; | |
26894 | ||
26895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
26896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26898 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
26899 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26900 | SWIG_fail; | |
26901 | if (arg2 == NULL) { | |
26902 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26903 | SWIG_fail; | |
26904 | } | |
26905 | { | |
26906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26907 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26908 | ||
26909 | wxPyEndAllowThreads(__tstate); | |
26910 | if (PyErr_Occurred()) SWIG_fail; | |
26911 | } | |
26912 | { | |
26913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26914 | } | |
26915 | return resultobj; | |
26916 | fail: | |
26917 | return NULL; | |
26918 | } | |
26919 | ||
26920 | ||
26921 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26922 | PyObject *resultobj; | |
26923 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26924 | wxDataObject *arg2 = 0 ; | |
26925 | bool result; | |
26926 | PyObject * obj0 = 0 ; | |
26927 | PyObject * obj1 = 0 ; | |
26928 | char *kwnames[] = { | |
26929 | (char *) "self",(char *) "data", NULL | |
26930 | }; | |
26931 | ||
26932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
26933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26935 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26936 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26937 | SWIG_fail; | |
26938 | if (arg2 == NULL) { | |
26939 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26940 | SWIG_fail; | |
26941 | } | |
26942 | { | |
26943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26944 | result = (bool)(arg1)->GetData(*arg2); | |
26945 | ||
26946 | wxPyEndAllowThreads(__tstate); | |
26947 | if (PyErr_Occurred()) SWIG_fail; | |
26948 | } | |
26949 | { | |
26950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26951 | } | |
26952 | return resultobj; | |
26953 | fail: | |
26954 | return NULL; | |
26955 | } | |
26956 | ||
26957 | ||
26958 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26959 | PyObject *resultobj; | |
26960 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26961 | PyObject * obj0 = 0 ; | |
26962 | char *kwnames[] = { | |
26963 | (char *) "self", NULL | |
26964 | }; | |
26965 | ||
26966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
26967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26969 | { | |
26970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26971 | (arg1)->Clear(); | |
26972 | ||
26973 | wxPyEndAllowThreads(__tstate); | |
26974 | if (PyErr_Occurred()) SWIG_fail; | |
26975 | } | |
26976 | Py_INCREF(Py_None); resultobj = Py_None; | |
26977 | return resultobj; | |
26978 | fail: | |
26979 | return NULL; | |
26980 | } | |
26981 | ||
26982 | ||
26983 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26984 | PyObject *resultobj; | |
26985 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26986 | bool result; | |
26987 | PyObject * obj0 = 0 ; | |
26988 | char *kwnames[] = { | |
26989 | (char *) "self", NULL | |
26990 | }; | |
26991 | ||
26992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
26993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26995 | { | |
26996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26997 | result = (bool)(arg1)->Flush(); | |
26998 | ||
26999 | wxPyEndAllowThreads(__tstate); | |
27000 | if (PyErr_Occurred()) SWIG_fail; | |
27001 | } | |
27002 | { | |
27003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27004 | } | |
27005 | return resultobj; | |
27006 | fail: | |
27007 | return NULL; | |
27008 | } | |
27009 | ||
27010 | ||
27011 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27012 | PyObject *resultobj; | |
27013 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27014 | bool arg2 = (bool) True ; | |
27015 | PyObject * obj0 = 0 ; | |
27016 | PyObject * obj1 = 0 ; | |
27017 | char *kwnames[] = { | |
27018 | (char *) "self",(char *) "primary", NULL | |
27019 | }; | |
27020 | ||
27021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27024 | if (obj1) { | |
27025 | arg2 = (bool) SWIG_AsBool(obj1); | |
27026 | if (PyErr_Occurred()) SWIG_fail; | |
27027 | } | |
27028 | { | |
27029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27030 | (arg1)->UsePrimarySelection(arg2); | |
27031 | ||
27032 | wxPyEndAllowThreads(__tstate); | |
27033 | if (PyErr_Occurred()) SWIG_fail; | |
27034 | } | |
27035 | Py_INCREF(Py_None); resultobj = Py_None; | |
27036 | return resultobj; | |
27037 | fail: | |
27038 | return NULL; | |
27039 | } | |
27040 | ||
27041 | ||
27042 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
27043 | PyObject *obj; | |
27044 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27045 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27046 | Py_INCREF(obj); | |
27047 | return Py_BuildValue((char *)""); | |
27048 | } | |
27049 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
27050 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
27051 | return 1; | |
27052 | } | |
27053 | ||
27054 | ||
27055 | static PyObject *_wrap_TheClipboard_get() { | |
27056 | PyObject *pyobj; | |
27057 | ||
27058 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); | |
27059 | return pyobj; | |
27060 | } | |
27061 | ||
27062 | ||
27063 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27064 | PyObject *resultobj; | |
27065 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27066 | wxClipboardLocker *result; | |
27067 | PyObject * obj0 = 0 ; | |
27068 | char *kwnames[] = { | |
27069 | (char *) "clipboard", NULL | |
27070 | }; | |
27071 | ||
27072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27073 | if (obj0) { | |
27074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27076 | } | |
27077 | { | |
27078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27079 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27080 | ||
27081 | wxPyEndAllowThreads(__tstate); | |
27082 | if (PyErr_Occurred()) SWIG_fail; | |
27083 | } | |
27084 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27085 | return resultobj; | |
27086 | fail: | |
27087 | return NULL; | |
27088 | } | |
27089 | ||
27090 | ||
27091 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27092 | PyObject *resultobj; | |
27093 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27094 | PyObject * obj0 = 0 ; | |
27095 | char *kwnames[] = { | |
27096 | (char *) "self", NULL | |
27097 | }; | |
27098 | ||
27099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27102 | { | |
27103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27104 | delete arg1; | |
27105 | ||
27106 | wxPyEndAllowThreads(__tstate); | |
27107 | if (PyErr_Occurred()) SWIG_fail; | |
27108 | } | |
27109 | Py_INCREF(Py_None); resultobj = Py_None; | |
27110 | return resultobj; | |
27111 | fail: | |
27112 | return NULL; | |
27113 | } | |
27114 | ||
27115 | ||
27116 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27117 | PyObject *resultobj; | |
27118 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27119 | bool result; | |
27120 | PyObject * obj0 = 0 ; | |
27121 | char *kwnames[] = { | |
27122 | (char *) "self", NULL | |
27123 | }; | |
27124 | ||
27125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27128 | { | |
27129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27130 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27131 | ||
27132 | wxPyEndAllowThreads(__tstate); | |
27133 | if (PyErr_Occurred()) SWIG_fail; | |
27134 | } | |
27135 | { | |
27136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27137 | } | |
27138 | return resultobj; | |
27139 | fail: | |
27140 | return NULL; | |
27141 | } | |
27142 | ||
27143 | ||
27144 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27145 | PyObject *obj; | |
27146 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27147 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27148 | Py_INCREF(obj); | |
27149 | return Py_BuildValue((char *)""); | |
27150 | } | |
27151 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27152 | PyObject *resultobj; | |
27153 | int arg1 = (int) 0 ; | |
27154 | int arg2 = (int) 0 ; | |
27155 | int arg3 = (int) 0 ; | |
27156 | int arg4 = (int) 0 ; | |
27157 | wxVideoMode *result; | |
27158 | PyObject * obj0 = 0 ; | |
27159 | PyObject * obj1 = 0 ; | |
27160 | PyObject * obj2 = 0 ; | |
27161 | PyObject * obj3 = 0 ; | |
27162 | char *kwnames[] = { | |
27163 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27164 | }; | |
27165 | ||
27166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27167 | if (obj0) { | |
27168 | arg1 = (int) SWIG_AsInt(obj0); | |
27169 | if (PyErr_Occurred()) SWIG_fail; | |
27170 | } | |
27171 | if (obj1) { | |
27172 | arg2 = (int) SWIG_AsInt(obj1); | |
27173 | if (PyErr_Occurred()) SWIG_fail; | |
27174 | } | |
27175 | if (obj2) { | |
27176 | arg3 = (int) SWIG_AsInt(obj2); | |
27177 | if (PyErr_Occurred()) SWIG_fail; | |
27178 | } | |
27179 | if (obj3) { | |
27180 | arg4 = (int) SWIG_AsInt(obj3); | |
27181 | if (PyErr_Occurred()) SWIG_fail; | |
27182 | } | |
27183 | { | |
27184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27185 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27186 | ||
27187 | wxPyEndAllowThreads(__tstate); | |
27188 | if (PyErr_Occurred()) SWIG_fail; | |
27189 | } | |
27190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27191 | return resultobj; | |
27192 | fail: | |
27193 | return NULL; | |
27194 | } | |
27195 | ||
27196 | ||
27197 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27198 | PyObject *resultobj; | |
27199 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27200 | PyObject * obj0 = 0 ; | |
27201 | char *kwnames[] = { | |
27202 | (char *) "self", NULL | |
27203 | }; | |
27204 | ||
27205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27208 | { | |
27209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27210 | delete arg1; | |
27211 | ||
27212 | wxPyEndAllowThreads(__tstate); | |
27213 | if (PyErr_Occurred()) SWIG_fail; | |
27214 | } | |
27215 | Py_INCREF(Py_None); resultobj = Py_None; | |
27216 | return resultobj; | |
27217 | fail: | |
27218 | return NULL; | |
27219 | } | |
27220 | ||
27221 | ||
27222 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27223 | PyObject *resultobj; | |
27224 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27225 | wxVideoMode *arg2 = 0 ; | |
27226 | bool result; | |
27227 | PyObject * obj0 = 0 ; | |
27228 | PyObject * obj1 = 0 ; | |
27229 | char *kwnames[] = { | |
27230 | (char *) "self",(char *) "other", NULL | |
27231 | }; | |
27232 | ||
27233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27236 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27237 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27238 | SWIG_fail; | |
27239 | if (arg2 == NULL) { | |
27240 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27241 | SWIG_fail; | |
27242 | } | |
27243 | { | |
27244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27245 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27246 | ||
27247 | wxPyEndAllowThreads(__tstate); | |
27248 | if (PyErr_Occurred()) SWIG_fail; | |
27249 | } | |
27250 | { | |
27251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27252 | } | |
27253 | return resultobj; | |
27254 | fail: | |
27255 | return NULL; | |
27256 | } | |
27257 | ||
27258 | ||
27259 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27260 | PyObject *resultobj; | |
27261 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27262 | int result; | |
27263 | PyObject * obj0 = 0 ; | |
27264 | char *kwnames[] = { | |
27265 | (char *) "self", NULL | |
27266 | }; | |
27267 | ||
27268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27271 | { | |
27272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27273 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27274 | ||
27275 | wxPyEndAllowThreads(__tstate); | |
27276 | if (PyErr_Occurred()) SWIG_fail; | |
27277 | } | |
27278 | resultobj = SWIG_FromInt((int)result); | |
27279 | return resultobj; | |
27280 | fail: | |
27281 | return NULL; | |
27282 | } | |
27283 | ||
27284 | ||
27285 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27286 | PyObject *resultobj; | |
27287 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27288 | int result; | |
27289 | PyObject * obj0 = 0 ; | |
27290 | char *kwnames[] = { | |
27291 | (char *) "self", NULL | |
27292 | }; | |
27293 | ||
27294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27297 | { | |
27298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27299 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27300 | ||
27301 | wxPyEndAllowThreads(__tstate); | |
27302 | if (PyErr_Occurred()) SWIG_fail; | |
27303 | } | |
27304 | resultobj = SWIG_FromInt((int)result); | |
27305 | return resultobj; | |
27306 | fail: | |
27307 | return NULL; | |
27308 | } | |
27309 | ||
27310 | ||
27311 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27312 | PyObject *resultobj; | |
27313 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27314 | int result; | |
27315 | PyObject * obj0 = 0 ; | |
27316 | char *kwnames[] = { | |
27317 | (char *) "self", NULL | |
27318 | }; | |
27319 | ||
27320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27323 | { | |
27324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27325 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27326 | ||
27327 | wxPyEndAllowThreads(__tstate); | |
27328 | if (PyErr_Occurred()) SWIG_fail; | |
27329 | } | |
27330 | resultobj = SWIG_FromInt((int)result); | |
27331 | return resultobj; | |
27332 | fail: | |
27333 | return NULL; | |
27334 | } | |
27335 | ||
27336 | ||
27337 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27338 | PyObject *resultobj; | |
27339 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27340 | bool result; | |
27341 | PyObject * obj0 = 0 ; | |
27342 | char *kwnames[] = { | |
27343 | (char *) "self", NULL | |
27344 | }; | |
27345 | ||
27346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27349 | { | |
27350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27351 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27352 | ||
27353 | wxPyEndAllowThreads(__tstate); | |
27354 | if (PyErr_Occurred()) SWIG_fail; | |
27355 | } | |
27356 | { | |
27357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27358 | } | |
27359 | return resultobj; | |
27360 | fail: | |
27361 | return NULL; | |
27362 | } | |
27363 | ||
27364 | ||
27365 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27366 | PyObject *resultobj; | |
27367 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27368 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27369 | bool result; | |
27370 | PyObject * obj0 = 0 ; | |
27371 | PyObject * obj1 = 0 ; | |
27372 | char *kwnames[] = { | |
27373 | (char *) "self",(char *) "other", NULL | |
27374 | }; | |
27375 | ||
27376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27379 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27381 | { | |
27382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27383 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27384 | ||
27385 | wxPyEndAllowThreads(__tstate); | |
27386 | if (PyErr_Occurred()) SWIG_fail; | |
27387 | } | |
27388 | { | |
27389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27390 | } | |
27391 | return resultobj; | |
27392 | fail: | |
27393 | return NULL; | |
27394 | } | |
27395 | ||
27396 | ||
27397 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27398 | PyObject *resultobj; | |
27399 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27400 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27401 | bool result; | |
27402 | PyObject * obj0 = 0 ; | |
27403 | PyObject * obj1 = 0 ; | |
27404 | char *kwnames[] = { | |
27405 | (char *) "self",(char *) "other", NULL | |
27406 | }; | |
27407 | ||
27408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27413 | { | |
27414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27415 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27416 | ||
27417 | wxPyEndAllowThreads(__tstate); | |
27418 | if (PyErr_Occurred()) SWIG_fail; | |
27419 | } | |
27420 | { | |
27421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27422 | } | |
27423 | return resultobj; | |
27424 | fail: | |
27425 | return NULL; | |
27426 | } | |
27427 | ||
27428 | ||
27429 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27430 | PyObject *resultobj; | |
27431 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27432 | int arg2 ; | |
27433 | PyObject * obj0 = 0 ; | |
27434 | PyObject * obj1 = 0 ; | |
27435 | char *kwnames[] = { | |
27436 | (char *) "self",(char *) "w", NULL | |
27437 | }; | |
27438 | ||
27439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27442 | arg2 = (int) SWIG_AsInt(obj1); | |
27443 | if (PyErr_Occurred()) SWIG_fail; | |
27444 | if (arg1) (arg1)->w = arg2; | |
27445 | ||
27446 | Py_INCREF(Py_None); resultobj = Py_None; | |
27447 | return resultobj; | |
27448 | fail: | |
27449 | return NULL; | |
27450 | } | |
27451 | ||
27452 | ||
27453 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27454 | PyObject *resultobj; | |
27455 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27456 | int result; | |
27457 | PyObject * obj0 = 0 ; | |
27458 | char *kwnames[] = { | |
27459 | (char *) "self", NULL | |
27460 | }; | |
27461 | ||
27462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27465 | result = (int) ((arg1)->w); | |
27466 | ||
27467 | resultobj = SWIG_FromInt((int)result); | |
27468 | return resultobj; | |
27469 | fail: | |
27470 | return NULL; | |
27471 | } | |
27472 | ||
27473 | ||
27474 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27475 | PyObject *resultobj; | |
27476 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27477 | int arg2 ; | |
27478 | PyObject * obj0 = 0 ; | |
27479 | PyObject * obj1 = 0 ; | |
27480 | char *kwnames[] = { | |
27481 | (char *) "self",(char *) "h", NULL | |
27482 | }; | |
27483 | ||
27484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27487 | arg2 = (int) SWIG_AsInt(obj1); | |
27488 | if (PyErr_Occurred()) SWIG_fail; | |
27489 | if (arg1) (arg1)->h = arg2; | |
27490 | ||
27491 | Py_INCREF(Py_None); resultobj = Py_None; | |
27492 | return resultobj; | |
27493 | fail: | |
27494 | return NULL; | |
27495 | } | |
27496 | ||
27497 | ||
27498 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27499 | PyObject *resultobj; | |
27500 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27501 | int result; | |
27502 | PyObject * obj0 = 0 ; | |
27503 | char *kwnames[] = { | |
27504 | (char *) "self", NULL | |
27505 | }; | |
27506 | ||
27507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27510 | result = (int) ((arg1)->h); | |
27511 | ||
27512 | resultobj = SWIG_FromInt((int)result); | |
27513 | return resultobj; | |
27514 | fail: | |
27515 | return NULL; | |
27516 | } | |
27517 | ||
27518 | ||
27519 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27520 | PyObject *resultobj; | |
27521 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27522 | int arg2 ; | |
27523 | PyObject * obj0 = 0 ; | |
27524 | PyObject * obj1 = 0 ; | |
27525 | char *kwnames[] = { | |
27526 | (char *) "self",(char *) "bpp", NULL | |
27527 | }; | |
27528 | ||
27529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27532 | arg2 = (int) SWIG_AsInt(obj1); | |
27533 | if (PyErr_Occurred()) SWIG_fail; | |
27534 | if (arg1) (arg1)->bpp = arg2; | |
27535 | ||
27536 | Py_INCREF(Py_None); resultobj = Py_None; | |
27537 | return resultobj; | |
27538 | fail: | |
27539 | return NULL; | |
27540 | } | |
27541 | ||
27542 | ||
27543 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27544 | PyObject *resultobj; | |
27545 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27546 | int result; | |
27547 | PyObject * obj0 = 0 ; | |
27548 | char *kwnames[] = { | |
27549 | (char *) "self", NULL | |
27550 | }; | |
27551 | ||
27552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27555 | result = (int) ((arg1)->bpp); | |
27556 | ||
27557 | resultobj = SWIG_FromInt((int)result); | |
27558 | return resultobj; | |
27559 | fail: | |
27560 | return NULL; | |
27561 | } | |
27562 | ||
27563 | ||
27564 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27565 | PyObject *resultobj; | |
27566 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27567 | int arg2 ; | |
27568 | PyObject * obj0 = 0 ; | |
27569 | PyObject * obj1 = 0 ; | |
27570 | char *kwnames[] = { | |
27571 | (char *) "self",(char *) "refresh", NULL | |
27572 | }; | |
27573 | ||
27574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27577 | arg2 = (int) SWIG_AsInt(obj1); | |
27578 | if (PyErr_Occurred()) SWIG_fail; | |
27579 | if (arg1) (arg1)->refresh = arg2; | |
27580 | ||
27581 | Py_INCREF(Py_None); resultobj = Py_None; | |
27582 | return resultobj; | |
27583 | fail: | |
27584 | return NULL; | |
27585 | } | |
27586 | ||
27587 | ||
27588 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27589 | PyObject *resultobj; | |
27590 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27591 | int result; | |
27592 | PyObject * obj0 = 0 ; | |
27593 | char *kwnames[] = { | |
27594 | (char *) "self", NULL | |
27595 | }; | |
27596 | ||
27597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27600 | result = (int) ((arg1)->refresh); | |
27601 | ||
27602 | resultobj = SWIG_FromInt((int)result); | |
27603 | return resultobj; | |
27604 | fail: | |
27605 | return NULL; | |
27606 | } | |
27607 | ||
27608 | ||
27609 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27610 | PyObject *obj; | |
27611 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27612 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27613 | Py_INCREF(obj); | |
27614 | return Py_BuildValue((char *)""); | |
27615 | } | |
27616 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27617 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27618 | return 1; | |
27619 | } | |
27620 | ||
27621 | ||
27622 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27623 | PyObject *pyobj; | |
27624 | ||
27625 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27626 | return pyobj; | |
27627 | } | |
27628 | ||
27629 | ||
27630 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27631 | PyObject *resultobj; | |
27632 | size_t arg1 = (size_t) 0 ; | |
27633 | wxDisplay *result; | |
27634 | PyObject * obj0 = 0 ; | |
27635 | char *kwnames[] = { | |
27636 | (char *) "index", NULL | |
27637 | }; | |
27638 | ||
27639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27640 | if (obj0) { | |
27641 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27642 | if (PyErr_Occurred()) SWIG_fail; | |
27643 | } | |
27644 | { | |
27645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27646 | result = (wxDisplay *)new wxDisplay(arg1); | |
27647 | ||
27648 | wxPyEndAllowThreads(__tstate); | |
27649 | if (PyErr_Occurred()) SWIG_fail; | |
27650 | } | |
27651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27652 | return resultobj; | |
27653 | fail: | |
27654 | return NULL; | |
27655 | } | |
27656 | ||
27657 | ||
27658 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27659 | PyObject *resultobj; | |
27660 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27661 | PyObject * obj0 = 0 ; | |
27662 | char *kwnames[] = { | |
27663 | (char *) "self", NULL | |
27664 | }; | |
27665 | ||
27666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27669 | { | |
27670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27671 | delete arg1; | |
27672 | ||
27673 | wxPyEndAllowThreads(__tstate); | |
27674 | if (PyErr_Occurred()) SWIG_fail; | |
27675 | } | |
27676 | Py_INCREF(Py_None); resultobj = Py_None; | |
27677 | return resultobj; | |
27678 | fail: | |
27679 | return NULL; | |
27680 | } | |
27681 | ||
27682 | ||
27683 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27684 | PyObject *resultobj; | |
27685 | size_t result; | |
27686 | char *kwnames[] = { | |
27687 | NULL | |
27688 | }; | |
27689 | ||
27690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27691 | { | |
27692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27693 | result = (size_t)wxDisplay::GetCount(); | |
27694 | ||
27695 | wxPyEndAllowThreads(__tstate); | |
27696 | if (PyErr_Occurred()) SWIG_fail; | |
27697 | } | |
27698 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27699 | return resultobj; | |
27700 | fail: | |
27701 | return NULL; | |
27702 | } | |
27703 | ||
27704 | ||
27705 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27706 | PyObject *resultobj; | |
27707 | wxPoint *arg1 = 0 ; | |
27708 | int result; | |
27709 | wxPoint temp1 ; | |
27710 | PyObject * obj0 = 0 ; | |
27711 | char *kwnames[] = { | |
27712 | (char *) "pt", NULL | |
27713 | }; | |
27714 | ||
27715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27716 | { | |
27717 | arg1 = &temp1; | |
27718 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27719 | } | |
27720 | { | |
27721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27722 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27723 | ||
27724 | wxPyEndAllowThreads(__tstate); | |
27725 | if (PyErr_Occurred()) SWIG_fail; | |
27726 | } | |
27727 | resultobj = SWIG_FromInt((int)result); | |
27728 | return resultobj; | |
27729 | fail: | |
27730 | return NULL; | |
27731 | } | |
27732 | ||
27733 | ||
27734 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27735 | PyObject *resultobj; | |
27736 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27737 | int result; | |
27738 | PyObject * obj0 = 0 ; | |
27739 | char *kwnames[] = { | |
27740 | (char *) "window", NULL | |
27741 | }; | |
27742 | ||
27743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27746 | { | |
27747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27748 | result = (int)Display_GetFromWindow(arg1); | |
27749 | ||
27750 | wxPyEndAllowThreads(__tstate); | |
27751 | if (PyErr_Occurred()) SWIG_fail; | |
27752 | } | |
27753 | resultobj = SWIG_FromInt((int)result); | |
27754 | return resultobj; | |
27755 | fail: | |
27756 | return NULL; | |
27757 | } | |
27758 | ||
27759 | ||
27760 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27761 | PyObject *resultobj; | |
27762 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27763 | bool result; | |
27764 | PyObject * obj0 = 0 ; | |
27765 | char *kwnames[] = { | |
27766 | (char *) "self", NULL | |
27767 | }; | |
27768 | ||
27769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27772 | { | |
27773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27774 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27775 | ||
27776 | wxPyEndAllowThreads(__tstate); | |
27777 | if (PyErr_Occurred()) SWIG_fail; | |
27778 | } | |
27779 | { | |
27780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27781 | } | |
27782 | return resultobj; | |
27783 | fail: | |
27784 | return NULL; | |
27785 | } | |
27786 | ||
27787 | ||
27788 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27789 | PyObject *resultobj; | |
27790 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27791 | wxRect result; | |
27792 | PyObject * obj0 = 0 ; | |
27793 | char *kwnames[] = { | |
27794 | (char *) "self", NULL | |
27795 | }; | |
27796 | ||
27797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27800 | { | |
27801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27802 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27803 | ||
27804 | wxPyEndAllowThreads(__tstate); | |
27805 | if (PyErr_Occurred()) SWIG_fail; | |
27806 | } | |
27807 | { | |
27808 | wxRect * resultptr; | |
27809 | resultptr = new wxRect((wxRect &) result); | |
27810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27811 | } | |
27812 | return resultobj; | |
27813 | fail: | |
27814 | return NULL; | |
27815 | } | |
27816 | ||
27817 | ||
27818 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27819 | PyObject *resultobj; | |
27820 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27821 | wxString result; | |
27822 | PyObject * obj0 = 0 ; | |
27823 | char *kwnames[] = { | |
27824 | (char *) "self", NULL | |
27825 | }; | |
27826 | ||
27827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
27828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27830 | { | |
27831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27832 | result = ((wxDisplay const *)arg1)->GetName(); | |
27833 | ||
27834 | wxPyEndAllowThreads(__tstate); | |
27835 | if (PyErr_Occurred()) SWIG_fail; | |
27836 | } | |
27837 | { | |
27838 | #if wxUSE_UNICODE | |
27839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27840 | #else | |
27841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27842 | #endif | |
27843 | } | |
27844 | return resultobj; | |
27845 | fail: | |
27846 | return NULL; | |
27847 | } | |
27848 | ||
27849 | ||
27850 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27851 | PyObject *resultobj; | |
27852 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27853 | bool result; | |
27854 | PyObject * obj0 = 0 ; | |
27855 | char *kwnames[] = { | |
27856 | (char *) "self", NULL | |
27857 | }; | |
27858 | ||
27859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
27860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27862 | { | |
27863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27864 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
27865 | ||
27866 | wxPyEndAllowThreads(__tstate); | |
27867 | if (PyErr_Occurred()) SWIG_fail; | |
27868 | } | |
27869 | { | |
27870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27871 | } | |
27872 | return resultobj; | |
27873 | fail: | |
27874 | return NULL; | |
27875 | } | |
27876 | ||
27877 | ||
27878 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27879 | PyObject *resultobj; | |
27880 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27881 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27882 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27883 | PyObject *result; | |
27884 | PyObject * obj0 = 0 ; | |
27885 | PyObject * obj1 = 0 ; | |
27886 | char *kwnames[] = { | |
27887 | (char *) "self",(char *) "mode", NULL | |
27888 | }; | |
27889 | ||
27890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
27891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27893 | if (obj1) { | |
27894 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27895 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27896 | SWIG_fail; | |
27897 | if (arg2 == NULL) { | |
27898 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27899 | SWIG_fail; | |
27900 | } | |
27901 | } | |
27902 | { | |
27903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27904 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
27905 | ||
27906 | wxPyEndAllowThreads(__tstate); | |
27907 | if (PyErr_Occurred()) SWIG_fail; | |
27908 | } | |
27909 | resultobj = result; | |
27910 | return resultobj; | |
27911 | fail: | |
27912 | return NULL; | |
27913 | } | |
27914 | ||
27915 | ||
27916 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27917 | PyObject *resultobj; | |
27918 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27919 | wxVideoMode result; | |
27920 | PyObject * obj0 = 0 ; | |
27921 | char *kwnames[] = { | |
27922 | (char *) "self", NULL | |
27923 | }; | |
27924 | ||
27925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
27926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27928 | { | |
27929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27930 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
27931 | ||
27932 | wxPyEndAllowThreads(__tstate); | |
27933 | if (PyErr_Occurred()) SWIG_fail; | |
27934 | } | |
27935 | { | |
27936 | wxVideoMode * resultptr; | |
27937 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
27938 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
27939 | } | |
27940 | return resultobj; | |
27941 | fail: | |
27942 | return NULL; | |
27943 | } | |
27944 | ||
27945 | ||
27946 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27947 | PyObject *resultobj; | |
27948 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27949 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27950 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27951 | bool result; | |
27952 | PyObject * obj0 = 0 ; | |
27953 | PyObject * obj1 = 0 ; | |
27954 | char *kwnames[] = { | |
27955 | (char *) "self",(char *) "mode", NULL | |
27956 | }; | |
27957 | ||
27958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
27959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27961 | if (obj1) { | |
27962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27963 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27964 | SWIG_fail; | |
27965 | if (arg2 == NULL) { | |
27966 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27967 | SWIG_fail; | |
27968 | } | |
27969 | } | |
27970 | { | |
27971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27972 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
27973 | ||
27974 | wxPyEndAllowThreads(__tstate); | |
27975 | if (PyErr_Occurred()) SWIG_fail; | |
27976 | } | |
27977 | { | |
27978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27979 | } | |
27980 | return resultobj; | |
27981 | fail: | |
27982 | return NULL; | |
27983 | } | |
27984 | ||
27985 | ||
27986 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27987 | PyObject *resultobj; | |
27988 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27989 | PyObject * obj0 = 0 ; | |
27990 | char *kwnames[] = { | |
27991 | (char *) "self", NULL | |
27992 | }; | |
27993 | ||
27994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
27995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27997 | { | |
27998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27999 | (arg1)->ResetMode(); | |
28000 | ||
28001 | wxPyEndAllowThreads(__tstate); | |
28002 | if (PyErr_Occurred()) SWIG_fail; | |
28003 | } | |
28004 | Py_INCREF(Py_None); resultobj = Py_None; | |
28005 | return resultobj; | |
28006 | fail: | |
28007 | return NULL; | |
28008 | } | |
28009 | ||
28010 | ||
28011 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
28012 | PyObject *obj; | |
28013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28014 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28015 | Py_INCREF(obj); | |
28016 | return Py_BuildValue((char *)""); | |
28017 | } | |
28018 | static PyMethodDef SwigMethods[] = { | |
28019 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
28020 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28021 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
28022 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
28023 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28024 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28025 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
28026 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
28027 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
28028 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28029 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
28030 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28031 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
28032 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
28033 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
28034 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
28035 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
28036 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
28037 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28038 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28039 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28040 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28041 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28042 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28043 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28044 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28045 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28046 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28047 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28048 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
28049 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
28050 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
28051 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28052 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28053 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28054 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28055 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28056 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28057 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28058 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28059 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28060 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28061 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28062 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28063 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28064 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28065 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28066 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28067 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28068 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28069 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28070 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28071 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28072 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28073 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28074 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28075 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28076 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28077 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28078 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28079 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28080 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28081 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28082 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28083 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28084 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28085 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
28086 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, | |
28087 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
28088 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28089 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28090 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28091 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28092 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28093 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28094 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28095 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28096 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28097 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28098 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28099 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28100 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28101 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28102 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28103 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28104 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
28105 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28106 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
28107 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28108 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
28109 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28110 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28111 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28112 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28113 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28114 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28115 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28116 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28117 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28118 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28119 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28120 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28121 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28122 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28123 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28124 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28125 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28126 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28127 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28128 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28129 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28130 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28131 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28132 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28133 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28134 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28135 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28136 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28137 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28138 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28139 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28140 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28141 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28142 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28143 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28144 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28145 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28146 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28147 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28148 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28149 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28150 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28151 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28152 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28153 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28154 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28155 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28156 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28157 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28158 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28159 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28160 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28161 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28162 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28163 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28164 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28165 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28166 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28167 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28168 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
28169 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
28170 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
28171 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
28172 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28173 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
28174 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28175 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, | |
28176 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28177 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28178 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28179 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28180 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28181 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28182 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28183 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28184 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28185 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28186 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28187 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28188 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28189 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28190 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28191 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28192 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28193 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28194 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28195 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28198 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28201 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28205 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28207 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28209 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28210 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28211 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28212 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28214 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28215 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28216 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28221 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28222 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28223 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28224 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28225 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28228 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28229 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28230 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28231 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28232 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28233 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28234 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28237 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28238 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28239 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
28241 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, | |
28242 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, | |
28243 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28245 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28246 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28247 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28250 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28259 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28260 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28265 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28267 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28273 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28275 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28277 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28278 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28279 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28281 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28285 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28291 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28292 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28293 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28294 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28296 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28297 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28298 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28300 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28301 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28304 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28305 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28306 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28309 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28310 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28313 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28314 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28316 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28317 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28320 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28321 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28322 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28323 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28324 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28326 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28329 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28330 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28339 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28341 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28342 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28344 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28345 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28346 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28347 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28348 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
28349 | { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS }, | |
28350 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS }, | |
28352 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28353 | { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS }, | |
28354 | { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS }, | |
28355 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, | |
28356 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
28357 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28370 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28373 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28383 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28386 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28387 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28389 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28400 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28403 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, | |
28412 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28414 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28415 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28416 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28417 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28419 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28420 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28421 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28422 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28423 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28424 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28428 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28440 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28452 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
28455 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28458 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
28461 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
28465 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28468 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28469 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28476 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28483 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28498 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28507 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28508 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28509 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28510 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28522 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28523 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28525 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28526 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28527 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28528 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28529 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28530 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28531 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28532 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28557 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28558 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28559 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28560 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28561 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28562 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28563 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28564 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28565 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28566 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28577 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28578 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28579 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28580 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28582 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28583 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28586 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28619 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28621 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28622 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28623 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28624 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28625 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28626 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28627 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28628 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28629 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28630 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28631 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28633 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28636 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28637 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28640 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28641 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28644 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28645 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28652 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28656 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28662 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28664 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28665 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28667 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28670 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28674 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28676 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28679 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28680 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
28683 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28685 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28686 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28687 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28688 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28689 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28691 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28693 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28694 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28697 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28698 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28701 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28704 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
28708 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28711 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28714 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28715 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28718 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28719 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28720 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28725 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28729 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
28730 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28732 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28734 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28735 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28736 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28737 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28738 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28739 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28740 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28741 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28742 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28743 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28744 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28746 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28747 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28748 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28749 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28750 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28753 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28756 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28757 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28761 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28764 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28768 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28769 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28770 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28771 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28773 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
28774 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28775 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28776 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28777 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28778 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28780 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28781 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28782 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28783 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28784 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28785 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28786 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28787 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28788 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28789 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28791 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28792 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28793 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28794 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28796 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28797 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28798 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28799 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28800 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28801 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28803 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28804 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28805 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
28806 | { NULL, NULL } | |
28807 | }; | |
28808 | ||
28809 | ||
28810 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28811 | ||
28812 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28813 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28814 | } | |
28815 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28816 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28817 | } | |
28818 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28819 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28820 | } | |
28821 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
28822 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
28823 | } | |
28824 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
28825 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
28826 | } | |
28827 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
28828 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
28829 | } | |
28830 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
28831 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
28832 | } | |
28833 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
28834 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
28835 | } | |
28836 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
28837 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
28838 | } | |
28839 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
28840 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
28841 | } | |
28842 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
28843 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28844 | } | |
28845 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
28846 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
28847 | } | |
28848 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
28849 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
28850 | } | |
28851 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
28852 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28853 | } | |
28854 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
28855 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28856 | } | |
28857 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
28858 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
28859 | } | |
28860 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
28861 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
28862 | } | |
28863 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
28864 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
28865 | } | |
28866 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
28867 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
28868 | } | |
28869 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
28870 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
28871 | } | |
28872 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
28873 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
28874 | } | |
28875 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
28876 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
28877 | } | |
28878 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
28879 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28880 | } | |
28881 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
28882 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28883 | } | |
28884 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
28885 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28886 | } | |
28887 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
28888 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28889 | } | |
28890 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
28891 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28892 | } | |
28893 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
28894 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
28895 | } | |
28896 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
28897 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
28898 | } | |
28899 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
28900 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28901 | } | |
28902 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
28903 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
28904 | } | |
28905 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
28906 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
28907 | } | |
28908 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
28909 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
28910 | } | |
28911 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
28912 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28913 | } | |
28914 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
28915 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28916 | } | |
28917 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
28918 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28919 | } | |
28920 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
28921 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
28922 | } | |
28923 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
28924 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
28925 | } | |
28926 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
28927 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
28928 | } | |
28929 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
28930 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
28931 | } | |
28932 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
28933 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28934 | } | |
28935 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
28936 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28937 | } | |
28938 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28939 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
28940 | } | |
28941 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28942 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28943 | } | |
28944 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
28945 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
28946 | } | |
28947 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
28948 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28949 | } | |
28950 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
28951 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28952 | } | |
28953 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28954 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28955 | } | |
28956 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28957 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28958 | } | |
28959 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
28960 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28961 | } | |
28962 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
28963 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28964 | } | |
28965 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
28966 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28967 | } | |
28968 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
28969 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28970 | } | |
28971 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
28972 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28973 | } | |
28974 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
28975 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28976 | } | |
28977 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28978 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28979 | } | |
28980 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28981 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28982 | } | |
28983 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28984 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28985 | } | |
28986 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28987 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28988 | } | |
28989 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28990 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28991 | } | |
28992 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28993 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28994 | } | |
28995 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28996 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28997 | } | |
28998 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
28999 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29000 | } | |
29001 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29002 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29003 | } | |
29004 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29005 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29006 | } | |
29007 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29008 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29009 | } | |
29010 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29011 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29012 | } | |
29013 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29014 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29015 | } | |
29016 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29017 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29018 | } | |
29019 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29020 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29021 | } | |
29022 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29023 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29024 | } | |
29025 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29026 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29027 | } | |
29028 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29029 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29030 | } | |
29031 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29032 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29033 | } | |
29034 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29035 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29036 | } | |
29037 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29038 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29039 | } | |
29040 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29041 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29042 | } | |
29043 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29044 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29045 | } | |
29046 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29047 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29048 | } | |
29049 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29050 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29051 | } | |
29052 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29053 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29054 | } | |
29055 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29056 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29057 | } | |
29058 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29059 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29060 | } | |
29061 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29062 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29063 | } | |
29064 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29065 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29066 | } | |
29067 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29068 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29069 | } | |
29070 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29071 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29072 | } | |
29073 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29074 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29075 | } | |
29076 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29077 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29078 | } | |
29079 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29080 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29081 | } | |
29082 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29083 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29084 | } | |
29085 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29086 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29087 | } | |
29088 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29089 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29090 | } | |
29091 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29092 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29093 | } | |
29094 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29095 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29096 | } | |
29097 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29098 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29099 | } | |
29100 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29101 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29102 | } | |
29103 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29104 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29105 | } | |
29106 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29107 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29108 | } | |
29109 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29110 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29111 | } | |
29112 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29113 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29114 | } | |
29115 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29116 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29117 | } | |
29118 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29119 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29120 | } | |
29121 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29122 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29123 | } | |
29124 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29125 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29126 | } | |
29127 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29128 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29129 | } | |
29130 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29131 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29132 | } | |
29133 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29134 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29135 | } | |
29136 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29137 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29138 | } | |
29139 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29140 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29141 | } | |
29142 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29143 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29144 | } | |
29145 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29146 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29147 | } | |
29148 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29149 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29150 | } | |
29151 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29152 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29153 | } | |
29154 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29155 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29156 | } | |
29157 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29158 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29159 | } | |
29160 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29161 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29162 | } | |
29163 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29164 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29165 | } | |
29166 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29167 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29168 | } | |
29169 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29170 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29171 | } | |
29172 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29173 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29174 | } | |
29175 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29176 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29177 | } | |
29178 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29179 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29180 | } | |
29181 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29182 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29183 | } | |
29184 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29185 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29186 | } | |
29187 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29188 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29189 | } | |
29190 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
29191 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29192 | } | |
29193 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
29194 | return (void *)((wxObject *) ((wxImage *) x)); | |
29195 | } | |
29196 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29197 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29198 | } | |
29199 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29200 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29201 | } | |
29202 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29203 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29204 | } | |
29205 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29206 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29207 | } | |
29208 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29209 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29210 | } | |
29211 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29212 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29213 | } | |
29214 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29215 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29216 | } | |
29217 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29218 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29219 | } | |
29220 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29221 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29222 | } | |
29223 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29224 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29225 | } | |
29226 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29227 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29228 | } | |
29229 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29230 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29231 | } | |
29232 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29233 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29234 | } | |
29235 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29236 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29237 | } | |
29238 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29239 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29240 | } | |
29241 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29242 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29243 | } | |
29244 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29245 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29246 | } | |
29247 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29248 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29249 | } | |
29250 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29251 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29252 | } | |
29253 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29254 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29255 | } | |
29256 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29257 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29258 | } | |
29259 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29260 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29261 | } | |
29262 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29263 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29264 | } | |
29265 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29266 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29267 | } | |
29268 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29269 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29270 | } | |
29271 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29272 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29273 | } | |
29274 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29275 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29276 | } | |
29277 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29278 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29279 | } | |
29280 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29281 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29282 | } | |
29283 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29284 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29285 | } | |
29286 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29287 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29288 | } | |
29289 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29290 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29291 | } | |
29292 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29293 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29294 | } | |
29295 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29296 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29297 | } | |
29298 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29299 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29300 | } | |
29301 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29302 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29303 | } | |
29304 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29305 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29306 | } | |
29307 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29308 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29309 | } | |
29310 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29311 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29312 | } | |
29313 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0, 0, 0, 0},{"_p_wxLogChain", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29314 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0, 0, 0, 0},{"_p_wxMutexGuiLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29315 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0, 0, 0, 0},{"_p_wxFileHistory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29316 | static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0, 0, 0, 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29317 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0, 0, 0, 0},{"_p_wxDateTime__TimeZone", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29318 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29319 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29320 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29321 | static swig_type_info _swigt__p_wxDisplay[] = {{"_p_wxDisplay", 0, "wxDisplay *", 0, 0, 0, 0},{"_p_wxDisplay", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29322 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0, 0, 0, 0},{"_p_wxFileType", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29323 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0, 0, 0, 0},{"_p_wxLogGui", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29324 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29325 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0, 0, 0, 0},{"_p_wxDataFormat", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29326 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0, 0, 0, 0},{"_p_wxTimerEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29327 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29328 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29329 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29330 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0, 0, 0, 0},{"_p_wxClipboard", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29331 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0, 0, 0, 0},{"_p_wxStopWatch", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29332 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29333 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0, 0, 0, 0},{"_p_wxClipboardLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29334 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29335 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0, 0, 0, 0},{"_p_wxLogStderr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29336 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0, 0, 0, 0},{"_p_wxLogTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29337 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29338 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29339 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0, 0, 0, 0},{"_p_wxPyTextDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29340 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0, 0, 0, 0},{"_p_wxBitmapDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29341 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0, 0, 0, 0},{"_p_wxTextDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29342 | static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29343 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29344 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0, 0, 0, 0},{"_p_wxFileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29345 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0, 0, 0, 0},{"_p_wxCustomDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29346 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0, 0, 0, 0},{"_p_wxURLDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29347 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0, 0, 0, 0},{"_p_wxMetafileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29348 | static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0, 0, 0, 0},{"_p_wxSound", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29349 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0, 0, 0, 0},{"_p_wxTimerRunner", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29350 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0, 0, 0, 0},{"_p_wxLogWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29351 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0, 0, 0, 0},{"_p_wxTimeSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29352 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29353 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0, 0, 0, 0},{"_p_wxWindowDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29354 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29355 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0, 0, 0, 0},{"_p_wxDataObjectComposite", 0, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29356 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0, 0, 0, 0},{"_p_wxFileConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29357 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0, 0, 0, 0},{"_p_wxSystemSettings", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29358 | static swig_type_info _swigt__p_wxVideoMode[] = {{"_p_wxVideoMode", 0, "wxVideoMode *", 0, 0, 0, 0},{"_p_wxVideoMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29359 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29360 | static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", 0, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29361 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29362 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29363 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29364 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0, 0, 0, 0},{"_p_wxSingleInstanceChecker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29365 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0, 0, 0, 0},{"_p_wxFileTypeInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29366 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29367 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0, 0, 0, 0},{"_p_wxTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29368 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0, 0, 0, 0},{"_p_wxMimeTypesManager", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29369 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0, 0, 0, 0},{"_p_wxPyArtProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29370 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0, 0, 0, 0},{"_p_wxPyTipProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29371 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0, 0, 0, 0},{"_p_wxTipProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29372 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0, 0, 0, 0},{"_p_wxJoystick", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29373 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0, 0, 0, 0},{"_p_wxSystemOptions", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29374 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29375 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0, 0, 0, 0},{"_p_wxJoystickEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29376 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29377 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29378 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29379 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29380 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0, 0, 0, 0},{"_p_wxPyDropSource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29381 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29382 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29383 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0, 0, 0, 0},{"_p_wxPyProcess", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29384 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29385 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0, 0, 0, 0},{"_p_wxConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29386 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0, 0, 0, 0},{"_p_wxChar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29387 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0, 0, 0, 0},{"_p_wxBusyInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29388 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29389 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0, 0, 0, 0},{"_p_wxPyTextDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29390 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0, 0, 0, 0},{"_p_wxPyFileDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29391 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0, 0, 0, 0},{"_p_wxProcessEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29392 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0, 0, 0, 0},{"_p_wxPyLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29393 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0, 0, 0, 0},{"_p_wxLogNull", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29394 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29395 | static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0, 0, 0, 0},{"_p_wxByte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29396 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0, 0, 0, 0},{"_p_wxConfigPathChanger", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29397 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0, 0, 0, 0},{"_p_wxPyTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29398 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0, 0, 0, 0},{"_p_wxDateSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29399 | ||
29400 | static swig_type_info *swig_types_initial[] = { | |
29401 | _swigt__p_wxLogChain, | |
29402 | _swigt__p_wxMutexGuiLocker, | |
29403 | _swigt__p_wxFileHistory, | |
29404 | _swigt__p_wxLog, | |
29405 | _swigt__p_wxDateTime__TimeZone, | |
29406 | _swigt__p_wxMenu, | |
29407 | _swigt__p_wxEvent, | |
29408 | _swigt__p_wxConfigBase, | |
29409 | _swigt__p_wxDisplay, | |
29410 | _swigt__p_wxFileType, | |
29411 | _swigt__p_wxLogGui, | |
29412 | _swigt__p_wxFont, | |
29413 | _swigt__p_wxDataFormat, | |
29414 | _swigt__p_wxTimerEvent, | |
29415 | _swigt__p_wxCaret, | |
29416 | _swigt__p_int, | |
29417 | _swigt__p_wxSize, | |
29418 | _swigt__p_wxClipboard, | |
29419 | _swigt__p_wxStopWatch, | |
29420 | _swigt__p_wxDC, | |
29421 | _swigt__p_wxClipboardLocker, | |
29422 | _swigt__p_wxIcon, | |
29423 | _swigt__p_wxLogStderr, | |
29424 | _swigt__p_wxLogTextCtrl, | |
29425 | _swigt__p_wxTextCtrl, | |
29426 | _swigt__p_wxBusyCursor, | |
29427 | _swigt__p_wxPyTextDataObject, | |
29428 | _swigt__p_wxBitmapDataObject, | |
29429 | _swigt__p_wxTextDataObject, | |
29430 | _swigt__p_wxDataObject, | |
29431 | _swigt__p_wxPyBitmapDataObject, | |
29432 | _swigt__p_wxFileDataObject, | |
29433 | _swigt__p_wxCustomDataObject, | |
29434 | _swigt__p_wxURLDataObject, | |
29435 | _swigt__p_wxMetafileDataObject, | |
29436 | _swigt__p_wxSound, | |
29437 | _swigt__p_wxTimerRunner, | |
29438 | _swigt__p_wxLogWindow, | |
29439 | _swigt__p_wxTimeSpan, | |
29440 | _swigt__p_wxArrayString, | |
29441 | _swigt__p_wxWindowDisabler, | |
29442 | _swigt__p_wxToolTip, | |
29443 | _swigt__p_wxDataObjectComposite, | |
29444 | _swigt__p_wxFileConfig, | |
29445 | _swigt__p_wxSystemSettings, | |
29446 | _swigt__p_wxVideoMode, | |
29447 | _swigt__p_wxPyDataObjectSimple, | |
29448 | _swigt__p_wxDataObjectSimple, | |
29449 | _swigt__p_wxEvtHandler, | |
29450 | _swigt__p_wxRect, | |
29451 | _swigt__p_char, | |
29452 | _swigt__p_wxSingleInstanceChecker, | |
29453 | _swigt__p_wxFileTypeInfo, | |
29454 | _swigt__p_wxFrame, | |
29455 | _swigt__p_wxTimer, | |
29456 | _swigt__p_wxMimeTypesManager, | |
29457 | _swigt__p_wxPyArtProvider, | |
29458 | _swigt__p_wxPyTipProvider, | |
29459 | _swigt__p_wxTipProvider, | |
29460 | _swigt__p_wxJoystick, | |
29461 | _swigt__p_wxSystemOptions, | |
29462 | _swigt__p_wxPoint, | |
29463 | _swigt__p_wxJoystickEvent, | |
29464 | _swigt__p_wxCursor, | |
29465 | _swigt__p_wxObject, | |
29466 | _swigt__p_wxOutputStream, | |
29467 | _swigt__p_wxDateTime, | |
29468 | _swigt__p_wxPyDropSource, | |
29469 | _swigt__p_wxWindow, | |
29470 | _swigt__p_wxString, | |
29471 | _swigt__p_wxPyProcess, | |
29472 | _swigt__p_wxBitmap, | |
29473 | _swigt__p_wxConfig, | |
29474 | _swigt__p_wxChar, | |
29475 | _swigt__p_wxBusyInfo, | |
29476 | _swigt__p_wxPyDropTarget, | |
29477 | _swigt__p_wxPyTextDropTarget, | |
29478 | _swigt__p_wxPyFileDropTarget, | |
29479 | _swigt__p_wxProcessEvent, | |
29480 | _swigt__p_wxPyLog, | |
29481 | _swigt__p_wxLogNull, | |
29482 | _swigt__p_wxColour, | |
29483 | _swigt__p_wxByte, | |
29484 | _swigt__p_wxConfigPathChanger, | |
29485 | _swigt__p_wxPyTimer, | |
29486 | _swigt__p_wxDateSpan, | |
29487 | 0 | |
29488 | }; | |
29489 | ||
29490 | ||
29491 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29492 | ||
29493 | static swig_const_info swig_const_table[] = { | |
29494 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
29495 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29496 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29497 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29498 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
29499 | {0}}; | |
29500 | ||
29501 | #ifdef __cplusplus | |
29502 | } | |
29503 | #endif | |
29504 | ||
29505 | #ifdef __cplusplus | |
29506 | extern "C" | |
29507 | #endif | |
29508 | SWIGEXPORT(void) SWIG_init(void) { | |
29509 | static PyObject *SWIG_globals = 0; | |
29510 | static int typeinit = 0; | |
29511 | PyObject *m, *d; | |
29512 | int i; | |
29513 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29514 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29515 | d = PyModule_GetDict(m); | |
29516 | ||
29517 | if (!typeinit) { | |
29518 | for (i = 0; swig_types_initial[i]; i++) { | |
29519 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29520 | } | |
29521 | typeinit = 1; | |
29522 | } | |
29523 | SWIG_InstallConstants(d,swig_const_table); | |
29524 | ||
29525 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); | |
29526 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29527 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29528 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29529 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29530 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29531 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29532 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29533 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29534 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29535 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29536 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29537 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29538 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29539 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29540 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29541 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29542 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29543 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29544 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29545 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29546 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29547 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29548 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29549 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29550 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29551 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29552 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29553 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29554 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29555 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29556 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29557 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29558 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29559 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29560 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29561 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29562 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29563 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29564 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29565 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29566 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29567 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29568 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29569 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29570 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29571 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29572 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29573 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29574 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29575 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29576 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29577 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29578 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29579 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29580 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29581 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29582 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29583 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29584 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29585 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29586 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29587 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29588 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29589 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29590 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29591 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29592 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29593 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29594 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29595 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29596 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29597 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29598 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29599 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29600 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29601 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29602 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29603 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29604 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29605 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29606 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29607 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29608 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29609 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29610 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29611 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29612 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29613 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29614 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29615 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
29616 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
29617 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29618 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29619 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
29620 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); | |
29621 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29622 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29623 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
29624 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
29625 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); | |
29626 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29627 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29628 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29629 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29630 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29631 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29632 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29633 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29634 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29635 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29636 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29637 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29638 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29639 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29640 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29641 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29642 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29643 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29644 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29645 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29646 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29647 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29648 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29649 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29650 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29651 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29652 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29653 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29654 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29655 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29656 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29657 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29658 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29659 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29660 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29661 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29662 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29663 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29664 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29665 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29666 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29667 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29668 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29669 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
29670 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
29671 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); | |
29672 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29673 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29674 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
29675 | ||
29676 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29677 | ||
29678 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); | |
29679 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29680 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29681 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29682 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29683 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29684 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
29685 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
29686 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29687 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29688 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
29689 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); | |
29690 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29691 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29692 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29693 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29694 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29695 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29696 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
29697 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
29698 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29699 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29700 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29701 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29702 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29703 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29704 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29705 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29706 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29707 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29708 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29709 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29710 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29711 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29712 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29713 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29714 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29715 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29716 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29717 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29718 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29719 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29720 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29721 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29722 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29723 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29724 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29725 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29726 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29727 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29728 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29729 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29730 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29731 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29732 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29733 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29734 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29735 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29736 | ||
29737 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29738 | ||
29739 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); | |
29740 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29741 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29742 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29743 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29744 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29745 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29746 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29747 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
29748 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); | |
29749 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
29750 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); | |
29751 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29752 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29753 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29754 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29755 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29756 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29757 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29758 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29759 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29760 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29761 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29762 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29763 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29764 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29765 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29766 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29767 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29768 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29769 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29770 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29771 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29772 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29773 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29774 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29775 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29776 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29777 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29778 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29779 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29780 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29781 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29782 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29783 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29784 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29785 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29786 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29787 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29788 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29789 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29790 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29791 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29792 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29793 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29794 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29795 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29796 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29797 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29798 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29799 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29800 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29801 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29802 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29803 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29804 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29805 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29806 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29807 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29808 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29809 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29810 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29811 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29812 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29813 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29814 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29815 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29816 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29817 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29818 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29819 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29820 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
29821 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
29822 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
29823 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
29824 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
29825 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
29826 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
29827 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
29828 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
29829 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
29830 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
29831 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
29832 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
29833 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
29834 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
29835 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
29836 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
29837 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
29838 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
29839 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
29840 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
29841 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
29842 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
29843 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
29844 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
29845 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
29846 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
29847 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
29848 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
29849 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
29850 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
29851 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
29852 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
29853 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
29854 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
29855 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
29856 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
29857 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
29858 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
29859 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
29860 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
29861 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
29862 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
29863 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
29864 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
29865 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
29866 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
29867 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
29868 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
29869 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
29870 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
29871 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
29872 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
29873 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
29874 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
29875 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
29876 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
29877 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
29878 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
29879 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
29880 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
29881 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
29882 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
29883 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
29884 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
29885 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
29886 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
29887 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
29888 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
29889 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
29890 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
29891 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
29892 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
29893 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
29894 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
29895 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
29896 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
29897 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
29898 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
29899 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
29900 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
29901 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
29902 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
29903 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
29904 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
29905 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); | |
29906 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); | |
29907 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
29908 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
29909 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
29910 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
29911 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
29912 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
29913 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
29914 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
29915 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
29916 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
29917 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
29918 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
29919 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
29920 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
29921 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
29922 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
29923 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
29924 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
29925 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
29926 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
29927 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); | |
29928 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
29929 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
29930 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
29931 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
29932 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
29933 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
29934 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
29935 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
29936 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
29937 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
29938 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
29939 | ||
29940 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
29941 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
29942 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
29943 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
29944 | ||
29945 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
29946 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); | |
29947 | } | |
29948 |