]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
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_wxMetafile swig_types[2] | |
212 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
213 | #define SWIGTYPE_p_wxLog swig_types[4] | |
214 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] | |
215 | #define SWIGTYPE_p_wxMenu swig_types[6] | |
216 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
217 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
218 | #define SWIGTYPE_p_wxDisplay swig_types[9] | |
219 | #define SWIGTYPE_p_wxFileType swig_types[10] | |
220 | #define SWIGTYPE_p_wxLogGui swig_types[11] | |
221 | #define SWIGTYPE_p_wxFont swig_types[12] | |
222 | #define SWIGTYPE_p_wxDataFormat swig_types[13] | |
223 | #define SWIGTYPE_p_wxTimerEvent swig_types[14] | |
224 | #define SWIGTYPE_p_wxCaret swig_types[15] | |
225 | #define SWIGTYPE_p_int swig_types[16] | |
226 | #define SWIGTYPE_p_wxSize swig_types[17] | |
227 | #define SWIGTYPE_p_wxClipboard swig_types[18] | |
228 | #define SWIGTYPE_p_wxStopWatch swig_types[19] | |
229 | #define SWIGTYPE_p_wxDC swig_types[20] | |
230 | #define SWIGTYPE_p_wxClipboardLocker swig_types[21] | |
231 | #define SWIGTYPE_p_wxIcon swig_types[22] | |
232 | #define SWIGTYPE_p_wxLogStderr swig_types[23] | |
233 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[24] | |
234 | #define SWIGTYPE_p_wxTextCtrl swig_types[25] | |
235 | #define SWIGTYPE_p_wxBusyCursor swig_types[26] | |
236 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[27] | |
237 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[28] | |
238 | #define SWIGTYPE_p_wxTextDataObject swig_types[29] | |
239 | #define SWIGTYPE_p_wxDataObject swig_types[30] | |
240 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[31] | |
241 | #define SWIGTYPE_p_wxFileDataObject swig_types[32] | |
242 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
243 | #define SWIGTYPE_p_wxURLDataObject swig_types[34] | |
244 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[35] | |
245 | #define SWIGTYPE_p_wxSound swig_types[36] | |
246 | #define SWIGTYPE_p_wxTimerRunner swig_types[37] | |
247 | #define SWIGTYPE_p_wxLogWindow swig_types[38] | |
248 | #define SWIGTYPE_p_wxTimeSpan swig_types[39] | |
249 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
250 | #define SWIGTYPE_p_wxWindowDisabler swig_types[41] | |
251 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
252 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[43] | |
253 | #define SWIGTYPE_p_wxFileConfig swig_types[44] | |
254 | #define SWIGTYPE_p_wxSystemSettings swig_types[45] | |
255 | #define SWIGTYPE_p_wxVideoMode swig_types[46] | |
256 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47] | |
257 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[48] | |
258 | #define SWIGTYPE_p_wxEvtHandler swig_types[49] | |
259 | #define SWIGTYPE_p_wxRect swig_types[50] | |
260 | #define SWIGTYPE_p_char swig_types[51] | |
261 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52] | |
262 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[53] | |
263 | #define SWIGTYPE_p_wxFrame swig_types[54] | |
264 | #define SWIGTYPE_p_wxTimer swig_types[55] | |
265 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[56] | |
266 | #define SWIGTYPE_p_wxPyArtProvider swig_types[57] | |
267 | #define SWIGTYPE_p_wxPyTipProvider swig_types[58] | |
268 | #define SWIGTYPE_p_wxTipProvider swig_types[59] | |
269 | #define SWIGTYPE_p_wxJoystick swig_types[60] | |
270 | #define SWIGTYPE_p_wxSystemOptions swig_types[61] | |
271 | #define SWIGTYPE_p_wxPoint swig_types[62] | |
272 | #define SWIGTYPE_p_wxJoystickEvent swig_types[63] | |
273 | #define SWIGTYPE_p_wxCursor swig_types[64] | |
274 | #define SWIGTYPE_p_wxObject swig_types[65] | |
275 | #define SWIGTYPE_p_wxOutputStream swig_types[66] | |
276 | #define SWIGTYPE_p_wxDateTime swig_types[67] | |
277 | #define SWIGTYPE_p_wxPyDropSource swig_types[68] | |
278 | #define SWIGTYPE_p_wxWindow swig_types[69] | |
279 | #define SWIGTYPE_p_wxString swig_types[70] | |
280 | #define SWIGTYPE_p_wxPyProcess swig_types[71] | |
281 | #define SWIGTYPE_p_wxBitmap swig_types[72] | |
282 | #define SWIGTYPE_p_wxConfig swig_types[73] | |
283 | #define SWIGTYPE_p_wxChar swig_types[74] | |
284 | #define SWIGTYPE_p_wxBusyInfo swig_types[75] | |
285 | #define SWIGTYPE_p_wxPyDropTarget swig_types[76] | |
286 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77] | |
287 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78] | |
288 | #define SWIGTYPE_p_wxProcessEvent swig_types[79] | |
289 | #define SWIGTYPE_p_wxPyLog swig_types[80] | |
290 | #define SWIGTYPE_p_wxLogNull swig_types[81] | |
291 | #define SWIGTYPE_p_wxColour swig_types[82] | |
292 | #define SWIGTYPE_p_wxByte swig_types[83] | |
293 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[84] | |
294 | #define SWIGTYPE_p_wxPyTimer swig_types[85] | |
295 | #define SWIGTYPE_p_wxDateSpan swig_types[86] | |
296 | static swig_type_info *swig_types[88]; | |
297 | ||
298 | /* -------- TYPES TABLE (END) -------- */ | |
299 | ||
300 | ||
301 | /*----------------------------------------------- | |
302 | @(target):= _misc_.so | |
303 | ------------------------------------------------*/ | |
304 | #define SWIG_init init_misc_ | |
305 | ||
306 | #define SWIG_name "_misc_" | |
307 | ||
308 | /* Auxiliar swig macros */ | |
309 | ||
310 | #ifdef __cplusplus | |
311 | #define SWIGSTATICINLINE(a) static inline a | |
312 | #define SWIGSTATIC(a) static a | |
313 | #define swig_new_array(type, size) (new type[(size)]) | |
314 | #define swig_delete_array(cptr) delete[] cptr | |
315 | #define swig_const_cast(type,a) const_cast<type>(a) | |
316 | #define swig_static_cast(type,a) static_cast<type>(a) | |
317 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
318 | ||
319 | #ifdef HAVE_NUMERIC_CAST | |
320 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
321 | #else | |
322 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
323 | #endif | |
324 | ||
325 | #else /* C case */ | |
326 | ||
327 | #define SWIGSTATICINLINE(a) static a | |
328 | #define SWIGSTATIC(a) static a | |
329 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
330 | #define swig_delete_array(cptr) free((char*)cptr) | |
331 | #define swig_const_cast(type,a) (type)(a) | |
332 | #define swig_static_cast(type,a) (type)(a) | |
333 | #define swig_reinterpret_cast(type,a) (type)(a) | |
334 | #define swig_numeric_cast(type,a) (type)(a) | |
335 | ||
336 | #endif /* __cplusplus */ | |
337 | ||
338 | ||
339 | #define SWIG_FromSignedChar PyInt_FromLong | |
340 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
341 | #define SWIG_FromShort PyInt_FromLong | |
342 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
343 | #define SWIG_FromInt PyInt_FromLong | |
344 | #define SWIG_FromLong PyInt_FromLong | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
347 | #define SWIG_FromFloat PyFloat_FromDouble | |
348 | #define SWIG_FromDouble PyFloat_FromDouble | |
349 | ||
350 | ||
351 | #include "wx/wxPython/wxPython.h" | |
352 | #include "wx/wxPython/pyclasses.h" | |
353 | #include "wx/wxPython/pyistream.h" | |
354 | ||
355 | ||
356 | static const wxString wxPyEmptyString(wxEmptyString); | |
357 | ||
358 | ||
359 | ||
360 | #include <limits.h> | |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
390 | if (PyNumber_Check(obj)) | |
391 | return PyInt_AsLong(obj); | |
392 | else { | |
393 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
394 | obj->ob_type->tp_name); | |
395 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
396 | Py_DECREF(errmsg); | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
405 | { | |
406 | return swig_numeric_cast(int, | |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
409 | } | |
410 | #else | |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
413 | ||
414 | ||
415 | SWIGSTATICINLINE(int) | |
416 | SWIG_CheckInt(PyObject* obj) | |
417 | { | |
418 | SWIG_AsInt(obj); | |
419 | if (PyErr_Occurred()) { | |
420 | PyErr_Clear(); | |
421 | return 0; | |
422 | } else { | |
423 | return 1; | |
424 | } | |
425 | } | |
426 | ||
427 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
428 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
429 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
430 | ||
431 | SWIGSTATICINLINE(int) | |
432 | SWIG_CheckLong(PyObject* obj) | |
433 | { | |
434 | SWIG_AsLong(obj); | |
435 | if (PyErr_Occurred()) { | |
436 | PyErr_Clear(); | |
437 | return 0; | |
438 | } else { | |
439 | return 1; | |
440 | } | |
441 | } | |
442 | ||
443 | ||
444 | SWIGSTATICINLINE(bool) | |
445 | SWIG_AsBool(PyObject *obj) | |
446 | { | |
447 | return PyObject_IsTrue(obj) ? true : false; | |
448 | } | |
449 | ||
450 | ||
451 | SWIGSTATICINLINE(int) | |
452 | SWIG_CheckBool(PyObject* obj) | |
453 | { | |
454 | SWIG_AsBool(obj); | |
455 | if (PyErr_Occurred()) { | |
456 | PyErr_Clear(); | |
457 | return 0; | |
458 | } else { | |
459 | return 1; | |
460 | } | |
461 | } | |
462 | ||
463 | ||
464 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
465 | PyObject* o2; | |
466 | PyObject* o3; | |
467 | ||
468 | if (!target) { | |
469 | target = o; | |
470 | } else if (target == Py_None) { | |
471 | Py_DECREF(Py_None); | |
472 | target = o; | |
473 | } else { | |
474 | if (!PyTuple_Check(target)) { | |
475 | o2 = target; | |
476 | target = PyTuple_New(1); | |
477 | PyTuple_SetItem(target, 0, o2); | |
478 | } | |
479 | o3 = PyTuple_New(1); | |
480 | PyTuple_SetItem(o3, 0, o); | |
481 | ||
482 | o2 = target; | |
483 | target = PySequence_Concat(o2, o3); | |
484 | Py_DECREF(o2); | |
485 | Py_DECREF(o3); | |
486 | } | |
487 | return target; | |
488 | } | |
489 | ||
490 | ||
491 | SWIGSTATICINLINE(unsigned long) | |
492 | SWIG_AsUnsignedLong(PyObject * obj) | |
493 | { | |
494 | if (PyLong_Check(obj)) { | |
495 | return PyLong_AsUnsignedLong(obj); | |
496 | } else { | |
497 | long i = SWIG_AsLong(obj); | |
498 | if ( !PyErr_Occurred() && (i < 0)) { | |
499 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
500 | } | |
501 | return i; | |
502 | } | |
503 | } | |
504 | ||
505 | ||
506 | SWIGSTATICINLINE(int) | |
507 | SWIG_CheckUnsignedLong(PyObject* obj) | |
508 | { | |
509 | SWIG_AsUnsignedLong(obj); | |
510 | if (PyErr_Occurred()) { | |
511 | PyErr_Clear(); | |
512 | return 0; | |
513 | } else { | |
514 | return 1; | |
515 | } | |
516 | } | |
517 | ||
518 | ||
519 | SWIGSTATICINLINE(PyObject* ) | |
520 | SWIG_FromUnsignedLong(unsigned long value) | |
521 | { | |
522 | return (value > LONG_MAX) ? | |
523 | PyLong_FromUnsignedLong(value) | |
524 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
525 | } | |
526 | ||
527 | ||
528 | bool wxThread_IsMain() { | |
529 | #ifdef WXP_WITH_THREAD | |
530 | return wxThread::IsMain(); | |
531 | #else | |
532 | return True; | |
533 | #endif | |
534 | } | |
535 | ||
536 | ||
537 | int wxCaret_GetBlinkTime() { | |
538 | return wxCaret::GetBlinkTime(); | |
539 | } | |
540 | ||
541 | void wxCaret_SetBlinkTime(int milliseconds) { | |
542 | wxCaret::SetBlinkTime(milliseconds); | |
543 | } | |
544 | ||
545 | ||
546 | #include <wx/snglinst.h> | |
547 | ||
548 | ||
549 | #ifdef __WXMSW__ | |
550 | #include <wx/msw/private.h> | |
551 | #include <wx/dynload.h> | |
552 | #endif | |
553 | ||
554 | ||
555 | ||
556 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
557 | { | |
558 | #ifdef __WXMSW__ | |
559 | ||
560 | switch (method) | |
561 | { | |
562 | case 1: | |
563 | // This one only partially works. Appears to be an undocumented | |
564 | // "standard" convention that not all widgets adhear to. For | |
565 | // example, for some widgets backgrounds or non-client areas may | |
566 | // not be painted. | |
567 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
568 | break; | |
569 | ||
570 | case 2: | |
571 | // This one works much better, except for on XP. On Win2k nearly | |
572 | // all widgets and their children are captured correctly[**]. On | |
573 | // XP with Themes activated most native widgets draw only | |
574 | // partially, if at all. Without themes it works just like on | |
575 | // Win2k. | |
576 | // | |
577 | // ** For example the radio buttons in a wxRadioBox are not its | |
578 | // children by default, but you can capture it via the panel | |
579 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
580 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
581 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
582 | PRF_ERASEBKGND | PRF_OWNED ); | |
583 | break; | |
584 | ||
585 | case 3: | |
586 | // This one is only defined in the latest SDK and is only | |
587 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
588 | // so I expect that it will work similar to the above. Since it | |
589 | // is avaialble only on XP, it can't be compiled like this and | |
590 | // will have to be loaded dynamically. | |
591 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
592 | ||
593 | // fall through | |
594 | ||
595 | case 4: | |
596 | // Use PrintWindow if available, or fallback to WM_PRINT | |
597 | // otherwise. Unfortunately using PrintWindow is even worse than | |
598 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
599 | // at all, with or without Themes. | |
600 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
601 | static bool s_triedToLoad = False; | |
602 | static PrintWindow_t pfnPrintWindow = NULL; | |
603 | if ( !s_triedToLoad ) | |
604 | { | |
605 | ||
606 | s_triedToLoad = True; | |
607 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
608 | if ( dllUser32.IsLoaded() ) | |
609 | { | |
610 | wxLogNull nolog; // Don't report errors here | |
611 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
612 | } | |
613 | } | |
614 | if (pfnPrintWindow) | |
615 | { | |
616 | printf("Using PrintWindow\n"); | |
617 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
618 | } | |
619 | else | |
620 | { | |
621 | printf("Using WM_PRINT\n"); | |
622 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
623 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
624 | } | |
625 | } | |
626 | #endif | |
627 | } | |
628 | ||
629 | ||
630 | ||
631 | #include <wx/tipdlg.h> | |
632 | ||
633 | ||
634 | class wxPyTipProvider : public wxTipProvider { | |
635 | public: | |
636 | wxPyTipProvider(size_t currentTip) | |
637 | : wxTipProvider(currentTip) {} | |
638 | ||
639 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
640 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
641 | PYPRIVATE; | |
642 | }; | |
643 | ||
644 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
645 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
646 | ||
647 | ||
648 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
649 | ||
650 | void wxPyTimer::Notify() { | |
651 | bool found; | |
652 | bool blocked = wxPyBeginBlockThreads(); | |
653 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
654 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
655 | wxPyEndBlockThreads(blocked); | |
656 | if (! found) | |
657 | wxTimer::Notify(); | |
658 | } | |
659 | void wxPyTimer::base_Notify() { | |
660 | wxTimer::Notify(); | |
661 | } | |
662 | ||
663 | ||
664 | ||
665 | SWIGSTATICINLINE(PyObject *) | |
666 | SWIG_FromCharPtr(const char* cptr) | |
667 | { | |
668 | size_t size = cptr ? strlen(cptr) : 0; | |
669 | if (cptr) { | |
670 | if (size > INT_MAX) { | |
671 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
672 | SWIG_TypeQuery("char *"), 0); | |
673 | } else { | |
674 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
675 | } | |
676 | } else { | |
677 | Py_INCREF(Py_None); | |
678 | return Py_None; | |
679 | } | |
680 | } | |
681 | ||
682 | ||
683 | SWIGSTATICINLINE(unsigned long) | |
684 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
685 | unsigned long max_value) | |
686 | { | |
687 | if (!PyErr_Occurred()) { | |
688 | if (value > max_value) { | |
689 | PyObject *err = | |
690 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
691 | value, type, max_value); | |
692 | PyErr_SetObject(PyExc_OverflowError, err); | |
693 | Py_DECREF(err); | |
694 | } | |
695 | } | |
696 | return value; | |
697 | } | |
698 | ||
699 | ||
700 | #if UINT_MAX != ULONG_MAX | |
701 | SWIGSTATICINLINE(unsigned int) | |
702 | SWIG_AsUnsignedInt(PyObject *obj) | |
703 | { | |
704 | return swig_numeric_cast(unsigned int, | |
705 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
706 | "unsigned int", UINT_MAX)); | |
707 | } | |
708 | #else | |
709 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
710 | #endif | |
711 | ||
712 | ||
713 | SWIGSTATICINLINE(int) | |
714 | SWIG_CheckUnsignedInt(PyObject* obj) | |
715 | { | |
716 | SWIG_AsUnsignedInt(obj); | |
717 | if (PyErr_Occurred()) { | |
718 | PyErr_Clear(); | |
719 | return 0; | |
720 | } else { | |
721 | return 1; | |
722 | } | |
723 | } | |
724 | ||
725 | wxString Log_TimeStamp(){ | |
726 | wxString msg; | |
727 | wxLog::TimeStamp(&msg); | |
728 | return msg; | |
729 | } | |
730 | void wxLog_Destroy(wxLog *self){ delete self; } | |
731 | ||
732 | // A wxLog class that can be derived from in wxPython | |
733 | class wxPyLog : public wxLog { | |
734 | public: | |
735 | wxPyLog() : wxLog() {} | |
736 | ||
737 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
738 | bool found; | |
739 | bool blocked = wxPyBeginBlockThreads(); | |
740 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
741 | PyObject* s = wx2PyString(szString); | |
742 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
743 | Py_DECREF(s); | |
744 | } | |
745 | wxPyEndBlockThreads(blocked); | |
746 | if (! found) | |
747 | wxLog::DoLog(level, szString, t); | |
748 | } | |
749 | ||
750 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
751 | bool found; | |
752 | bool blocked = wxPyBeginBlockThreads(); | |
753 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
754 | PyObject* s = wx2PyString(szString); | |
755 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
756 | Py_DECREF(s); | |
757 | } | |
758 | wxPyEndBlockThreads(blocked); | |
759 | if (! found) | |
760 | wxLog::DoLogString(szString, t); | |
761 | } | |
762 | ||
763 | PYPRIVATE; | |
764 | }; | |
765 | ||
766 | ||
767 | ||
768 | ||
769 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
770 | ||
771 | ||
772 | #include <wx/joystick.h> | |
773 | ||
774 | ||
775 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
776 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
777 | class wxJoystick : public wxObject { | |
778 | public: | |
779 | wxJoystick(int joystick = wxJOYSTICK1) { | |
780 | bool blocked = wxPyBeginBlockThreads(); | |
781 | PyErr_SetString(PyExc_NotImplementedError, | |
782 | "wxJoystick is not available on this platform."); | |
783 | wxPyEndBlockThreads(blocked); | |
784 | } | |
785 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
786 | int GetZPosition() { return -1; } | |
787 | int GetButtonState() { return -1; } | |
788 | int GetPOVPosition() { return -1; } | |
789 | int GetPOVCTSPosition() { return -1; } | |
790 | int GetRudderPosition() { return -1; } | |
791 | int GetUPosition() { return -1; } | |
792 | int GetVPosition() { return -1; } | |
793 | int GetMovementThreshold() { return -1; } | |
794 | void SetMovementThreshold(int threshold) {} | |
795 | ||
796 | bool IsOk(void) { return False; } | |
797 | int GetNumberJoysticks() { return -1; } | |
798 | int GetManufacturerId() { return -1; } | |
799 | int GetProductId() { return -1; } | |
800 | wxString GetProductName() { return ""; } | |
801 | int GetXMin() { return -1; } | |
802 | int GetYMin() { return -1; } | |
803 | int GetZMin() { return -1; } | |
804 | int GetXMax() { return -1; } | |
805 | int GetYMax() { return -1; } | |
806 | int GetZMax() { return -1; } | |
807 | int GetNumberButtons() { return -1; } | |
808 | int GetNumberAxes() { return -1; } | |
809 | int GetMaxButtons() { return -1; } | |
810 | int GetMaxAxes() { return -1; } | |
811 | int GetPollingMin() { return -1; } | |
812 | int GetPollingMax() { return -1; } | |
813 | int GetRudderMin() { return -1; } | |
814 | int GetRudderMax() { return -1; } | |
815 | int GetUMin() { return -1; } | |
816 | int GetUMax() { return -1; } | |
817 | int GetVMin() { return -1; } | |
818 | int GetVMax() { return -1; } | |
819 | ||
820 | bool HasRudder() { return False; } | |
821 | bool HasZ() { return False; } | |
822 | bool HasU() { return False; } | |
823 | bool HasV() { return False; } | |
824 | bool HasPOV() { return False; } | |
825 | bool HasPOV4Dir() { return False; } | |
826 | bool HasPOVCTS() { return False; } | |
827 | ||
828 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } | |
829 | bool ReleaseCapture() { return False; } | |
830 | }; | |
831 | #endif | |
832 | ||
833 | ||
834 | #include <wx/sound.h> | |
835 | ||
836 | ||
837 | #if !wxUSE_SOUND | |
838 | // A C++ stub class for wxWave for platforms that don't have it. | |
839 | class wxSound : public wxObject | |
840 | { | |
841 | public: | |
842 | wxSound() { | |
843 | bool blocked = wxPyBeginBlockThreads(); | |
844 | PyErr_SetString(PyExc_NotImplementedError, | |
845 | "wxSound is not available on this platform."); | |
846 | wxPyEndBlockThreads(blocked); | |
847 | } | |
848 | wxSound(const wxString&, bool) { | |
849 | bool blocked = wxPyBeginBlockThreads(); | |
850 | PyErr_SetString(PyExc_NotImplementedError, | |
851 | "wxSound is not available on this platform."); | |
852 | wxPyEndBlockThreads(blocked); | |
853 | } | |
854 | wxSound(int, const wxByte*) { | |
855 | bool blocked = wxPyBeginBlockThreads(); | |
856 | PyErr_SetString(PyExc_NotImplementedError, | |
857 | "wxSound is not available on this platform."); | |
858 | wxPyEndBlockThreads(blocked); | |
859 | } | |
860 | ||
861 | ~wxSound() {}; | |
862 | ||
863 | bool Create(const wxString&, bool) { return false; } | |
864 | bool Create(int, const wxByte*) { return false; }; | |
865 | bool IsOk() { return false; }; | |
866 | bool Play(unsigned) const { return false; } | |
867 | static bool Play(const wxString&, unsigned) { return false; } | |
868 | static void Stop() {} | |
869 | }; | |
870 | ||
871 | #endif | |
872 | ||
873 | ||
874 | #include <wx/mimetype.h> | |
875 | ||
876 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
877 | wxString str; | |
878 | if (self->GetMimeType(&str)) | |
879 | return wx2PyString(str); | |
880 | else | |
881 | RETURN_NONE(); | |
882 | } | |
883 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
884 | wxArrayString arr; | |
885 | if (self->GetMimeTypes(arr)) | |
886 | return wxArrayString2PyList_helper(arr); | |
887 | else | |
888 | RETURN_NONE(); | |
889 | } | |
890 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
891 | wxArrayString arr; | |
892 | if (self->GetExtensions(arr)) | |
893 | return wxArrayString2PyList_helper(arr); | |
894 | else | |
895 | RETURN_NONE(); | |
896 | } | |
897 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
898 | wxIconLocation loc; | |
899 | if (self->GetIcon(&loc)) | |
900 | return new wxIcon(loc); | |
901 | else | |
902 | return NULL; | |
903 | } | |
904 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
905 | wxIconLocation loc; | |
906 | if (self->GetIcon(&loc)) { | |
907 | wxString iconFile = loc.GetFileName(); | |
908 | int iconIndex = -1; | |
909 | ||
910 | iconIndex = loc.GetIndex(); | |
911 | ||
912 | // Make a tuple and put the values in it | |
913 | bool blocked = wxPyBeginBlockThreads(); | |
914 | PyObject* tuple = PyTuple_New(3); | |
915 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
916 | wxT("wxIcon"), True)); | |
917 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
918 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
919 | wxPyEndBlockThreads(blocked); | |
920 | return tuple; | |
921 | } | |
922 | else | |
923 | RETURN_NONE(); | |
924 | } | |
925 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
926 | wxString str; | |
927 | if (self->GetDescription(&str)) | |
928 | return wx2PyString(str); | |
929 | else | |
930 | RETURN_NONE(); | |
931 | } | |
932 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
933 | wxString str; | |
934 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
935 | return wx2PyString(str); | |
936 | else | |
937 | RETURN_NONE(); | |
938 | } | |
939 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
940 | wxString str; | |
941 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
942 | return wx2PyString(str); | |
943 | else | |
944 | RETURN_NONE(); | |
945 | } | |
946 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
947 | wxArrayString verbs; | |
948 | wxArrayString commands; | |
949 | if (self->GetAllCommands(&verbs, &commands, | |
950 | wxFileType::MessageParameters(filename, mimetype))) { | |
951 | bool blocked = wxPyBeginBlockThreads(); | |
952 | PyObject* tuple = PyTuple_New(2); | |
953 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
954 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
955 | wxPyEndBlockThreads(blocked); | |
956 | return tuple; | |
957 | } | |
958 | else | |
959 | RETURN_NONE(); | |
960 | } | |
961 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
962 | return wxFileType::ExpandCommand(command, | |
963 | wxFileType::MessageParameters(filename, mimetype)); | |
964 | } | |
965 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
966 | wxArrayString arr; | |
967 | self->EnumAllFileTypes(arr); | |
968 | return wxArrayString2PyList_helper(arr); | |
969 | } | |
970 | ||
971 | #include <wx/artprov.h> | |
972 | ||
973 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
974 | static const wxString wxPyART_MENU(wxART_MENU); | |
975 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
976 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
977 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
978 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
979 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
980 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
981 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
982 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
983 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
984 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
985 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
986 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
987 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
988 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
989 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
990 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
991 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
992 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
993 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
994 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
995 | static const wxString wxPyART_HELP(wxART_HELP); | |
996 | static const wxString wxPyART_TIP(wxART_TIP); | |
997 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
998 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
999 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1000 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1001 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1002 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1003 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1004 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1005 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1006 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1007 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1008 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1009 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1010 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1011 | // Python aware wxArtProvider | |
1012 | class wxPyArtProvider : public wxArtProvider { | |
1013 | public: | |
1014 | ||
1015 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1016 | const wxArtClient& client, | |
1017 | const wxSize& size) { | |
1018 | wxBitmap rval = wxNullBitmap; | |
1019 | bool blocked = wxPyBeginBlockThreads(); | |
1020 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1021 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1022 | PyObject* ro; | |
1023 | wxBitmap* ptr; | |
1024 | PyObject* s1, *s2; | |
1025 | s1 = wx2PyString(id); | |
1026 | s2 = wx2PyString(client); | |
1027 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1028 | Py_DECREF(so); | |
1029 | Py_DECREF(s1); | |
1030 | Py_DECREF(s2); | |
1031 | if (ro) { | |
1032 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1033 | rval = *ptr; | |
1034 | Py_DECREF(ro); | |
1035 | } | |
1036 | } | |
1037 | wxPyEndBlockThreads(blocked); | |
1038 | return rval; | |
1039 | } | |
1040 | ||
1041 | PYPRIVATE; | |
1042 | }; | |
1043 | ||
1044 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1045 | ||
1046 | ||
1047 | ||
1048 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1049 | PyObject* ret = PyTuple_New(3); | |
1050 | if (ret) { | |
1051 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1052 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1053 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1054 | } | |
1055 | return ret; | |
1056 | } | |
1057 | ||
1058 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1059 | bool cont; | |
1060 | long index = 0; | |
1061 | wxString value; | |
1062 | ||
1063 | cont = self->GetFirstGroup(value, index); | |
1064 | return __EnumerationHelper(cont, value, index); | |
1065 | } | |
1066 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1067 | bool cont; | |
1068 | wxString value; | |
1069 | ||
1070 | cont = self->GetNextGroup(value, index); | |
1071 | return __EnumerationHelper(cont, value, index); | |
1072 | } | |
1073 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1074 | bool cont; | |
1075 | long index = 0; | |
1076 | wxString value; | |
1077 | ||
1078 | cont = self->GetFirstEntry(value, index); | |
1079 | return __EnumerationHelper(cont, value, index); | |
1080 | } | |
1081 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1082 | bool cont; | |
1083 | wxString value; | |
1084 | ||
1085 | cont = self->GetNextEntry(value, index); | |
1086 | return __EnumerationHelper(cont, value, index); | |
1087 | } | |
1088 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1089 | long rv; | |
1090 | self->Read(key, &rv, defaultVal); | |
1091 | return rv; | |
1092 | } | |
1093 | ||
1094 | SWIGSTATICINLINE(double) | |
1095 | SWIG_AsDouble(PyObject *obj) | |
1096 | { | |
1097 | if (PyNumber_Check(obj)) | |
1098 | return PyFloat_AsDouble(obj); | |
1099 | else { | |
1100 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1101 | obj->ob_type->tp_name); | |
1102 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1103 | Py_DECREF(errmsg); | |
1104 | return 0; | |
1105 | } | |
1106 | } | |
1107 | ||
1108 | ||
1109 | SWIGSTATICINLINE(int) | |
1110 | SWIG_CheckDouble(PyObject* obj) | |
1111 | { | |
1112 | SWIG_AsDouble(obj); | |
1113 | if (PyErr_Occurred()) { | |
1114 | PyErr_Clear(); | |
1115 | return 0; | |
1116 | } else { | |
1117 | return 1; | |
1118 | } | |
1119 | } | |
1120 | ||
1121 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1122 | double rv; | |
1123 | self->Read(key, &rv, defaultVal); | |
1124 | return rv; | |
1125 | } | |
1126 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1127 | bool rv; | |
1128 | self->Read(key, &rv, defaultVal); | |
1129 | return rv; | |
1130 | } | |
1131 | ||
1132 | #include <wx/datetime.h> | |
1133 | ||
1134 | ||
1135 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1136 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1137 | ||
1138 | #define LOCAL_TZ wxDateTime::Local | |
1139 | ||
1140 | ||
1141 | #if UINT_MAX < LONG_MAX | |
1142 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1143 | #else | |
1144 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1145 | #endif | |
1146 | ||
1147 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1148 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1149 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1150 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1151 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1152 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
1153 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1154 | return (*self < *other); | |
1155 | } | |
1156 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1157 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1158 | return (*self <= *other); | |
1159 | } | |
1160 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1161 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1162 | return (*self > *other); | |
1163 | } | |
1164 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1165 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1166 | return (*self >= *other); | |
1167 | } | |
1168 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1169 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1170 | return (*self == *other); | |
1171 | } | |
1172 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1173 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1174 | return (*self != *other); | |
1175 | } | |
1176 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1177 | const wxChar* rv; | |
1178 | const wxChar* _date = date; | |
1179 | rv = self->ParseRfc822Date(_date); | |
1180 | if (rv == NULL) return -1; | |
1181 | return rv - _date; | |
1182 | } | |
1183 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1184 | const wxChar* rv; | |
1185 | const wxChar* _date = date; | |
1186 | rv = self->ParseFormat(_date, format, dateDef); | |
1187 | if (rv == NULL) return -1; | |
1188 | return rv - _date; | |
1189 | } | |
1190 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1191 | const wxChar* rv; | |
1192 | const wxChar* _datetime = datetime; | |
1193 | rv = self->ParseDateTime(_datetime); | |
1194 | if (rv == NULL) return -1; | |
1195 | return rv - _datetime; | |
1196 | } | |
1197 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1198 | const wxChar* rv; | |
1199 | const wxChar* _date = date; | |
1200 | rv = self->ParseDate(_date); | |
1201 | if (rv == NULL) return -1; | |
1202 | return rv - _date; | |
1203 | } | |
1204 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1205 | const wxChar* rv; | |
1206 | const wxChar* _time = time; | |
1207 | rv = self->ParseTime(_time); | |
1208 | if (rv == NULL) return -1; | |
1209 | return rv - _time; | |
1210 | } | |
1211 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1212 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1213 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1214 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
1215 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } | |
1216 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } | |
1217 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } | |
1218 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } | |
1219 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } | |
1220 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } | |
1221 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
1222 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1223 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1224 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
1225 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } | |
1226 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } | |
1227 | ||
1228 | #include <wx/dataobj.h> | |
1229 | ||
1230 | // Create a new class for wxPython to use | |
1231 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1232 | public: | |
1233 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1234 | : wxDataObjectSimple(format) {} | |
1235 | ||
1236 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1237 | bool GetDataHere(void *buf) const; | |
1238 | bool SetData(size_t len, const void *buf) const; | |
1239 | PYPRIVATE; | |
1240 | }; | |
1241 | ||
1242 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1243 | ||
1244 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1245 | // We need to get the data for this object and write it to buf. I think | |
1246 | // the best way to do this for wxPython is to have the Python method | |
1247 | // return either a string or None and then act appropriately with the | |
1248 | // C++ version. | |
1249 | ||
1250 | bool rval = False; | |
1251 | bool blocked = wxPyBeginBlockThreads(); | |
1252 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1253 | PyObject* ro; | |
1254 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1255 | if (ro) { | |
1256 | rval = (ro != Py_None && PyString_Check(ro)); | |
1257 | if (rval) | |
1258 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1259 | Py_DECREF(ro); | |
1260 | } | |
1261 | } | |
1262 | wxPyEndBlockThreads(blocked); | |
1263 | return rval; | |
1264 | } | |
1265 | ||
1266 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1267 | // For this one we simply need to make a string from buf and len | |
1268 | // and send it to the Python method. | |
1269 | bool rval = False; | |
1270 | bool blocked = wxPyBeginBlockThreads(); | |
1271 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1272 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1273 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1274 | Py_DECREF(data); | |
1275 | } | |
1276 | wxPyEndBlockThreads(blocked); | |
1277 | return rval; | |
1278 | } | |
1279 | ||
1280 | // Create a new class for wxPython to use | |
1281 | class wxPyTextDataObject : public wxTextDataObject { | |
1282 | public: | |
1283 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1284 | : wxTextDataObject(text) {} | |
1285 | ||
1286 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1287 | DEC_PYCALLBACK_STRING__const(GetText); | |
1288 | DEC_PYCALLBACK__STRING(SetText); | |
1289 | PYPRIVATE; | |
1290 | }; | |
1291 | ||
1292 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1293 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1294 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1295 | ||
1296 | ||
1297 | // Create a new class for wxPython to use | |
1298 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1299 | public: | |
1300 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1301 | : wxBitmapDataObject(bitmap) {} | |
1302 | ||
1303 | wxBitmap GetBitmap() const; | |
1304 | void SetBitmap(const wxBitmap& bitmap); | |
1305 | PYPRIVATE; | |
1306 | }; | |
1307 | ||
1308 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1309 | wxBitmap* rval = &wxNullBitmap; | |
1310 | bool blocked = wxPyBeginBlockThreads(); | |
1311 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1312 | PyObject* ro; | |
1313 | wxBitmap* ptr; | |
1314 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1315 | if (ro) { | |
1316 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1317 | rval = ptr; | |
1318 | Py_DECREF(ro); | |
1319 | } | |
1320 | } | |
1321 | wxPyEndBlockThreads(blocked); | |
1322 | return *rval; | |
1323 | } | |
1324 | ||
1325 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1326 | bool blocked = wxPyBeginBlockThreads(); | |
1327 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
1328 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); | |
1329 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
1330 | Py_DECREF(bo); | |
1331 | } | |
1332 | wxPyEndBlockThreads(blocked); | |
1333 | } | |
1334 | ||
1335 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1336 | if (PyString_Check(data)) { | |
1337 | // for Python we just call SetData here since we always need it to make a copy. | |
1338 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1339 | } | |
1340 | else { | |
1341 | // raise a TypeError if not a string | |
1342 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1343 | } | |
1344 | } | |
1345 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1346 | if (PyString_Check(data)) { | |
1347 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1348 | } | |
1349 | else { | |
1350 | // raise a TypeError if not a string | |
1351 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1352 | return False; | |
1353 | } | |
1354 | } | |
1355 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1356 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1357 | } | |
1358 | ||
1359 | #include <wx/metafile.h> | |
1360 | ||
1361 | ||
1362 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1363 | ||
1364 | ||
1365 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1366 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1367 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1368 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1369 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1370 | ||
1371 | ||
1372 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1373 | public: | |
1374 | wxPyTextDropTarget() {} | |
1375 | ||
1376 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1377 | ||
1378 | DEC_PYCALLBACK__(OnLeave); | |
1379 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1380 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1381 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1382 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1383 | ||
1384 | PYPRIVATE; | |
1385 | }; | |
1386 | ||
1387 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1388 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1389 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1390 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1391 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1392 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1393 | ||
1394 | ||
1395 | ||
1396 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1397 | public: | |
1398 | wxPyFileDropTarget() {} | |
1399 | ||
1400 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1401 | ||
1402 | DEC_PYCALLBACK__(OnLeave); | |
1403 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1404 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1405 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1406 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1407 | ||
1408 | PYPRIVATE; | |
1409 | }; | |
1410 | ||
1411 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1412 | const wxArrayString& filenames) { | |
1413 | bool rval = False; | |
1414 | bool blocked = wxPyBeginBlockThreads(); | |
1415 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1416 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1417 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1418 | Py_DECREF(list); | |
1419 | } | |
1420 | wxPyEndBlockThreads(blocked); | |
1421 | return rval; | |
1422 | } | |
1423 | ||
1424 | ||
1425 | ||
1426 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1427 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1428 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1429 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1430 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1431 | ||
1432 | ||
1433 | ||
1434 | ||
1435 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1436 | ||
1437 | #include "wx/display.h" | |
1438 | ||
1439 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1440 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1441 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1442 | PyObject* pyList = NULL; | |
1443 | wxArrayVideoModes arr = self->GetModes(mode); | |
1444 | bool blocked = wxPyBeginBlockThreads(); | |
1445 | pyList = PyList_New(0); | |
1446 | for (int i=0; i < arr.GetCount(); i++) { | |
1447 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1448 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1449 | PyList_Append(pyList, pyObj); | |
1450 | } | |
1451 | wxPyEndBlockThreads(blocked); | |
1452 | return pyList; | |
1453 | } | |
1454 | #ifdef __cplusplus | |
1455 | extern "C" { | |
1456 | #endif | |
1457 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1458 | PyObject *resultobj; | |
1459 | int arg1 ; | |
1460 | wxColour result; | |
1461 | PyObject * obj0 = 0 ; | |
1462 | char *kwnames[] = { | |
1463 | (char *) "index", NULL | |
1464 | }; | |
1465 | ||
1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
1467 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); | |
1468 | if (PyErr_Occurred()) SWIG_fail; | |
1469 | { | |
1470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1471 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1472 | ||
1473 | wxPyEndAllowThreads(__tstate); | |
1474 | if (PyErr_Occurred()) SWIG_fail; | |
1475 | } | |
1476 | { | |
1477 | wxColour * resultptr; | |
1478 | resultptr = new wxColour((wxColour &) result); | |
1479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1480 | } | |
1481 | return resultobj; | |
1482 | fail: | |
1483 | return NULL; | |
1484 | } | |
1485 | ||
1486 | ||
1487 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1488 | PyObject *resultobj; | |
1489 | int arg1 ; | |
1490 | wxFont result; | |
1491 | PyObject * obj0 = 0 ; | |
1492 | char *kwnames[] = { | |
1493 | (char *) "index", NULL | |
1494 | }; | |
1495 | ||
1496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
1497 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); | |
1498 | if (PyErr_Occurred()) SWIG_fail; | |
1499 | { | |
1500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1501 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1502 | ||
1503 | wxPyEndAllowThreads(__tstate); | |
1504 | if (PyErr_Occurred()) SWIG_fail; | |
1505 | } | |
1506 | { | |
1507 | wxFont * resultptr; | |
1508 | resultptr = new wxFont((wxFont &) result); | |
1509 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1510 | } | |
1511 | return resultobj; | |
1512 | fail: | |
1513 | return NULL; | |
1514 | } | |
1515 | ||
1516 | ||
1517 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1518 | PyObject *resultobj; | |
1519 | int arg1 ; | |
1520 | int result; | |
1521 | PyObject * obj0 = 0 ; | |
1522 | char *kwnames[] = { | |
1523 | (char *) "index", NULL | |
1524 | }; | |
1525 | ||
1526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
1527 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); | |
1528 | if (PyErr_Occurred()) SWIG_fail; | |
1529 | { | |
1530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1531 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1532 | ||
1533 | wxPyEndAllowThreads(__tstate); | |
1534 | if (PyErr_Occurred()) SWIG_fail; | |
1535 | } | |
1536 | resultobj = SWIG_FromInt((int)result); | |
1537 | return resultobj; | |
1538 | fail: | |
1539 | return NULL; | |
1540 | } | |
1541 | ||
1542 | ||
1543 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1544 | PyObject *resultobj; | |
1545 | int arg1 ; | |
1546 | bool result; | |
1547 | PyObject * obj0 = 0 ; | |
1548 | char *kwnames[] = { | |
1549 | (char *) "index", NULL | |
1550 | }; | |
1551 | ||
1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
1553 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); | |
1554 | if (PyErr_Occurred()) SWIG_fail; | |
1555 | { | |
1556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1557 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1558 | ||
1559 | wxPyEndAllowThreads(__tstate); | |
1560 | if (PyErr_Occurred()) SWIG_fail; | |
1561 | } | |
1562 | { | |
1563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1564 | } | |
1565 | return resultobj; | |
1566 | fail: | |
1567 | return NULL; | |
1568 | } | |
1569 | ||
1570 | ||
1571 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1572 | PyObject *resultobj; | |
1573 | int result; | |
1574 | char *kwnames[] = { | |
1575 | NULL | |
1576 | }; | |
1577 | ||
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1579 | { | |
1580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1581 | result = (int)wxSystemSettings::GetScreenType(); | |
1582 | ||
1583 | wxPyEndAllowThreads(__tstate); | |
1584 | if (PyErr_Occurred()) SWIG_fail; | |
1585 | } | |
1586 | resultobj = SWIG_FromInt((int)result); | |
1587 | return resultobj; | |
1588 | fail: | |
1589 | return NULL; | |
1590 | } | |
1591 | ||
1592 | ||
1593 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1594 | PyObject *resultobj; | |
1595 | int arg1 ; | |
1596 | PyObject * obj0 = 0 ; | |
1597 | char *kwnames[] = { | |
1598 | (char *) "screen", NULL | |
1599 | }; | |
1600 | ||
1601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
1602 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); | |
1603 | if (PyErr_Occurred()) SWIG_fail; | |
1604 | { | |
1605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1606 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1607 | ||
1608 | wxPyEndAllowThreads(__tstate); | |
1609 | if (PyErr_Occurred()) SWIG_fail; | |
1610 | } | |
1611 | Py_INCREF(Py_None); resultobj = Py_None; | |
1612 | return resultobj; | |
1613 | fail: | |
1614 | return NULL; | |
1615 | } | |
1616 | ||
1617 | ||
1618 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1619 | PyObject *obj; | |
1620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1621 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1622 | Py_INCREF(obj); | |
1623 | return Py_BuildValue((char *)""); | |
1624 | } | |
1625 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1626 | PyObject *resultobj; | |
1627 | wxSystemOptions *result; | |
1628 | char *kwnames[] = { | |
1629 | NULL | |
1630 | }; | |
1631 | ||
1632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1633 | { | |
1634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1635 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1636 | ||
1637 | wxPyEndAllowThreads(__tstate); | |
1638 | if (PyErr_Occurred()) SWIG_fail; | |
1639 | } | |
1640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
1641 | return resultobj; | |
1642 | fail: | |
1643 | return NULL; | |
1644 | } | |
1645 | ||
1646 | ||
1647 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1648 | PyObject *resultobj; | |
1649 | wxString *arg1 = 0 ; | |
1650 | wxString *arg2 = 0 ; | |
1651 | bool temp1 = False ; | |
1652 | bool temp2 = False ; | |
1653 | PyObject * obj0 = 0 ; | |
1654 | PyObject * obj1 = 0 ; | |
1655 | char *kwnames[] = { | |
1656 | (char *) "name",(char *) "value", NULL | |
1657 | }; | |
1658 | ||
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1660 | { | |
1661 | arg1 = wxString_in_helper(obj0); | |
1662 | if (arg1 == NULL) SWIG_fail; | |
1663 | temp1 = True; | |
1664 | } | |
1665 | { | |
1666 | arg2 = wxString_in_helper(obj1); | |
1667 | if (arg2 == NULL) SWIG_fail; | |
1668 | temp2 = True; | |
1669 | } | |
1670 | { | |
1671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1672 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1673 | ||
1674 | wxPyEndAllowThreads(__tstate); | |
1675 | if (PyErr_Occurred()) SWIG_fail; | |
1676 | } | |
1677 | Py_INCREF(Py_None); resultobj = Py_None; | |
1678 | { | |
1679 | if (temp1) | |
1680 | delete arg1; | |
1681 | } | |
1682 | { | |
1683 | if (temp2) | |
1684 | delete arg2; | |
1685 | } | |
1686 | return resultobj; | |
1687 | fail: | |
1688 | { | |
1689 | if (temp1) | |
1690 | delete arg1; | |
1691 | } | |
1692 | { | |
1693 | if (temp2) | |
1694 | delete arg2; | |
1695 | } | |
1696 | return NULL; | |
1697 | } | |
1698 | ||
1699 | ||
1700 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject *resultobj; | |
1702 | wxString *arg1 = 0 ; | |
1703 | int arg2 ; | |
1704 | bool temp1 = False ; | |
1705 | PyObject * obj0 = 0 ; | |
1706 | PyObject * obj1 = 0 ; | |
1707 | char *kwnames[] = { | |
1708 | (char *) "name",(char *) "value", NULL | |
1709 | }; | |
1710 | ||
1711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
1712 | { | |
1713 | arg1 = wxString_in_helper(obj0); | |
1714 | if (arg1 == NULL) SWIG_fail; | |
1715 | temp1 = True; | |
1716 | } | |
1717 | arg2 = (int) SWIG_AsInt(obj1); | |
1718 | if (PyErr_Occurred()) SWIG_fail; | |
1719 | { | |
1720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1721 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1722 | ||
1723 | wxPyEndAllowThreads(__tstate); | |
1724 | if (PyErr_Occurred()) SWIG_fail; | |
1725 | } | |
1726 | Py_INCREF(Py_None); resultobj = Py_None; | |
1727 | { | |
1728 | if (temp1) | |
1729 | delete arg1; | |
1730 | } | |
1731 | return resultobj; | |
1732 | fail: | |
1733 | { | |
1734 | if (temp1) | |
1735 | delete arg1; | |
1736 | } | |
1737 | return NULL; | |
1738 | } | |
1739 | ||
1740 | ||
1741 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1742 | PyObject *resultobj; | |
1743 | wxString *arg1 = 0 ; | |
1744 | wxString result; | |
1745 | bool temp1 = False ; | |
1746 | PyObject * obj0 = 0 ; | |
1747 | char *kwnames[] = { | |
1748 | (char *) "name", NULL | |
1749 | }; | |
1750 | ||
1751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1752 | { | |
1753 | arg1 = wxString_in_helper(obj0); | |
1754 | if (arg1 == NULL) SWIG_fail; | |
1755 | temp1 = True; | |
1756 | } | |
1757 | { | |
1758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1759 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1760 | ||
1761 | wxPyEndAllowThreads(__tstate); | |
1762 | if (PyErr_Occurred()) SWIG_fail; | |
1763 | } | |
1764 | { | |
1765 | #if wxUSE_UNICODE | |
1766 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1767 | #else | |
1768 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1769 | #endif | |
1770 | } | |
1771 | { | |
1772 | if (temp1) | |
1773 | delete arg1; | |
1774 | } | |
1775 | return resultobj; | |
1776 | fail: | |
1777 | { | |
1778 | if (temp1) | |
1779 | delete arg1; | |
1780 | } | |
1781 | return NULL; | |
1782 | } | |
1783 | ||
1784 | ||
1785 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1786 | PyObject *resultobj; | |
1787 | wxString *arg1 = 0 ; | |
1788 | int result; | |
1789 | bool temp1 = False ; | |
1790 | PyObject * obj0 = 0 ; | |
1791 | char *kwnames[] = { | |
1792 | (char *) "name", NULL | |
1793 | }; | |
1794 | ||
1795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1796 | { | |
1797 | arg1 = wxString_in_helper(obj0); | |
1798 | if (arg1 == NULL) SWIG_fail; | |
1799 | temp1 = True; | |
1800 | } | |
1801 | { | |
1802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1803 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1804 | ||
1805 | wxPyEndAllowThreads(__tstate); | |
1806 | if (PyErr_Occurred()) SWIG_fail; | |
1807 | } | |
1808 | resultobj = SWIG_FromInt((int)result); | |
1809 | { | |
1810 | if (temp1) | |
1811 | delete arg1; | |
1812 | } | |
1813 | return resultobj; | |
1814 | fail: | |
1815 | { | |
1816 | if (temp1) | |
1817 | delete arg1; | |
1818 | } | |
1819 | return NULL; | |
1820 | } | |
1821 | ||
1822 | ||
1823 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1824 | PyObject *resultobj; | |
1825 | wxString *arg1 = 0 ; | |
1826 | bool result; | |
1827 | bool temp1 = False ; | |
1828 | PyObject * obj0 = 0 ; | |
1829 | char *kwnames[] = { | |
1830 | (char *) "name", NULL | |
1831 | }; | |
1832 | ||
1833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1834 | { | |
1835 | arg1 = wxString_in_helper(obj0); | |
1836 | if (arg1 == NULL) SWIG_fail; | |
1837 | temp1 = True; | |
1838 | } | |
1839 | { | |
1840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1841 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1842 | ||
1843 | wxPyEndAllowThreads(__tstate); | |
1844 | if (PyErr_Occurred()) SWIG_fail; | |
1845 | } | |
1846 | { | |
1847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1848 | } | |
1849 | { | |
1850 | if (temp1) | |
1851 | delete arg1; | |
1852 | } | |
1853 | return resultobj; | |
1854 | fail: | |
1855 | { | |
1856 | if (temp1) | |
1857 | delete arg1; | |
1858 | } | |
1859 | return NULL; | |
1860 | } | |
1861 | ||
1862 | ||
1863 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1864 | PyObject *obj; | |
1865 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1866 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1867 | Py_INCREF(obj); | |
1868 | return Py_BuildValue((char *)""); | |
1869 | } | |
1870 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
1871 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1872 | return 1; | |
1873 | } | |
1874 | ||
1875 | ||
1876 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1877 | PyObject *pyobj; | |
1878 | ||
1879 | { | |
1880 | #if wxUSE_UNICODE | |
1881 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1882 | #else | |
1883 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1884 | #endif | |
1885 | } | |
1886 | return pyobj; | |
1887 | } | |
1888 | ||
1889 | ||
1890 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1891 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1892 | return 1; | |
1893 | } | |
1894 | ||
1895 | ||
1896 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1897 | PyObject *pyobj; | |
1898 | ||
1899 | { | |
1900 | #if wxUSE_UNICODE | |
1901 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1902 | #else | |
1903 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1904 | #endif | |
1905 | } | |
1906 | return pyobj; | |
1907 | } | |
1908 | ||
1909 | ||
1910 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1911 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1912 | return 1; | |
1913 | } | |
1914 | ||
1915 | ||
1916 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1917 | PyObject *pyobj; | |
1918 | ||
1919 | { | |
1920 | #if wxUSE_UNICODE | |
1921 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1922 | #else | |
1923 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1924 | #endif | |
1925 | } | |
1926 | return pyobj; | |
1927 | } | |
1928 | ||
1929 | ||
1930 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1931 | PyObject *resultobj; | |
1932 | long result; | |
1933 | char *kwnames[] = { | |
1934 | NULL | |
1935 | }; | |
1936 | ||
1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1938 | { | |
1939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1940 | result = (long)wxNewId(); | |
1941 | ||
1942 | wxPyEndAllowThreads(__tstate); | |
1943 | if (PyErr_Occurred()) SWIG_fail; | |
1944 | } | |
1945 | resultobj = SWIG_FromLong((long)result); | |
1946 | return resultobj; | |
1947 | fail: | |
1948 | return NULL; | |
1949 | } | |
1950 | ||
1951 | ||
1952 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1953 | PyObject *resultobj; | |
1954 | long arg1 ; | |
1955 | PyObject * obj0 = 0 ; | |
1956 | char *kwnames[] = { | |
1957 | (char *) "id", NULL | |
1958 | }; | |
1959 | ||
1960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
1961 | arg1 = (long) SWIG_AsLong(obj0); | |
1962 | if (PyErr_Occurred()) SWIG_fail; | |
1963 | { | |
1964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1965 | wxRegisterId(arg1); | |
1966 | ||
1967 | wxPyEndAllowThreads(__tstate); | |
1968 | if (PyErr_Occurred()) SWIG_fail; | |
1969 | } | |
1970 | Py_INCREF(Py_None); resultobj = Py_None; | |
1971 | return resultobj; | |
1972 | fail: | |
1973 | return NULL; | |
1974 | } | |
1975 | ||
1976 | ||
1977 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1978 | PyObject *resultobj; | |
1979 | long result; | |
1980 | char *kwnames[] = { | |
1981 | NULL | |
1982 | }; | |
1983 | ||
1984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1985 | { | |
1986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1987 | result = (long)wxGetCurrentId(); | |
1988 | ||
1989 | wxPyEndAllowThreads(__tstate); | |
1990 | if (PyErr_Occurred()) SWIG_fail; | |
1991 | } | |
1992 | resultobj = SWIG_FromLong((long)result); | |
1993 | return resultobj; | |
1994 | fail: | |
1995 | return NULL; | |
1996 | } | |
1997 | ||
1998 | ||
1999 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2000 | PyObject *resultobj; | |
2001 | char *kwnames[] = { | |
2002 | NULL | |
2003 | }; | |
2004 | ||
2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2006 | { | |
2007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2008 | wxBell(); | |
2009 | ||
2010 | wxPyEndAllowThreads(__tstate); | |
2011 | if (PyErr_Occurred()) SWIG_fail; | |
2012 | } | |
2013 | Py_INCREF(Py_None); resultobj = Py_None; | |
2014 | return resultobj; | |
2015 | fail: | |
2016 | return NULL; | |
2017 | } | |
2018 | ||
2019 | ||
2020 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2021 | PyObject *resultobj; | |
2022 | char *kwnames[] = { | |
2023 | NULL | |
2024 | }; | |
2025 | ||
2026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2027 | { | |
2028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2029 | wxEndBusyCursor(); | |
2030 | ||
2031 | wxPyEndAllowThreads(__tstate); | |
2032 | if (PyErr_Occurred()) SWIG_fail; | |
2033 | } | |
2034 | Py_INCREF(Py_None); resultobj = Py_None; | |
2035 | return resultobj; | |
2036 | fail: | |
2037 | return NULL; | |
2038 | } | |
2039 | ||
2040 | ||
2041 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2042 | PyObject *resultobj; | |
2043 | bool arg1 = (bool) True ; | |
2044 | long result; | |
2045 | PyObject * obj0 = 0 ; | |
2046 | char *kwnames[] = { | |
2047 | (char *) "resetTimer", NULL | |
2048 | }; | |
2049 | ||
2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2051 | if (obj0) { | |
2052 | arg1 = (bool) SWIG_AsBool(obj0); | |
2053 | if (PyErr_Occurred()) SWIG_fail; | |
2054 | } | |
2055 | { | |
2056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2057 | result = (long)wxGetElapsedTime(arg1); | |
2058 | ||
2059 | wxPyEndAllowThreads(__tstate); | |
2060 | if (PyErr_Occurred()) SWIG_fail; | |
2061 | } | |
2062 | resultobj = SWIG_FromLong((long)result); | |
2063 | return resultobj; | |
2064 | fail: | |
2065 | return NULL; | |
2066 | } | |
2067 | ||
2068 | ||
2069 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2070 | PyObject *resultobj; | |
2071 | int *arg1 = (int *) 0 ; | |
2072 | int *arg2 = (int *) 0 ; | |
2073 | int temp1 ; | |
2074 | int temp2 ; | |
2075 | char *kwnames[] = { | |
2076 | NULL | |
2077 | }; | |
2078 | ||
2079 | arg1 = &temp1; | |
2080 | arg2 = &temp2; | |
2081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2082 | { | |
2083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2084 | wxGetMousePosition(arg1,arg2); | |
2085 | ||
2086 | wxPyEndAllowThreads(__tstate); | |
2087 | if (PyErr_Occurred()) SWIG_fail; | |
2088 | } | |
2089 | Py_INCREF(Py_None); resultobj = Py_None; | |
2090 | { | |
2091 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2092 | resultobj = t_output_helper(resultobj,o); | |
2093 | } | |
2094 | { | |
2095 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2096 | resultobj = t_output_helper(resultobj,o); | |
2097 | } | |
2098 | return resultobj; | |
2099 | fail: | |
2100 | return NULL; | |
2101 | } | |
2102 | ||
2103 | ||
2104 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2105 | PyObject *resultobj; | |
2106 | bool result; | |
2107 | char *kwnames[] = { | |
2108 | NULL | |
2109 | }; | |
2110 | ||
2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2112 | { | |
2113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2114 | result = (bool)wxIsBusy(); | |
2115 | ||
2116 | wxPyEndAllowThreads(__tstate); | |
2117 | if (PyErr_Occurred()) SWIG_fail; | |
2118 | } | |
2119 | { | |
2120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2121 | } | |
2122 | return resultobj; | |
2123 | fail: | |
2124 | return NULL; | |
2125 | } | |
2126 | ||
2127 | ||
2128 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2129 | PyObject *resultobj; | |
2130 | wxString result; | |
2131 | char *kwnames[] = { | |
2132 | NULL | |
2133 | }; | |
2134 | ||
2135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2136 | { | |
2137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2138 | result = wxNow(); | |
2139 | ||
2140 | wxPyEndAllowThreads(__tstate); | |
2141 | if (PyErr_Occurred()) SWIG_fail; | |
2142 | } | |
2143 | { | |
2144 | #if wxUSE_UNICODE | |
2145 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2146 | #else | |
2147 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2148 | #endif | |
2149 | } | |
2150 | return resultobj; | |
2151 | fail: | |
2152 | return NULL; | |
2153 | } | |
2154 | ||
2155 | ||
2156 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2157 | PyObject *resultobj; | |
2158 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2159 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2160 | bool result; | |
2161 | bool temp1 = False ; | |
2162 | PyObject * obj0 = 0 ; | |
2163 | char *kwnames[] = { | |
2164 | (char *) "command", NULL | |
2165 | }; | |
2166 | ||
2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2168 | if (obj0) { | |
2169 | { | |
2170 | arg1 = wxString_in_helper(obj0); | |
2171 | if (arg1 == NULL) SWIG_fail; | |
2172 | temp1 = True; | |
2173 | } | |
2174 | } | |
2175 | { | |
2176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2177 | result = (bool)wxShell((wxString const &)*arg1); | |
2178 | ||
2179 | wxPyEndAllowThreads(__tstate); | |
2180 | if (PyErr_Occurred()) SWIG_fail; | |
2181 | } | |
2182 | { | |
2183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2184 | } | |
2185 | { | |
2186 | if (temp1) | |
2187 | delete arg1; | |
2188 | } | |
2189 | return resultobj; | |
2190 | fail: | |
2191 | { | |
2192 | if (temp1) | |
2193 | delete arg1; | |
2194 | } | |
2195 | return NULL; | |
2196 | } | |
2197 | ||
2198 | ||
2199 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2200 | PyObject *resultobj; | |
2201 | char *kwnames[] = { | |
2202 | NULL | |
2203 | }; | |
2204 | ||
2205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2206 | { | |
2207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2208 | wxStartTimer(); | |
2209 | ||
2210 | wxPyEndAllowThreads(__tstate); | |
2211 | if (PyErr_Occurred()) SWIG_fail; | |
2212 | } | |
2213 | Py_INCREF(Py_None); resultobj = Py_None; | |
2214 | return resultobj; | |
2215 | fail: | |
2216 | return NULL; | |
2217 | } | |
2218 | ||
2219 | ||
2220 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2221 | PyObject *resultobj; | |
2222 | int *arg1 = (int *) 0 ; | |
2223 | int *arg2 = (int *) 0 ; | |
2224 | int result; | |
2225 | int temp1 ; | |
2226 | int temp2 ; | |
2227 | char *kwnames[] = { | |
2228 | NULL | |
2229 | }; | |
2230 | ||
2231 | arg1 = &temp1; | |
2232 | arg2 = &temp2; | |
2233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2234 | { | |
2235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2236 | result = (int)wxGetOsVersion(arg1,arg2); | |
2237 | ||
2238 | wxPyEndAllowThreads(__tstate); | |
2239 | if (PyErr_Occurred()) SWIG_fail; | |
2240 | } | |
2241 | resultobj = SWIG_FromInt((int)result); | |
2242 | { | |
2243 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2244 | resultobj = t_output_helper(resultobj,o); | |
2245 | } | |
2246 | { | |
2247 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2248 | resultobj = t_output_helper(resultobj,o); | |
2249 | } | |
2250 | return resultobj; | |
2251 | fail: | |
2252 | return NULL; | |
2253 | } | |
2254 | ||
2255 | ||
2256 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2257 | PyObject *resultobj; | |
2258 | wxString result; | |
2259 | char *kwnames[] = { | |
2260 | NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2264 | { | |
2265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2266 | result = wxGetOsDescription(); | |
2267 | ||
2268 | wxPyEndAllowThreads(__tstate); | |
2269 | if (PyErr_Occurred()) SWIG_fail; | |
2270 | } | |
2271 | { | |
2272 | #if wxUSE_UNICODE | |
2273 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2274 | #else | |
2275 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2276 | #endif | |
2277 | } | |
2278 | return resultobj; | |
2279 | fail: | |
2280 | return NULL; | |
2281 | } | |
2282 | ||
2283 | ||
2284 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2285 | PyObject *resultobj; | |
2286 | long result; | |
2287 | char *kwnames[] = { | |
2288 | NULL | |
2289 | }; | |
2290 | ||
2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2292 | { | |
2293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2294 | result = (long)wxGetFreeMemory(); | |
2295 | ||
2296 | wxPyEndAllowThreads(__tstate); | |
2297 | if (PyErr_Occurred()) SWIG_fail; | |
2298 | } | |
2299 | resultobj = SWIG_FromLong((long)result); | |
2300 | return resultobj; | |
2301 | fail: | |
2302 | return NULL; | |
2303 | } | |
2304 | ||
2305 | ||
2306 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2307 | PyObject *resultobj; | |
2308 | int arg1 ; | |
2309 | bool result; | |
2310 | PyObject * obj0 = 0 ; | |
2311 | char *kwnames[] = { | |
2312 | (char *) "wFlags", NULL | |
2313 | }; | |
2314 | ||
2315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
2316 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); | |
2317 | if (PyErr_Occurred()) SWIG_fail; | |
2318 | { | |
2319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2320 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2321 | ||
2322 | wxPyEndAllowThreads(__tstate); | |
2323 | if (PyErr_Occurred()) SWIG_fail; | |
2324 | } | |
2325 | { | |
2326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2327 | } | |
2328 | return resultobj; | |
2329 | fail: | |
2330 | return NULL; | |
2331 | } | |
2332 | ||
2333 | ||
2334 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2335 | PyObject *resultobj; | |
2336 | int arg1 ; | |
2337 | PyObject * obj0 = 0 ; | |
2338 | char *kwnames[] = { | |
2339 | (char *) "secs", NULL | |
2340 | }; | |
2341 | ||
2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
2343 | arg1 = (int) SWIG_AsInt(obj0); | |
2344 | if (PyErr_Occurred()) SWIG_fail; | |
2345 | { | |
2346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2347 | wxSleep(arg1); | |
2348 | ||
2349 | wxPyEndAllowThreads(__tstate); | |
2350 | if (PyErr_Occurred()) SWIG_fail; | |
2351 | } | |
2352 | Py_INCREF(Py_None); resultobj = Py_None; | |
2353 | return resultobj; | |
2354 | fail: | |
2355 | return NULL; | |
2356 | } | |
2357 | ||
2358 | ||
2359 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2360 | PyObject *resultobj; | |
2361 | unsigned long arg1 ; | |
2362 | PyObject * obj0 = 0 ; | |
2363 | char *kwnames[] = { | |
2364 | (char *) "milliseconds", NULL | |
2365 | }; | |
2366 | ||
2367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
2368 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
2369 | if (PyErr_Occurred()) SWIG_fail; | |
2370 | { | |
2371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2372 | wxUsleep(arg1); | |
2373 | ||
2374 | wxPyEndAllowThreads(__tstate); | |
2375 | if (PyErr_Occurred()) SWIG_fail; | |
2376 | } | |
2377 | Py_INCREF(Py_None); resultobj = Py_None; | |
2378 | return resultobj; | |
2379 | fail: | |
2380 | return NULL; | |
2381 | } | |
2382 | ||
2383 | ||
2384 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2385 | PyObject *resultobj; | |
2386 | bool arg1 ; | |
2387 | PyObject * obj0 = 0 ; | |
2388 | char *kwnames[] = { | |
2389 | (char *) "enable", NULL | |
2390 | }; | |
2391 | ||
2392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2393 | arg1 = (bool) SWIG_AsBool(obj0); | |
2394 | if (PyErr_Occurred()) SWIG_fail; | |
2395 | { | |
2396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2397 | wxEnableTopLevelWindows(arg1); | |
2398 | ||
2399 | wxPyEndAllowThreads(__tstate); | |
2400 | if (PyErr_Occurred()) SWIG_fail; | |
2401 | } | |
2402 | Py_INCREF(Py_None); resultobj = Py_None; | |
2403 | return resultobj; | |
2404 | fail: | |
2405 | return NULL; | |
2406 | } | |
2407 | ||
2408 | ||
2409 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2410 | PyObject *resultobj; | |
2411 | wxString *arg1 = 0 ; | |
2412 | wxString result; | |
2413 | bool temp1 = False ; | |
2414 | PyObject * obj0 = 0 ; | |
2415 | char *kwnames[] = { | |
2416 | (char *) "in", NULL | |
2417 | }; | |
2418 | ||
2419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2420 | { | |
2421 | arg1 = wxString_in_helper(obj0); | |
2422 | if (arg1 == NULL) SWIG_fail; | |
2423 | temp1 = True; | |
2424 | } | |
2425 | { | |
2426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2427 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2428 | ||
2429 | wxPyEndAllowThreads(__tstate); | |
2430 | if (PyErr_Occurred()) SWIG_fail; | |
2431 | } | |
2432 | { | |
2433 | #if wxUSE_UNICODE | |
2434 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2435 | #else | |
2436 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2437 | #endif | |
2438 | } | |
2439 | { | |
2440 | if (temp1) | |
2441 | delete arg1; | |
2442 | } | |
2443 | return resultobj; | |
2444 | fail: | |
2445 | { | |
2446 | if (temp1) | |
2447 | delete arg1; | |
2448 | } | |
2449 | return NULL; | |
2450 | } | |
2451 | ||
2452 | ||
2453 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2454 | PyObject *resultobj; | |
2455 | wxString result; | |
2456 | char *kwnames[] = { | |
2457 | NULL | |
2458 | }; | |
2459 | ||
2460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2461 | { | |
2462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2463 | result = wxGetEmailAddress(); | |
2464 | ||
2465 | wxPyEndAllowThreads(__tstate); | |
2466 | if (PyErr_Occurred()) SWIG_fail; | |
2467 | } | |
2468 | { | |
2469 | #if wxUSE_UNICODE | |
2470 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2471 | #else | |
2472 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2473 | #endif | |
2474 | } | |
2475 | return resultobj; | |
2476 | fail: | |
2477 | return NULL; | |
2478 | } | |
2479 | ||
2480 | ||
2481 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2482 | PyObject *resultobj; | |
2483 | wxString result; | |
2484 | char *kwnames[] = { | |
2485 | NULL | |
2486 | }; | |
2487 | ||
2488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2489 | { | |
2490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2491 | result = wxGetHostName(); | |
2492 | ||
2493 | wxPyEndAllowThreads(__tstate); | |
2494 | if (PyErr_Occurred()) SWIG_fail; | |
2495 | } | |
2496 | { | |
2497 | #if wxUSE_UNICODE | |
2498 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2499 | #else | |
2500 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2501 | #endif | |
2502 | } | |
2503 | return resultobj; | |
2504 | fail: | |
2505 | return NULL; | |
2506 | } | |
2507 | ||
2508 | ||
2509 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2510 | PyObject *resultobj; | |
2511 | wxString result; | |
2512 | char *kwnames[] = { | |
2513 | NULL | |
2514 | }; | |
2515 | ||
2516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2517 | { | |
2518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2519 | result = wxGetFullHostName(); | |
2520 | ||
2521 | wxPyEndAllowThreads(__tstate); | |
2522 | if (PyErr_Occurred()) SWIG_fail; | |
2523 | } | |
2524 | { | |
2525 | #if wxUSE_UNICODE | |
2526 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2527 | #else | |
2528 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2529 | #endif | |
2530 | } | |
2531 | return resultobj; | |
2532 | fail: | |
2533 | return NULL; | |
2534 | } | |
2535 | ||
2536 | ||
2537 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2538 | PyObject *resultobj; | |
2539 | wxString result; | |
2540 | char *kwnames[] = { | |
2541 | NULL | |
2542 | }; | |
2543 | ||
2544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2545 | { | |
2546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2547 | result = wxGetUserId(); | |
2548 | ||
2549 | wxPyEndAllowThreads(__tstate); | |
2550 | if (PyErr_Occurred()) SWIG_fail; | |
2551 | } | |
2552 | { | |
2553 | #if wxUSE_UNICODE | |
2554 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2555 | #else | |
2556 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2557 | #endif | |
2558 | } | |
2559 | return resultobj; | |
2560 | fail: | |
2561 | return NULL; | |
2562 | } | |
2563 | ||
2564 | ||
2565 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2566 | PyObject *resultobj; | |
2567 | wxString result; | |
2568 | char *kwnames[] = { | |
2569 | NULL | |
2570 | }; | |
2571 | ||
2572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2573 | { | |
2574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2575 | result = wxGetUserName(); | |
2576 | ||
2577 | wxPyEndAllowThreads(__tstate); | |
2578 | if (PyErr_Occurred()) SWIG_fail; | |
2579 | } | |
2580 | { | |
2581 | #if wxUSE_UNICODE | |
2582 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2583 | #else | |
2584 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2585 | #endif | |
2586 | } | |
2587 | return resultobj; | |
2588 | fail: | |
2589 | return NULL; | |
2590 | } | |
2591 | ||
2592 | ||
2593 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2594 | PyObject *resultobj; | |
2595 | wxString result; | |
2596 | char *kwnames[] = { | |
2597 | NULL | |
2598 | }; | |
2599 | ||
2600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2601 | { | |
2602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2603 | result = wxGetHomeDir(); | |
2604 | ||
2605 | wxPyEndAllowThreads(__tstate); | |
2606 | if (PyErr_Occurred()) SWIG_fail; | |
2607 | } | |
2608 | { | |
2609 | #if wxUSE_UNICODE | |
2610 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2611 | #else | |
2612 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2613 | #endif | |
2614 | } | |
2615 | return resultobj; | |
2616 | fail: | |
2617 | return NULL; | |
2618 | } | |
2619 | ||
2620 | ||
2621 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2622 | PyObject *resultobj; | |
2623 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2624 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2625 | wxString result; | |
2626 | bool temp1 = False ; | |
2627 | PyObject * obj0 = 0 ; | |
2628 | char *kwnames[] = { | |
2629 | (char *) "user", NULL | |
2630 | }; | |
2631 | ||
2632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2633 | if (obj0) { | |
2634 | { | |
2635 | arg1 = wxString_in_helper(obj0); | |
2636 | if (arg1 == NULL) SWIG_fail; | |
2637 | temp1 = True; | |
2638 | } | |
2639 | } | |
2640 | { | |
2641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2642 | result = wxGetUserHome((wxString const &)*arg1); | |
2643 | ||
2644 | wxPyEndAllowThreads(__tstate); | |
2645 | if (PyErr_Occurred()) SWIG_fail; | |
2646 | } | |
2647 | { | |
2648 | #if wxUSE_UNICODE | |
2649 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2650 | #else | |
2651 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2652 | #endif | |
2653 | } | |
2654 | { | |
2655 | if (temp1) | |
2656 | delete arg1; | |
2657 | } | |
2658 | return resultobj; | |
2659 | fail: | |
2660 | { | |
2661 | if (temp1) | |
2662 | delete arg1; | |
2663 | } | |
2664 | return NULL; | |
2665 | } | |
2666 | ||
2667 | ||
2668 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2669 | PyObject *resultobj; | |
2670 | unsigned long result; | |
2671 | char *kwnames[] = { | |
2672 | NULL | |
2673 | }; | |
2674 | ||
2675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2676 | { | |
2677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2678 | result = (unsigned long)wxGetProcessId(); | |
2679 | ||
2680 | wxPyEndAllowThreads(__tstate); | |
2681 | if (PyErr_Occurred()) SWIG_fail; | |
2682 | } | |
2683 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
2684 | return resultobj; | |
2685 | fail: | |
2686 | return NULL; | |
2687 | } | |
2688 | ||
2689 | ||
2690 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2691 | PyObject *resultobj; | |
2692 | char *kwnames[] = { | |
2693 | NULL | |
2694 | }; | |
2695 | ||
2696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2697 | { | |
2698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2699 | wxTrap(); | |
2700 | ||
2701 | wxPyEndAllowThreads(__tstate); | |
2702 | if (PyErr_Occurred()) SWIG_fail; | |
2703 | } | |
2704 | Py_INCREF(Py_None); resultobj = Py_None; | |
2705 | return resultobj; | |
2706 | fail: | |
2707 | return NULL; | |
2708 | } | |
2709 | ||
2710 | ||
2711 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2712 | PyObject *resultobj; | |
2713 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2714 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2715 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2716 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2717 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2718 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2719 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2720 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2721 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2722 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2723 | int arg6 = (int) 0 ; | |
2724 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2725 | int arg8 = (int) -1 ; | |
2726 | int arg9 = (int) -1 ; | |
2727 | wxString result; | |
2728 | bool temp1 = False ; | |
2729 | bool temp2 = False ; | |
2730 | bool temp3 = False ; | |
2731 | bool temp4 = False ; | |
2732 | bool temp5 = False ; | |
2733 | PyObject * obj0 = 0 ; | |
2734 | PyObject * obj1 = 0 ; | |
2735 | PyObject * obj2 = 0 ; | |
2736 | PyObject * obj3 = 0 ; | |
2737 | PyObject * obj4 = 0 ; | |
2738 | PyObject * obj5 = 0 ; | |
2739 | PyObject * obj6 = 0 ; | |
2740 | PyObject * obj7 = 0 ; | |
2741 | PyObject * obj8 = 0 ; | |
2742 | char *kwnames[] = { | |
2743 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2744 | }; | |
2745 | ||
2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2747 | if (obj0) { | |
2748 | { | |
2749 | arg1 = wxString_in_helper(obj0); | |
2750 | if (arg1 == NULL) SWIG_fail; | |
2751 | temp1 = True; | |
2752 | } | |
2753 | } | |
2754 | if (obj1) { | |
2755 | { | |
2756 | arg2 = wxString_in_helper(obj1); | |
2757 | if (arg2 == NULL) SWIG_fail; | |
2758 | temp2 = True; | |
2759 | } | |
2760 | } | |
2761 | if (obj2) { | |
2762 | { | |
2763 | arg3 = wxString_in_helper(obj2); | |
2764 | if (arg3 == NULL) SWIG_fail; | |
2765 | temp3 = True; | |
2766 | } | |
2767 | } | |
2768 | if (obj3) { | |
2769 | { | |
2770 | arg4 = wxString_in_helper(obj3); | |
2771 | if (arg4 == NULL) SWIG_fail; | |
2772 | temp4 = True; | |
2773 | } | |
2774 | } | |
2775 | if (obj4) { | |
2776 | { | |
2777 | arg5 = wxString_in_helper(obj4); | |
2778 | if (arg5 == NULL) SWIG_fail; | |
2779 | temp5 = True; | |
2780 | } | |
2781 | } | |
2782 | if (obj5) { | |
2783 | arg6 = (int) SWIG_AsInt(obj5); | |
2784 | if (PyErr_Occurred()) SWIG_fail; | |
2785 | } | |
2786 | if (obj6) { | |
2787 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
2788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2789 | } | |
2790 | if (obj7) { | |
2791 | arg8 = (int) SWIG_AsInt(obj7); | |
2792 | if (PyErr_Occurred()) SWIG_fail; | |
2793 | } | |
2794 | if (obj8) { | |
2795 | arg9 = (int) SWIG_AsInt(obj8); | |
2796 | if (PyErr_Occurred()) SWIG_fail; | |
2797 | } | |
2798 | { | |
2799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2800 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2801 | ||
2802 | wxPyEndAllowThreads(__tstate); | |
2803 | if (PyErr_Occurred()) SWIG_fail; | |
2804 | } | |
2805 | { | |
2806 | #if wxUSE_UNICODE | |
2807 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2808 | #else | |
2809 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2810 | #endif | |
2811 | } | |
2812 | { | |
2813 | if (temp1) | |
2814 | delete arg1; | |
2815 | } | |
2816 | { | |
2817 | if (temp2) | |
2818 | delete arg2; | |
2819 | } | |
2820 | { | |
2821 | if (temp3) | |
2822 | delete arg3; | |
2823 | } | |
2824 | { | |
2825 | if (temp4) | |
2826 | delete arg4; | |
2827 | } | |
2828 | { | |
2829 | if (temp5) | |
2830 | delete arg5; | |
2831 | } | |
2832 | return resultobj; | |
2833 | fail: | |
2834 | { | |
2835 | if (temp1) | |
2836 | delete arg1; | |
2837 | } | |
2838 | { | |
2839 | if (temp2) | |
2840 | delete arg2; | |
2841 | } | |
2842 | { | |
2843 | if (temp3) | |
2844 | delete arg3; | |
2845 | } | |
2846 | { | |
2847 | if (temp4) | |
2848 | delete arg4; | |
2849 | } | |
2850 | { | |
2851 | if (temp5) | |
2852 | delete arg5; | |
2853 | } | |
2854 | return NULL; | |
2855 | } | |
2856 | ||
2857 | ||
2858 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2859 | PyObject *resultobj; | |
2860 | wxString *arg1 = 0 ; | |
2861 | wxString *arg2 = 0 ; | |
2862 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2863 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2864 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2865 | wxString result; | |
2866 | bool temp1 = False ; | |
2867 | bool temp2 = False ; | |
2868 | bool temp3 = False ; | |
2869 | PyObject * obj0 = 0 ; | |
2870 | PyObject * obj1 = 0 ; | |
2871 | PyObject * obj2 = 0 ; | |
2872 | PyObject * obj3 = 0 ; | |
2873 | char *kwnames[] = { | |
2874 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2875 | }; | |
2876 | ||
2877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2878 | { | |
2879 | arg1 = wxString_in_helper(obj0); | |
2880 | if (arg1 == NULL) SWIG_fail; | |
2881 | temp1 = True; | |
2882 | } | |
2883 | { | |
2884 | arg2 = wxString_in_helper(obj1); | |
2885 | if (arg2 == NULL) SWIG_fail; | |
2886 | temp2 = True; | |
2887 | } | |
2888 | if (obj2) { | |
2889 | { | |
2890 | arg3 = wxString_in_helper(obj2); | |
2891 | if (arg3 == NULL) SWIG_fail; | |
2892 | temp3 = True; | |
2893 | } | |
2894 | } | |
2895 | if (obj3) { | |
2896 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
2897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2898 | } | |
2899 | { | |
2900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2901 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2902 | ||
2903 | wxPyEndAllowThreads(__tstate); | |
2904 | if (PyErr_Occurred()) SWIG_fail; | |
2905 | } | |
2906 | { | |
2907 | #if wxUSE_UNICODE | |
2908 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2909 | #else | |
2910 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2911 | #endif | |
2912 | } | |
2913 | { | |
2914 | if (temp1) | |
2915 | delete arg1; | |
2916 | } | |
2917 | { | |
2918 | if (temp2) | |
2919 | delete arg2; | |
2920 | } | |
2921 | { | |
2922 | if (temp3) | |
2923 | delete arg3; | |
2924 | } | |
2925 | return resultobj; | |
2926 | fail: | |
2927 | { | |
2928 | if (temp1) | |
2929 | delete arg1; | |
2930 | } | |
2931 | { | |
2932 | if (temp2) | |
2933 | delete arg2; | |
2934 | } | |
2935 | { | |
2936 | if (temp3) | |
2937 | delete arg3; | |
2938 | } | |
2939 | return NULL; | |
2940 | } | |
2941 | ||
2942 | ||
2943 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject *resultobj; | |
2945 | wxString *arg1 = 0 ; | |
2946 | wxString *arg2 = 0 ; | |
2947 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2948 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2949 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2950 | wxString result; | |
2951 | bool temp1 = False ; | |
2952 | bool temp2 = False ; | |
2953 | bool temp3 = False ; | |
2954 | PyObject * obj0 = 0 ; | |
2955 | PyObject * obj1 = 0 ; | |
2956 | PyObject * obj2 = 0 ; | |
2957 | PyObject * obj3 = 0 ; | |
2958 | char *kwnames[] = { | |
2959 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2960 | }; | |
2961 | ||
2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2963 | { | |
2964 | arg1 = wxString_in_helper(obj0); | |
2965 | if (arg1 == NULL) SWIG_fail; | |
2966 | temp1 = True; | |
2967 | } | |
2968 | { | |
2969 | arg2 = wxString_in_helper(obj1); | |
2970 | if (arg2 == NULL) SWIG_fail; | |
2971 | temp2 = True; | |
2972 | } | |
2973 | if (obj2) { | |
2974 | { | |
2975 | arg3 = wxString_in_helper(obj2); | |
2976 | if (arg3 == NULL) SWIG_fail; | |
2977 | temp3 = True; | |
2978 | } | |
2979 | } | |
2980 | if (obj3) { | |
2981 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
2982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2983 | } | |
2984 | { | |
2985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2986 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2987 | ||
2988 | wxPyEndAllowThreads(__tstate); | |
2989 | if (PyErr_Occurred()) SWIG_fail; | |
2990 | } | |
2991 | { | |
2992 | #if wxUSE_UNICODE | |
2993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2994 | #else | |
2995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2996 | #endif | |
2997 | } | |
2998 | { | |
2999 | if (temp1) | |
3000 | delete arg1; | |
3001 | } | |
3002 | { | |
3003 | if (temp2) | |
3004 | delete arg2; | |
3005 | } | |
3006 | { | |
3007 | if (temp3) | |
3008 | delete arg3; | |
3009 | } | |
3010 | return resultobj; | |
3011 | fail: | |
3012 | { | |
3013 | if (temp1) | |
3014 | delete arg1; | |
3015 | } | |
3016 | { | |
3017 | if (temp2) | |
3018 | delete arg2; | |
3019 | } | |
3020 | { | |
3021 | if (temp3) | |
3022 | delete arg3; | |
3023 | } | |
3024 | return NULL; | |
3025 | } | |
3026 | ||
3027 | ||
3028 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3029 | PyObject *resultobj; | |
3030 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3031 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3032 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3033 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3034 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3035 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3036 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3037 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3038 | wxString result; | |
3039 | bool temp1 = False ; | |
3040 | bool temp2 = False ; | |
3041 | wxPoint temp4 ; | |
3042 | PyObject * obj0 = 0 ; | |
3043 | PyObject * obj1 = 0 ; | |
3044 | PyObject * obj2 = 0 ; | |
3045 | PyObject * obj3 = 0 ; | |
3046 | PyObject * obj4 = 0 ; | |
3047 | char *kwnames[] = { | |
3048 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3049 | }; | |
3050 | ||
3051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3052 | if (obj0) { | |
3053 | { | |
3054 | arg1 = wxString_in_helper(obj0); | |
3055 | if (arg1 == NULL) SWIG_fail; | |
3056 | temp1 = True; | |
3057 | } | |
3058 | } | |
3059 | if (obj1) { | |
3060 | { | |
3061 | arg2 = wxString_in_helper(obj1); | |
3062 | if (arg2 == NULL) SWIG_fail; | |
3063 | temp2 = True; | |
3064 | } | |
3065 | } | |
3066 | if (obj2) { | |
3067 | arg3 = (long) SWIG_AsLong(obj2); | |
3068 | if (PyErr_Occurred()) SWIG_fail; | |
3069 | } | |
3070 | if (obj3) { | |
3071 | { | |
3072 | arg4 = &temp4; | |
3073 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3074 | } | |
3075 | } | |
3076 | if (obj4) { | |
3077 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3079 | } | |
3080 | { | |
3081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3082 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3083 | ||
3084 | wxPyEndAllowThreads(__tstate); | |
3085 | if (PyErr_Occurred()) SWIG_fail; | |
3086 | } | |
3087 | { | |
3088 | #if wxUSE_UNICODE | |
3089 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3090 | #else | |
3091 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3092 | #endif | |
3093 | } | |
3094 | { | |
3095 | if (temp1) | |
3096 | delete arg1; | |
3097 | } | |
3098 | { | |
3099 | if (temp2) | |
3100 | delete arg2; | |
3101 | } | |
3102 | return resultobj; | |
3103 | fail: | |
3104 | { | |
3105 | if (temp1) | |
3106 | delete arg1; | |
3107 | } | |
3108 | { | |
3109 | if (temp2) | |
3110 | delete arg2; | |
3111 | } | |
3112 | return NULL; | |
3113 | } | |
3114 | ||
3115 | ||
3116 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3117 | PyObject *resultobj; | |
3118 | wxString *arg1 = 0 ; | |
3119 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3120 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3121 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3122 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3123 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3124 | int arg5 = (int) -1 ; | |
3125 | int arg6 = (int) -1 ; | |
3126 | bool arg7 = (bool) True ; | |
3127 | wxString result; | |
3128 | bool temp1 = False ; | |
3129 | bool temp2 = False ; | |
3130 | bool temp3 = False ; | |
3131 | PyObject * obj0 = 0 ; | |
3132 | PyObject * obj1 = 0 ; | |
3133 | PyObject * obj2 = 0 ; | |
3134 | PyObject * obj3 = 0 ; | |
3135 | PyObject * obj4 = 0 ; | |
3136 | PyObject * obj5 = 0 ; | |
3137 | PyObject * obj6 = 0 ; | |
3138 | char *kwnames[] = { | |
3139 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3140 | }; | |
3141 | ||
3142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3143 | { | |
3144 | arg1 = wxString_in_helper(obj0); | |
3145 | if (arg1 == NULL) SWIG_fail; | |
3146 | temp1 = True; | |
3147 | } | |
3148 | if (obj1) { | |
3149 | { | |
3150 | arg2 = wxString_in_helper(obj1); | |
3151 | if (arg2 == NULL) SWIG_fail; | |
3152 | temp2 = True; | |
3153 | } | |
3154 | } | |
3155 | if (obj2) { | |
3156 | { | |
3157 | arg3 = wxString_in_helper(obj2); | |
3158 | if (arg3 == NULL) SWIG_fail; | |
3159 | temp3 = True; | |
3160 | } | |
3161 | } | |
3162 | if (obj3) { | |
3163 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3165 | } | |
3166 | if (obj4) { | |
3167 | arg5 = (int) SWIG_AsInt(obj4); | |
3168 | if (PyErr_Occurred()) SWIG_fail; | |
3169 | } | |
3170 | if (obj5) { | |
3171 | arg6 = (int) SWIG_AsInt(obj5); | |
3172 | if (PyErr_Occurred()) SWIG_fail; | |
3173 | } | |
3174 | if (obj6) { | |
3175 | arg7 = (bool) SWIG_AsBool(obj6); | |
3176 | if (PyErr_Occurred()) SWIG_fail; | |
3177 | } | |
3178 | { | |
3179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3180 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3181 | ||
3182 | wxPyEndAllowThreads(__tstate); | |
3183 | if (PyErr_Occurred()) SWIG_fail; | |
3184 | } | |
3185 | { | |
3186 | #if wxUSE_UNICODE | |
3187 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3188 | #else | |
3189 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3190 | #endif | |
3191 | } | |
3192 | { | |
3193 | if (temp1) | |
3194 | delete arg1; | |
3195 | } | |
3196 | { | |
3197 | if (temp2) | |
3198 | delete arg2; | |
3199 | } | |
3200 | { | |
3201 | if (temp3) | |
3202 | delete arg3; | |
3203 | } | |
3204 | return resultobj; | |
3205 | fail: | |
3206 | { | |
3207 | if (temp1) | |
3208 | delete arg1; | |
3209 | } | |
3210 | { | |
3211 | if (temp2) | |
3212 | delete arg2; | |
3213 | } | |
3214 | { | |
3215 | if (temp3) | |
3216 | delete arg3; | |
3217 | } | |
3218 | return NULL; | |
3219 | } | |
3220 | ||
3221 | ||
3222 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3223 | PyObject *resultobj; | |
3224 | wxString *arg1 = 0 ; | |
3225 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3226 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3227 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3228 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3229 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3230 | wxString result; | |
3231 | bool temp1 = False ; | |
3232 | bool temp2 = False ; | |
3233 | bool temp3 = False ; | |
3234 | PyObject * obj0 = 0 ; | |
3235 | PyObject * obj1 = 0 ; | |
3236 | PyObject * obj2 = 0 ; | |
3237 | PyObject * obj3 = 0 ; | |
3238 | char *kwnames[] = { | |
3239 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3240 | }; | |
3241 | ||
3242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3243 | { | |
3244 | arg1 = wxString_in_helper(obj0); | |
3245 | if (arg1 == NULL) SWIG_fail; | |
3246 | temp1 = True; | |
3247 | } | |
3248 | if (obj1) { | |
3249 | { | |
3250 | arg2 = wxString_in_helper(obj1); | |
3251 | if (arg2 == NULL) SWIG_fail; | |
3252 | temp2 = True; | |
3253 | } | |
3254 | } | |
3255 | if (obj2) { | |
3256 | { | |
3257 | arg3 = wxString_in_helper(obj2); | |
3258 | if (arg3 == NULL) SWIG_fail; | |
3259 | temp3 = True; | |
3260 | } | |
3261 | } | |
3262 | if (obj3) { | |
3263 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3265 | } | |
3266 | { | |
3267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3268 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3269 | ||
3270 | wxPyEndAllowThreads(__tstate); | |
3271 | if (PyErr_Occurred()) SWIG_fail; | |
3272 | } | |
3273 | { | |
3274 | #if wxUSE_UNICODE | |
3275 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3276 | #else | |
3277 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3278 | #endif | |
3279 | } | |
3280 | { | |
3281 | if (temp1) | |
3282 | delete arg1; | |
3283 | } | |
3284 | { | |
3285 | if (temp2) | |
3286 | delete arg2; | |
3287 | } | |
3288 | { | |
3289 | if (temp3) | |
3290 | delete arg3; | |
3291 | } | |
3292 | return resultobj; | |
3293 | fail: | |
3294 | { | |
3295 | if (temp1) | |
3296 | delete arg1; | |
3297 | } | |
3298 | { | |
3299 | if (temp2) | |
3300 | delete arg2; | |
3301 | } | |
3302 | { | |
3303 | if (temp3) | |
3304 | delete arg3; | |
3305 | } | |
3306 | return NULL; | |
3307 | } | |
3308 | ||
3309 | ||
3310 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3311 | PyObject *resultobj; | |
3312 | wxString *arg1 = 0 ; | |
3313 | wxString *arg2 = 0 ; | |
3314 | int arg3 ; | |
3315 | wxString *arg4 = (wxString *) 0 ; | |
3316 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3317 | int arg6 = (int) -1 ; | |
3318 | int arg7 = (int) -1 ; | |
3319 | bool arg8 = (bool) True ; | |
3320 | int arg9 = (int) 150 ; | |
3321 | int arg10 = (int) 200 ; | |
3322 | wxString result; | |
3323 | bool temp1 = False ; | |
3324 | bool temp2 = False ; | |
3325 | PyObject * obj0 = 0 ; | |
3326 | PyObject * obj1 = 0 ; | |
3327 | PyObject * obj2 = 0 ; | |
3328 | PyObject * obj3 = 0 ; | |
3329 | PyObject * obj4 = 0 ; | |
3330 | PyObject * obj5 = 0 ; | |
3331 | PyObject * obj6 = 0 ; | |
3332 | PyObject * obj7 = 0 ; | |
3333 | PyObject * obj8 = 0 ; | |
3334 | char *kwnames[] = { | |
3335 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3336 | }; | |
3337 | ||
3338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3339 | { | |
3340 | arg1 = wxString_in_helper(obj0); | |
3341 | if (arg1 == NULL) SWIG_fail; | |
3342 | temp1 = True; | |
3343 | } | |
3344 | { | |
3345 | arg2 = wxString_in_helper(obj1); | |
3346 | if (arg2 == NULL) SWIG_fail; | |
3347 | temp2 = True; | |
3348 | } | |
3349 | { | |
3350 | arg3 = PyList_Size(obj2); | |
3351 | arg4 = wxString_LIST_helper(obj2); | |
3352 | if (arg4 == NULL) SWIG_fail; | |
3353 | } | |
3354 | if (obj3) { | |
3355 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3357 | } | |
3358 | if (obj4) { | |
3359 | arg6 = (int) SWIG_AsInt(obj4); | |
3360 | if (PyErr_Occurred()) SWIG_fail; | |
3361 | } | |
3362 | if (obj5) { | |
3363 | arg7 = (int) SWIG_AsInt(obj5); | |
3364 | if (PyErr_Occurred()) SWIG_fail; | |
3365 | } | |
3366 | if (obj6) { | |
3367 | arg8 = (bool) SWIG_AsBool(obj6); | |
3368 | if (PyErr_Occurred()) SWIG_fail; | |
3369 | } | |
3370 | if (obj7) { | |
3371 | arg9 = (int) SWIG_AsInt(obj7); | |
3372 | if (PyErr_Occurred()) SWIG_fail; | |
3373 | } | |
3374 | if (obj8) { | |
3375 | arg10 = (int) SWIG_AsInt(obj8); | |
3376 | if (PyErr_Occurred()) SWIG_fail; | |
3377 | } | |
3378 | { | |
3379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3380 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3381 | ||
3382 | wxPyEndAllowThreads(__tstate); | |
3383 | if (PyErr_Occurred()) SWIG_fail; | |
3384 | } | |
3385 | { | |
3386 | #if wxUSE_UNICODE | |
3387 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3388 | #else | |
3389 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3390 | #endif | |
3391 | } | |
3392 | { | |
3393 | if (temp1) | |
3394 | delete arg1; | |
3395 | } | |
3396 | { | |
3397 | if (temp2) | |
3398 | delete arg2; | |
3399 | } | |
3400 | { | |
3401 | if (arg4) delete [] arg4; | |
3402 | } | |
3403 | return resultobj; | |
3404 | fail: | |
3405 | { | |
3406 | if (temp1) | |
3407 | delete arg1; | |
3408 | } | |
3409 | { | |
3410 | if (temp2) | |
3411 | delete arg2; | |
3412 | } | |
3413 | { | |
3414 | if (arg4) delete [] arg4; | |
3415 | } | |
3416 | return NULL; | |
3417 | } | |
3418 | ||
3419 | ||
3420 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3421 | PyObject *resultobj; | |
3422 | wxString *arg1 = 0 ; | |
3423 | wxString *arg2 = 0 ; | |
3424 | int arg3 ; | |
3425 | wxString *arg4 = (wxString *) 0 ; | |
3426 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3427 | int arg6 = (int) -1 ; | |
3428 | int arg7 = (int) -1 ; | |
3429 | bool arg8 = (bool) True ; | |
3430 | int arg9 = (int) 150 ; | |
3431 | int arg10 = (int) 200 ; | |
3432 | int result; | |
3433 | bool temp1 = False ; | |
3434 | bool temp2 = False ; | |
3435 | PyObject * obj0 = 0 ; | |
3436 | PyObject * obj1 = 0 ; | |
3437 | PyObject * obj2 = 0 ; | |
3438 | PyObject * obj3 = 0 ; | |
3439 | PyObject * obj4 = 0 ; | |
3440 | PyObject * obj5 = 0 ; | |
3441 | PyObject * obj6 = 0 ; | |
3442 | PyObject * obj7 = 0 ; | |
3443 | PyObject * obj8 = 0 ; | |
3444 | char *kwnames[] = { | |
3445 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3446 | }; | |
3447 | ||
3448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3449 | { | |
3450 | arg1 = wxString_in_helper(obj0); | |
3451 | if (arg1 == NULL) SWIG_fail; | |
3452 | temp1 = True; | |
3453 | } | |
3454 | { | |
3455 | arg2 = wxString_in_helper(obj1); | |
3456 | if (arg2 == NULL) SWIG_fail; | |
3457 | temp2 = True; | |
3458 | } | |
3459 | { | |
3460 | arg3 = PyList_Size(obj2); | |
3461 | arg4 = wxString_LIST_helper(obj2); | |
3462 | if (arg4 == NULL) SWIG_fail; | |
3463 | } | |
3464 | if (obj3) { | |
3465 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3467 | } | |
3468 | if (obj4) { | |
3469 | arg6 = (int) SWIG_AsInt(obj4); | |
3470 | if (PyErr_Occurred()) SWIG_fail; | |
3471 | } | |
3472 | if (obj5) { | |
3473 | arg7 = (int) SWIG_AsInt(obj5); | |
3474 | if (PyErr_Occurred()) SWIG_fail; | |
3475 | } | |
3476 | if (obj6) { | |
3477 | arg8 = (bool) SWIG_AsBool(obj6); | |
3478 | if (PyErr_Occurred()) SWIG_fail; | |
3479 | } | |
3480 | if (obj7) { | |
3481 | arg9 = (int) SWIG_AsInt(obj7); | |
3482 | if (PyErr_Occurred()) SWIG_fail; | |
3483 | } | |
3484 | if (obj8) { | |
3485 | arg10 = (int) SWIG_AsInt(obj8); | |
3486 | if (PyErr_Occurred()) SWIG_fail; | |
3487 | } | |
3488 | { | |
3489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3490 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3491 | ||
3492 | wxPyEndAllowThreads(__tstate); | |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
3494 | } | |
3495 | resultobj = SWIG_FromInt((int)result); | |
3496 | { | |
3497 | if (temp1) | |
3498 | delete arg1; | |
3499 | } | |
3500 | { | |
3501 | if (temp2) | |
3502 | delete arg2; | |
3503 | } | |
3504 | { | |
3505 | if (arg4) delete [] arg4; | |
3506 | } | |
3507 | return resultobj; | |
3508 | fail: | |
3509 | { | |
3510 | if (temp1) | |
3511 | delete arg1; | |
3512 | } | |
3513 | { | |
3514 | if (temp2) | |
3515 | delete arg2; | |
3516 | } | |
3517 | { | |
3518 | if (arg4) delete [] arg4; | |
3519 | } | |
3520 | return NULL; | |
3521 | } | |
3522 | ||
3523 | ||
3524 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3525 | PyObject *resultobj; | |
3526 | wxString *arg1 = 0 ; | |
3527 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3528 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3529 | int arg3 = (int) wxOK|wxCENTRE ; | |
3530 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3531 | int arg5 = (int) -1 ; | |
3532 | int arg6 = (int) -1 ; | |
3533 | int result; | |
3534 | bool temp1 = False ; | |
3535 | bool temp2 = False ; | |
3536 | PyObject * obj0 = 0 ; | |
3537 | PyObject * obj1 = 0 ; | |
3538 | PyObject * obj2 = 0 ; | |
3539 | PyObject * obj3 = 0 ; | |
3540 | PyObject * obj4 = 0 ; | |
3541 | PyObject * obj5 = 0 ; | |
3542 | char *kwnames[] = { | |
3543 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3544 | }; | |
3545 | ||
3546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3547 | { | |
3548 | arg1 = wxString_in_helper(obj0); | |
3549 | if (arg1 == NULL) SWIG_fail; | |
3550 | temp1 = True; | |
3551 | } | |
3552 | if (obj1) { | |
3553 | { | |
3554 | arg2 = wxString_in_helper(obj1); | |
3555 | if (arg2 == NULL) SWIG_fail; | |
3556 | temp2 = True; | |
3557 | } | |
3558 | } | |
3559 | if (obj2) { | |
3560 | arg3 = (int) SWIG_AsInt(obj2); | |
3561 | if (PyErr_Occurred()) SWIG_fail; | |
3562 | } | |
3563 | if (obj3) { | |
3564 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3566 | } | |
3567 | if (obj4) { | |
3568 | arg5 = (int) SWIG_AsInt(obj4); | |
3569 | if (PyErr_Occurred()) SWIG_fail; | |
3570 | } | |
3571 | if (obj5) { | |
3572 | arg6 = (int) SWIG_AsInt(obj5); | |
3573 | if (PyErr_Occurred()) SWIG_fail; | |
3574 | } | |
3575 | { | |
3576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3577 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3578 | ||
3579 | wxPyEndAllowThreads(__tstate); | |
3580 | if (PyErr_Occurred()) SWIG_fail; | |
3581 | } | |
3582 | resultobj = SWIG_FromInt((int)result); | |
3583 | { | |
3584 | if (temp1) | |
3585 | delete arg1; | |
3586 | } | |
3587 | { | |
3588 | if (temp2) | |
3589 | delete arg2; | |
3590 | } | |
3591 | return resultobj; | |
3592 | fail: | |
3593 | { | |
3594 | if (temp1) | |
3595 | delete arg1; | |
3596 | } | |
3597 | { | |
3598 | if (temp2) | |
3599 | delete arg2; | |
3600 | } | |
3601 | return NULL; | |
3602 | } | |
3603 | ||
3604 | ||
3605 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3606 | PyObject *resultobj; | |
3607 | wxString *arg1 = 0 ; | |
3608 | wxString *arg2 = 0 ; | |
3609 | wxString *arg3 = 0 ; | |
3610 | long arg4 ; | |
3611 | long arg5 = (long) 0 ; | |
3612 | long arg6 = (long) 100 ; | |
3613 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3614 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3615 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3616 | long result; | |
3617 | bool temp1 = False ; | |
3618 | bool temp2 = False ; | |
3619 | bool temp3 = False ; | |
3620 | wxPoint temp8 ; | |
3621 | PyObject * obj0 = 0 ; | |
3622 | PyObject * obj1 = 0 ; | |
3623 | PyObject * obj2 = 0 ; | |
3624 | PyObject * obj3 = 0 ; | |
3625 | PyObject * obj4 = 0 ; | |
3626 | PyObject * obj5 = 0 ; | |
3627 | PyObject * obj6 = 0 ; | |
3628 | PyObject * obj7 = 0 ; | |
3629 | char *kwnames[] = { | |
3630 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3631 | }; | |
3632 | ||
3633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3634 | { | |
3635 | arg1 = wxString_in_helper(obj0); | |
3636 | if (arg1 == NULL) SWIG_fail; | |
3637 | temp1 = True; | |
3638 | } | |
3639 | { | |
3640 | arg2 = wxString_in_helper(obj1); | |
3641 | if (arg2 == NULL) SWIG_fail; | |
3642 | temp2 = True; | |
3643 | } | |
3644 | { | |
3645 | arg3 = wxString_in_helper(obj2); | |
3646 | if (arg3 == NULL) SWIG_fail; | |
3647 | temp3 = True; | |
3648 | } | |
3649 | arg4 = (long) SWIG_AsLong(obj3); | |
3650 | if (PyErr_Occurred()) SWIG_fail; | |
3651 | if (obj4) { | |
3652 | arg5 = (long) SWIG_AsLong(obj4); | |
3653 | if (PyErr_Occurred()) SWIG_fail; | |
3654 | } | |
3655 | if (obj5) { | |
3656 | arg6 = (long) SWIG_AsLong(obj5); | |
3657 | if (PyErr_Occurred()) SWIG_fail; | |
3658 | } | |
3659 | if (obj6) { | |
3660 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3662 | } | |
3663 | if (obj7) { | |
3664 | { | |
3665 | arg8 = &temp8; | |
3666 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3667 | } | |
3668 | } | |
3669 | { | |
3670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3671 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3672 | ||
3673 | wxPyEndAllowThreads(__tstate); | |
3674 | if (PyErr_Occurred()) SWIG_fail; | |
3675 | } | |
3676 | resultobj = SWIG_FromLong((long)result); | |
3677 | { | |
3678 | if (temp1) | |
3679 | delete arg1; | |
3680 | } | |
3681 | { | |
3682 | if (temp2) | |
3683 | delete arg2; | |
3684 | } | |
3685 | { | |
3686 | if (temp3) | |
3687 | delete arg3; | |
3688 | } | |
3689 | return resultobj; | |
3690 | fail: | |
3691 | { | |
3692 | if (temp1) | |
3693 | delete arg1; | |
3694 | } | |
3695 | { | |
3696 | if (temp2) | |
3697 | delete arg2; | |
3698 | } | |
3699 | { | |
3700 | if (temp3) | |
3701 | delete arg3; | |
3702 | } | |
3703 | return NULL; | |
3704 | } | |
3705 | ||
3706 | ||
3707 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3708 | PyObject *resultobj; | |
3709 | bool result; | |
3710 | char *kwnames[] = { | |
3711 | NULL | |
3712 | }; | |
3713 | ||
3714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3715 | { | |
3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3717 | result = (bool)wxColourDisplay(); | |
3718 | ||
3719 | wxPyEndAllowThreads(__tstate); | |
3720 | if (PyErr_Occurred()) SWIG_fail; | |
3721 | } | |
3722 | { | |
3723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3724 | } | |
3725 | return resultobj; | |
3726 | fail: | |
3727 | return NULL; | |
3728 | } | |
3729 | ||
3730 | ||
3731 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3732 | PyObject *resultobj; | |
3733 | int result; | |
3734 | char *kwnames[] = { | |
3735 | NULL | |
3736 | }; | |
3737 | ||
3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3739 | { | |
3740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3741 | result = (int)wxDisplayDepth(); | |
3742 | ||
3743 | wxPyEndAllowThreads(__tstate); | |
3744 | if (PyErr_Occurred()) SWIG_fail; | |
3745 | } | |
3746 | resultobj = SWIG_FromInt((int)result); | |
3747 | return resultobj; | |
3748 | fail: | |
3749 | return NULL; | |
3750 | } | |
3751 | ||
3752 | ||
3753 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3754 | PyObject *resultobj; | |
3755 | int result; | |
3756 | char *kwnames[] = { | |
3757 | NULL | |
3758 | }; | |
3759 | ||
3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3761 | { | |
3762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3763 | result = (int)wxGetDisplayDepth(); | |
3764 | ||
3765 | wxPyEndAllowThreads(__tstate); | |
3766 | if (PyErr_Occurred()) SWIG_fail; | |
3767 | } | |
3768 | resultobj = SWIG_FromInt((int)result); | |
3769 | return resultobj; | |
3770 | fail: | |
3771 | return NULL; | |
3772 | } | |
3773 | ||
3774 | ||
3775 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3776 | PyObject *resultobj; | |
3777 | int *arg1 = (int *) 0 ; | |
3778 | int *arg2 = (int *) 0 ; | |
3779 | int temp1 ; | |
3780 | int temp2 ; | |
3781 | char *kwnames[] = { | |
3782 | NULL | |
3783 | }; | |
3784 | ||
3785 | arg1 = &temp1; | |
3786 | arg2 = &temp2; | |
3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3788 | { | |
3789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3790 | wxDisplaySize(arg1,arg2); | |
3791 | ||
3792 | wxPyEndAllowThreads(__tstate); | |
3793 | if (PyErr_Occurred()) SWIG_fail; | |
3794 | } | |
3795 | Py_INCREF(Py_None); resultobj = Py_None; | |
3796 | { | |
3797 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3798 | resultobj = t_output_helper(resultobj,o); | |
3799 | } | |
3800 | { | |
3801 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3802 | resultobj = t_output_helper(resultobj,o); | |
3803 | } | |
3804 | return resultobj; | |
3805 | fail: | |
3806 | return NULL; | |
3807 | } | |
3808 | ||
3809 | ||
3810 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3811 | PyObject *resultobj; | |
3812 | wxSize result; | |
3813 | char *kwnames[] = { | |
3814 | NULL | |
3815 | }; | |
3816 | ||
3817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3818 | { | |
3819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3820 | result = wxGetDisplaySize(); | |
3821 | ||
3822 | wxPyEndAllowThreads(__tstate); | |
3823 | if (PyErr_Occurred()) SWIG_fail; | |
3824 | } | |
3825 | { | |
3826 | wxSize * resultptr; | |
3827 | resultptr = new wxSize((wxSize &) result); | |
3828 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3829 | } | |
3830 | return resultobj; | |
3831 | fail: | |
3832 | return NULL; | |
3833 | } | |
3834 | ||
3835 | ||
3836 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3837 | PyObject *resultobj; | |
3838 | int *arg1 = (int *) 0 ; | |
3839 | int *arg2 = (int *) 0 ; | |
3840 | int temp1 ; | |
3841 | int temp2 ; | |
3842 | char *kwnames[] = { | |
3843 | NULL | |
3844 | }; | |
3845 | ||
3846 | arg1 = &temp1; | |
3847 | arg2 = &temp2; | |
3848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3849 | { | |
3850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3851 | wxDisplaySizeMM(arg1,arg2); | |
3852 | ||
3853 | wxPyEndAllowThreads(__tstate); | |
3854 | if (PyErr_Occurred()) SWIG_fail; | |
3855 | } | |
3856 | Py_INCREF(Py_None); resultobj = Py_None; | |
3857 | { | |
3858 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3859 | resultobj = t_output_helper(resultobj,o); | |
3860 | } | |
3861 | { | |
3862 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3863 | resultobj = t_output_helper(resultobj,o); | |
3864 | } | |
3865 | return resultobj; | |
3866 | fail: | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | wxSize result; | |
3874 | char *kwnames[] = { | |
3875 | NULL | |
3876 | }; | |
3877 | ||
3878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3879 | { | |
3880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3881 | result = wxGetDisplaySizeMM(); | |
3882 | ||
3883 | wxPyEndAllowThreads(__tstate); | |
3884 | if (PyErr_Occurred()) SWIG_fail; | |
3885 | } | |
3886 | { | |
3887 | wxSize * resultptr; | |
3888 | resultptr = new wxSize((wxSize &) result); | |
3889 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3890 | } | |
3891 | return resultobj; | |
3892 | fail: | |
3893 | return NULL; | |
3894 | } | |
3895 | ||
3896 | ||
3897 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3898 | PyObject *resultobj; | |
3899 | int *arg1 = (int *) 0 ; | |
3900 | int *arg2 = (int *) 0 ; | |
3901 | int *arg3 = (int *) 0 ; | |
3902 | int *arg4 = (int *) 0 ; | |
3903 | int temp1 ; | |
3904 | int temp2 ; | |
3905 | int temp3 ; | |
3906 | int temp4 ; | |
3907 | char *kwnames[] = { | |
3908 | NULL | |
3909 | }; | |
3910 | ||
3911 | arg1 = &temp1; | |
3912 | arg2 = &temp2; | |
3913 | arg3 = &temp3; | |
3914 | arg4 = &temp4; | |
3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3916 | { | |
3917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3918 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3919 | ||
3920 | wxPyEndAllowThreads(__tstate); | |
3921 | if (PyErr_Occurred()) SWIG_fail; | |
3922 | } | |
3923 | Py_INCREF(Py_None); resultobj = Py_None; | |
3924 | { | |
3925 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3926 | resultobj = t_output_helper(resultobj,o); | |
3927 | } | |
3928 | { | |
3929 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3930 | resultobj = t_output_helper(resultobj,o); | |
3931 | } | |
3932 | { | |
3933 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3934 | resultobj = t_output_helper(resultobj,o); | |
3935 | } | |
3936 | { | |
3937 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3938 | resultobj = t_output_helper(resultobj,o); | |
3939 | } | |
3940 | return resultobj; | |
3941 | fail: | |
3942 | return NULL; | |
3943 | } | |
3944 | ||
3945 | ||
3946 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3947 | PyObject *resultobj; | |
3948 | wxRect result; | |
3949 | char *kwnames[] = { | |
3950 | NULL | |
3951 | }; | |
3952 | ||
3953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3954 | { | |
3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3956 | result = wxGetClientDisplayRect(); | |
3957 | ||
3958 | wxPyEndAllowThreads(__tstate); | |
3959 | if (PyErr_Occurred()) SWIG_fail; | |
3960 | } | |
3961 | { | |
3962 | wxRect * resultptr; | |
3963 | resultptr = new wxRect((wxRect &) result); | |
3964 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
3965 | } | |
3966 | return resultobj; | |
3967 | fail: | |
3968 | return NULL; | |
3969 | } | |
3970 | ||
3971 | ||
3972 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3973 | PyObject *resultobj; | |
3974 | wxCursor *arg1 = 0 ; | |
3975 | PyObject * obj0 = 0 ; | |
3976 | char *kwnames[] = { | |
3977 | (char *) "cursor", NULL | |
3978 | }; | |
3979 | ||
3980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
3982 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3983 | SWIG_fail; | |
3984 | if (arg1 == NULL) { | |
3985 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3986 | SWIG_fail; | |
3987 | } | |
3988 | { | |
3989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3990 | wxSetCursor(*arg1); | |
3991 | ||
3992 | wxPyEndAllowThreads(__tstate); | |
3993 | if (PyErr_Occurred()) SWIG_fail; | |
3994 | } | |
3995 | Py_INCREF(Py_None); resultobj = Py_None; | |
3996 | return resultobj; | |
3997 | fail: | |
3998 | return NULL; | |
3999 | } | |
4000 | ||
4001 | ||
4002 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4003 | PyObject *resultobj; | |
4004 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4005 | PyObject * obj0 = 0 ; | |
4006 | char *kwnames[] = { | |
4007 | (char *) "cursor", NULL | |
4008 | }; | |
4009 | ||
4010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4011 | if (obj0) { | |
4012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4014 | } | |
4015 | { | |
4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4017 | wxBeginBusyCursor(arg1); | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
4022 | Py_INCREF(Py_None); resultobj = Py_None; | |
4023 | return resultobj; | |
4024 | fail: | |
4025 | return NULL; | |
4026 | } | |
4027 | ||
4028 | ||
4029 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4030 | PyObject *resultobj; | |
4031 | wxWindow *result; | |
4032 | char *kwnames[] = { | |
4033 | NULL | |
4034 | }; | |
4035 | ||
4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4037 | { | |
4038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4039 | result = (wxWindow *)wxGetActiveWindow(); | |
4040 | ||
4041 | wxPyEndAllowThreads(__tstate); | |
4042 | if (PyErr_Occurred()) SWIG_fail; | |
4043 | } | |
4044 | { | |
4045 | resultobj = wxPyMake_wxObject(result); | |
4046 | } | |
4047 | return resultobj; | |
4048 | fail: | |
4049 | return NULL; | |
4050 | } | |
4051 | ||
4052 | ||
4053 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4054 | PyObject *resultobj; | |
4055 | wxPoint *arg1 = 0 ; | |
4056 | wxWindow *result; | |
4057 | wxPoint temp1 ; | |
4058 | PyObject * obj0 = 0 ; | |
4059 | char *kwnames[] = { | |
4060 | (char *) "pt", NULL | |
4061 | }; | |
4062 | ||
4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4064 | { | |
4065 | arg1 = &temp1; | |
4066 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4067 | } | |
4068 | { | |
4069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4070 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4071 | ||
4072 | wxPyEndAllowThreads(__tstate); | |
4073 | if (PyErr_Occurred()) SWIG_fail; | |
4074 | } | |
4075 | { | |
4076 | resultobj = wxPyMake_wxObject(result); | |
4077 | } | |
4078 | return resultobj; | |
4079 | fail: | |
4080 | return NULL; | |
4081 | } | |
4082 | ||
4083 | ||
4084 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4085 | PyObject *resultobj; | |
4086 | wxPoint *arg1 = 0 ; | |
4087 | wxWindow *result; | |
4088 | wxPoint temp1 ; | |
4089 | PyObject * obj0 = 0 ; | |
4090 | char *kwnames[] = { | |
4091 | (char *) "pt", NULL | |
4092 | }; | |
4093 | ||
4094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4095 | { | |
4096 | arg1 = &temp1; | |
4097 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4098 | } | |
4099 | { | |
4100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4101 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4102 | ||
4103 | wxPyEndAllowThreads(__tstate); | |
4104 | if (PyErr_Occurred()) SWIG_fail; | |
4105 | } | |
4106 | { | |
4107 | resultobj = wxPyMake_wxObject(result); | |
4108 | } | |
4109 | return resultobj; | |
4110 | fail: | |
4111 | return NULL; | |
4112 | } | |
4113 | ||
4114 | ||
4115 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4116 | PyObject *resultobj; | |
4117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4118 | wxWindow *result; | |
4119 | PyObject * obj0 = 0 ; | |
4120 | char *kwnames[] = { | |
4121 | (char *) "win", NULL | |
4122 | }; | |
4123 | ||
4124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4127 | { | |
4128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4129 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4130 | ||
4131 | wxPyEndAllowThreads(__tstate); | |
4132 | if (PyErr_Occurred()) SWIG_fail; | |
4133 | } | |
4134 | { | |
4135 | resultobj = wxPyMake_wxObject(result); | |
4136 | } | |
4137 | return resultobj; | |
4138 | fail: | |
4139 | return NULL; | |
4140 | } | |
4141 | ||
4142 | ||
4143 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4144 | PyObject *resultobj; | |
4145 | int arg1 ; | |
4146 | bool result; | |
4147 | PyObject * obj0 = 0 ; | |
4148 | char *kwnames[] = { | |
4149 | (char *) "key", NULL | |
4150 | }; | |
4151 | ||
4152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
4153 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); | |
4154 | if (PyErr_Occurred()) SWIG_fail; | |
4155 | { | |
4156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4157 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4158 | ||
4159 | wxPyEndAllowThreads(__tstate); | |
4160 | if (PyErr_Occurred()) SWIG_fail; | |
4161 | } | |
4162 | { | |
4163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4164 | } | |
4165 | return resultobj; | |
4166 | fail: | |
4167 | return NULL; | |
4168 | } | |
4169 | ||
4170 | ||
4171 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4172 | PyObject *resultobj; | |
4173 | char *kwnames[] = { | |
4174 | NULL | |
4175 | }; | |
4176 | ||
4177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4178 | { | |
4179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4180 | wxWakeUpMainThread(); | |
4181 | ||
4182 | wxPyEndAllowThreads(__tstate); | |
4183 | if (PyErr_Occurred()) SWIG_fail; | |
4184 | } | |
4185 | Py_INCREF(Py_None); resultobj = Py_None; | |
4186 | return resultobj; | |
4187 | fail: | |
4188 | return NULL; | |
4189 | } | |
4190 | ||
4191 | ||
4192 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4193 | PyObject *resultobj; | |
4194 | char *kwnames[] = { | |
4195 | NULL | |
4196 | }; | |
4197 | ||
4198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4199 | { | |
4200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4201 | wxMutexGuiEnter(); | |
4202 | ||
4203 | wxPyEndAllowThreads(__tstate); | |
4204 | if (PyErr_Occurred()) SWIG_fail; | |
4205 | } | |
4206 | Py_INCREF(Py_None); resultobj = Py_None; | |
4207 | return resultobj; | |
4208 | fail: | |
4209 | return NULL; | |
4210 | } | |
4211 | ||
4212 | ||
4213 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4214 | PyObject *resultobj; | |
4215 | char *kwnames[] = { | |
4216 | NULL | |
4217 | }; | |
4218 | ||
4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4220 | { | |
4221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4222 | wxMutexGuiLeave(); | |
4223 | ||
4224 | wxPyEndAllowThreads(__tstate); | |
4225 | if (PyErr_Occurred()) SWIG_fail; | |
4226 | } | |
4227 | Py_INCREF(Py_None); resultobj = Py_None; | |
4228 | return resultobj; | |
4229 | fail: | |
4230 | return NULL; | |
4231 | } | |
4232 | ||
4233 | ||
4234 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4235 | PyObject *resultobj; | |
4236 | wxMutexGuiLocker *result; | |
4237 | char *kwnames[] = { | |
4238 | NULL | |
4239 | }; | |
4240 | ||
4241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4242 | { | |
4243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4244 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4245 | ||
4246 | wxPyEndAllowThreads(__tstate); | |
4247 | if (PyErr_Occurred()) SWIG_fail; | |
4248 | } | |
4249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4250 | return resultobj; | |
4251 | fail: | |
4252 | return NULL; | |
4253 | } | |
4254 | ||
4255 | ||
4256 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4257 | PyObject *resultobj; | |
4258 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4259 | PyObject * obj0 = 0 ; | |
4260 | char *kwnames[] = { | |
4261 | (char *) "self", NULL | |
4262 | }; | |
4263 | ||
4264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4267 | { | |
4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4269 | delete arg1; | |
4270 | ||
4271 | wxPyEndAllowThreads(__tstate); | |
4272 | if (PyErr_Occurred()) SWIG_fail; | |
4273 | } | |
4274 | Py_INCREF(Py_None); resultobj = Py_None; | |
4275 | return resultobj; | |
4276 | fail: | |
4277 | return NULL; | |
4278 | } | |
4279 | ||
4280 | ||
4281 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4282 | PyObject *obj; | |
4283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4284 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4285 | Py_INCREF(obj); | |
4286 | return Py_BuildValue((char *)""); | |
4287 | } | |
4288 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4289 | PyObject *resultobj; | |
4290 | bool result; | |
4291 | char *kwnames[] = { | |
4292 | NULL | |
4293 | }; | |
4294 | ||
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4296 | { | |
4297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4298 | result = (bool)wxThread_IsMain(); | |
4299 | ||
4300 | wxPyEndAllowThreads(__tstate); | |
4301 | if (PyErr_Occurred()) SWIG_fail; | |
4302 | } | |
4303 | { | |
4304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4305 | } | |
4306 | return resultobj; | |
4307 | fail: | |
4308 | return NULL; | |
4309 | } | |
4310 | ||
4311 | ||
4312 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4313 | PyObject *resultobj; | |
4314 | wxString *arg1 = 0 ; | |
4315 | wxToolTip *result; | |
4316 | bool temp1 = False ; | |
4317 | PyObject * obj0 = 0 ; | |
4318 | char *kwnames[] = { | |
4319 | (char *) "tip", NULL | |
4320 | }; | |
4321 | ||
4322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4323 | { | |
4324 | arg1 = wxString_in_helper(obj0); | |
4325 | if (arg1 == NULL) SWIG_fail; | |
4326 | temp1 = True; | |
4327 | } | |
4328 | { | |
4329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4330 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4331 | ||
4332 | wxPyEndAllowThreads(__tstate); | |
4333 | if (PyErr_Occurred()) SWIG_fail; | |
4334 | } | |
4335 | { | |
4336 | resultobj = wxPyMake_wxObject(result); | |
4337 | } | |
4338 | { | |
4339 | if (temp1) | |
4340 | delete arg1; | |
4341 | } | |
4342 | return resultobj; | |
4343 | fail: | |
4344 | { | |
4345 | if (temp1) | |
4346 | delete arg1; | |
4347 | } | |
4348 | return NULL; | |
4349 | } | |
4350 | ||
4351 | ||
4352 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4353 | PyObject *resultobj; | |
4354 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4355 | wxString *arg2 = 0 ; | |
4356 | bool temp2 = False ; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | PyObject * obj1 = 0 ; | |
4359 | char *kwnames[] = { | |
4360 | (char *) "self",(char *) "tip", NULL | |
4361 | }; | |
4362 | ||
4363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4366 | { | |
4367 | arg2 = wxString_in_helper(obj1); | |
4368 | if (arg2 == NULL) SWIG_fail; | |
4369 | temp2 = True; | |
4370 | } | |
4371 | { | |
4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4373 | (arg1)->SetTip((wxString const &)*arg2); | |
4374 | ||
4375 | wxPyEndAllowThreads(__tstate); | |
4376 | if (PyErr_Occurred()) SWIG_fail; | |
4377 | } | |
4378 | Py_INCREF(Py_None); resultobj = Py_None; | |
4379 | { | |
4380 | if (temp2) | |
4381 | delete arg2; | |
4382 | } | |
4383 | return resultobj; | |
4384 | fail: | |
4385 | { | |
4386 | if (temp2) | |
4387 | delete arg2; | |
4388 | } | |
4389 | return NULL; | |
4390 | } | |
4391 | ||
4392 | ||
4393 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4394 | PyObject *resultobj; | |
4395 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4396 | wxString result; | |
4397 | PyObject * obj0 = 0 ; | |
4398 | char *kwnames[] = { | |
4399 | (char *) "self", NULL | |
4400 | }; | |
4401 | ||
4402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4405 | { | |
4406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4407 | result = (arg1)->GetTip(); | |
4408 | ||
4409 | wxPyEndAllowThreads(__tstate); | |
4410 | if (PyErr_Occurred()) SWIG_fail; | |
4411 | } | |
4412 | { | |
4413 | #if wxUSE_UNICODE | |
4414 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4415 | #else | |
4416 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4417 | #endif | |
4418 | } | |
4419 | return resultobj; | |
4420 | fail: | |
4421 | return NULL; | |
4422 | } | |
4423 | ||
4424 | ||
4425 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4426 | PyObject *resultobj; | |
4427 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4428 | wxWindow *result; | |
4429 | PyObject * obj0 = 0 ; | |
4430 | char *kwnames[] = { | |
4431 | (char *) "self", NULL | |
4432 | }; | |
4433 | ||
4434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4437 | { | |
4438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4439 | result = (wxWindow *)(arg1)->GetWindow(); | |
4440 | ||
4441 | wxPyEndAllowThreads(__tstate); | |
4442 | if (PyErr_Occurred()) SWIG_fail; | |
4443 | } | |
4444 | { | |
4445 | resultobj = wxPyMake_wxObject(result); | |
4446 | } | |
4447 | return resultobj; | |
4448 | fail: | |
4449 | return NULL; | |
4450 | } | |
4451 | ||
4452 | ||
4453 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4454 | PyObject *resultobj; | |
4455 | bool arg1 ; | |
4456 | PyObject * obj0 = 0 ; | |
4457 | char *kwnames[] = { | |
4458 | (char *) "flag", NULL | |
4459 | }; | |
4460 | ||
4461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
4462 | arg1 = (bool) SWIG_AsBool(obj0); | |
4463 | if (PyErr_Occurred()) SWIG_fail; | |
4464 | { | |
4465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4466 | wxToolTip::Enable(arg1); | |
4467 | ||
4468 | wxPyEndAllowThreads(__tstate); | |
4469 | if (PyErr_Occurred()) SWIG_fail; | |
4470 | } | |
4471 | Py_INCREF(Py_None); resultobj = Py_None; | |
4472 | return resultobj; | |
4473 | fail: | |
4474 | return NULL; | |
4475 | } | |
4476 | ||
4477 | ||
4478 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4479 | PyObject *resultobj; | |
4480 | long arg1 ; | |
4481 | PyObject * obj0 = 0 ; | |
4482 | char *kwnames[] = { | |
4483 | (char *) "milliseconds", NULL | |
4484 | }; | |
4485 | ||
4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
4487 | arg1 = (long) SWIG_AsLong(obj0); | |
4488 | if (PyErr_Occurred()) SWIG_fail; | |
4489 | { | |
4490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4491 | wxToolTip::SetDelay(arg1); | |
4492 | ||
4493 | wxPyEndAllowThreads(__tstate); | |
4494 | if (PyErr_Occurred()) SWIG_fail; | |
4495 | } | |
4496 | Py_INCREF(Py_None); resultobj = Py_None; | |
4497 | return resultobj; | |
4498 | fail: | |
4499 | return NULL; | |
4500 | } | |
4501 | ||
4502 | ||
4503 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4504 | PyObject *obj; | |
4505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4506 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4507 | Py_INCREF(obj); | |
4508 | return Py_BuildValue((char *)""); | |
4509 | } | |
4510 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4511 | PyObject *resultobj; | |
4512 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4513 | wxSize *arg2 = 0 ; | |
4514 | wxCaret *result; | |
4515 | wxSize temp2 ; | |
4516 | PyObject * obj0 = 0 ; | |
4517 | PyObject * obj1 = 0 ; | |
4518 | char *kwnames[] = { | |
4519 | (char *) "window",(char *) "size", NULL | |
4520 | }; | |
4521 | ||
4522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4525 | { | |
4526 | arg2 = &temp2; | |
4527 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4528 | } | |
4529 | { | |
4530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4531 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4532 | ||
4533 | wxPyEndAllowThreads(__tstate); | |
4534 | if (PyErr_Occurred()) SWIG_fail; | |
4535 | } | |
4536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
4537 | return resultobj; | |
4538 | fail: | |
4539 | return NULL; | |
4540 | } | |
4541 | ||
4542 | ||
4543 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4544 | PyObject *resultobj; | |
4545 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4546 | PyObject * obj0 = 0 ; | |
4547 | char *kwnames[] = { | |
4548 | (char *) "self", NULL | |
4549 | }; | |
4550 | ||
4551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4554 | { | |
4555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4556 | delete arg1; | |
4557 | ||
4558 | wxPyEndAllowThreads(__tstate); | |
4559 | if (PyErr_Occurred()) SWIG_fail; | |
4560 | } | |
4561 | Py_INCREF(Py_None); resultobj = Py_None; | |
4562 | return resultobj; | |
4563 | fail: | |
4564 | return NULL; | |
4565 | } | |
4566 | ||
4567 | ||
4568 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4569 | PyObject *resultobj; | |
4570 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4571 | bool result; | |
4572 | PyObject * obj0 = 0 ; | |
4573 | char *kwnames[] = { | |
4574 | (char *) "self", NULL | |
4575 | }; | |
4576 | ||
4577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4580 | { | |
4581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4582 | result = (bool)(arg1)->IsOk(); | |
4583 | ||
4584 | wxPyEndAllowThreads(__tstate); | |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
4586 | } | |
4587 | { | |
4588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4589 | } | |
4590 | return resultobj; | |
4591 | fail: | |
4592 | return NULL; | |
4593 | } | |
4594 | ||
4595 | ||
4596 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4597 | PyObject *resultobj; | |
4598 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4599 | bool result; | |
4600 | PyObject * obj0 = 0 ; | |
4601 | char *kwnames[] = { | |
4602 | (char *) "self", NULL | |
4603 | }; | |
4604 | ||
4605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4608 | { | |
4609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4610 | result = (bool)(arg1)->IsVisible(); | |
4611 | ||
4612 | wxPyEndAllowThreads(__tstate); | |
4613 | if (PyErr_Occurred()) SWIG_fail; | |
4614 | } | |
4615 | { | |
4616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4617 | } | |
4618 | return resultobj; | |
4619 | fail: | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
4624 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4625 | PyObject *resultobj; | |
4626 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4627 | wxPoint result; | |
4628 | PyObject * obj0 = 0 ; | |
4629 | char *kwnames[] = { | |
4630 | (char *) "self", NULL | |
4631 | }; | |
4632 | ||
4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4636 | { | |
4637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4638 | result = (arg1)->GetPosition(); | |
4639 | ||
4640 | wxPyEndAllowThreads(__tstate); | |
4641 | if (PyErr_Occurred()) SWIG_fail; | |
4642 | } | |
4643 | { | |
4644 | wxPoint * resultptr; | |
4645 | resultptr = new wxPoint((wxPoint &) result); | |
4646 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4647 | } | |
4648 | return resultobj; | |
4649 | fail: | |
4650 | return NULL; | |
4651 | } | |
4652 | ||
4653 | ||
4654 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4655 | PyObject *resultobj; | |
4656 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4657 | int *arg2 = (int *) 0 ; | |
4658 | int *arg3 = (int *) 0 ; | |
4659 | int temp2 ; | |
4660 | int temp3 ; | |
4661 | PyObject * obj0 = 0 ; | |
4662 | char *kwnames[] = { | |
4663 | (char *) "self", NULL | |
4664 | }; | |
4665 | ||
4666 | arg2 = &temp2; | |
4667 | arg3 = &temp3; | |
4668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4671 | { | |
4672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4673 | (arg1)->GetPosition(arg2,arg3); | |
4674 | ||
4675 | wxPyEndAllowThreads(__tstate); | |
4676 | if (PyErr_Occurred()) SWIG_fail; | |
4677 | } | |
4678 | Py_INCREF(Py_None); resultobj = Py_None; | |
4679 | { | |
4680 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4681 | resultobj = t_output_helper(resultobj,o); | |
4682 | } | |
4683 | { | |
4684 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4685 | resultobj = t_output_helper(resultobj,o); | |
4686 | } | |
4687 | return resultobj; | |
4688 | fail: | |
4689 | return NULL; | |
4690 | } | |
4691 | ||
4692 | ||
4693 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4694 | PyObject *resultobj; | |
4695 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4696 | wxSize result; | |
4697 | PyObject * obj0 = 0 ; | |
4698 | char *kwnames[] = { | |
4699 | (char *) "self", NULL | |
4700 | }; | |
4701 | ||
4702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
4703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4705 | { | |
4706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4707 | result = (arg1)->GetSize(); | |
4708 | ||
4709 | wxPyEndAllowThreads(__tstate); | |
4710 | if (PyErr_Occurred()) SWIG_fail; | |
4711 | } | |
4712 | { | |
4713 | wxSize * resultptr; | |
4714 | resultptr = new wxSize((wxSize &) result); | |
4715 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4716 | } | |
4717 | return resultobj; | |
4718 | fail: | |
4719 | return NULL; | |
4720 | } | |
4721 | ||
4722 | ||
4723 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4724 | PyObject *resultobj; | |
4725 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4726 | int *arg2 = (int *) 0 ; | |
4727 | int *arg3 = (int *) 0 ; | |
4728 | int temp2 ; | |
4729 | int temp3 ; | |
4730 | PyObject * obj0 = 0 ; | |
4731 | char *kwnames[] = { | |
4732 | (char *) "self", NULL | |
4733 | }; | |
4734 | ||
4735 | arg2 = &temp2; | |
4736 | arg3 = &temp3; | |
4737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4740 | { | |
4741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4742 | (arg1)->GetSize(arg2,arg3); | |
4743 | ||
4744 | wxPyEndAllowThreads(__tstate); | |
4745 | if (PyErr_Occurred()) SWIG_fail; | |
4746 | } | |
4747 | Py_INCREF(Py_None); resultobj = Py_None; | |
4748 | { | |
4749 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4750 | resultobj = t_output_helper(resultobj,o); | |
4751 | } | |
4752 | { | |
4753 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4754 | resultobj = t_output_helper(resultobj,o); | |
4755 | } | |
4756 | return resultobj; | |
4757 | fail: | |
4758 | return NULL; | |
4759 | } | |
4760 | ||
4761 | ||
4762 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4763 | PyObject *resultobj; | |
4764 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4765 | wxWindow *result; | |
4766 | PyObject * obj0 = 0 ; | |
4767 | char *kwnames[] = { | |
4768 | (char *) "self", NULL | |
4769 | }; | |
4770 | ||
4771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4774 | { | |
4775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4776 | result = (wxWindow *)(arg1)->GetWindow(); | |
4777 | ||
4778 | wxPyEndAllowThreads(__tstate); | |
4779 | if (PyErr_Occurred()) SWIG_fail; | |
4780 | } | |
4781 | { | |
4782 | resultobj = wxPyMake_wxObject(result); | |
4783 | } | |
4784 | return resultobj; | |
4785 | fail: | |
4786 | return NULL; | |
4787 | } | |
4788 | ||
4789 | ||
4790 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4791 | PyObject *resultobj; | |
4792 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4793 | int arg2 ; | |
4794 | int arg3 ; | |
4795 | PyObject * obj0 = 0 ; | |
4796 | PyObject * obj1 = 0 ; | |
4797 | PyObject * obj2 = 0 ; | |
4798 | char *kwnames[] = { | |
4799 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4800 | }; | |
4801 | ||
4802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4805 | arg2 = (int) SWIG_AsInt(obj1); | |
4806 | if (PyErr_Occurred()) SWIG_fail; | |
4807 | arg3 = (int) SWIG_AsInt(obj2); | |
4808 | if (PyErr_Occurred()) SWIG_fail; | |
4809 | { | |
4810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4811 | (arg1)->Move(arg2,arg3); | |
4812 | ||
4813 | wxPyEndAllowThreads(__tstate); | |
4814 | if (PyErr_Occurred()) SWIG_fail; | |
4815 | } | |
4816 | Py_INCREF(Py_None); resultobj = Py_None; | |
4817 | return resultobj; | |
4818 | fail: | |
4819 | return NULL; | |
4820 | } | |
4821 | ||
4822 | ||
4823 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4824 | PyObject *resultobj; | |
4825 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4826 | wxPoint *arg2 = 0 ; | |
4827 | wxPoint temp2 ; | |
4828 | PyObject * obj0 = 0 ; | |
4829 | PyObject * obj1 = 0 ; | |
4830 | char *kwnames[] = { | |
4831 | (char *) "self",(char *) "pt", NULL | |
4832 | }; | |
4833 | ||
4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4837 | { | |
4838 | arg2 = &temp2; | |
4839 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4840 | } | |
4841 | { | |
4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4843 | (arg1)->Move((wxPoint const &)*arg2); | |
4844 | ||
4845 | wxPyEndAllowThreads(__tstate); | |
4846 | if (PyErr_Occurred()) SWIG_fail; | |
4847 | } | |
4848 | Py_INCREF(Py_None); resultobj = Py_None; | |
4849 | return resultobj; | |
4850 | fail: | |
4851 | return NULL; | |
4852 | } | |
4853 | ||
4854 | ||
4855 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4856 | PyObject *resultobj; | |
4857 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4858 | int arg2 ; | |
4859 | int arg3 ; | |
4860 | PyObject * obj0 = 0 ; | |
4861 | PyObject * obj1 = 0 ; | |
4862 | PyObject * obj2 = 0 ; | |
4863 | char *kwnames[] = { | |
4864 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4865 | }; | |
4866 | ||
4867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4870 | arg2 = (int) SWIG_AsInt(obj1); | |
4871 | if (PyErr_Occurred()) SWIG_fail; | |
4872 | arg3 = (int) SWIG_AsInt(obj2); | |
4873 | if (PyErr_Occurred()) SWIG_fail; | |
4874 | { | |
4875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4876 | (arg1)->SetSize(arg2,arg3); | |
4877 | ||
4878 | wxPyEndAllowThreads(__tstate); | |
4879 | if (PyErr_Occurred()) SWIG_fail; | |
4880 | } | |
4881 | Py_INCREF(Py_None); resultobj = Py_None; | |
4882 | return resultobj; | |
4883 | fail: | |
4884 | return NULL; | |
4885 | } | |
4886 | ||
4887 | ||
4888 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4889 | PyObject *resultobj; | |
4890 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4891 | wxSize *arg2 = 0 ; | |
4892 | wxSize temp2 ; | |
4893 | PyObject * obj0 = 0 ; | |
4894 | PyObject * obj1 = 0 ; | |
4895 | char *kwnames[] = { | |
4896 | (char *) "self",(char *) "size", NULL | |
4897 | }; | |
4898 | ||
4899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4902 | { | |
4903 | arg2 = &temp2; | |
4904 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4905 | } | |
4906 | { | |
4907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4908 | (arg1)->SetSize((wxSize const &)*arg2); | |
4909 | ||
4910 | wxPyEndAllowThreads(__tstate); | |
4911 | if (PyErr_Occurred()) SWIG_fail; | |
4912 | } | |
4913 | Py_INCREF(Py_None); resultobj = Py_None; | |
4914 | return resultobj; | |
4915 | fail: | |
4916 | return NULL; | |
4917 | } | |
4918 | ||
4919 | ||
4920 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4921 | PyObject *resultobj; | |
4922 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4923 | int arg2 = (int) True ; | |
4924 | PyObject * obj0 = 0 ; | |
4925 | PyObject * obj1 = 0 ; | |
4926 | char *kwnames[] = { | |
4927 | (char *) "self",(char *) "show", NULL | |
4928 | }; | |
4929 | ||
4930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
4931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4933 | if (obj1) { | |
4934 | arg2 = (int) SWIG_AsInt(obj1); | |
4935 | if (PyErr_Occurred()) SWIG_fail; | |
4936 | } | |
4937 | { | |
4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4939 | (arg1)->Show(arg2); | |
4940 | ||
4941 | wxPyEndAllowThreads(__tstate); | |
4942 | if (PyErr_Occurred()) SWIG_fail; | |
4943 | } | |
4944 | Py_INCREF(Py_None); resultobj = Py_None; | |
4945 | return resultobj; | |
4946 | fail: | |
4947 | return NULL; | |
4948 | } | |
4949 | ||
4950 | ||
4951 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4952 | PyObject *resultobj; | |
4953 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4954 | PyObject * obj0 = 0 ; | |
4955 | char *kwnames[] = { | |
4956 | (char *) "self", NULL | |
4957 | }; | |
4958 | ||
4959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4962 | { | |
4963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4964 | (arg1)->Hide(); | |
4965 | ||
4966 | wxPyEndAllowThreads(__tstate); | |
4967 | if (PyErr_Occurred()) SWIG_fail; | |
4968 | } | |
4969 | Py_INCREF(Py_None); resultobj = Py_None; | |
4970 | return resultobj; | |
4971 | fail: | |
4972 | return NULL; | |
4973 | } | |
4974 | ||
4975 | ||
4976 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4977 | PyObject *obj; | |
4978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4979 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4980 | Py_INCREF(obj); | |
4981 | return Py_BuildValue((char *)""); | |
4982 | } | |
4983 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4984 | PyObject *resultobj; | |
4985 | int result; | |
4986 | char *kwnames[] = { | |
4987 | NULL | |
4988 | }; | |
4989 | ||
4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4991 | { | |
4992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4993 | result = (int)wxCaret_GetBlinkTime(); | |
4994 | ||
4995 | wxPyEndAllowThreads(__tstate); | |
4996 | if (PyErr_Occurred()) SWIG_fail; | |
4997 | } | |
4998 | resultobj = SWIG_FromInt((int)result); | |
4999 | return resultobj; | |
5000 | fail: | |
5001 | return NULL; | |
5002 | } | |
5003 | ||
5004 | ||
5005 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5006 | PyObject *resultobj; | |
5007 | int arg1 ; | |
5008 | PyObject * obj0 = 0 ; | |
5009 | char *kwnames[] = { | |
5010 | (char *) "milliseconds", NULL | |
5011 | }; | |
5012 | ||
5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
5014 | arg1 = (int) SWIG_AsInt(obj0); | |
5015 | if (PyErr_Occurred()) SWIG_fail; | |
5016 | { | |
5017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5018 | wxCaret_SetBlinkTime(arg1); | |
5019 | ||
5020 | wxPyEndAllowThreads(__tstate); | |
5021 | if (PyErr_Occurred()) SWIG_fail; | |
5022 | } | |
5023 | Py_INCREF(Py_None); resultobj = Py_None; | |
5024 | return resultobj; | |
5025 | fail: | |
5026 | return NULL; | |
5027 | } | |
5028 | ||
5029 | ||
5030 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5031 | PyObject *resultobj; | |
5032 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5033 | wxBusyCursor *result; | |
5034 | PyObject * obj0 = 0 ; | |
5035 | char *kwnames[] = { | |
5036 | (char *) "cursor", NULL | |
5037 | }; | |
5038 | ||
5039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5040 | if (obj0) { | |
5041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5043 | } | |
5044 | { | |
5045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5046 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5047 | ||
5048 | wxPyEndAllowThreads(__tstate); | |
5049 | if (PyErr_Occurred()) SWIG_fail; | |
5050 | } | |
5051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5052 | return resultobj; | |
5053 | fail: | |
5054 | return NULL; | |
5055 | } | |
5056 | ||
5057 | ||
5058 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5059 | PyObject *resultobj; | |
5060 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5061 | PyObject * obj0 = 0 ; | |
5062 | char *kwnames[] = { | |
5063 | (char *) "self", NULL | |
5064 | }; | |
5065 | ||
5066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5069 | { | |
5070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5071 | delete arg1; | |
5072 | ||
5073 | wxPyEndAllowThreads(__tstate); | |
5074 | if (PyErr_Occurred()) SWIG_fail; | |
5075 | } | |
5076 | Py_INCREF(Py_None); resultobj = Py_None; | |
5077 | return resultobj; | |
5078 | fail: | |
5079 | return NULL; | |
5080 | } | |
5081 | ||
5082 | ||
5083 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5084 | PyObject *obj; | |
5085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5086 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5087 | Py_INCREF(obj); | |
5088 | return Py_BuildValue((char *)""); | |
5089 | } | |
5090 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5091 | PyObject *resultobj; | |
5092 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5093 | wxWindowDisabler *result; | |
5094 | PyObject * obj0 = 0 ; | |
5095 | char *kwnames[] = { | |
5096 | (char *) "winToSkip", NULL | |
5097 | }; | |
5098 | ||
5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5100 | if (obj0) { | |
5101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5103 | } | |
5104 | { | |
5105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5106 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5107 | ||
5108 | wxPyEndAllowThreads(__tstate); | |
5109 | if (PyErr_Occurred()) SWIG_fail; | |
5110 | } | |
5111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5112 | return resultobj; | |
5113 | fail: | |
5114 | return NULL; | |
5115 | } | |
5116 | ||
5117 | ||
5118 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5119 | PyObject *resultobj; | |
5120 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5121 | PyObject * obj0 = 0 ; | |
5122 | char *kwnames[] = { | |
5123 | (char *) "self", NULL | |
5124 | }; | |
5125 | ||
5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5129 | { | |
5130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5131 | delete arg1; | |
5132 | ||
5133 | wxPyEndAllowThreads(__tstate); | |
5134 | if (PyErr_Occurred()) SWIG_fail; | |
5135 | } | |
5136 | Py_INCREF(Py_None); resultobj = Py_None; | |
5137 | return resultobj; | |
5138 | fail: | |
5139 | return NULL; | |
5140 | } | |
5141 | ||
5142 | ||
5143 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5144 | PyObject *obj; | |
5145 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5146 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5147 | Py_INCREF(obj); | |
5148 | return Py_BuildValue((char *)""); | |
5149 | } | |
5150 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5151 | PyObject *resultobj; | |
5152 | wxString *arg1 = 0 ; | |
5153 | wxBusyInfo *result; | |
5154 | bool temp1 = False ; | |
5155 | PyObject * obj0 = 0 ; | |
5156 | char *kwnames[] = { | |
5157 | (char *) "message", NULL | |
5158 | }; | |
5159 | ||
5160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5161 | { | |
5162 | arg1 = wxString_in_helper(obj0); | |
5163 | if (arg1 == NULL) SWIG_fail; | |
5164 | temp1 = True; | |
5165 | } | |
5166 | { | |
5167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5168 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5169 | ||
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
5173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5174 | { | |
5175 | if (temp1) | |
5176 | delete arg1; | |
5177 | } | |
5178 | return resultobj; | |
5179 | fail: | |
5180 | { | |
5181 | if (temp1) | |
5182 | delete arg1; | |
5183 | } | |
5184 | return NULL; | |
5185 | } | |
5186 | ||
5187 | ||
5188 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5189 | PyObject *resultobj; | |
5190 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5191 | PyObject * obj0 = 0 ; | |
5192 | char *kwnames[] = { | |
5193 | (char *) "self", NULL | |
5194 | }; | |
5195 | ||
5196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5199 | { | |
5200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5201 | delete arg1; | |
5202 | ||
5203 | wxPyEndAllowThreads(__tstate); | |
5204 | if (PyErr_Occurred()) SWIG_fail; | |
5205 | } | |
5206 | Py_INCREF(Py_None); resultobj = Py_None; | |
5207 | return resultobj; | |
5208 | fail: | |
5209 | return NULL; | |
5210 | } | |
5211 | ||
5212 | ||
5213 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5214 | PyObject *obj; | |
5215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5216 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5217 | Py_INCREF(obj); | |
5218 | return Py_BuildValue((char *)""); | |
5219 | } | |
5220 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5221 | PyObject *resultobj; | |
5222 | wxStopWatch *result; | |
5223 | char *kwnames[] = { | |
5224 | NULL | |
5225 | }; | |
5226 | ||
5227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5228 | { | |
5229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5230 | result = (wxStopWatch *)new wxStopWatch(); | |
5231 | ||
5232 | wxPyEndAllowThreads(__tstate); | |
5233 | if (PyErr_Occurred()) SWIG_fail; | |
5234 | } | |
5235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5236 | return resultobj; | |
5237 | fail: | |
5238 | return NULL; | |
5239 | } | |
5240 | ||
5241 | ||
5242 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5243 | PyObject *resultobj; | |
5244 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5245 | long arg2 = (long) 0 ; | |
5246 | PyObject * obj0 = 0 ; | |
5247 | PyObject * obj1 = 0 ; | |
5248 | char *kwnames[] = { | |
5249 | (char *) "self",(char *) "t0", NULL | |
5250 | }; | |
5251 | ||
5252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5255 | if (obj1) { | |
5256 | arg2 = (long) SWIG_AsLong(obj1); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | { | |
5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5261 | (arg1)->Start(arg2); | |
5262 | ||
5263 | wxPyEndAllowThreads(__tstate); | |
5264 | if (PyErr_Occurred()) SWIG_fail; | |
5265 | } | |
5266 | Py_INCREF(Py_None); resultobj = Py_None; | |
5267 | return resultobj; | |
5268 | fail: | |
5269 | return NULL; | |
5270 | } | |
5271 | ||
5272 | ||
5273 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5274 | PyObject *resultobj; | |
5275 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5276 | PyObject * obj0 = 0 ; | |
5277 | char *kwnames[] = { | |
5278 | (char *) "self", NULL | |
5279 | }; | |
5280 | ||
5281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5284 | { | |
5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5286 | (arg1)->Pause(); | |
5287 | ||
5288 | wxPyEndAllowThreads(__tstate); | |
5289 | if (PyErr_Occurred()) SWIG_fail; | |
5290 | } | |
5291 | Py_INCREF(Py_None); resultobj = Py_None; | |
5292 | return resultobj; | |
5293 | fail: | |
5294 | return NULL; | |
5295 | } | |
5296 | ||
5297 | ||
5298 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5299 | PyObject *resultobj; | |
5300 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5301 | PyObject * obj0 = 0 ; | |
5302 | char *kwnames[] = { | |
5303 | (char *) "self", NULL | |
5304 | }; | |
5305 | ||
5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5309 | { | |
5310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5311 | (arg1)->Resume(); | |
5312 | ||
5313 | wxPyEndAllowThreads(__tstate); | |
5314 | if (PyErr_Occurred()) SWIG_fail; | |
5315 | } | |
5316 | Py_INCREF(Py_None); resultobj = Py_None; | |
5317 | return resultobj; | |
5318 | fail: | |
5319 | return NULL; | |
5320 | } | |
5321 | ||
5322 | ||
5323 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5324 | PyObject *resultobj; | |
5325 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5326 | long result; | |
5327 | PyObject * obj0 = 0 ; | |
5328 | char *kwnames[] = { | |
5329 | (char *) "self", NULL | |
5330 | }; | |
5331 | ||
5332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5335 | { | |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5338 | ||
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) SWIG_fail; | |
5341 | } | |
5342 | resultobj = SWIG_FromLong((long)result); | |
5343 | return resultobj; | |
5344 | fail: | |
5345 | return NULL; | |
5346 | } | |
5347 | ||
5348 | ||
5349 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5350 | PyObject *obj; | |
5351 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5352 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5353 | Py_INCREF(obj); | |
5354 | return Py_BuildValue((char *)""); | |
5355 | } | |
5356 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5357 | PyObject *resultobj; | |
5358 | int arg1 = (int) 9 ; | |
5359 | wxFileHistory *result; | |
5360 | PyObject * obj0 = 0 ; | |
5361 | char *kwnames[] = { | |
5362 | (char *) "maxFiles", NULL | |
5363 | }; | |
5364 | ||
5365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; | |
5366 | if (obj0) { | |
5367 | arg1 = (int) SWIG_AsInt(obj0); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | { | |
5371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5372 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5373 | ||
5374 | wxPyEndAllowThreads(__tstate); | |
5375 | if (PyErr_Occurred()) SWIG_fail; | |
5376 | } | |
5377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5378 | return resultobj; | |
5379 | fail: | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
5384 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5387 | PyObject * obj0 = 0 ; | |
5388 | char *kwnames[] = { | |
5389 | (char *) "self", NULL | |
5390 | }; | |
5391 | ||
5392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5395 | { | |
5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5397 | delete arg1; | |
5398 | ||
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | Py_INCREF(Py_None); resultobj = Py_None; | |
5403 | return resultobj; | |
5404 | fail: | |
5405 | return NULL; | |
5406 | } | |
5407 | ||
5408 | ||
5409 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5410 | PyObject *resultobj; | |
5411 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5412 | wxString *arg2 = 0 ; | |
5413 | bool temp2 = False ; | |
5414 | PyObject * obj0 = 0 ; | |
5415 | PyObject * obj1 = 0 ; | |
5416 | char *kwnames[] = { | |
5417 | (char *) "self",(char *) "file", NULL | |
5418 | }; | |
5419 | ||
5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5423 | { | |
5424 | arg2 = wxString_in_helper(obj1); | |
5425 | if (arg2 == NULL) SWIG_fail; | |
5426 | temp2 = True; | |
5427 | } | |
5428 | { | |
5429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5430 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5431 | ||
5432 | wxPyEndAllowThreads(__tstate); | |
5433 | if (PyErr_Occurred()) SWIG_fail; | |
5434 | } | |
5435 | Py_INCREF(Py_None); resultobj = Py_None; | |
5436 | { | |
5437 | if (temp2) | |
5438 | delete arg2; | |
5439 | } | |
5440 | return resultobj; | |
5441 | fail: | |
5442 | { | |
5443 | if (temp2) | |
5444 | delete arg2; | |
5445 | } | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
5450 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5451 | PyObject *resultobj; | |
5452 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5453 | int arg2 ; | |
5454 | PyObject * obj0 = 0 ; | |
5455 | PyObject * obj1 = 0 ; | |
5456 | char *kwnames[] = { | |
5457 | (char *) "self",(char *) "i", NULL | |
5458 | }; | |
5459 | ||
5460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5463 | arg2 = (int) SWIG_AsInt(obj1); | |
5464 | if (PyErr_Occurred()) SWIG_fail; | |
5465 | { | |
5466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5467 | (arg1)->RemoveFileFromHistory(arg2); | |
5468 | ||
5469 | wxPyEndAllowThreads(__tstate); | |
5470 | if (PyErr_Occurred()) SWIG_fail; | |
5471 | } | |
5472 | Py_INCREF(Py_None); resultobj = Py_None; | |
5473 | return resultobj; | |
5474 | fail: | |
5475 | return NULL; | |
5476 | } | |
5477 | ||
5478 | ||
5479 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5480 | PyObject *resultobj; | |
5481 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5482 | int result; | |
5483 | PyObject * obj0 = 0 ; | |
5484 | char *kwnames[] = { | |
5485 | (char *) "self", NULL | |
5486 | }; | |
5487 | ||
5488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5491 | { | |
5492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5493 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5494 | ||
5495 | wxPyEndAllowThreads(__tstate); | |
5496 | if (PyErr_Occurred()) SWIG_fail; | |
5497 | } | |
5498 | resultobj = SWIG_FromInt((int)result); | |
5499 | return resultobj; | |
5500 | fail: | |
5501 | return NULL; | |
5502 | } | |
5503 | ||
5504 | ||
5505 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5506 | PyObject *resultobj; | |
5507 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5508 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5509 | PyObject * obj0 = 0 ; | |
5510 | PyObject * obj1 = 0 ; | |
5511 | char *kwnames[] = { | |
5512 | (char *) "self",(char *) "menu", NULL | |
5513 | }; | |
5514 | ||
5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
5516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5518 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5520 | { | |
5521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5522 | (arg1)->UseMenu(arg2); | |
5523 | ||
5524 | wxPyEndAllowThreads(__tstate); | |
5525 | if (PyErr_Occurred()) SWIG_fail; | |
5526 | } | |
5527 | Py_INCREF(Py_None); resultobj = Py_None; | |
5528 | return resultobj; | |
5529 | fail: | |
5530 | return NULL; | |
5531 | } | |
5532 | ||
5533 | ||
5534 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5535 | PyObject *resultobj; | |
5536 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5537 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5538 | PyObject * obj0 = 0 ; | |
5539 | PyObject * obj1 = 0 ; | |
5540 | char *kwnames[] = { | |
5541 | (char *) "self",(char *) "menu", NULL | |
5542 | }; | |
5543 | ||
5544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
5545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5549 | { | |
5550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5551 | (arg1)->RemoveMenu(arg2); | |
5552 | ||
5553 | wxPyEndAllowThreads(__tstate); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
5556 | Py_INCREF(Py_None); resultobj = Py_None; | |
5557 | return resultobj; | |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj; | |
5565 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5566 | wxConfigBase *arg2 = 0 ; | |
5567 | PyObject * obj0 = 0 ; | |
5568 | PyObject * obj1 = 0 ; | |
5569 | char *kwnames[] = { | |
5570 | (char *) "self",(char *) "config", NULL | |
5571 | }; | |
5572 | ||
5573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5576 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5577 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5578 | SWIG_fail; | |
5579 | if (arg2 == NULL) { | |
5580 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5581 | SWIG_fail; | |
5582 | } | |
5583 | { | |
5584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5585 | (arg1)->Load(*arg2); | |
5586 | ||
5587 | wxPyEndAllowThreads(__tstate); | |
5588 | if (PyErr_Occurred()) SWIG_fail; | |
5589 | } | |
5590 | Py_INCREF(Py_None); resultobj = Py_None; | |
5591 | return resultobj; | |
5592 | fail: | |
5593 | return NULL; | |
5594 | } | |
5595 | ||
5596 | ||
5597 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5598 | PyObject *resultobj; | |
5599 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5600 | wxConfigBase *arg2 = 0 ; | |
5601 | PyObject * obj0 = 0 ; | |
5602 | PyObject * obj1 = 0 ; | |
5603 | char *kwnames[] = { | |
5604 | (char *) "self",(char *) "config", NULL | |
5605 | }; | |
5606 | ||
5607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5612 | SWIG_fail; | |
5613 | if (arg2 == NULL) { | |
5614 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5615 | SWIG_fail; | |
5616 | } | |
5617 | { | |
5618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5619 | (arg1)->Save(*arg2); | |
5620 | ||
5621 | wxPyEndAllowThreads(__tstate); | |
5622 | if (PyErr_Occurred()) SWIG_fail; | |
5623 | } | |
5624 | Py_INCREF(Py_None); resultobj = Py_None; | |
5625 | return resultobj; | |
5626 | fail: | |
5627 | return NULL; | |
5628 | } | |
5629 | ||
5630 | ||
5631 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5632 | PyObject *resultobj; | |
5633 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5634 | PyObject * obj0 = 0 ; | |
5635 | char *kwnames[] = { | |
5636 | (char *) "self", NULL | |
5637 | }; | |
5638 | ||
5639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5642 | { | |
5643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5644 | (arg1)->AddFilesToMenu(); | |
5645 | ||
5646 | wxPyEndAllowThreads(__tstate); | |
5647 | if (PyErr_Occurred()) SWIG_fail; | |
5648 | } | |
5649 | Py_INCREF(Py_None); resultobj = Py_None; | |
5650 | return resultobj; | |
5651 | fail: | |
5652 | return NULL; | |
5653 | } | |
5654 | ||
5655 | ||
5656 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5657 | PyObject *resultobj; | |
5658 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5659 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5660 | PyObject * obj0 = 0 ; | |
5661 | PyObject * obj1 = 0 ; | |
5662 | char *kwnames[] = { | |
5663 | (char *) "self",(char *) "menu", NULL | |
5664 | }; | |
5665 | ||
5666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5671 | { | |
5672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5673 | (arg1)->AddFilesToMenu(arg2); | |
5674 | ||
5675 | wxPyEndAllowThreads(__tstate); | |
5676 | if (PyErr_Occurred()) SWIG_fail; | |
5677 | } | |
5678 | Py_INCREF(Py_None); resultobj = Py_None; | |
5679 | return resultobj; | |
5680 | fail: | |
5681 | return NULL; | |
5682 | } | |
5683 | ||
5684 | ||
5685 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5686 | PyObject *resultobj; | |
5687 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5688 | int arg2 ; | |
5689 | wxString result; | |
5690 | PyObject * obj0 = 0 ; | |
5691 | PyObject * obj1 = 0 ; | |
5692 | char *kwnames[] = { | |
5693 | (char *) "self",(char *) "i", NULL | |
5694 | }; | |
5695 | ||
5696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
5697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5699 | arg2 = (int) SWIG_AsInt(obj1); | |
5700 | if (PyErr_Occurred()) SWIG_fail; | |
5701 | { | |
5702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5703 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5704 | ||
5705 | wxPyEndAllowThreads(__tstate); | |
5706 | if (PyErr_Occurred()) SWIG_fail; | |
5707 | } | |
5708 | { | |
5709 | #if wxUSE_UNICODE | |
5710 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5711 | #else | |
5712 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5713 | #endif | |
5714 | } | |
5715 | return resultobj; | |
5716 | fail: | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
5721 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5722 | PyObject *resultobj; | |
5723 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5724 | int result; | |
5725 | PyObject * obj0 = 0 ; | |
5726 | char *kwnames[] = { | |
5727 | (char *) "self", NULL | |
5728 | }; | |
5729 | ||
5730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5733 | { | |
5734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5735 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5736 | ||
5737 | wxPyEndAllowThreads(__tstate); | |
5738 | if (PyErr_Occurred()) SWIG_fail; | |
5739 | } | |
5740 | resultobj = SWIG_FromInt((int)result); | |
5741 | return resultobj; | |
5742 | fail: | |
5743 | return NULL; | |
5744 | } | |
5745 | ||
5746 | ||
5747 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5748 | PyObject *obj; | |
5749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5750 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5751 | Py_INCREF(obj); | |
5752 | return Py_BuildValue((char *)""); | |
5753 | } | |
5754 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5755 | PyObject *resultobj; | |
5756 | wxString *arg1 = 0 ; | |
5757 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5758 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5759 | wxSingleInstanceChecker *result; | |
5760 | bool temp1 = False ; | |
5761 | bool temp2 = False ; | |
5762 | PyObject * obj0 = 0 ; | |
5763 | PyObject * obj1 = 0 ; | |
5764 | char *kwnames[] = { | |
5765 | (char *) "name",(char *) "path", NULL | |
5766 | }; | |
5767 | ||
5768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5769 | { | |
5770 | arg1 = wxString_in_helper(obj0); | |
5771 | if (arg1 == NULL) SWIG_fail; | |
5772 | temp1 = True; | |
5773 | } | |
5774 | if (obj1) { | |
5775 | { | |
5776 | arg2 = wxString_in_helper(obj1); | |
5777 | if (arg2 == NULL) SWIG_fail; | |
5778 | temp2 = True; | |
5779 | } | |
5780 | } | |
5781 | { | |
5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5783 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5784 | ||
5785 | wxPyEndAllowThreads(__tstate); | |
5786 | if (PyErr_Occurred()) SWIG_fail; | |
5787 | } | |
5788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5789 | { | |
5790 | if (temp1) | |
5791 | delete arg1; | |
5792 | } | |
5793 | { | |
5794 | if (temp2) | |
5795 | delete arg2; | |
5796 | } | |
5797 | return resultobj; | |
5798 | fail: | |
5799 | { | |
5800 | if (temp1) | |
5801 | delete arg1; | |
5802 | } | |
5803 | { | |
5804 | if (temp2) | |
5805 | delete arg2; | |
5806 | } | |
5807 | return NULL; | |
5808 | } | |
5809 | ||
5810 | ||
5811 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5812 | PyObject *resultobj; | |
5813 | wxSingleInstanceChecker *result; | |
5814 | char *kwnames[] = { | |
5815 | NULL | |
5816 | }; | |
5817 | ||
5818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5819 | { | |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5821 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | } | |
5826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5827 | return resultobj; | |
5828 | fail: | |
5829 | return NULL; | |
5830 | } | |
5831 | ||
5832 | ||
5833 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5834 | PyObject *resultobj; | |
5835 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5836 | PyObject * obj0 = 0 ; | |
5837 | char *kwnames[] = { | |
5838 | (char *) "self", NULL | |
5839 | }; | |
5840 | ||
5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5844 | { | |
5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5846 | delete arg1; | |
5847 | ||
5848 | wxPyEndAllowThreads(__tstate); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | } | |
5851 | Py_INCREF(Py_None); resultobj = Py_None; | |
5852 | return resultobj; | |
5853 | fail: | |
5854 | return NULL; | |
5855 | } | |
5856 | ||
5857 | ||
5858 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5859 | PyObject *resultobj; | |
5860 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5861 | wxString *arg2 = 0 ; | |
5862 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5863 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5864 | bool result; | |
5865 | bool temp2 = False ; | |
5866 | bool temp3 = False ; | |
5867 | PyObject * obj0 = 0 ; | |
5868 | PyObject * obj1 = 0 ; | |
5869 | PyObject * obj2 = 0 ; | |
5870 | char *kwnames[] = { | |
5871 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5872 | }; | |
5873 | ||
5874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5877 | { | |
5878 | arg2 = wxString_in_helper(obj1); | |
5879 | if (arg2 == NULL) SWIG_fail; | |
5880 | temp2 = True; | |
5881 | } | |
5882 | if (obj2) { | |
5883 | { | |
5884 | arg3 = wxString_in_helper(obj2); | |
5885 | if (arg3 == NULL) SWIG_fail; | |
5886 | temp3 = True; | |
5887 | } | |
5888 | } | |
5889 | { | |
5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5891 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5892 | ||
5893 | wxPyEndAllowThreads(__tstate); | |
5894 | if (PyErr_Occurred()) SWIG_fail; | |
5895 | } | |
5896 | { | |
5897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5898 | } | |
5899 | { | |
5900 | if (temp2) | |
5901 | delete arg2; | |
5902 | } | |
5903 | { | |
5904 | if (temp3) | |
5905 | delete arg3; | |
5906 | } | |
5907 | return resultobj; | |
5908 | fail: | |
5909 | { | |
5910 | if (temp2) | |
5911 | delete arg2; | |
5912 | } | |
5913 | { | |
5914 | if (temp3) | |
5915 | delete arg3; | |
5916 | } | |
5917 | return NULL; | |
5918 | } | |
5919 | ||
5920 | ||
5921 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5922 | PyObject *resultobj; | |
5923 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5924 | bool result; | |
5925 | PyObject * obj0 = 0 ; | |
5926 | char *kwnames[] = { | |
5927 | (char *) "self", NULL | |
5928 | }; | |
5929 | ||
5930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5933 | { | |
5934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5935 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5936 | ||
5937 | wxPyEndAllowThreads(__tstate); | |
5938 | if (PyErr_Occurred()) SWIG_fail; | |
5939 | } | |
5940 | { | |
5941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5942 | } | |
5943 | return resultobj; | |
5944 | fail: | |
5945 | return NULL; | |
5946 | } | |
5947 | ||
5948 | ||
5949 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5950 | PyObject *obj; | |
5951 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5952 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5953 | Py_INCREF(obj); | |
5954 | return Py_BuildValue((char *)""); | |
5955 | } | |
5956 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5957 | PyObject *resultobj; | |
5958 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5959 | wxDC *arg2 = 0 ; | |
5960 | int arg3 ; | |
5961 | PyObject * obj0 = 0 ; | |
5962 | PyObject * obj1 = 0 ; | |
5963 | PyObject * obj2 = 0 ; | |
5964 | char *kwnames[] = { | |
5965 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5966 | }; | |
5967 | ||
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5971 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5972 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5973 | SWIG_fail; | |
5974 | if (arg2 == NULL) { | |
5975 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5976 | SWIG_fail; | |
5977 | } | |
5978 | arg3 = (int) SWIG_AsInt(obj2); | |
5979 | if (PyErr_Occurred()) SWIG_fail; | |
5980 | { | |
5981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5982 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5983 | ||
5984 | wxPyEndAllowThreads(__tstate); | |
5985 | if (PyErr_Occurred()) SWIG_fail; | |
5986 | } | |
5987 | Py_INCREF(Py_None); resultobj = Py_None; | |
5988 | return resultobj; | |
5989 | fail: | |
5990 | return NULL; | |
5991 | } | |
5992 | ||
5993 | ||
5994 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject *resultobj; | |
5996 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5997 | PyObject * obj0 = 0 ; | |
5998 | char *kwnames[] = { | |
5999 | (char *) "self", NULL | |
6000 | }; | |
6001 | ||
6002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6005 | { | |
6006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6007 | delete arg1; | |
6008 | ||
6009 | wxPyEndAllowThreads(__tstate); | |
6010 | if (PyErr_Occurred()) SWIG_fail; | |
6011 | } | |
6012 | Py_INCREF(Py_None); resultobj = Py_None; | |
6013 | return resultobj; | |
6014 | fail: | |
6015 | return NULL; | |
6016 | } | |
6017 | ||
6018 | ||
6019 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6020 | PyObject *resultobj; | |
6021 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6022 | wxString result; | |
6023 | PyObject * obj0 = 0 ; | |
6024 | char *kwnames[] = { | |
6025 | (char *) "self", NULL | |
6026 | }; | |
6027 | ||
6028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6031 | { | |
6032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6033 | result = (arg1)->GetTip(); | |
6034 | ||
6035 | wxPyEndAllowThreads(__tstate); | |
6036 | if (PyErr_Occurred()) SWIG_fail; | |
6037 | } | |
6038 | { | |
6039 | #if wxUSE_UNICODE | |
6040 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6041 | #else | |
6042 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6043 | #endif | |
6044 | } | |
6045 | return resultobj; | |
6046 | fail: | |
6047 | return NULL; | |
6048 | } | |
6049 | ||
6050 | ||
6051 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6052 | PyObject *resultobj; | |
6053 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6054 | size_t result; | |
6055 | PyObject * obj0 = 0 ; | |
6056 | char *kwnames[] = { | |
6057 | (char *) "self", NULL | |
6058 | }; | |
6059 | ||
6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6063 | { | |
6064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6065 | result = (size_t)(arg1)->GetCurrentTip(); | |
6066 | ||
6067 | wxPyEndAllowThreads(__tstate); | |
6068 | if (PyErr_Occurred()) SWIG_fail; | |
6069 | } | |
6070 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
6071 | return resultobj; | |
6072 | fail: | |
6073 | return NULL; | |
6074 | } | |
6075 | ||
6076 | ||
6077 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6078 | PyObject *resultobj; | |
6079 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6080 | wxString *arg2 = 0 ; | |
6081 | wxString result; | |
6082 | bool temp2 = False ; | |
6083 | PyObject * obj0 = 0 ; | |
6084 | PyObject * obj1 = 0 ; | |
6085 | char *kwnames[] = { | |
6086 | (char *) "self",(char *) "tip", NULL | |
6087 | }; | |
6088 | ||
6089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6092 | { | |
6093 | arg2 = wxString_in_helper(obj1); | |
6094 | if (arg2 == NULL) SWIG_fail; | |
6095 | temp2 = True; | |
6096 | } | |
6097 | { | |
6098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6099 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6100 | ||
6101 | wxPyEndAllowThreads(__tstate); | |
6102 | if (PyErr_Occurred()) SWIG_fail; | |
6103 | } | |
6104 | { | |
6105 | #if wxUSE_UNICODE | |
6106 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6107 | #else | |
6108 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6109 | #endif | |
6110 | } | |
6111 | { | |
6112 | if (temp2) | |
6113 | delete arg2; | |
6114 | } | |
6115 | return resultobj; | |
6116 | fail: | |
6117 | { | |
6118 | if (temp2) | |
6119 | delete arg2; | |
6120 | } | |
6121 | return NULL; | |
6122 | } | |
6123 | ||
6124 | ||
6125 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6126 | PyObject *obj; | |
6127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6128 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6129 | Py_INCREF(obj); | |
6130 | return Py_BuildValue((char *)""); | |
6131 | } | |
6132 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6133 | PyObject *resultobj; | |
6134 | size_t arg1 ; | |
6135 | wxPyTipProvider *result; | |
6136 | PyObject * obj0 = 0 ; | |
6137 | char *kwnames[] = { | |
6138 | (char *) "currentTip", NULL | |
6139 | }; | |
6140 | ||
6141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
6142 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
6143 | if (PyErr_Occurred()) SWIG_fail; | |
6144 | { | |
6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6146 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6147 | ||
6148 | wxPyEndAllowThreads(__tstate); | |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
6150 | } | |
6151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6152 | return resultobj; | |
6153 | fail: | |
6154 | return NULL; | |
6155 | } | |
6156 | ||
6157 | ||
6158 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6159 | PyObject *resultobj; | |
6160 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6161 | PyObject *arg2 = (PyObject *) 0 ; | |
6162 | PyObject *arg3 = (PyObject *) 0 ; | |
6163 | PyObject * obj0 = 0 ; | |
6164 | PyObject * obj1 = 0 ; | |
6165 | PyObject * obj2 = 0 ; | |
6166 | char *kwnames[] = { | |
6167 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6168 | }; | |
6169 | ||
6170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6173 | arg2 = obj1; | |
6174 | arg3 = obj2; | |
6175 | { | |
6176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6177 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6178 | ||
6179 | wxPyEndAllowThreads(__tstate); | |
6180 | if (PyErr_Occurred()) SWIG_fail; | |
6181 | } | |
6182 | Py_INCREF(Py_None); resultobj = Py_None; | |
6183 | return resultobj; | |
6184 | fail: | |
6185 | return NULL; | |
6186 | } | |
6187 | ||
6188 | ||
6189 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6190 | PyObject *obj; | |
6191 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6192 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6193 | Py_INCREF(obj); | |
6194 | return Py_BuildValue((char *)""); | |
6195 | } | |
6196 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6197 | PyObject *resultobj; | |
6198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6199 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
6200 | bool arg3 = (bool) True ; | |
6201 | bool result; | |
6202 | PyObject * obj0 = 0 ; | |
6203 | PyObject * obj1 = 0 ; | |
6204 | PyObject * obj2 = 0 ; | |
6205 | char *kwnames[] = { | |
6206 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6207 | }; | |
6208 | ||
6209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6214 | if (obj2) { | |
6215 | arg3 = (bool) SWIG_AsBool(obj2); | |
6216 | if (PyErr_Occurred()) SWIG_fail; | |
6217 | } | |
6218 | { | |
6219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6220 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6221 | ||
6222 | wxPyEndAllowThreads(__tstate); | |
6223 | if (PyErr_Occurred()) SWIG_fail; | |
6224 | } | |
6225 | { | |
6226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6227 | } | |
6228 | return resultobj; | |
6229 | fail: | |
6230 | return NULL; | |
6231 | } | |
6232 | ||
6233 | ||
6234 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6235 | PyObject *resultobj; | |
6236 | wxString *arg1 = 0 ; | |
6237 | size_t arg2 ; | |
6238 | wxTipProvider *result; | |
6239 | bool temp1 = False ; | |
6240 | PyObject * obj0 = 0 ; | |
6241 | PyObject * obj1 = 0 ; | |
6242 | char *kwnames[] = { | |
6243 | (char *) "filename",(char *) "currentTip", NULL | |
6244 | }; | |
6245 | ||
6246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6247 | { | |
6248 | arg1 = wxString_in_helper(obj0); | |
6249 | if (arg1 == NULL) SWIG_fail; | |
6250 | temp1 = True; | |
6251 | } | |
6252 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6253 | if (PyErr_Occurred()) SWIG_fail; | |
6254 | { | |
6255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6256 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6257 | ||
6258 | wxPyEndAllowThreads(__tstate); | |
6259 | if (PyErr_Occurred()) SWIG_fail; | |
6260 | } | |
6261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6262 | { | |
6263 | if (temp1) | |
6264 | delete arg1; | |
6265 | } | |
6266 | return resultobj; | |
6267 | fail: | |
6268 | { | |
6269 | if (temp1) | |
6270 | delete arg1; | |
6271 | } | |
6272 | return NULL; | |
6273 | } | |
6274 | ||
6275 | ||
6276 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6277 | PyObject *resultobj; | |
6278 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6279 | int arg2 = (int) -1 ; | |
6280 | wxPyTimer *result; | |
6281 | PyObject * obj0 = 0 ; | |
6282 | PyObject * obj1 = 0 ; | |
6283 | char *kwnames[] = { | |
6284 | (char *) "owner",(char *) "id", NULL | |
6285 | }; | |
6286 | ||
6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6288 | if (obj0) { | |
6289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6291 | } | |
6292 | if (obj1) { | |
6293 | arg2 = (int) SWIG_AsInt(obj1); | |
6294 | if (PyErr_Occurred()) SWIG_fail; | |
6295 | } | |
6296 | { | |
6297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6298 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6299 | ||
6300 | wxPyEndAllowThreads(__tstate); | |
6301 | if (PyErr_Occurred()) SWIG_fail; | |
6302 | } | |
6303 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6304 | return resultobj; | |
6305 | fail: | |
6306 | return NULL; | |
6307 | } | |
6308 | ||
6309 | ||
6310 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6311 | PyObject *resultobj; | |
6312 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6313 | PyObject * obj0 = 0 ; | |
6314 | char *kwnames[] = { | |
6315 | (char *) "self", NULL | |
6316 | }; | |
6317 | ||
6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6321 | { | |
6322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6323 | delete arg1; | |
6324 | ||
6325 | wxPyEndAllowThreads(__tstate); | |
6326 | if (PyErr_Occurred()) SWIG_fail; | |
6327 | } | |
6328 | Py_INCREF(Py_None); resultobj = Py_None; | |
6329 | return resultobj; | |
6330 | fail: | |
6331 | return NULL; | |
6332 | } | |
6333 | ||
6334 | ||
6335 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6336 | PyObject *resultobj; | |
6337 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6338 | PyObject *arg2 = (PyObject *) 0 ; | |
6339 | PyObject *arg3 = (PyObject *) 0 ; | |
6340 | int arg4 = (int) 1 ; | |
6341 | PyObject * obj0 = 0 ; | |
6342 | PyObject * obj1 = 0 ; | |
6343 | PyObject * obj2 = 0 ; | |
6344 | PyObject * obj3 = 0 ; | |
6345 | char *kwnames[] = { | |
6346 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6347 | }; | |
6348 | ||
6349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6352 | arg2 = obj1; | |
6353 | arg3 = obj2; | |
6354 | if (obj3) { | |
6355 | arg4 = (int) SWIG_AsInt(obj3); | |
6356 | if (PyErr_Occurred()) SWIG_fail; | |
6357 | } | |
6358 | { | |
6359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6360 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6361 | ||
6362 | wxPyEndAllowThreads(__tstate); | |
6363 | if (PyErr_Occurred()) SWIG_fail; | |
6364 | } | |
6365 | Py_INCREF(Py_None); resultobj = Py_None; | |
6366 | return resultobj; | |
6367 | fail: | |
6368 | return NULL; | |
6369 | } | |
6370 | ||
6371 | ||
6372 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6373 | PyObject *resultobj; | |
6374 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6375 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6376 | int arg3 = (int) -1 ; | |
6377 | PyObject * obj0 = 0 ; | |
6378 | PyObject * obj1 = 0 ; | |
6379 | PyObject * obj2 = 0 ; | |
6380 | char *kwnames[] = { | |
6381 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6382 | }; | |
6383 | ||
6384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6389 | if (obj2) { | |
6390 | arg3 = (int) SWIG_AsInt(obj2); | |
6391 | if (PyErr_Occurred()) SWIG_fail; | |
6392 | } | |
6393 | { | |
6394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6395 | (arg1)->SetOwner(arg2,arg3); | |
6396 | ||
6397 | wxPyEndAllowThreads(__tstate); | |
6398 | if (PyErr_Occurred()) SWIG_fail; | |
6399 | } | |
6400 | Py_INCREF(Py_None); resultobj = Py_None; | |
6401 | return resultobj; | |
6402 | fail: | |
6403 | return NULL; | |
6404 | } | |
6405 | ||
6406 | ||
6407 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6408 | PyObject *resultobj; | |
6409 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6410 | int arg2 = (int) -1 ; | |
6411 | bool arg3 = (bool) False ; | |
6412 | bool result; | |
6413 | PyObject * obj0 = 0 ; | |
6414 | PyObject * obj1 = 0 ; | |
6415 | PyObject * obj2 = 0 ; | |
6416 | char *kwnames[] = { | |
6417 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6418 | }; | |
6419 | ||
6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6423 | if (obj1) { | |
6424 | arg2 = (int) SWIG_AsInt(obj1); | |
6425 | if (PyErr_Occurred()) SWIG_fail; | |
6426 | } | |
6427 | if (obj2) { | |
6428 | arg3 = (bool) SWIG_AsBool(obj2); | |
6429 | if (PyErr_Occurred()) SWIG_fail; | |
6430 | } | |
6431 | { | |
6432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6433 | result = (bool)(arg1)->Start(arg2,arg3); | |
6434 | ||
6435 | wxPyEndAllowThreads(__tstate); | |
6436 | if (PyErr_Occurred()) SWIG_fail; | |
6437 | } | |
6438 | { | |
6439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6440 | } | |
6441 | return resultobj; | |
6442 | fail: | |
6443 | return NULL; | |
6444 | } | |
6445 | ||
6446 | ||
6447 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6448 | PyObject *resultobj; | |
6449 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6450 | PyObject * obj0 = 0 ; | |
6451 | char *kwnames[] = { | |
6452 | (char *) "self", NULL | |
6453 | }; | |
6454 | ||
6455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6458 | { | |
6459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6460 | (arg1)->Stop(); | |
6461 | ||
6462 | wxPyEndAllowThreads(__tstate); | |
6463 | if (PyErr_Occurred()) SWIG_fail; | |
6464 | } | |
6465 | Py_INCREF(Py_None); resultobj = Py_None; | |
6466 | return resultobj; | |
6467 | fail: | |
6468 | return NULL; | |
6469 | } | |
6470 | ||
6471 | ||
6472 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6473 | PyObject *resultobj; | |
6474 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6475 | bool result; | |
6476 | PyObject * obj0 = 0 ; | |
6477 | char *kwnames[] = { | |
6478 | (char *) "self", NULL | |
6479 | }; | |
6480 | ||
6481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
6482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6484 | { | |
6485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6486 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6487 | ||
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | } | |
6491 | { | |
6492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6493 | } | |
6494 | return resultobj; | |
6495 | fail: | |
6496 | return NULL; | |
6497 | } | |
6498 | ||
6499 | ||
6500 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6501 | PyObject *resultobj; | |
6502 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6503 | int result; | |
6504 | PyObject * obj0 = 0 ; | |
6505 | char *kwnames[] = { | |
6506 | (char *) "self", NULL | |
6507 | }; | |
6508 | ||
6509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
6510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6512 | { | |
6513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6514 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6515 | ||
6516 | wxPyEndAllowThreads(__tstate); | |
6517 | if (PyErr_Occurred()) SWIG_fail; | |
6518 | } | |
6519 | resultobj = SWIG_FromInt((int)result); | |
6520 | return resultobj; | |
6521 | fail: | |
6522 | return NULL; | |
6523 | } | |
6524 | ||
6525 | ||
6526 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6527 | PyObject *resultobj; | |
6528 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6529 | bool result; | |
6530 | PyObject * obj0 = 0 ; | |
6531 | char *kwnames[] = { | |
6532 | (char *) "self", NULL | |
6533 | }; | |
6534 | ||
6535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
6536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6538 | { | |
6539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6540 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6541 | ||
6542 | wxPyEndAllowThreads(__tstate); | |
6543 | if (PyErr_Occurred()) SWIG_fail; | |
6544 | } | |
6545 | { | |
6546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6547 | } | |
6548 | return resultobj; | |
6549 | fail: | |
6550 | return NULL; | |
6551 | } | |
6552 | ||
6553 | ||
6554 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6555 | PyObject *resultobj; | |
6556 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6557 | int result; | |
6558 | PyObject * obj0 = 0 ; | |
6559 | char *kwnames[] = { | |
6560 | (char *) "self", NULL | |
6561 | }; | |
6562 | ||
6563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
6564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6566 | { | |
6567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6568 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6569 | ||
6570 | wxPyEndAllowThreads(__tstate); | |
6571 | if (PyErr_Occurred()) SWIG_fail; | |
6572 | } | |
6573 | resultobj = SWIG_FromInt((int)result); | |
6574 | return resultobj; | |
6575 | fail: | |
6576 | return NULL; | |
6577 | } | |
6578 | ||
6579 | ||
6580 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { | |
6581 | PyObject *obj; | |
6582 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6583 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6584 | Py_INCREF(obj); | |
6585 | return Py_BuildValue((char *)""); | |
6586 | } | |
6587 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6588 | PyObject *resultobj; | |
6589 | int arg1 = (int) 0 ; | |
6590 | int arg2 = (int) 0 ; | |
6591 | wxTimerEvent *result; | |
6592 | PyObject * obj0 = 0 ; | |
6593 | PyObject * obj1 = 0 ; | |
6594 | char *kwnames[] = { | |
6595 | (char *) "timerid",(char *) "interval", NULL | |
6596 | }; | |
6597 | ||
6598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
6599 | if (obj0) { | |
6600 | arg1 = (int) SWIG_AsInt(obj0); | |
6601 | if (PyErr_Occurred()) SWIG_fail; | |
6602 | } | |
6603 | if (obj1) { | |
6604 | arg2 = (int) SWIG_AsInt(obj1); | |
6605 | if (PyErr_Occurred()) SWIG_fail; | |
6606 | } | |
6607 | { | |
6608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6609 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6610 | ||
6611 | wxPyEndAllowThreads(__tstate); | |
6612 | if (PyErr_Occurred()) SWIG_fail; | |
6613 | } | |
6614 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
6615 | return resultobj; | |
6616 | fail: | |
6617 | return NULL; | |
6618 | } | |
6619 | ||
6620 | ||
6621 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6622 | PyObject *resultobj; | |
6623 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6624 | int result; | |
6625 | PyObject * obj0 = 0 ; | |
6626 | char *kwnames[] = { | |
6627 | (char *) "self", NULL | |
6628 | }; | |
6629 | ||
6630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
6631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
6632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6633 | { | |
6634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6635 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6636 | ||
6637 | wxPyEndAllowThreads(__tstate); | |
6638 | if (PyErr_Occurred()) SWIG_fail; | |
6639 | } | |
6640 | resultobj = SWIG_FromInt((int)result); | |
6641 | return resultobj; | |
6642 | fail: | |
6643 | return NULL; | |
6644 | } | |
6645 | ||
6646 | ||
6647 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6648 | PyObject *obj; | |
6649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6650 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6651 | Py_INCREF(obj); | |
6652 | return Py_BuildValue((char *)""); | |
6653 | } | |
6654 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6655 | PyObject *resultobj; | |
6656 | wxTimer *arg1 = 0 ; | |
6657 | wxTimerRunner *result; | |
6658 | PyObject * obj0 = 0 ; | |
6659 | ||
6660 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6662 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6663 | SWIG_fail; | |
6664 | if (arg1 == NULL) { | |
6665 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6666 | SWIG_fail; | |
6667 | } | |
6668 | { | |
6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6670 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6671 | ||
6672 | wxPyEndAllowThreads(__tstate); | |
6673 | if (PyErr_Occurred()) SWIG_fail; | |
6674 | } | |
6675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
6676 | return resultobj; | |
6677 | fail: | |
6678 | return NULL; | |
6679 | } | |
6680 | ||
6681 | ||
6682 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6683 | PyObject *resultobj; | |
6684 | wxTimer *arg1 = 0 ; | |
6685 | int arg2 ; | |
6686 | bool arg3 = (bool) False ; | |
6687 | wxTimerRunner *result; | |
6688 | PyObject * obj0 = 0 ; | |
6689 | PyObject * obj1 = 0 ; | |
6690 | PyObject * obj2 = 0 ; | |
6691 | ||
6692 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
6693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6694 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6695 | SWIG_fail; | |
6696 | if (arg1 == NULL) { | |
6697 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6698 | SWIG_fail; | |
6699 | } | |
6700 | arg2 = (int) SWIG_AsInt(obj1); | |
6701 | if (PyErr_Occurred()) SWIG_fail; | |
6702 | if (obj2) { | |
6703 | arg3 = (bool) SWIG_AsBool(obj2); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
6706 | { | |
6707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6708 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6709 | ||
6710 | wxPyEndAllowThreads(__tstate); | |
6711 | if (PyErr_Occurred()) SWIG_fail; | |
6712 | } | |
6713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
6714 | return resultobj; | |
6715 | fail: | |
6716 | return NULL; | |
6717 | } | |
6718 | ||
6719 | ||
6720 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6721 | int argc; | |
6722 | PyObject *argv[4]; | |
6723 | int ii; | |
6724 | ||
6725 | argc = PyObject_Length(args); | |
6726 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6727 | argv[ii] = PyTuple_GetItem(args,ii); | |
6728 | } | |
6729 | if (argc == 1) { | |
6730 | int _v; | |
6731 | { | |
6732 | void *ptr; | |
6733 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6734 | _v = 0; | |
6735 | PyErr_Clear(); | |
6736 | } else { | |
6737 | _v = 1; | |
6738 | } | |
6739 | } | |
6740 | if (_v) { | |
6741 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6742 | } | |
6743 | } | |
6744 | if ((argc >= 2) && (argc <= 3)) { | |
6745 | int _v; | |
6746 | { | |
6747 | void *ptr; | |
6748 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6749 | _v = 0; | |
6750 | PyErr_Clear(); | |
6751 | } else { | |
6752 | _v = 1; | |
6753 | } | |
6754 | } | |
6755 | if (_v) { | |
6756 | _v = SWIG_CheckInt(argv[1]); | |
6757 | if (_v) { | |
6758 | if (argc <= 2) { | |
6759 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6760 | } | |
6761 | _v = SWIG_CheckBool(argv[2]); | |
6762 | if (_v) { | |
6763 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6764 | } | |
6765 | } | |
6766 | } | |
6767 | } | |
6768 | ||
6769 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6770 | return NULL; | |
6771 | } | |
6772 | ||
6773 | ||
6774 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6775 | PyObject *resultobj; | |
6776 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6777 | PyObject * obj0 = 0 ; | |
6778 | char *kwnames[] = { | |
6779 | (char *) "self", NULL | |
6780 | }; | |
6781 | ||
6782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
6784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6785 | { | |
6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6787 | delete arg1; | |
6788 | ||
6789 | wxPyEndAllowThreads(__tstate); | |
6790 | if (PyErr_Occurred()) SWIG_fail; | |
6791 | } | |
6792 | Py_INCREF(Py_None); resultobj = Py_None; | |
6793 | return resultobj; | |
6794 | fail: | |
6795 | return NULL; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6800 | PyObject *resultobj; | |
6801 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6802 | int arg2 ; | |
6803 | bool arg3 = (bool) False ; | |
6804 | PyObject * obj0 = 0 ; | |
6805 | PyObject * obj1 = 0 ; | |
6806 | PyObject * obj2 = 0 ; | |
6807 | char *kwnames[] = { | |
6808 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6809 | }; | |
6810 | ||
6811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
6813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6814 | arg2 = (int) SWIG_AsInt(obj1); | |
6815 | if (PyErr_Occurred()) SWIG_fail; | |
6816 | if (obj2) { | |
6817 | arg3 = (bool) SWIG_AsBool(obj2); | |
6818 | if (PyErr_Occurred()) SWIG_fail; | |
6819 | } | |
6820 | { | |
6821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6822 | (arg1)->Start(arg2,arg3); | |
6823 | ||
6824 | wxPyEndAllowThreads(__tstate); | |
6825 | if (PyErr_Occurred()) SWIG_fail; | |
6826 | } | |
6827 | Py_INCREF(Py_None); resultobj = Py_None; | |
6828 | return resultobj; | |
6829 | fail: | |
6830 | return NULL; | |
6831 | } | |
6832 | ||
6833 | ||
6834 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6835 | PyObject *obj; | |
6836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6837 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6838 | Py_INCREF(obj); | |
6839 | return Py_BuildValue((char *)""); | |
6840 | } | |
6841 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6842 | PyObject *resultobj; | |
6843 | wxLog *result; | |
6844 | char *kwnames[] = { | |
6845 | NULL | |
6846 | }; | |
6847 | ||
6848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6849 | { | |
6850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6851 | result = (wxLog *)new wxLog(); | |
6852 | ||
6853 | wxPyEndAllowThreads(__tstate); | |
6854 | if (PyErr_Occurred()) SWIG_fail; | |
6855 | } | |
6856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
6857 | return resultobj; | |
6858 | fail: | |
6859 | return NULL; | |
6860 | } | |
6861 | ||
6862 | ||
6863 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6864 | PyObject *resultobj; | |
6865 | bool result; | |
6866 | char *kwnames[] = { | |
6867 | NULL | |
6868 | }; | |
6869 | ||
6870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6871 | { | |
6872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6873 | result = (bool)wxLog::IsEnabled(); | |
6874 | ||
6875 | wxPyEndAllowThreads(__tstate); | |
6876 | if (PyErr_Occurred()) SWIG_fail; | |
6877 | } | |
6878 | { | |
6879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6880 | } | |
6881 | return resultobj; | |
6882 | fail: | |
6883 | return NULL; | |
6884 | } | |
6885 | ||
6886 | ||
6887 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6888 | PyObject *resultobj; | |
6889 | bool arg1 = (bool) True ; | |
6890 | bool result; | |
6891 | PyObject * obj0 = 0 ; | |
6892 | char *kwnames[] = { | |
6893 | (char *) "doIt", NULL | |
6894 | }; | |
6895 | ||
6896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6897 | if (obj0) { | |
6898 | arg1 = (bool) SWIG_AsBool(obj0); | |
6899 | if (PyErr_Occurred()) SWIG_fail; | |
6900 | } | |
6901 | { | |
6902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6903 | result = (bool)wxLog::EnableLogging(arg1); | |
6904 | ||
6905 | wxPyEndAllowThreads(__tstate); | |
6906 | if (PyErr_Occurred()) SWIG_fail; | |
6907 | } | |
6908 | { | |
6909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6910 | } | |
6911 | return resultobj; | |
6912 | fail: | |
6913 | return NULL; | |
6914 | } | |
6915 | ||
6916 | ||
6917 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6918 | PyObject *resultobj; | |
6919 | wxLogLevel arg1 ; | |
6920 | wxChar *arg2 = (wxChar *) 0 ; | |
6921 | time_t arg3 ; | |
6922 | PyObject * obj0 = 0 ; | |
6923 | PyObject * obj1 = 0 ; | |
6924 | PyObject * obj2 = 0 ; | |
6925 | char *kwnames[] = { | |
6926 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6927 | }; | |
6928 | ||
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6930 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
6931 | if (PyErr_Occurred()) SWIG_fail; | |
6932 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
6933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6934 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
6935 | if (PyErr_Occurred()) SWIG_fail; | |
6936 | { | |
6937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6938 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6939 | ||
6940 | wxPyEndAllowThreads(__tstate); | |
6941 | if (PyErr_Occurred()) SWIG_fail; | |
6942 | } | |
6943 | Py_INCREF(Py_None); resultobj = Py_None; | |
6944 | return resultobj; | |
6945 | fail: | |
6946 | return NULL; | |
6947 | } | |
6948 | ||
6949 | ||
6950 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6951 | PyObject *resultobj; | |
6952 | wxLog *arg1 = (wxLog *) 0 ; | |
6953 | PyObject * obj0 = 0 ; | |
6954 | char *kwnames[] = { | |
6955 | (char *) "self", NULL | |
6956 | }; | |
6957 | ||
6958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
6960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6961 | { | |
6962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6963 | (arg1)->Flush(); | |
6964 | ||
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
6968 | Py_INCREF(Py_None); resultobj = Py_None; | |
6969 | return resultobj; | |
6970 | fail: | |
6971 | return NULL; | |
6972 | } | |
6973 | ||
6974 | ||
6975 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6976 | PyObject *resultobj; | |
6977 | char *kwnames[] = { | |
6978 | NULL | |
6979 | }; | |
6980 | ||
6981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6982 | { | |
6983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6984 | wxLog::FlushActive(); | |
6985 | ||
6986 | wxPyEndAllowThreads(__tstate); | |
6987 | if (PyErr_Occurred()) SWIG_fail; | |
6988 | } | |
6989 | Py_INCREF(Py_None); resultobj = Py_None; | |
6990 | return resultobj; | |
6991 | fail: | |
6992 | return NULL; | |
6993 | } | |
6994 | ||
6995 | ||
6996 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6997 | PyObject *resultobj; | |
6998 | wxLog *result; | |
6999 | char *kwnames[] = { | |
7000 | NULL | |
7001 | }; | |
7002 | ||
7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7004 | { | |
7005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7006 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7007 | ||
7008 | wxPyEndAllowThreads(__tstate); | |
7009 | if (PyErr_Occurred()) SWIG_fail; | |
7010 | } | |
7011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7012 | return resultobj; | |
7013 | fail: | |
7014 | return NULL; | |
7015 | } | |
7016 | ||
7017 | ||
7018 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7019 | PyObject *resultobj; | |
7020 | wxLog *arg1 = (wxLog *) 0 ; | |
7021 | wxLog *result; | |
7022 | PyObject * obj0 = 0 ; | |
7023 | char *kwnames[] = { | |
7024 | (char *) "pLogger", NULL | |
7025 | }; | |
7026 | ||
7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7030 | { | |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7033 | ||
7034 | wxPyEndAllowThreads(__tstate); | |
7035 | if (PyErr_Occurred()) SWIG_fail; | |
7036 | } | |
7037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7038 | return resultobj; | |
7039 | fail: | |
7040 | return NULL; | |
7041 | } | |
7042 | ||
7043 | ||
7044 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7045 | PyObject *resultobj; | |
7046 | char *kwnames[] = { | |
7047 | NULL | |
7048 | }; | |
7049 | ||
7050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7051 | { | |
7052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7053 | wxLog::Suspend(); | |
7054 | ||
7055 | wxPyEndAllowThreads(__tstate); | |
7056 | if (PyErr_Occurred()) SWIG_fail; | |
7057 | } | |
7058 | Py_INCREF(Py_None); resultobj = Py_None; | |
7059 | return resultobj; | |
7060 | fail: | |
7061 | return NULL; | |
7062 | } | |
7063 | ||
7064 | ||
7065 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7066 | PyObject *resultobj; | |
7067 | char *kwnames[] = { | |
7068 | NULL | |
7069 | }; | |
7070 | ||
7071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7072 | { | |
7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7074 | wxLog::Resume(); | |
7075 | ||
7076 | wxPyEndAllowThreads(__tstate); | |
7077 | if (PyErr_Occurred()) SWIG_fail; | |
7078 | } | |
7079 | Py_INCREF(Py_None); resultobj = Py_None; | |
7080 | return resultobj; | |
7081 | fail: | |
7082 | return NULL; | |
7083 | } | |
7084 | ||
7085 | ||
7086 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7087 | PyObject *resultobj; | |
7088 | bool arg1 = (bool) True ; | |
7089 | PyObject * obj0 = 0 ; | |
7090 | char *kwnames[] = { | |
7091 | (char *) "bVerbose", NULL | |
7092 | }; | |
7093 | ||
7094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7095 | if (obj0) { | |
7096 | arg1 = (bool) SWIG_AsBool(obj0); | |
7097 | if (PyErr_Occurred()) SWIG_fail; | |
7098 | } | |
7099 | { | |
7100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7101 | wxLog::SetVerbose(arg1); | |
7102 | ||
7103 | wxPyEndAllowThreads(__tstate); | |
7104 | if (PyErr_Occurred()) SWIG_fail; | |
7105 | } | |
7106 | Py_INCREF(Py_None); resultobj = Py_None; | |
7107 | return resultobj; | |
7108 | fail: | |
7109 | return NULL; | |
7110 | } | |
7111 | ||
7112 | ||
7113 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7114 | PyObject *resultobj; | |
7115 | wxLogLevel arg1 ; | |
7116 | PyObject * obj0 = 0 ; | |
7117 | char *kwnames[] = { | |
7118 | (char *) "logLevel", NULL | |
7119 | }; | |
7120 | ||
7121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
7122 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
7123 | if (PyErr_Occurred()) SWIG_fail; | |
7124 | { | |
7125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7126 | wxLog::SetLogLevel(arg1); | |
7127 | ||
7128 | wxPyEndAllowThreads(__tstate); | |
7129 | if (PyErr_Occurred()) SWIG_fail; | |
7130 | } | |
7131 | Py_INCREF(Py_None); resultobj = Py_None; | |
7132 | return resultobj; | |
7133 | fail: | |
7134 | return NULL; | |
7135 | } | |
7136 | ||
7137 | ||
7138 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7139 | PyObject *resultobj; | |
7140 | char *kwnames[] = { | |
7141 | NULL | |
7142 | }; | |
7143 | ||
7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7145 | { | |
7146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7147 | wxLog::DontCreateOnDemand(); | |
7148 | ||
7149 | wxPyEndAllowThreads(__tstate); | |
7150 | if (PyErr_Occurred()) SWIG_fail; | |
7151 | } | |
7152 | Py_INCREF(Py_None); resultobj = Py_None; | |
7153 | return resultobj; | |
7154 | fail: | |
7155 | return NULL; | |
7156 | } | |
7157 | ||
7158 | ||
7159 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7160 | PyObject *resultobj; | |
7161 | wxTraceMask arg1 ; | |
7162 | PyObject * obj0 = 0 ; | |
7163 | char *kwnames[] = { | |
7164 | (char *) "ulMask", NULL | |
7165 | }; | |
7166 | ||
7167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
7168 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); | |
7169 | if (PyErr_Occurred()) SWIG_fail; | |
7170 | { | |
7171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7172 | wxLog::SetTraceMask(arg1); | |
7173 | ||
7174 | wxPyEndAllowThreads(__tstate); | |
7175 | if (PyErr_Occurred()) SWIG_fail; | |
7176 | } | |
7177 | Py_INCREF(Py_None); resultobj = Py_None; | |
7178 | return resultobj; | |
7179 | fail: | |
7180 | return NULL; | |
7181 | } | |
7182 | ||
7183 | ||
7184 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7185 | PyObject *resultobj; | |
7186 | wxString *arg1 = 0 ; | |
7187 | bool temp1 = False ; | |
7188 | PyObject * obj0 = 0 ; | |
7189 | char *kwnames[] = { | |
7190 | (char *) "str", NULL | |
7191 | }; | |
7192 | ||
7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7194 | { | |
7195 | arg1 = wxString_in_helper(obj0); | |
7196 | if (arg1 == NULL) SWIG_fail; | |
7197 | temp1 = True; | |
7198 | } | |
7199 | { | |
7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7201 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7202 | ||
7203 | wxPyEndAllowThreads(__tstate); | |
7204 | if (PyErr_Occurred()) SWIG_fail; | |
7205 | } | |
7206 | Py_INCREF(Py_None); resultobj = Py_None; | |
7207 | { | |
7208 | if (temp1) | |
7209 | delete arg1; | |
7210 | } | |
7211 | return resultobj; | |
7212 | fail: | |
7213 | { | |
7214 | if (temp1) | |
7215 | delete arg1; | |
7216 | } | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
7221 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7222 | PyObject *resultobj; | |
7223 | wxString *arg1 = 0 ; | |
7224 | bool temp1 = False ; | |
7225 | PyObject * obj0 = 0 ; | |
7226 | char *kwnames[] = { | |
7227 | (char *) "str", NULL | |
7228 | }; | |
7229 | ||
7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7231 | { | |
7232 | arg1 = wxString_in_helper(obj0); | |
7233 | if (arg1 == NULL) SWIG_fail; | |
7234 | temp1 = True; | |
7235 | } | |
7236 | { | |
7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7238 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7239 | ||
7240 | wxPyEndAllowThreads(__tstate); | |
7241 | if (PyErr_Occurred()) SWIG_fail; | |
7242 | } | |
7243 | Py_INCREF(Py_None); resultobj = Py_None; | |
7244 | { | |
7245 | if (temp1) | |
7246 | delete arg1; | |
7247 | } | |
7248 | return resultobj; | |
7249 | fail: | |
7250 | { | |
7251 | if (temp1) | |
7252 | delete arg1; | |
7253 | } | |
7254 | return NULL; | |
7255 | } | |
7256 | ||
7257 | ||
7258 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7259 | PyObject *resultobj; | |
7260 | char *kwnames[] = { | |
7261 | NULL | |
7262 | }; | |
7263 | ||
7264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7265 | { | |
7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7267 | wxLog::ClearTraceMasks(); | |
7268 | ||
7269 | wxPyEndAllowThreads(__tstate); | |
7270 | if (PyErr_Occurred()) SWIG_fail; | |
7271 | } | |
7272 | Py_INCREF(Py_None); resultobj = Py_None; | |
7273 | return resultobj; | |
7274 | fail: | |
7275 | return NULL; | |
7276 | } | |
7277 | ||
7278 | ||
7279 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7280 | PyObject *resultobj; | |
7281 | wxArrayString *result; | |
7282 | char *kwnames[] = { | |
7283 | NULL | |
7284 | }; | |
7285 | ||
7286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7287 | { | |
7288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7289 | { | |
7290 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7291 | result = (wxArrayString *) &_result_ref; | |
7292 | } | |
7293 | ||
7294 | wxPyEndAllowThreads(__tstate); | |
7295 | if (PyErr_Occurred()) SWIG_fail; | |
7296 | } | |
7297 | { | |
7298 | resultobj = wxArrayString2PyList_helper(*result); | |
7299 | } | |
7300 | return resultobj; | |
7301 | fail: | |
7302 | return NULL; | |
7303 | } | |
7304 | ||
7305 | ||
7306 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7307 | PyObject *resultobj; | |
7308 | wxChar *arg1 = (wxChar *) 0 ; | |
7309 | PyObject * obj0 = 0 ; | |
7310 | char *kwnames[] = { | |
7311 | (char *) "ts", NULL | |
7312 | }; | |
7313 | ||
7314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7317 | { | |
7318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7319 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7320 | ||
7321 | wxPyEndAllowThreads(__tstate); | |
7322 | if (PyErr_Occurred()) SWIG_fail; | |
7323 | } | |
7324 | Py_INCREF(Py_None); resultobj = Py_None; | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | return NULL; | |
7328 | } | |
7329 | ||
7330 | ||
7331 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject *resultobj; | |
7333 | bool result; | |
7334 | char *kwnames[] = { | |
7335 | NULL | |
7336 | }; | |
7337 | ||
7338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7339 | { | |
7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7341 | result = (bool)wxLog::GetVerbose(); | |
7342 | ||
7343 | wxPyEndAllowThreads(__tstate); | |
7344 | if (PyErr_Occurred()) SWIG_fail; | |
7345 | } | |
7346 | { | |
7347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7348 | } | |
7349 | return resultobj; | |
7350 | fail: | |
7351 | return NULL; | |
7352 | } | |
7353 | ||
7354 | ||
7355 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7356 | PyObject *resultobj; | |
7357 | wxTraceMask result; | |
7358 | char *kwnames[] = { | |
7359 | NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7363 | { | |
7364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7365 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7366 | ||
7367 | wxPyEndAllowThreads(__tstate); | |
7368 | if (PyErr_Occurred()) SWIG_fail; | |
7369 | } | |
7370 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7371 | return resultobj; | |
7372 | fail: | |
7373 | return NULL; | |
7374 | } | |
7375 | ||
7376 | ||
7377 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7378 | PyObject *resultobj; | |
7379 | wxChar *arg1 = (wxChar *) 0 ; | |
7380 | bool result; | |
7381 | PyObject * obj0 = 0 ; | |
7382 | char *kwnames[] = { | |
7383 | (char *) "mask", NULL | |
7384 | }; | |
7385 | ||
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7389 | { | |
7390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7391 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7392 | ||
7393 | wxPyEndAllowThreads(__tstate); | |
7394 | if (PyErr_Occurred()) SWIG_fail; | |
7395 | } | |
7396 | { | |
7397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7398 | } | |
7399 | return resultobj; | |
7400 | fail: | |
7401 | return NULL; | |
7402 | } | |
7403 | ||
7404 | ||
7405 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7406 | PyObject *resultobj; | |
7407 | wxLogLevel result; | |
7408 | char *kwnames[] = { | |
7409 | NULL | |
7410 | }; | |
7411 | ||
7412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7413 | { | |
7414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7415 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7416 | ||
7417 | wxPyEndAllowThreads(__tstate); | |
7418 | if (PyErr_Occurred()) SWIG_fail; | |
7419 | } | |
7420 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7421 | return resultobj; | |
7422 | fail: | |
7423 | return NULL; | |
7424 | } | |
7425 | ||
7426 | ||
7427 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7428 | PyObject *resultobj; | |
7429 | wxChar *result; | |
7430 | char *kwnames[] = { | |
7431 | NULL | |
7432 | }; | |
7433 | ||
7434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7435 | { | |
7436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7437 | result = (wxChar *)wxLog::GetTimestamp(); | |
7438 | ||
7439 | wxPyEndAllowThreads(__tstate); | |
7440 | if (PyErr_Occurred()) SWIG_fail; | |
7441 | } | |
7442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
7443 | return resultobj; | |
7444 | fail: | |
7445 | return NULL; | |
7446 | } | |
7447 | ||
7448 | ||
7449 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7450 | PyObject *resultobj; | |
7451 | wxString result; | |
7452 | char *kwnames[] = { | |
7453 | NULL | |
7454 | }; | |
7455 | ||
7456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7457 | { | |
7458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7459 | result = Log_TimeStamp(); | |
7460 | ||
7461 | wxPyEndAllowThreads(__tstate); | |
7462 | if (PyErr_Occurred()) SWIG_fail; | |
7463 | } | |
7464 | { | |
7465 | #if wxUSE_UNICODE | |
7466 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7467 | #else | |
7468 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7469 | #endif | |
7470 | } | |
7471 | return resultobj; | |
7472 | fail: | |
7473 | return NULL; | |
7474 | } | |
7475 | ||
7476 | ||
7477 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7478 | PyObject *resultobj; | |
7479 | wxLog *arg1 = (wxLog *) 0 ; | |
7480 | PyObject * obj0 = 0 ; | |
7481 | char *kwnames[] = { | |
7482 | (char *) "self", NULL | |
7483 | }; | |
7484 | ||
7485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
7486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7488 | { | |
7489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7490 | wxLog_Destroy(arg1); | |
7491 | ||
7492 | wxPyEndAllowThreads(__tstate); | |
7493 | if (PyErr_Occurred()) SWIG_fail; | |
7494 | } | |
7495 | Py_INCREF(Py_None); resultobj = Py_None; | |
7496 | return resultobj; | |
7497 | fail: | |
7498 | return NULL; | |
7499 | } | |
7500 | ||
7501 | ||
7502 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7503 | PyObject *obj; | |
7504 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7505 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7506 | Py_INCREF(obj); | |
7507 | return Py_BuildValue((char *)""); | |
7508 | } | |
7509 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7510 | PyObject *resultobj; | |
7511 | wxLogStderr *result; | |
7512 | char *kwnames[] = { | |
7513 | NULL | |
7514 | }; | |
7515 | ||
7516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7517 | { | |
7518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7519 | result = (wxLogStderr *)new wxLogStderr(); | |
7520 | ||
7521 | wxPyEndAllowThreads(__tstate); | |
7522 | if (PyErr_Occurred()) SWIG_fail; | |
7523 | } | |
7524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
7525 | return resultobj; | |
7526 | fail: | |
7527 | return NULL; | |
7528 | } | |
7529 | ||
7530 | ||
7531 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7532 | PyObject *obj; | |
7533 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7534 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7535 | Py_INCREF(obj); | |
7536 | return Py_BuildValue((char *)""); | |
7537 | } | |
7538 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7539 | PyObject *resultobj; | |
7540 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7541 | wxLogTextCtrl *result; | |
7542 | PyObject * obj0 = 0 ; | |
7543 | char *kwnames[] = { | |
7544 | (char *) "pTextCtrl", NULL | |
7545 | }; | |
7546 | ||
7547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
7548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7550 | { | |
7551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7552 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7553 | ||
7554 | wxPyEndAllowThreads(__tstate); | |
7555 | if (PyErr_Occurred()) SWIG_fail; | |
7556 | } | |
7557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
7558 | return resultobj; | |
7559 | fail: | |
7560 | return NULL; | |
7561 | } | |
7562 | ||
7563 | ||
7564 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7565 | PyObject *obj; | |
7566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7567 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7568 | Py_INCREF(obj); | |
7569 | return Py_BuildValue((char *)""); | |
7570 | } | |
7571 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7572 | PyObject *resultobj; | |
7573 | wxLogGui *result; | |
7574 | char *kwnames[] = { | |
7575 | NULL | |
7576 | }; | |
7577 | ||
7578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7579 | { | |
7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7581 | result = (wxLogGui *)new wxLogGui(); | |
7582 | ||
7583 | wxPyEndAllowThreads(__tstate); | |
7584 | if (PyErr_Occurred()) SWIG_fail; | |
7585 | } | |
7586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
7587 | return resultobj; | |
7588 | fail: | |
7589 | return NULL; | |
7590 | } | |
7591 | ||
7592 | ||
7593 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7594 | PyObject *obj; | |
7595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7596 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7597 | Py_INCREF(obj); | |
7598 | return Py_BuildValue((char *)""); | |
7599 | } | |
7600 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7601 | PyObject *resultobj; | |
7602 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7603 | wxString *arg2 = 0 ; | |
7604 | bool arg3 = (bool) True ; | |
7605 | bool arg4 = (bool) True ; | |
7606 | wxLogWindow *result; | |
7607 | bool temp2 = False ; | |
7608 | PyObject * obj0 = 0 ; | |
7609 | PyObject * obj1 = 0 ; | |
7610 | PyObject * obj2 = 0 ; | |
7611 | PyObject * obj3 = 0 ; | |
7612 | char *kwnames[] = { | |
7613 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7614 | }; | |
7615 | ||
7616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
7618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7619 | { | |
7620 | arg2 = wxString_in_helper(obj1); | |
7621 | if (arg2 == NULL) SWIG_fail; | |
7622 | temp2 = True; | |
7623 | } | |
7624 | if (obj2) { | |
7625 | arg3 = (bool) SWIG_AsBool(obj2); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
7628 | if (obj3) { | |
7629 | arg4 = (bool) SWIG_AsBool(obj3); | |
7630 | if (PyErr_Occurred()) SWIG_fail; | |
7631 | } | |
7632 | { | |
7633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7634 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7635 | ||
7636 | wxPyEndAllowThreads(__tstate); | |
7637 | if (PyErr_Occurred()) SWIG_fail; | |
7638 | } | |
7639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
7640 | { | |
7641 | if (temp2) | |
7642 | delete arg2; | |
7643 | } | |
7644 | return resultobj; | |
7645 | fail: | |
7646 | { | |
7647 | if (temp2) | |
7648 | delete arg2; | |
7649 | } | |
7650 | return NULL; | |
7651 | } | |
7652 | ||
7653 | ||
7654 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject *resultobj; | |
7656 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7657 | bool arg2 = (bool) True ; | |
7658 | PyObject * obj0 = 0 ; | |
7659 | PyObject * obj1 = 0 ; | |
7660 | char *kwnames[] = { | |
7661 | (char *) "self",(char *) "bShow", NULL | |
7662 | }; | |
7663 | ||
7664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
7665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7667 | if (obj1) { | |
7668 | arg2 = (bool) SWIG_AsBool(obj1); | |
7669 | if (PyErr_Occurred()) SWIG_fail; | |
7670 | } | |
7671 | { | |
7672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7673 | (arg1)->Show(arg2); | |
7674 | ||
7675 | wxPyEndAllowThreads(__tstate); | |
7676 | if (PyErr_Occurred()) SWIG_fail; | |
7677 | } | |
7678 | Py_INCREF(Py_None); resultobj = Py_None; | |
7679 | return resultobj; | |
7680 | fail: | |
7681 | return NULL; | |
7682 | } | |
7683 | ||
7684 | ||
7685 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7686 | PyObject *resultobj; | |
7687 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7688 | wxFrame *result; | |
7689 | PyObject * obj0 = 0 ; | |
7690 | char *kwnames[] = { | |
7691 | (char *) "self", NULL | |
7692 | }; | |
7693 | ||
7694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7697 | { | |
7698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7699 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7700 | ||
7701 | wxPyEndAllowThreads(__tstate); | |
7702 | if (PyErr_Occurred()) SWIG_fail; | |
7703 | } | |
7704 | { | |
7705 | resultobj = wxPyMake_wxObject(result); | |
7706 | } | |
7707 | return resultobj; | |
7708 | fail: | |
7709 | return NULL; | |
7710 | } | |
7711 | ||
7712 | ||
7713 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7714 | PyObject *resultobj; | |
7715 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7716 | wxLog *result; | |
7717 | PyObject * obj0 = 0 ; | |
7718 | char *kwnames[] = { | |
7719 | (char *) "self", NULL | |
7720 | }; | |
7721 | ||
7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7728 | ||
7729 | wxPyEndAllowThreads(__tstate); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | } | |
7732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7733 | return resultobj; | |
7734 | fail: | |
7735 | return NULL; | |
7736 | } | |
7737 | ||
7738 | ||
7739 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7740 | PyObject *resultobj; | |
7741 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7742 | bool result; | |
7743 | PyObject * obj0 = 0 ; | |
7744 | char *kwnames[] = { | |
7745 | (char *) "self", NULL | |
7746 | }; | |
7747 | ||
7748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7751 | { | |
7752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7753 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7754 | ||
7755 | wxPyEndAllowThreads(__tstate); | |
7756 | if (PyErr_Occurred()) SWIG_fail; | |
7757 | } | |
7758 | { | |
7759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7760 | } | |
7761 | return resultobj; | |
7762 | fail: | |
7763 | return NULL; | |
7764 | } | |
7765 | ||
7766 | ||
7767 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7768 | PyObject *resultobj; | |
7769 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7770 | bool arg2 ; | |
7771 | PyObject * obj0 = 0 ; | |
7772 | PyObject * obj1 = 0 ; | |
7773 | char *kwnames[] = { | |
7774 | (char *) "self",(char *) "bDoPass", NULL | |
7775 | }; | |
7776 | ||
7777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7780 | arg2 = (bool) SWIG_AsBool(obj1); | |
7781 | if (PyErr_Occurred()) SWIG_fail; | |
7782 | { | |
7783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7784 | (arg1)->PassMessages(arg2); | |
7785 | ||
7786 | wxPyEndAllowThreads(__tstate); | |
7787 | if (PyErr_Occurred()) SWIG_fail; | |
7788 | } | |
7789 | Py_INCREF(Py_None); resultobj = Py_None; | |
7790 | return resultobj; | |
7791 | fail: | |
7792 | return NULL; | |
7793 | } | |
7794 | ||
7795 | ||
7796 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7797 | PyObject *obj; | |
7798 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7799 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7800 | Py_INCREF(obj); | |
7801 | return Py_BuildValue((char *)""); | |
7802 | } | |
7803 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7804 | PyObject *resultobj; | |
7805 | wxLog *arg1 = (wxLog *) 0 ; | |
7806 | wxLogChain *result; | |
7807 | PyObject * obj0 = 0 ; | |
7808 | char *kwnames[] = { | |
7809 | (char *) "logger", NULL | |
7810 | }; | |
7811 | ||
7812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7815 | { | |
7816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7817 | result = (wxLogChain *)new wxLogChain(arg1); | |
7818 | ||
7819 | wxPyEndAllowThreads(__tstate); | |
7820 | if (PyErr_Occurred()) SWIG_fail; | |
7821 | } | |
7822 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
7823 | return resultobj; | |
7824 | fail: | |
7825 | return NULL; | |
7826 | } | |
7827 | ||
7828 | ||
7829 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7830 | PyObject *resultobj; | |
7831 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7832 | wxLog *arg2 = (wxLog *) 0 ; | |
7833 | PyObject * obj0 = 0 ; | |
7834 | PyObject * obj1 = 0 ; | |
7835 | char *kwnames[] = { | |
7836 | (char *) "self",(char *) "logger", NULL | |
7837 | }; | |
7838 | ||
7839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7842 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
7843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7844 | { | |
7845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7846 | (arg1)->SetLog(arg2); | |
7847 | ||
7848 | wxPyEndAllowThreads(__tstate); | |
7849 | if (PyErr_Occurred()) SWIG_fail; | |
7850 | } | |
7851 | Py_INCREF(Py_None); resultobj = Py_None; | |
7852 | return resultobj; | |
7853 | fail: | |
7854 | return NULL; | |
7855 | } | |
7856 | ||
7857 | ||
7858 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7859 | PyObject *resultobj; | |
7860 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7861 | bool arg2 ; | |
7862 | PyObject * obj0 = 0 ; | |
7863 | PyObject * obj1 = 0 ; | |
7864 | char *kwnames[] = { | |
7865 | (char *) "self",(char *) "bDoPass", NULL | |
7866 | }; | |
7867 | ||
7868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7871 | arg2 = (bool) SWIG_AsBool(obj1); | |
7872 | if (PyErr_Occurred()) SWIG_fail; | |
7873 | { | |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7875 | (arg1)->PassMessages(arg2); | |
7876 | ||
7877 | wxPyEndAllowThreads(__tstate); | |
7878 | if (PyErr_Occurred()) SWIG_fail; | |
7879 | } | |
7880 | Py_INCREF(Py_None); resultobj = Py_None; | |
7881 | return resultobj; | |
7882 | fail: | |
7883 | return NULL; | |
7884 | } | |
7885 | ||
7886 | ||
7887 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7888 | PyObject *resultobj; | |
7889 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7890 | bool result; | |
7891 | PyObject * obj0 = 0 ; | |
7892 | char *kwnames[] = { | |
7893 | (char *) "self", NULL | |
7894 | }; | |
7895 | ||
7896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7899 | { | |
7900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7901 | result = (bool)(arg1)->IsPassingMessages(); | |
7902 | ||
7903 | wxPyEndAllowThreads(__tstate); | |
7904 | if (PyErr_Occurred()) SWIG_fail; | |
7905 | } | |
7906 | { | |
7907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7908 | } | |
7909 | return resultobj; | |
7910 | fail: | |
7911 | return NULL; | |
7912 | } | |
7913 | ||
7914 | ||
7915 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7916 | PyObject *resultobj; | |
7917 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7918 | wxLog *result; | |
7919 | PyObject * obj0 = 0 ; | |
7920 | char *kwnames[] = { | |
7921 | (char *) "self", NULL | |
7922 | }; | |
7923 | ||
7924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7927 | { | |
7928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7929 | result = (wxLog *)(arg1)->GetOldLog(); | |
7930 | ||
7931 | wxPyEndAllowThreads(__tstate); | |
7932 | if (PyErr_Occurred()) SWIG_fail; | |
7933 | } | |
7934 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7935 | return resultobj; | |
7936 | fail: | |
7937 | return NULL; | |
7938 | } | |
7939 | ||
7940 | ||
7941 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7942 | PyObject *obj; | |
7943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7944 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7945 | Py_INCREF(obj); | |
7946 | return Py_BuildValue((char *)""); | |
7947 | } | |
7948 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7949 | PyObject *resultobj; | |
7950 | unsigned long result; | |
7951 | char *kwnames[] = { | |
7952 | NULL | |
7953 | }; | |
7954 | ||
7955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7956 | { | |
7957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7958 | result = (unsigned long)wxSysErrorCode(); | |
7959 | ||
7960 | wxPyEndAllowThreads(__tstate); | |
7961 | if (PyErr_Occurred()) SWIG_fail; | |
7962 | } | |
7963 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7964 | return resultobj; | |
7965 | fail: | |
7966 | return NULL; | |
7967 | } | |
7968 | ||
7969 | ||
7970 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject *resultobj; | |
7972 | unsigned long arg1 = (unsigned long) 0 ; | |
7973 | wxString result; | |
7974 | PyObject * obj0 = 0 ; | |
7975 | char *kwnames[] = { | |
7976 | (char *) "nErrCode", NULL | |
7977 | }; | |
7978 | ||
7979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7980 | if (obj0) { | |
7981 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
7982 | if (PyErr_Occurred()) SWIG_fail; | |
7983 | } | |
7984 | { | |
7985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7986 | result = wxSysErrorMsg(arg1); | |
7987 | ||
7988 | wxPyEndAllowThreads(__tstate); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
7991 | { | |
7992 | #if wxUSE_UNICODE | |
7993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7994 | #else | |
7995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7996 | #endif | |
7997 | } | |
7998 | return resultobj; | |
7999 | fail: | |
8000 | return NULL; | |
8001 | } | |
8002 | ||
8003 | ||
8004 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8005 | PyObject *resultobj; | |
8006 | wxString *arg1 = 0 ; | |
8007 | bool temp1 = False ; | |
8008 | PyObject * obj0 = 0 ; | |
8009 | char *kwnames[] = { | |
8010 | (char *) "msg", NULL | |
8011 | }; | |
8012 | ||
8013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8014 | { | |
8015 | arg1 = wxString_in_helper(obj0); | |
8016 | if (arg1 == NULL) SWIG_fail; | |
8017 | temp1 = True; | |
8018 | } | |
8019 | { | |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8021 | wxLogFatalError((wxString const &)*arg1); | |
8022 | ||
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
8026 | Py_INCREF(Py_None); resultobj = Py_None; | |
8027 | { | |
8028 | if (temp1) | |
8029 | delete arg1; | |
8030 | } | |
8031 | return resultobj; | |
8032 | fail: | |
8033 | { | |
8034 | if (temp1) | |
8035 | delete arg1; | |
8036 | } | |
8037 | return NULL; | |
8038 | } | |
8039 | ||
8040 | ||
8041 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8042 | PyObject *resultobj; | |
8043 | wxString *arg1 = 0 ; | |
8044 | bool temp1 = False ; | |
8045 | PyObject * obj0 = 0 ; | |
8046 | char *kwnames[] = { | |
8047 | (char *) "msg", NULL | |
8048 | }; | |
8049 | ||
8050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8051 | { | |
8052 | arg1 = wxString_in_helper(obj0); | |
8053 | if (arg1 == NULL) SWIG_fail; | |
8054 | temp1 = True; | |
8055 | } | |
8056 | { | |
8057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8058 | wxLogError((wxString const &)*arg1); | |
8059 | ||
8060 | wxPyEndAllowThreads(__tstate); | |
8061 | if (PyErr_Occurred()) SWIG_fail; | |
8062 | } | |
8063 | Py_INCREF(Py_None); resultobj = Py_None; | |
8064 | { | |
8065 | if (temp1) | |
8066 | delete arg1; | |
8067 | } | |
8068 | return resultobj; | |
8069 | fail: | |
8070 | { | |
8071 | if (temp1) | |
8072 | delete arg1; | |
8073 | } | |
8074 | return NULL; | |
8075 | } | |
8076 | ||
8077 | ||
8078 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8079 | PyObject *resultobj; | |
8080 | wxString *arg1 = 0 ; | |
8081 | bool temp1 = False ; | |
8082 | PyObject * obj0 = 0 ; | |
8083 | char *kwnames[] = { | |
8084 | (char *) "msg", NULL | |
8085 | }; | |
8086 | ||
8087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8088 | { | |
8089 | arg1 = wxString_in_helper(obj0); | |
8090 | if (arg1 == NULL) SWIG_fail; | |
8091 | temp1 = True; | |
8092 | } | |
8093 | { | |
8094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8095 | wxLogWarning((wxString const &)*arg1); | |
8096 | ||
8097 | wxPyEndAllowThreads(__tstate); | |
8098 | if (PyErr_Occurred()) SWIG_fail; | |
8099 | } | |
8100 | Py_INCREF(Py_None); resultobj = Py_None; | |
8101 | { | |
8102 | if (temp1) | |
8103 | delete arg1; | |
8104 | } | |
8105 | return resultobj; | |
8106 | fail: | |
8107 | { | |
8108 | if (temp1) | |
8109 | delete arg1; | |
8110 | } | |
8111 | return NULL; | |
8112 | } | |
8113 | ||
8114 | ||
8115 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8116 | PyObject *resultobj; | |
8117 | wxString *arg1 = 0 ; | |
8118 | bool temp1 = False ; | |
8119 | PyObject * obj0 = 0 ; | |
8120 | char *kwnames[] = { | |
8121 | (char *) "msg", NULL | |
8122 | }; | |
8123 | ||
8124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8125 | { | |
8126 | arg1 = wxString_in_helper(obj0); | |
8127 | if (arg1 == NULL) SWIG_fail; | |
8128 | temp1 = True; | |
8129 | } | |
8130 | { | |
8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8132 | wxLogMessage((wxString const &)*arg1); | |
8133 | ||
8134 | wxPyEndAllowThreads(__tstate); | |
8135 | if (PyErr_Occurred()) SWIG_fail; | |
8136 | } | |
8137 | Py_INCREF(Py_None); resultobj = Py_None; | |
8138 | { | |
8139 | if (temp1) | |
8140 | delete arg1; | |
8141 | } | |
8142 | return resultobj; | |
8143 | fail: | |
8144 | { | |
8145 | if (temp1) | |
8146 | delete arg1; | |
8147 | } | |
8148 | return NULL; | |
8149 | } | |
8150 | ||
8151 | ||
8152 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8153 | PyObject *resultobj; | |
8154 | wxString *arg1 = 0 ; | |
8155 | bool temp1 = False ; | |
8156 | PyObject * obj0 = 0 ; | |
8157 | char *kwnames[] = { | |
8158 | (char *) "msg", NULL | |
8159 | }; | |
8160 | ||
8161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8162 | { | |
8163 | arg1 = wxString_in_helper(obj0); | |
8164 | if (arg1 == NULL) SWIG_fail; | |
8165 | temp1 = True; | |
8166 | } | |
8167 | { | |
8168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8169 | wxLogInfo((wxString const &)*arg1); | |
8170 | ||
8171 | wxPyEndAllowThreads(__tstate); | |
8172 | if (PyErr_Occurred()) SWIG_fail; | |
8173 | } | |
8174 | Py_INCREF(Py_None); resultobj = Py_None; | |
8175 | { | |
8176 | if (temp1) | |
8177 | delete arg1; | |
8178 | } | |
8179 | return resultobj; | |
8180 | fail: | |
8181 | { | |
8182 | if (temp1) | |
8183 | delete arg1; | |
8184 | } | |
8185 | return NULL; | |
8186 | } | |
8187 | ||
8188 | ||
8189 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8190 | PyObject *resultobj; | |
8191 | wxString *arg1 = 0 ; | |
8192 | bool temp1 = False ; | |
8193 | PyObject * obj0 = 0 ; | |
8194 | char *kwnames[] = { | |
8195 | (char *) "msg", NULL | |
8196 | }; | |
8197 | ||
8198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8199 | { | |
8200 | arg1 = wxString_in_helper(obj0); | |
8201 | if (arg1 == NULL) SWIG_fail; | |
8202 | temp1 = True; | |
8203 | } | |
8204 | { | |
8205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8206 | wxLogDebug((wxString const &)*arg1); | |
8207 | ||
8208 | wxPyEndAllowThreads(__tstate); | |
8209 | if (PyErr_Occurred()) SWIG_fail; | |
8210 | } | |
8211 | Py_INCREF(Py_None); resultobj = Py_None; | |
8212 | { | |
8213 | if (temp1) | |
8214 | delete arg1; | |
8215 | } | |
8216 | return resultobj; | |
8217 | fail: | |
8218 | { | |
8219 | if (temp1) | |
8220 | delete arg1; | |
8221 | } | |
8222 | return NULL; | |
8223 | } | |
8224 | ||
8225 | ||
8226 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8227 | PyObject *resultobj; | |
8228 | wxString *arg1 = 0 ; | |
8229 | bool temp1 = False ; | |
8230 | PyObject * obj0 = 0 ; | |
8231 | char *kwnames[] = { | |
8232 | (char *) "msg", NULL | |
8233 | }; | |
8234 | ||
8235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8236 | { | |
8237 | arg1 = wxString_in_helper(obj0); | |
8238 | if (arg1 == NULL) SWIG_fail; | |
8239 | temp1 = True; | |
8240 | } | |
8241 | { | |
8242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8243 | wxLogVerbose((wxString const &)*arg1); | |
8244 | ||
8245 | wxPyEndAllowThreads(__tstate); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | } | |
8248 | Py_INCREF(Py_None); resultobj = Py_None; | |
8249 | { | |
8250 | if (temp1) | |
8251 | delete arg1; | |
8252 | } | |
8253 | return resultobj; | |
8254 | fail: | |
8255 | { | |
8256 | if (temp1) | |
8257 | delete arg1; | |
8258 | } | |
8259 | return NULL; | |
8260 | } | |
8261 | ||
8262 | ||
8263 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8264 | PyObject *resultobj; | |
8265 | wxString *arg1 = 0 ; | |
8266 | bool temp1 = False ; | |
8267 | PyObject * obj0 = 0 ; | |
8268 | char *kwnames[] = { | |
8269 | (char *) "msg", NULL | |
8270 | }; | |
8271 | ||
8272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8273 | { | |
8274 | arg1 = wxString_in_helper(obj0); | |
8275 | if (arg1 == NULL) SWIG_fail; | |
8276 | temp1 = True; | |
8277 | } | |
8278 | { | |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | wxLogStatus((wxString const &)*arg1); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
8285 | Py_INCREF(Py_None); resultobj = Py_None; | |
8286 | { | |
8287 | if (temp1) | |
8288 | delete arg1; | |
8289 | } | |
8290 | return resultobj; | |
8291 | fail: | |
8292 | { | |
8293 | if (temp1) | |
8294 | delete arg1; | |
8295 | } | |
8296 | return NULL; | |
8297 | } | |
8298 | ||
8299 | ||
8300 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8301 | PyObject *resultobj; | |
8302 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8303 | wxString *arg2 = 0 ; | |
8304 | bool temp2 = False ; | |
8305 | PyObject * obj0 = 0 ; | |
8306 | PyObject * obj1 = 0 ; | |
8307 | char *kwnames[] = { | |
8308 | (char *) "pFrame",(char *) "msg", NULL | |
8309 | }; | |
8310 | ||
8311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8314 | { | |
8315 | arg2 = wxString_in_helper(obj1); | |
8316 | if (arg2 == NULL) SWIG_fail; | |
8317 | temp2 = True; | |
8318 | } | |
8319 | { | |
8320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8321 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8322 | ||
8323 | wxPyEndAllowThreads(__tstate); | |
8324 | if (PyErr_Occurred()) SWIG_fail; | |
8325 | } | |
8326 | Py_INCREF(Py_None); resultobj = Py_None; | |
8327 | { | |
8328 | if (temp2) | |
8329 | delete arg2; | |
8330 | } | |
8331 | return resultobj; | |
8332 | fail: | |
8333 | { | |
8334 | if (temp2) | |
8335 | delete arg2; | |
8336 | } | |
8337 | return NULL; | |
8338 | } | |
8339 | ||
8340 | ||
8341 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8342 | PyObject *resultobj; | |
8343 | wxString *arg1 = 0 ; | |
8344 | bool temp1 = False ; | |
8345 | PyObject * obj0 = 0 ; | |
8346 | char *kwnames[] = { | |
8347 | (char *) "msg", NULL | |
8348 | }; | |
8349 | ||
8350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8351 | { | |
8352 | arg1 = wxString_in_helper(obj0); | |
8353 | if (arg1 == NULL) SWIG_fail; | |
8354 | temp1 = True; | |
8355 | } | |
8356 | { | |
8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8358 | wxLogSysError((wxString const &)*arg1); | |
8359 | ||
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
8363 | Py_INCREF(Py_None); resultobj = Py_None; | |
8364 | { | |
8365 | if (temp1) | |
8366 | delete arg1; | |
8367 | } | |
8368 | return resultobj; | |
8369 | fail: | |
8370 | { | |
8371 | if (temp1) | |
8372 | delete arg1; | |
8373 | } | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
8378 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { | |
8379 | PyObject *resultobj; | |
8380 | unsigned long arg1 ; | |
8381 | wxString *arg2 = 0 ; | |
8382 | bool temp2 = False ; | |
8383 | PyObject * obj0 = 0 ; | |
8384 | PyObject * obj1 = 0 ; | |
8385 | ||
8386 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8387 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8388 | if (PyErr_Occurred()) SWIG_fail; | |
8389 | { | |
8390 | arg2 = wxString_in_helper(obj1); | |
8391 | if (arg2 == NULL) SWIG_fail; | |
8392 | temp2 = True; | |
8393 | } | |
8394 | { | |
8395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8396 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8397 | ||
8398 | wxPyEndAllowThreads(__tstate); | |
8399 | if (PyErr_Occurred()) SWIG_fail; | |
8400 | } | |
8401 | Py_INCREF(Py_None); resultobj = Py_None; | |
8402 | { | |
8403 | if (temp2) | |
8404 | delete arg2; | |
8405 | } | |
8406 | return resultobj; | |
8407 | fail: | |
8408 | { | |
8409 | if (temp2) | |
8410 | delete arg2; | |
8411 | } | |
8412 | return NULL; | |
8413 | } | |
8414 | ||
8415 | ||
8416 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { | |
8417 | PyObject *resultobj; | |
8418 | wxString *arg1 = 0 ; | |
8419 | wxString *arg2 = 0 ; | |
8420 | bool temp1 = False ; | |
8421 | bool temp2 = False ; | |
8422 | PyObject * obj0 = 0 ; | |
8423 | PyObject * obj1 = 0 ; | |
8424 | ||
8425 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8426 | { | |
8427 | arg1 = wxString_in_helper(obj0); | |
8428 | if (arg1 == NULL) SWIG_fail; | |
8429 | temp1 = True; | |
8430 | } | |
8431 | { | |
8432 | arg2 = wxString_in_helper(obj1); | |
8433 | if (arg2 == NULL) SWIG_fail; | |
8434 | temp2 = True; | |
8435 | } | |
8436 | { | |
8437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8438 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8439 | ||
8440 | wxPyEndAllowThreads(__tstate); | |
8441 | if (PyErr_Occurred()) SWIG_fail; | |
8442 | } | |
8443 | Py_INCREF(Py_None); resultobj = Py_None; | |
8444 | { | |
8445 | if (temp1) | |
8446 | delete arg1; | |
8447 | } | |
8448 | { | |
8449 | if (temp2) | |
8450 | delete arg2; | |
8451 | } | |
8452 | return resultobj; | |
8453 | fail: | |
8454 | { | |
8455 | if (temp1) | |
8456 | delete arg1; | |
8457 | } | |
8458 | { | |
8459 | if (temp2) | |
8460 | delete arg2; | |
8461 | } | |
8462 | return NULL; | |
8463 | } | |
8464 | ||
8465 | ||
8466 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
8467 | int argc; | |
8468 | PyObject *argv[3]; | |
8469 | int ii; | |
8470 | ||
8471 | argc = PyObject_Length(args); | |
8472 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8473 | argv[ii] = PyTuple_GetItem(args,ii); | |
8474 | } | |
8475 | if (argc == 2) { | |
8476 | int _v; | |
8477 | { | |
8478 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
8479 | } | |
8480 | if (_v) { | |
8481 | { | |
8482 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8483 | } | |
8484 | if (_v) { | |
8485 | return _wrap_LogTrace__SWIG_1(self,args); | |
8486 | } | |
8487 | } | |
8488 | } | |
8489 | if (argc == 2) { | |
8490 | int _v; | |
8491 | _v = SWIG_CheckUnsignedLong(argv[0]); | |
8492 | if (_v) { | |
8493 | { | |
8494 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8495 | } | |
8496 | if (_v) { | |
8497 | return _wrap_LogTrace__SWIG_0(self,args); | |
8498 | } | |
8499 | } | |
8500 | } | |
8501 | ||
8502 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8503 | return NULL; | |
8504 | } | |
8505 | ||
8506 | ||
8507 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject *resultobj; | |
8509 | unsigned long arg1 ; | |
8510 | wxString *arg2 = 0 ; | |
8511 | bool temp2 = False ; | |
8512 | PyObject * obj0 = 0 ; | |
8513 | PyObject * obj1 = 0 ; | |
8514 | char *kwnames[] = { | |
8515 | (char *) "level",(char *) "msg", NULL | |
8516 | }; | |
8517 | ||
8518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
8519 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8520 | if (PyErr_Occurred()) SWIG_fail; | |
8521 | { | |
8522 | arg2 = wxString_in_helper(obj1); | |
8523 | if (arg2 == NULL) SWIG_fail; | |
8524 | temp2 = True; | |
8525 | } | |
8526 | { | |
8527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8528 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8529 | ||
8530 | wxPyEndAllowThreads(__tstate); | |
8531 | if (PyErr_Occurred()) SWIG_fail; | |
8532 | } | |
8533 | Py_INCREF(Py_None); resultobj = Py_None; | |
8534 | { | |
8535 | if (temp2) | |
8536 | delete arg2; | |
8537 | } | |
8538 | return resultobj; | |
8539 | fail: | |
8540 | { | |
8541 | if (temp2) | |
8542 | delete arg2; | |
8543 | } | |
8544 | return NULL; | |
8545 | } | |
8546 | ||
8547 | ||
8548 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8549 | PyObject *resultobj; | |
8550 | wxString *arg1 = 0 ; | |
8551 | wxString *arg2 = 0 ; | |
8552 | bool temp1 = False ; | |
8553 | bool temp2 = False ; | |
8554 | PyObject * obj0 = 0 ; | |
8555 | PyObject * obj1 = 0 ; | |
8556 | char *kwnames[] = { | |
8557 | (char *) "title",(char *) "text", NULL | |
8558 | }; | |
8559 | ||
8560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8561 | { | |
8562 | arg1 = wxString_in_helper(obj0); | |
8563 | if (arg1 == NULL) SWIG_fail; | |
8564 | temp1 = True; | |
8565 | } | |
8566 | { | |
8567 | arg2 = wxString_in_helper(obj1); | |
8568 | if (arg2 == NULL) SWIG_fail; | |
8569 | temp2 = True; | |
8570 | } | |
8571 | { | |
8572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8573 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8574 | ||
8575 | wxPyEndAllowThreads(__tstate); | |
8576 | if (PyErr_Occurred()) SWIG_fail; | |
8577 | } | |
8578 | Py_INCREF(Py_None); resultobj = Py_None; | |
8579 | { | |
8580 | if (temp1) | |
8581 | delete arg1; | |
8582 | } | |
8583 | { | |
8584 | if (temp2) | |
8585 | delete arg2; | |
8586 | } | |
8587 | return resultobj; | |
8588 | fail: | |
8589 | { | |
8590 | if (temp1) | |
8591 | delete arg1; | |
8592 | } | |
8593 | { | |
8594 | if (temp2) | |
8595 | delete arg2; | |
8596 | } | |
8597 | return NULL; | |
8598 | } | |
8599 | ||
8600 | ||
8601 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8602 | PyObject *resultobj; | |
8603 | wxLogNull *result; | |
8604 | char *kwnames[] = { | |
8605 | NULL | |
8606 | }; | |
8607 | ||
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8609 | { | |
8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8611 | result = (wxLogNull *)new wxLogNull(); | |
8612 | ||
8613 | wxPyEndAllowThreads(__tstate); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
8616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
8617 | return resultobj; | |
8618 | fail: | |
8619 | return NULL; | |
8620 | } | |
8621 | ||
8622 | ||
8623 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8624 | PyObject *resultobj; | |
8625 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8626 | PyObject * obj0 = 0 ; | |
8627 | char *kwnames[] = { | |
8628 | (char *) "self", NULL | |
8629 | }; | |
8630 | ||
8631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
8632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
8633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8634 | { | |
8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8636 | delete arg1; | |
8637 | ||
8638 | wxPyEndAllowThreads(__tstate); | |
8639 | if (PyErr_Occurred()) SWIG_fail; | |
8640 | } | |
8641 | Py_INCREF(Py_None); resultobj = Py_None; | |
8642 | return resultobj; | |
8643 | fail: | |
8644 | return NULL; | |
8645 | } | |
8646 | ||
8647 | ||
8648 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8649 | PyObject *obj; | |
8650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8651 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8652 | Py_INCREF(obj); | |
8653 | return Py_BuildValue((char *)""); | |
8654 | } | |
8655 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8656 | PyObject *resultobj; | |
8657 | wxPyLog *result; | |
8658 | char *kwnames[] = { | |
8659 | NULL | |
8660 | }; | |
8661 | ||
8662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8663 | { | |
8664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8665 | result = (wxPyLog *)new wxPyLog(); | |
8666 | ||
8667 | wxPyEndAllowThreads(__tstate); | |
8668 | if (PyErr_Occurred()) SWIG_fail; | |
8669 | } | |
8670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
8671 | return resultobj; | |
8672 | fail: | |
8673 | return NULL; | |
8674 | } | |
8675 | ||
8676 | ||
8677 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8678 | PyObject *resultobj; | |
8679 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8680 | PyObject *arg2 = (PyObject *) 0 ; | |
8681 | PyObject *arg3 = (PyObject *) 0 ; | |
8682 | PyObject * obj0 = 0 ; | |
8683 | PyObject * obj1 = 0 ; | |
8684 | PyObject * obj2 = 0 ; | |
8685 | char *kwnames[] = { | |
8686 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8687 | }; | |
8688 | ||
8689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
8691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8692 | arg2 = obj1; | |
8693 | arg3 = obj2; | |
8694 | { | |
8695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8696 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8697 | ||
8698 | wxPyEndAllowThreads(__tstate); | |
8699 | if (PyErr_Occurred()) SWIG_fail; | |
8700 | } | |
8701 | Py_INCREF(Py_None); resultobj = Py_None; | |
8702 | return resultobj; | |
8703 | fail: | |
8704 | return NULL; | |
8705 | } | |
8706 | ||
8707 | ||
8708 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8709 | PyObject *obj; | |
8710 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8711 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8712 | Py_INCREF(obj); | |
8713 | return Py_BuildValue((char *)""); | |
8714 | } | |
8715 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8716 | PyObject *resultobj; | |
8717 | int arg1 ; | |
8718 | int arg2 = (int) wxSIGTERM ; | |
8719 | int result; | |
8720 | PyObject * obj0 = 0 ; | |
8721 | PyObject * obj1 = 0 ; | |
8722 | char *kwnames[] = { | |
8723 | (char *) "pid",(char *) "sig", NULL | |
8724 | }; | |
8725 | ||
8726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
8727 | arg1 = (int) SWIG_AsInt(obj0); | |
8728 | if (PyErr_Occurred()) SWIG_fail; | |
8729 | if (obj1) { | |
8730 | arg2 = (wxSignal) SWIG_AsInt(obj1); | |
8731 | if (PyErr_Occurred()) SWIG_fail; | |
8732 | } | |
8733 | { | |
8734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8735 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8736 | ||
8737 | wxPyEndAllowThreads(__tstate); | |
8738 | if (PyErr_Occurred()) SWIG_fail; | |
8739 | } | |
8740 | resultobj = SWIG_FromInt((int)result); | |
8741 | return resultobj; | |
8742 | fail: | |
8743 | return NULL; | |
8744 | } | |
8745 | ||
8746 | ||
8747 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8748 | PyObject *resultobj; | |
8749 | int arg1 ; | |
8750 | bool result; | |
8751 | PyObject * obj0 = 0 ; | |
8752 | char *kwnames[] = { | |
8753 | (char *) "pid", NULL | |
8754 | }; | |
8755 | ||
8756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
8757 | arg1 = (int) SWIG_AsInt(obj0); | |
8758 | if (PyErr_Occurred()) SWIG_fail; | |
8759 | { | |
8760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8761 | result = (bool)wxPyProcess::Exists(arg1); | |
8762 | ||
8763 | wxPyEndAllowThreads(__tstate); | |
8764 | if (PyErr_Occurred()) SWIG_fail; | |
8765 | } | |
8766 | { | |
8767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8768 | } | |
8769 | return resultobj; | |
8770 | fail: | |
8771 | return NULL; | |
8772 | } | |
8773 | ||
8774 | ||
8775 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8776 | PyObject *resultobj; | |
8777 | wxString *arg1 = 0 ; | |
8778 | int arg2 = (int) wxEXEC_ASYNC ; | |
8779 | wxPyProcess *result; | |
8780 | bool temp1 = False ; | |
8781 | PyObject * obj0 = 0 ; | |
8782 | PyObject * obj1 = 0 ; | |
8783 | char *kwnames[] = { | |
8784 | (char *) "cmd",(char *) "flags", NULL | |
8785 | }; | |
8786 | ||
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
8788 | { | |
8789 | arg1 = wxString_in_helper(obj0); | |
8790 | if (arg1 == NULL) SWIG_fail; | |
8791 | temp1 = True; | |
8792 | } | |
8793 | if (obj1) { | |
8794 | arg2 = (int) SWIG_AsInt(obj1); | |
8795 | if (PyErr_Occurred()) SWIG_fail; | |
8796 | } | |
8797 | { | |
8798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8799 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8800 | ||
8801 | wxPyEndAllowThreads(__tstate); | |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
8803 | } | |
8804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
8805 | { | |
8806 | if (temp1) | |
8807 | delete arg1; | |
8808 | } | |
8809 | return resultobj; | |
8810 | fail: | |
8811 | { | |
8812 | if (temp1) | |
8813 | delete arg1; | |
8814 | } | |
8815 | return NULL; | |
8816 | } | |
8817 | ||
8818 | ||
8819 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8820 | PyObject *resultobj; | |
8821 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8822 | int arg2 = (int) -1 ; | |
8823 | wxPyProcess *result; | |
8824 | PyObject * obj0 = 0 ; | |
8825 | PyObject * obj1 = 0 ; | |
8826 | char *kwnames[] = { | |
8827 | (char *) "parent",(char *) "id", NULL | |
8828 | }; | |
8829 | ||
8830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
8831 | if (obj0) { | |
8832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
8833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8834 | } | |
8835 | if (obj1) { | |
8836 | arg2 = (int) SWIG_AsInt(obj1); | |
8837 | if (PyErr_Occurred()) SWIG_fail; | |
8838 | } | |
8839 | { | |
8840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8841 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8842 | ||
8843 | wxPyEndAllowThreads(__tstate); | |
8844 | if (PyErr_Occurred()) SWIG_fail; | |
8845 | } | |
8846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
8847 | return resultobj; | |
8848 | fail: | |
8849 | return NULL; | |
8850 | } | |
8851 | ||
8852 | ||
8853 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8854 | PyObject *resultobj; | |
8855 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8856 | PyObject *arg2 = (PyObject *) 0 ; | |
8857 | PyObject *arg3 = (PyObject *) 0 ; | |
8858 | PyObject * obj0 = 0 ; | |
8859 | PyObject * obj1 = 0 ; | |
8860 | PyObject * obj2 = 0 ; | |
8861 | char *kwnames[] = { | |
8862 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8863 | }; | |
8864 | ||
8865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8868 | arg2 = obj1; | |
8869 | arg3 = obj2; | |
8870 | { | |
8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8872 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8873 | ||
8874 | wxPyEndAllowThreads(__tstate); | |
8875 | if (PyErr_Occurred()) SWIG_fail; | |
8876 | } | |
8877 | Py_INCREF(Py_None); resultobj = Py_None; | |
8878 | return resultobj; | |
8879 | fail: | |
8880 | return NULL; | |
8881 | } | |
8882 | ||
8883 | ||
8884 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8885 | PyObject *resultobj; | |
8886 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8887 | int arg2 ; | |
8888 | int arg3 ; | |
8889 | PyObject * obj0 = 0 ; | |
8890 | PyObject * obj1 = 0 ; | |
8891 | PyObject * obj2 = 0 ; | |
8892 | char *kwnames[] = { | |
8893 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8894 | }; | |
8895 | ||
8896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8899 | arg2 = (int) SWIG_AsInt(obj1); | |
8900 | if (PyErr_Occurred()) SWIG_fail; | |
8901 | arg3 = (int) SWIG_AsInt(obj2); | |
8902 | if (PyErr_Occurred()) SWIG_fail; | |
8903 | { | |
8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8905 | (arg1)->base_OnTerminate(arg2,arg3); | |
8906 | ||
8907 | wxPyEndAllowThreads(__tstate); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | } | |
8910 | Py_INCREF(Py_None); resultobj = Py_None; | |
8911 | return resultobj; | |
8912 | fail: | |
8913 | return NULL; | |
8914 | } | |
8915 | ||
8916 | ||
8917 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8918 | PyObject *resultobj; | |
8919 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | char *kwnames[] = { | |
8922 | (char *) "self", NULL | |
8923 | }; | |
8924 | ||
8925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8928 | { | |
8929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8930 | (arg1)->Redirect(); | |
8931 | ||
8932 | wxPyEndAllowThreads(__tstate); | |
8933 | if (PyErr_Occurred()) SWIG_fail; | |
8934 | } | |
8935 | Py_INCREF(Py_None); resultobj = Py_None; | |
8936 | return resultobj; | |
8937 | fail: | |
8938 | return NULL; | |
8939 | } | |
8940 | ||
8941 | ||
8942 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8943 | PyObject *resultobj; | |
8944 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8945 | bool result; | |
8946 | PyObject * obj0 = 0 ; | |
8947 | char *kwnames[] = { | |
8948 | (char *) "self", NULL | |
8949 | }; | |
8950 | ||
8951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8954 | { | |
8955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8956 | result = (bool)(arg1)->IsRedirected(); | |
8957 | ||
8958 | wxPyEndAllowThreads(__tstate); | |
8959 | if (PyErr_Occurred()) SWIG_fail; | |
8960 | } | |
8961 | { | |
8962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8963 | } | |
8964 | return resultobj; | |
8965 | fail: | |
8966 | return NULL; | |
8967 | } | |
8968 | ||
8969 | ||
8970 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8971 | PyObject *resultobj; | |
8972 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8973 | PyObject * obj0 = 0 ; | |
8974 | char *kwnames[] = { | |
8975 | (char *) "self", NULL | |
8976 | }; | |
8977 | ||
8978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8981 | { | |
8982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8983 | (arg1)->Detach(); | |
8984 | ||
8985 | wxPyEndAllowThreads(__tstate); | |
8986 | if (PyErr_Occurred()) SWIG_fail; | |
8987 | } | |
8988 | Py_INCREF(Py_None); resultobj = Py_None; | |
8989 | return resultobj; | |
8990 | fail: | |
8991 | return NULL; | |
8992 | } | |
8993 | ||
8994 | ||
8995 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8996 | PyObject *resultobj; | |
8997 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8998 | wxInputStream *result; | |
8999 | PyObject * obj0 = 0 ; | |
9000 | char *kwnames[] = { | |
9001 | (char *) "self", NULL | |
9002 | }; | |
9003 | ||
9004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9007 | { | |
9008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9009 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9010 | ||
9011 | wxPyEndAllowThreads(__tstate); | |
9012 | if (PyErr_Occurred()) SWIG_fail; | |
9013 | } | |
9014 | { | |
9015 | wxPyInputStream * _ptr = NULL; | |
9016 | ||
9017 | if (result) { | |
9018 | _ptr = new wxPyInputStream(result); | |
9019 | } | |
9020 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9021 | } | |
9022 | return resultobj; | |
9023 | fail: | |
9024 | return NULL; | |
9025 | } | |
9026 | ||
9027 | ||
9028 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9029 | PyObject *resultobj; | |
9030 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9031 | wxInputStream *result; | |
9032 | PyObject * obj0 = 0 ; | |
9033 | char *kwnames[] = { | |
9034 | (char *) "self", NULL | |
9035 | }; | |
9036 | ||
9037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9040 | { | |
9041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9042 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9043 | ||
9044 | wxPyEndAllowThreads(__tstate); | |
9045 | if (PyErr_Occurred()) SWIG_fail; | |
9046 | } | |
9047 | { | |
9048 | wxPyInputStream * _ptr = NULL; | |
9049 | ||
9050 | if (result) { | |
9051 | _ptr = new wxPyInputStream(result); | |
9052 | } | |
9053 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9054 | } | |
9055 | return resultobj; | |
9056 | fail: | |
9057 | return NULL; | |
9058 | } | |
9059 | ||
9060 | ||
9061 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9062 | PyObject *resultobj; | |
9063 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9064 | wxOutputStream *result; | |
9065 | PyObject * obj0 = 0 ; | |
9066 | char *kwnames[] = { | |
9067 | (char *) "self", NULL | |
9068 | }; | |
9069 | ||
9070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9073 | { | |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9076 | ||
9077 | wxPyEndAllowThreads(__tstate); | |
9078 | if (PyErr_Occurred()) SWIG_fail; | |
9079 | } | |
9080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9081 | return resultobj; | |
9082 | fail: | |
9083 | return NULL; | |
9084 | } | |
9085 | ||
9086 | ||
9087 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9088 | PyObject *resultobj; | |
9089 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9090 | PyObject * obj0 = 0 ; | |
9091 | char *kwnames[] = { | |
9092 | (char *) "self", NULL | |
9093 | }; | |
9094 | ||
9095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9098 | { | |
9099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9100 | (arg1)->CloseOutput(); | |
9101 | ||
9102 | wxPyEndAllowThreads(__tstate); | |
9103 | if (PyErr_Occurred()) SWIG_fail; | |
9104 | } | |
9105 | Py_INCREF(Py_None); resultobj = Py_None; | |
9106 | return resultobj; | |
9107 | fail: | |
9108 | return NULL; | |
9109 | } | |
9110 | ||
9111 | ||
9112 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9113 | PyObject *resultobj; | |
9114 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9115 | bool result; | |
9116 | PyObject * obj0 = 0 ; | |
9117 | char *kwnames[] = { | |
9118 | (char *) "self", NULL | |
9119 | }; | |
9120 | ||
9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9124 | { | |
9125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9126 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9127 | ||
9128 | wxPyEndAllowThreads(__tstate); | |
9129 | if (PyErr_Occurred()) SWIG_fail; | |
9130 | } | |
9131 | { | |
9132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9133 | } | |
9134 | return resultobj; | |
9135 | fail: | |
9136 | return NULL; | |
9137 | } | |
9138 | ||
9139 | ||
9140 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9141 | PyObject *resultobj; | |
9142 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9143 | bool result; | |
9144 | PyObject * obj0 = 0 ; | |
9145 | char *kwnames[] = { | |
9146 | (char *) "self", NULL | |
9147 | }; | |
9148 | ||
9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9152 | { | |
9153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9154 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9155 | ||
9156 | wxPyEndAllowThreads(__tstate); | |
9157 | if (PyErr_Occurred()) SWIG_fail; | |
9158 | } | |
9159 | { | |
9160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9161 | } | |
9162 | return resultobj; | |
9163 | fail: | |
9164 | return NULL; | |
9165 | } | |
9166 | ||
9167 | ||
9168 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9169 | PyObject *resultobj; | |
9170 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9171 | bool result; | |
9172 | PyObject * obj0 = 0 ; | |
9173 | char *kwnames[] = { | |
9174 | (char *) "self", NULL | |
9175 | }; | |
9176 | ||
9177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9180 | { | |
9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9182 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9183 | ||
9184 | wxPyEndAllowThreads(__tstate); | |
9185 | if (PyErr_Occurred()) SWIG_fail; | |
9186 | } | |
9187 | { | |
9188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9189 | } | |
9190 | return resultobj; | |
9191 | fail: | |
9192 | return NULL; | |
9193 | } | |
9194 | ||
9195 | ||
9196 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9197 | PyObject *obj; | |
9198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9199 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9200 | Py_INCREF(obj); | |
9201 | return Py_BuildValue((char *)""); | |
9202 | } | |
9203 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9204 | PyObject *resultobj; | |
9205 | int arg1 = (int) 0 ; | |
9206 | int arg2 = (int) 0 ; | |
9207 | int arg3 = (int) 0 ; | |
9208 | wxProcessEvent *result; | |
9209 | PyObject * obj0 = 0 ; | |
9210 | PyObject * obj1 = 0 ; | |
9211 | PyObject * obj2 = 0 ; | |
9212 | char *kwnames[] = { | |
9213 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9214 | }; | |
9215 | ||
9216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9217 | if (obj0) { | |
9218 | arg1 = (int) SWIG_AsInt(obj0); | |
9219 | if (PyErr_Occurred()) SWIG_fail; | |
9220 | } | |
9221 | if (obj1) { | |
9222 | arg2 = (int) SWIG_AsInt(obj1); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
9225 | if (obj2) { | |
9226 | arg3 = (int) SWIG_AsInt(obj2); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
9229 | { | |
9230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9231 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9232 | ||
9233 | wxPyEndAllowThreads(__tstate); | |
9234 | if (PyErr_Occurred()) SWIG_fail; | |
9235 | } | |
9236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9237 | return resultobj; | |
9238 | fail: | |
9239 | return NULL; | |
9240 | } | |
9241 | ||
9242 | ||
9243 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9244 | PyObject *resultobj; | |
9245 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9246 | int result; | |
9247 | PyObject * obj0 = 0 ; | |
9248 | char *kwnames[] = { | |
9249 | (char *) "self", NULL | |
9250 | }; | |
9251 | ||
9252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9255 | { | |
9256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9257 | result = (int)(arg1)->GetPid(); | |
9258 | ||
9259 | wxPyEndAllowThreads(__tstate); | |
9260 | if (PyErr_Occurred()) SWIG_fail; | |
9261 | } | |
9262 | resultobj = SWIG_FromInt((int)result); | |
9263 | return resultobj; | |
9264 | fail: | |
9265 | return NULL; | |
9266 | } | |
9267 | ||
9268 | ||
9269 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9270 | PyObject *resultobj; | |
9271 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9272 | int result; | |
9273 | PyObject * obj0 = 0 ; | |
9274 | char *kwnames[] = { | |
9275 | (char *) "self", NULL | |
9276 | }; | |
9277 | ||
9278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9281 | { | |
9282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9283 | result = (int)(arg1)->GetExitCode(); | |
9284 | ||
9285 | wxPyEndAllowThreads(__tstate); | |
9286 | if (PyErr_Occurred()) SWIG_fail; | |
9287 | } | |
9288 | resultobj = SWIG_FromInt((int)result); | |
9289 | return resultobj; | |
9290 | fail: | |
9291 | return NULL; | |
9292 | } | |
9293 | ||
9294 | ||
9295 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9296 | PyObject *resultobj; | |
9297 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9298 | int arg2 ; | |
9299 | PyObject * obj0 = 0 ; | |
9300 | PyObject * obj1 = 0 ; | |
9301 | char *kwnames[] = { | |
9302 | (char *) "self",(char *) "m_pid", NULL | |
9303 | }; | |
9304 | ||
9305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9308 | arg2 = (int) SWIG_AsInt(obj1); | |
9309 | if (PyErr_Occurred()) SWIG_fail; | |
9310 | if (arg1) (arg1)->m_pid = arg2; | |
9311 | ||
9312 | Py_INCREF(Py_None); resultobj = Py_None; | |
9313 | return resultobj; | |
9314 | fail: | |
9315 | return NULL; | |
9316 | } | |
9317 | ||
9318 | ||
9319 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9320 | PyObject *resultobj; | |
9321 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9322 | int result; | |
9323 | PyObject * obj0 = 0 ; | |
9324 | char *kwnames[] = { | |
9325 | (char *) "self", NULL | |
9326 | }; | |
9327 | ||
9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9331 | result = (int) ((arg1)->m_pid); | |
9332 | ||
9333 | resultobj = SWIG_FromInt((int)result); | |
9334 | return resultobj; | |
9335 | fail: | |
9336 | return NULL; | |
9337 | } | |
9338 | ||
9339 | ||
9340 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9341 | PyObject *resultobj; | |
9342 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9343 | int arg2 ; | |
9344 | PyObject * obj0 = 0 ; | |
9345 | PyObject * obj1 = 0 ; | |
9346 | char *kwnames[] = { | |
9347 | (char *) "self",(char *) "m_exitcode", NULL | |
9348 | }; | |
9349 | ||
9350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9353 | arg2 = (int) SWIG_AsInt(obj1); | |
9354 | if (PyErr_Occurred()) SWIG_fail; | |
9355 | if (arg1) (arg1)->m_exitcode = arg2; | |
9356 | ||
9357 | Py_INCREF(Py_None); resultobj = Py_None; | |
9358 | return resultobj; | |
9359 | fail: | |
9360 | return NULL; | |
9361 | } | |
9362 | ||
9363 | ||
9364 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9365 | PyObject *resultobj; | |
9366 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9367 | int result; | |
9368 | PyObject * obj0 = 0 ; | |
9369 | char *kwnames[] = { | |
9370 | (char *) "self", NULL | |
9371 | }; | |
9372 | ||
9373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9376 | result = (int) ((arg1)->m_exitcode); | |
9377 | ||
9378 | resultobj = SWIG_FromInt((int)result); | |
9379 | return resultobj; | |
9380 | fail: | |
9381 | return NULL; | |
9382 | } | |
9383 | ||
9384 | ||
9385 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9386 | PyObject *obj; | |
9387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9388 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9389 | Py_INCREF(obj); | |
9390 | return Py_BuildValue((char *)""); | |
9391 | } | |
9392 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9393 | PyObject *resultobj; | |
9394 | wxString *arg1 = 0 ; | |
9395 | int arg2 = (int) wxEXEC_ASYNC ; | |
9396 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9397 | long result; | |
9398 | bool temp1 = False ; | |
9399 | PyObject * obj0 = 0 ; | |
9400 | PyObject * obj1 = 0 ; | |
9401 | PyObject * obj2 = 0 ; | |
9402 | char *kwnames[] = { | |
9403 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9404 | }; | |
9405 | ||
9406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9407 | { | |
9408 | arg1 = wxString_in_helper(obj0); | |
9409 | if (arg1 == NULL) SWIG_fail; | |
9410 | temp1 = True; | |
9411 | } | |
9412 | if (obj1) { | |
9413 | arg2 = (int) SWIG_AsInt(obj1); | |
9414 | if (PyErr_Occurred()) SWIG_fail; | |
9415 | } | |
9416 | if (obj2) { | |
9417 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
9418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9419 | } | |
9420 | { | |
9421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9422 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9423 | ||
9424 | wxPyEndAllowThreads(__tstate); | |
9425 | if (PyErr_Occurred()) SWIG_fail; | |
9426 | } | |
9427 | resultobj = SWIG_FromLong((long)result); | |
9428 | { | |
9429 | if (temp1) | |
9430 | delete arg1; | |
9431 | } | |
9432 | return resultobj; | |
9433 | fail: | |
9434 | { | |
9435 | if (temp1) | |
9436 | delete arg1; | |
9437 | } | |
9438 | return NULL; | |
9439 | } | |
9440 | ||
9441 | ||
9442 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9443 | PyObject *resultobj; | |
9444 | int arg1 = (int) wxJOYSTICK1 ; | |
9445 | wxJoystick *result; | |
9446 | PyObject * obj0 = 0 ; | |
9447 | char *kwnames[] = { | |
9448 | (char *) "joystick", NULL | |
9449 | }; | |
9450 | ||
9451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9452 | if (obj0) { | |
9453 | arg1 = (int) SWIG_AsInt(obj0); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | } | |
9456 | { | |
9457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9458 | result = (wxJoystick *)new wxJoystick(arg1); | |
9459 | ||
9460 | wxPyEndAllowThreads(__tstate); | |
9461 | if (PyErr_Occurred()) SWIG_fail; | |
9462 | } | |
9463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
9464 | return resultobj; | |
9465 | fail: | |
9466 | return NULL; | |
9467 | } | |
9468 | ||
9469 | ||
9470 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9471 | PyObject *resultobj; | |
9472 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9473 | PyObject * obj0 = 0 ; | |
9474 | char *kwnames[] = { | |
9475 | (char *) "self", NULL | |
9476 | }; | |
9477 | ||
9478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
9479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9481 | { | |
9482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9483 | delete arg1; | |
9484 | ||
9485 | wxPyEndAllowThreads(__tstate); | |
9486 | if (PyErr_Occurred()) SWIG_fail; | |
9487 | } | |
9488 | Py_INCREF(Py_None); resultobj = Py_None; | |
9489 | return resultobj; | |
9490 | fail: | |
9491 | return NULL; | |
9492 | } | |
9493 | ||
9494 | ||
9495 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9496 | PyObject *resultobj; | |
9497 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9498 | wxPoint result; | |
9499 | PyObject * obj0 = 0 ; | |
9500 | char *kwnames[] = { | |
9501 | (char *) "self", NULL | |
9502 | }; | |
9503 | ||
9504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
9505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9507 | { | |
9508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9509 | result = (arg1)->GetPosition(); | |
9510 | ||
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
9514 | { | |
9515 | wxPoint * resultptr; | |
9516 | resultptr = new wxPoint((wxPoint &) result); | |
9517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
9518 | } | |
9519 | return resultobj; | |
9520 | fail: | |
9521 | return NULL; | |
9522 | } | |
9523 | ||
9524 | ||
9525 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9526 | PyObject *resultobj; | |
9527 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9528 | int result; | |
9529 | PyObject * obj0 = 0 ; | |
9530 | char *kwnames[] = { | |
9531 | (char *) "self", NULL | |
9532 | }; | |
9533 | ||
9534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
9535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9537 | { | |
9538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9539 | result = (int)(arg1)->GetZPosition(); | |
9540 | ||
9541 | wxPyEndAllowThreads(__tstate); | |
9542 | if (PyErr_Occurred()) SWIG_fail; | |
9543 | } | |
9544 | resultobj = SWIG_FromInt((int)result); | |
9545 | return resultobj; | |
9546 | fail: | |
9547 | return NULL; | |
9548 | } | |
9549 | ||
9550 | ||
9551 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9552 | PyObject *resultobj; | |
9553 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9554 | int result; | |
9555 | PyObject * obj0 = 0 ; | |
9556 | char *kwnames[] = { | |
9557 | (char *) "self", NULL | |
9558 | }; | |
9559 | ||
9560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
9561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9563 | { | |
9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9565 | result = (int)(arg1)->GetButtonState(); | |
9566 | ||
9567 | wxPyEndAllowThreads(__tstate); | |
9568 | if (PyErr_Occurred()) SWIG_fail; | |
9569 | } | |
9570 | resultobj = SWIG_FromInt((int)result); | |
9571 | return resultobj; | |
9572 | fail: | |
9573 | return NULL; | |
9574 | } | |
9575 | ||
9576 | ||
9577 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9578 | PyObject *resultobj; | |
9579 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9580 | int result; | |
9581 | PyObject * obj0 = 0 ; | |
9582 | char *kwnames[] = { | |
9583 | (char *) "self", NULL | |
9584 | }; | |
9585 | ||
9586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
9587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9589 | { | |
9590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9591 | result = (int)(arg1)->GetPOVPosition(); | |
9592 | ||
9593 | wxPyEndAllowThreads(__tstate); | |
9594 | if (PyErr_Occurred()) SWIG_fail; | |
9595 | } | |
9596 | resultobj = SWIG_FromInt((int)result); | |
9597 | return resultobj; | |
9598 | fail: | |
9599 | return NULL; | |
9600 | } | |
9601 | ||
9602 | ||
9603 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9604 | PyObject *resultobj; | |
9605 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9606 | int result; | |
9607 | PyObject * obj0 = 0 ; | |
9608 | char *kwnames[] = { | |
9609 | (char *) "self", NULL | |
9610 | }; | |
9611 | ||
9612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
9613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9615 | { | |
9616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9617 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9618 | ||
9619 | wxPyEndAllowThreads(__tstate); | |
9620 | if (PyErr_Occurred()) SWIG_fail; | |
9621 | } | |
9622 | resultobj = SWIG_FromInt((int)result); | |
9623 | return resultobj; | |
9624 | fail: | |
9625 | return NULL; | |
9626 | } | |
9627 | ||
9628 | ||
9629 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9630 | PyObject *resultobj; | |
9631 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9632 | int result; | |
9633 | PyObject * obj0 = 0 ; | |
9634 | char *kwnames[] = { | |
9635 | (char *) "self", NULL | |
9636 | }; | |
9637 | ||
9638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
9639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9641 | { | |
9642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9643 | result = (int)(arg1)->GetRudderPosition(); | |
9644 | ||
9645 | wxPyEndAllowThreads(__tstate); | |
9646 | if (PyErr_Occurred()) SWIG_fail; | |
9647 | } | |
9648 | resultobj = SWIG_FromInt((int)result); | |
9649 | return resultobj; | |
9650 | fail: | |
9651 | return NULL; | |
9652 | } | |
9653 | ||
9654 | ||
9655 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9656 | PyObject *resultobj; | |
9657 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9658 | int result; | |
9659 | PyObject * obj0 = 0 ; | |
9660 | char *kwnames[] = { | |
9661 | (char *) "self", NULL | |
9662 | }; | |
9663 | ||
9664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
9665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9667 | { | |
9668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9669 | result = (int)(arg1)->GetUPosition(); | |
9670 | ||
9671 | wxPyEndAllowThreads(__tstate); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
9674 | resultobj = SWIG_FromInt((int)result); | |
9675 | return resultobj; | |
9676 | fail: | |
9677 | return NULL; | |
9678 | } | |
9679 | ||
9680 | ||
9681 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9682 | PyObject *resultobj; | |
9683 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9684 | int result; | |
9685 | PyObject * obj0 = 0 ; | |
9686 | char *kwnames[] = { | |
9687 | (char *) "self", NULL | |
9688 | }; | |
9689 | ||
9690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
9691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9693 | { | |
9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9695 | result = (int)(arg1)->GetVPosition(); | |
9696 | ||
9697 | wxPyEndAllowThreads(__tstate); | |
9698 | if (PyErr_Occurred()) SWIG_fail; | |
9699 | } | |
9700 | resultobj = SWIG_FromInt((int)result); | |
9701 | return resultobj; | |
9702 | fail: | |
9703 | return NULL; | |
9704 | } | |
9705 | ||
9706 | ||
9707 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9708 | PyObject *resultobj; | |
9709 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9710 | int result; | |
9711 | PyObject * obj0 = 0 ; | |
9712 | char *kwnames[] = { | |
9713 | (char *) "self", NULL | |
9714 | }; | |
9715 | ||
9716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
9717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9719 | { | |
9720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9721 | result = (int)(arg1)->GetMovementThreshold(); | |
9722 | ||
9723 | wxPyEndAllowThreads(__tstate); | |
9724 | if (PyErr_Occurred()) SWIG_fail; | |
9725 | } | |
9726 | resultobj = SWIG_FromInt((int)result); | |
9727 | return resultobj; | |
9728 | fail: | |
9729 | return NULL; | |
9730 | } | |
9731 | ||
9732 | ||
9733 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9734 | PyObject *resultobj; | |
9735 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9736 | int arg2 ; | |
9737 | PyObject * obj0 = 0 ; | |
9738 | PyObject * obj1 = 0 ; | |
9739 | char *kwnames[] = { | |
9740 | (char *) "self",(char *) "threshold", NULL | |
9741 | }; | |
9742 | ||
9743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
9744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9746 | arg2 = (int) SWIG_AsInt(obj1); | |
9747 | if (PyErr_Occurred()) SWIG_fail; | |
9748 | { | |
9749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9750 | (arg1)->SetMovementThreshold(arg2); | |
9751 | ||
9752 | wxPyEndAllowThreads(__tstate); | |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
9754 | } | |
9755 | Py_INCREF(Py_None); resultobj = Py_None; | |
9756 | return resultobj; | |
9757 | fail: | |
9758 | return NULL; | |
9759 | } | |
9760 | ||
9761 | ||
9762 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9763 | PyObject *resultobj; | |
9764 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9765 | bool result; | |
9766 | PyObject * obj0 = 0 ; | |
9767 | char *kwnames[] = { | |
9768 | (char *) "self", NULL | |
9769 | }; | |
9770 | ||
9771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9774 | { | |
9775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9776 | result = (bool)(arg1)->IsOk(); | |
9777 | ||
9778 | wxPyEndAllowThreads(__tstate); | |
9779 | if (PyErr_Occurred()) SWIG_fail; | |
9780 | } | |
9781 | { | |
9782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9783 | } | |
9784 | return resultobj; | |
9785 | fail: | |
9786 | return NULL; | |
9787 | } | |
9788 | ||
9789 | ||
9790 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9791 | PyObject *resultobj; | |
9792 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9793 | int result; | |
9794 | PyObject * obj0 = 0 ; | |
9795 | char *kwnames[] = { | |
9796 | (char *) "self", NULL | |
9797 | }; | |
9798 | ||
9799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9802 | { | |
9803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9804 | result = (int)(arg1)->GetNumberJoysticks(); | |
9805 | ||
9806 | wxPyEndAllowThreads(__tstate); | |
9807 | if (PyErr_Occurred()) SWIG_fail; | |
9808 | } | |
9809 | resultobj = SWIG_FromInt((int)result); | |
9810 | return resultobj; | |
9811 | fail: | |
9812 | return NULL; | |
9813 | } | |
9814 | ||
9815 | ||
9816 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9817 | PyObject *resultobj; | |
9818 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9819 | int result; | |
9820 | PyObject * obj0 = 0 ; | |
9821 | char *kwnames[] = { | |
9822 | (char *) "self", NULL | |
9823 | }; | |
9824 | ||
9825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9828 | { | |
9829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9830 | result = (int)(arg1)->GetManufacturerId(); | |
9831 | ||
9832 | wxPyEndAllowThreads(__tstate); | |
9833 | if (PyErr_Occurred()) SWIG_fail; | |
9834 | } | |
9835 | resultobj = SWIG_FromInt((int)result); | |
9836 | return resultobj; | |
9837 | fail: | |
9838 | return NULL; | |
9839 | } | |
9840 | ||
9841 | ||
9842 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9843 | PyObject *resultobj; | |
9844 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9845 | int result; | |
9846 | PyObject * obj0 = 0 ; | |
9847 | char *kwnames[] = { | |
9848 | (char *) "self", NULL | |
9849 | }; | |
9850 | ||
9851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9854 | { | |
9855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9856 | result = (int)(arg1)->GetProductId(); | |
9857 | ||
9858 | wxPyEndAllowThreads(__tstate); | |
9859 | if (PyErr_Occurred()) SWIG_fail; | |
9860 | } | |
9861 | resultobj = SWIG_FromInt((int)result); | |
9862 | return resultobj; | |
9863 | fail: | |
9864 | return NULL; | |
9865 | } | |
9866 | ||
9867 | ||
9868 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9869 | PyObject *resultobj; | |
9870 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9871 | wxString result; | |
9872 | PyObject * obj0 = 0 ; | |
9873 | char *kwnames[] = { | |
9874 | (char *) "self", NULL | |
9875 | }; | |
9876 | ||
9877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9880 | { | |
9881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9882 | result = (arg1)->GetProductName(); | |
9883 | ||
9884 | wxPyEndAllowThreads(__tstate); | |
9885 | if (PyErr_Occurred()) SWIG_fail; | |
9886 | } | |
9887 | { | |
9888 | #if wxUSE_UNICODE | |
9889 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9890 | #else | |
9891 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9892 | #endif | |
9893 | } | |
9894 | return resultobj; | |
9895 | fail: | |
9896 | return NULL; | |
9897 | } | |
9898 | ||
9899 | ||
9900 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9901 | PyObject *resultobj; | |
9902 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9903 | int result; | |
9904 | PyObject * obj0 = 0 ; | |
9905 | char *kwnames[] = { | |
9906 | (char *) "self", NULL | |
9907 | }; | |
9908 | ||
9909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9912 | { | |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | result = (int)(arg1)->GetXMin(); | |
9915 | ||
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
9919 | resultobj = SWIG_FromInt((int)result); | |
9920 | return resultobj; | |
9921 | fail: | |
9922 | return NULL; | |
9923 | } | |
9924 | ||
9925 | ||
9926 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9927 | PyObject *resultobj; | |
9928 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9929 | int result; | |
9930 | PyObject * obj0 = 0 ; | |
9931 | char *kwnames[] = { | |
9932 | (char *) "self", NULL | |
9933 | }; | |
9934 | ||
9935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9938 | { | |
9939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9940 | result = (int)(arg1)->GetYMin(); | |
9941 | ||
9942 | wxPyEndAllowThreads(__tstate); | |
9943 | if (PyErr_Occurred()) SWIG_fail; | |
9944 | } | |
9945 | resultobj = SWIG_FromInt((int)result); | |
9946 | return resultobj; | |
9947 | fail: | |
9948 | return NULL; | |
9949 | } | |
9950 | ||
9951 | ||
9952 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9953 | PyObject *resultobj; | |
9954 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9955 | int result; | |
9956 | PyObject * obj0 = 0 ; | |
9957 | char *kwnames[] = { | |
9958 | (char *) "self", NULL | |
9959 | }; | |
9960 | ||
9961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9964 | { | |
9965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9966 | result = (int)(arg1)->GetZMin(); | |
9967 | ||
9968 | wxPyEndAllowThreads(__tstate); | |
9969 | if (PyErr_Occurred()) SWIG_fail; | |
9970 | } | |
9971 | resultobj = SWIG_FromInt((int)result); | |
9972 | return resultobj; | |
9973 | fail: | |
9974 | return NULL; | |
9975 | } | |
9976 | ||
9977 | ||
9978 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9979 | PyObject *resultobj; | |
9980 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9981 | int result; | |
9982 | PyObject * obj0 = 0 ; | |
9983 | char *kwnames[] = { | |
9984 | (char *) "self", NULL | |
9985 | }; | |
9986 | ||
9987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9990 | { | |
9991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9992 | result = (int)(arg1)->GetXMax(); | |
9993 | ||
9994 | wxPyEndAllowThreads(__tstate); | |
9995 | if (PyErr_Occurred()) SWIG_fail; | |
9996 | } | |
9997 | resultobj = SWIG_FromInt((int)result); | |
9998 | return resultobj; | |
9999 | fail: | |
10000 | return NULL; | |
10001 | } | |
10002 | ||
10003 | ||
10004 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10005 | PyObject *resultobj; | |
10006 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10007 | int result; | |
10008 | PyObject * obj0 = 0 ; | |
10009 | char *kwnames[] = { | |
10010 | (char *) "self", NULL | |
10011 | }; | |
10012 | ||
10013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10016 | { | |
10017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10018 | result = (int)(arg1)->GetYMax(); | |
10019 | ||
10020 | wxPyEndAllowThreads(__tstate); | |
10021 | if (PyErr_Occurred()) SWIG_fail; | |
10022 | } | |
10023 | resultobj = SWIG_FromInt((int)result); | |
10024 | return resultobj; | |
10025 | fail: | |
10026 | return NULL; | |
10027 | } | |
10028 | ||
10029 | ||
10030 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10031 | PyObject *resultobj; | |
10032 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10033 | int result; | |
10034 | PyObject * obj0 = 0 ; | |
10035 | char *kwnames[] = { | |
10036 | (char *) "self", NULL | |
10037 | }; | |
10038 | ||
10039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10042 | { | |
10043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10044 | result = (int)(arg1)->GetZMax(); | |
10045 | ||
10046 | wxPyEndAllowThreads(__tstate); | |
10047 | if (PyErr_Occurred()) SWIG_fail; | |
10048 | } | |
10049 | resultobj = SWIG_FromInt((int)result); | |
10050 | return resultobj; | |
10051 | fail: | |
10052 | return NULL; | |
10053 | } | |
10054 | ||
10055 | ||
10056 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10057 | PyObject *resultobj; | |
10058 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10059 | int result; | |
10060 | PyObject * obj0 = 0 ; | |
10061 | char *kwnames[] = { | |
10062 | (char *) "self", NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10068 | { | |
10069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10070 | result = (int)(arg1)->GetNumberButtons(); | |
10071 | ||
10072 | wxPyEndAllowThreads(__tstate); | |
10073 | if (PyErr_Occurred()) SWIG_fail; | |
10074 | } | |
10075 | resultobj = SWIG_FromInt((int)result); | |
10076 | return resultobj; | |
10077 | fail: | |
10078 | return NULL; | |
10079 | } | |
10080 | ||
10081 | ||
10082 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10083 | PyObject *resultobj; | |
10084 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10085 | int result; | |
10086 | PyObject * obj0 = 0 ; | |
10087 | char *kwnames[] = { | |
10088 | (char *) "self", NULL | |
10089 | }; | |
10090 | ||
10091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10094 | { | |
10095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10096 | result = (int)(arg1)->GetNumberAxes(); | |
10097 | ||
10098 | wxPyEndAllowThreads(__tstate); | |
10099 | if (PyErr_Occurred()) SWIG_fail; | |
10100 | } | |
10101 | resultobj = SWIG_FromInt((int)result); | |
10102 | return resultobj; | |
10103 | fail: | |
10104 | return NULL; | |
10105 | } | |
10106 | ||
10107 | ||
10108 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10109 | PyObject *resultobj; | |
10110 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10111 | int result; | |
10112 | PyObject * obj0 = 0 ; | |
10113 | char *kwnames[] = { | |
10114 | (char *) "self", NULL | |
10115 | }; | |
10116 | ||
10117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
10118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10120 | { | |
10121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10122 | result = (int)(arg1)->GetMaxButtons(); | |
10123 | ||
10124 | wxPyEndAllowThreads(__tstate); | |
10125 | if (PyErr_Occurred()) SWIG_fail; | |
10126 | } | |
10127 | resultobj = SWIG_FromInt((int)result); | |
10128 | return resultobj; | |
10129 | fail: | |
10130 | return NULL; | |
10131 | } | |
10132 | ||
10133 | ||
10134 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject *resultobj; | |
10136 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10137 | int result; | |
10138 | PyObject * obj0 = 0 ; | |
10139 | char *kwnames[] = { | |
10140 | (char *) "self", NULL | |
10141 | }; | |
10142 | ||
10143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10146 | { | |
10147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10148 | result = (int)(arg1)->GetMaxAxes(); | |
10149 | ||
10150 | wxPyEndAllowThreads(__tstate); | |
10151 | if (PyErr_Occurred()) SWIG_fail; | |
10152 | } | |
10153 | resultobj = SWIG_FromInt((int)result); | |
10154 | return resultobj; | |
10155 | fail: | |
10156 | return NULL; | |
10157 | } | |
10158 | ||
10159 | ||
10160 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10161 | PyObject *resultobj; | |
10162 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10163 | int result; | |
10164 | PyObject * obj0 = 0 ; | |
10165 | char *kwnames[] = { | |
10166 | (char *) "self", NULL | |
10167 | }; | |
10168 | ||
10169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10172 | { | |
10173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10174 | result = (int)(arg1)->GetPollingMin(); | |
10175 | ||
10176 | wxPyEndAllowThreads(__tstate); | |
10177 | if (PyErr_Occurred()) SWIG_fail; | |
10178 | } | |
10179 | resultobj = SWIG_FromInt((int)result); | |
10180 | return resultobj; | |
10181 | fail: | |
10182 | return NULL; | |
10183 | } | |
10184 | ||
10185 | ||
10186 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10187 | PyObject *resultobj; | |
10188 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10189 | int result; | |
10190 | PyObject * obj0 = 0 ; | |
10191 | char *kwnames[] = { | |
10192 | (char *) "self", NULL | |
10193 | }; | |
10194 | ||
10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10198 | { | |
10199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10200 | result = (int)(arg1)->GetPollingMax(); | |
10201 | ||
10202 | wxPyEndAllowThreads(__tstate); | |
10203 | if (PyErr_Occurred()) SWIG_fail; | |
10204 | } | |
10205 | resultobj = SWIG_FromInt((int)result); | |
10206 | return resultobj; | |
10207 | fail: | |
10208 | return NULL; | |
10209 | } | |
10210 | ||
10211 | ||
10212 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10213 | PyObject *resultobj; | |
10214 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10215 | int result; | |
10216 | PyObject * obj0 = 0 ; | |
10217 | char *kwnames[] = { | |
10218 | (char *) "self", NULL | |
10219 | }; | |
10220 | ||
10221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10224 | { | |
10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10226 | result = (int)(arg1)->GetRudderMin(); | |
10227 | ||
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
10231 | resultobj = SWIG_FromInt((int)result); | |
10232 | return resultobj; | |
10233 | fail: | |
10234 | return NULL; | |
10235 | } | |
10236 | ||
10237 | ||
10238 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10239 | PyObject *resultobj; | |
10240 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10241 | int result; | |
10242 | PyObject * obj0 = 0 ; | |
10243 | char *kwnames[] = { | |
10244 | (char *) "self", NULL | |
10245 | }; | |
10246 | ||
10247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10250 | { | |
10251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10252 | result = (int)(arg1)->GetRudderMax(); | |
10253 | ||
10254 | wxPyEndAllowThreads(__tstate); | |
10255 | if (PyErr_Occurred()) SWIG_fail; | |
10256 | } | |
10257 | resultobj = SWIG_FromInt((int)result); | |
10258 | return resultobj; | |
10259 | fail: | |
10260 | return NULL; | |
10261 | } | |
10262 | ||
10263 | ||
10264 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10265 | PyObject *resultobj; | |
10266 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10267 | int result; | |
10268 | PyObject * obj0 = 0 ; | |
10269 | char *kwnames[] = { | |
10270 | (char *) "self", NULL | |
10271 | }; | |
10272 | ||
10273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10276 | { | |
10277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10278 | result = (int)(arg1)->GetUMin(); | |
10279 | ||
10280 | wxPyEndAllowThreads(__tstate); | |
10281 | if (PyErr_Occurred()) SWIG_fail; | |
10282 | } | |
10283 | resultobj = SWIG_FromInt((int)result); | |
10284 | return resultobj; | |
10285 | fail: | |
10286 | return NULL; | |
10287 | } | |
10288 | ||
10289 | ||
10290 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10291 | PyObject *resultobj; | |
10292 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10293 | int result; | |
10294 | PyObject * obj0 = 0 ; | |
10295 | char *kwnames[] = { | |
10296 | (char *) "self", NULL | |
10297 | }; | |
10298 | ||
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10302 | { | |
10303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10304 | result = (int)(arg1)->GetUMax(); | |
10305 | ||
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) SWIG_fail; | |
10308 | } | |
10309 | resultobj = SWIG_FromInt((int)result); | |
10310 | return resultobj; | |
10311 | fail: | |
10312 | return NULL; | |
10313 | } | |
10314 | ||
10315 | ||
10316 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10317 | PyObject *resultobj; | |
10318 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10319 | int result; | |
10320 | PyObject * obj0 = 0 ; | |
10321 | char *kwnames[] = { | |
10322 | (char *) "self", NULL | |
10323 | }; | |
10324 | ||
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10328 | { | |
10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10330 | result = (int)(arg1)->GetVMin(); | |
10331 | ||
10332 | wxPyEndAllowThreads(__tstate); | |
10333 | if (PyErr_Occurred()) SWIG_fail; | |
10334 | } | |
10335 | resultobj = SWIG_FromInt((int)result); | |
10336 | return resultobj; | |
10337 | fail: | |
10338 | return NULL; | |
10339 | } | |
10340 | ||
10341 | ||
10342 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10343 | PyObject *resultobj; | |
10344 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10345 | int result; | |
10346 | PyObject * obj0 = 0 ; | |
10347 | char *kwnames[] = { | |
10348 | (char *) "self", NULL | |
10349 | }; | |
10350 | ||
10351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10354 | { | |
10355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10356 | result = (int)(arg1)->GetVMax(); | |
10357 | ||
10358 | wxPyEndAllowThreads(__tstate); | |
10359 | if (PyErr_Occurred()) SWIG_fail; | |
10360 | } | |
10361 | resultobj = SWIG_FromInt((int)result); | |
10362 | return resultobj; | |
10363 | fail: | |
10364 | return NULL; | |
10365 | } | |
10366 | ||
10367 | ||
10368 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10369 | PyObject *resultobj; | |
10370 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10371 | bool result; | |
10372 | PyObject * obj0 = 0 ; | |
10373 | char *kwnames[] = { | |
10374 | (char *) "self", NULL | |
10375 | }; | |
10376 | ||
10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10380 | { | |
10381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10382 | result = (bool)(arg1)->HasRudder(); | |
10383 | ||
10384 | wxPyEndAllowThreads(__tstate); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | } | |
10387 | { | |
10388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10389 | } | |
10390 | return resultobj; | |
10391 | fail: | |
10392 | return NULL; | |
10393 | } | |
10394 | ||
10395 | ||
10396 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10397 | PyObject *resultobj; | |
10398 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10399 | bool result; | |
10400 | PyObject * obj0 = 0 ; | |
10401 | char *kwnames[] = { | |
10402 | (char *) "self", NULL | |
10403 | }; | |
10404 | ||
10405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10408 | { | |
10409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10410 | result = (bool)(arg1)->HasZ(); | |
10411 | ||
10412 | wxPyEndAllowThreads(__tstate); | |
10413 | if (PyErr_Occurred()) SWIG_fail; | |
10414 | } | |
10415 | { | |
10416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10417 | } | |
10418 | return resultobj; | |
10419 | fail: | |
10420 | return NULL; | |
10421 | } | |
10422 | ||
10423 | ||
10424 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10425 | PyObject *resultobj; | |
10426 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10427 | bool result; | |
10428 | PyObject * obj0 = 0 ; | |
10429 | char *kwnames[] = { | |
10430 | (char *) "self", NULL | |
10431 | }; | |
10432 | ||
10433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10436 | { | |
10437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10438 | result = (bool)(arg1)->HasU(); | |
10439 | ||
10440 | wxPyEndAllowThreads(__tstate); | |
10441 | if (PyErr_Occurred()) SWIG_fail; | |
10442 | } | |
10443 | { | |
10444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10445 | } | |
10446 | return resultobj; | |
10447 | fail: | |
10448 | return NULL; | |
10449 | } | |
10450 | ||
10451 | ||
10452 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10453 | PyObject *resultobj; | |
10454 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10455 | bool result; | |
10456 | PyObject * obj0 = 0 ; | |
10457 | char *kwnames[] = { | |
10458 | (char *) "self", NULL | |
10459 | }; | |
10460 | ||
10461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10464 | { | |
10465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10466 | result = (bool)(arg1)->HasV(); | |
10467 | ||
10468 | wxPyEndAllowThreads(__tstate); | |
10469 | if (PyErr_Occurred()) SWIG_fail; | |
10470 | } | |
10471 | { | |
10472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10473 | } | |
10474 | return resultobj; | |
10475 | fail: | |
10476 | return NULL; | |
10477 | } | |
10478 | ||
10479 | ||
10480 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10481 | PyObject *resultobj; | |
10482 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10483 | bool result; | |
10484 | PyObject * obj0 = 0 ; | |
10485 | char *kwnames[] = { | |
10486 | (char *) "self", NULL | |
10487 | }; | |
10488 | ||
10489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
10490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10492 | { | |
10493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10494 | result = (bool)(arg1)->HasPOV(); | |
10495 | ||
10496 | wxPyEndAllowThreads(__tstate); | |
10497 | if (PyErr_Occurred()) SWIG_fail; | |
10498 | } | |
10499 | { | |
10500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10501 | } | |
10502 | return resultobj; | |
10503 | fail: | |
10504 | return NULL; | |
10505 | } | |
10506 | ||
10507 | ||
10508 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10509 | PyObject *resultobj; | |
10510 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10511 | bool result; | |
10512 | PyObject * obj0 = 0 ; | |
10513 | char *kwnames[] = { | |
10514 | (char *) "self", NULL | |
10515 | }; | |
10516 | ||
10517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
10518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10520 | { | |
10521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10522 | result = (bool)(arg1)->HasPOV4Dir(); | |
10523 | ||
10524 | wxPyEndAllowThreads(__tstate); | |
10525 | if (PyErr_Occurred()) SWIG_fail; | |
10526 | } | |
10527 | { | |
10528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10529 | } | |
10530 | return resultobj; | |
10531 | fail: | |
10532 | return NULL; | |
10533 | } | |
10534 | ||
10535 | ||
10536 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10537 | PyObject *resultobj; | |
10538 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10539 | bool result; | |
10540 | PyObject * obj0 = 0 ; | |
10541 | char *kwnames[] = { | |
10542 | (char *) "self", NULL | |
10543 | }; | |
10544 | ||
10545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
10546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10548 | { | |
10549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10550 | result = (bool)(arg1)->HasPOVCTS(); | |
10551 | ||
10552 | wxPyEndAllowThreads(__tstate); | |
10553 | if (PyErr_Occurred()) SWIG_fail; | |
10554 | } | |
10555 | { | |
10556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10557 | } | |
10558 | return resultobj; | |
10559 | fail: | |
10560 | return NULL; | |
10561 | } | |
10562 | ||
10563 | ||
10564 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10565 | PyObject *resultobj; | |
10566 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10567 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10568 | int arg3 = (int) 0 ; | |
10569 | bool result; | |
10570 | PyObject * obj0 = 0 ; | |
10571 | PyObject * obj1 = 0 ; | |
10572 | PyObject * obj2 = 0 ; | |
10573 | char *kwnames[] = { | |
10574 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10575 | }; | |
10576 | ||
10577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10580 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10582 | if (obj2) { | |
10583 | arg3 = (int) SWIG_AsInt(obj2); | |
10584 | if (PyErr_Occurred()) SWIG_fail; | |
10585 | } | |
10586 | { | |
10587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10588 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10589 | ||
10590 | wxPyEndAllowThreads(__tstate); | |
10591 | if (PyErr_Occurred()) SWIG_fail; | |
10592 | } | |
10593 | { | |
10594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10595 | } | |
10596 | return resultobj; | |
10597 | fail: | |
10598 | return NULL; | |
10599 | } | |
10600 | ||
10601 | ||
10602 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10603 | PyObject *resultobj; | |
10604 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10605 | bool result; | |
10606 | PyObject * obj0 = 0 ; | |
10607 | char *kwnames[] = { | |
10608 | (char *) "self", NULL | |
10609 | }; | |
10610 | ||
10611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
10612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10614 | { | |
10615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10616 | result = (bool)(arg1)->ReleaseCapture(); | |
10617 | ||
10618 | wxPyEndAllowThreads(__tstate); | |
10619 | if (PyErr_Occurred()) SWIG_fail; | |
10620 | } | |
10621 | { | |
10622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10623 | } | |
10624 | return resultobj; | |
10625 | fail: | |
10626 | return NULL; | |
10627 | } | |
10628 | ||
10629 | ||
10630 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10631 | PyObject *obj; | |
10632 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10633 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10634 | Py_INCREF(obj); | |
10635 | return Py_BuildValue((char *)""); | |
10636 | } | |
10637 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10638 | PyObject *resultobj; | |
10639 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10640 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10641 | PyObject * obj0 = 0 ; | |
10642 | PyObject * obj1 = 0 ; | |
10643 | char *kwnames[] = { | |
10644 | (char *) "self",(char *) "m_pos", NULL | |
10645 | }; | |
10646 | ||
10647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
10648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10650 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10652 | if (arg1) (arg1)->m_pos = *arg2; | |
10653 | ||
10654 | Py_INCREF(Py_None); resultobj = Py_None; | |
10655 | return resultobj; | |
10656 | fail: | |
10657 | return NULL; | |
10658 | } | |
10659 | ||
10660 | ||
10661 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10662 | PyObject *resultobj; | |
10663 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10664 | wxPoint *result; | |
10665 | PyObject * obj0 = 0 ; | |
10666 | char *kwnames[] = { | |
10667 | (char *) "self", NULL | |
10668 | }; | |
10669 | ||
10670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
10671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10673 | result = (wxPoint *)& ((arg1)->m_pos); | |
10674 | ||
10675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
10676 | return resultobj; | |
10677 | fail: | |
10678 | return NULL; | |
10679 | } | |
10680 | ||
10681 | ||
10682 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10683 | PyObject *resultobj; | |
10684 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10685 | int arg2 ; | |
10686 | PyObject * obj0 = 0 ; | |
10687 | PyObject * obj1 = 0 ; | |
10688 | char *kwnames[] = { | |
10689 | (char *) "self",(char *) "m_zPosition", NULL | |
10690 | }; | |
10691 | ||
10692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
10693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10695 | arg2 = (int) SWIG_AsInt(obj1); | |
10696 | if (PyErr_Occurred()) SWIG_fail; | |
10697 | if (arg1) (arg1)->m_zPosition = arg2; | |
10698 | ||
10699 | Py_INCREF(Py_None); resultobj = Py_None; | |
10700 | return resultobj; | |
10701 | fail: | |
10702 | return NULL; | |
10703 | } | |
10704 | ||
10705 | ||
10706 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10707 | PyObject *resultobj; | |
10708 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10709 | int result; | |
10710 | PyObject * obj0 = 0 ; | |
10711 | char *kwnames[] = { | |
10712 | (char *) "self", NULL | |
10713 | }; | |
10714 | ||
10715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
10716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10718 | result = (int) ((arg1)->m_zPosition); | |
10719 | ||
10720 | resultobj = SWIG_FromInt((int)result); | |
10721 | return resultobj; | |
10722 | fail: | |
10723 | return NULL; | |
10724 | } | |
10725 | ||
10726 | ||
10727 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10728 | PyObject *resultobj; | |
10729 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10730 | int arg2 ; | |
10731 | PyObject * obj0 = 0 ; | |
10732 | PyObject * obj1 = 0 ; | |
10733 | char *kwnames[] = { | |
10734 | (char *) "self",(char *) "m_buttonChange", NULL | |
10735 | }; | |
10736 | ||
10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
10738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10740 | arg2 = (int) SWIG_AsInt(obj1); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | if (arg1) (arg1)->m_buttonChange = arg2; | |
10743 | ||
10744 | Py_INCREF(Py_None); resultobj = Py_None; | |
10745 | return resultobj; | |
10746 | fail: | |
10747 | return NULL; | |
10748 | } | |
10749 | ||
10750 | ||
10751 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10752 | PyObject *resultobj; | |
10753 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10754 | int result; | |
10755 | PyObject * obj0 = 0 ; | |
10756 | char *kwnames[] = { | |
10757 | (char *) "self", NULL | |
10758 | }; | |
10759 | ||
10760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
10761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10763 | result = (int) ((arg1)->m_buttonChange); | |
10764 | ||
10765 | resultobj = SWIG_FromInt((int)result); | |
10766 | return resultobj; | |
10767 | fail: | |
10768 | return NULL; | |
10769 | } | |
10770 | ||
10771 | ||
10772 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10773 | PyObject *resultobj; | |
10774 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10775 | int arg2 ; | |
10776 | PyObject * obj0 = 0 ; | |
10777 | PyObject * obj1 = 0 ; | |
10778 | char *kwnames[] = { | |
10779 | (char *) "self",(char *) "m_buttonState", NULL | |
10780 | }; | |
10781 | ||
10782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
10783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10785 | arg2 = (int) SWIG_AsInt(obj1); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | if (arg1) (arg1)->m_buttonState = arg2; | |
10788 | ||
10789 | Py_INCREF(Py_None); resultobj = Py_None; | |
10790 | return resultobj; | |
10791 | fail: | |
10792 | return NULL; | |
10793 | } | |
10794 | ||
10795 | ||
10796 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10797 | PyObject *resultobj; | |
10798 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10799 | int result; | |
10800 | PyObject * obj0 = 0 ; | |
10801 | char *kwnames[] = { | |
10802 | (char *) "self", NULL | |
10803 | }; | |
10804 | ||
10805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
10806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10808 | result = (int) ((arg1)->m_buttonState); | |
10809 | ||
10810 | resultobj = SWIG_FromInt((int)result); | |
10811 | return resultobj; | |
10812 | fail: | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
10817 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10818 | PyObject *resultobj; | |
10819 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10820 | int arg2 ; | |
10821 | PyObject * obj0 = 0 ; | |
10822 | PyObject * obj1 = 0 ; | |
10823 | char *kwnames[] = { | |
10824 | (char *) "self",(char *) "m_joyStick", NULL | |
10825 | }; | |
10826 | ||
10827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
10828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10830 | arg2 = (int) SWIG_AsInt(obj1); | |
10831 | if (PyErr_Occurred()) SWIG_fail; | |
10832 | if (arg1) (arg1)->m_joyStick = arg2; | |
10833 | ||
10834 | Py_INCREF(Py_None); resultobj = Py_None; | |
10835 | return resultobj; | |
10836 | fail: | |
10837 | return NULL; | |
10838 | } | |
10839 | ||
10840 | ||
10841 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10842 | PyObject *resultobj; | |
10843 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10844 | int result; | |
10845 | PyObject * obj0 = 0 ; | |
10846 | char *kwnames[] = { | |
10847 | (char *) "self", NULL | |
10848 | }; | |
10849 | ||
10850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
10851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10853 | result = (int) ((arg1)->m_joyStick); | |
10854 | ||
10855 | resultobj = SWIG_FromInt((int)result); | |
10856 | return resultobj; | |
10857 | fail: | |
10858 | return NULL; | |
10859 | } | |
10860 | ||
10861 | ||
10862 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10863 | PyObject *resultobj; | |
10864 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10865 | int arg2 = (int) 0 ; | |
10866 | int arg3 = (int) wxJOYSTICK1 ; | |
10867 | int arg4 = (int) 0 ; | |
10868 | wxJoystickEvent *result; | |
10869 | PyObject * obj0 = 0 ; | |
10870 | PyObject * obj1 = 0 ; | |
10871 | PyObject * obj2 = 0 ; | |
10872 | PyObject * obj3 = 0 ; | |
10873 | char *kwnames[] = { | |
10874 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10875 | }; | |
10876 | ||
10877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10878 | if (obj0) { | |
10879 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
10880 | if (PyErr_Occurred()) SWIG_fail; | |
10881 | } | |
10882 | if (obj1) { | |
10883 | arg2 = (int) SWIG_AsInt(obj1); | |
10884 | if (PyErr_Occurred()) SWIG_fail; | |
10885 | } | |
10886 | if (obj2) { | |
10887 | arg3 = (int) SWIG_AsInt(obj2); | |
10888 | if (PyErr_Occurred()) SWIG_fail; | |
10889 | } | |
10890 | if (obj3) { | |
10891 | arg4 = (int) SWIG_AsInt(obj3); | |
10892 | if (PyErr_Occurred()) SWIG_fail; | |
10893 | } | |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10896 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10897 | ||
10898 | wxPyEndAllowThreads(__tstate); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | } | |
10901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
10902 | return resultobj; | |
10903 | fail: | |
10904 | return NULL; | |
10905 | } | |
10906 | ||
10907 | ||
10908 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10909 | PyObject *resultobj; | |
10910 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10911 | wxPoint result; | |
10912 | PyObject * obj0 = 0 ; | |
10913 | char *kwnames[] = { | |
10914 | (char *) "self", NULL | |
10915 | }; | |
10916 | ||
10917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10920 | { | |
10921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10922 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10923 | ||
10924 | wxPyEndAllowThreads(__tstate); | |
10925 | if (PyErr_Occurred()) SWIG_fail; | |
10926 | } | |
10927 | { | |
10928 | wxPoint * resultptr; | |
10929 | resultptr = new wxPoint((wxPoint &) result); | |
10930 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10931 | } | |
10932 | return resultobj; | |
10933 | fail: | |
10934 | return NULL; | |
10935 | } | |
10936 | ||
10937 | ||
10938 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10939 | PyObject *resultobj; | |
10940 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10941 | int result; | |
10942 | PyObject * obj0 = 0 ; | |
10943 | char *kwnames[] = { | |
10944 | (char *) "self", NULL | |
10945 | }; | |
10946 | ||
10947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
10948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10950 | { | |
10951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10952 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10953 | ||
10954 | wxPyEndAllowThreads(__tstate); | |
10955 | if (PyErr_Occurred()) SWIG_fail; | |
10956 | } | |
10957 | resultobj = SWIG_FromInt((int)result); | |
10958 | return resultobj; | |
10959 | fail: | |
10960 | return NULL; | |
10961 | } | |
10962 | ||
10963 | ||
10964 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10965 | PyObject *resultobj; | |
10966 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10967 | int result; | |
10968 | PyObject * obj0 = 0 ; | |
10969 | char *kwnames[] = { | |
10970 | (char *) "self", NULL | |
10971 | }; | |
10972 | ||
10973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
10974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10976 | { | |
10977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10978 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10979 | ||
10980 | wxPyEndAllowThreads(__tstate); | |
10981 | if (PyErr_Occurred()) SWIG_fail; | |
10982 | } | |
10983 | resultobj = SWIG_FromInt((int)result); | |
10984 | return resultobj; | |
10985 | fail: | |
10986 | return NULL; | |
10987 | } | |
10988 | ||
10989 | ||
10990 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10991 | PyObject *resultobj; | |
10992 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10993 | int result; | |
10994 | PyObject * obj0 = 0 ; | |
10995 | char *kwnames[] = { | |
10996 | (char *) "self", NULL | |
10997 | }; | |
10998 | ||
10999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11002 | { | |
11003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11004 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11005 | ||
11006 | wxPyEndAllowThreads(__tstate); | |
11007 | if (PyErr_Occurred()) SWIG_fail; | |
11008 | } | |
11009 | resultobj = SWIG_FromInt((int)result); | |
11010 | return resultobj; | |
11011 | fail: | |
11012 | return NULL; | |
11013 | } | |
11014 | ||
11015 | ||
11016 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11017 | PyObject *resultobj; | |
11018 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11019 | int result; | |
11020 | PyObject * obj0 = 0 ; | |
11021 | char *kwnames[] = { | |
11022 | (char *) "self", NULL | |
11023 | }; | |
11024 | ||
11025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11028 | { | |
11029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11030 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11031 | ||
11032 | wxPyEndAllowThreads(__tstate); | |
11033 | if (PyErr_Occurred()) SWIG_fail; | |
11034 | } | |
11035 | resultobj = SWIG_FromInt((int)result); | |
11036 | return resultobj; | |
11037 | fail: | |
11038 | return NULL; | |
11039 | } | |
11040 | ||
11041 | ||
11042 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11043 | PyObject *resultobj; | |
11044 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11045 | int arg2 ; | |
11046 | PyObject * obj0 = 0 ; | |
11047 | PyObject * obj1 = 0 ; | |
11048 | char *kwnames[] = { | |
11049 | (char *) "self",(char *) "stick", NULL | |
11050 | }; | |
11051 | ||
11052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11055 | arg2 = (int) SWIG_AsInt(obj1); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | { | |
11058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11059 | (arg1)->SetJoystick(arg2); | |
11060 | ||
11061 | wxPyEndAllowThreads(__tstate); | |
11062 | if (PyErr_Occurred()) SWIG_fail; | |
11063 | } | |
11064 | Py_INCREF(Py_None); resultobj = Py_None; | |
11065 | return resultobj; | |
11066 | fail: | |
11067 | return NULL; | |
11068 | } | |
11069 | ||
11070 | ||
11071 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11072 | PyObject *resultobj; | |
11073 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11074 | int arg2 ; | |
11075 | PyObject * obj0 = 0 ; | |
11076 | PyObject * obj1 = 0 ; | |
11077 | char *kwnames[] = { | |
11078 | (char *) "self",(char *) "state", NULL | |
11079 | }; | |
11080 | ||
11081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11084 | arg2 = (int) SWIG_AsInt(obj1); | |
11085 | if (PyErr_Occurred()) SWIG_fail; | |
11086 | { | |
11087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11088 | (arg1)->SetButtonState(arg2); | |
11089 | ||
11090 | wxPyEndAllowThreads(__tstate); | |
11091 | if (PyErr_Occurred()) SWIG_fail; | |
11092 | } | |
11093 | Py_INCREF(Py_None); resultobj = Py_None; | |
11094 | return resultobj; | |
11095 | fail: | |
11096 | return NULL; | |
11097 | } | |
11098 | ||
11099 | ||
11100 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11101 | PyObject *resultobj; | |
11102 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11103 | int arg2 ; | |
11104 | PyObject * obj0 = 0 ; | |
11105 | PyObject * obj1 = 0 ; | |
11106 | char *kwnames[] = { | |
11107 | (char *) "self",(char *) "change", NULL | |
11108 | }; | |
11109 | ||
11110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11113 | arg2 = (int) SWIG_AsInt(obj1); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | { | |
11116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11117 | (arg1)->SetButtonChange(arg2); | |
11118 | ||
11119 | wxPyEndAllowThreads(__tstate); | |
11120 | if (PyErr_Occurred()) SWIG_fail; | |
11121 | } | |
11122 | Py_INCREF(Py_None); resultobj = Py_None; | |
11123 | return resultobj; | |
11124 | fail: | |
11125 | return NULL; | |
11126 | } | |
11127 | ||
11128 | ||
11129 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11130 | PyObject *resultobj; | |
11131 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11132 | wxPoint *arg2 = 0 ; | |
11133 | wxPoint temp2 ; | |
11134 | PyObject * obj0 = 0 ; | |
11135 | PyObject * obj1 = 0 ; | |
11136 | char *kwnames[] = { | |
11137 | (char *) "self",(char *) "pos", NULL | |
11138 | }; | |
11139 | ||
11140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11143 | { | |
11144 | arg2 = &temp2; | |
11145 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11146 | } | |
11147 | { | |
11148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11149 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11150 | ||
11151 | wxPyEndAllowThreads(__tstate); | |
11152 | if (PyErr_Occurred()) SWIG_fail; | |
11153 | } | |
11154 | Py_INCREF(Py_None); resultobj = Py_None; | |
11155 | return resultobj; | |
11156 | fail: | |
11157 | return NULL; | |
11158 | } | |
11159 | ||
11160 | ||
11161 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11162 | PyObject *resultobj; | |
11163 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11164 | int arg2 ; | |
11165 | PyObject * obj0 = 0 ; | |
11166 | PyObject * obj1 = 0 ; | |
11167 | char *kwnames[] = { | |
11168 | (char *) "self",(char *) "zPos", NULL | |
11169 | }; | |
11170 | ||
11171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11174 | arg2 = (int) SWIG_AsInt(obj1); | |
11175 | if (PyErr_Occurred()) SWIG_fail; | |
11176 | { | |
11177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11178 | (arg1)->SetZPosition(arg2); | |
11179 | ||
11180 | wxPyEndAllowThreads(__tstate); | |
11181 | if (PyErr_Occurred()) SWIG_fail; | |
11182 | } | |
11183 | Py_INCREF(Py_None); resultobj = Py_None; | |
11184 | return resultobj; | |
11185 | fail: | |
11186 | return NULL; | |
11187 | } | |
11188 | ||
11189 | ||
11190 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11191 | PyObject *resultobj; | |
11192 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11193 | bool result; | |
11194 | PyObject * obj0 = 0 ; | |
11195 | char *kwnames[] = { | |
11196 | (char *) "self", NULL | |
11197 | }; | |
11198 | ||
11199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11202 | { | |
11203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11204 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11205 | ||
11206 | wxPyEndAllowThreads(__tstate); | |
11207 | if (PyErr_Occurred()) SWIG_fail; | |
11208 | } | |
11209 | { | |
11210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11211 | } | |
11212 | return resultobj; | |
11213 | fail: | |
11214 | return NULL; | |
11215 | } | |
11216 | ||
11217 | ||
11218 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11219 | PyObject *resultobj; | |
11220 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11221 | bool result; | |
11222 | PyObject * obj0 = 0 ; | |
11223 | char *kwnames[] = { | |
11224 | (char *) "self", NULL | |
11225 | }; | |
11226 | ||
11227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11230 | { | |
11231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11232 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11233 | ||
11234 | wxPyEndAllowThreads(__tstate); | |
11235 | if (PyErr_Occurred()) SWIG_fail; | |
11236 | } | |
11237 | { | |
11238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11239 | } | |
11240 | return resultobj; | |
11241 | fail: | |
11242 | return NULL; | |
11243 | } | |
11244 | ||
11245 | ||
11246 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11247 | PyObject *resultobj; | |
11248 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11249 | bool result; | |
11250 | PyObject * obj0 = 0 ; | |
11251 | char *kwnames[] = { | |
11252 | (char *) "self", NULL | |
11253 | }; | |
11254 | ||
11255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11261 | ||
11262 | wxPyEndAllowThreads(__tstate); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
11264 | } | |
11265 | { | |
11266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11267 | } | |
11268 | return resultobj; | |
11269 | fail: | |
11270 | return NULL; | |
11271 | } | |
11272 | ||
11273 | ||
11274 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11275 | PyObject *resultobj; | |
11276 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11277 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11278 | bool result; | |
11279 | PyObject * obj0 = 0 ; | |
11280 | PyObject * obj1 = 0 ; | |
11281 | char *kwnames[] = { | |
11282 | (char *) "self",(char *) "but", NULL | |
11283 | }; | |
11284 | ||
11285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11288 | if (obj1) { | |
11289 | arg2 = (int) SWIG_AsInt(obj1); | |
11290 | if (PyErr_Occurred()) SWIG_fail; | |
11291 | } | |
11292 | { | |
11293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11294 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11295 | ||
11296 | wxPyEndAllowThreads(__tstate); | |
11297 | if (PyErr_Occurred()) SWIG_fail; | |
11298 | } | |
11299 | { | |
11300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11301 | } | |
11302 | return resultobj; | |
11303 | fail: | |
11304 | return NULL; | |
11305 | } | |
11306 | ||
11307 | ||
11308 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11309 | PyObject *resultobj; | |
11310 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11311 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11312 | bool result; | |
11313 | PyObject * obj0 = 0 ; | |
11314 | PyObject * obj1 = 0 ; | |
11315 | char *kwnames[] = { | |
11316 | (char *) "self",(char *) "but", NULL | |
11317 | }; | |
11318 | ||
11319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11322 | if (obj1) { | |
11323 | arg2 = (int) SWIG_AsInt(obj1); | |
11324 | if (PyErr_Occurred()) SWIG_fail; | |
11325 | } | |
11326 | { | |
11327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11328 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11329 | ||
11330 | wxPyEndAllowThreads(__tstate); | |
11331 | if (PyErr_Occurred()) SWIG_fail; | |
11332 | } | |
11333 | { | |
11334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11335 | } | |
11336 | return resultobj; | |
11337 | fail: | |
11338 | return NULL; | |
11339 | } | |
11340 | ||
11341 | ||
11342 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11343 | PyObject *resultobj; | |
11344 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11345 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11346 | bool result; | |
11347 | PyObject * obj0 = 0 ; | |
11348 | PyObject * obj1 = 0 ; | |
11349 | char *kwnames[] = { | |
11350 | (char *) "self",(char *) "but", NULL | |
11351 | }; | |
11352 | ||
11353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11356 | if (obj1) { | |
11357 | arg2 = (int) SWIG_AsInt(obj1); | |
11358 | if (PyErr_Occurred()) SWIG_fail; | |
11359 | } | |
11360 | { | |
11361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11362 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11363 | ||
11364 | wxPyEndAllowThreads(__tstate); | |
11365 | if (PyErr_Occurred()) SWIG_fail; | |
11366 | } | |
11367 | { | |
11368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11369 | } | |
11370 | return resultobj; | |
11371 | fail: | |
11372 | return NULL; | |
11373 | } | |
11374 | ||
11375 | ||
11376 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11377 | PyObject *obj; | |
11378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11379 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11380 | Py_INCREF(obj); | |
11381 | return Py_BuildValue((char *)""); | |
11382 | } | |
11383 | static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) { | |
11384 | PyObject *resultobj; | |
11385 | wxSound *result; | |
11386 | ||
11387 | if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail; | |
11388 | { | |
11389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11390 | result = (wxSound *)new wxSound(); | |
11391 | ||
11392 | wxPyEndAllowThreads(__tstate); | |
11393 | if (PyErr_Occurred()) SWIG_fail; | |
11394 | } | |
11395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11396 | return resultobj; | |
11397 | fail: | |
11398 | return NULL; | |
11399 | } | |
11400 | ||
11401 | ||
11402 | static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) { | |
11403 | PyObject *resultobj; | |
11404 | wxString *arg1 = 0 ; | |
11405 | bool arg2 = (bool) false ; | |
11406 | wxSound *result; | |
11407 | bool temp1 = False ; | |
11408 | PyObject * obj0 = 0 ; | |
11409 | PyObject * obj1 = 0 ; | |
11410 | ||
11411 | if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail; | |
11412 | { | |
11413 | arg1 = wxString_in_helper(obj0); | |
11414 | if (arg1 == NULL) SWIG_fail; | |
11415 | temp1 = True; | |
11416 | } | |
11417 | if (obj1) { | |
11418 | arg2 = (bool) SWIG_AsBool(obj1); | |
11419 | if (PyErr_Occurred()) SWIG_fail; | |
11420 | } | |
11421 | { | |
11422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11423 | result = (wxSound *)new wxSound((wxString const &)*arg1,arg2); | |
11424 | ||
11425 | wxPyEndAllowThreads(__tstate); | |
11426 | if (PyErr_Occurred()) SWIG_fail; | |
11427 | } | |
11428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11429 | { | |
11430 | if (temp1) | |
11431 | delete arg1; | |
11432 | } | |
11433 | return resultobj; | |
11434 | fail: | |
11435 | { | |
11436 | if (temp1) | |
11437 | delete arg1; | |
11438 | } | |
11439 | return NULL; | |
11440 | } | |
11441 | ||
11442 | ||
11443 | static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) { | |
11444 | PyObject *resultobj; | |
11445 | int arg1 ; | |
11446 | wxByte *arg2 = (wxByte *) 0 ; | |
11447 | wxSound *result; | |
11448 | PyObject * obj0 = 0 ; | |
11449 | PyObject * obj1 = 0 ; | |
11450 | ||
11451 | if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail; | |
11452 | arg1 = (int) SWIG_AsInt(obj0); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte, | |
11455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11456 | { | |
11457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11458 | result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2); | |
11459 | ||
11460 | wxPyEndAllowThreads(__tstate); | |
11461 | if (PyErr_Occurred()) SWIG_fail; | |
11462 | } | |
11463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11464 | return resultobj; | |
11465 | fail: | |
11466 | return NULL; | |
11467 | } | |
11468 | ||
11469 | ||
11470 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) { | |
11471 | int argc; | |
11472 | PyObject *argv[3]; | |
11473 | int ii; | |
11474 | ||
11475 | argc = PyObject_Length(args); | |
11476 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
11477 | argv[ii] = PyTuple_GetItem(args,ii); | |
11478 | } | |
11479 | if (argc == 0) { | |
11480 | return _wrap_new_Sound__SWIG_0(self,args); | |
11481 | } | |
11482 | if ((argc >= 1) && (argc <= 2)) { | |
11483 | int _v; | |
11484 | { | |
11485 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
11486 | } | |
11487 | if (_v) { | |
11488 | if (argc <= 1) { | |
11489 | return _wrap_new_Sound__SWIG_1(self,args); | |
11490 | } | |
11491 | _v = SWIG_CheckBool(argv[1]); | |
11492 | if (_v) { | |
11493 | return _wrap_new_Sound__SWIG_1(self,args); | |
11494 | } | |
11495 | } | |
11496 | } | |
11497 | if (argc == 2) { | |
11498 | int _v; | |
11499 | _v = SWIG_CheckInt(argv[0]); | |
11500 | if (_v) { | |
11501 | { | |
11502 | void *ptr; | |
11503 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { | |
11504 | _v = 0; | |
11505 | PyErr_Clear(); | |
11506 | } else { | |
11507 | _v = 1; | |
11508 | } | |
11509 | } | |
11510 | if (_v) { | |
11511 | return _wrap_new_Sound__SWIG_2(self,args); | |
11512 | } | |
11513 | } | |
11514 | } | |
11515 | ||
11516 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'"); | |
11517 | return NULL; | |
11518 | } | |
11519 | ||
11520 | ||
11521 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11522 | PyObject *resultobj; | |
11523 | wxSound *arg1 = (wxSound *) 0 ; | |
11524 | PyObject * obj0 = 0 ; | |
11525 | char *kwnames[] = { | |
11526 | (char *) "self", NULL | |
11527 | }; | |
11528 | ||
11529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
11530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11532 | { | |
11533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11534 | delete arg1; | |
11535 | ||
11536 | wxPyEndAllowThreads(__tstate); | |
11537 | if (PyErr_Occurred()) SWIG_fail; | |
11538 | } | |
11539 | Py_INCREF(Py_None); resultobj = Py_None; | |
11540 | return resultobj; | |
11541 | fail: | |
11542 | return NULL; | |
11543 | } | |
11544 | ||
11545 | ||
11546 | static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) { | |
11547 | PyObject *resultobj; | |
11548 | wxSound *arg1 = (wxSound *) 0 ; | |
11549 | wxString *arg2 = 0 ; | |
11550 | bool arg3 = (bool) false ; | |
11551 | bool result; | |
11552 | bool temp2 = False ; | |
11553 | PyObject * obj0 = 0 ; | |
11554 | PyObject * obj1 = 0 ; | |
11555 | PyObject * obj2 = 0 ; | |
11556 | ||
11557 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail; | |
11558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11560 | { | |
11561 | arg2 = wxString_in_helper(obj1); | |
11562 | if (arg2 == NULL) SWIG_fail; | |
11563 | temp2 = True; | |
11564 | } | |
11565 | if (obj2) { | |
11566 | arg3 = (bool) SWIG_AsBool(obj2); | |
11567 | if (PyErr_Occurred()) SWIG_fail; | |
11568 | } | |
11569 | { | |
11570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11571 | result = (bool)(arg1)->Create((wxString const &)*arg2,arg3); | |
11572 | ||
11573 | wxPyEndAllowThreads(__tstate); | |
11574 | if (PyErr_Occurred()) SWIG_fail; | |
11575 | } | |
11576 | { | |
11577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11578 | } | |
11579 | { | |
11580 | if (temp2) | |
11581 | delete arg2; | |
11582 | } | |
11583 | return resultobj; | |
11584 | fail: | |
11585 | { | |
11586 | if (temp2) | |
11587 | delete arg2; | |
11588 | } | |
11589 | return NULL; | |
11590 | } | |
11591 | ||
11592 | ||
11593 | static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) { | |
11594 | PyObject *resultobj; | |
11595 | wxSound *arg1 = (wxSound *) 0 ; | |
11596 | int arg2 ; | |
11597 | wxByte *arg3 = (wxByte *) 0 ; | |
11598 | bool result; | |
11599 | PyObject * obj0 = 0 ; | |
11600 | PyObject * obj1 = 0 ; | |
11601 | PyObject * obj2 = 0 ; | |
11602 | ||
11603 | if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail; | |
11604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11606 | arg2 = (int) SWIG_AsInt(obj1); | |
11607 | if (PyErr_Occurred()) SWIG_fail; | |
11608 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte, | |
11609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11610 | { | |
11611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11612 | result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3); | |
11613 | ||
11614 | wxPyEndAllowThreads(__tstate); | |
11615 | if (PyErr_Occurred()) SWIG_fail; | |
11616 | } | |
11617 | { | |
11618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11619 | } | |
11620 | return resultobj; | |
11621 | fail: | |
11622 | return NULL; | |
11623 | } | |
11624 | ||
11625 | ||
11626 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) { | |
11627 | int argc; | |
11628 | PyObject *argv[4]; | |
11629 | int ii; | |
11630 | ||
11631 | argc = PyObject_Length(args); | |
11632 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
11633 | argv[ii] = PyTuple_GetItem(args,ii); | |
11634 | } | |
11635 | if ((argc >= 2) && (argc <= 3)) { | |
11636 | int _v; | |
11637 | { | |
11638 | void *ptr; | |
11639 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { | |
11640 | _v = 0; | |
11641 | PyErr_Clear(); | |
11642 | } else { | |
11643 | _v = 1; | |
11644 | } | |
11645 | } | |
11646 | if (_v) { | |
11647 | { | |
11648 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
11649 | } | |
11650 | if (_v) { | |
11651 | if (argc <= 2) { | |
11652 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11653 | } | |
11654 | _v = SWIG_CheckBool(argv[2]); | |
11655 | if (_v) { | |
11656 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11657 | } | |
11658 | } | |
11659 | } | |
11660 | } | |
11661 | if (argc == 3) { | |
11662 | int _v; | |
11663 | { | |
11664 | void *ptr; | |
11665 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { | |
11666 | _v = 0; | |
11667 | PyErr_Clear(); | |
11668 | } else { | |
11669 | _v = 1; | |
11670 | } | |
11671 | } | |
11672 | if (_v) { | |
11673 | _v = SWIG_CheckInt(argv[1]); | |
11674 | if (_v) { | |
11675 | { | |
11676 | void *ptr; | |
11677 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { | |
11678 | _v = 0; | |
11679 | PyErr_Clear(); | |
11680 | } else { | |
11681 | _v = 1; | |
11682 | } | |
11683 | } | |
11684 | if (_v) { | |
11685 | return _wrap_Sound_Create__SWIG_1(self,args); | |
11686 | } | |
11687 | } | |
11688 | } | |
11689 | } | |
11690 | ||
11691 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'"); | |
11692 | return NULL; | |
11693 | } | |
11694 | ||
11695 | ||
11696 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11697 | PyObject *resultobj; | |
11698 | wxSound *arg1 = (wxSound *) 0 ; | |
11699 | bool result; | |
11700 | PyObject * obj0 = 0 ; | |
11701 | char *kwnames[] = { | |
11702 | (char *) "self", NULL | |
11703 | }; | |
11704 | ||
11705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
11706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11708 | { | |
11709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11710 | result = (bool)(arg1)->IsOk(); | |
11711 | ||
11712 | wxPyEndAllowThreads(__tstate); | |
11713 | if (PyErr_Occurred()) SWIG_fail; | |
11714 | } | |
11715 | { | |
11716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11717 | } | |
11718 | return resultobj; | |
11719 | fail: | |
11720 | return NULL; | |
11721 | } | |
11722 | ||
11723 | ||
11724 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) { | |
11725 | PyObject *resultobj; | |
11726 | wxSound *arg1 = (wxSound *) 0 ; | |
11727 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11728 | bool result; | |
11729 | PyObject * obj0 = 0 ; | |
11730 | PyObject * obj1 = 0 ; | |
11731 | ||
11732 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail; | |
11733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11735 | if (obj1) { | |
11736 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11737 | if (PyErr_Occurred()) SWIG_fail; | |
11738 | } | |
11739 | { | |
11740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11741 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11742 | ||
11743 | wxPyEndAllowThreads(__tstate); | |
11744 | if (PyErr_Occurred()) SWIG_fail; | |
11745 | } | |
11746 | { | |
11747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11748 | } | |
11749 | return resultobj; | |
11750 | fail: | |
11751 | return NULL; | |
11752 | } | |
11753 | ||
11754 | ||
11755 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) { | |
11756 | PyObject *resultobj; | |
11757 | wxString *arg1 = 0 ; | |
11758 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11759 | bool result; | |
11760 | bool temp1 = False ; | |
11761 | PyObject * obj0 = 0 ; | |
11762 | PyObject * obj1 = 0 ; | |
11763 | ||
11764 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail; | |
11765 | { | |
11766 | arg1 = wxString_in_helper(obj0); | |
11767 | if (arg1 == NULL) SWIG_fail; | |
11768 | temp1 = True; | |
11769 | } | |
11770 | if (obj1) { | |
11771 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11772 | if (PyErr_Occurred()) SWIG_fail; | |
11773 | } | |
11774 | { | |
11775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11776 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
11777 | ||
11778 | wxPyEndAllowThreads(__tstate); | |
11779 | if (PyErr_Occurred()) SWIG_fail; | |
11780 | } | |
11781 | { | |
11782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11783 | } | |
11784 | { | |
11785 | if (temp1) | |
11786 | delete arg1; | |
11787 | } | |
11788 | return resultobj; | |
11789 | fail: | |
11790 | { | |
11791 | if (temp1) | |
11792 | delete arg1; | |
11793 | } | |
11794 | return NULL; | |
11795 | } | |
11796 | ||
11797 | ||
11798 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11799 | PyObject *resultobj; | |
11800 | char *kwnames[] = { | |
11801 | NULL | |
11802 | }; | |
11803 | ||
11804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11805 | { | |
11806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11807 | wxSound::Stop(); | |
11808 | ||
11809 | wxPyEndAllowThreads(__tstate); | |
11810 | if (PyErr_Occurred()) SWIG_fail; | |
11811 | } | |
11812 | Py_INCREF(Py_None); resultobj = Py_None; | |
11813 | return resultobj; | |
11814 | fail: | |
11815 | return NULL; | |
11816 | } | |
11817 | ||
11818 | ||
11819 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
11820 | PyObject *obj; | |
11821 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11822 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
11823 | Py_INCREF(obj); | |
11824 | return Py_BuildValue((char *)""); | |
11825 | } | |
11826 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11827 | PyObject *resultobj; | |
11828 | wxString *arg1 = 0 ; | |
11829 | wxString *arg2 = 0 ; | |
11830 | wxString *arg3 = 0 ; | |
11831 | wxString *arg4 = 0 ; | |
11832 | wxFileTypeInfo *result; | |
11833 | bool temp1 = False ; | |
11834 | bool temp2 = False ; | |
11835 | bool temp3 = False ; | |
11836 | bool temp4 = False ; | |
11837 | PyObject * obj0 = 0 ; | |
11838 | PyObject * obj1 = 0 ; | |
11839 | PyObject * obj2 = 0 ; | |
11840 | PyObject * obj3 = 0 ; | |
11841 | char *kwnames[] = { | |
11842 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11843 | }; | |
11844 | ||
11845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11846 | { | |
11847 | arg1 = wxString_in_helper(obj0); | |
11848 | if (arg1 == NULL) SWIG_fail; | |
11849 | temp1 = True; | |
11850 | } | |
11851 | { | |
11852 | arg2 = wxString_in_helper(obj1); | |
11853 | if (arg2 == NULL) SWIG_fail; | |
11854 | temp2 = True; | |
11855 | } | |
11856 | { | |
11857 | arg3 = wxString_in_helper(obj2); | |
11858 | if (arg3 == NULL) SWIG_fail; | |
11859 | temp3 = True; | |
11860 | } | |
11861 | { | |
11862 | arg4 = wxString_in_helper(obj3); | |
11863 | if (arg4 == NULL) SWIG_fail; | |
11864 | temp4 = True; | |
11865 | } | |
11866 | { | |
11867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11868 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11869 | ||
11870 | wxPyEndAllowThreads(__tstate); | |
11871 | if (PyErr_Occurred()) SWIG_fail; | |
11872 | } | |
11873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11874 | { | |
11875 | if (temp1) | |
11876 | delete arg1; | |
11877 | } | |
11878 | { | |
11879 | if (temp2) | |
11880 | delete arg2; | |
11881 | } | |
11882 | { | |
11883 | if (temp3) | |
11884 | delete arg3; | |
11885 | } | |
11886 | { | |
11887 | if (temp4) | |
11888 | delete arg4; | |
11889 | } | |
11890 | return resultobj; | |
11891 | fail: | |
11892 | { | |
11893 | if (temp1) | |
11894 | delete arg1; | |
11895 | } | |
11896 | { | |
11897 | if (temp2) | |
11898 | delete arg2; | |
11899 | } | |
11900 | { | |
11901 | if (temp3) | |
11902 | delete arg3; | |
11903 | } | |
11904 | { | |
11905 | if (temp4) | |
11906 | delete arg4; | |
11907 | } | |
11908 | return NULL; | |
11909 | } | |
11910 | ||
11911 | ||
11912 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11913 | PyObject *resultobj; | |
11914 | wxArrayString *arg1 = 0 ; | |
11915 | wxFileTypeInfo *result; | |
11916 | bool temp1 = False ; | |
11917 | PyObject * obj0 = 0 ; | |
11918 | char *kwnames[] = { | |
11919 | (char *) "sArray", NULL | |
11920 | }; | |
11921 | ||
11922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11923 | { | |
11924 | if (! PySequence_Check(obj0)) { | |
11925 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11926 | SWIG_fail; | |
11927 | } | |
11928 | arg1 = new wxArrayString; | |
11929 | temp1 = True; | |
11930 | int i, len=PySequence_Length(obj0); | |
11931 | for (i=0; i<len; i++) { | |
11932 | PyObject* item = PySequence_GetItem(obj0, i); | |
11933 | #if wxUSE_UNICODE | |
11934 | PyObject* str = PyObject_Unicode(item); | |
11935 | #else | |
11936 | PyObject* str = PyObject_Str(item); | |
11937 | #endif | |
11938 | if (PyErr_Occurred()) SWIG_fail; | |
11939 | arg1->Add(Py2wxString(str)); | |
11940 | Py_DECREF(item); | |
11941 | Py_DECREF(str); | |
11942 | } | |
11943 | } | |
11944 | { | |
11945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11946 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11947 | ||
11948 | wxPyEndAllowThreads(__tstate); | |
11949 | if (PyErr_Occurred()) SWIG_fail; | |
11950 | } | |
11951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11952 | { | |
11953 | if (temp1) delete arg1; | |
11954 | } | |
11955 | return resultobj; | |
11956 | fail: | |
11957 | { | |
11958 | if (temp1) delete arg1; | |
11959 | } | |
11960 | return NULL; | |
11961 | } | |
11962 | ||
11963 | ||
11964 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11965 | PyObject *resultobj; | |
11966 | wxFileTypeInfo *result; | |
11967 | char *kwnames[] = { | |
11968 | NULL | |
11969 | }; | |
11970 | ||
11971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11972 | { | |
11973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11974 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11975 | ||
11976 | wxPyEndAllowThreads(__tstate); | |
11977 | if (PyErr_Occurred()) SWIG_fail; | |
11978 | } | |
11979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11980 | return resultobj; | |
11981 | fail: | |
11982 | return NULL; | |
11983 | } | |
11984 | ||
11985 | ||
11986 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11987 | PyObject *resultobj; | |
11988 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11989 | bool result; | |
11990 | PyObject * obj0 = 0 ; | |
11991 | char *kwnames[] = { | |
11992 | (char *) "self", NULL | |
11993 | }; | |
11994 | ||
11995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
11996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
11997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11998 | { | |
11999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12000 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12001 | ||
12002 | wxPyEndAllowThreads(__tstate); | |
12003 | if (PyErr_Occurred()) SWIG_fail; | |
12004 | } | |
12005 | { | |
12006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12007 | } | |
12008 | return resultobj; | |
12009 | fail: | |
12010 | return NULL; | |
12011 | } | |
12012 | ||
12013 | ||
12014 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12015 | PyObject *resultobj; | |
12016 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12017 | wxString *arg2 = 0 ; | |
12018 | int arg3 = (int) 0 ; | |
12019 | bool temp2 = False ; | |
12020 | PyObject * obj0 = 0 ; | |
12021 | PyObject * obj1 = 0 ; | |
12022 | PyObject * obj2 = 0 ; | |
12023 | char *kwnames[] = { | |
12024 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12025 | }; | |
12026 | ||
12027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12030 | { | |
12031 | arg2 = wxString_in_helper(obj1); | |
12032 | if (arg2 == NULL) SWIG_fail; | |
12033 | temp2 = True; | |
12034 | } | |
12035 | if (obj2) { | |
12036 | arg3 = (int) SWIG_AsInt(obj2); | |
12037 | if (PyErr_Occurred()) SWIG_fail; | |
12038 | } | |
12039 | { | |
12040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12041 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12042 | ||
12043 | wxPyEndAllowThreads(__tstate); | |
12044 | if (PyErr_Occurred()) SWIG_fail; | |
12045 | } | |
12046 | Py_INCREF(Py_None); resultobj = Py_None; | |
12047 | { | |
12048 | if (temp2) | |
12049 | delete arg2; | |
12050 | } | |
12051 | return resultobj; | |
12052 | fail: | |
12053 | { | |
12054 | if (temp2) | |
12055 | delete arg2; | |
12056 | } | |
12057 | return NULL; | |
12058 | } | |
12059 | ||
12060 | ||
12061 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12062 | PyObject *resultobj; | |
12063 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12064 | wxString *arg2 = 0 ; | |
12065 | bool temp2 = False ; | |
12066 | PyObject * obj0 = 0 ; | |
12067 | PyObject * obj1 = 0 ; | |
12068 | char *kwnames[] = { | |
12069 | (char *) "self",(char *) "shortDesc", NULL | |
12070 | }; | |
12071 | ||
12072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12075 | { | |
12076 | arg2 = wxString_in_helper(obj1); | |
12077 | if (arg2 == NULL) SWIG_fail; | |
12078 | temp2 = True; | |
12079 | } | |
12080 | { | |
12081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12082 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12083 | ||
12084 | wxPyEndAllowThreads(__tstate); | |
12085 | if (PyErr_Occurred()) SWIG_fail; | |
12086 | } | |
12087 | Py_INCREF(Py_None); resultobj = Py_None; | |
12088 | { | |
12089 | if (temp2) | |
12090 | delete arg2; | |
12091 | } | |
12092 | return resultobj; | |
12093 | fail: | |
12094 | { | |
12095 | if (temp2) | |
12096 | delete arg2; | |
12097 | } | |
12098 | return NULL; | |
12099 | } | |
12100 | ||
12101 | ||
12102 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12103 | PyObject *resultobj; | |
12104 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12105 | wxString *result; | |
12106 | PyObject * obj0 = 0 ; | |
12107 | char *kwnames[] = { | |
12108 | (char *) "self", NULL | |
12109 | }; | |
12110 | ||
12111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12114 | { | |
12115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12116 | { | |
12117 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12118 | result = (wxString *) &_result_ref; | |
12119 | } | |
12120 | ||
12121 | wxPyEndAllowThreads(__tstate); | |
12122 | if (PyErr_Occurred()) SWIG_fail; | |
12123 | } | |
12124 | { | |
12125 | #if wxUSE_UNICODE | |
12126 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12127 | #else | |
12128 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12129 | #endif | |
12130 | } | |
12131 | return resultobj; | |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12138 | PyObject *resultobj; | |
12139 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12140 | wxString *result; | |
12141 | PyObject * obj0 = 0 ; | |
12142 | char *kwnames[] = { | |
12143 | (char *) "self", NULL | |
12144 | }; | |
12145 | ||
12146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12149 | { | |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | { | |
12152 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12153 | result = (wxString *) &_result_ref; | |
12154 | } | |
12155 | ||
12156 | wxPyEndAllowThreads(__tstate); | |
12157 | if (PyErr_Occurred()) SWIG_fail; | |
12158 | } | |
12159 | { | |
12160 | #if wxUSE_UNICODE | |
12161 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12162 | #else | |
12163 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12164 | #endif | |
12165 | } | |
12166 | return resultobj; | |
12167 | fail: | |
12168 | return NULL; | |
12169 | } | |
12170 | ||
12171 | ||
12172 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12173 | PyObject *resultobj; | |
12174 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12175 | wxString *result; | |
12176 | PyObject * obj0 = 0 ; | |
12177 | char *kwnames[] = { | |
12178 | (char *) "self", NULL | |
12179 | }; | |
12180 | ||
12181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
12182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12184 | { | |
12185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12186 | { | |
12187 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12188 | result = (wxString *) &_result_ref; | |
12189 | } | |
12190 | ||
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
12194 | { | |
12195 | #if wxUSE_UNICODE | |
12196 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12197 | #else | |
12198 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12199 | #endif | |
12200 | } | |
12201 | return resultobj; | |
12202 | fail: | |
12203 | return NULL; | |
12204 | } | |
12205 | ||
12206 | ||
12207 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12208 | PyObject *resultobj; | |
12209 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12210 | wxString *result; | |
12211 | PyObject * obj0 = 0 ; | |
12212 | char *kwnames[] = { | |
12213 | (char *) "self", NULL | |
12214 | }; | |
12215 | ||
12216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12219 | { | |
12220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12221 | { | |
12222 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12223 | result = (wxString *) &_result_ref; | |
12224 | } | |
12225 | ||
12226 | wxPyEndAllowThreads(__tstate); | |
12227 | if (PyErr_Occurred()) SWIG_fail; | |
12228 | } | |
12229 | { | |
12230 | #if wxUSE_UNICODE | |
12231 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12232 | #else | |
12233 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12234 | #endif | |
12235 | } | |
12236 | return resultobj; | |
12237 | fail: | |
12238 | return NULL; | |
12239 | } | |
12240 | ||
12241 | ||
12242 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12243 | PyObject *resultobj; | |
12244 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12245 | wxString *result; | |
12246 | PyObject * obj0 = 0 ; | |
12247 | char *kwnames[] = { | |
12248 | (char *) "self", NULL | |
12249 | }; | |
12250 | ||
12251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12254 | { | |
12255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12256 | { | |
12257 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12258 | result = (wxString *) &_result_ref; | |
12259 | } | |
12260 | ||
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | { | |
12265 | #if wxUSE_UNICODE | |
12266 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12267 | #else | |
12268 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12269 | #endif | |
12270 | } | |
12271 | return resultobj; | |
12272 | fail: | |
12273 | return NULL; | |
12274 | } | |
12275 | ||
12276 | ||
12277 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12278 | PyObject *resultobj; | |
12279 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12280 | wxArrayString *result; | |
12281 | PyObject * obj0 = 0 ; | |
12282 | char *kwnames[] = { | |
12283 | (char *) "self", NULL | |
12284 | }; | |
12285 | ||
12286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12289 | { | |
12290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12291 | { | |
12292 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12293 | result = (wxArrayString *) &_result_ref; | |
12294 | } | |
12295 | ||
12296 | wxPyEndAllowThreads(__tstate); | |
12297 | if (PyErr_Occurred()) SWIG_fail; | |
12298 | } | |
12299 | { | |
12300 | resultobj = wxArrayString2PyList_helper(*result); | |
12301 | } | |
12302 | return resultobj; | |
12303 | fail: | |
12304 | return NULL; | |
12305 | } | |
12306 | ||
12307 | ||
12308 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12309 | PyObject *resultobj; | |
12310 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12311 | int result; | |
12312 | PyObject * obj0 = 0 ; | |
12313 | char *kwnames[] = { | |
12314 | (char *) "self", NULL | |
12315 | }; | |
12316 | ||
12317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12320 | { | |
12321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12322 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12323 | ||
12324 | wxPyEndAllowThreads(__tstate); | |
12325 | if (PyErr_Occurred()) SWIG_fail; | |
12326 | } | |
12327 | resultobj = SWIG_FromInt((int)result); | |
12328 | return resultobj; | |
12329 | fail: | |
12330 | return NULL; | |
12331 | } | |
12332 | ||
12333 | ||
12334 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12335 | PyObject *resultobj; | |
12336 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12337 | wxString *result; | |
12338 | PyObject * obj0 = 0 ; | |
12339 | char *kwnames[] = { | |
12340 | (char *) "self", NULL | |
12341 | }; | |
12342 | ||
12343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12346 | { | |
12347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12348 | { | |
12349 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12350 | result = (wxString *) &_result_ref; | |
12351 | } | |
12352 | ||
12353 | wxPyEndAllowThreads(__tstate); | |
12354 | if (PyErr_Occurred()) SWIG_fail; | |
12355 | } | |
12356 | { | |
12357 | #if wxUSE_UNICODE | |
12358 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12359 | #else | |
12360 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12361 | #endif | |
12362 | } | |
12363 | return resultobj; | |
12364 | fail: | |
12365 | return NULL; | |
12366 | } | |
12367 | ||
12368 | ||
12369 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12370 | PyObject *resultobj; | |
12371 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12372 | int result; | |
12373 | PyObject * obj0 = 0 ; | |
12374 | char *kwnames[] = { | |
12375 | (char *) "self", NULL | |
12376 | }; | |
12377 | ||
12378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12381 | { | |
12382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12383 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12384 | ||
12385 | wxPyEndAllowThreads(__tstate); | |
12386 | if (PyErr_Occurred()) SWIG_fail; | |
12387 | } | |
12388 | resultobj = SWIG_FromInt((int)result); | |
12389 | return resultobj; | |
12390 | fail: | |
12391 | return NULL; | |
12392 | } | |
12393 | ||
12394 | ||
12395 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12396 | PyObject *obj; | |
12397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12398 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12399 | Py_INCREF(obj); | |
12400 | return Py_BuildValue((char *)""); | |
12401 | } | |
12402 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12403 | PyObject *resultobj; | |
12404 | wxFileTypeInfo *arg1 = 0 ; | |
12405 | wxFileType *result; | |
12406 | PyObject * obj0 = 0 ; | |
12407 | char *kwnames[] = { | |
12408 | (char *) "ftInfo", NULL | |
12409 | }; | |
12410 | ||
12411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12413 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12414 | SWIG_fail; | |
12415 | if (arg1 == NULL) { | |
12416 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12417 | SWIG_fail; | |
12418 | } | |
12419 | { | |
12420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12421 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12422 | ||
12423 | wxPyEndAllowThreads(__tstate); | |
12424 | if (PyErr_Occurred()) SWIG_fail; | |
12425 | } | |
12426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12427 | return resultobj; | |
12428 | fail: | |
12429 | return NULL; | |
12430 | } | |
12431 | ||
12432 | ||
12433 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12434 | PyObject *resultobj; | |
12435 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12436 | PyObject * obj0 = 0 ; | |
12437 | char *kwnames[] = { | |
12438 | (char *) "self", NULL | |
12439 | }; | |
12440 | ||
12441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12444 | { | |
12445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12446 | delete arg1; | |
12447 | ||
12448 | wxPyEndAllowThreads(__tstate); | |
12449 | if (PyErr_Occurred()) SWIG_fail; | |
12450 | } | |
12451 | Py_INCREF(Py_None); resultobj = Py_None; | |
12452 | return resultobj; | |
12453 | fail: | |
12454 | return NULL; | |
12455 | } | |
12456 | ||
12457 | ||
12458 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12459 | PyObject *resultobj; | |
12460 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12461 | PyObject *result; | |
12462 | PyObject * obj0 = 0 ; | |
12463 | char *kwnames[] = { | |
12464 | (char *) "self", NULL | |
12465 | }; | |
12466 | ||
12467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12470 | { | |
12471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12472 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12473 | ||
12474 | wxPyEndAllowThreads(__tstate); | |
12475 | if (PyErr_Occurred()) SWIG_fail; | |
12476 | } | |
12477 | resultobj = result; | |
12478 | return resultobj; | |
12479 | fail: | |
12480 | return NULL; | |
12481 | } | |
12482 | ||
12483 | ||
12484 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12485 | PyObject *resultobj; | |
12486 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12487 | PyObject *result; | |
12488 | PyObject * obj0 = 0 ; | |
12489 | char *kwnames[] = { | |
12490 | (char *) "self", NULL | |
12491 | }; | |
12492 | ||
12493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12496 | { | |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12499 | ||
12500 | wxPyEndAllowThreads(__tstate); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
12503 | resultobj = result; | |
12504 | return resultobj; | |
12505 | fail: | |
12506 | return NULL; | |
12507 | } | |
12508 | ||
12509 | ||
12510 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12511 | PyObject *resultobj; | |
12512 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12513 | PyObject *result; | |
12514 | PyObject * obj0 = 0 ; | |
12515 | char *kwnames[] = { | |
12516 | (char *) "self", NULL | |
12517 | }; | |
12518 | ||
12519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12522 | { | |
12523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12524 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12525 | ||
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
12529 | resultobj = result; | |
12530 | return resultobj; | |
12531 | fail: | |
12532 | return NULL; | |
12533 | } | |
12534 | ||
12535 | ||
12536 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12537 | PyObject *resultobj; | |
12538 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12539 | wxIcon *result; | |
12540 | PyObject * obj0 = 0 ; | |
12541 | char *kwnames[] = { | |
12542 | (char *) "self", NULL | |
12543 | }; | |
12544 | ||
12545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12548 | { | |
12549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12550 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12551 | ||
12552 | wxPyEndAllowThreads(__tstate); | |
12553 | if (PyErr_Occurred()) SWIG_fail; | |
12554 | } | |
12555 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
12556 | return resultobj; | |
12557 | fail: | |
12558 | return NULL; | |
12559 | } | |
12560 | ||
12561 | ||
12562 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12563 | PyObject *resultobj; | |
12564 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12565 | PyObject *result; | |
12566 | PyObject * obj0 = 0 ; | |
12567 | char *kwnames[] = { | |
12568 | (char *) "self", NULL | |
12569 | }; | |
12570 | ||
12571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12574 | { | |
12575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12576 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12577 | ||
12578 | wxPyEndAllowThreads(__tstate); | |
12579 | if (PyErr_Occurred()) SWIG_fail; | |
12580 | } | |
12581 | resultobj = result; | |
12582 | return resultobj; | |
12583 | fail: | |
12584 | return NULL; | |
12585 | } | |
12586 | ||
12587 | ||
12588 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12589 | PyObject *resultobj; | |
12590 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12591 | PyObject *result; | |
12592 | PyObject * obj0 = 0 ; | |
12593 | char *kwnames[] = { | |
12594 | (char *) "self", NULL | |
12595 | }; | |
12596 | ||
12597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12600 | { | |
12601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12602 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12603 | ||
12604 | wxPyEndAllowThreads(__tstate); | |
12605 | if (PyErr_Occurred()) SWIG_fail; | |
12606 | } | |
12607 | resultobj = result; | |
12608 | return resultobj; | |
12609 | fail: | |
12610 | return NULL; | |
12611 | } | |
12612 | ||
12613 | ||
12614 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12615 | PyObject *resultobj; | |
12616 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12617 | wxString *arg2 = 0 ; | |
12618 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12619 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12620 | PyObject *result; | |
12621 | bool temp2 = False ; | |
12622 | bool temp3 = False ; | |
12623 | PyObject * obj0 = 0 ; | |
12624 | PyObject * obj1 = 0 ; | |
12625 | PyObject * obj2 = 0 ; | |
12626 | char *kwnames[] = { | |
12627 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12628 | }; | |
12629 | ||
12630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12633 | { | |
12634 | arg2 = wxString_in_helper(obj1); | |
12635 | if (arg2 == NULL) SWIG_fail; | |
12636 | temp2 = True; | |
12637 | } | |
12638 | if (obj2) { | |
12639 | { | |
12640 | arg3 = wxString_in_helper(obj2); | |
12641 | if (arg3 == NULL) SWIG_fail; | |
12642 | temp3 = True; | |
12643 | } | |
12644 | } | |
12645 | { | |
12646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12647 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12648 | ||
12649 | wxPyEndAllowThreads(__tstate); | |
12650 | if (PyErr_Occurred()) SWIG_fail; | |
12651 | } | |
12652 | resultobj = result; | |
12653 | { | |
12654 | if (temp2) | |
12655 | delete arg2; | |
12656 | } | |
12657 | { | |
12658 | if (temp3) | |
12659 | delete arg3; | |
12660 | } | |
12661 | return resultobj; | |
12662 | fail: | |
12663 | { | |
12664 | if (temp2) | |
12665 | delete arg2; | |
12666 | } | |
12667 | { | |
12668 | if (temp3) | |
12669 | delete arg3; | |
12670 | } | |
12671 | return NULL; | |
12672 | } | |
12673 | ||
12674 | ||
12675 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12676 | PyObject *resultobj; | |
12677 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12678 | wxString *arg2 = 0 ; | |
12679 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12680 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12681 | PyObject *result; | |
12682 | bool temp2 = False ; | |
12683 | bool temp3 = False ; | |
12684 | PyObject * obj0 = 0 ; | |
12685 | PyObject * obj1 = 0 ; | |
12686 | PyObject * obj2 = 0 ; | |
12687 | char *kwnames[] = { | |
12688 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12689 | }; | |
12690 | ||
12691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12694 | { | |
12695 | arg2 = wxString_in_helper(obj1); | |
12696 | if (arg2 == NULL) SWIG_fail; | |
12697 | temp2 = True; | |
12698 | } | |
12699 | if (obj2) { | |
12700 | { | |
12701 | arg3 = wxString_in_helper(obj2); | |
12702 | if (arg3 == NULL) SWIG_fail; | |
12703 | temp3 = True; | |
12704 | } | |
12705 | } | |
12706 | { | |
12707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12708 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12709 | ||
12710 | wxPyEndAllowThreads(__tstate); | |
12711 | if (PyErr_Occurred()) SWIG_fail; | |
12712 | } | |
12713 | resultobj = result; | |
12714 | { | |
12715 | if (temp2) | |
12716 | delete arg2; | |
12717 | } | |
12718 | { | |
12719 | if (temp3) | |
12720 | delete arg3; | |
12721 | } | |
12722 | return resultobj; | |
12723 | fail: | |
12724 | { | |
12725 | if (temp2) | |
12726 | delete arg2; | |
12727 | } | |
12728 | { | |
12729 | if (temp3) | |
12730 | delete arg3; | |
12731 | } | |
12732 | return NULL; | |
12733 | } | |
12734 | ||
12735 | ||
12736 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12737 | PyObject *resultobj; | |
12738 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12739 | wxString *arg2 = 0 ; | |
12740 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12741 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12742 | PyObject *result; | |
12743 | bool temp2 = False ; | |
12744 | bool temp3 = False ; | |
12745 | PyObject * obj0 = 0 ; | |
12746 | PyObject * obj1 = 0 ; | |
12747 | PyObject * obj2 = 0 ; | |
12748 | char *kwnames[] = { | |
12749 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12750 | }; | |
12751 | ||
12752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12755 | { | |
12756 | arg2 = wxString_in_helper(obj1); | |
12757 | if (arg2 == NULL) SWIG_fail; | |
12758 | temp2 = True; | |
12759 | } | |
12760 | if (obj2) { | |
12761 | { | |
12762 | arg3 = wxString_in_helper(obj2); | |
12763 | if (arg3 == NULL) SWIG_fail; | |
12764 | temp3 = True; | |
12765 | } | |
12766 | } | |
12767 | { | |
12768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12769 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12770 | ||
12771 | wxPyEndAllowThreads(__tstate); | |
12772 | if (PyErr_Occurred()) SWIG_fail; | |
12773 | } | |
12774 | resultobj = result; | |
12775 | { | |
12776 | if (temp2) | |
12777 | delete arg2; | |
12778 | } | |
12779 | { | |
12780 | if (temp3) | |
12781 | delete arg3; | |
12782 | } | |
12783 | return resultobj; | |
12784 | fail: | |
12785 | { | |
12786 | if (temp2) | |
12787 | delete arg2; | |
12788 | } | |
12789 | { | |
12790 | if (temp3) | |
12791 | delete arg3; | |
12792 | } | |
12793 | return NULL; | |
12794 | } | |
12795 | ||
12796 | ||
12797 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12798 | PyObject *resultobj; | |
12799 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12800 | wxString *arg2 = 0 ; | |
12801 | wxString *arg3 = 0 ; | |
12802 | bool arg4 = (bool) True ; | |
12803 | bool result; | |
12804 | bool temp2 = False ; | |
12805 | bool temp3 = False ; | |
12806 | PyObject * obj0 = 0 ; | |
12807 | PyObject * obj1 = 0 ; | |
12808 | PyObject * obj2 = 0 ; | |
12809 | PyObject * obj3 = 0 ; | |
12810 | char *kwnames[] = { | |
12811 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12812 | }; | |
12813 | ||
12814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12817 | { | |
12818 | arg2 = wxString_in_helper(obj1); | |
12819 | if (arg2 == NULL) SWIG_fail; | |
12820 | temp2 = True; | |
12821 | } | |
12822 | { | |
12823 | arg3 = wxString_in_helper(obj2); | |
12824 | if (arg3 == NULL) SWIG_fail; | |
12825 | temp3 = True; | |
12826 | } | |
12827 | if (obj3) { | |
12828 | arg4 = (bool) SWIG_AsBool(obj3); | |
12829 | if (PyErr_Occurred()) SWIG_fail; | |
12830 | } | |
12831 | { | |
12832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12833 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12834 | ||
12835 | wxPyEndAllowThreads(__tstate); | |
12836 | if (PyErr_Occurred()) SWIG_fail; | |
12837 | } | |
12838 | { | |
12839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12840 | } | |
12841 | { | |
12842 | if (temp2) | |
12843 | delete arg2; | |
12844 | } | |
12845 | { | |
12846 | if (temp3) | |
12847 | delete arg3; | |
12848 | } | |
12849 | return resultobj; | |
12850 | fail: | |
12851 | { | |
12852 | if (temp2) | |
12853 | delete arg2; | |
12854 | } | |
12855 | { | |
12856 | if (temp3) | |
12857 | delete arg3; | |
12858 | } | |
12859 | return NULL; | |
12860 | } | |
12861 | ||
12862 | ||
12863 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12864 | PyObject *resultobj; | |
12865 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12866 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12867 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12868 | int arg3 = (int) 0 ; | |
12869 | bool result; | |
12870 | bool temp2 = False ; | |
12871 | PyObject * obj0 = 0 ; | |
12872 | PyObject * obj1 = 0 ; | |
12873 | PyObject * obj2 = 0 ; | |
12874 | char *kwnames[] = { | |
12875 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12876 | }; | |
12877 | ||
12878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12881 | if (obj1) { | |
12882 | { | |
12883 | arg2 = wxString_in_helper(obj1); | |
12884 | if (arg2 == NULL) SWIG_fail; | |
12885 | temp2 = True; | |
12886 | } | |
12887 | } | |
12888 | if (obj2) { | |
12889 | arg3 = (int) SWIG_AsInt(obj2); | |
12890 | if (PyErr_Occurred()) SWIG_fail; | |
12891 | } | |
12892 | { | |
12893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12894 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12895 | ||
12896 | wxPyEndAllowThreads(__tstate); | |
12897 | if (PyErr_Occurred()) SWIG_fail; | |
12898 | } | |
12899 | { | |
12900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12901 | } | |
12902 | { | |
12903 | if (temp2) | |
12904 | delete arg2; | |
12905 | } | |
12906 | return resultobj; | |
12907 | fail: | |
12908 | { | |
12909 | if (temp2) | |
12910 | delete arg2; | |
12911 | } | |
12912 | return NULL; | |
12913 | } | |
12914 | ||
12915 | ||
12916 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12917 | PyObject *resultobj; | |
12918 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12919 | bool result; | |
12920 | PyObject * obj0 = 0 ; | |
12921 | char *kwnames[] = { | |
12922 | (char *) "self", NULL | |
12923 | }; | |
12924 | ||
12925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
12926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12928 | { | |
12929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12930 | result = (bool)(arg1)->Unassociate(); | |
12931 | ||
12932 | wxPyEndAllowThreads(__tstate); | |
12933 | if (PyErr_Occurred()) SWIG_fail; | |
12934 | } | |
12935 | { | |
12936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12937 | } | |
12938 | return resultobj; | |
12939 | fail: | |
12940 | return NULL; | |
12941 | } | |
12942 | ||
12943 | ||
12944 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12945 | PyObject *resultobj; | |
12946 | wxString *arg1 = 0 ; | |
12947 | wxString *arg2 = 0 ; | |
12948 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12949 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12950 | wxString result; | |
12951 | bool temp1 = False ; | |
12952 | bool temp2 = False ; | |
12953 | bool temp3 = False ; | |
12954 | PyObject * obj0 = 0 ; | |
12955 | PyObject * obj1 = 0 ; | |
12956 | PyObject * obj2 = 0 ; | |
12957 | char *kwnames[] = { | |
12958 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12959 | }; | |
12960 | ||
12961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12962 | { | |
12963 | arg1 = wxString_in_helper(obj0); | |
12964 | if (arg1 == NULL) SWIG_fail; | |
12965 | temp1 = True; | |
12966 | } | |
12967 | { | |
12968 | arg2 = wxString_in_helper(obj1); | |
12969 | if (arg2 == NULL) SWIG_fail; | |
12970 | temp2 = True; | |
12971 | } | |
12972 | if (obj2) { | |
12973 | { | |
12974 | arg3 = wxString_in_helper(obj2); | |
12975 | if (arg3 == NULL) SWIG_fail; | |
12976 | temp3 = True; | |
12977 | } | |
12978 | } | |
12979 | { | |
12980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12981 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12982 | ||
12983 | wxPyEndAllowThreads(__tstate); | |
12984 | if (PyErr_Occurred()) SWIG_fail; | |
12985 | } | |
12986 | { | |
12987 | #if wxUSE_UNICODE | |
12988 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12989 | #else | |
12990 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12991 | #endif | |
12992 | } | |
12993 | { | |
12994 | if (temp1) | |
12995 | delete arg1; | |
12996 | } | |
12997 | { | |
12998 | if (temp2) | |
12999 | delete arg2; | |
13000 | } | |
13001 | { | |
13002 | if (temp3) | |
13003 | delete arg3; | |
13004 | } | |
13005 | return resultobj; | |
13006 | fail: | |
13007 | { | |
13008 | if (temp1) | |
13009 | delete arg1; | |
13010 | } | |
13011 | { | |
13012 | if (temp2) | |
13013 | delete arg2; | |
13014 | } | |
13015 | { | |
13016 | if (temp3) | |
13017 | delete arg3; | |
13018 | } | |
13019 | return NULL; | |
13020 | } | |
13021 | ||
13022 | ||
13023 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
13024 | PyObject *obj; | |
13025 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13026 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13027 | Py_INCREF(obj); | |
13028 | return Py_BuildValue((char *)""); | |
13029 | } | |
13030 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
13031 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
13032 | return 1; | |
13033 | } | |
13034 | ||
13035 | ||
13036 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13037 | PyObject *pyobj; | |
13038 | ||
13039 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
13040 | return pyobj; | |
13041 | } | |
13042 | ||
13043 | ||
13044 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13045 | PyObject *resultobj; | |
13046 | wxString *arg1 = 0 ; | |
13047 | wxString *arg2 = 0 ; | |
13048 | bool result; | |
13049 | bool temp1 = False ; | |
13050 | bool temp2 = False ; | |
13051 | PyObject * obj0 = 0 ; | |
13052 | PyObject * obj1 = 0 ; | |
13053 | char *kwnames[] = { | |
13054 | (char *) "mimeType",(char *) "wildcard", NULL | |
13055 | }; | |
13056 | ||
13057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13058 | { | |
13059 | arg1 = wxString_in_helper(obj0); | |
13060 | if (arg1 == NULL) SWIG_fail; | |
13061 | temp1 = True; | |
13062 | } | |
13063 | { | |
13064 | arg2 = wxString_in_helper(obj1); | |
13065 | if (arg2 == NULL) SWIG_fail; | |
13066 | temp2 = True; | |
13067 | } | |
13068 | { | |
13069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13070 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13071 | ||
13072 | wxPyEndAllowThreads(__tstate); | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | } | |
13075 | { | |
13076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13077 | } | |
13078 | { | |
13079 | if (temp1) | |
13080 | delete arg1; | |
13081 | } | |
13082 | { | |
13083 | if (temp2) | |
13084 | delete arg2; | |
13085 | } | |
13086 | return resultobj; | |
13087 | fail: | |
13088 | { | |
13089 | if (temp1) | |
13090 | delete arg1; | |
13091 | } | |
13092 | { | |
13093 | if (temp2) | |
13094 | delete arg2; | |
13095 | } | |
13096 | return NULL; | |
13097 | } | |
13098 | ||
13099 | ||
13100 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13101 | PyObject *resultobj; | |
13102 | wxMimeTypesManager *result; | |
13103 | char *kwnames[] = { | |
13104 | NULL | |
13105 | }; | |
13106 | ||
13107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13108 | { | |
13109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13110 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13111 | ||
13112 | wxPyEndAllowThreads(__tstate); | |
13113 | if (PyErr_Occurred()) SWIG_fail; | |
13114 | } | |
13115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13116 | return resultobj; | |
13117 | fail: | |
13118 | return NULL; | |
13119 | } | |
13120 | ||
13121 | ||
13122 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13123 | PyObject *resultobj; | |
13124 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13125 | int arg2 = (int) wxMAILCAP_ALL ; | |
13126 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13127 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13128 | bool temp3 = False ; | |
13129 | PyObject * obj0 = 0 ; | |
13130 | PyObject * obj1 = 0 ; | |
13131 | PyObject * obj2 = 0 ; | |
13132 | char *kwnames[] = { | |
13133 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13134 | }; | |
13135 | ||
13136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13139 | if (obj1) { | |
13140 | arg2 = (int) SWIG_AsInt(obj1); | |
13141 | if (PyErr_Occurred()) SWIG_fail; | |
13142 | } | |
13143 | if (obj2) { | |
13144 | { | |
13145 | arg3 = wxString_in_helper(obj2); | |
13146 | if (arg3 == NULL) SWIG_fail; | |
13147 | temp3 = True; | |
13148 | } | |
13149 | } | |
13150 | { | |
13151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13152 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13153 | ||
13154 | wxPyEndAllowThreads(__tstate); | |
13155 | if (PyErr_Occurred()) SWIG_fail; | |
13156 | } | |
13157 | Py_INCREF(Py_None); resultobj = Py_None; | |
13158 | { | |
13159 | if (temp3) | |
13160 | delete arg3; | |
13161 | } | |
13162 | return resultobj; | |
13163 | fail: | |
13164 | { | |
13165 | if (temp3) | |
13166 | delete arg3; | |
13167 | } | |
13168 | return NULL; | |
13169 | } | |
13170 | ||
13171 | ||
13172 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13173 | PyObject *resultobj; | |
13174 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13175 | PyObject * obj0 = 0 ; | |
13176 | char *kwnames[] = { | |
13177 | (char *) "self", NULL | |
13178 | }; | |
13179 | ||
13180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13183 | { | |
13184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13185 | (arg1)->ClearData(); | |
13186 | ||
13187 | wxPyEndAllowThreads(__tstate); | |
13188 | if (PyErr_Occurred()) SWIG_fail; | |
13189 | } | |
13190 | Py_INCREF(Py_None); resultobj = Py_None; | |
13191 | return resultobj; | |
13192 | fail: | |
13193 | return NULL; | |
13194 | } | |
13195 | ||
13196 | ||
13197 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13198 | PyObject *resultobj; | |
13199 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13200 | wxString *arg2 = 0 ; | |
13201 | wxFileType *result; | |
13202 | bool temp2 = False ; | |
13203 | PyObject * obj0 = 0 ; | |
13204 | PyObject * obj1 = 0 ; | |
13205 | char *kwnames[] = { | |
13206 | (char *) "self",(char *) "ext", NULL | |
13207 | }; | |
13208 | ||
13209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13212 | { | |
13213 | arg2 = wxString_in_helper(obj1); | |
13214 | if (arg2 == NULL) SWIG_fail; | |
13215 | temp2 = True; | |
13216 | } | |
13217 | { | |
13218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13219 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13220 | ||
13221 | wxPyEndAllowThreads(__tstate); | |
13222 | if (PyErr_Occurred()) SWIG_fail; | |
13223 | } | |
13224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13225 | { | |
13226 | if (temp2) | |
13227 | delete arg2; | |
13228 | } | |
13229 | return resultobj; | |
13230 | fail: | |
13231 | { | |
13232 | if (temp2) | |
13233 | delete arg2; | |
13234 | } | |
13235 | return NULL; | |
13236 | } | |
13237 | ||
13238 | ||
13239 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13240 | PyObject *resultobj; | |
13241 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13242 | wxString *arg2 = 0 ; | |
13243 | wxFileType *result; | |
13244 | bool temp2 = False ; | |
13245 | PyObject * obj0 = 0 ; | |
13246 | PyObject * obj1 = 0 ; | |
13247 | char *kwnames[] = { | |
13248 | (char *) "self",(char *) "mimeType", NULL | |
13249 | }; | |
13250 | ||
13251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13254 | { | |
13255 | arg2 = wxString_in_helper(obj1); | |
13256 | if (arg2 == NULL) SWIG_fail; | |
13257 | temp2 = True; | |
13258 | } | |
13259 | { | |
13260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13261 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13262 | ||
13263 | wxPyEndAllowThreads(__tstate); | |
13264 | if (PyErr_Occurred()) SWIG_fail; | |
13265 | } | |
13266 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13267 | { | |
13268 | if (temp2) | |
13269 | delete arg2; | |
13270 | } | |
13271 | return resultobj; | |
13272 | fail: | |
13273 | { | |
13274 | if (temp2) | |
13275 | delete arg2; | |
13276 | } | |
13277 | return NULL; | |
13278 | } | |
13279 | ||
13280 | ||
13281 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13282 | PyObject *resultobj; | |
13283 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13284 | wxString *arg2 = 0 ; | |
13285 | bool arg3 = (bool) False ; | |
13286 | bool result; | |
13287 | bool temp2 = False ; | |
13288 | PyObject * obj0 = 0 ; | |
13289 | PyObject * obj1 = 0 ; | |
13290 | PyObject * obj2 = 0 ; | |
13291 | char *kwnames[] = { | |
13292 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13293 | }; | |
13294 | ||
13295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13298 | { | |
13299 | arg2 = wxString_in_helper(obj1); | |
13300 | if (arg2 == NULL) SWIG_fail; | |
13301 | temp2 = True; | |
13302 | } | |
13303 | if (obj2) { | |
13304 | arg3 = (bool) SWIG_AsBool(obj2); | |
13305 | if (PyErr_Occurred()) SWIG_fail; | |
13306 | } | |
13307 | { | |
13308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13309 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13310 | ||
13311 | wxPyEndAllowThreads(__tstate); | |
13312 | if (PyErr_Occurred()) SWIG_fail; | |
13313 | } | |
13314 | { | |
13315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13316 | } | |
13317 | { | |
13318 | if (temp2) | |
13319 | delete arg2; | |
13320 | } | |
13321 | return resultobj; | |
13322 | fail: | |
13323 | { | |
13324 | if (temp2) | |
13325 | delete arg2; | |
13326 | } | |
13327 | return NULL; | |
13328 | } | |
13329 | ||
13330 | ||
13331 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13332 | PyObject *resultobj; | |
13333 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13334 | wxString *arg2 = 0 ; | |
13335 | bool result; | |
13336 | bool temp2 = False ; | |
13337 | PyObject * obj0 = 0 ; | |
13338 | PyObject * obj1 = 0 ; | |
13339 | char *kwnames[] = { | |
13340 | (char *) "self",(char *) "filename", NULL | |
13341 | }; | |
13342 | ||
13343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13346 | { | |
13347 | arg2 = wxString_in_helper(obj1); | |
13348 | if (arg2 == NULL) SWIG_fail; | |
13349 | temp2 = True; | |
13350 | } | |
13351 | { | |
13352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13353 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13354 | ||
13355 | wxPyEndAllowThreads(__tstate); | |
13356 | if (PyErr_Occurred()) SWIG_fail; | |
13357 | } | |
13358 | { | |
13359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13360 | } | |
13361 | { | |
13362 | if (temp2) | |
13363 | delete arg2; | |
13364 | } | |
13365 | return resultobj; | |
13366 | fail: | |
13367 | { | |
13368 | if (temp2) | |
13369 | delete arg2; | |
13370 | } | |
13371 | return NULL; | |
13372 | } | |
13373 | ||
13374 | ||
13375 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13376 | PyObject *resultobj; | |
13377 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13378 | PyObject *result; | |
13379 | PyObject * obj0 = 0 ; | |
13380 | char *kwnames[] = { | |
13381 | (char *) "self", NULL | |
13382 | }; | |
13383 | ||
13384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13387 | { | |
13388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13389 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13390 | ||
13391 | wxPyEndAllowThreads(__tstate); | |
13392 | if (PyErr_Occurred()) SWIG_fail; | |
13393 | } | |
13394 | resultobj = result; | |
13395 | return resultobj; | |
13396 | fail: | |
13397 | return NULL; | |
13398 | } | |
13399 | ||
13400 | ||
13401 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13402 | PyObject *resultobj; | |
13403 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13404 | wxFileTypeInfo *arg2 = 0 ; | |
13405 | PyObject * obj0 = 0 ; | |
13406 | PyObject * obj1 = 0 ; | |
13407 | char *kwnames[] = { | |
13408 | (char *) "self",(char *) "ft", NULL | |
13409 | }; | |
13410 | ||
13411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13414 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13415 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13416 | SWIG_fail; | |
13417 | if (arg2 == NULL) { | |
13418 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13419 | SWIG_fail; | |
13420 | } | |
13421 | { | |
13422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13423 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13424 | ||
13425 | wxPyEndAllowThreads(__tstate); | |
13426 | if (PyErr_Occurred()) SWIG_fail; | |
13427 | } | |
13428 | Py_INCREF(Py_None); resultobj = Py_None; | |
13429 | return resultobj; | |
13430 | fail: | |
13431 | return NULL; | |
13432 | } | |
13433 | ||
13434 | ||
13435 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13436 | PyObject *resultobj; | |
13437 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13438 | wxFileTypeInfo *arg2 = 0 ; | |
13439 | wxFileType *result; | |
13440 | PyObject * obj0 = 0 ; | |
13441 | PyObject * obj1 = 0 ; | |
13442 | char *kwnames[] = { | |
13443 | (char *) "self",(char *) "ftInfo", NULL | |
13444 | }; | |
13445 | ||
13446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13449 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13450 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13451 | SWIG_fail; | |
13452 | if (arg2 == NULL) { | |
13453 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13454 | SWIG_fail; | |
13455 | } | |
13456 | { | |
13457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13458 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13459 | ||
13460 | wxPyEndAllowThreads(__tstate); | |
13461 | if (PyErr_Occurred()) SWIG_fail; | |
13462 | } | |
13463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13464 | return resultobj; | |
13465 | fail: | |
13466 | return NULL; | |
13467 | } | |
13468 | ||
13469 | ||
13470 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13471 | PyObject *resultobj; | |
13472 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13473 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13474 | bool result; | |
13475 | PyObject * obj0 = 0 ; | |
13476 | PyObject * obj1 = 0 ; | |
13477 | char *kwnames[] = { | |
13478 | (char *) "self",(char *) "ft", NULL | |
13479 | }; | |
13480 | ||
13481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13486 | { | |
13487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13488 | result = (bool)(arg1)->Unassociate(arg2); | |
13489 | ||
13490 | wxPyEndAllowThreads(__tstate); | |
13491 | if (PyErr_Occurred()) SWIG_fail; | |
13492 | } | |
13493 | { | |
13494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13495 | } | |
13496 | return resultobj; | |
13497 | fail: | |
13498 | return NULL; | |
13499 | } | |
13500 | ||
13501 | ||
13502 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13503 | PyObject *resultobj; | |
13504 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13505 | PyObject * obj0 = 0 ; | |
13506 | char *kwnames[] = { | |
13507 | (char *) "self", NULL | |
13508 | }; | |
13509 | ||
13510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13513 | { | |
13514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13515 | delete arg1; | |
13516 | ||
13517 | wxPyEndAllowThreads(__tstate); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
13520 | Py_INCREF(Py_None); resultobj = Py_None; | |
13521 | return resultobj; | |
13522 | fail: | |
13523 | return NULL; | |
13524 | } | |
13525 | ||
13526 | ||
13527 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13528 | PyObject *obj; | |
13529 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13530 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13531 | Py_INCREF(obj); | |
13532 | return Py_BuildValue((char *)""); | |
13533 | } | |
13534 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13535 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13536 | return 1; | |
13537 | } | |
13538 | ||
13539 | ||
13540 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13541 | PyObject *pyobj; | |
13542 | ||
13543 | { | |
13544 | #if wxUSE_UNICODE | |
13545 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13546 | #else | |
13547 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13548 | #endif | |
13549 | } | |
13550 | return pyobj; | |
13551 | } | |
13552 | ||
13553 | ||
13554 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13555 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13556 | return 1; | |
13557 | } | |
13558 | ||
13559 | ||
13560 | static PyObject *_wrap_ART_MENU_get() { | |
13561 | PyObject *pyobj; | |
13562 | ||
13563 | { | |
13564 | #if wxUSE_UNICODE | |
13565 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13566 | #else | |
13567 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13568 | #endif | |
13569 | } | |
13570 | return pyobj; | |
13571 | } | |
13572 | ||
13573 | ||
13574 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13575 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13576 | return 1; | |
13577 | } | |
13578 | ||
13579 | ||
13580 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13581 | PyObject *pyobj; | |
13582 | ||
13583 | { | |
13584 | #if wxUSE_UNICODE | |
13585 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13586 | #else | |
13587 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13588 | #endif | |
13589 | } | |
13590 | return pyobj; | |
13591 | } | |
13592 | ||
13593 | ||
13594 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13595 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13596 | return 1; | |
13597 | } | |
13598 | ||
13599 | ||
13600 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13601 | PyObject *pyobj; | |
13602 | ||
13603 | { | |
13604 | #if wxUSE_UNICODE | |
13605 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13606 | #else | |
13607 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13608 | #endif | |
13609 | } | |
13610 | return pyobj; | |
13611 | } | |
13612 | ||
13613 | ||
13614 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13615 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13616 | return 1; | |
13617 | } | |
13618 | ||
13619 | ||
13620 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13621 | PyObject *pyobj; | |
13622 | ||
13623 | { | |
13624 | #if wxUSE_UNICODE | |
13625 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13626 | #else | |
13627 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13628 | #endif | |
13629 | } | |
13630 | return pyobj; | |
13631 | } | |
13632 | ||
13633 | ||
13634 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13635 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13636 | return 1; | |
13637 | } | |
13638 | ||
13639 | ||
13640 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13641 | PyObject *pyobj; | |
13642 | ||
13643 | { | |
13644 | #if wxUSE_UNICODE | |
13645 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13646 | #else | |
13647 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13648 | #endif | |
13649 | } | |
13650 | return pyobj; | |
13651 | } | |
13652 | ||
13653 | ||
13654 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13655 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13656 | return 1; | |
13657 | } | |
13658 | ||
13659 | ||
13660 | static PyObject *_wrap_ART_OTHER_get() { | |
13661 | PyObject *pyobj; | |
13662 | ||
13663 | { | |
13664 | #if wxUSE_UNICODE | |
13665 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13666 | #else | |
13667 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13668 | #endif | |
13669 | } | |
13670 | return pyobj; | |
13671 | } | |
13672 | ||
13673 | ||
13674 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13675 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13676 | return 1; | |
13677 | } | |
13678 | ||
13679 | ||
13680 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13681 | PyObject *pyobj; | |
13682 | ||
13683 | { | |
13684 | #if wxUSE_UNICODE | |
13685 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13686 | #else | |
13687 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13688 | #endif | |
13689 | } | |
13690 | return pyobj; | |
13691 | } | |
13692 | ||
13693 | ||
13694 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13695 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13696 | return 1; | |
13697 | } | |
13698 | ||
13699 | ||
13700 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13701 | PyObject *pyobj; | |
13702 | ||
13703 | { | |
13704 | #if wxUSE_UNICODE | |
13705 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13706 | #else | |
13707 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13708 | #endif | |
13709 | } | |
13710 | return pyobj; | |
13711 | } | |
13712 | ||
13713 | ||
13714 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13715 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13716 | return 1; | |
13717 | } | |
13718 | ||
13719 | ||
13720 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13721 | PyObject *pyobj; | |
13722 | ||
13723 | { | |
13724 | #if wxUSE_UNICODE | |
13725 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13726 | #else | |
13727 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13728 | #endif | |
13729 | } | |
13730 | return pyobj; | |
13731 | } | |
13732 | ||
13733 | ||
13734 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13735 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13736 | return 1; | |
13737 | } | |
13738 | ||
13739 | ||
13740 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13741 | PyObject *pyobj; | |
13742 | ||
13743 | { | |
13744 | #if wxUSE_UNICODE | |
13745 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13746 | #else | |
13747 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13748 | #endif | |
13749 | } | |
13750 | return pyobj; | |
13751 | } | |
13752 | ||
13753 | ||
13754 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13755 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13756 | return 1; | |
13757 | } | |
13758 | ||
13759 | ||
13760 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13761 | PyObject *pyobj; | |
13762 | ||
13763 | { | |
13764 | #if wxUSE_UNICODE | |
13765 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13766 | #else | |
13767 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13768 | #endif | |
13769 | } | |
13770 | return pyobj; | |
13771 | } | |
13772 | ||
13773 | ||
13774 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13775 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13776 | return 1; | |
13777 | } | |
13778 | ||
13779 | ||
13780 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13781 | PyObject *pyobj; | |
13782 | ||
13783 | { | |
13784 | #if wxUSE_UNICODE | |
13785 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13786 | #else | |
13787 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13788 | #endif | |
13789 | } | |
13790 | return pyobj; | |
13791 | } | |
13792 | ||
13793 | ||
13794 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13795 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13796 | return 1; | |
13797 | } | |
13798 | ||
13799 | ||
13800 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13801 | PyObject *pyobj; | |
13802 | ||
13803 | { | |
13804 | #if wxUSE_UNICODE | |
13805 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13806 | #else | |
13807 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13808 | #endif | |
13809 | } | |
13810 | return pyobj; | |
13811 | } | |
13812 | ||
13813 | ||
13814 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13815 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13816 | return 1; | |
13817 | } | |
13818 | ||
13819 | ||
13820 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13821 | PyObject *pyobj; | |
13822 | ||
13823 | { | |
13824 | #if wxUSE_UNICODE | |
13825 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13826 | #else | |
13827 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13828 | #endif | |
13829 | } | |
13830 | return pyobj; | |
13831 | } | |
13832 | ||
13833 | ||
13834 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13835 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13836 | return 1; | |
13837 | } | |
13838 | ||
13839 | ||
13840 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13841 | PyObject *pyobj; | |
13842 | ||
13843 | { | |
13844 | #if wxUSE_UNICODE | |
13845 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13846 | #else | |
13847 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13848 | #endif | |
13849 | } | |
13850 | return pyobj; | |
13851 | } | |
13852 | ||
13853 | ||
13854 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13855 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13856 | return 1; | |
13857 | } | |
13858 | ||
13859 | ||
13860 | static PyObject *_wrap_ART_GO_UP_get() { | |
13861 | PyObject *pyobj; | |
13862 | ||
13863 | { | |
13864 | #if wxUSE_UNICODE | |
13865 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13866 | #else | |
13867 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13868 | #endif | |
13869 | } | |
13870 | return pyobj; | |
13871 | } | |
13872 | ||
13873 | ||
13874 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13875 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13876 | return 1; | |
13877 | } | |
13878 | ||
13879 | ||
13880 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13881 | PyObject *pyobj; | |
13882 | ||
13883 | { | |
13884 | #if wxUSE_UNICODE | |
13885 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13886 | #else | |
13887 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13888 | #endif | |
13889 | } | |
13890 | return pyobj; | |
13891 | } | |
13892 | ||
13893 | ||
13894 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13895 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13896 | return 1; | |
13897 | } | |
13898 | ||
13899 | ||
13900 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13901 | PyObject *pyobj; | |
13902 | ||
13903 | { | |
13904 | #if wxUSE_UNICODE | |
13905 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13906 | #else | |
13907 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13908 | #endif | |
13909 | } | |
13910 | return pyobj; | |
13911 | } | |
13912 | ||
13913 | ||
13914 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13915 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13916 | return 1; | |
13917 | } | |
13918 | ||
13919 | ||
13920 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13921 | PyObject *pyobj; | |
13922 | ||
13923 | { | |
13924 | #if wxUSE_UNICODE | |
13925 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13926 | #else | |
13927 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13928 | #endif | |
13929 | } | |
13930 | return pyobj; | |
13931 | } | |
13932 | ||
13933 | ||
13934 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13935 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13936 | return 1; | |
13937 | } | |
13938 | ||
13939 | ||
13940 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13941 | PyObject *pyobj; | |
13942 | ||
13943 | { | |
13944 | #if wxUSE_UNICODE | |
13945 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13946 | #else | |
13947 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13948 | #endif | |
13949 | } | |
13950 | return pyobj; | |
13951 | } | |
13952 | ||
13953 | ||
13954 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
13955 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13956 | return 1; | |
13957 | } | |
13958 | ||
13959 | ||
13960 | static PyObject *_wrap_ART_PRINT_get() { | |
13961 | PyObject *pyobj; | |
13962 | ||
13963 | { | |
13964 | #if wxUSE_UNICODE | |
13965 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13966 | #else | |
13967 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13968 | #endif | |
13969 | } | |
13970 | return pyobj; | |
13971 | } | |
13972 | ||
13973 | ||
13974 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
13975 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13976 | return 1; | |
13977 | } | |
13978 | ||
13979 | ||
13980 | static PyObject *_wrap_ART_HELP_get() { | |
13981 | PyObject *pyobj; | |
13982 | ||
13983 | { | |
13984 | #if wxUSE_UNICODE | |
13985 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13986 | #else | |
13987 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13988 | #endif | |
13989 | } | |
13990 | return pyobj; | |
13991 | } | |
13992 | ||
13993 | ||
13994 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
13995 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
13996 | return 1; | |
13997 | } | |
13998 | ||
13999 | ||
14000 | static PyObject *_wrap_ART_TIP_get() { | |
14001 | PyObject *pyobj; | |
14002 | ||
14003 | { | |
14004 | #if wxUSE_UNICODE | |
14005 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14006 | #else | |
14007 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14008 | #endif | |
14009 | } | |
14010 | return pyobj; | |
14011 | } | |
14012 | ||
14013 | ||
14014 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
14015 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
14016 | return 1; | |
14017 | } | |
14018 | ||
14019 | ||
14020 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14021 | PyObject *pyobj; | |
14022 | ||
14023 | { | |
14024 | #if wxUSE_UNICODE | |
14025 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14026 | #else | |
14027 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14028 | #endif | |
14029 | } | |
14030 | return pyobj; | |
14031 | } | |
14032 | ||
14033 | ||
14034 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
14035 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
14036 | return 1; | |
14037 | } | |
14038 | ||
14039 | ||
14040 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14041 | PyObject *pyobj; | |
14042 | ||
14043 | { | |
14044 | #if wxUSE_UNICODE | |
14045 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14046 | #else | |
14047 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14048 | #endif | |
14049 | } | |
14050 | return pyobj; | |
14051 | } | |
14052 | ||
14053 | ||
14054 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
14055 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
14056 | return 1; | |
14057 | } | |
14058 | ||
14059 | ||
14060 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14061 | PyObject *pyobj; | |
14062 | ||
14063 | { | |
14064 | #if wxUSE_UNICODE | |
14065 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14066 | #else | |
14067 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14068 | #endif | |
14069 | } | |
14070 | return pyobj; | |
14071 | } | |
14072 | ||
14073 | ||
14074 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14075 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14076 | return 1; | |
14077 | } | |
14078 | ||
14079 | ||
14080 | static PyObject *_wrap_ART_FOLDER_get() { | |
14081 | PyObject *pyobj; | |
14082 | ||
14083 | { | |
14084 | #if wxUSE_UNICODE | |
14085 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14086 | #else | |
14087 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14088 | #endif | |
14089 | } | |
14090 | return pyobj; | |
14091 | } | |
14092 | ||
14093 | ||
14094 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14095 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14096 | return 1; | |
14097 | } | |
14098 | ||
14099 | ||
14100 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14101 | PyObject *pyobj; | |
14102 | ||
14103 | { | |
14104 | #if wxUSE_UNICODE | |
14105 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14106 | #else | |
14107 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14108 | #endif | |
14109 | } | |
14110 | return pyobj; | |
14111 | } | |
14112 | ||
14113 | ||
14114 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14115 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14116 | return 1; | |
14117 | } | |
14118 | ||
14119 | ||
14120 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14121 | PyObject *pyobj; | |
14122 | ||
14123 | { | |
14124 | #if wxUSE_UNICODE | |
14125 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14126 | #else | |
14127 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14128 | #endif | |
14129 | } | |
14130 | return pyobj; | |
14131 | } | |
14132 | ||
14133 | ||
14134 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14135 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14136 | return 1; | |
14137 | } | |
14138 | ||
14139 | ||
14140 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14141 | PyObject *pyobj; | |
14142 | ||
14143 | { | |
14144 | #if wxUSE_UNICODE | |
14145 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14146 | #else | |
14147 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14148 | #endif | |
14149 | } | |
14150 | return pyobj; | |
14151 | } | |
14152 | ||
14153 | ||
14154 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14155 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14156 | return 1; | |
14157 | } | |
14158 | ||
14159 | ||
14160 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14161 | PyObject *pyobj; | |
14162 | ||
14163 | { | |
14164 | #if wxUSE_UNICODE | |
14165 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14166 | #else | |
14167 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14168 | #endif | |
14169 | } | |
14170 | return pyobj; | |
14171 | } | |
14172 | ||
14173 | ||
14174 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14175 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14176 | return 1; | |
14177 | } | |
14178 | ||
14179 | ||
14180 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14181 | PyObject *pyobj; | |
14182 | ||
14183 | { | |
14184 | #if wxUSE_UNICODE | |
14185 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14186 | #else | |
14187 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14188 | #endif | |
14189 | } | |
14190 | return pyobj; | |
14191 | } | |
14192 | ||
14193 | ||
14194 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14195 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14196 | return 1; | |
14197 | } | |
14198 | ||
14199 | ||
14200 | static PyObject *_wrap_ART_ERROR_get() { | |
14201 | PyObject *pyobj; | |
14202 | ||
14203 | { | |
14204 | #if wxUSE_UNICODE | |
14205 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14206 | #else | |
14207 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14208 | #endif | |
14209 | } | |
14210 | return pyobj; | |
14211 | } | |
14212 | ||
14213 | ||
14214 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14215 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14216 | return 1; | |
14217 | } | |
14218 | ||
14219 | ||
14220 | static PyObject *_wrap_ART_QUESTION_get() { | |
14221 | PyObject *pyobj; | |
14222 | ||
14223 | { | |
14224 | #if wxUSE_UNICODE | |
14225 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14226 | #else | |
14227 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14228 | #endif | |
14229 | } | |
14230 | return pyobj; | |
14231 | } | |
14232 | ||
14233 | ||
14234 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14235 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14236 | return 1; | |
14237 | } | |
14238 | ||
14239 | ||
14240 | static PyObject *_wrap_ART_WARNING_get() { | |
14241 | PyObject *pyobj; | |
14242 | ||
14243 | { | |
14244 | #if wxUSE_UNICODE | |
14245 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14246 | #else | |
14247 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14248 | #endif | |
14249 | } | |
14250 | return pyobj; | |
14251 | } | |
14252 | ||
14253 | ||
14254 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14255 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14256 | return 1; | |
14257 | } | |
14258 | ||
14259 | ||
14260 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14261 | PyObject *pyobj; | |
14262 | ||
14263 | { | |
14264 | #if wxUSE_UNICODE | |
14265 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14266 | #else | |
14267 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14268 | #endif | |
14269 | } | |
14270 | return pyobj; | |
14271 | } | |
14272 | ||
14273 | ||
14274 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14275 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14276 | return 1; | |
14277 | } | |
14278 | ||
14279 | ||
14280 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14281 | PyObject *pyobj; | |
14282 | ||
14283 | { | |
14284 | #if wxUSE_UNICODE | |
14285 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14286 | #else | |
14287 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14288 | #endif | |
14289 | } | |
14290 | return pyobj; | |
14291 | } | |
14292 | ||
14293 | ||
14294 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14295 | PyObject *resultobj; | |
14296 | wxPyArtProvider *result; | |
14297 | char *kwnames[] = { | |
14298 | NULL | |
14299 | }; | |
14300 | ||
14301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14302 | { | |
14303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14304 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14305 | ||
14306 | wxPyEndAllowThreads(__tstate); | |
14307 | if (PyErr_Occurred()) SWIG_fail; | |
14308 | } | |
14309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14310 | return resultobj; | |
14311 | fail: | |
14312 | return NULL; | |
14313 | } | |
14314 | ||
14315 | ||
14316 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14317 | PyObject *resultobj; | |
14318 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14319 | PyObject *arg2 = (PyObject *) 0 ; | |
14320 | PyObject *arg3 = (PyObject *) 0 ; | |
14321 | PyObject * obj0 = 0 ; | |
14322 | PyObject * obj1 = 0 ; | |
14323 | PyObject * obj2 = 0 ; | |
14324 | char *kwnames[] = { | |
14325 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14326 | }; | |
14327 | ||
14328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14331 | arg2 = obj1; | |
14332 | arg3 = obj2; | |
14333 | { | |
14334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14335 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14336 | ||
14337 | wxPyEndAllowThreads(__tstate); | |
14338 | if (PyErr_Occurred()) SWIG_fail; | |
14339 | } | |
14340 | Py_INCREF(Py_None); resultobj = Py_None; | |
14341 | return resultobj; | |
14342 | fail: | |
14343 | return NULL; | |
14344 | } | |
14345 | ||
14346 | ||
14347 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14348 | PyObject *resultobj; | |
14349 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14350 | PyObject * obj0 = 0 ; | |
14351 | char *kwnames[] = { | |
14352 | (char *) "provider", NULL | |
14353 | }; | |
14354 | ||
14355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14358 | { | |
14359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14360 | wxPyArtProvider::PushProvider(arg1); | |
14361 | ||
14362 | wxPyEndAllowThreads(__tstate); | |
14363 | if (PyErr_Occurred()) SWIG_fail; | |
14364 | } | |
14365 | Py_INCREF(Py_None); resultobj = Py_None; | |
14366 | return resultobj; | |
14367 | fail: | |
14368 | return NULL; | |
14369 | } | |
14370 | ||
14371 | ||
14372 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14373 | PyObject *resultobj; | |
14374 | bool result; | |
14375 | char *kwnames[] = { | |
14376 | NULL | |
14377 | }; | |
14378 | ||
14379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14380 | { | |
14381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14382 | result = (bool)wxPyArtProvider::PopProvider(); | |
14383 | ||
14384 | wxPyEndAllowThreads(__tstate); | |
14385 | if (PyErr_Occurred()) SWIG_fail; | |
14386 | } | |
14387 | { | |
14388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14389 | } | |
14390 | return resultobj; | |
14391 | fail: | |
14392 | return NULL; | |
14393 | } | |
14394 | ||
14395 | ||
14396 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14397 | PyObject *resultobj; | |
14398 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14399 | bool result; | |
14400 | PyObject * obj0 = 0 ; | |
14401 | char *kwnames[] = { | |
14402 | (char *) "provider", NULL | |
14403 | }; | |
14404 | ||
14405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14408 | { | |
14409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14410 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14411 | ||
14412 | wxPyEndAllowThreads(__tstate); | |
14413 | if (PyErr_Occurred()) SWIG_fail; | |
14414 | } | |
14415 | { | |
14416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14417 | } | |
14418 | return resultobj; | |
14419 | fail: | |
14420 | return NULL; | |
14421 | } | |
14422 | ||
14423 | ||
14424 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14425 | PyObject *resultobj; | |
14426 | wxString *arg1 = 0 ; | |
14427 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14428 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14429 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14430 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14431 | wxBitmap result; | |
14432 | bool temp1 = False ; | |
14433 | bool temp2 = False ; | |
14434 | wxSize temp3 ; | |
14435 | PyObject * obj0 = 0 ; | |
14436 | PyObject * obj1 = 0 ; | |
14437 | PyObject * obj2 = 0 ; | |
14438 | char *kwnames[] = { | |
14439 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14440 | }; | |
14441 | ||
14442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14443 | { | |
14444 | arg1 = wxString_in_helper(obj0); | |
14445 | if (arg1 == NULL) SWIG_fail; | |
14446 | temp1 = True; | |
14447 | } | |
14448 | if (obj1) { | |
14449 | { | |
14450 | arg2 = wxString_in_helper(obj1); | |
14451 | if (arg2 == NULL) SWIG_fail; | |
14452 | temp2 = True; | |
14453 | } | |
14454 | } | |
14455 | if (obj2) { | |
14456 | { | |
14457 | arg3 = &temp3; | |
14458 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14459 | } | |
14460 | } | |
14461 | { | |
14462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14463 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14464 | ||
14465 | wxPyEndAllowThreads(__tstate); | |
14466 | if (PyErr_Occurred()) SWIG_fail; | |
14467 | } | |
14468 | { | |
14469 | wxBitmap * resultptr; | |
14470 | resultptr = new wxBitmap((wxBitmap &) result); | |
14471 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
14472 | } | |
14473 | { | |
14474 | if (temp1) | |
14475 | delete arg1; | |
14476 | } | |
14477 | { | |
14478 | if (temp2) | |
14479 | delete arg2; | |
14480 | } | |
14481 | return resultobj; | |
14482 | fail: | |
14483 | { | |
14484 | if (temp1) | |
14485 | delete arg1; | |
14486 | } | |
14487 | { | |
14488 | if (temp2) | |
14489 | delete arg2; | |
14490 | } | |
14491 | return NULL; | |
14492 | } | |
14493 | ||
14494 | ||
14495 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14496 | PyObject *resultobj; | |
14497 | wxString *arg1 = 0 ; | |
14498 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14499 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14500 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14501 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14502 | wxIcon result; | |
14503 | bool temp1 = False ; | |
14504 | bool temp2 = False ; | |
14505 | wxSize temp3 ; | |
14506 | PyObject * obj0 = 0 ; | |
14507 | PyObject * obj1 = 0 ; | |
14508 | PyObject * obj2 = 0 ; | |
14509 | char *kwnames[] = { | |
14510 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14511 | }; | |
14512 | ||
14513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14514 | { | |
14515 | arg1 = wxString_in_helper(obj0); | |
14516 | if (arg1 == NULL) SWIG_fail; | |
14517 | temp1 = True; | |
14518 | } | |
14519 | if (obj1) { | |
14520 | { | |
14521 | arg2 = wxString_in_helper(obj1); | |
14522 | if (arg2 == NULL) SWIG_fail; | |
14523 | temp2 = True; | |
14524 | } | |
14525 | } | |
14526 | if (obj2) { | |
14527 | { | |
14528 | arg3 = &temp3; | |
14529 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14530 | } | |
14531 | } | |
14532 | { | |
14533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14534 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14535 | ||
14536 | wxPyEndAllowThreads(__tstate); | |
14537 | if (PyErr_Occurred()) SWIG_fail; | |
14538 | } | |
14539 | { | |
14540 | wxIcon * resultptr; | |
14541 | resultptr = new wxIcon((wxIcon &) result); | |
14542 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
14543 | } | |
14544 | { | |
14545 | if (temp1) | |
14546 | delete arg1; | |
14547 | } | |
14548 | { | |
14549 | if (temp2) | |
14550 | delete arg2; | |
14551 | } | |
14552 | return resultobj; | |
14553 | fail: | |
14554 | { | |
14555 | if (temp1) | |
14556 | delete arg1; | |
14557 | } | |
14558 | { | |
14559 | if (temp2) | |
14560 | delete arg2; | |
14561 | } | |
14562 | return NULL; | |
14563 | } | |
14564 | ||
14565 | ||
14566 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14567 | PyObject *resultobj; | |
14568 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14569 | PyObject * obj0 = 0 ; | |
14570 | char *kwnames[] = { | |
14571 | (char *) "self", NULL | |
14572 | }; | |
14573 | ||
14574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14577 | { | |
14578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14579 | wxPyArtProvider_Destroy(arg1); | |
14580 | ||
14581 | wxPyEndAllowThreads(__tstate); | |
14582 | if (PyErr_Occurred()) SWIG_fail; | |
14583 | } | |
14584 | Py_INCREF(Py_None); resultobj = Py_None; | |
14585 | return resultobj; | |
14586 | fail: | |
14587 | return NULL; | |
14588 | } | |
14589 | ||
14590 | ||
14591 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { | |
14592 | PyObject *obj; | |
14593 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14594 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14595 | Py_INCREF(obj); | |
14596 | return Py_BuildValue((char *)""); | |
14597 | } | |
14598 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14599 | PyObject *resultobj; | |
14600 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14601 | PyObject * obj0 = 0 ; | |
14602 | char *kwnames[] = { | |
14603 | (char *) "self", NULL | |
14604 | }; | |
14605 | ||
14606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
14607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14609 | { | |
14610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14611 | delete arg1; | |
14612 | ||
14613 | wxPyEndAllowThreads(__tstate); | |
14614 | if (PyErr_Occurred()) SWIG_fail; | |
14615 | } | |
14616 | Py_INCREF(Py_None); resultobj = Py_None; | |
14617 | return resultobj; | |
14618 | fail: | |
14619 | return NULL; | |
14620 | } | |
14621 | ||
14622 | ||
14623 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14624 | PyObject *resultobj; | |
14625 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14626 | wxConfigBase *result; | |
14627 | PyObject * obj0 = 0 ; | |
14628 | char *kwnames[] = { | |
14629 | (char *) "config", NULL | |
14630 | }; | |
14631 | ||
14632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
14633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14635 | { | |
14636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14637 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14638 | ||
14639 | wxPyEndAllowThreads(__tstate); | |
14640 | if (PyErr_Occurred()) SWIG_fail; | |
14641 | } | |
14642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14643 | return resultobj; | |
14644 | fail: | |
14645 | return NULL; | |
14646 | } | |
14647 | ||
14648 | ||
14649 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14650 | PyObject *resultobj; | |
14651 | bool arg1 = (bool) True ; | |
14652 | wxConfigBase *result; | |
14653 | PyObject * obj0 = 0 ; | |
14654 | char *kwnames[] = { | |
14655 | (char *) "createOnDemand", NULL | |
14656 | }; | |
14657 | ||
14658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14659 | if (obj0) { | |
14660 | arg1 = (bool) SWIG_AsBool(obj0); | |
14661 | if (PyErr_Occurred()) SWIG_fail; | |
14662 | } | |
14663 | { | |
14664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14665 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14666 | ||
14667 | wxPyEndAllowThreads(__tstate); | |
14668 | if (PyErr_Occurred()) SWIG_fail; | |
14669 | } | |
14670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14671 | return resultobj; | |
14672 | fail: | |
14673 | return NULL; | |
14674 | } | |
14675 | ||
14676 | ||
14677 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14678 | PyObject *resultobj; | |
14679 | wxConfigBase *result; | |
14680 | char *kwnames[] = { | |
14681 | NULL | |
14682 | }; | |
14683 | ||
14684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14685 | { | |
14686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14687 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14688 | ||
14689 | wxPyEndAllowThreads(__tstate); | |
14690 | if (PyErr_Occurred()) SWIG_fail; | |
14691 | } | |
14692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14693 | return resultobj; | |
14694 | fail: | |
14695 | return NULL; | |
14696 | } | |
14697 | ||
14698 | ||
14699 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14700 | PyObject *resultobj; | |
14701 | char *kwnames[] = { | |
14702 | NULL | |
14703 | }; | |
14704 | ||
14705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14706 | { | |
14707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14708 | wxConfigBase::DontCreateOnDemand(); | |
14709 | ||
14710 | wxPyEndAllowThreads(__tstate); | |
14711 | if (PyErr_Occurred()) SWIG_fail; | |
14712 | } | |
14713 | Py_INCREF(Py_None); resultobj = Py_None; | |
14714 | return resultobj; | |
14715 | fail: | |
14716 | return NULL; | |
14717 | } | |
14718 | ||
14719 | ||
14720 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14721 | PyObject *resultobj; | |
14722 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14723 | wxString *arg2 = 0 ; | |
14724 | bool temp2 = False ; | |
14725 | PyObject * obj0 = 0 ; | |
14726 | PyObject * obj1 = 0 ; | |
14727 | char *kwnames[] = { | |
14728 | (char *) "self",(char *) "path", NULL | |
14729 | }; | |
14730 | ||
14731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
14732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14734 | { | |
14735 | arg2 = wxString_in_helper(obj1); | |
14736 | if (arg2 == NULL) SWIG_fail; | |
14737 | temp2 = True; | |
14738 | } | |
14739 | { | |
14740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14741 | (arg1)->SetPath((wxString const &)*arg2); | |
14742 | ||
14743 | wxPyEndAllowThreads(__tstate); | |
14744 | if (PyErr_Occurred()) SWIG_fail; | |
14745 | } | |
14746 | Py_INCREF(Py_None); resultobj = Py_None; | |
14747 | { | |
14748 | if (temp2) | |
14749 | delete arg2; | |
14750 | } | |
14751 | return resultobj; | |
14752 | fail: | |
14753 | { | |
14754 | if (temp2) | |
14755 | delete arg2; | |
14756 | } | |
14757 | return NULL; | |
14758 | } | |
14759 | ||
14760 | ||
14761 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14762 | PyObject *resultobj; | |
14763 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14764 | wxString *result; | |
14765 | PyObject * obj0 = 0 ; | |
14766 | char *kwnames[] = { | |
14767 | (char *) "self", NULL | |
14768 | }; | |
14769 | ||
14770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
14771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14773 | { | |
14774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14775 | { | |
14776 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14777 | result = (wxString *) &_result_ref; | |
14778 | } | |
14779 | ||
14780 | wxPyEndAllowThreads(__tstate); | |
14781 | if (PyErr_Occurred()) SWIG_fail; | |
14782 | } | |
14783 | { | |
14784 | #if wxUSE_UNICODE | |
14785 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14786 | #else | |
14787 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14788 | #endif | |
14789 | } | |
14790 | return resultobj; | |
14791 | fail: | |
14792 | return NULL; | |
14793 | } | |
14794 | ||
14795 | ||
14796 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14797 | PyObject *resultobj; | |
14798 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14799 | PyObject *result; | |
14800 | PyObject * obj0 = 0 ; | |
14801 | char *kwnames[] = { | |
14802 | (char *) "self", NULL | |
14803 | }; | |
14804 | ||
14805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
14806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14808 | { | |
14809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14810 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14811 | ||
14812 | wxPyEndAllowThreads(__tstate); | |
14813 | if (PyErr_Occurred()) SWIG_fail; | |
14814 | } | |
14815 | resultobj = result; | |
14816 | return resultobj; | |
14817 | fail: | |
14818 | return NULL; | |
14819 | } | |
14820 | ||
14821 | ||
14822 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14823 | PyObject *resultobj; | |
14824 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14825 | long arg2 ; | |
14826 | PyObject *result; | |
14827 | PyObject * obj0 = 0 ; | |
14828 | PyObject * obj1 = 0 ; | |
14829 | char *kwnames[] = { | |
14830 | (char *) "self",(char *) "index", NULL | |
14831 | }; | |
14832 | ||
14833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
14834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14836 | arg2 = (long) SWIG_AsLong(obj1); | |
14837 | if (PyErr_Occurred()) SWIG_fail; | |
14838 | { | |
14839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14840 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14841 | ||
14842 | wxPyEndAllowThreads(__tstate); | |
14843 | if (PyErr_Occurred()) SWIG_fail; | |
14844 | } | |
14845 | resultobj = result; | |
14846 | return resultobj; | |
14847 | fail: | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
14852 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14853 | PyObject *resultobj; | |
14854 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14855 | PyObject *result; | |
14856 | PyObject * obj0 = 0 ; | |
14857 | char *kwnames[] = { | |
14858 | (char *) "self", NULL | |
14859 | }; | |
14860 | ||
14861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
14862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14864 | { | |
14865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14866 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14867 | ||
14868 | wxPyEndAllowThreads(__tstate); | |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
14870 | } | |
14871 | resultobj = result; | |
14872 | return resultobj; | |
14873 | fail: | |
14874 | return NULL; | |
14875 | } | |
14876 | ||
14877 | ||
14878 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14879 | PyObject *resultobj; | |
14880 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14881 | long arg2 ; | |
14882 | PyObject *result; | |
14883 | PyObject * obj0 = 0 ; | |
14884 | PyObject * obj1 = 0 ; | |
14885 | char *kwnames[] = { | |
14886 | (char *) "self",(char *) "index", NULL | |
14887 | }; | |
14888 | ||
14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
14890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14892 | arg2 = (long) SWIG_AsLong(obj1); | |
14893 | if (PyErr_Occurred()) SWIG_fail; | |
14894 | { | |
14895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14896 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14897 | ||
14898 | wxPyEndAllowThreads(__tstate); | |
14899 | if (PyErr_Occurred()) SWIG_fail; | |
14900 | } | |
14901 | resultobj = result; | |
14902 | return resultobj; | |
14903 | fail: | |
14904 | return NULL; | |
14905 | } | |
14906 | ||
14907 | ||
14908 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14909 | PyObject *resultobj; | |
14910 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14911 | bool arg2 = (bool) False ; | |
14912 | size_t result; | |
14913 | PyObject * obj0 = 0 ; | |
14914 | PyObject * obj1 = 0 ; | |
14915 | char *kwnames[] = { | |
14916 | (char *) "self",(char *) "recursive", NULL | |
14917 | }; | |
14918 | ||
14919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
14920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14922 | if (obj1) { | |
14923 | arg2 = (bool) SWIG_AsBool(obj1); | |
14924 | if (PyErr_Occurred()) SWIG_fail; | |
14925 | } | |
14926 | { | |
14927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14928 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14929 | ||
14930 | wxPyEndAllowThreads(__tstate); | |
14931 | if (PyErr_Occurred()) SWIG_fail; | |
14932 | } | |
14933 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14934 | return resultobj; | |
14935 | fail: | |
14936 | return NULL; | |
14937 | } | |
14938 | ||
14939 | ||
14940 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14941 | PyObject *resultobj; | |
14942 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14943 | bool arg2 = (bool) False ; | |
14944 | size_t result; | |
14945 | PyObject * obj0 = 0 ; | |
14946 | PyObject * obj1 = 0 ; | |
14947 | char *kwnames[] = { | |
14948 | (char *) "self",(char *) "recursive", NULL | |
14949 | }; | |
14950 | ||
14951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
14952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14954 | if (obj1) { | |
14955 | arg2 = (bool) SWIG_AsBool(obj1); | |
14956 | if (PyErr_Occurred()) SWIG_fail; | |
14957 | } | |
14958 | { | |
14959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14960 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14961 | ||
14962 | wxPyEndAllowThreads(__tstate); | |
14963 | if (PyErr_Occurred()) SWIG_fail; | |
14964 | } | |
14965 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14966 | return resultobj; | |
14967 | fail: | |
14968 | return NULL; | |
14969 | } | |
14970 | ||
14971 | ||
14972 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14973 | PyObject *resultobj; | |
14974 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14975 | wxString *arg2 = 0 ; | |
14976 | bool result; | |
14977 | bool temp2 = False ; | |
14978 | PyObject * obj0 = 0 ; | |
14979 | PyObject * obj1 = 0 ; | |
14980 | char *kwnames[] = { | |
14981 | (char *) "self",(char *) "name", NULL | |
14982 | }; | |
14983 | ||
14984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
14985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14987 | { | |
14988 | arg2 = wxString_in_helper(obj1); | |
14989 | if (arg2 == NULL) SWIG_fail; | |
14990 | temp2 = True; | |
14991 | } | |
14992 | { | |
14993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14994 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
14995 | ||
14996 | wxPyEndAllowThreads(__tstate); | |
14997 | if (PyErr_Occurred()) SWIG_fail; | |
14998 | } | |
14999 | { | |
15000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15001 | } | |
15002 | { | |
15003 | if (temp2) | |
15004 | delete arg2; | |
15005 | } | |
15006 | return resultobj; | |
15007 | fail: | |
15008 | { | |
15009 | if (temp2) | |
15010 | delete arg2; | |
15011 | } | |
15012 | return NULL; | |
15013 | } | |
15014 | ||
15015 | ||
15016 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15017 | PyObject *resultobj; | |
15018 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15019 | wxString *arg2 = 0 ; | |
15020 | bool result; | |
15021 | bool temp2 = False ; | |
15022 | PyObject * obj0 = 0 ; | |
15023 | PyObject * obj1 = 0 ; | |
15024 | char *kwnames[] = { | |
15025 | (char *) "self",(char *) "name", NULL | |
15026 | }; | |
15027 | ||
15028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15031 | { | |
15032 | arg2 = wxString_in_helper(obj1); | |
15033 | if (arg2 == NULL) SWIG_fail; | |
15034 | temp2 = True; | |
15035 | } | |
15036 | { | |
15037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15038 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15039 | ||
15040 | wxPyEndAllowThreads(__tstate); | |
15041 | if (PyErr_Occurred()) SWIG_fail; | |
15042 | } | |
15043 | { | |
15044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15045 | } | |
15046 | { | |
15047 | if (temp2) | |
15048 | delete arg2; | |
15049 | } | |
15050 | return resultobj; | |
15051 | fail: | |
15052 | { | |
15053 | if (temp2) | |
15054 | delete arg2; | |
15055 | } | |
15056 | return NULL; | |
15057 | } | |
15058 | ||
15059 | ||
15060 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15061 | PyObject *resultobj; | |
15062 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15063 | wxString *arg2 = 0 ; | |
15064 | bool result; | |
15065 | bool temp2 = False ; | |
15066 | PyObject * obj0 = 0 ; | |
15067 | PyObject * obj1 = 0 ; | |
15068 | char *kwnames[] = { | |
15069 | (char *) "self",(char *) "name", NULL | |
15070 | }; | |
15071 | ||
15072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15075 | { | |
15076 | arg2 = wxString_in_helper(obj1); | |
15077 | if (arg2 == NULL) SWIG_fail; | |
15078 | temp2 = True; | |
15079 | } | |
15080 | { | |
15081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15082 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15083 | ||
15084 | wxPyEndAllowThreads(__tstate); | |
15085 | if (PyErr_Occurred()) SWIG_fail; | |
15086 | } | |
15087 | { | |
15088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15089 | } | |
15090 | { | |
15091 | if (temp2) | |
15092 | delete arg2; | |
15093 | } | |
15094 | return resultobj; | |
15095 | fail: | |
15096 | { | |
15097 | if (temp2) | |
15098 | delete arg2; | |
15099 | } | |
15100 | return NULL; | |
15101 | } | |
15102 | ||
15103 | ||
15104 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15105 | PyObject *resultobj; | |
15106 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15107 | wxString *arg2 = 0 ; | |
15108 | int result; | |
15109 | bool temp2 = False ; | |
15110 | PyObject * obj0 = 0 ; | |
15111 | PyObject * obj1 = 0 ; | |
15112 | char *kwnames[] = { | |
15113 | (char *) "self",(char *) "name", NULL | |
15114 | }; | |
15115 | ||
15116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15119 | { | |
15120 | arg2 = wxString_in_helper(obj1); | |
15121 | if (arg2 == NULL) SWIG_fail; | |
15122 | temp2 = True; | |
15123 | } | |
15124 | { | |
15125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15126 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15127 | ||
15128 | wxPyEndAllowThreads(__tstate); | |
15129 | if (PyErr_Occurred()) SWIG_fail; | |
15130 | } | |
15131 | resultobj = SWIG_FromInt((int)result); | |
15132 | { | |
15133 | if (temp2) | |
15134 | delete arg2; | |
15135 | } | |
15136 | return resultobj; | |
15137 | fail: | |
15138 | { | |
15139 | if (temp2) | |
15140 | delete arg2; | |
15141 | } | |
15142 | return NULL; | |
15143 | } | |
15144 | ||
15145 | ||
15146 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15147 | PyObject *resultobj; | |
15148 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15149 | wxString *arg2 = 0 ; | |
15150 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15151 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15152 | wxString result; | |
15153 | bool temp2 = False ; | |
15154 | bool temp3 = False ; | |
15155 | PyObject * obj0 = 0 ; | |
15156 | PyObject * obj1 = 0 ; | |
15157 | PyObject * obj2 = 0 ; | |
15158 | char *kwnames[] = { | |
15159 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15160 | }; | |
15161 | ||
15162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15165 | { | |
15166 | arg2 = wxString_in_helper(obj1); | |
15167 | if (arg2 == NULL) SWIG_fail; | |
15168 | temp2 = True; | |
15169 | } | |
15170 | if (obj2) { | |
15171 | { | |
15172 | arg3 = wxString_in_helper(obj2); | |
15173 | if (arg3 == NULL) SWIG_fail; | |
15174 | temp3 = True; | |
15175 | } | |
15176 | } | |
15177 | { | |
15178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15179 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15180 | ||
15181 | wxPyEndAllowThreads(__tstate); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
15184 | { | |
15185 | #if wxUSE_UNICODE | |
15186 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15187 | #else | |
15188 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15189 | #endif | |
15190 | } | |
15191 | { | |
15192 | if (temp2) | |
15193 | delete arg2; | |
15194 | } | |
15195 | { | |
15196 | if (temp3) | |
15197 | delete arg3; | |
15198 | } | |
15199 | return resultobj; | |
15200 | fail: | |
15201 | { | |
15202 | if (temp2) | |
15203 | delete arg2; | |
15204 | } | |
15205 | { | |
15206 | if (temp3) | |
15207 | delete arg3; | |
15208 | } | |
15209 | return NULL; | |
15210 | } | |
15211 | ||
15212 | ||
15213 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15214 | PyObject *resultobj; | |
15215 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15216 | wxString *arg2 = 0 ; | |
15217 | long arg3 = (long) 0 ; | |
15218 | long result; | |
15219 | bool temp2 = False ; | |
15220 | PyObject * obj0 = 0 ; | |
15221 | PyObject * obj1 = 0 ; | |
15222 | PyObject * obj2 = 0 ; | |
15223 | char *kwnames[] = { | |
15224 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15225 | }; | |
15226 | ||
15227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15230 | { | |
15231 | arg2 = wxString_in_helper(obj1); | |
15232 | if (arg2 == NULL) SWIG_fail; | |
15233 | temp2 = True; | |
15234 | } | |
15235 | if (obj2) { | |
15236 | arg3 = (long) SWIG_AsLong(obj2); | |
15237 | if (PyErr_Occurred()) SWIG_fail; | |
15238 | } | |
15239 | { | |
15240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15241 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15242 | ||
15243 | wxPyEndAllowThreads(__tstate); | |
15244 | if (PyErr_Occurred()) SWIG_fail; | |
15245 | } | |
15246 | resultobj = SWIG_FromLong((long)result); | |
15247 | { | |
15248 | if (temp2) | |
15249 | delete arg2; | |
15250 | } | |
15251 | return resultobj; | |
15252 | fail: | |
15253 | { | |
15254 | if (temp2) | |
15255 | delete arg2; | |
15256 | } | |
15257 | return NULL; | |
15258 | } | |
15259 | ||
15260 | ||
15261 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15262 | PyObject *resultobj; | |
15263 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15264 | wxString *arg2 = 0 ; | |
15265 | double arg3 = (double) 0.0 ; | |
15266 | double result; | |
15267 | bool temp2 = False ; | |
15268 | PyObject * obj0 = 0 ; | |
15269 | PyObject * obj1 = 0 ; | |
15270 | PyObject * obj2 = 0 ; | |
15271 | char *kwnames[] = { | |
15272 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15273 | }; | |
15274 | ||
15275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15278 | { | |
15279 | arg2 = wxString_in_helper(obj1); | |
15280 | if (arg2 == NULL) SWIG_fail; | |
15281 | temp2 = True; | |
15282 | } | |
15283 | if (obj2) { | |
15284 | arg3 = (double) SWIG_AsDouble(obj2); | |
15285 | if (PyErr_Occurred()) SWIG_fail; | |
15286 | } | |
15287 | { | |
15288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15289 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15290 | ||
15291 | wxPyEndAllowThreads(__tstate); | |
15292 | if (PyErr_Occurred()) SWIG_fail; | |
15293 | } | |
15294 | resultobj = SWIG_FromDouble((double)result); | |
15295 | { | |
15296 | if (temp2) | |
15297 | delete arg2; | |
15298 | } | |
15299 | return resultobj; | |
15300 | fail: | |
15301 | { | |
15302 | if (temp2) | |
15303 | delete arg2; | |
15304 | } | |
15305 | return NULL; | |
15306 | } | |
15307 | ||
15308 | ||
15309 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15310 | PyObject *resultobj; | |
15311 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15312 | wxString *arg2 = 0 ; | |
15313 | bool arg3 = (bool) False ; | |
15314 | bool result; | |
15315 | bool temp2 = False ; | |
15316 | PyObject * obj0 = 0 ; | |
15317 | PyObject * obj1 = 0 ; | |
15318 | PyObject * obj2 = 0 ; | |
15319 | char *kwnames[] = { | |
15320 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15321 | }; | |
15322 | ||
15323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15326 | { | |
15327 | arg2 = wxString_in_helper(obj1); | |
15328 | if (arg2 == NULL) SWIG_fail; | |
15329 | temp2 = True; | |
15330 | } | |
15331 | if (obj2) { | |
15332 | arg3 = (bool) SWIG_AsBool(obj2); | |
15333 | if (PyErr_Occurred()) SWIG_fail; | |
15334 | } | |
15335 | { | |
15336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15337 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15338 | ||
15339 | wxPyEndAllowThreads(__tstate); | |
15340 | if (PyErr_Occurred()) SWIG_fail; | |
15341 | } | |
15342 | { | |
15343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15344 | } | |
15345 | { | |
15346 | if (temp2) | |
15347 | delete arg2; | |
15348 | } | |
15349 | return resultobj; | |
15350 | fail: | |
15351 | { | |
15352 | if (temp2) | |
15353 | delete arg2; | |
15354 | } | |
15355 | return NULL; | |
15356 | } | |
15357 | ||
15358 | ||
15359 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15360 | PyObject *resultobj; | |
15361 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15362 | wxString *arg2 = 0 ; | |
15363 | wxString *arg3 = 0 ; | |
15364 | bool result; | |
15365 | bool temp2 = False ; | |
15366 | bool temp3 = False ; | |
15367 | PyObject * obj0 = 0 ; | |
15368 | PyObject * obj1 = 0 ; | |
15369 | PyObject * obj2 = 0 ; | |
15370 | char *kwnames[] = { | |
15371 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15372 | }; | |
15373 | ||
15374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15377 | { | |
15378 | arg2 = wxString_in_helper(obj1); | |
15379 | if (arg2 == NULL) SWIG_fail; | |
15380 | temp2 = True; | |
15381 | } | |
15382 | { | |
15383 | arg3 = wxString_in_helper(obj2); | |
15384 | if (arg3 == NULL) SWIG_fail; | |
15385 | temp3 = True; | |
15386 | } | |
15387 | { | |
15388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15389 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15390 | ||
15391 | wxPyEndAllowThreads(__tstate); | |
15392 | if (PyErr_Occurred()) SWIG_fail; | |
15393 | } | |
15394 | { | |
15395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15396 | } | |
15397 | { | |
15398 | if (temp2) | |
15399 | delete arg2; | |
15400 | } | |
15401 | { | |
15402 | if (temp3) | |
15403 | delete arg3; | |
15404 | } | |
15405 | return resultobj; | |
15406 | fail: | |
15407 | { | |
15408 | if (temp2) | |
15409 | delete arg2; | |
15410 | } | |
15411 | { | |
15412 | if (temp3) | |
15413 | delete arg3; | |
15414 | } | |
15415 | return NULL; | |
15416 | } | |
15417 | ||
15418 | ||
15419 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15420 | PyObject *resultobj; | |
15421 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15422 | wxString *arg2 = 0 ; | |
15423 | long arg3 ; | |
15424 | bool result; | |
15425 | bool temp2 = False ; | |
15426 | PyObject * obj0 = 0 ; | |
15427 | PyObject * obj1 = 0 ; | |
15428 | PyObject * obj2 = 0 ; | |
15429 | char *kwnames[] = { | |
15430 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15431 | }; | |
15432 | ||
15433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15436 | { | |
15437 | arg2 = wxString_in_helper(obj1); | |
15438 | if (arg2 == NULL) SWIG_fail; | |
15439 | temp2 = True; | |
15440 | } | |
15441 | arg3 = (long) SWIG_AsLong(obj2); | |
15442 | if (PyErr_Occurred()) SWIG_fail; | |
15443 | { | |
15444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15445 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15446 | ||
15447 | wxPyEndAllowThreads(__tstate); | |
15448 | if (PyErr_Occurred()) SWIG_fail; | |
15449 | } | |
15450 | { | |
15451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15452 | } | |
15453 | { | |
15454 | if (temp2) | |
15455 | delete arg2; | |
15456 | } | |
15457 | return resultobj; | |
15458 | fail: | |
15459 | { | |
15460 | if (temp2) | |
15461 | delete arg2; | |
15462 | } | |
15463 | return NULL; | |
15464 | } | |
15465 | ||
15466 | ||
15467 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15468 | PyObject *resultobj; | |
15469 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15470 | wxString *arg2 = 0 ; | |
15471 | double arg3 ; | |
15472 | bool result; | |
15473 | bool temp2 = False ; | |
15474 | PyObject * obj0 = 0 ; | |
15475 | PyObject * obj1 = 0 ; | |
15476 | PyObject * obj2 = 0 ; | |
15477 | char *kwnames[] = { | |
15478 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15479 | }; | |
15480 | ||
15481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15484 | { | |
15485 | arg2 = wxString_in_helper(obj1); | |
15486 | if (arg2 == NULL) SWIG_fail; | |
15487 | temp2 = True; | |
15488 | } | |
15489 | arg3 = (double) SWIG_AsDouble(obj2); | |
15490 | if (PyErr_Occurred()) SWIG_fail; | |
15491 | { | |
15492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15493 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15494 | ||
15495 | wxPyEndAllowThreads(__tstate); | |
15496 | if (PyErr_Occurred()) SWIG_fail; | |
15497 | } | |
15498 | { | |
15499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15500 | } | |
15501 | { | |
15502 | if (temp2) | |
15503 | delete arg2; | |
15504 | } | |
15505 | return resultobj; | |
15506 | fail: | |
15507 | { | |
15508 | if (temp2) | |
15509 | delete arg2; | |
15510 | } | |
15511 | return NULL; | |
15512 | } | |
15513 | ||
15514 | ||
15515 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15516 | PyObject *resultobj; | |
15517 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15518 | wxString *arg2 = 0 ; | |
15519 | bool arg3 ; | |
15520 | bool result; | |
15521 | bool temp2 = False ; | |
15522 | PyObject * obj0 = 0 ; | |
15523 | PyObject * obj1 = 0 ; | |
15524 | PyObject * obj2 = 0 ; | |
15525 | char *kwnames[] = { | |
15526 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15527 | }; | |
15528 | ||
15529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15532 | { | |
15533 | arg2 = wxString_in_helper(obj1); | |
15534 | if (arg2 == NULL) SWIG_fail; | |
15535 | temp2 = True; | |
15536 | } | |
15537 | arg3 = (bool) SWIG_AsBool(obj2); | |
15538 | if (PyErr_Occurred()) SWIG_fail; | |
15539 | { | |
15540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15541 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15542 | ||
15543 | wxPyEndAllowThreads(__tstate); | |
15544 | if (PyErr_Occurred()) SWIG_fail; | |
15545 | } | |
15546 | { | |
15547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15548 | } | |
15549 | { | |
15550 | if (temp2) | |
15551 | delete arg2; | |
15552 | } | |
15553 | return resultobj; | |
15554 | fail: | |
15555 | { | |
15556 | if (temp2) | |
15557 | delete arg2; | |
15558 | } | |
15559 | return NULL; | |
15560 | } | |
15561 | ||
15562 | ||
15563 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15564 | PyObject *resultobj; | |
15565 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15566 | bool arg2 = (bool) False ; | |
15567 | bool result; | |
15568 | PyObject * obj0 = 0 ; | |
15569 | PyObject * obj1 = 0 ; | |
15570 | char *kwnames[] = { | |
15571 | (char *) "self",(char *) "currentOnly", NULL | |
15572 | }; | |
15573 | ||
15574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15577 | if (obj1) { | |
15578 | arg2 = (bool) SWIG_AsBool(obj1); | |
15579 | if (PyErr_Occurred()) SWIG_fail; | |
15580 | } | |
15581 | { | |
15582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15583 | result = (bool)(arg1)->Flush(arg2); | |
15584 | ||
15585 | wxPyEndAllowThreads(__tstate); | |
15586 | if (PyErr_Occurred()) SWIG_fail; | |
15587 | } | |
15588 | { | |
15589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15590 | } | |
15591 | return resultobj; | |
15592 | fail: | |
15593 | return NULL; | |
15594 | } | |
15595 | ||
15596 | ||
15597 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15598 | PyObject *resultobj; | |
15599 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15600 | wxString *arg2 = 0 ; | |
15601 | wxString *arg3 = 0 ; | |
15602 | bool result; | |
15603 | bool temp2 = False ; | |
15604 | bool temp3 = False ; | |
15605 | PyObject * obj0 = 0 ; | |
15606 | PyObject * obj1 = 0 ; | |
15607 | PyObject * obj2 = 0 ; | |
15608 | char *kwnames[] = { | |
15609 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15610 | }; | |
15611 | ||
15612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15615 | { | |
15616 | arg2 = wxString_in_helper(obj1); | |
15617 | if (arg2 == NULL) SWIG_fail; | |
15618 | temp2 = True; | |
15619 | } | |
15620 | { | |
15621 | arg3 = wxString_in_helper(obj2); | |
15622 | if (arg3 == NULL) SWIG_fail; | |
15623 | temp3 = True; | |
15624 | } | |
15625 | { | |
15626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15627 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15628 | ||
15629 | wxPyEndAllowThreads(__tstate); | |
15630 | if (PyErr_Occurred()) SWIG_fail; | |
15631 | } | |
15632 | { | |
15633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15634 | } | |
15635 | { | |
15636 | if (temp2) | |
15637 | delete arg2; | |
15638 | } | |
15639 | { | |
15640 | if (temp3) | |
15641 | delete arg3; | |
15642 | } | |
15643 | return resultobj; | |
15644 | fail: | |
15645 | { | |
15646 | if (temp2) | |
15647 | delete arg2; | |
15648 | } | |
15649 | { | |
15650 | if (temp3) | |
15651 | delete arg3; | |
15652 | } | |
15653 | return NULL; | |
15654 | } | |
15655 | ||
15656 | ||
15657 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15658 | PyObject *resultobj; | |
15659 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15660 | wxString *arg2 = 0 ; | |
15661 | wxString *arg3 = 0 ; | |
15662 | bool result; | |
15663 | bool temp2 = False ; | |
15664 | bool temp3 = False ; | |
15665 | PyObject * obj0 = 0 ; | |
15666 | PyObject * obj1 = 0 ; | |
15667 | PyObject * obj2 = 0 ; | |
15668 | char *kwnames[] = { | |
15669 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15670 | }; | |
15671 | ||
15672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15675 | { | |
15676 | arg2 = wxString_in_helper(obj1); | |
15677 | if (arg2 == NULL) SWIG_fail; | |
15678 | temp2 = True; | |
15679 | } | |
15680 | { | |
15681 | arg3 = wxString_in_helper(obj2); | |
15682 | if (arg3 == NULL) SWIG_fail; | |
15683 | temp3 = True; | |
15684 | } | |
15685 | { | |
15686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15687 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15688 | ||
15689 | wxPyEndAllowThreads(__tstate); | |
15690 | if (PyErr_Occurred()) SWIG_fail; | |
15691 | } | |
15692 | { | |
15693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15694 | } | |
15695 | { | |
15696 | if (temp2) | |
15697 | delete arg2; | |
15698 | } | |
15699 | { | |
15700 | if (temp3) | |
15701 | delete arg3; | |
15702 | } | |
15703 | return resultobj; | |
15704 | fail: | |
15705 | { | |
15706 | if (temp2) | |
15707 | delete arg2; | |
15708 | } | |
15709 | { | |
15710 | if (temp3) | |
15711 | delete arg3; | |
15712 | } | |
15713 | return NULL; | |
15714 | } | |
15715 | ||
15716 | ||
15717 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15718 | PyObject *resultobj; | |
15719 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15720 | wxString *arg2 = 0 ; | |
15721 | bool arg3 = (bool) True ; | |
15722 | bool result; | |
15723 | bool temp2 = False ; | |
15724 | PyObject * obj0 = 0 ; | |
15725 | PyObject * obj1 = 0 ; | |
15726 | PyObject * obj2 = 0 ; | |
15727 | char *kwnames[] = { | |
15728 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
15729 | }; | |
15730 | ||
15731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15734 | { | |
15735 | arg2 = wxString_in_helper(obj1); | |
15736 | if (arg2 == NULL) SWIG_fail; | |
15737 | temp2 = True; | |
15738 | } | |
15739 | if (obj2) { | |
15740 | arg3 = (bool) SWIG_AsBool(obj2); | |
15741 | if (PyErr_Occurred()) SWIG_fail; | |
15742 | } | |
15743 | { | |
15744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15745 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15746 | ||
15747 | wxPyEndAllowThreads(__tstate); | |
15748 | if (PyErr_Occurred()) SWIG_fail; | |
15749 | } | |
15750 | { | |
15751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15752 | } | |
15753 | { | |
15754 | if (temp2) | |
15755 | delete arg2; | |
15756 | } | |
15757 | return resultobj; | |
15758 | fail: | |
15759 | { | |
15760 | if (temp2) | |
15761 | delete arg2; | |
15762 | } | |
15763 | return NULL; | |
15764 | } | |
15765 | ||
15766 | ||
15767 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15768 | PyObject *resultobj; | |
15769 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15770 | wxString *arg2 = 0 ; | |
15771 | bool result; | |
15772 | bool temp2 = False ; | |
15773 | PyObject * obj0 = 0 ; | |
15774 | PyObject * obj1 = 0 ; | |
15775 | char *kwnames[] = { | |
15776 | (char *) "self",(char *) "key", NULL | |
15777 | }; | |
15778 | ||
15779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15782 | { | |
15783 | arg2 = wxString_in_helper(obj1); | |
15784 | if (arg2 == NULL) SWIG_fail; | |
15785 | temp2 = True; | |
15786 | } | |
15787 | { | |
15788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15789 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15790 | ||
15791 | wxPyEndAllowThreads(__tstate); | |
15792 | if (PyErr_Occurred()) SWIG_fail; | |
15793 | } | |
15794 | { | |
15795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15796 | } | |
15797 | { | |
15798 | if (temp2) | |
15799 | delete arg2; | |
15800 | } | |
15801 | return resultobj; | |
15802 | fail: | |
15803 | { | |
15804 | if (temp2) | |
15805 | delete arg2; | |
15806 | } | |
15807 | return NULL; | |
15808 | } | |
15809 | ||
15810 | ||
15811 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15812 | PyObject *resultobj; | |
15813 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15814 | bool result; | |
15815 | PyObject * obj0 = 0 ; | |
15816 | char *kwnames[] = { | |
15817 | (char *) "self", NULL | |
15818 | }; | |
15819 | ||
15820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15823 | { | |
15824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15825 | result = (bool)(arg1)->DeleteAll(); | |
15826 | ||
15827 | wxPyEndAllowThreads(__tstate); | |
15828 | if (PyErr_Occurred()) SWIG_fail; | |
15829 | } | |
15830 | { | |
15831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15832 | } | |
15833 | return resultobj; | |
15834 | fail: | |
15835 | return NULL; | |
15836 | } | |
15837 | ||
15838 | ||
15839 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15840 | PyObject *resultobj; | |
15841 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15842 | bool arg2 = (bool) True ; | |
15843 | PyObject * obj0 = 0 ; | |
15844 | PyObject * obj1 = 0 ; | |
15845 | char *kwnames[] = { | |
15846 | (char *) "self",(char *) "doIt", NULL | |
15847 | }; | |
15848 | ||
15849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15852 | if (obj1) { | |
15853 | arg2 = (bool) SWIG_AsBool(obj1); | |
15854 | if (PyErr_Occurred()) SWIG_fail; | |
15855 | } | |
15856 | { | |
15857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15858 | (arg1)->SetExpandEnvVars(arg2); | |
15859 | ||
15860 | wxPyEndAllowThreads(__tstate); | |
15861 | if (PyErr_Occurred()) SWIG_fail; | |
15862 | } | |
15863 | Py_INCREF(Py_None); resultobj = Py_None; | |
15864 | return resultobj; | |
15865 | fail: | |
15866 | return NULL; | |
15867 | } | |
15868 | ||
15869 | ||
15870 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15871 | PyObject *resultobj; | |
15872 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15873 | bool result; | |
15874 | PyObject * obj0 = 0 ; | |
15875 | char *kwnames[] = { | |
15876 | (char *) "self", NULL | |
15877 | }; | |
15878 | ||
15879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
15880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15882 | { | |
15883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15884 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
15885 | ||
15886 | wxPyEndAllowThreads(__tstate); | |
15887 | if (PyErr_Occurred()) SWIG_fail; | |
15888 | } | |
15889 | { | |
15890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15891 | } | |
15892 | return resultobj; | |
15893 | fail: | |
15894 | return NULL; | |
15895 | } | |
15896 | ||
15897 | ||
15898 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15899 | PyObject *resultobj; | |
15900 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15901 | bool arg2 = (bool) True ; | |
15902 | PyObject * obj0 = 0 ; | |
15903 | PyObject * obj1 = 0 ; | |
15904 | char *kwnames[] = { | |
15905 | (char *) "self",(char *) "doIt", NULL | |
15906 | }; | |
15907 | ||
15908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15911 | if (obj1) { | |
15912 | arg2 = (bool) SWIG_AsBool(obj1); | |
15913 | if (PyErr_Occurred()) SWIG_fail; | |
15914 | } | |
15915 | { | |
15916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15917 | (arg1)->SetRecordDefaults(arg2); | |
15918 | ||
15919 | wxPyEndAllowThreads(__tstate); | |
15920 | if (PyErr_Occurred()) SWIG_fail; | |
15921 | } | |
15922 | Py_INCREF(Py_None); resultobj = Py_None; | |
15923 | return resultobj; | |
15924 | fail: | |
15925 | return NULL; | |
15926 | } | |
15927 | ||
15928 | ||
15929 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15930 | PyObject *resultobj; | |
15931 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15932 | bool result; | |
15933 | PyObject * obj0 = 0 ; | |
15934 | char *kwnames[] = { | |
15935 | (char *) "self", NULL | |
15936 | }; | |
15937 | ||
15938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15941 | { | |
15942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15943 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15944 | ||
15945 | wxPyEndAllowThreads(__tstate); | |
15946 | if (PyErr_Occurred()) SWIG_fail; | |
15947 | } | |
15948 | { | |
15949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15950 | } | |
15951 | return resultobj; | |
15952 | fail: | |
15953 | return NULL; | |
15954 | } | |
15955 | ||
15956 | ||
15957 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15958 | PyObject *resultobj; | |
15959 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15960 | wxString *arg2 = 0 ; | |
15961 | wxString result; | |
15962 | bool temp2 = False ; | |
15963 | PyObject * obj0 = 0 ; | |
15964 | PyObject * obj1 = 0 ; | |
15965 | char *kwnames[] = { | |
15966 | (char *) "self",(char *) "str", NULL | |
15967 | }; | |
15968 | ||
15969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15972 | { | |
15973 | arg2 = wxString_in_helper(obj1); | |
15974 | if (arg2 == NULL) SWIG_fail; | |
15975 | temp2 = True; | |
15976 | } | |
15977 | { | |
15978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15979 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15980 | ||
15981 | wxPyEndAllowThreads(__tstate); | |
15982 | if (PyErr_Occurred()) SWIG_fail; | |
15983 | } | |
15984 | { | |
15985 | #if wxUSE_UNICODE | |
15986 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15987 | #else | |
15988 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15989 | #endif | |
15990 | } | |
15991 | { | |
15992 | if (temp2) | |
15993 | delete arg2; | |
15994 | } | |
15995 | return resultobj; | |
15996 | fail: | |
15997 | { | |
15998 | if (temp2) | |
15999 | delete arg2; | |
16000 | } | |
16001 | return NULL; | |
16002 | } | |
16003 | ||
16004 | ||
16005 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16006 | PyObject *resultobj; | |
16007 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16008 | wxString result; | |
16009 | PyObject * obj0 = 0 ; | |
16010 | char *kwnames[] = { | |
16011 | (char *) "self", NULL | |
16012 | }; | |
16013 | ||
16014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
16015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16017 | { | |
16018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16019 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16020 | ||
16021 | wxPyEndAllowThreads(__tstate); | |
16022 | if (PyErr_Occurred()) SWIG_fail; | |
16023 | } | |
16024 | { | |
16025 | #if wxUSE_UNICODE | |
16026 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16027 | #else | |
16028 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16029 | #endif | |
16030 | } | |
16031 | return resultobj; | |
16032 | fail: | |
16033 | return NULL; | |
16034 | } | |
16035 | ||
16036 | ||
16037 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16038 | PyObject *resultobj; | |
16039 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16040 | wxString result; | |
16041 | PyObject * obj0 = 0 ; | |
16042 | char *kwnames[] = { | |
16043 | (char *) "self", NULL | |
16044 | }; | |
16045 | ||
16046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
16047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16049 | { | |
16050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16051 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16052 | ||
16053 | wxPyEndAllowThreads(__tstate); | |
16054 | if (PyErr_Occurred()) SWIG_fail; | |
16055 | } | |
16056 | { | |
16057 | #if wxUSE_UNICODE | |
16058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16059 | #else | |
16060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16061 | #endif | |
16062 | } | |
16063 | return resultobj; | |
16064 | fail: | |
16065 | return NULL; | |
16066 | } | |
16067 | ||
16068 | ||
16069 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16070 | PyObject *resultobj; | |
16071 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16072 | wxString *arg2 = 0 ; | |
16073 | bool temp2 = False ; | |
16074 | PyObject * obj0 = 0 ; | |
16075 | PyObject * obj1 = 0 ; | |
16076 | char *kwnames[] = { | |
16077 | (char *) "self",(char *) "appName", NULL | |
16078 | }; | |
16079 | ||
16080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16083 | { | |
16084 | arg2 = wxString_in_helper(obj1); | |
16085 | if (arg2 == NULL) SWIG_fail; | |
16086 | temp2 = True; | |
16087 | } | |
16088 | { | |
16089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16090 | (arg1)->SetAppName((wxString const &)*arg2); | |
16091 | ||
16092 | wxPyEndAllowThreads(__tstate); | |
16093 | if (PyErr_Occurred()) SWIG_fail; | |
16094 | } | |
16095 | Py_INCREF(Py_None); resultobj = Py_None; | |
16096 | { | |
16097 | if (temp2) | |
16098 | delete arg2; | |
16099 | } | |
16100 | return resultobj; | |
16101 | fail: | |
16102 | { | |
16103 | if (temp2) | |
16104 | delete arg2; | |
16105 | } | |
16106 | return NULL; | |
16107 | } | |
16108 | ||
16109 | ||
16110 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16111 | PyObject *resultobj; | |
16112 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16113 | wxString *arg2 = 0 ; | |
16114 | bool temp2 = False ; | |
16115 | PyObject * obj0 = 0 ; | |
16116 | PyObject * obj1 = 0 ; | |
16117 | char *kwnames[] = { | |
16118 | (char *) "self",(char *) "vendorName", NULL | |
16119 | }; | |
16120 | ||
16121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16124 | { | |
16125 | arg2 = wxString_in_helper(obj1); | |
16126 | if (arg2 == NULL) SWIG_fail; | |
16127 | temp2 = True; | |
16128 | } | |
16129 | { | |
16130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16131 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16132 | ||
16133 | wxPyEndAllowThreads(__tstate); | |
16134 | if (PyErr_Occurred()) SWIG_fail; | |
16135 | } | |
16136 | Py_INCREF(Py_None); resultobj = Py_None; | |
16137 | { | |
16138 | if (temp2) | |
16139 | delete arg2; | |
16140 | } | |
16141 | return resultobj; | |
16142 | fail: | |
16143 | { | |
16144 | if (temp2) | |
16145 | delete arg2; | |
16146 | } | |
16147 | return NULL; | |
16148 | } | |
16149 | ||
16150 | ||
16151 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16152 | PyObject *resultobj; | |
16153 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16154 | long arg2 ; | |
16155 | PyObject * obj0 = 0 ; | |
16156 | PyObject * obj1 = 0 ; | |
16157 | char *kwnames[] = { | |
16158 | (char *) "self",(char *) "style", NULL | |
16159 | }; | |
16160 | ||
16161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16164 | arg2 = (long) SWIG_AsLong(obj1); | |
16165 | if (PyErr_Occurred()) SWIG_fail; | |
16166 | { | |
16167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16168 | (arg1)->SetStyle(arg2); | |
16169 | ||
16170 | wxPyEndAllowThreads(__tstate); | |
16171 | if (PyErr_Occurred()) SWIG_fail; | |
16172 | } | |
16173 | Py_INCREF(Py_None); resultobj = Py_None; | |
16174 | return resultobj; | |
16175 | fail: | |
16176 | return NULL; | |
16177 | } | |
16178 | ||
16179 | ||
16180 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16181 | PyObject *resultobj; | |
16182 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16183 | long result; | |
16184 | PyObject * obj0 = 0 ; | |
16185 | char *kwnames[] = { | |
16186 | (char *) "self", NULL | |
16187 | }; | |
16188 | ||
16189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16192 | { | |
16193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16194 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16195 | ||
16196 | wxPyEndAllowThreads(__tstate); | |
16197 | if (PyErr_Occurred()) SWIG_fail; | |
16198 | } | |
16199 | resultobj = SWIG_FromLong((long)result); | |
16200 | return resultobj; | |
16201 | fail: | |
16202 | return NULL; | |
16203 | } | |
16204 | ||
16205 | ||
16206 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16207 | PyObject *obj; | |
16208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16209 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16210 | Py_INCREF(obj); | |
16211 | return Py_BuildValue((char *)""); | |
16212 | } | |
16213 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16214 | PyObject *resultobj; | |
16215 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16216 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16217 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16218 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16219 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16220 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16221 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16222 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16223 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16224 | wxConfig *result; | |
16225 | bool temp1 = False ; | |
16226 | bool temp2 = False ; | |
16227 | bool temp3 = False ; | |
16228 | bool temp4 = False ; | |
16229 | PyObject * obj0 = 0 ; | |
16230 | PyObject * obj1 = 0 ; | |
16231 | PyObject * obj2 = 0 ; | |
16232 | PyObject * obj3 = 0 ; | |
16233 | PyObject * obj4 = 0 ; | |
16234 | char *kwnames[] = { | |
16235 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16236 | }; | |
16237 | ||
16238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16239 | if (obj0) { | |
16240 | { | |
16241 | arg1 = wxString_in_helper(obj0); | |
16242 | if (arg1 == NULL) SWIG_fail; | |
16243 | temp1 = True; | |
16244 | } | |
16245 | } | |
16246 | if (obj1) { | |
16247 | { | |
16248 | arg2 = wxString_in_helper(obj1); | |
16249 | if (arg2 == NULL) SWIG_fail; | |
16250 | temp2 = True; | |
16251 | } | |
16252 | } | |
16253 | if (obj2) { | |
16254 | { | |
16255 | arg3 = wxString_in_helper(obj2); | |
16256 | if (arg3 == NULL) SWIG_fail; | |
16257 | temp3 = True; | |
16258 | } | |
16259 | } | |
16260 | if (obj3) { | |
16261 | { | |
16262 | arg4 = wxString_in_helper(obj3); | |
16263 | if (arg4 == NULL) SWIG_fail; | |
16264 | temp4 = True; | |
16265 | } | |
16266 | } | |
16267 | if (obj4) { | |
16268 | arg5 = (long) SWIG_AsLong(obj4); | |
16269 | if (PyErr_Occurred()) SWIG_fail; | |
16270 | } | |
16271 | { | |
16272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16273 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16274 | ||
16275 | wxPyEndAllowThreads(__tstate); | |
16276 | if (PyErr_Occurred()) SWIG_fail; | |
16277 | } | |
16278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16279 | { | |
16280 | if (temp1) | |
16281 | delete arg1; | |
16282 | } | |
16283 | { | |
16284 | if (temp2) | |
16285 | delete arg2; | |
16286 | } | |
16287 | { | |
16288 | if (temp3) | |
16289 | delete arg3; | |
16290 | } | |
16291 | { | |
16292 | if (temp4) | |
16293 | delete arg4; | |
16294 | } | |
16295 | return resultobj; | |
16296 | fail: | |
16297 | { | |
16298 | if (temp1) | |
16299 | delete arg1; | |
16300 | } | |
16301 | { | |
16302 | if (temp2) | |
16303 | delete arg2; | |
16304 | } | |
16305 | { | |
16306 | if (temp3) | |
16307 | delete arg3; | |
16308 | } | |
16309 | { | |
16310 | if (temp4) | |
16311 | delete arg4; | |
16312 | } | |
16313 | return NULL; | |
16314 | } | |
16315 | ||
16316 | ||
16317 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16318 | PyObject *resultobj; | |
16319 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16320 | PyObject * obj0 = 0 ; | |
16321 | char *kwnames[] = { | |
16322 | (char *) "self", NULL | |
16323 | }; | |
16324 | ||
16325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
16327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16328 | { | |
16329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16330 | delete arg1; | |
16331 | ||
16332 | wxPyEndAllowThreads(__tstate); | |
16333 | if (PyErr_Occurred()) SWIG_fail; | |
16334 | } | |
16335 | Py_INCREF(Py_None); resultobj = Py_None; | |
16336 | return resultobj; | |
16337 | fail: | |
16338 | return NULL; | |
16339 | } | |
16340 | ||
16341 | ||
16342 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16343 | PyObject *obj; | |
16344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16345 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16346 | Py_INCREF(obj); | |
16347 | return Py_BuildValue((char *)""); | |
16348 | } | |
16349 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16350 | PyObject *resultobj; | |
16351 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16352 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16353 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16354 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16355 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16356 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16357 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16358 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16359 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16360 | wxFileConfig *result; | |
16361 | bool temp1 = False ; | |
16362 | bool temp2 = False ; | |
16363 | bool temp3 = False ; | |
16364 | bool temp4 = False ; | |
16365 | PyObject * obj0 = 0 ; | |
16366 | PyObject * obj1 = 0 ; | |
16367 | PyObject * obj2 = 0 ; | |
16368 | PyObject * obj3 = 0 ; | |
16369 | PyObject * obj4 = 0 ; | |
16370 | char *kwnames[] = { | |
16371 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16372 | }; | |
16373 | ||
16374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16375 | if (obj0) { | |
16376 | { | |
16377 | arg1 = wxString_in_helper(obj0); | |
16378 | if (arg1 == NULL) SWIG_fail; | |
16379 | temp1 = True; | |
16380 | } | |
16381 | } | |
16382 | if (obj1) { | |
16383 | { | |
16384 | arg2 = wxString_in_helper(obj1); | |
16385 | if (arg2 == NULL) SWIG_fail; | |
16386 | temp2 = True; | |
16387 | } | |
16388 | } | |
16389 | if (obj2) { | |
16390 | { | |
16391 | arg3 = wxString_in_helper(obj2); | |
16392 | if (arg3 == NULL) SWIG_fail; | |
16393 | temp3 = True; | |
16394 | } | |
16395 | } | |
16396 | if (obj3) { | |
16397 | { | |
16398 | arg4 = wxString_in_helper(obj3); | |
16399 | if (arg4 == NULL) SWIG_fail; | |
16400 | temp4 = True; | |
16401 | } | |
16402 | } | |
16403 | if (obj4) { | |
16404 | arg5 = (long) SWIG_AsLong(obj4); | |
16405 | if (PyErr_Occurred()) SWIG_fail; | |
16406 | } | |
16407 | { | |
16408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16409 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16410 | ||
16411 | wxPyEndAllowThreads(__tstate); | |
16412 | if (PyErr_Occurred()) SWIG_fail; | |
16413 | } | |
16414 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
16415 | { | |
16416 | if (temp1) | |
16417 | delete arg1; | |
16418 | } | |
16419 | { | |
16420 | if (temp2) | |
16421 | delete arg2; | |
16422 | } | |
16423 | { | |
16424 | if (temp3) | |
16425 | delete arg3; | |
16426 | } | |
16427 | { | |
16428 | if (temp4) | |
16429 | delete arg4; | |
16430 | } | |
16431 | return resultobj; | |
16432 | fail: | |
16433 | { | |
16434 | if (temp1) | |
16435 | delete arg1; | |
16436 | } | |
16437 | { | |
16438 | if (temp2) | |
16439 | delete arg2; | |
16440 | } | |
16441 | { | |
16442 | if (temp3) | |
16443 | delete arg3; | |
16444 | } | |
16445 | { | |
16446 | if (temp4) | |
16447 | delete arg4; | |
16448 | } | |
16449 | return NULL; | |
16450 | } | |
16451 | ||
16452 | ||
16453 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16454 | PyObject *resultobj; | |
16455 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16456 | PyObject * obj0 = 0 ; | |
16457 | char *kwnames[] = { | |
16458 | (char *) "self", NULL | |
16459 | }; | |
16460 | ||
16461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
16463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16464 | { | |
16465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16466 | delete arg1; | |
16467 | ||
16468 | wxPyEndAllowThreads(__tstate); | |
16469 | if (PyErr_Occurred()) SWIG_fail; | |
16470 | } | |
16471 | Py_INCREF(Py_None); resultobj = Py_None; | |
16472 | return resultobj; | |
16473 | fail: | |
16474 | return NULL; | |
16475 | } | |
16476 | ||
16477 | ||
16478 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16479 | PyObject *obj; | |
16480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16481 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16482 | Py_INCREF(obj); | |
16483 | return Py_BuildValue((char *)""); | |
16484 | } | |
16485 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16486 | PyObject *resultobj; | |
16487 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16488 | wxString *arg2 = 0 ; | |
16489 | wxConfigPathChanger *result; | |
16490 | bool temp2 = False ; | |
16491 | PyObject * obj0 = 0 ; | |
16492 | PyObject * obj1 = 0 ; | |
16493 | char *kwnames[] = { | |
16494 | (char *) "config",(char *) "entry", NULL | |
16495 | }; | |
16496 | ||
16497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
16498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16500 | { | |
16501 | arg2 = wxString_in_helper(obj1); | |
16502 | if (arg2 == NULL) SWIG_fail; | |
16503 | temp2 = True; | |
16504 | } | |
16505 | { | |
16506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16507 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16508 | ||
16509 | wxPyEndAllowThreads(__tstate); | |
16510 | if (PyErr_Occurred()) SWIG_fail; | |
16511 | } | |
16512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
16513 | { | |
16514 | if (temp2) | |
16515 | delete arg2; | |
16516 | } | |
16517 | return resultobj; | |
16518 | fail: | |
16519 | { | |
16520 | if (temp2) | |
16521 | delete arg2; | |
16522 | } | |
16523 | return NULL; | |
16524 | } | |
16525 | ||
16526 | ||
16527 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16528 | PyObject *resultobj; | |
16529 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16530 | PyObject * obj0 = 0 ; | |
16531 | char *kwnames[] = { | |
16532 | (char *) "self", NULL | |
16533 | }; | |
16534 | ||
16535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
16536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16538 | { | |
16539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16540 | delete arg1; | |
16541 | ||
16542 | wxPyEndAllowThreads(__tstate); | |
16543 | if (PyErr_Occurred()) SWIG_fail; | |
16544 | } | |
16545 | Py_INCREF(Py_None); resultobj = Py_None; | |
16546 | return resultobj; | |
16547 | fail: | |
16548 | return NULL; | |
16549 | } | |
16550 | ||
16551 | ||
16552 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16553 | PyObject *resultobj; | |
16554 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16555 | wxString *result; | |
16556 | PyObject * obj0 = 0 ; | |
16557 | char *kwnames[] = { | |
16558 | (char *) "self", NULL | |
16559 | }; | |
16560 | ||
16561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
16562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16564 | { | |
16565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16566 | { | |
16567 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16568 | result = (wxString *) &_result_ref; | |
16569 | } | |
16570 | ||
16571 | wxPyEndAllowThreads(__tstate); | |
16572 | if (PyErr_Occurred()) SWIG_fail; | |
16573 | } | |
16574 | { | |
16575 | #if wxUSE_UNICODE | |
16576 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16577 | #else | |
16578 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16579 | #endif | |
16580 | } | |
16581 | return resultobj; | |
16582 | fail: | |
16583 | return NULL; | |
16584 | } | |
16585 | ||
16586 | ||
16587 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16588 | PyObject *obj; | |
16589 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16590 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16591 | Py_INCREF(obj); | |
16592 | return Py_BuildValue((char *)""); | |
16593 | } | |
16594 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16595 | PyObject *resultobj; | |
16596 | wxString *arg1 = 0 ; | |
16597 | wxString result; | |
16598 | bool temp1 = False ; | |
16599 | PyObject * obj0 = 0 ; | |
16600 | char *kwnames[] = { | |
16601 | (char *) "sz", NULL | |
16602 | }; | |
16603 | ||
16604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16605 | { | |
16606 | arg1 = wxString_in_helper(obj0); | |
16607 | if (arg1 == NULL) SWIG_fail; | |
16608 | temp1 = True; | |
16609 | } | |
16610 | { | |
16611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16612 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16613 | ||
16614 | wxPyEndAllowThreads(__tstate); | |
16615 | if (PyErr_Occurred()) SWIG_fail; | |
16616 | } | |
16617 | { | |
16618 | #if wxUSE_UNICODE | |
16619 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16620 | #else | |
16621 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16622 | #endif | |
16623 | } | |
16624 | { | |
16625 | if (temp1) | |
16626 | delete arg1; | |
16627 | } | |
16628 | return resultobj; | |
16629 | fail: | |
16630 | { | |
16631 | if (temp1) | |
16632 | delete arg1; | |
16633 | } | |
16634 | return NULL; | |
16635 | } | |
16636 | ||
16637 | ||
16638 | static int _wrap_DateFormatStr_set(PyObject *_val) { | |
16639 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16640 | return 1; | |
16641 | } | |
16642 | ||
16643 | ||
16644 | static PyObject *_wrap_DateFormatStr_get() { | |
16645 | PyObject *pyobj; | |
16646 | ||
16647 | { | |
16648 | #if wxUSE_UNICODE | |
16649 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16650 | #else | |
16651 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16652 | #endif | |
16653 | } | |
16654 | return pyobj; | |
16655 | } | |
16656 | ||
16657 | ||
16658 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16659 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16660 | return 1; | |
16661 | } | |
16662 | ||
16663 | ||
16664 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16665 | PyObject *pyobj; | |
16666 | ||
16667 | { | |
16668 | #if wxUSE_UNICODE | |
16669 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16670 | #else | |
16671 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16672 | #endif | |
16673 | } | |
16674 | return pyobj; | |
16675 | } | |
16676 | ||
16677 | ||
16678 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16679 | PyObject *resultobj; | |
16680 | int arg1 ; | |
16681 | PyObject * obj0 = 0 ; | |
16682 | char *kwnames[] = { | |
16683 | (char *) "country", NULL | |
16684 | }; | |
16685 | ||
16686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
16687 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16688 | if (PyErr_Occurred()) SWIG_fail; | |
16689 | { | |
16690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16691 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16692 | ||
16693 | wxPyEndAllowThreads(__tstate); | |
16694 | if (PyErr_Occurred()) SWIG_fail; | |
16695 | } | |
16696 | Py_INCREF(Py_None); resultobj = Py_None; | |
16697 | return resultobj; | |
16698 | fail: | |
16699 | return NULL; | |
16700 | } | |
16701 | ||
16702 | ||
16703 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16704 | PyObject *resultobj; | |
16705 | int result; | |
16706 | char *kwnames[] = { | |
16707 | NULL | |
16708 | }; | |
16709 | ||
16710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16711 | { | |
16712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16713 | result = (int)wxDateTime::GetCountry(); | |
16714 | ||
16715 | wxPyEndAllowThreads(__tstate); | |
16716 | if (PyErr_Occurred()) SWIG_fail; | |
16717 | } | |
16718 | resultobj = SWIG_FromInt((int)result); | |
16719 | return resultobj; | |
16720 | fail: | |
16721 | return NULL; | |
16722 | } | |
16723 | ||
16724 | ||
16725 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16726 | PyObject *resultobj; | |
16727 | int arg1 = (int) wxDateTime::Country_Default ; | |
16728 | bool result; | |
16729 | PyObject * obj0 = 0 ; | |
16730 | char *kwnames[] = { | |
16731 | (char *) "country", NULL | |
16732 | }; | |
16733 | ||
16734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
16735 | if (obj0) { | |
16736 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
16738 | } | |
16739 | { | |
16740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16741 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16742 | ||
16743 | wxPyEndAllowThreads(__tstate); | |
16744 | if (PyErr_Occurred()) SWIG_fail; | |
16745 | } | |
16746 | { | |
16747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16748 | } | |
16749 | return resultobj; | |
16750 | fail: | |
16751 | return NULL; | |
16752 | } | |
16753 | ||
16754 | ||
16755 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16756 | PyObject *resultobj; | |
16757 | int arg1 = (int) wxDateTime::Gregorian ; | |
16758 | int result; | |
16759 | PyObject * obj0 = 0 ; | |
16760 | char *kwnames[] = { | |
16761 | (char *) "cal", NULL | |
16762 | }; | |
16763 | ||
16764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
16765 | if (obj0) { | |
16766 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16767 | if (PyErr_Occurred()) SWIG_fail; | |
16768 | } | |
16769 | { | |
16770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16771 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16772 | ||
16773 | wxPyEndAllowThreads(__tstate); | |
16774 | if (PyErr_Occurred()) SWIG_fail; | |
16775 | } | |
16776 | resultobj = SWIG_FromInt((int)result); | |
16777 | return resultobj; | |
16778 | fail: | |
16779 | return NULL; | |
16780 | } | |
16781 | ||
16782 | ||
16783 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16784 | PyObject *resultobj; | |
16785 | int arg1 ; | |
16786 | int result; | |
16787 | PyObject * obj0 = 0 ; | |
16788 | char *kwnames[] = { | |
16789 | (char *) "year", NULL | |
16790 | }; | |
16791 | ||
16792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
16793 | arg1 = (int) SWIG_AsInt(obj0); | |
16794 | if (PyErr_Occurred()) SWIG_fail; | |
16795 | { | |
16796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16797 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16798 | ||
16799 | wxPyEndAllowThreads(__tstate); | |
16800 | if (PyErr_Occurred()) SWIG_fail; | |
16801 | } | |
16802 | resultobj = SWIG_FromInt((int)result); | |
16803 | return resultobj; | |
16804 | fail: | |
16805 | return NULL; | |
16806 | } | |
16807 | ||
16808 | ||
16809 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16810 | PyObject *resultobj; | |
16811 | int arg1 = (int) wxDateTime::Gregorian ; | |
16812 | int result; | |
16813 | PyObject * obj0 = 0 ; | |
16814 | char *kwnames[] = { | |
16815 | (char *) "cal", NULL | |
16816 | }; | |
16817 | ||
16818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
16819 | if (obj0) { | |
16820 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | } | |
16823 | { | |
16824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16825 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16826 | ||
16827 | wxPyEndAllowThreads(__tstate); | |
16828 | if (PyErr_Occurred()) SWIG_fail; | |
16829 | } | |
16830 | resultobj = SWIG_FromInt((int)result); | |
16831 | return resultobj; | |
16832 | fail: | |
16833 | return NULL; | |
16834 | } | |
16835 | ||
16836 | ||
16837 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16838 | PyObject *resultobj; | |
16839 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16840 | int arg2 = (int) wxDateTime::Gregorian ; | |
16841 | bool result; | |
16842 | PyObject * obj0 = 0 ; | |
16843 | PyObject * obj1 = 0 ; | |
16844 | char *kwnames[] = { | |
16845 | (char *) "year",(char *) "cal", NULL | |
16846 | }; | |
16847 | ||
16848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
16849 | if (obj0) { | |
16850 | arg1 = (int) SWIG_AsInt(obj0); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
16853 | if (obj1) { | |
16854 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16855 | if (PyErr_Occurred()) SWIG_fail; | |
16856 | } | |
16857 | { | |
16858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16859 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16860 | ||
16861 | wxPyEndAllowThreads(__tstate); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
16864 | { | |
16865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16866 | } | |
16867 | return resultobj; | |
16868 | fail: | |
16869 | return NULL; | |
16870 | } | |
16871 | ||
16872 | ||
16873 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16874 | PyObject *resultobj; | |
16875 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16876 | int result; | |
16877 | PyObject * obj0 = 0 ; | |
16878 | char *kwnames[] = { | |
16879 | (char *) "year", NULL | |
16880 | }; | |
16881 | ||
16882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
16883 | if (obj0) { | |
16884 | arg1 = (int) SWIG_AsInt(obj0); | |
16885 | if (PyErr_Occurred()) SWIG_fail; | |
16886 | } | |
16887 | { | |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16889 | result = (int)wxDateTime::GetCentury(arg1); | |
16890 | ||
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | resultobj = SWIG_FromInt((int)result); | |
16895 | return resultobj; | |
16896 | fail: | |
16897 | return NULL; | |
16898 | } | |
16899 | ||
16900 | ||
16901 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16902 | PyObject *resultobj; | |
16903 | int arg1 ; | |
16904 | int arg2 = (int) wxDateTime::Gregorian ; | |
16905 | int result; | |
16906 | PyObject * obj0 = 0 ; | |
16907 | PyObject * obj1 = 0 ; | |
16908 | char *kwnames[] = { | |
16909 | (char *) "year",(char *) "cal", NULL | |
16910 | }; | |
16911 | ||
16912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
16913 | arg1 = (int) SWIG_AsInt(obj0); | |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
16915 | if (obj1) { | |
16916 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16917 | if (PyErr_Occurred()) SWIG_fail; | |
16918 | } | |
16919 | { | |
16920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16921 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
16922 | ||
16923 | wxPyEndAllowThreads(__tstate); | |
16924 | if (PyErr_Occurred()) SWIG_fail; | |
16925 | } | |
16926 | resultobj = SWIG_FromInt((int)result); | |
16927 | return resultobj; | |
16928 | fail: | |
16929 | return NULL; | |
16930 | } | |
16931 | ||
16932 | ||
16933 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16934 | PyObject *resultobj; | |
16935 | int arg1 ; | |
16936 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16937 | int arg3 = (int) wxDateTime::Gregorian ; | |
16938 | int result; | |
16939 | PyObject * obj0 = 0 ; | |
16940 | PyObject * obj1 = 0 ; | |
16941 | PyObject * obj2 = 0 ; | |
16942 | char *kwnames[] = { | |
16943 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16944 | }; | |
16945 | ||
16946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16947 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
16948 | if (PyErr_Occurred()) SWIG_fail; | |
16949 | if (obj1) { | |
16950 | arg2 = (int) SWIG_AsInt(obj1); | |
16951 | if (PyErr_Occurred()) SWIG_fail; | |
16952 | } | |
16953 | if (obj2) { | |
16954 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); | |
16955 | if (PyErr_Occurred()) SWIG_fail; | |
16956 | } | |
16957 | { | |
16958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16959 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
16960 | ||
16961 | wxPyEndAllowThreads(__tstate); | |
16962 | if (PyErr_Occurred()) SWIG_fail; | |
16963 | } | |
16964 | resultobj = SWIG_FromInt((int)result); | |
16965 | return resultobj; | |
16966 | fail: | |
16967 | return NULL; | |
16968 | } | |
16969 | ||
16970 | ||
16971 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16972 | PyObject *resultobj; | |
16973 | int arg1 ; | |
16974 | int arg2 = (int) wxDateTime::Name_Full ; | |
16975 | wxString result; | |
16976 | PyObject * obj0 = 0 ; | |
16977 | PyObject * obj1 = 0 ; | |
16978 | char *kwnames[] = { | |
16979 | (char *) "month",(char *) "flags", NULL | |
16980 | }; | |
16981 | ||
16982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
16983 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
16984 | if (PyErr_Occurred()) SWIG_fail; | |
16985 | if (obj1) { | |
16986 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
16987 | if (PyErr_Occurred()) SWIG_fail; | |
16988 | } | |
16989 | { | |
16990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16991 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
16992 | ||
16993 | wxPyEndAllowThreads(__tstate); | |
16994 | if (PyErr_Occurred()) SWIG_fail; | |
16995 | } | |
16996 | { | |
16997 | #if wxUSE_UNICODE | |
16998 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16999 | #else | |
17000 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17001 | #endif | |
17002 | } | |
17003 | return resultobj; | |
17004 | fail: | |
17005 | return NULL; | |
17006 | } | |
17007 | ||
17008 | ||
17009 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17010 | PyObject *resultobj; | |
17011 | int arg1 ; | |
17012 | int arg2 = (int) wxDateTime::Name_Full ; | |
17013 | wxString result; | |
17014 | PyObject * obj0 = 0 ; | |
17015 | PyObject * obj1 = 0 ; | |
17016 | char *kwnames[] = { | |
17017 | (char *) "weekday",(char *) "flags", NULL | |
17018 | }; | |
17019 | ||
17020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
17021 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); | |
17022 | if (PyErr_Occurred()) SWIG_fail; | |
17023 | if (obj1) { | |
17024 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
17025 | if (PyErr_Occurred()) SWIG_fail; | |
17026 | } | |
17027 | { | |
17028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17029 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17030 | ||
17031 | wxPyEndAllowThreads(__tstate); | |
17032 | if (PyErr_Occurred()) SWIG_fail; | |
17033 | } | |
17034 | { | |
17035 | #if wxUSE_UNICODE | |
17036 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17037 | #else | |
17038 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17039 | #endif | |
17040 | } | |
17041 | return resultobj; | |
17042 | fail: | |
17043 | return NULL; | |
17044 | } | |
17045 | ||
17046 | ||
17047 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17048 | PyObject *resultobj; | |
17049 | wxString *arg1 = (wxString *) 0 ; | |
17050 | wxString *arg2 = (wxString *) 0 ; | |
17051 | bool temp1 = False ; | |
17052 | bool temp2 = False ; | |
17053 | PyObject * obj0 = 0 ; | |
17054 | PyObject * obj1 = 0 ; | |
17055 | char *kwnames[] = { | |
17056 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17057 | }; | |
17058 | ||
17059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
17060 | { | |
17061 | arg1 = wxString_in_helper(obj0); | |
17062 | if (arg1 == NULL) SWIG_fail; | |
17063 | temp1 = True; | |
17064 | } | |
17065 | { | |
17066 | arg2 = wxString_in_helper(obj1); | |
17067 | if (arg2 == NULL) SWIG_fail; | |
17068 | temp2 = True; | |
17069 | } | |
17070 | { | |
17071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17072 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17073 | ||
17074 | wxPyEndAllowThreads(__tstate); | |
17075 | if (PyErr_Occurred()) SWIG_fail; | |
17076 | } | |
17077 | Py_INCREF(Py_None); resultobj = Py_None; | |
17078 | { | |
17079 | if (temp1) | |
17080 | delete arg1; | |
17081 | } | |
17082 | { | |
17083 | if (temp2) | |
17084 | delete arg2; | |
17085 | } | |
17086 | return resultobj; | |
17087 | fail: | |
17088 | { | |
17089 | if (temp1) | |
17090 | delete arg1; | |
17091 | } | |
17092 | { | |
17093 | if (temp2) | |
17094 | delete arg2; | |
17095 | } | |
17096 | return NULL; | |
17097 | } | |
17098 | ||
17099 | ||
17100 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17101 | PyObject *resultobj; | |
17102 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17103 | int arg2 = (int) wxDateTime::Country_Default ; | |
17104 | bool result; | |
17105 | PyObject * obj0 = 0 ; | |
17106 | PyObject * obj1 = 0 ; | |
17107 | char *kwnames[] = { | |
17108 | (char *) "year",(char *) "country", NULL | |
17109 | }; | |
17110 | ||
17111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17112 | if (obj0) { | |
17113 | arg1 = (int) SWIG_AsInt(obj0); | |
17114 | if (PyErr_Occurred()) SWIG_fail; | |
17115 | } | |
17116 | if (obj1) { | |
17117 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17118 | if (PyErr_Occurred()) SWIG_fail; | |
17119 | } | |
17120 | { | |
17121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17122 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17123 | ||
17124 | wxPyEndAllowThreads(__tstate); | |
17125 | if (PyErr_Occurred()) SWIG_fail; | |
17126 | } | |
17127 | { | |
17128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17129 | } | |
17130 | return resultobj; | |
17131 | fail: | |
17132 | return NULL; | |
17133 | } | |
17134 | ||
17135 | ||
17136 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17137 | PyObject *resultobj; | |
17138 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17139 | int arg2 = (int) wxDateTime::Country_Default ; | |
17140 | wxDateTime result; | |
17141 | PyObject * obj0 = 0 ; | |
17142 | PyObject * obj1 = 0 ; | |
17143 | char *kwnames[] = { | |
17144 | (char *) "year",(char *) "country", NULL | |
17145 | }; | |
17146 | ||
17147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17148 | if (obj0) { | |
17149 | arg1 = (int) SWIG_AsInt(obj0); | |
17150 | if (PyErr_Occurred()) SWIG_fail; | |
17151 | } | |
17152 | if (obj1) { | |
17153 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17154 | if (PyErr_Occurred()) SWIG_fail; | |
17155 | } | |
17156 | { | |
17157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17158 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17159 | ||
17160 | wxPyEndAllowThreads(__tstate); | |
17161 | if (PyErr_Occurred()) SWIG_fail; | |
17162 | } | |
17163 | { | |
17164 | wxDateTime * resultptr; | |
17165 | resultptr = new wxDateTime((wxDateTime &) result); | |
17166 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17167 | } | |
17168 | return resultobj; | |
17169 | fail: | |
17170 | return NULL; | |
17171 | } | |
17172 | ||
17173 | ||
17174 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17175 | PyObject *resultobj; | |
17176 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17177 | int arg2 = (int) wxDateTime::Country_Default ; | |
17178 | wxDateTime result; | |
17179 | PyObject * obj0 = 0 ; | |
17180 | PyObject * obj1 = 0 ; | |
17181 | char *kwnames[] = { | |
17182 | (char *) "year",(char *) "country", NULL | |
17183 | }; | |
17184 | ||
17185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17186 | if (obj0) { | |
17187 | arg1 = (int) SWIG_AsInt(obj0); | |
17188 | if (PyErr_Occurred()) SWIG_fail; | |
17189 | } | |
17190 | if (obj1) { | |
17191 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17192 | if (PyErr_Occurred()) SWIG_fail; | |
17193 | } | |
17194 | { | |
17195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17196 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17197 | ||
17198 | wxPyEndAllowThreads(__tstate); | |
17199 | if (PyErr_Occurred()) SWIG_fail; | |
17200 | } | |
17201 | { | |
17202 | wxDateTime * resultptr; | |
17203 | resultptr = new wxDateTime((wxDateTime &) result); | |
17204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17205 | } | |
17206 | return resultobj; | |
17207 | fail: | |
17208 | return NULL; | |
17209 | } | |
17210 | ||
17211 | ||
17212 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17213 | PyObject *resultobj; | |
17214 | wxDateTime result; | |
17215 | char *kwnames[] = { | |
17216 | NULL | |
17217 | }; | |
17218 | ||
17219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17220 | { | |
17221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17222 | result = wxDateTime::Now(); | |
17223 | ||
17224 | wxPyEndAllowThreads(__tstate); | |
17225 | if (PyErr_Occurred()) SWIG_fail; | |
17226 | } | |
17227 | { | |
17228 | wxDateTime * resultptr; | |
17229 | resultptr = new wxDateTime((wxDateTime &) result); | |
17230 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17231 | } | |
17232 | return resultobj; | |
17233 | fail: | |
17234 | return NULL; | |
17235 | } | |
17236 | ||
17237 | ||
17238 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17239 | PyObject *resultobj; | |
17240 | wxDateTime result; | |
17241 | char *kwnames[] = { | |
17242 | NULL | |
17243 | }; | |
17244 | ||
17245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17246 | { | |
17247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17248 | result = wxDateTime::UNow(); | |
17249 | ||
17250 | wxPyEndAllowThreads(__tstate); | |
17251 | if (PyErr_Occurred()) SWIG_fail; | |
17252 | } | |
17253 | { | |
17254 | wxDateTime * resultptr; | |
17255 | resultptr = new wxDateTime((wxDateTime &) result); | |
17256 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17257 | } | |
17258 | return resultobj; | |
17259 | fail: | |
17260 | return NULL; | |
17261 | } | |
17262 | ||
17263 | ||
17264 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17265 | PyObject *resultobj; | |
17266 | wxDateTime result; | |
17267 | char *kwnames[] = { | |
17268 | NULL | |
17269 | }; | |
17270 | ||
17271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17272 | { | |
17273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17274 | result = wxDateTime::Today(); | |
17275 | ||
17276 | wxPyEndAllowThreads(__tstate); | |
17277 | if (PyErr_Occurred()) SWIG_fail; | |
17278 | } | |
17279 | { | |
17280 | wxDateTime * resultptr; | |
17281 | resultptr = new wxDateTime((wxDateTime &) result); | |
17282 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17283 | } | |
17284 | return resultobj; | |
17285 | fail: | |
17286 | return NULL; | |
17287 | } | |
17288 | ||
17289 | ||
17290 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17291 | PyObject *resultobj; | |
17292 | wxDateTime *result; | |
17293 | char *kwnames[] = { | |
17294 | NULL | |
17295 | }; | |
17296 | ||
17297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17298 | { | |
17299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17300 | result = (wxDateTime *)new wxDateTime(); | |
17301 | ||
17302 | wxPyEndAllowThreads(__tstate); | |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
17304 | } | |
17305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17306 | return resultobj; | |
17307 | fail: | |
17308 | return NULL; | |
17309 | } | |
17310 | ||
17311 | ||
17312 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17313 | PyObject *resultobj; | |
17314 | time_t arg1 ; | |
17315 | wxDateTime *result; | |
17316 | PyObject * obj0 = 0 ; | |
17317 | char *kwnames[] = { | |
17318 | (char *) "timet", NULL | |
17319 | }; | |
17320 | ||
17321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
17322 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); | |
17323 | if (PyErr_Occurred()) SWIG_fail; | |
17324 | { | |
17325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17326 | result = (wxDateTime *)new wxDateTime(arg1); | |
17327 | ||
17328 | wxPyEndAllowThreads(__tstate); | |
17329 | if (PyErr_Occurred()) SWIG_fail; | |
17330 | } | |
17331 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17332 | return resultobj; | |
17333 | fail: | |
17334 | return NULL; | |
17335 | } | |
17336 | ||
17337 | ||
17338 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17339 | PyObject *resultobj; | |
17340 | double arg1 ; | |
17341 | wxDateTime *result; | |
17342 | PyObject * obj0 = 0 ; | |
17343 | char *kwnames[] = { | |
17344 | (char *) "jdn", NULL | |
17345 | }; | |
17346 | ||
17347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
17348 | arg1 = (double) SWIG_AsDouble(obj0); | |
17349 | if (PyErr_Occurred()) SWIG_fail; | |
17350 | { | |
17351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17352 | result = (wxDateTime *)new wxDateTime(arg1); | |
17353 | ||
17354 | wxPyEndAllowThreads(__tstate); | |
17355 | if (PyErr_Occurred()) SWIG_fail; | |
17356 | } | |
17357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17358 | return resultobj; | |
17359 | fail: | |
17360 | return NULL; | |
17361 | } | |
17362 | ||
17363 | ||
17364 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17365 | PyObject *resultobj; | |
17366 | int arg1 ; | |
17367 | int arg2 = (int) 0 ; | |
17368 | int arg3 = (int) 0 ; | |
17369 | int arg4 = (int) 0 ; | |
17370 | wxDateTime *result; | |
17371 | PyObject * obj0 = 0 ; | |
17372 | PyObject * obj1 = 0 ; | |
17373 | PyObject * obj2 = 0 ; | |
17374 | PyObject * obj3 = 0 ; | |
17375 | char *kwnames[] = { | |
17376 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17377 | }; | |
17378 | ||
17379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17380 | arg1 = (int) SWIG_AsInt(obj0); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | if (obj1) { | |
17383 | arg2 = (int) SWIG_AsInt(obj1); | |
17384 | if (PyErr_Occurred()) SWIG_fail; | |
17385 | } | |
17386 | if (obj2) { | |
17387 | arg3 = (int) SWIG_AsInt(obj2); | |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
17389 | } | |
17390 | if (obj3) { | |
17391 | arg4 = (int) SWIG_AsInt(obj3); | |
17392 | if (PyErr_Occurred()) SWIG_fail; | |
17393 | } | |
17394 | { | |
17395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17396 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17397 | ||
17398 | wxPyEndAllowThreads(__tstate); | |
17399 | if (PyErr_Occurred()) SWIG_fail; | |
17400 | } | |
17401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17402 | return resultobj; | |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj; | |
17410 | int arg1 ; | |
17411 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17412 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17413 | int arg4 = (int) 0 ; | |
17414 | int arg5 = (int) 0 ; | |
17415 | int arg6 = (int) 0 ; | |
17416 | int arg7 = (int) 0 ; | |
17417 | wxDateTime *result; | |
17418 | PyObject * obj0 = 0 ; | |
17419 | PyObject * obj1 = 0 ; | |
17420 | PyObject * obj2 = 0 ; | |
17421 | PyObject * obj3 = 0 ; | |
17422 | PyObject * obj4 = 0 ; | |
17423 | PyObject * obj5 = 0 ; | |
17424 | PyObject * obj6 = 0 ; | |
17425 | char *kwnames[] = { | |
17426 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17427 | }; | |
17428 | ||
17429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17430 | arg1 = (int) SWIG_AsInt(obj0); | |
17431 | if (PyErr_Occurred()) SWIG_fail; | |
17432 | if (obj1) { | |
17433 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17434 | if (PyErr_Occurred()) SWIG_fail; | |
17435 | } | |
17436 | if (obj2) { | |
17437 | arg3 = (int) SWIG_AsInt(obj2); | |
17438 | if (PyErr_Occurred()) SWIG_fail; | |
17439 | } | |
17440 | if (obj3) { | |
17441 | arg4 = (int) SWIG_AsInt(obj3); | |
17442 | if (PyErr_Occurred()) SWIG_fail; | |
17443 | } | |
17444 | if (obj4) { | |
17445 | arg5 = (int) SWIG_AsInt(obj4); | |
17446 | if (PyErr_Occurred()) SWIG_fail; | |
17447 | } | |
17448 | if (obj5) { | |
17449 | arg6 = (int) SWIG_AsInt(obj5); | |
17450 | if (PyErr_Occurred()) SWIG_fail; | |
17451 | } | |
17452 | if (obj6) { | |
17453 | arg7 = (int) SWIG_AsInt(obj6); | |
17454 | if (PyErr_Occurred()) SWIG_fail; | |
17455 | } | |
17456 | { | |
17457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17458 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17459 | ||
17460 | wxPyEndAllowThreads(__tstate); | |
17461 | if (PyErr_Occurred()) SWIG_fail; | |
17462 | } | |
17463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17464 | return resultobj; | |
17465 | fail: | |
17466 | return NULL; | |
17467 | } | |
17468 | ||
17469 | ||
17470 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17471 | PyObject *resultobj; | |
17472 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17473 | PyObject * obj0 = 0 ; | |
17474 | char *kwnames[] = { | |
17475 | (char *) "self", NULL | |
17476 | }; | |
17477 | ||
17478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17481 | { | |
17482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17483 | delete arg1; | |
17484 | ||
17485 | wxPyEndAllowThreads(__tstate); | |
17486 | if (PyErr_Occurred()) SWIG_fail; | |
17487 | } | |
17488 | Py_INCREF(Py_None); resultobj = Py_None; | |
17489 | return resultobj; | |
17490 | fail: | |
17491 | return NULL; | |
17492 | } | |
17493 | ||
17494 | ||
17495 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17496 | PyObject *resultobj; | |
17497 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17498 | wxDateTime *result; | |
17499 | PyObject * obj0 = 0 ; | |
17500 | char *kwnames[] = { | |
17501 | (char *) "self", NULL | |
17502 | }; | |
17503 | ||
17504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17507 | { | |
17508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17509 | { | |
17510 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17511 | result = (wxDateTime *) &_result_ref; | |
17512 | } | |
17513 | ||
17514 | wxPyEndAllowThreads(__tstate); | |
17515 | if (PyErr_Occurred()) SWIG_fail; | |
17516 | } | |
17517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17518 | return resultobj; | |
17519 | fail: | |
17520 | return NULL; | |
17521 | } | |
17522 | ||
17523 | ||
17524 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17525 | PyObject *resultobj; | |
17526 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17527 | time_t arg2 ; | |
17528 | wxDateTime *result; | |
17529 | PyObject * obj0 = 0 ; | |
17530 | PyObject * obj1 = 0 ; | |
17531 | char *kwnames[] = { | |
17532 | (char *) "self",(char *) "timet", NULL | |
17533 | }; | |
17534 | ||
17535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17538 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17539 | if (PyErr_Occurred()) SWIG_fail; | |
17540 | { | |
17541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17542 | { | |
17543 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17544 | result = (wxDateTime *) &_result_ref; | |
17545 | } | |
17546 | ||
17547 | wxPyEndAllowThreads(__tstate); | |
17548 | if (PyErr_Occurred()) SWIG_fail; | |
17549 | } | |
17550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17551 | return resultobj; | |
17552 | fail: | |
17553 | return NULL; | |
17554 | } | |
17555 | ||
17556 | ||
17557 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17558 | PyObject *resultobj; | |
17559 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17560 | double arg2 ; | |
17561 | wxDateTime *result; | |
17562 | PyObject * obj0 = 0 ; | |
17563 | PyObject * obj1 = 0 ; | |
17564 | char *kwnames[] = { | |
17565 | (char *) "self",(char *) "jdn", NULL | |
17566 | }; | |
17567 | ||
17568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17571 | arg2 = (double) SWIG_AsDouble(obj1); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | { | |
17574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17575 | { | |
17576 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17577 | result = (wxDateTime *) &_result_ref; | |
17578 | } | |
17579 | ||
17580 | wxPyEndAllowThreads(__tstate); | |
17581 | if (PyErr_Occurred()) SWIG_fail; | |
17582 | } | |
17583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17584 | return resultobj; | |
17585 | fail: | |
17586 | return NULL; | |
17587 | } | |
17588 | ||
17589 | ||
17590 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17591 | PyObject *resultobj; | |
17592 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17593 | int arg2 ; | |
17594 | int arg3 = (int) 0 ; | |
17595 | int arg4 = (int) 0 ; | |
17596 | int arg5 = (int) 0 ; | |
17597 | wxDateTime *result; | |
17598 | PyObject * obj0 = 0 ; | |
17599 | PyObject * obj1 = 0 ; | |
17600 | PyObject * obj2 = 0 ; | |
17601 | PyObject * obj3 = 0 ; | |
17602 | PyObject * obj4 = 0 ; | |
17603 | char *kwnames[] = { | |
17604 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17605 | }; | |
17606 | ||
17607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17610 | arg2 = (int) SWIG_AsInt(obj1); | |
17611 | if (PyErr_Occurred()) SWIG_fail; | |
17612 | if (obj2) { | |
17613 | arg3 = (int) SWIG_AsInt(obj2); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
17615 | } | |
17616 | if (obj3) { | |
17617 | arg4 = (int) SWIG_AsInt(obj3); | |
17618 | if (PyErr_Occurred()) SWIG_fail; | |
17619 | } | |
17620 | if (obj4) { | |
17621 | arg5 = (int) SWIG_AsInt(obj4); | |
17622 | if (PyErr_Occurred()) SWIG_fail; | |
17623 | } | |
17624 | { | |
17625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17626 | { | |
17627 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17628 | result = (wxDateTime *) &_result_ref; | |
17629 | } | |
17630 | ||
17631 | wxPyEndAllowThreads(__tstate); | |
17632 | if (PyErr_Occurred()) SWIG_fail; | |
17633 | } | |
17634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17635 | return resultobj; | |
17636 | fail: | |
17637 | return NULL; | |
17638 | } | |
17639 | ||
17640 | ||
17641 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17642 | PyObject *resultobj; | |
17643 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17644 | int arg2 ; | |
17645 | int arg3 = (int) wxDateTime::Inv_Month ; | |
17646 | int arg4 = (int) wxDateTime::Inv_Year ; | |
17647 | int arg5 = (int) 0 ; | |
17648 | int arg6 = (int) 0 ; | |
17649 | int arg7 = (int) 0 ; | |
17650 | int arg8 = (int) 0 ; | |
17651 | wxDateTime *result; | |
17652 | PyObject * obj0 = 0 ; | |
17653 | PyObject * obj1 = 0 ; | |
17654 | PyObject * obj2 = 0 ; | |
17655 | PyObject * obj3 = 0 ; | |
17656 | PyObject * obj4 = 0 ; | |
17657 | PyObject * obj5 = 0 ; | |
17658 | PyObject * obj6 = 0 ; | |
17659 | PyObject * obj7 = 0 ; | |
17660 | char *kwnames[] = { | |
17661 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17662 | }; | |
17663 | ||
17664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
17665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17667 | arg2 = (int) SWIG_AsInt(obj1); | |
17668 | if (PyErr_Occurred()) SWIG_fail; | |
17669 | if (obj2) { | |
17670 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
17671 | if (PyErr_Occurred()) SWIG_fail; | |
17672 | } | |
17673 | if (obj3) { | |
17674 | arg4 = (int) SWIG_AsInt(obj3); | |
17675 | if (PyErr_Occurred()) SWIG_fail; | |
17676 | } | |
17677 | if (obj4) { | |
17678 | arg5 = (int) SWIG_AsInt(obj4); | |
17679 | if (PyErr_Occurred()) SWIG_fail; | |
17680 | } | |
17681 | if (obj5) { | |
17682 | arg6 = (int) SWIG_AsInt(obj5); | |
17683 | if (PyErr_Occurred()) SWIG_fail; | |
17684 | } | |
17685 | if (obj6) { | |
17686 | arg7 = (int) SWIG_AsInt(obj6); | |
17687 | if (PyErr_Occurred()) SWIG_fail; | |
17688 | } | |
17689 | if (obj7) { | |
17690 | arg8 = (int) SWIG_AsInt(obj7); | |
17691 | if (PyErr_Occurred()) SWIG_fail; | |
17692 | } | |
17693 | { | |
17694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17695 | { | |
17696 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17697 | result = (wxDateTime *) &_result_ref; | |
17698 | } | |
17699 | ||
17700 | wxPyEndAllowThreads(__tstate); | |
17701 | if (PyErr_Occurred()) SWIG_fail; | |
17702 | } | |
17703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17704 | return resultobj; | |
17705 | fail: | |
17706 | return NULL; | |
17707 | } | |
17708 | ||
17709 | ||
17710 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17711 | PyObject *resultobj; | |
17712 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17713 | wxDateTime *result; | |
17714 | PyObject * obj0 = 0 ; | |
17715 | char *kwnames[] = { | |
17716 | (char *) "self", NULL | |
17717 | }; | |
17718 | ||
17719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
17720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17722 | { | |
17723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17724 | { | |
17725 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17726 | result = (wxDateTime *) &_result_ref; | |
17727 | } | |
17728 | ||
17729 | wxPyEndAllowThreads(__tstate); | |
17730 | if (PyErr_Occurred()) SWIG_fail; | |
17731 | } | |
17732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17733 | return resultobj; | |
17734 | fail: | |
17735 | return NULL; | |
17736 | } | |
17737 | ||
17738 | ||
17739 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17740 | PyObject *resultobj; | |
17741 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17742 | int arg2 ; | |
17743 | wxDateTime *result; | |
17744 | PyObject * obj0 = 0 ; | |
17745 | PyObject * obj1 = 0 ; | |
17746 | char *kwnames[] = { | |
17747 | (char *) "self",(char *) "year", NULL | |
17748 | }; | |
17749 | ||
17750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
17751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17753 | arg2 = (int) SWIG_AsInt(obj1); | |
17754 | if (PyErr_Occurred()) SWIG_fail; | |
17755 | { | |
17756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17757 | { | |
17758 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17759 | result = (wxDateTime *) &_result_ref; | |
17760 | } | |
17761 | ||
17762 | wxPyEndAllowThreads(__tstate); | |
17763 | if (PyErr_Occurred()) SWIG_fail; | |
17764 | } | |
17765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17766 | return resultobj; | |
17767 | fail: | |
17768 | return NULL; | |
17769 | } | |
17770 | ||
17771 | ||
17772 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17773 | PyObject *resultobj; | |
17774 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17775 | int arg2 ; | |
17776 | wxDateTime *result; | |
17777 | PyObject * obj0 = 0 ; | |
17778 | PyObject * obj1 = 0 ; | |
17779 | char *kwnames[] = { | |
17780 | (char *) "self",(char *) "month", NULL | |
17781 | }; | |
17782 | ||
17783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17786 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17787 | if (PyErr_Occurred()) SWIG_fail; | |
17788 | { | |
17789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17790 | { | |
17791 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17792 | result = (wxDateTime *) &_result_ref; | |
17793 | } | |
17794 | ||
17795 | wxPyEndAllowThreads(__tstate); | |
17796 | if (PyErr_Occurred()) SWIG_fail; | |
17797 | } | |
17798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17799 | return resultobj; | |
17800 | fail: | |
17801 | return NULL; | |
17802 | } | |
17803 | ||
17804 | ||
17805 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17806 | PyObject *resultobj; | |
17807 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17808 | int arg2 ; | |
17809 | wxDateTime *result; | |
17810 | PyObject * obj0 = 0 ; | |
17811 | PyObject * obj1 = 0 ; | |
17812 | char *kwnames[] = { | |
17813 | (char *) "self",(char *) "day", NULL | |
17814 | }; | |
17815 | ||
17816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
17817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17819 | arg2 = (int) SWIG_AsInt(obj1); | |
17820 | if (PyErr_Occurred()) SWIG_fail; | |
17821 | { | |
17822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17823 | { | |
17824 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17825 | result = (wxDateTime *) &_result_ref; | |
17826 | } | |
17827 | ||
17828 | wxPyEndAllowThreads(__tstate); | |
17829 | if (PyErr_Occurred()) SWIG_fail; | |
17830 | } | |
17831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17832 | return resultobj; | |
17833 | fail: | |
17834 | return NULL; | |
17835 | } | |
17836 | ||
17837 | ||
17838 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17839 | PyObject *resultobj; | |
17840 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17841 | int arg2 ; | |
17842 | wxDateTime *result; | |
17843 | PyObject * obj0 = 0 ; | |
17844 | PyObject * obj1 = 0 ; | |
17845 | char *kwnames[] = { | |
17846 | (char *) "self",(char *) "hour", NULL | |
17847 | }; | |
17848 | ||
17849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
17850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17852 | arg2 = (int) SWIG_AsInt(obj1); | |
17853 | if (PyErr_Occurred()) SWIG_fail; | |
17854 | { | |
17855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17856 | { | |
17857 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17858 | result = (wxDateTime *) &_result_ref; | |
17859 | } | |
17860 | ||
17861 | wxPyEndAllowThreads(__tstate); | |
17862 | if (PyErr_Occurred()) SWIG_fail; | |
17863 | } | |
17864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17865 | return resultobj; | |
17866 | fail: | |
17867 | return NULL; | |
17868 | } | |
17869 | ||
17870 | ||
17871 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17872 | PyObject *resultobj; | |
17873 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17874 | int arg2 ; | |
17875 | wxDateTime *result; | |
17876 | PyObject * obj0 = 0 ; | |
17877 | PyObject * obj1 = 0 ; | |
17878 | char *kwnames[] = { | |
17879 | (char *) "self",(char *) "minute", NULL | |
17880 | }; | |
17881 | ||
17882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17885 | arg2 = (int) SWIG_AsInt(obj1); | |
17886 | if (PyErr_Occurred()) SWIG_fail; | |
17887 | { | |
17888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17889 | { | |
17890 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17891 | result = (wxDateTime *) &_result_ref; | |
17892 | } | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
17897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17898 | return resultobj; | |
17899 | fail: | |
17900 | return NULL; | |
17901 | } | |
17902 | ||
17903 | ||
17904 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17905 | PyObject *resultobj; | |
17906 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17907 | int arg2 ; | |
17908 | wxDateTime *result; | |
17909 | PyObject * obj0 = 0 ; | |
17910 | PyObject * obj1 = 0 ; | |
17911 | char *kwnames[] = { | |
17912 | (char *) "self",(char *) "second", NULL | |
17913 | }; | |
17914 | ||
17915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17918 | arg2 = (int) SWIG_AsInt(obj1); | |
17919 | if (PyErr_Occurred()) SWIG_fail; | |
17920 | { | |
17921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17922 | { | |
17923 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17924 | result = (wxDateTime *) &_result_ref; | |
17925 | } | |
17926 | ||
17927 | wxPyEndAllowThreads(__tstate); | |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
17929 | } | |
17930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17931 | return resultobj; | |
17932 | fail: | |
17933 | return NULL; | |
17934 | } | |
17935 | ||
17936 | ||
17937 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17938 | PyObject *resultobj; | |
17939 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17940 | int arg2 ; | |
17941 | wxDateTime *result; | |
17942 | PyObject * obj0 = 0 ; | |
17943 | PyObject * obj1 = 0 ; | |
17944 | char *kwnames[] = { | |
17945 | (char *) "self",(char *) "millisecond", NULL | |
17946 | }; | |
17947 | ||
17948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17951 | arg2 = (int) SWIG_AsInt(obj1); | |
17952 | if (PyErr_Occurred()) SWIG_fail; | |
17953 | { | |
17954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17955 | { | |
17956 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17957 | result = (wxDateTime *) &_result_ref; | |
17958 | } | |
17959 | ||
17960 | wxPyEndAllowThreads(__tstate); | |
17961 | if (PyErr_Occurred()) SWIG_fail; | |
17962 | } | |
17963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17964 | return resultobj; | |
17965 | fail: | |
17966 | return NULL; | |
17967 | } | |
17968 | ||
17969 | ||
17970 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17971 | PyObject *resultobj; | |
17972 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17973 | int arg2 ; | |
17974 | int arg3 = (int) wxDateTime::Monday_First ; | |
17975 | wxDateTime *result; | |
17976 | PyObject * obj0 = 0 ; | |
17977 | PyObject * obj1 = 0 ; | |
17978 | PyObject * obj2 = 0 ; | |
17979 | char *kwnames[] = { | |
17980 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17981 | }; | |
17982 | ||
17983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17986 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17987 | if (PyErr_Occurred()) SWIG_fail; | |
17988 | if (obj2) { | |
17989 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
17990 | if (PyErr_Occurred()) SWIG_fail; | |
17991 | } | |
17992 | { | |
17993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17994 | { | |
17995 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17996 | result = (wxDateTime *) &_result_ref; | |
17997 | } | |
17998 | ||
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
18002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18003 | return resultobj; | |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18012 | int arg2 ; | |
18013 | int arg3 = (int) wxDateTime::Monday_First ; | |
18014 | wxDateTime result; | |
18015 | PyObject * obj0 = 0 ; | |
18016 | PyObject * obj1 = 0 ; | |
18017 | PyObject * obj2 = 0 ; | |
18018 | char *kwnames[] = { | |
18019 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18020 | }; | |
18021 | ||
18022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18025 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18026 | if (PyErr_Occurred()) SWIG_fail; | |
18027 | if (obj2) { | |
18028 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
18029 | if (PyErr_Occurred()) SWIG_fail; | |
18030 | } | |
18031 | { | |
18032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18033 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18034 | ||
18035 | wxPyEndAllowThreads(__tstate); | |
18036 | if (PyErr_Occurred()) SWIG_fail; | |
18037 | } | |
18038 | { | |
18039 | wxDateTime * resultptr; | |
18040 | resultptr = new wxDateTime((wxDateTime &) result); | |
18041 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18042 | } | |
18043 | return resultobj; | |
18044 | fail: | |
18045 | return NULL; | |
18046 | } | |
18047 | ||
18048 | ||
18049 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18050 | PyObject *resultobj; | |
18051 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18052 | int arg2 ; | |
18053 | wxDateTime *result; | |
18054 | PyObject * obj0 = 0 ; | |
18055 | PyObject * obj1 = 0 ; | |
18056 | char *kwnames[] = { | |
18057 | (char *) "self",(char *) "weekday", NULL | |
18058 | }; | |
18059 | ||
18060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18063 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18064 | if (PyErr_Occurred()) SWIG_fail; | |
18065 | { | |
18066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18067 | { | |
18068 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18069 | result = (wxDateTime *) &_result_ref; | |
18070 | } | |
18071 | ||
18072 | wxPyEndAllowThreads(__tstate); | |
18073 | if (PyErr_Occurred()) SWIG_fail; | |
18074 | } | |
18075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18076 | return resultobj; | |
18077 | fail: | |
18078 | return NULL; | |
18079 | } | |
18080 | ||
18081 | ||
18082 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18083 | PyObject *resultobj; | |
18084 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18085 | int arg2 ; | |
18086 | wxDateTime result; | |
18087 | PyObject * obj0 = 0 ; | |
18088 | PyObject * obj1 = 0 ; | |
18089 | char *kwnames[] = { | |
18090 | (char *) "self",(char *) "weekday", NULL | |
18091 | }; | |
18092 | ||
18093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18096 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18097 | if (PyErr_Occurred()) SWIG_fail; | |
18098 | { | |
18099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18100 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18101 | ||
18102 | wxPyEndAllowThreads(__tstate); | |
18103 | if (PyErr_Occurred()) SWIG_fail; | |
18104 | } | |
18105 | { | |
18106 | wxDateTime * resultptr; | |
18107 | resultptr = new wxDateTime((wxDateTime &) result); | |
18108 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18109 | } | |
18110 | return resultobj; | |
18111 | fail: | |
18112 | return NULL; | |
18113 | } | |
18114 | ||
18115 | ||
18116 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18117 | PyObject *resultobj; | |
18118 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18119 | int arg2 ; | |
18120 | wxDateTime *result; | |
18121 | PyObject * obj0 = 0 ; | |
18122 | PyObject * obj1 = 0 ; | |
18123 | char *kwnames[] = { | |
18124 | (char *) "self",(char *) "weekday", NULL | |
18125 | }; | |
18126 | ||
18127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18130 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18131 | if (PyErr_Occurred()) SWIG_fail; | |
18132 | { | |
18133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18134 | { | |
18135 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18136 | result = (wxDateTime *) &_result_ref; | |
18137 | } | |
18138 | ||
18139 | wxPyEndAllowThreads(__tstate); | |
18140 | if (PyErr_Occurred()) SWIG_fail; | |
18141 | } | |
18142 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18143 | return resultobj; | |
18144 | fail: | |
18145 | return NULL; | |
18146 | } | |
18147 | ||
18148 | ||
18149 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18150 | PyObject *resultobj; | |
18151 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18152 | int arg2 ; | |
18153 | wxDateTime result; | |
18154 | PyObject * obj0 = 0 ; | |
18155 | PyObject * obj1 = 0 ; | |
18156 | char *kwnames[] = { | |
18157 | (char *) "self",(char *) "weekday", NULL | |
18158 | }; | |
18159 | ||
18160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18163 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18164 | if (PyErr_Occurred()) SWIG_fail; | |
18165 | { | |
18166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18167 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18168 | ||
18169 | wxPyEndAllowThreads(__tstate); | |
18170 | if (PyErr_Occurred()) SWIG_fail; | |
18171 | } | |
18172 | { | |
18173 | wxDateTime * resultptr; | |
18174 | resultptr = new wxDateTime((wxDateTime &) result); | |
18175 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18176 | } | |
18177 | return resultobj; | |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
18183 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18184 | PyObject *resultobj; | |
18185 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18186 | int arg2 ; | |
18187 | int arg3 = (int) 1 ; | |
18188 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18189 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18190 | bool result; | |
18191 | PyObject * obj0 = 0 ; | |
18192 | PyObject * obj1 = 0 ; | |
18193 | PyObject * obj2 = 0 ; | |
18194 | PyObject * obj3 = 0 ; | |
18195 | PyObject * obj4 = 0 ; | |
18196 | char *kwnames[] = { | |
18197 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18198 | }; | |
18199 | ||
18200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18203 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
18205 | if (obj2) { | |
18206 | arg3 = (int) SWIG_AsInt(obj2); | |
18207 | if (PyErr_Occurred()) SWIG_fail; | |
18208 | } | |
18209 | if (obj3) { | |
18210 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); | |
18211 | if (PyErr_Occurred()) SWIG_fail; | |
18212 | } | |
18213 | if (obj4) { | |
18214 | arg5 = (int) SWIG_AsInt(obj4); | |
18215 | if (PyErr_Occurred()) SWIG_fail; | |
18216 | } | |
18217 | { | |
18218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18219 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18220 | ||
18221 | wxPyEndAllowThreads(__tstate); | |
18222 | if (PyErr_Occurred()) SWIG_fail; | |
18223 | } | |
18224 | { | |
18225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18226 | } | |
18227 | return resultobj; | |
18228 | fail: | |
18229 | return NULL; | |
18230 | } | |
18231 | ||
18232 | ||
18233 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18234 | PyObject *resultobj; | |
18235 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18236 | int arg2 ; | |
18237 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18238 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18239 | bool result; | |
18240 | PyObject * obj0 = 0 ; | |
18241 | PyObject * obj1 = 0 ; | |
18242 | PyObject * obj2 = 0 ; | |
18243 | PyObject * obj3 = 0 ; | |
18244 | char *kwnames[] = { | |
18245 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18246 | }; | |
18247 | ||
18248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18251 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18252 | if (PyErr_Occurred()) SWIG_fail; | |
18253 | if (obj2) { | |
18254 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18255 | if (PyErr_Occurred()) SWIG_fail; | |
18256 | } | |
18257 | if (obj3) { | |
18258 | arg4 = (int) SWIG_AsInt(obj3); | |
18259 | if (PyErr_Occurred()) SWIG_fail; | |
18260 | } | |
18261 | { | |
18262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18263 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18264 | ||
18265 | wxPyEndAllowThreads(__tstate); | |
18266 | if (PyErr_Occurred()) SWIG_fail; | |
18267 | } | |
18268 | { | |
18269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18270 | } | |
18271 | return resultobj; | |
18272 | fail: | |
18273 | return NULL; | |
18274 | } | |
18275 | ||
18276 | ||
18277 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18278 | PyObject *resultobj; | |
18279 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18280 | int arg2 ; | |
18281 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18282 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18283 | wxDateTime result; | |
18284 | PyObject * obj0 = 0 ; | |
18285 | PyObject * obj1 = 0 ; | |
18286 | PyObject * obj2 = 0 ; | |
18287 | PyObject * obj3 = 0 ; | |
18288 | char *kwnames[] = { | |
18289 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18290 | }; | |
18291 | ||
18292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18295 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18296 | if (PyErr_Occurred()) SWIG_fail; | |
18297 | if (obj2) { | |
18298 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18299 | if (PyErr_Occurred()) SWIG_fail; | |
18300 | } | |
18301 | if (obj3) { | |
18302 | arg4 = (int) SWIG_AsInt(obj3); | |
18303 | if (PyErr_Occurred()) SWIG_fail; | |
18304 | } | |
18305 | { | |
18306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18307 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18308 | ||
18309 | wxPyEndAllowThreads(__tstate); | |
18310 | if (PyErr_Occurred()) SWIG_fail; | |
18311 | } | |
18312 | { | |
18313 | wxDateTime * resultptr; | |
18314 | resultptr = new wxDateTime((wxDateTime &) result); | |
18315 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18316 | } | |
18317 | return resultobj; | |
18318 | fail: | |
18319 | return NULL; | |
18320 | } | |
18321 | ||
18322 | ||
18323 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18324 | PyObject *resultobj; | |
18325 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18326 | int arg2 ; | |
18327 | int arg3 = (int) wxDateTime::Mon ; | |
18328 | int arg4 = (int) wxDateTime::Monday_First ; | |
18329 | bool result; | |
18330 | PyObject * obj0 = 0 ; | |
18331 | PyObject * obj1 = 0 ; | |
18332 | PyObject * obj2 = 0 ; | |
18333 | PyObject * obj3 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18341 | arg2 = (int) SWIG_AsInt(obj1); | |
18342 | if (PyErr_Occurred()) SWIG_fail; | |
18343 | if (obj2) { | |
18344 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18345 | if (PyErr_Occurred()) SWIG_fail; | |
18346 | } | |
18347 | if (obj3) { | |
18348 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18349 | if (PyErr_Occurred()) SWIG_fail; | |
18350 | } | |
18351 | { | |
18352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18353 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18354 | ||
18355 | wxPyEndAllowThreads(__tstate); | |
18356 | if (PyErr_Occurred()) SWIG_fail; | |
18357 | } | |
18358 | { | |
18359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18360 | } | |
18361 | return resultobj; | |
18362 | fail: | |
18363 | return NULL; | |
18364 | } | |
18365 | ||
18366 | ||
18367 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18368 | PyObject *resultobj; | |
18369 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18370 | int arg2 ; | |
18371 | int arg3 = (int) wxDateTime::Mon ; | |
18372 | int arg4 = (int) wxDateTime::Monday_First ; | |
18373 | wxDateTime result; | |
18374 | PyObject * obj0 = 0 ; | |
18375 | PyObject * obj1 = 0 ; | |
18376 | PyObject * obj2 = 0 ; | |
18377 | PyObject * obj3 = 0 ; | |
18378 | char *kwnames[] = { | |
18379 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18380 | }; | |
18381 | ||
18382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18385 | arg2 = (int) SWIG_AsInt(obj1); | |
18386 | if (PyErr_Occurred()) SWIG_fail; | |
18387 | if (obj2) { | |
18388 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18389 | if (PyErr_Occurred()) SWIG_fail; | |
18390 | } | |
18391 | if (obj3) { | |
18392 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18393 | if (PyErr_Occurred()) SWIG_fail; | |
18394 | } | |
18395 | { | |
18396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18397 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18398 | ||
18399 | wxPyEndAllowThreads(__tstate); | |
18400 | if (PyErr_Occurred()) SWIG_fail; | |
18401 | } | |
18402 | { | |
18403 | wxDateTime * resultptr; | |
18404 | resultptr = new wxDateTime((wxDateTime &) result); | |
18405 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18406 | } | |
18407 | return resultobj; | |
18408 | fail: | |
18409 | return NULL; | |
18410 | } | |
18411 | ||
18412 | ||
18413 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18414 | PyObject *resultobj; | |
18415 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18416 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18417 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18418 | wxDateTime *result; | |
18419 | PyObject * obj0 = 0 ; | |
18420 | PyObject * obj1 = 0 ; | |
18421 | PyObject * obj2 = 0 ; | |
18422 | char *kwnames[] = { | |
18423 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18424 | }; | |
18425 | ||
18426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18429 | if (obj1) { | |
18430 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18431 | if (PyErr_Occurred()) SWIG_fail; | |
18432 | } | |
18433 | if (obj2) { | |
18434 | arg3 = (int) SWIG_AsInt(obj2); | |
18435 | if (PyErr_Occurred()) SWIG_fail; | |
18436 | } | |
18437 | { | |
18438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18439 | { | |
18440 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18441 | result = (wxDateTime *) &_result_ref; | |
18442 | } | |
18443 | ||
18444 | wxPyEndAllowThreads(__tstate); | |
18445 | if (PyErr_Occurred()) SWIG_fail; | |
18446 | } | |
18447 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18448 | return resultobj; | |
18449 | fail: | |
18450 | return NULL; | |
18451 | } | |
18452 | ||
18453 | ||
18454 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18455 | PyObject *resultobj; | |
18456 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18457 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18458 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18459 | wxDateTime result; | |
18460 | PyObject * obj0 = 0 ; | |
18461 | PyObject * obj1 = 0 ; | |
18462 | PyObject * obj2 = 0 ; | |
18463 | char *kwnames[] = { | |
18464 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18465 | }; | |
18466 | ||
18467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18470 | if (obj1) { | |
18471 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18472 | if (PyErr_Occurred()) SWIG_fail; | |
18473 | } | |
18474 | if (obj2) { | |
18475 | arg3 = (int) SWIG_AsInt(obj2); | |
18476 | if (PyErr_Occurred()) SWIG_fail; | |
18477 | } | |
18478 | { | |
18479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18480 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18481 | ||
18482 | wxPyEndAllowThreads(__tstate); | |
18483 | if (PyErr_Occurred()) SWIG_fail; | |
18484 | } | |
18485 | { | |
18486 | wxDateTime * resultptr; | |
18487 | resultptr = new wxDateTime((wxDateTime &) result); | |
18488 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18489 | } | |
18490 | return resultobj; | |
18491 | fail: | |
18492 | return NULL; | |
18493 | } | |
18494 | ||
18495 | ||
18496 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18497 | PyObject *resultobj; | |
18498 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18499 | int arg2 ; | |
18500 | wxDateTime *result; | |
18501 | PyObject * obj0 = 0 ; | |
18502 | PyObject * obj1 = 0 ; | |
18503 | char *kwnames[] = { | |
18504 | (char *) "self",(char *) "yday", NULL | |
18505 | }; | |
18506 | ||
18507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18510 | arg2 = (int) SWIG_AsInt(obj1); | |
18511 | if (PyErr_Occurred()) SWIG_fail; | |
18512 | { | |
18513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18514 | { | |
18515 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18516 | result = (wxDateTime *) &_result_ref; | |
18517 | } | |
18518 | ||
18519 | wxPyEndAllowThreads(__tstate); | |
18520 | if (PyErr_Occurred()) SWIG_fail; | |
18521 | } | |
18522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18523 | return resultobj; | |
18524 | fail: | |
18525 | return NULL; | |
18526 | } | |
18527 | ||
18528 | ||
18529 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18530 | PyObject *resultobj; | |
18531 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18532 | int arg2 ; | |
18533 | wxDateTime result; | |
18534 | PyObject * obj0 = 0 ; | |
18535 | PyObject * obj1 = 0 ; | |
18536 | char *kwnames[] = { | |
18537 | (char *) "self",(char *) "yday", NULL | |
18538 | }; | |
18539 | ||
18540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18543 | arg2 = (int) SWIG_AsInt(obj1); | |
18544 | if (PyErr_Occurred()) SWIG_fail; | |
18545 | { | |
18546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18547 | result = (arg1)->GetYearDay(arg2); | |
18548 | ||
18549 | wxPyEndAllowThreads(__tstate); | |
18550 | if (PyErr_Occurred()) SWIG_fail; | |
18551 | } | |
18552 | { | |
18553 | wxDateTime * resultptr; | |
18554 | resultptr = new wxDateTime((wxDateTime &) result); | |
18555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18556 | } | |
18557 | return resultobj; | |
18558 | fail: | |
18559 | return NULL; | |
18560 | } | |
18561 | ||
18562 | ||
18563 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18564 | PyObject *resultobj; | |
18565 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18566 | double result; | |
18567 | PyObject * obj0 = 0 ; | |
18568 | char *kwnames[] = { | |
18569 | (char *) "self", NULL | |
18570 | }; | |
18571 | ||
18572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
18573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18575 | { | |
18576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18577 | result = (double)(arg1)->GetJulianDayNumber(); | |
18578 | ||
18579 | wxPyEndAllowThreads(__tstate); | |
18580 | if (PyErr_Occurred()) SWIG_fail; | |
18581 | } | |
18582 | resultobj = SWIG_FromDouble((double)result); | |
18583 | return resultobj; | |
18584 | fail: | |
18585 | return NULL; | |
18586 | } | |
18587 | ||
18588 | ||
18589 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18590 | PyObject *resultobj; | |
18591 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18592 | double result; | |
18593 | PyObject * obj0 = 0 ; | |
18594 | char *kwnames[] = { | |
18595 | (char *) "self", NULL | |
18596 | }; | |
18597 | ||
18598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
18599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18601 | { | |
18602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18603 | result = (double)(arg1)->GetJDN(); | |
18604 | ||
18605 | wxPyEndAllowThreads(__tstate); | |
18606 | if (PyErr_Occurred()) SWIG_fail; | |
18607 | } | |
18608 | resultobj = SWIG_FromDouble((double)result); | |
18609 | return resultobj; | |
18610 | fail: | |
18611 | return NULL; | |
18612 | } | |
18613 | ||
18614 | ||
18615 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18616 | PyObject *resultobj; | |
18617 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18618 | double result; | |
18619 | PyObject * obj0 = 0 ; | |
18620 | char *kwnames[] = { | |
18621 | (char *) "self", NULL | |
18622 | }; | |
18623 | ||
18624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
18625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18627 | { | |
18628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18629 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18630 | ||
18631 | wxPyEndAllowThreads(__tstate); | |
18632 | if (PyErr_Occurred()) SWIG_fail; | |
18633 | } | |
18634 | resultobj = SWIG_FromDouble((double)result); | |
18635 | return resultobj; | |
18636 | fail: | |
18637 | return NULL; | |
18638 | } | |
18639 | ||
18640 | ||
18641 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18642 | PyObject *resultobj; | |
18643 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18644 | double result; | |
18645 | PyObject * obj0 = 0 ; | |
18646 | char *kwnames[] = { | |
18647 | (char *) "self", NULL | |
18648 | }; | |
18649 | ||
18650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
18651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18653 | { | |
18654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18655 | result = (double)(arg1)->GetMJD(); | |
18656 | ||
18657 | wxPyEndAllowThreads(__tstate); | |
18658 | if (PyErr_Occurred()) SWIG_fail; | |
18659 | } | |
18660 | resultobj = SWIG_FromDouble((double)result); | |
18661 | return resultobj; | |
18662 | fail: | |
18663 | return NULL; | |
18664 | } | |
18665 | ||
18666 | ||
18667 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18668 | PyObject *resultobj; | |
18669 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18670 | double result; | |
18671 | PyObject * obj0 = 0 ; | |
18672 | char *kwnames[] = { | |
18673 | (char *) "self", NULL | |
18674 | }; | |
18675 | ||
18676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
18677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18679 | { | |
18680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18681 | result = (double)(arg1)->GetRataDie(); | |
18682 | ||
18683 | wxPyEndAllowThreads(__tstate); | |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
18685 | } | |
18686 | resultobj = SWIG_FromDouble((double)result); | |
18687 | return resultobj; | |
18688 | fail: | |
18689 | return NULL; | |
18690 | } | |
18691 | ||
18692 | ||
18693 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18694 | PyObject *resultobj; | |
18695 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18696 | wxDateTime::TimeZone *arg2 = 0 ; | |
18697 | bool arg3 = (bool) False ; | |
18698 | wxDateTime result; | |
18699 | bool temp2 = False ; | |
18700 | PyObject * obj0 = 0 ; | |
18701 | PyObject * obj1 = 0 ; | |
18702 | PyObject * obj2 = 0 ; | |
18703 | char *kwnames[] = { | |
18704 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18705 | }; | |
18706 | ||
18707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18710 | { | |
18711 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18712 | temp2 = True; | |
18713 | } | |
18714 | if (obj2) { | |
18715 | arg3 = (bool) SWIG_AsBool(obj2); | |
18716 | if (PyErr_Occurred()) SWIG_fail; | |
18717 | } | |
18718 | { | |
18719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18720 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18721 | ||
18722 | wxPyEndAllowThreads(__tstate); | |
18723 | if (PyErr_Occurred()) SWIG_fail; | |
18724 | } | |
18725 | { | |
18726 | wxDateTime * resultptr; | |
18727 | resultptr = new wxDateTime((wxDateTime &) result); | |
18728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18729 | } | |
18730 | { | |
18731 | if (temp2) delete arg2; | |
18732 | } | |
18733 | return resultobj; | |
18734 | fail: | |
18735 | { | |
18736 | if (temp2) delete arg2; | |
18737 | } | |
18738 | return NULL; | |
18739 | } | |
18740 | ||
18741 | ||
18742 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18743 | PyObject *resultobj; | |
18744 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18745 | wxDateTime::TimeZone *arg2 = 0 ; | |
18746 | bool arg3 = (bool) False ; | |
18747 | wxDateTime *result; | |
18748 | bool temp2 = False ; | |
18749 | PyObject * obj0 = 0 ; | |
18750 | PyObject * obj1 = 0 ; | |
18751 | PyObject * obj2 = 0 ; | |
18752 | char *kwnames[] = { | |
18753 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18754 | }; | |
18755 | ||
18756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18759 | { | |
18760 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18761 | temp2 = True; | |
18762 | } | |
18763 | if (obj2) { | |
18764 | arg3 = (bool) SWIG_AsBool(obj2); | |
18765 | if (PyErr_Occurred()) SWIG_fail; | |
18766 | } | |
18767 | { | |
18768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18769 | { | |
18770 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18771 | result = (wxDateTime *) &_result_ref; | |
18772 | } | |
18773 | ||
18774 | wxPyEndAllowThreads(__tstate); | |
18775 | if (PyErr_Occurred()) SWIG_fail; | |
18776 | } | |
18777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18778 | { | |
18779 | if (temp2) delete arg2; | |
18780 | } | |
18781 | return resultobj; | |
18782 | fail: | |
18783 | { | |
18784 | if (temp2) delete arg2; | |
18785 | } | |
18786 | return NULL; | |
18787 | } | |
18788 | ||
18789 | ||
18790 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18791 | PyObject *resultobj; | |
18792 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18793 | bool arg2 = (bool) False ; | |
18794 | wxDateTime result; | |
18795 | PyObject * obj0 = 0 ; | |
18796 | PyObject * obj1 = 0 ; | |
18797 | char *kwnames[] = { | |
18798 | (char *) "self",(char *) "noDST", NULL | |
18799 | }; | |
18800 | ||
18801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
18802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18804 | if (obj1) { | |
18805 | arg2 = (bool) SWIG_AsBool(obj1); | |
18806 | if (PyErr_Occurred()) SWIG_fail; | |
18807 | } | |
18808 | { | |
18809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18810 | result = (arg1)->ToGMT(arg2); | |
18811 | ||
18812 | wxPyEndAllowThreads(__tstate); | |
18813 | if (PyErr_Occurred()) SWIG_fail; | |
18814 | } | |
18815 | { | |
18816 | wxDateTime * resultptr; | |
18817 | resultptr = new wxDateTime((wxDateTime &) result); | |
18818 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18819 | } | |
18820 | return resultobj; | |
18821 | fail: | |
18822 | return NULL; | |
18823 | } | |
18824 | ||
18825 | ||
18826 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18827 | PyObject *resultobj; | |
18828 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18829 | bool arg2 = (bool) False ; | |
18830 | wxDateTime *result; | |
18831 | PyObject * obj0 = 0 ; | |
18832 | PyObject * obj1 = 0 ; | |
18833 | char *kwnames[] = { | |
18834 | (char *) "self",(char *) "noDST", NULL | |
18835 | }; | |
18836 | ||
18837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
18838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18840 | if (obj1) { | |
18841 | arg2 = (bool) SWIG_AsBool(obj1); | |
18842 | if (PyErr_Occurred()) SWIG_fail; | |
18843 | } | |
18844 | { | |
18845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18846 | { | |
18847 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18848 | result = (wxDateTime *) &_result_ref; | |
18849 | } | |
18850 | ||
18851 | wxPyEndAllowThreads(__tstate); | |
18852 | if (PyErr_Occurred()) SWIG_fail; | |
18853 | } | |
18854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18855 | return resultobj; | |
18856 | fail: | |
18857 | return NULL; | |
18858 | } | |
18859 | ||
18860 | ||
18861 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18862 | PyObject *resultobj; | |
18863 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18864 | int arg2 = (int) wxDateTime::Country_Default ; | |
18865 | int result; | |
18866 | PyObject * obj0 = 0 ; | |
18867 | PyObject * obj1 = 0 ; | |
18868 | char *kwnames[] = { | |
18869 | (char *) "self",(char *) "country", NULL | |
18870 | }; | |
18871 | ||
18872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
18873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18875 | if (obj1) { | |
18876 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
18877 | if (PyErr_Occurred()) SWIG_fail; | |
18878 | } | |
18879 | { | |
18880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18881 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18882 | ||
18883 | wxPyEndAllowThreads(__tstate); | |
18884 | if (PyErr_Occurred()) SWIG_fail; | |
18885 | } | |
18886 | resultobj = SWIG_FromInt((int)result); | |
18887 | return resultobj; | |
18888 | fail: | |
18889 | return NULL; | |
18890 | } | |
18891 | ||
18892 | ||
18893 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18894 | PyObject *resultobj; | |
18895 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18896 | bool result; | |
18897 | PyObject * obj0 = 0 ; | |
18898 | char *kwnames[] = { | |
18899 | (char *) "self", NULL | |
18900 | }; | |
18901 | ||
18902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
18903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18905 | { | |
18906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18907 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18908 | ||
18909 | wxPyEndAllowThreads(__tstate); | |
18910 | if (PyErr_Occurred()) SWIG_fail; | |
18911 | } | |
18912 | { | |
18913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18914 | } | |
18915 | return resultobj; | |
18916 | fail: | |
18917 | return NULL; | |
18918 | } | |
18919 | ||
18920 | ||
18921 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18922 | PyObject *resultobj; | |
18923 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18924 | time_t result; | |
18925 | PyObject * obj0 = 0 ; | |
18926 | char *kwnames[] = { | |
18927 | (char *) "self", NULL | |
18928 | }; | |
18929 | ||
18930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
18931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18933 | { | |
18934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18935 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18936 | ||
18937 | wxPyEndAllowThreads(__tstate); | |
18938 | if (PyErr_Occurred()) SWIG_fail; | |
18939 | } | |
18940 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
18941 | return resultobj; | |
18942 | fail: | |
18943 | return NULL; | |
18944 | } | |
18945 | ||
18946 | ||
18947 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18948 | PyObject *resultobj; | |
18949 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18950 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18951 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18952 | int result; | |
18953 | bool temp2 = False ; | |
18954 | PyObject * obj0 = 0 ; | |
18955 | PyObject * obj1 = 0 ; | |
18956 | char *kwnames[] = { | |
18957 | (char *) "self",(char *) "tz", NULL | |
18958 | }; | |
18959 | ||
18960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
18961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18963 | if (obj1) { | |
18964 | { | |
18965 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18966 | temp2 = True; | |
18967 | } | |
18968 | } | |
18969 | { | |
18970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18971 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18972 | ||
18973 | wxPyEndAllowThreads(__tstate); | |
18974 | if (PyErr_Occurred()) SWIG_fail; | |
18975 | } | |
18976 | resultobj = SWIG_FromInt((int)result); | |
18977 | { | |
18978 | if (temp2) delete arg2; | |
18979 | } | |
18980 | return resultobj; | |
18981 | fail: | |
18982 | { | |
18983 | if (temp2) delete arg2; | |
18984 | } | |
18985 | return NULL; | |
18986 | } | |
18987 | ||
18988 | ||
18989 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18990 | PyObject *resultobj; | |
18991 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18992 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18993 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18994 | int result; | |
18995 | bool temp2 = False ; | |
18996 | PyObject * obj0 = 0 ; | |
18997 | PyObject * obj1 = 0 ; | |
18998 | char *kwnames[] = { | |
18999 | (char *) "self",(char *) "tz", NULL | |
19000 | }; | |
19001 | ||
19002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
19003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19005 | if (obj1) { | |
19006 | { | |
19007 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19008 | temp2 = True; | |
19009 | } | |
19010 | } | |
19011 | { | |
19012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19013 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19014 | ||
19015 | wxPyEndAllowThreads(__tstate); | |
19016 | if (PyErr_Occurred()) SWIG_fail; | |
19017 | } | |
19018 | resultobj = SWIG_FromInt((int)result); | |
19019 | { | |
19020 | if (temp2) delete arg2; | |
19021 | } | |
19022 | return resultobj; | |
19023 | fail: | |
19024 | { | |
19025 | if (temp2) delete arg2; | |
19026 | } | |
19027 | return NULL; | |
19028 | } | |
19029 | ||
19030 | ||
19031 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19032 | PyObject *resultobj; | |
19033 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19034 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19035 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19036 | int result; | |
19037 | bool temp2 = False ; | |
19038 | PyObject * obj0 = 0 ; | |
19039 | PyObject * obj1 = 0 ; | |
19040 | char *kwnames[] = { | |
19041 | (char *) "self",(char *) "tz", NULL | |
19042 | }; | |
19043 | ||
19044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
19045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19047 | if (obj1) { | |
19048 | { | |
19049 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19050 | temp2 = True; | |
19051 | } | |
19052 | } | |
19053 | { | |
19054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19055 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
19056 | ||
19057 | wxPyEndAllowThreads(__tstate); | |
19058 | if (PyErr_Occurred()) SWIG_fail; | |
19059 | } | |
19060 | resultobj = SWIG_FromInt((int)result); | |
19061 | { | |
19062 | if (temp2) delete arg2; | |
19063 | } | |
19064 | return resultobj; | |
19065 | fail: | |
19066 | { | |
19067 | if (temp2) delete arg2; | |
19068 | } | |
19069 | return NULL; | |
19070 | } | |
19071 | ||
19072 | ||
19073 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19074 | PyObject *resultobj; | |
19075 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19076 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19077 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19078 | int result; | |
19079 | bool temp2 = False ; | |
19080 | PyObject * obj0 = 0 ; | |
19081 | PyObject * obj1 = 0 ; | |
19082 | char *kwnames[] = { | |
19083 | (char *) "self",(char *) "tz", NULL | |
19084 | }; | |
19085 | ||
19086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19089 | if (obj1) { | |
19090 | { | |
19091 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19092 | temp2 = True; | |
19093 | } | |
19094 | } | |
19095 | { | |
19096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19097 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19098 | ||
19099 | wxPyEndAllowThreads(__tstate); | |
19100 | if (PyErr_Occurred()) SWIG_fail; | |
19101 | } | |
19102 | resultobj = SWIG_FromInt((int)result); | |
19103 | { | |
19104 | if (temp2) delete arg2; | |
19105 | } | |
19106 | return resultobj; | |
19107 | fail: | |
19108 | { | |
19109 | if (temp2) delete arg2; | |
19110 | } | |
19111 | return NULL; | |
19112 | } | |
19113 | ||
19114 | ||
19115 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19116 | PyObject *resultobj; | |
19117 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19118 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19119 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19120 | int result; | |
19121 | bool temp2 = False ; | |
19122 | PyObject * obj0 = 0 ; | |
19123 | PyObject * obj1 = 0 ; | |
19124 | char *kwnames[] = { | |
19125 | (char *) "self",(char *) "tz", NULL | |
19126 | }; | |
19127 | ||
19128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19131 | if (obj1) { | |
19132 | { | |
19133 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19134 | temp2 = True; | |
19135 | } | |
19136 | } | |
19137 | { | |
19138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19139 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19140 | ||
19141 | wxPyEndAllowThreads(__tstate); | |
19142 | if (PyErr_Occurred()) SWIG_fail; | |
19143 | } | |
19144 | resultobj = SWIG_FromInt((int)result); | |
19145 | { | |
19146 | if (temp2) delete arg2; | |
19147 | } | |
19148 | return resultobj; | |
19149 | fail: | |
19150 | { | |
19151 | if (temp2) delete arg2; | |
19152 | } | |
19153 | return NULL; | |
19154 | } | |
19155 | ||
19156 | ||
19157 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19158 | PyObject *resultobj; | |
19159 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19160 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19161 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19162 | int result; | |
19163 | bool temp2 = False ; | |
19164 | PyObject * obj0 = 0 ; | |
19165 | PyObject * obj1 = 0 ; | |
19166 | char *kwnames[] = { | |
19167 | (char *) "self",(char *) "tz", NULL | |
19168 | }; | |
19169 | ||
19170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19173 | if (obj1) { | |
19174 | { | |
19175 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19176 | temp2 = True; | |
19177 | } | |
19178 | } | |
19179 | { | |
19180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19181 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19182 | ||
19183 | wxPyEndAllowThreads(__tstate); | |
19184 | if (PyErr_Occurred()) SWIG_fail; | |
19185 | } | |
19186 | resultobj = SWIG_FromInt((int)result); | |
19187 | { | |
19188 | if (temp2) delete arg2; | |
19189 | } | |
19190 | return resultobj; | |
19191 | fail: | |
19192 | { | |
19193 | if (temp2) delete arg2; | |
19194 | } | |
19195 | return NULL; | |
19196 | } | |
19197 | ||
19198 | ||
19199 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19200 | PyObject *resultobj; | |
19201 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19202 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19203 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19204 | int result; | |
19205 | bool temp2 = False ; | |
19206 | PyObject * obj0 = 0 ; | |
19207 | PyObject * obj1 = 0 ; | |
19208 | char *kwnames[] = { | |
19209 | (char *) "self",(char *) "tz", NULL | |
19210 | }; | |
19211 | ||
19212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19215 | if (obj1) { | |
19216 | { | |
19217 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19218 | temp2 = True; | |
19219 | } | |
19220 | } | |
19221 | { | |
19222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19223 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19224 | ||
19225 | wxPyEndAllowThreads(__tstate); | |
19226 | if (PyErr_Occurred()) SWIG_fail; | |
19227 | } | |
19228 | resultobj = SWIG_FromInt((int)result); | |
19229 | { | |
19230 | if (temp2) delete arg2; | |
19231 | } | |
19232 | return resultobj; | |
19233 | fail: | |
19234 | { | |
19235 | if (temp2) delete arg2; | |
19236 | } | |
19237 | return NULL; | |
19238 | } | |
19239 | ||
19240 | ||
19241 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19242 | PyObject *resultobj; | |
19243 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19244 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19245 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19246 | int result; | |
19247 | bool temp2 = False ; | |
19248 | PyObject * obj0 = 0 ; | |
19249 | PyObject * obj1 = 0 ; | |
19250 | char *kwnames[] = { | |
19251 | (char *) "self",(char *) "tz", NULL | |
19252 | }; | |
19253 | ||
19254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19257 | if (obj1) { | |
19258 | { | |
19259 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19260 | temp2 = True; | |
19261 | } | |
19262 | } | |
19263 | { | |
19264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19265 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19266 | ||
19267 | wxPyEndAllowThreads(__tstate); | |
19268 | if (PyErr_Occurred()) SWIG_fail; | |
19269 | } | |
19270 | resultobj = SWIG_FromInt((int)result); | |
19271 | { | |
19272 | if (temp2) delete arg2; | |
19273 | } | |
19274 | return resultobj; | |
19275 | fail: | |
19276 | { | |
19277 | if (temp2) delete arg2; | |
19278 | } | |
19279 | return NULL; | |
19280 | } | |
19281 | ||
19282 | ||
19283 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19284 | PyObject *resultobj; | |
19285 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19286 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19287 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19288 | int result; | |
19289 | bool temp2 = False ; | |
19290 | PyObject * obj0 = 0 ; | |
19291 | PyObject * obj1 = 0 ; | |
19292 | char *kwnames[] = { | |
19293 | (char *) "self",(char *) "tz", NULL | |
19294 | }; | |
19295 | ||
19296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19299 | if (obj1) { | |
19300 | { | |
19301 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19302 | temp2 = True; | |
19303 | } | |
19304 | } | |
19305 | { | |
19306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19307 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
19308 | ||
19309 | wxPyEndAllowThreads(__tstate); | |
19310 | if (PyErr_Occurred()) SWIG_fail; | |
19311 | } | |
19312 | resultobj = SWIG_FromInt((int)result); | |
19313 | { | |
19314 | if (temp2) delete arg2; | |
19315 | } | |
19316 | return resultobj; | |
19317 | fail: | |
19318 | { | |
19319 | if (temp2) delete arg2; | |
19320 | } | |
19321 | return NULL; | |
19322 | } | |
19323 | ||
19324 | ||
19325 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19326 | PyObject *resultobj; | |
19327 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19328 | int arg2 = (int) wxDateTime::Monday_First ; | |
19329 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19330 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19331 | int result; | |
19332 | bool temp3 = False ; | |
19333 | PyObject * obj0 = 0 ; | |
19334 | PyObject * obj1 = 0 ; | |
19335 | PyObject * obj2 = 0 ; | |
19336 | char *kwnames[] = { | |
19337 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19338 | }; | |
19339 | ||
19340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19343 | if (obj1) { | |
19344 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19345 | if (PyErr_Occurred()) SWIG_fail; | |
19346 | } | |
19347 | if (obj2) { | |
19348 | { | |
19349 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19350 | temp3 = True; | |
19351 | } | |
19352 | } | |
19353 | { | |
19354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19355 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19356 | ||
19357 | wxPyEndAllowThreads(__tstate); | |
19358 | if (PyErr_Occurred()) SWIG_fail; | |
19359 | } | |
19360 | resultobj = SWIG_FromInt((int)result); | |
19361 | { | |
19362 | if (temp3) delete arg3; | |
19363 | } | |
19364 | return resultobj; | |
19365 | fail: | |
19366 | { | |
19367 | if (temp3) delete arg3; | |
19368 | } | |
19369 | return NULL; | |
19370 | } | |
19371 | ||
19372 | ||
19373 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19374 | PyObject *resultobj; | |
19375 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19376 | int arg2 = (int) wxDateTime::Monday_First ; | |
19377 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19378 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19379 | int result; | |
19380 | bool temp3 = False ; | |
19381 | PyObject * obj0 = 0 ; | |
19382 | PyObject * obj1 = 0 ; | |
19383 | PyObject * obj2 = 0 ; | |
19384 | char *kwnames[] = { | |
19385 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19386 | }; | |
19387 | ||
19388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19391 | if (obj1) { | |
19392 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19393 | if (PyErr_Occurred()) SWIG_fail; | |
19394 | } | |
19395 | if (obj2) { | |
19396 | { | |
19397 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19398 | temp3 = True; | |
19399 | } | |
19400 | } | |
19401 | { | |
19402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19403 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19404 | ||
19405 | wxPyEndAllowThreads(__tstate); | |
19406 | if (PyErr_Occurred()) SWIG_fail; | |
19407 | } | |
19408 | resultobj = SWIG_FromInt((int)result); | |
19409 | { | |
19410 | if (temp3) delete arg3; | |
19411 | } | |
19412 | return resultobj; | |
19413 | fail: | |
19414 | { | |
19415 | if (temp3) delete arg3; | |
19416 | } | |
19417 | return NULL; | |
19418 | } | |
19419 | ||
19420 | ||
19421 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19422 | PyObject *resultobj; | |
19423 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19424 | int arg2 = (int) wxDateTime::Country_Default ; | |
19425 | bool result; | |
19426 | PyObject * obj0 = 0 ; | |
19427 | PyObject * obj1 = 0 ; | |
19428 | char *kwnames[] = { | |
19429 | (char *) "self",(char *) "country", NULL | |
19430 | }; | |
19431 | ||
19432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
19433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19435 | if (obj1) { | |
19436 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
19437 | if (PyErr_Occurred()) SWIG_fail; | |
19438 | } | |
19439 | { | |
19440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19441 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19442 | ||
19443 | wxPyEndAllowThreads(__tstate); | |
19444 | if (PyErr_Occurred()) SWIG_fail; | |
19445 | } | |
19446 | { | |
19447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19448 | } | |
19449 | return resultobj; | |
19450 | fail: | |
19451 | return NULL; | |
19452 | } | |
19453 | ||
19454 | ||
19455 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19456 | PyObject *resultobj; | |
19457 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19458 | wxDateTime *arg2 = 0 ; | |
19459 | bool result; | |
19460 | PyObject * obj0 = 0 ; | |
19461 | PyObject * obj1 = 0 ; | |
19462 | char *kwnames[] = { | |
19463 | (char *) "self",(char *) "datetime", NULL | |
19464 | }; | |
19465 | ||
19466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19470 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19471 | SWIG_fail; | |
19472 | if (arg2 == NULL) { | |
19473 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19474 | SWIG_fail; | |
19475 | } | |
19476 | { | |
19477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19478 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19479 | ||
19480 | wxPyEndAllowThreads(__tstate); | |
19481 | if (PyErr_Occurred()) SWIG_fail; | |
19482 | } | |
19483 | { | |
19484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19485 | } | |
19486 | return resultobj; | |
19487 | fail: | |
19488 | return NULL; | |
19489 | } | |
19490 | ||
19491 | ||
19492 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19493 | PyObject *resultobj; | |
19494 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19495 | wxDateTime *arg2 = 0 ; | |
19496 | bool result; | |
19497 | PyObject * obj0 = 0 ; | |
19498 | PyObject * obj1 = 0 ; | |
19499 | char *kwnames[] = { | |
19500 | (char *) "self",(char *) "datetime", NULL | |
19501 | }; | |
19502 | ||
19503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19506 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19507 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19508 | SWIG_fail; | |
19509 | if (arg2 == NULL) { | |
19510 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19511 | SWIG_fail; | |
19512 | } | |
19513 | { | |
19514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19515 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19516 | ||
19517 | wxPyEndAllowThreads(__tstate); | |
19518 | if (PyErr_Occurred()) SWIG_fail; | |
19519 | } | |
19520 | { | |
19521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19522 | } | |
19523 | return resultobj; | |
19524 | fail: | |
19525 | return NULL; | |
19526 | } | |
19527 | ||
19528 | ||
19529 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19530 | PyObject *resultobj; | |
19531 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19532 | wxDateTime *arg2 = 0 ; | |
19533 | bool result; | |
19534 | PyObject * obj0 = 0 ; | |
19535 | PyObject * obj1 = 0 ; | |
19536 | char *kwnames[] = { | |
19537 | (char *) "self",(char *) "datetime", NULL | |
19538 | }; | |
19539 | ||
19540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
19541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19543 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19544 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19545 | SWIG_fail; | |
19546 | if (arg2 == NULL) { | |
19547 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19548 | SWIG_fail; | |
19549 | } | |
19550 | { | |
19551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19552 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19553 | ||
19554 | wxPyEndAllowThreads(__tstate); | |
19555 | if (PyErr_Occurred()) SWIG_fail; | |
19556 | } | |
19557 | { | |
19558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19559 | } | |
19560 | return resultobj; | |
19561 | fail: | |
19562 | return NULL; | |
19563 | } | |
19564 | ||
19565 | ||
19566 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19567 | PyObject *resultobj; | |
19568 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19569 | wxDateTime *arg2 = 0 ; | |
19570 | wxDateTime *arg3 = 0 ; | |
19571 | bool result; | |
19572 | PyObject * obj0 = 0 ; | |
19573 | PyObject * obj1 = 0 ; | |
19574 | PyObject * obj2 = 0 ; | |
19575 | char *kwnames[] = { | |
19576 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19577 | }; | |
19578 | ||
19579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19584 | SWIG_fail; | |
19585 | if (arg2 == NULL) { | |
19586 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19587 | SWIG_fail; | |
19588 | } | |
19589 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19590 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19591 | SWIG_fail; | |
19592 | if (arg3 == NULL) { | |
19593 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19594 | SWIG_fail; | |
19595 | } | |
19596 | { | |
19597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19598 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19599 | ||
19600 | wxPyEndAllowThreads(__tstate); | |
19601 | if (PyErr_Occurred()) SWIG_fail; | |
19602 | } | |
19603 | { | |
19604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19605 | } | |
19606 | return resultobj; | |
19607 | fail: | |
19608 | return NULL; | |
19609 | } | |
19610 | ||
19611 | ||
19612 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19613 | PyObject *resultobj; | |
19614 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19615 | wxDateTime *arg2 = 0 ; | |
19616 | wxDateTime *arg3 = 0 ; | |
19617 | bool result; | |
19618 | PyObject * obj0 = 0 ; | |
19619 | PyObject * obj1 = 0 ; | |
19620 | PyObject * obj2 = 0 ; | |
19621 | char *kwnames[] = { | |
19622 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19623 | }; | |
19624 | ||
19625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19628 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19629 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19630 | SWIG_fail; | |
19631 | if (arg2 == NULL) { | |
19632 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19633 | SWIG_fail; | |
19634 | } | |
19635 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19636 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19637 | SWIG_fail; | |
19638 | if (arg3 == NULL) { | |
19639 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19640 | SWIG_fail; | |
19641 | } | |
19642 | { | |
19643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19644 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19645 | ||
19646 | wxPyEndAllowThreads(__tstate); | |
19647 | if (PyErr_Occurred()) SWIG_fail; | |
19648 | } | |
19649 | { | |
19650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19651 | } | |
19652 | return resultobj; | |
19653 | fail: | |
19654 | return NULL; | |
19655 | } | |
19656 | ||
19657 | ||
19658 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19659 | PyObject *resultobj; | |
19660 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19661 | wxDateTime *arg2 = 0 ; | |
19662 | bool result; | |
19663 | PyObject * obj0 = 0 ; | |
19664 | PyObject * obj1 = 0 ; | |
19665 | char *kwnames[] = { | |
19666 | (char *) "self",(char *) "dt", NULL | |
19667 | }; | |
19668 | ||
19669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
19670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19672 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19673 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19674 | SWIG_fail; | |
19675 | if (arg2 == NULL) { | |
19676 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19677 | SWIG_fail; | |
19678 | } | |
19679 | { | |
19680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19681 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19682 | ||
19683 | wxPyEndAllowThreads(__tstate); | |
19684 | if (PyErr_Occurred()) SWIG_fail; | |
19685 | } | |
19686 | { | |
19687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19688 | } | |
19689 | return resultobj; | |
19690 | fail: | |
19691 | return NULL; | |
19692 | } | |
19693 | ||
19694 | ||
19695 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19696 | PyObject *resultobj; | |
19697 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19698 | wxDateTime *arg2 = 0 ; | |
19699 | bool result; | |
19700 | PyObject * obj0 = 0 ; | |
19701 | PyObject * obj1 = 0 ; | |
19702 | char *kwnames[] = { | |
19703 | (char *) "self",(char *) "dt", NULL | |
19704 | }; | |
19705 | ||
19706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
19707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19709 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19710 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19711 | SWIG_fail; | |
19712 | if (arg2 == NULL) { | |
19713 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19714 | SWIG_fail; | |
19715 | } | |
19716 | { | |
19717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19718 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19719 | ||
19720 | wxPyEndAllowThreads(__tstate); | |
19721 | if (PyErr_Occurred()) SWIG_fail; | |
19722 | } | |
19723 | { | |
19724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19725 | } | |
19726 | return resultobj; | |
19727 | fail: | |
19728 | return NULL; | |
19729 | } | |
19730 | ||
19731 | ||
19732 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19733 | PyObject *resultobj; | |
19734 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19735 | wxDateTime *arg2 = 0 ; | |
19736 | wxTimeSpan *arg3 = 0 ; | |
19737 | bool result; | |
19738 | PyObject * obj0 = 0 ; | |
19739 | PyObject * obj1 = 0 ; | |
19740 | PyObject * obj2 = 0 ; | |
19741 | char *kwnames[] = { | |
19742 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19743 | }; | |
19744 | ||
19745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19748 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19749 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19750 | SWIG_fail; | |
19751 | if (arg2 == NULL) { | |
19752 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19753 | SWIG_fail; | |
19754 | } | |
19755 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
19756 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19757 | SWIG_fail; | |
19758 | if (arg3 == NULL) { | |
19759 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19760 | SWIG_fail; | |
19761 | } | |
19762 | { | |
19763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19764 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19765 | ||
19766 | wxPyEndAllowThreads(__tstate); | |
19767 | if (PyErr_Occurred()) SWIG_fail; | |
19768 | } | |
19769 | { | |
19770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19771 | } | |
19772 | return resultobj; | |
19773 | fail: | |
19774 | return NULL; | |
19775 | } | |
19776 | ||
19777 | ||
19778 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19779 | PyObject *resultobj; | |
19780 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19781 | wxTimeSpan *arg2 = 0 ; | |
19782 | wxDateTime *result; | |
19783 | PyObject * obj0 = 0 ; | |
19784 | PyObject * obj1 = 0 ; | |
19785 | char *kwnames[] = { | |
19786 | (char *) "self",(char *) "diff", NULL | |
19787 | }; | |
19788 | ||
19789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
19790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19793 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19794 | SWIG_fail; | |
19795 | if (arg2 == NULL) { | |
19796 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19797 | SWIG_fail; | |
19798 | } | |
19799 | { | |
19800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19801 | { | |
19802 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19803 | result = (wxDateTime *) &_result_ref; | |
19804 | } | |
19805 | ||
19806 | wxPyEndAllowThreads(__tstate); | |
19807 | if (PyErr_Occurred()) SWIG_fail; | |
19808 | } | |
19809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19810 | return resultobj; | |
19811 | fail: | |
19812 | return NULL; | |
19813 | } | |
19814 | ||
19815 | ||
19816 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19817 | PyObject *resultobj; | |
19818 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19819 | wxDateSpan *arg2 = 0 ; | |
19820 | wxDateTime *result; | |
19821 | PyObject * obj0 = 0 ; | |
19822 | PyObject * obj1 = 0 ; | |
19823 | char *kwnames[] = { | |
19824 | (char *) "self",(char *) "diff", NULL | |
19825 | }; | |
19826 | ||
19827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
19828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19830 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19831 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19832 | SWIG_fail; | |
19833 | if (arg2 == NULL) { | |
19834 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19835 | SWIG_fail; | |
19836 | } | |
19837 | { | |
19838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19839 | { | |
19840 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19841 | result = (wxDateTime *) &_result_ref; | |
19842 | } | |
19843 | ||
19844 | wxPyEndAllowThreads(__tstate); | |
19845 | if (PyErr_Occurred()) SWIG_fail; | |
19846 | } | |
19847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19848 | return resultobj; | |
19849 | fail: | |
19850 | return NULL; | |
19851 | } | |
19852 | ||
19853 | ||
19854 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19855 | PyObject *resultobj; | |
19856 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19857 | wxTimeSpan *arg2 = 0 ; | |
19858 | wxDateTime *result; | |
19859 | PyObject * obj0 = 0 ; | |
19860 | PyObject * obj1 = 0 ; | |
19861 | char *kwnames[] = { | |
19862 | (char *) "self",(char *) "diff", NULL | |
19863 | }; | |
19864 | ||
19865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
19866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19870 | SWIG_fail; | |
19871 | if (arg2 == NULL) { | |
19872 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19873 | SWIG_fail; | |
19874 | } | |
19875 | { | |
19876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19877 | { | |
19878 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19879 | result = (wxDateTime *) &_result_ref; | |
19880 | } | |
19881 | ||
19882 | wxPyEndAllowThreads(__tstate); | |
19883 | if (PyErr_Occurred()) SWIG_fail; | |
19884 | } | |
19885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19886 | return resultobj; | |
19887 | fail: | |
19888 | return NULL; | |
19889 | } | |
19890 | ||
19891 | ||
19892 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19893 | PyObject *resultobj; | |
19894 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19895 | wxDateSpan *arg2 = 0 ; | |
19896 | wxDateTime *result; | |
19897 | PyObject * obj0 = 0 ; | |
19898 | PyObject * obj1 = 0 ; | |
19899 | char *kwnames[] = { | |
19900 | (char *) "self",(char *) "diff", NULL | |
19901 | }; | |
19902 | ||
19903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
19904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19906 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19907 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19908 | SWIG_fail; | |
19909 | if (arg2 == NULL) { | |
19910 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19911 | SWIG_fail; | |
19912 | } | |
19913 | { | |
19914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19915 | { | |
19916 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19917 | result = (wxDateTime *) &_result_ref; | |
19918 | } | |
19919 | ||
19920 | wxPyEndAllowThreads(__tstate); | |
19921 | if (PyErr_Occurred()) SWIG_fail; | |
19922 | } | |
19923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19924 | return resultobj; | |
19925 | fail: | |
19926 | return NULL; | |
19927 | } | |
19928 | ||
19929 | ||
19930 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19931 | PyObject *resultobj; | |
19932 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19933 | wxDateTime *arg2 = 0 ; | |
19934 | wxTimeSpan result; | |
19935 | PyObject * obj0 = 0 ; | |
19936 | PyObject * obj1 = 0 ; | |
19937 | char *kwnames[] = { | |
19938 | (char *) "self",(char *) "dt", NULL | |
19939 | }; | |
19940 | ||
19941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19944 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19945 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19946 | SWIG_fail; | |
19947 | if (arg2 == NULL) { | |
19948 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19949 | SWIG_fail; | |
19950 | } | |
19951 | { | |
19952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19953 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19954 | ||
19955 | wxPyEndAllowThreads(__tstate); | |
19956 | if (PyErr_Occurred()) SWIG_fail; | |
19957 | } | |
19958 | { | |
19959 | wxTimeSpan * resultptr; | |
19960 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19961 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
19962 | } | |
19963 | return resultobj; | |
19964 | fail: | |
19965 | return NULL; | |
19966 | } | |
19967 | ||
19968 | ||
19969 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19970 | PyObject *resultobj; | |
19971 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19972 | wxTimeSpan *arg2 = 0 ; | |
19973 | wxDateTime *result; | |
19974 | PyObject * obj0 = 0 ; | |
19975 | PyObject * obj1 = 0 ; | |
19976 | ||
19977 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19981 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19982 | SWIG_fail; | |
19983 | if (arg2 == NULL) { | |
19984 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19985 | SWIG_fail; | |
19986 | } | |
19987 | { | |
19988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19989 | { | |
19990 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19991 | result = (wxDateTime *) &_result_ref; | |
19992 | } | |
19993 | ||
19994 | wxPyEndAllowThreads(__tstate); | |
19995 | if (PyErr_Occurred()) SWIG_fail; | |
19996 | } | |
19997 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19998 | return resultobj; | |
19999 | fail: | |
20000 | return NULL; | |
20001 | } | |
20002 | ||
20003 | ||
20004 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
20005 | PyObject *resultobj; | |
20006 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20007 | wxDateSpan *arg2 = 0 ; | |
20008 | wxDateTime *result; | |
20009 | PyObject * obj0 = 0 ; | |
20010 | PyObject * obj1 = 0 ; | |
20011 | ||
20012 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20015 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20016 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20017 | SWIG_fail; | |
20018 | if (arg2 == NULL) { | |
20019 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20020 | SWIG_fail; | |
20021 | } | |
20022 | { | |
20023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20024 | { | |
20025 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20026 | result = (wxDateTime *) &_result_ref; | |
20027 | } | |
20028 | ||
20029 | wxPyEndAllowThreads(__tstate); | |
20030 | if (PyErr_Occurred()) SWIG_fail; | |
20031 | } | |
20032 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20033 | return resultobj; | |
20034 | fail: | |
20035 | return NULL; | |
20036 | } | |
20037 | ||
20038 | ||
20039 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20040 | int argc; | |
20041 | PyObject *argv[3]; | |
20042 | int ii; | |
20043 | ||
20044 | argc = PyObject_Length(args); | |
20045 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20046 | argv[ii] = PyTuple_GetItem(args,ii); | |
20047 | } | |
20048 | if (argc == 2) { | |
20049 | int _v; | |
20050 | { | |
20051 | void *ptr; | |
20052 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20053 | _v = 0; | |
20054 | PyErr_Clear(); | |
20055 | } else { | |
20056 | _v = 1; | |
20057 | } | |
20058 | } | |
20059 | if (_v) { | |
20060 | { | |
20061 | void *ptr; | |
20062 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20063 | _v = 0; | |
20064 | PyErr_Clear(); | |
20065 | } else { | |
20066 | _v = 1; | |
20067 | } | |
20068 | } | |
20069 | if (_v) { | |
20070 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20071 | } | |
20072 | } | |
20073 | } | |
20074 | if (argc == 2) { | |
20075 | int _v; | |
20076 | { | |
20077 | void *ptr; | |
20078 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20079 | _v = 0; | |
20080 | PyErr_Clear(); | |
20081 | } else { | |
20082 | _v = 1; | |
20083 | } | |
20084 | } | |
20085 | if (_v) { | |
20086 | { | |
20087 | void *ptr; | |
20088 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20089 | _v = 0; | |
20090 | PyErr_Clear(); | |
20091 | } else { | |
20092 | _v = 1; | |
20093 | } | |
20094 | } | |
20095 | if (_v) { | |
20096 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20097 | } | |
20098 | } | |
20099 | } | |
20100 | ||
20101 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20102 | return NULL; | |
20103 | } | |
20104 | ||
20105 | ||
20106 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20107 | PyObject *resultobj; | |
20108 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20109 | wxTimeSpan *arg2 = 0 ; | |
20110 | wxDateTime *result; | |
20111 | PyObject * obj0 = 0 ; | |
20112 | PyObject * obj1 = 0 ; | |
20113 | ||
20114 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20117 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20118 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20119 | SWIG_fail; | |
20120 | if (arg2 == NULL) { | |
20121 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20122 | SWIG_fail; | |
20123 | } | |
20124 | { | |
20125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20126 | { | |
20127 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20128 | result = (wxDateTime *) &_result_ref; | |
20129 | } | |
20130 | ||
20131 | wxPyEndAllowThreads(__tstate); | |
20132 | if (PyErr_Occurred()) SWIG_fail; | |
20133 | } | |
20134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20135 | return resultobj; | |
20136 | fail: | |
20137 | return NULL; | |
20138 | } | |
20139 | ||
20140 | ||
20141 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20142 | PyObject *resultobj; | |
20143 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20144 | wxDateSpan *arg2 = 0 ; | |
20145 | wxDateTime *result; | |
20146 | PyObject * obj0 = 0 ; | |
20147 | PyObject * obj1 = 0 ; | |
20148 | ||
20149 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20152 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20153 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20154 | SWIG_fail; | |
20155 | if (arg2 == NULL) { | |
20156 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20157 | SWIG_fail; | |
20158 | } | |
20159 | { | |
20160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20161 | { | |
20162 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20163 | result = (wxDateTime *) &_result_ref; | |
20164 | } | |
20165 | ||
20166 | wxPyEndAllowThreads(__tstate); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | } | |
20169 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20170 | return resultobj; | |
20171 | fail: | |
20172 | return NULL; | |
20173 | } | |
20174 | ||
20175 | ||
20176 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20177 | int argc; | |
20178 | PyObject *argv[3]; | |
20179 | int ii; | |
20180 | ||
20181 | argc = PyObject_Length(args); | |
20182 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20183 | argv[ii] = PyTuple_GetItem(args,ii); | |
20184 | } | |
20185 | if (argc == 2) { | |
20186 | int _v; | |
20187 | { | |
20188 | void *ptr; | |
20189 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20190 | _v = 0; | |
20191 | PyErr_Clear(); | |
20192 | } else { | |
20193 | _v = 1; | |
20194 | } | |
20195 | } | |
20196 | if (_v) { | |
20197 | { | |
20198 | void *ptr; | |
20199 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20200 | _v = 0; | |
20201 | PyErr_Clear(); | |
20202 | } else { | |
20203 | _v = 1; | |
20204 | } | |
20205 | } | |
20206 | if (_v) { | |
20207 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20208 | } | |
20209 | } | |
20210 | } | |
20211 | if (argc == 2) { | |
20212 | int _v; | |
20213 | { | |
20214 | void *ptr; | |
20215 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20216 | _v = 0; | |
20217 | PyErr_Clear(); | |
20218 | } else { | |
20219 | _v = 1; | |
20220 | } | |
20221 | } | |
20222 | if (_v) { | |
20223 | { | |
20224 | void *ptr; | |
20225 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20226 | _v = 0; | |
20227 | PyErr_Clear(); | |
20228 | } else { | |
20229 | _v = 1; | |
20230 | } | |
20231 | } | |
20232 | if (_v) { | |
20233 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20234 | } | |
20235 | } | |
20236 | } | |
20237 | ||
20238 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20239 | return NULL; | |
20240 | } | |
20241 | ||
20242 | ||
20243 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20244 | PyObject *resultobj; | |
20245 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20246 | wxTimeSpan *arg2 = 0 ; | |
20247 | wxDateTime result; | |
20248 | PyObject * obj0 = 0 ; | |
20249 | PyObject * obj1 = 0 ; | |
20250 | ||
20251 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20254 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20255 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20256 | SWIG_fail; | |
20257 | if (arg2 == NULL) { | |
20258 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20259 | SWIG_fail; | |
20260 | } | |
20261 | { | |
20262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20263 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20264 | ||
20265 | wxPyEndAllowThreads(__tstate); | |
20266 | if (PyErr_Occurred()) SWIG_fail; | |
20267 | } | |
20268 | { | |
20269 | wxDateTime * resultptr; | |
20270 | resultptr = new wxDateTime((wxDateTime &) result); | |
20271 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20272 | } | |
20273 | return resultobj; | |
20274 | fail: | |
20275 | return NULL; | |
20276 | } | |
20277 | ||
20278 | ||
20279 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20280 | PyObject *resultobj; | |
20281 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20282 | wxDateSpan *arg2 = 0 ; | |
20283 | wxDateTime result; | |
20284 | PyObject * obj0 = 0 ; | |
20285 | PyObject * obj1 = 0 ; | |
20286 | ||
20287 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20290 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20291 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20292 | SWIG_fail; | |
20293 | if (arg2 == NULL) { | |
20294 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20295 | SWIG_fail; | |
20296 | } | |
20297 | { | |
20298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20299 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20300 | ||
20301 | wxPyEndAllowThreads(__tstate); | |
20302 | if (PyErr_Occurred()) SWIG_fail; | |
20303 | } | |
20304 | { | |
20305 | wxDateTime * resultptr; | |
20306 | resultptr = new wxDateTime((wxDateTime &) result); | |
20307 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20308 | } | |
20309 | return resultobj; | |
20310 | fail: | |
20311 | return NULL; | |
20312 | } | |
20313 | ||
20314 | ||
20315 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20316 | int argc; | |
20317 | PyObject *argv[3]; | |
20318 | int ii; | |
20319 | ||
20320 | argc = PyObject_Length(args); | |
20321 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20322 | argv[ii] = PyTuple_GetItem(args,ii); | |
20323 | } | |
20324 | if (argc == 2) { | |
20325 | int _v; | |
20326 | { | |
20327 | void *ptr; | |
20328 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20329 | _v = 0; | |
20330 | PyErr_Clear(); | |
20331 | } else { | |
20332 | _v = 1; | |
20333 | } | |
20334 | } | |
20335 | if (_v) { | |
20336 | { | |
20337 | void *ptr; | |
20338 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20339 | _v = 0; | |
20340 | PyErr_Clear(); | |
20341 | } else { | |
20342 | _v = 1; | |
20343 | } | |
20344 | } | |
20345 | if (_v) { | |
20346 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20347 | } | |
20348 | } | |
20349 | } | |
20350 | if (argc == 2) { | |
20351 | int _v; | |
20352 | { | |
20353 | void *ptr; | |
20354 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20355 | _v = 0; | |
20356 | PyErr_Clear(); | |
20357 | } else { | |
20358 | _v = 1; | |
20359 | } | |
20360 | } | |
20361 | if (_v) { | |
20362 | { | |
20363 | void *ptr; | |
20364 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20365 | _v = 0; | |
20366 | PyErr_Clear(); | |
20367 | } else { | |
20368 | _v = 1; | |
20369 | } | |
20370 | } | |
20371 | if (_v) { | |
20372 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20373 | } | |
20374 | } | |
20375 | } | |
20376 | ||
20377 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20378 | return NULL; | |
20379 | } | |
20380 | ||
20381 | ||
20382 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20383 | PyObject *resultobj; | |
20384 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20385 | wxDateTime *arg2 = 0 ; | |
20386 | wxTimeSpan result; | |
20387 | PyObject * obj0 = 0 ; | |
20388 | PyObject * obj1 = 0 ; | |
20389 | ||
20390 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20393 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20394 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20395 | SWIG_fail; | |
20396 | if (arg2 == NULL) { | |
20397 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20398 | SWIG_fail; | |
20399 | } | |
20400 | { | |
20401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20402 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20403 | ||
20404 | wxPyEndAllowThreads(__tstate); | |
20405 | if (PyErr_Occurred()) SWIG_fail; | |
20406 | } | |
20407 | { | |
20408 | wxTimeSpan * resultptr; | |
20409 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20411 | } | |
20412 | return resultobj; | |
20413 | fail: | |
20414 | return NULL; | |
20415 | } | |
20416 | ||
20417 | ||
20418 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20419 | PyObject *resultobj; | |
20420 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20421 | wxTimeSpan *arg2 = 0 ; | |
20422 | wxDateTime result; | |
20423 | PyObject * obj0 = 0 ; | |
20424 | PyObject * obj1 = 0 ; | |
20425 | ||
20426 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20430 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20431 | SWIG_fail; | |
20432 | if (arg2 == NULL) { | |
20433 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20434 | SWIG_fail; | |
20435 | } | |
20436 | { | |
20437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20438 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20439 | ||
20440 | wxPyEndAllowThreads(__tstate); | |
20441 | if (PyErr_Occurred()) SWIG_fail; | |
20442 | } | |
20443 | { | |
20444 | wxDateTime * resultptr; | |
20445 | resultptr = new wxDateTime((wxDateTime &) result); | |
20446 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20447 | } | |
20448 | return resultobj; | |
20449 | fail: | |
20450 | return NULL; | |
20451 | } | |
20452 | ||
20453 | ||
20454 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20455 | PyObject *resultobj; | |
20456 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20457 | wxDateSpan *arg2 = 0 ; | |
20458 | wxDateTime result; | |
20459 | PyObject * obj0 = 0 ; | |
20460 | PyObject * obj1 = 0 ; | |
20461 | ||
20462 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20466 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20467 | SWIG_fail; | |
20468 | if (arg2 == NULL) { | |
20469 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20470 | SWIG_fail; | |
20471 | } | |
20472 | { | |
20473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20474 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20475 | ||
20476 | wxPyEndAllowThreads(__tstate); | |
20477 | if (PyErr_Occurred()) SWIG_fail; | |
20478 | } | |
20479 | { | |
20480 | wxDateTime * resultptr; | |
20481 | resultptr = new wxDateTime((wxDateTime &) result); | |
20482 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20483 | } | |
20484 | return resultobj; | |
20485 | fail: | |
20486 | return NULL; | |
20487 | } | |
20488 | ||
20489 | ||
20490 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20491 | int argc; | |
20492 | PyObject *argv[3]; | |
20493 | int ii; | |
20494 | ||
20495 | argc = PyObject_Length(args); | |
20496 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20497 | argv[ii] = PyTuple_GetItem(args,ii); | |
20498 | } | |
20499 | if (argc == 2) { | |
20500 | int _v; | |
20501 | { | |
20502 | void *ptr; | |
20503 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20504 | _v = 0; | |
20505 | PyErr_Clear(); | |
20506 | } else { | |
20507 | _v = 1; | |
20508 | } | |
20509 | } | |
20510 | if (_v) { | |
20511 | { | |
20512 | void *ptr; | |
20513 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20514 | _v = 0; | |
20515 | PyErr_Clear(); | |
20516 | } else { | |
20517 | _v = 1; | |
20518 | } | |
20519 | } | |
20520 | if (_v) { | |
20521 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20522 | } | |
20523 | } | |
20524 | } | |
20525 | if (argc == 2) { | |
20526 | int _v; | |
20527 | { | |
20528 | void *ptr; | |
20529 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20530 | _v = 0; | |
20531 | PyErr_Clear(); | |
20532 | } else { | |
20533 | _v = 1; | |
20534 | } | |
20535 | } | |
20536 | if (_v) { | |
20537 | { | |
20538 | void *ptr; | |
20539 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20540 | _v = 0; | |
20541 | PyErr_Clear(); | |
20542 | } else { | |
20543 | _v = 1; | |
20544 | } | |
20545 | } | |
20546 | if (_v) { | |
20547 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20548 | } | |
20549 | } | |
20550 | } | |
20551 | if (argc == 2) { | |
20552 | int _v; | |
20553 | { | |
20554 | void *ptr; | |
20555 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20556 | _v = 0; | |
20557 | PyErr_Clear(); | |
20558 | } else { | |
20559 | _v = 1; | |
20560 | } | |
20561 | } | |
20562 | if (_v) { | |
20563 | { | |
20564 | void *ptr; | |
20565 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20566 | _v = 0; | |
20567 | PyErr_Clear(); | |
20568 | } else { | |
20569 | _v = 1; | |
20570 | } | |
20571 | } | |
20572 | if (_v) { | |
20573 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20574 | } | |
20575 | } | |
20576 | } | |
20577 | ||
20578 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20579 | return NULL; | |
20580 | } | |
20581 | ||
20582 | ||
20583 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20584 | PyObject *resultobj; | |
20585 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20586 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20587 | bool result; | |
20588 | PyObject * obj0 = 0 ; | |
20589 | PyObject * obj1 = 0 ; | |
20590 | ||
20591 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
20592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20594 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20596 | { | |
20597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20598 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
20599 | ||
20600 | wxPyEndAllowThreads(__tstate); | |
20601 | if (PyErr_Occurred()) SWIG_fail; | |
20602 | } | |
20603 | { | |
20604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20605 | } | |
20606 | return resultobj; | |
20607 | fail: | |
20608 | return NULL; | |
20609 | } | |
20610 | ||
20611 | ||
20612 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20613 | PyObject *resultobj; | |
20614 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20615 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20616 | bool result; | |
20617 | PyObject * obj0 = 0 ; | |
20618 | PyObject * obj1 = 0 ; | |
20619 | ||
20620 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
20621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20623 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20625 | { | |
20626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20627 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
20628 | ||
20629 | wxPyEndAllowThreads(__tstate); | |
20630 | if (PyErr_Occurred()) SWIG_fail; | |
20631 | } | |
20632 | { | |
20633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20634 | } | |
20635 | return resultobj; | |
20636 | fail: | |
20637 | return NULL; | |
20638 | } | |
20639 | ||
20640 | ||
20641 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20642 | PyObject *resultobj; | |
20643 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20644 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20645 | bool result; | |
20646 | PyObject * obj0 = 0 ; | |
20647 | PyObject * obj1 = 0 ; | |
20648 | ||
20649 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
20650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20652 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20654 | { | |
20655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20656 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
20657 | ||
20658 | wxPyEndAllowThreads(__tstate); | |
20659 | if (PyErr_Occurred()) SWIG_fail; | |
20660 | } | |
20661 | { | |
20662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20663 | } | |
20664 | return resultobj; | |
20665 | fail: | |
20666 | return NULL; | |
20667 | } | |
20668 | ||
20669 | ||
20670 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20671 | PyObject *resultobj; | |
20672 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20673 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20674 | bool result; | |
20675 | PyObject * obj0 = 0 ; | |
20676 | PyObject * obj1 = 0 ; | |
20677 | ||
20678 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
20679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20681 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20683 | { | |
20684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20685 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
20686 | ||
20687 | wxPyEndAllowThreads(__tstate); | |
20688 | if (PyErr_Occurred()) SWIG_fail; | |
20689 | } | |
20690 | { | |
20691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20692 | } | |
20693 | return resultobj; | |
20694 | fail: | |
20695 | return NULL; | |
20696 | } | |
20697 | ||
20698 | ||
20699 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20700 | PyObject *resultobj; | |
20701 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20702 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20703 | bool result; | |
20704 | PyObject * obj0 = 0 ; | |
20705 | PyObject * obj1 = 0 ; | |
20706 | ||
20707 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
20708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20710 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20712 | { | |
20713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20714 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
20715 | ||
20716 | wxPyEndAllowThreads(__tstate); | |
20717 | if (PyErr_Occurred()) SWIG_fail; | |
20718 | } | |
20719 | { | |
20720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20721 | } | |
20722 | return resultobj; | |
20723 | fail: | |
20724 | return NULL; | |
20725 | } | |
20726 | ||
20727 | ||
20728 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20729 | PyObject *resultobj; | |
20730 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20731 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20732 | bool result; | |
20733 | PyObject * obj0 = 0 ; | |
20734 | PyObject * obj1 = 0 ; | |
20735 | ||
20736 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
20737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20739 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20741 | { | |
20742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20743 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
20744 | ||
20745 | wxPyEndAllowThreads(__tstate); | |
20746 | if (PyErr_Occurred()) SWIG_fail; | |
20747 | } | |
20748 | { | |
20749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20750 | } | |
20751 | return resultobj; | |
20752 | fail: | |
20753 | return NULL; | |
20754 | } | |
20755 | ||
20756 | ||
20757 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20758 | PyObject *resultobj; | |
20759 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20760 | wxString *arg2 = 0 ; | |
20761 | int result; | |
20762 | bool temp2 = False ; | |
20763 | PyObject * obj0 = 0 ; | |
20764 | PyObject * obj1 = 0 ; | |
20765 | char *kwnames[] = { | |
20766 | (char *) "self",(char *) "date", NULL | |
20767 | }; | |
20768 | ||
20769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
20770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20772 | { | |
20773 | arg2 = wxString_in_helper(obj1); | |
20774 | if (arg2 == NULL) SWIG_fail; | |
20775 | temp2 = True; | |
20776 | } | |
20777 | { | |
20778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20779 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20780 | ||
20781 | wxPyEndAllowThreads(__tstate); | |
20782 | if (PyErr_Occurred()) SWIG_fail; | |
20783 | } | |
20784 | resultobj = SWIG_FromInt((int)result); | |
20785 | { | |
20786 | if (temp2) | |
20787 | delete arg2; | |
20788 | } | |
20789 | return resultobj; | |
20790 | fail: | |
20791 | { | |
20792 | if (temp2) | |
20793 | delete arg2; | |
20794 | } | |
20795 | return NULL; | |
20796 | } | |
20797 | ||
20798 | ||
20799 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20800 | PyObject *resultobj; | |
20801 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20802 | wxString *arg2 = 0 ; | |
20803 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20804 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20805 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20806 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20807 | int result; | |
20808 | bool temp2 = False ; | |
20809 | bool temp3 = False ; | |
20810 | PyObject * obj0 = 0 ; | |
20811 | PyObject * obj1 = 0 ; | |
20812 | PyObject * obj2 = 0 ; | |
20813 | PyObject * obj3 = 0 ; | |
20814 | char *kwnames[] = { | |
20815 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20816 | }; | |
20817 | ||
20818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20821 | { | |
20822 | arg2 = wxString_in_helper(obj1); | |
20823 | if (arg2 == NULL) SWIG_fail; | |
20824 | temp2 = True; | |
20825 | } | |
20826 | if (obj2) { | |
20827 | { | |
20828 | arg3 = wxString_in_helper(obj2); | |
20829 | if (arg3 == NULL) SWIG_fail; | |
20830 | temp3 = True; | |
20831 | } | |
20832 | } | |
20833 | if (obj3) { | |
20834 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
20835 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20836 | SWIG_fail; | |
20837 | if (arg4 == NULL) { | |
20838 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20839 | SWIG_fail; | |
20840 | } | |
20841 | } | |
20842 | { | |
20843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20844 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20845 | ||
20846 | wxPyEndAllowThreads(__tstate); | |
20847 | if (PyErr_Occurred()) SWIG_fail; | |
20848 | } | |
20849 | resultobj = SWIG_FromInt((int)result); | |
20850 | { | |
20851 | if (temp2) | |
20852 | delete arg2; | |
20853 | } | |
20854 | { | |
20855 | if (temp3) | |
20856 | delete arg3; | |
20857 | } | |
20858 | return resultobj; | |
20859 | fail: | |
20860 | { | |
20861 | if (temp2) | |
20862 | delete arg2; | |
20863 | } | |
20864 | { | |
20865 | if (temp3) | |
20866 | delete arg3; | |
20867 | } | |
20868 | return NULL; | |
20869 | } | |
20870 | ||
20871 | ||
20872 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20873 | PyObject *resultobj; | |
20874 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20875 | wxString *arg2 = 0 ; | |
20876 | int result; | |
20877 | bool temp2 = False ; | |
20878 | PyObject * obj0 = 0 ; | |
20879 | PyObject * obj1 = 0 ; | |
20880 | char *kwnames[] = { | |
20881 | (char *) "self",(char *) "datetime", NULL | |
20882 | }; | |
20883 | ||
20884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
20885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20887 | { | |
20888 | arg2 = wxString_in_helper(obj1); | |
20889 | if (arg2 == NULL) SWIG_fail; | |
20890 | temp2 = True; | |
20891 | } | |
20892 | { | |
20893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20894 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20895 | ||
20896 | wxPyEndAllowThreads(__tstate); | |
20897 | if (PyErr_Occurred()) SWIG_fail; | |
20898 | } | |
20899 | resultobj = SWIG_FromInt((int)result); | |
20900 | { | |
20901 | if (temp2) | |
20902 | delete arg2; | |
20903 | } | |
20904 | return resultobj; | |
20905 | fail: | |
20906 | { | |
20907 | if (temp2) | |
20908 | delete arg2; | |
20909 | } | |
20910 | return NULL; | |
20911 | } | |
20912 | ||
20913 | ||
20914 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20915 | PyObject *resultobj; | |
20916 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20917 | wxString *arg2 = 0 ; | |
20918 | int result; | |
20919 | bool temp2 = False ; | |
20920 | PyObject * obj0 = 0 ; | |
20921 | PyObject * obj1 = 0 ; | |
20922 | char *kwnames[] = { | |
20923 | (char *) "self",(char *) "date", NULL | |
20924 | }; | |
20925 | ||
20926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
20927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20929 | { | |
20930 | arg2 = wxString_in_helper(obj1); | |
20931 | if (arg2 == NULL) SWIG_fail; | |
20932 | temp2 = True; | |
20933 | } | |
20934 | { | |
20935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20936 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20937 | ||
20938 | wxPyEndAllowThreads(__tstate); | |
20939 | if (PyErr_Occurred()) SWIG_fail; | |
20940 | } | |
20941 | resultobj = SWIG_FromInt((int)result); | |
20942 | { | |
20943 | if (temp2) | |
20944 | delete arg2; | |
20945 | } | |
20946 | return resultobj; | |
20947 | fail: | |
20948 | { | |
20949 | if (temp2) | |
20950 | delete arg2; | |
20951 | } | |
20952 | return NULL; | |
20953 | } | |
20954 | ||
20955 | ||
20956 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20957 | PyObject *resultobj; | |
20958 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20959 | wxString *arg2 = 0 ; | |
20960 | int result; | |
20961 | bool temp2 = False ; | |
20962 | PyObject * obj0 = 0 ; | |
20963 | PyObject * obj1 = 0 ; | |
20964 | char *kwnames[] = { | |
20965 | (char *) "self",(char *) "time", NULL | |
20966 | }; | |
20967 | ||
20968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
20969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20971 | { | |
20972 | arg2 = wxString_in_helper(obj1); | |
20973 | if (arg2 == NULL) SWIG_fail; | |
20974 | temp2 = True; | |
20975 | } | |
20976 | { | |
20977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20978 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20979 | ||
20980 | wxPyEndAllowThreads(__tstate); | |
20981 | if (PyErr_Occurred()) SWIG_fail; | |
20982 | } | |
20983 | resultobj = SWIG_FromInt((int)result); | |
20984 | { | |
20985 | if (temp2) | |
20986 | delete arg2; | |
20987 | } | |
20988 | return resultobj; | |
20989 | fail: | |
20990 | { | |
20991 | if (temp2) | |
20992 | delete arg2; | |
20993 | } | |
20994 | return NULL; | |
20995 | } | |
20996 | ||
20997 | ||
20998 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20999 | PyObject *resultobj; | |
21000 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21001 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21002 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21003 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21004 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21005 | wxString result; | |
21006 | bool temp2 = False ; | |
21007 | bool temp3 = False ; | |
21008 | PyObject * obj0 = 0 ; | |
21009 | PyObject * obj1 = 0 ; | |
21010 | PyObject * obj2 = 0 ; | |
21011 | char *kwnames[] = { | |
21012 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21013 | }; | |
21014 | ||
21015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21018 | if (obj1) { | |
21019 | { | |
21020 | arg2 = wxString_in_helper(obj1); | |
21021 | if (arg2 == NULL) SWIG_fail; | |
21022 | temp2 = True; | |
21023 | } | |
21024 | } | |
21025 | if (obj2) { | |
21026 | { | |
21027 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
21028 | temp3 = True; | |
21029 | } | |
21030 | } | |
21031 | { | |
21032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21033 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21034 | ||
21035 | wxPyEndAllowThreads(__tstate); | |
21036 | if (PyErr_Occurred()) SWIG_fail; | |
21037 | } | |
21038 | { | |
21039 | #if wxUSE_UNICODE | |
21040 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21041 | #else | |
21042 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21043 | #endif | |
21044 | } | |
21045 | { | |
21046 | if (temp2) | |
21047 | delete arg2; | |
21048 | } | |
21049 | { | |
21050 | if (temp3) delete arg3; | |
21051 | } | |
21052 | return resultobj; | |
21053 | fail: | |
21054 | { | |
21055 | if (temp2) | |
21056 | delete arg2; | |
21057 | } | |
21058 | { | |
21059 | if (temp3) delete arg3; | |
21060 | } | |
21061 | return NULL; | |
21062 | } | |
21063 | ||
21064 | ||
21065 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21066 | PyObject *resultobj; | |
21067 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21068 | wxString result; | |
21069 | PyObject * obj0 = 0 ; | |
21070 | char *kwnames[] = { | |
21071 | (char *) "self", NULL | |
21072 | }; | |
21073 | ||
21074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21077 | { | |
21078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21079 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21080 | ||
21081 | wxPyEndAllowThreads(__tstate); | |
21082 | if (PyErr_Occurred()) SWIG_fail; | |
21083 | } | |
21084 | { | |
21085 | #if wxUSE_UNICODE | |
21086 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21087 | #else | |
21088 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21089 | #endif | |
21090 | } | |
21091 | return resultobj; | |
21092 | fail: | |
21093 | return NULL; | |
21094 | } | |
21095 | ||
21096 | ||
21097 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21098 | PyObject *resultobj; | |
21099 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21100 | wxString result; | |
21101 | PyObject * obj0 = 0 ; | |
21102 | char *kwnames[] = { | |
21103 | (char *) "self", NULL | |
21104 | }; | |
21105 | ||
21106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21109 | { | |
21110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21111 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21112 | ||
21113 | wxPyEndAllowThreads(__tstate); | |
21114 | if (PyErr_Occurred()) SWIG_fail; | |
21115 | } | |
21116 | { | |
21117 | #if wxUSE_UNICODE | |
21118 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21119 | #else | |
21120 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21121 | #endif | |
21122 | } | |
21123 | return resultobj; | |
21124 | fail: | |
21125 | return NULL; | |
21126 | } | |
21127 | ||
21128 | ||
21129 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21130 | PyObject *resultobj; | |
21131 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21132 | wxString result; | |
21133 | PyObject * obj0 = 0 ; | |
21134 | char *kwnames[] = { | |
21135 | (char *) "self", NULL | |
21136 | }; | |
21137 | ||
21138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21141 | { | |
21142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21143 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21144 | ||
21145 | wxPyEndAllowThreads(__tstate); | |
21146 | if (PyErr_Occurred()) SWIG_fail; | |
21147 | } | |
21148 | { | |
21149 | #if wxUSE_UNICODE | |
21150 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21151 | #else | |
21152 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21153 | #endif | |
21154 | } | |
21155 | return resultobj; | |
21156 | fail: | |
21157 | return NULL; | |
21158 | } | |
21159 | ||
21160 | ||
21161 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21162 | PyObject *resultobj; | |
21163 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21164 | wxString result; | |
21165 | PyObject * obj0 = 0 ; | |
21166 | char *kwnames[] = { | |
21167 | (char *) "self", NULL | |
21168 | }; | |
21169 | ||
21170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21173 | { | |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21176 | ||
21177 | wxPyEndAllowThreads(__tstate); | |
21178 | if (PyErr_Occurred()) SWIG_fail; | |
21179 | } | |
21180 | { | |
21181 | #if wxUSE_UNICODE | |
21182 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21183 | #else | |
21184 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21185 | #endif | |
21186 | } | |
21187 | return resultobj; | |
21188 | fail: | |
21189 | return NULL; | |
21190 | } | |
21191 | ||
21192 | ||
21193 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21194 | PyObject *obj; | |
21195 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21196 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21197 | Py_INCREF(obj); | |
21198 | return Py_BuildValue((char *)""); | |
21199 | } | |
21200 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21201 | PyObject *resultobj; | |
21202 | long arg1 ; | |
21203 | wxTimeSpan result; | |
21204 | PyObject * obj0 = 0 ; | |
21205 | char *kwnames[] = { | |
21206 | (char *) "sec", NULL | |
21207 | }; | |
21208 | ||
21209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
21210 | arg1 = (long) SWIG_AsLong(obj0); | |
21211 | if (PyErr_Occurred()) SWIG_fail; | |
21212 | { | |
21213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21214 | result = wxTimeSpan::Seconds(arg1); | |
21215 | ||
21216 | wxPyEndAllowThreads(__tstate); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
21218 | } | |
21219 | { | |
21220 | wxTimeSpan * resultptr; | |
21221 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21222 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21223 | } | |
21224 | return resultobj; | |
21225 | fail: | |
21226 | return NULL; | |
21227 | } | |
21228 | ||
21229 | ||
21230 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21231 | PyObject *resultobj; | |
21232 | wxTimeSpan result; | |
21233 | char *kwnames[] = { | |
21234 | NULL | |
21235 | }; | |
21236 | ||
21237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21238 | { | |
21239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21240 | result = wxTimeSpan::Second(); | |
21241 | ||
21242 | wxPyEndAllowThreads(__tstate); | |
21243 | if (PyErr_Occurred()) SWIG_fail; | |
21244 | } | |
21245 | { | |
21246 | wxTimeSpan * resultptr; | |
21247 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21248 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21249 | } | |
21250 | return resultobj; | |
21251 | fail: | |
21252 | return NULL; | |
21253 | } | |
21254 | ||
21255 | ||
21256 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21257 | PyObject *resultobj; | |
21258 | long arg1 ; | |
21259 | wxTimeSpan result; | |
21260 | PyObject * obj0 = 0 ; | |
21261 | char *kwnames[] = { | |
21262 | (char *) "min", NULL | |
21263 | }; | |
21264 | ||
21265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
21266 | arg1 = (long) SWIG_AsLong(obj0); | |
21267 | if (PyErr_Occurred()) SWIG_fail; | |
21268 | { | |
21269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21270 | result = wxTimeSpan::Minutes(arg1); | |
21271 | ||
21272 | wxPyEndAllowThreads(__tstate); | |
21273 | if (PyErr_Occurred()) SWIG_fail; | |
21274 | } | |
21275 | { | |
21276 | wxTimeSpan * resultptr; | |
21277 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21278 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21279 | } | |
21280 | return resultobj; | |
21281 | fail: | |
21282 | return NULL; | |
21283 | } | |
21284 | ||
21285 | ||
21286 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21287 | PyObject *resultobj; | |
21288 | wxTimeSpan result; | |
21289 | char *kwnames[] = { | |
21290 | NULL | |
21291 | }; | |
21292 | ||
21293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21294 | { | |
21295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21296 | result = wxTimeSpan::Minute(); | |
21297 | ||
21298 | wxPyEndAllowThreads(__tstate); | |
21299 | if (PyErr_Occurred()) SWIG_fail; | |
21300 | } | |
21301 | { | |
21302 | wxTimeSpan * resultptr; | |
21303 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21304 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21305 | } | |
21306 | return resultobj; | |
21307 | fail: | |
21308 | return NULL; | |
21309 | } | |
21310 | ||
21311 | ||
21312 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21313 | PyObject *resultobj; | |
21314 | long arg1 ; | |
21315 | wxTimeSpan result; | |
21316 | PyObject * obj0 = 0 ; | |
21317 | char *kwnames[] = { | |
21318 | (char *) "hours", NULL | |
21319 | }; | |
21320 | ||
21321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
21322 | arg1 = (long) SWIG_AsLong(obj0); | |
21323 | if (PyErr_Occurred()) SWIG_fail; | |
21324 | { | |
21325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21326 | result = wxTimeSpan::Hours(arg1); | |
21327 | ||
21328 | wxPyEndAllowThreads(__tstate); | |
21329 | if (PyErr_Occurred()) SWIG_fail; | |
21330 | } | |
21331 | { | |
21332 | wxTimeSpan * resultptr; | |
21333 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21334 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21335 | } | |
21336 | return resultobj; | |
21337 | fail: | |
21338 | return NULL; | |
21339 | } | |
21340 | ||
21341 | ||
21342 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21343 | PyObject *resultobj; | |
21344 | wxTimeSpan result; | |
21345 | char *kwnames[] = { | |
21346 | NULL | |
21347 | }; | |
21348 | ||
21349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21350 | { | |
21351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21352 | result = wxTimeSpan::Hour(); | |
21353 | ||
21354 | wxPyEndAllowThreads(__tstate); | |
21355 | if (PyErr_Occurred()) SWIG_fail; | |
21356 | } | |
21357 | { | |
21358 | wxTimeSpan * resultptr; | |
21359 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21360 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21361 | } | |
21362 | return resultobj; | |
21363 | fail: | |
21364 | return NULL; | |
21365 | } | |
21366 | ||
21367 | ||
21368 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21369 | PyObject *resultobj; | |
21370 | long arg1 ; | |
21371 | wxTimeSpan result; | |
21372 | PyObject * obj0 = 0 ; | |
21373 | char *kwnames[] = { | |
21374 | (char *) "days", NULL | |
21375 | }; | |
21376 | ||
21377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
21378 | arg1 = (long) SWIG_AsLong(obj0); | |
21379 | if (PyErr_Occurred()) SWIG_fail; | |
21380 | { | |
21381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21382 | result = wxTimeSpan::Days(arg1); | |
21383 | ||
21384 | wxPyEndAllowThreads(__tstate); | |
21385 | if (PyErr_Occurred()) SWIG_fail; | |
21386 | } | |
21387 | { | |
21388 | wxTimeSpan * resultptr; | |
21389 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21390 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21391 | } | |
21392 | return resultobj; | |
21393 | fail: | |
21394 | return NULL; | |
21395 | } | |
21396 | ||
21397 | ||
21398 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21399 | PyObject *resultobj; | |
21400 | wxTimeSpan result; | |
21401 | char *kwnames[] = { | |
21402 | NULL | |
21403 | }; | |
21404 | ||
21405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21406 | { | |
21407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21408 | result = wxTimeSpan::Day(); | |
21409 | ||
21410 | wxPyEndAllowThreads(__tstate); | |
21411 | if (PyErr_Occurred()) SWIG_fail; | |
21412 | } | |
21413 | { | |
21414 | wxTimeSpan * resultptr; | |
21415 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21416 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21417 | } | |
21418 | return resultobj; | |
21419 | fail: | |
21420 | return NULL; | |
21421 | } | |
21422 | ||
21423 | ||
21424 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21425 | PyObject *resultobj; | |
21426 | long arg1 ; | |
21427 | wxTimeSpan result; | |
21428 | PyObject * obj0 = 0 ; | |
21429 | char *kwnames[] = { | |
21430 | (char *) "days", NULL | |
21431 | }; | |
21432 | ||
21433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
21434 | arg1 = (long) SWIG_AsLong(obj0); | |
21435 | if (PyErr_Occurred()) SWIG_fail; | |
21436 | { | |
21437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21438 | result = wxTimeSpan::Weeks(arg1); | |
21439 | ||
21440 | wxPyEndAllowThreads(__tstate); | |
21441 | if (PyErr_Occurred()) SWIG_fail; | |
21442 | } | |
21443 | { | |
21444 | wxTimeSpan * resultptr; | |
21445 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21446 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21447 | } | |
21448 | return resultobj; | |
21449 | fail: | |
21450 | return NULL; | |
21451 | } | |
21452 | ||
21453 | ||
21454 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21455 | PyObject *resultobj; | |
21456 | wxTimeSpan result; | |
21457 | char *kwnames[] = { | |
21458 | NULL | |
21459 | }; | |
21460 | ||
21461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21462 | { | |
21463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21464 | result = wxTimeSpan::Week(); | |
21465 | ||
21466 | wxPyEndAllowThreads(__tstate); | |
21467 | if (PyErr_Occurred()) SWIG_fail; | |
21468 | } | |
21469 | { | |
21470 | wxTimeSpan * resultptr; | |
21471 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21472 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21473 | } | |
21474 | return resultobj; | |
21475 | fail: | |
21476 | return NULL; | |
21477 | } | |
21478 | ||
21479 | ||
21480 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21481 | PyObject *resultobj; | |
21482 | long arg1 = (long) 0 ; | |
21483 | long arg2 = (long) 0 ; | |
21484 | long arg3 = (long) 0 ; | |
21485 | long arg4 = (long) 0 ; | |
21486 | wxTimeSpan *result; | |
21487 | PyObject * obj0 = 0 ; | |
21488 | PyObject * obj1 = 0 ; | |
21489 | PyObject * obj2 = 0 ; | |
21490 | PyObject * obj3 = 0 ; | |
21491 | char *kwnames[] = { | |
21492 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21493 | }; | |
21494 | ||
21495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21496 | if (obj0) { | |
21497 | arg1 = (long) SWIG_AsLong(obj0); | |
21498 | if (PyErr_Occurred()) SWIG_fail; | |
21499 | } | |
21500 | if (obj1) { | |
21501 | arg2 = (long) SWIG_AsLong(obj1); | |
21502 | if (PyErr_Occurred()) SWIG_fail; | |
21503 | } | |
21504 | if (obj2) { | |
21505 | arg3 = (long) SWIG_AsLong(obj2); | |
21506 | if (PyErr_Occurred()) SWIG_fail; | |
21507 | } | |
21508 | if (obj3) { | |
21509 | arg4 = (long) SWIG_AsLong(obj3); | |
21510 | if (PyErr_Occurred()) SWIG_fail; | |
21511 | } | |
21512 | { | |
21513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21514 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21515 | ||
21516 | wxPyEndAllowThreads(__tstate); | |
21517 | if (PyErr_Occurred()) SWIG_fail; | |
21518 | } | |
21519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
21520 | return resultobj; | |
21521 | fail: | |
21522 | return NULL; | |
21523 | } | |
21524 | ||
21525 | ||
21526 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21527 | PyObject *resultobj; | |
21528 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21529 | PyObject * obj0 = 0 ; | |
21530 | char *kwnames[] = { | |
21531 | (char *) "self", NULL | |
21532 | }; | |
21533 | ||
21534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21537 | { | |
21538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21539 | delete arg1; | |
21540 | ||
21541 | wxPyEndAllowThreads(__tstate); | |
21542 | if (PyErr_Occurred()) SWIG_fail; | |
21543 | } | |
21544 | Py_INCREF(Py_None); resultobj = Py_None; | |
21545 | return resultobj; | |
21546 | fail: | |
21547 | return NULL; | |
21548 | } | |
21549 | ||
21550 | ||
21551 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21552 | PyObject *resultobj; | |
21553 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21554 | wxTimeSpan *arg2 = 0 ; | |
21555 | wxTimeSpan *result; | |
21556 | PyObject * obj0 = 0 ; | |
21557 | PyObject * obj1 = 0 ; | |
21558 | char *kwnames[] = { | |
21559 | (char *) "self",(char *) "diff", NULL | |
21560 | }; | |
21561 | ||
21562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21566 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21567 | SWIG_fail; | |
21568 | if (arg2 == NULL) { | |
21569 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21570 | SWIG_fail; | |
21571 | } | |
21572 | { | |
21573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21574 | { | |
21575 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21576 | result = (wxTimeSpan *) &_result_ref; | |
21577 | } | |
21578 | ||
21579 | wxPyEndAllowThreads(__tstate); | |
21580 | if (PyErr_Occurred()) SWIG_fail; | |
21581 | } | |
21582 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21583 | return resultobj; | |
21584 | fail: | |
21585 | return NULL; | |
21586 | } | |
21587 | ||
21588 | ||
21589 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21590 | PyObject *resultobj; | |
21591 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21592 | wxTimeSpan *arg2 = 0 ; | |
21593 | wxTimeSpan *result; | |
21594 | PyObject * obj0 = 0 ; | |
21595 | PyObject * obj1 = 0 ; | |
21596 | char *kwnames[] = { | |
21597 | (char *) "self",(char *) "diff", NULL | |
21598 | }; | |
21599 | ||
21600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21603 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21604 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21605 | SWIG_fail; | |
21606 | if (arg2 == NULL) { | |
21607 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21608 | SWIG_fail; | |
21609 | } | |
21610 | { | |
21611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21612 | { | |
21613 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21614 | result = (wxTimeSpan *) &_result_ref; | |
21615 | } | |
21616 | ||
21617 | wxPyEndAllowThreads(__tstate); | |
21618 | if (PyErr_Occurred()) SWIG_fail; | |
21619 | } | |
21620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21621 | return resultobj; | |
21622 | fail: | |
21623 | return NULL; | |
21624 | } | |
21625 | ||
21626 | ||
21627 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21628 | PyObject *resultobj; | |
21629 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21630 | int arg2 ; | |
21631 | wxTimeSpan *result; | |
21632 | PyObject * obj0 = 0 ; | |
21633 | PyObject * obj1 = 0 ; | |
21634 | char *kwnames[] = { | |
21635 | (char *) "self",(char *) "n", NULL | |
21636 | }; | |
21637 | ||
21638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
21639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21641 | arg2 = (int) SWIG_AsInt(obj1); | |
21642 | if (PyErr_Occurred()) SWIG_fail; | |
21643 | { | |
21644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21645 | { | |
21646 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21647 | result = (wxTimeSpan *) &_result_ref; | |
21648 | } | |
21649 | ||
21650 | wxPyEndAllowThreads(__tstate); | |
21651 | if (PyErr_Occurred()) SWIG_fail; | |
21652 | } | |
21653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21654 | return resultobj; | |
21655 | fail: | |
21656 | return NULL; | |
21657 | } | |
21658 | ||
21659 | ||
21660 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21661 | PyObject *resultobj; | |
21662 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21663 | wxTimeSpan *result; | |
21664 | PyObject * obj0 = 0 ; | |
21665 | char *kwnames[] = { | |
21666 | (char *) "self", NULL | |
21667 | }; | |
21668 | ||
21669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
21670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21672 | { | |
21673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21674 | { | |
21675 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21676 | result = (wxTimeSpan *) &_result_ref; | |
21677 | } | |
21678 | ||
21679 | wxPyEndAllowThreads(__tstate); | |
21680 | if (PyErr_Occurred()) SWIG_fail; | |
21681 | } | |
21682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21683 | return resultobj; | |
21684 | fail: | |
21685 | return NULL; | |
21686 | } | |
21687 | ||
21688 | ||
21689 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21690 | PyObject *resultobj; | |
21691 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21692 | wxTimeSpan result; | |
21693 | PyObject * obj0 = 0 ; | |
21694 | char *kwnames[] = { | |
21695 | (char *) "self", NULL | |
21696 | }; | |
21697 | ||
21698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
21699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21701 | { | |
21702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21703 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21704 | ||
21705 | wxPyEndAllowThreads(__tstate); | |
21706 | if (PyErr_Occurred()) SWIG_fail; | |
21707 | } | |
21708 | { | |
21709 | wxTimeSpan * resultptr; | |
21710 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21711 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21712 | } | |
21713 | return resultobj; | |
21714 | fail: | |
21715 | return NULL; | |
21716 | } | |
21717 | ||
21718 | ||
21719 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21720 | PyObject *resultobj; | |
21721 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21722 | wxTimeSpan *arg2 = 0 ; | |
21723 | wxTimeSpan *result; | |
21724 | PyObject * obj0 = 0 ; | |
21725 | PyObject * obj1 = 0 ; | |
21726 | char *kwnames[] = { | |
21727 | (char *) "self",(char *) "diff", NULL | |
21728 | }; | |
21729 | ||
21730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21733 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21734 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21735 | SWIG_fail; | |
21736 | if (arg2 == NULL) { | |
21737 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21738 | SWIG_fail; | |
21739 | } | |
21740 | { | |
21741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21742 | { | |
21743 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21744 | result = (wxTimeSpan *) &_result_ref; | |
21745 | } | |
21746 | ||
21747 | wxPyEndAllowThreads(__tstate); | |
21748 | if (PyErr_Occurred()) SWIG_fail; | |
21749 | } | |
21750 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21751 | return resultobj; | |
21752 | fail: | |
21753 | return NULL; | |
21754 | } | |
21755 | ||
21756 | ||
21757 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21758 | PyObject *resultobj; | |
21759 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21760 | wxTimeSpan *arg2 = 0 ; | |
21761 | wxTimeSpan *result; | |
21762 | PyObject * obj0 = 0 ; | |
21763 | PyObject * obj1 = 0 ; | |
21764 | char *kwnames[] = { | |
21765 | (char *) "self",(char *) "diff", NULL | |
21766 | }; | |
21767 | ||
21768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21771 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21773 | SWIG_fail; | |
21774 | if (arg2 == NULL) { | |
21775 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21776 | SWIG_fail; | |
21777 | } | |
21778 | { | |
21779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21780 | { | |
21781 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21782 | result = (wxTimeSpan *) &_result_ref; | |
21783 | } | |
21784 | ||
21785 | wxPyEndAllowThreads(__tstate); | |
21786 | if (PyErr_Occurred()) SWIG_fail; | |
21787 | } | |
21788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21789 | return resultobj; | |
21790 | fail: | |
21791 | return NULL; | |
21792 | } | |
21793 | ||
21794 | ||
21795 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21796 | PyObject *resultobj; | |
21797 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21798 | int arg2 ; | |
21799 | wxTimeSpan *result; | |
21800 | PyObject * obj0 = 0 ; | |
21801 | PyObject * obj1 = 0 ; | |
21802 | char *kwnames[] = { | |
21803 | (char *) "self",(char *) "n", NULL | |
21804 | }; | |
21805 | ||
21806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
21807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21809 | arg2 = (int) SWIG_AsInt(obj1); | |
21810 | if (PyErr_Occurred()) SWIG_fail; | |
21811 | { | |
21812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21813 | { | |
21814 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21815 | result = (wxTimeSpan *) &_result_ref; | |
21816 | } | |
21817 | ||
21818 | wxPyEndAllowThreads(__tstate); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | } | |
21821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21822 | return resultobj; | |
21823 | fail: | |
21824 | return NULL; | |
21825 | } | |
21826 | ||
21827 | ||
21828 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21829 | PyObject *resultobj; | |
21830 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21831 | wxTimeSpan *result; | |
21832 | PyObject * obj0 = 0 ; | |
21833 | char *kwnames[] = { | |
21834 | (char *) "self", NULL | |
21835 | }; | |
21836 | ||
21837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
21838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21840 | { | |
21841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21842 | { | |
21843 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21844 | result = (wxTimeSpan *) &_result_ref; | |
21845 | } | |
21846 | ||
21847 | wxPyEndAllowThreads(__tstate); | |
21848 | if (PyErr_Occurred()) SWIG_fail; | |
21849 | } | |
21850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21851 | return resultobj; | |
21852 | fail: | |
21853 | return NULL; | |
21854 | } | |
21855 | ||
21856 | ||
21857 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21858 | PyObject *resultobj; | |
21859 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21860 | wxTimeSpan *arg2 = 0 ; | |
21861 | wxTimeSpan result; | |
21862 | PyObject * obj0 = 0 ; | |
21863 | PyObject * obj1 = 0 ; | |
21864 | char *kwnames[] = { | |
21865 | (char *) "self",(char *) "other", NULL | |
21866 | }; | |
21867 | ||
21868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21872 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21873 | SWIG_fail; | |
21874 | if (arg2 == NULL) { | |
21875 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21876 | SWIG_fail; | |
21877 | } | |
21878 | { | |
21879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21880 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21881 | ||
21882 | wxPyEndAllowThreads(__tstate); | |
21883 | if (PyErr_Occurred()) SWIG_fail; | |
21884 | } | |
21885 | { | |
21886 | wxTimeSpan * resultptr; | |
21887 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21889 | } | |
21890 | return resultobj; | |
21891 | fail: | |
21892 | return NULL; | |
21893 | } | |
21894 | ||
21895 | ||
21896 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21897 | PyObject *resultobj; | |
21898 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21899 | wxTimeSpan *arg2 = 0 ; | |
21900 | wxTimeSpan result; | |
21901 | PyObject * obj0 = 0 ; | |
21902 | PyObject * obj1 = 0 ; | |
21903 | char *kwnames[] = { | |
21904 | (char *) "self",(char *) "other", NULL | |
21905 | }; | |
21906 | ||
21907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21910 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21911 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21912 | SWIG_fail; | |
21913 | if (arg2 == NULL) { | |
21914 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21915 | SWIG_fail; | |
21916 | } | |
21917 | { | |
21918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21919 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21920 | ||
21921 | wxPyEndAllowThreads(__tstate); | |
21922 | if (PyErr_Occurred()) SWIG_fail; | |
21923 | } | |
21924 | { | |
21925 | wxTimeSpan * resultptr; | |
21926 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21927 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21928 | } | |
21929 | return resultobj; | |
21930 | fail: | |
21931 | return NULL; | |
21932 | } | |
21933 | ||
21934 | ||
21935 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21936 | PyObject *resultobj; | |
21937 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21938 | int arg2 ; | |
21939 | wxTimeSpan result; | |
21940 | PyObject * obj0 = 0 ; | |
21941 | PyObject * obj1 = 0 ; | |
21942 | char *kwnames[] = { | |
21943 | (char *) "self",(char *) "n", NULL | |
21944 | }; | |
21945 | ||
21946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
21947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21949 | arg2 = (int) SWIG_AsInt(obj1); | |
21950 | if (PyErr_Occurred()) SWIG_fail; | |
21951 | { | |
21952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21953 | result = wxTimeSpan___mul__(arg1,arg2); | |
21954 | ||
21955 | wxPyEndAllowThreads(__tstate); | |
21956 | if (PyErr_Occurred()) SWIG_fail; | |
21957 | } | |
21958 | { | |
21959 | wxTimeSpan * resultptr; | |
21960 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21961 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21962 | } | |
21963 | return resultobj; | |
21964 | fail: | |
21965 | return NULL; | |
21966 | } | |
21967 | ||
21968 | ||
21969 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21970 | PyObject *resultobj; | |
21971 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21972 | int arg2 ; | |
21973 | wxTimeSpan result; | |
21974 | PyObject * obj0 = 0 ; | |
21975 | PyObject * obj1 = 0 ; | |
21976 | char *kwnames[] = { | |
21977 | (char *) "self",(char *) "n", NULL | |
21978 | }; | |
21979 | ||
21980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
21981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21983 | arg2 = (int) SWIG_AsInt(obj1); | |
21984 | if (PyErr_Occurred()) SWIG_fail; | |
21985 | { | |
21986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21987 | result = wxTimeSpan___rmul__(arg1,arg2); | |
21988 | ||
21989 | wxPyEndAllowThreads(__tstate); | |
21990 | if (PyErr_Occurred()) SWIG_fail; | |
21991 | } | |
21992 | { | |
21993 | wxTimeSpan * resultptr; | |
21994 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21995 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21996 | } | |
21997 | return resultobj; | |
21998 | fail: | |
21999 | return NULL; | |
22000 | } | |
22001 | ||
22002 | ||
22003 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22004 | PyObject *resultobj; | |
22005 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22006 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22007 | bool result; | |
22008 | PyObject * obj0 = 0 ; | |
22009 | PyObject * obj1 = 0 ; | |
22010 | char *kwnames[] = { | |
22011 | (char *) "self",(char *) "other", NULL | |
22012 | }; | |
22013 | ||
22014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
22015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22019 | { | |
22020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22021 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
22022 | ||
22023 | wxPyEndAllowThreads(__tstate); | |
22024 | if (PyErr_Occurred()) SWIG_fail; | |
22025 | } | |
22026 | { | |
22027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22028 | } | |
22029 | return resultobj; | |
22030 | fail: | |
22031 | return NULL; | |
22032 | } | |
22033 | ||
22034 | ||
22035 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22036 | PyObject *resultobj; | |
22037 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22038 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22039 | bool result; | |
22040 | PyObject * obj0 = 0 ; | |
22041 | PyObject * obj1 = 0 ; | |
22042 | char *kwnames[] = { | |
22043 | (char *) "self",(char *) "other", NULL | |
22044 | }; | |
22045 | ||
22046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
22047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22051 | { | |
22052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22053 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
22054 | ||
22055 | wxPyEndAllowThreads(__tstate); | |
22056 | if (PyErr_Occurred()) SWIG_fail; | |
22057 | } | |
22058 | { | |
22059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22060 | } | |
22061 | return resultobj; | |
22062 | fail: | |
22063 | return NULL; | |
22064 | } | |
22065 | ||
22066 | ||
22067 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22068 | PyObject *resultobj; | |
22069 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22070 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22071 | bool result; | |
22072 | PyObject * obj0 = 0 ; | |
22073 | PyObject * obj1 = 0 ; | |
22074 | char *kwnames[] = { | |
22075 | (char *) "self",(char *) "other", NULL | |
22076 | }; | |
22077 | ||
22078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22081 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22083 | { | |
22084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22085 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22086 | ||
22087 | wxPyEndAllowThreads(__tstate); | |
22088 | if (PyErr_Occurred()) SWIG_fail; | |
22089 | } | |
22090 | { | |
22091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22092 | } | |
22093 | return resultobj; | |
22094 | fail: | |
22095 | return NULL; | |
22096 | } | |
22097 | ||
22098 | ||
22099 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22100 | PyObject *resultobj; | |
22101 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22102 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22103 | bool result; | |
22104 | PyObject * obj0 = 0 ; | |
22105 | PyObject * obj1 = 0 ; | |
22106 | char *kwnames[] = { | |
22107 | (char *) "self",(char *) "other", NULL | |
22108 | }; | |
22109 | ||
22110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22113 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22115 | { | |
22116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22117 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22118 | ||
22119 | wxPyEndAllowThreads(__tstate); | |
22120 | if (PyErr_Occurred()) SWIG_fail; | |
22121 | } | |
22122 | { | |
22123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22124 | } | |
22125 | return resultobj; | |
22126 | fail: | |
22127 | return NULL; | |
22128 | } | |
22129 | ||
22130 | ||
22131 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22132 | PyObject *resultobj; | |
22133 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22134 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22135 | bool result; | |
22136 | PyObject * obj0 = 0 ; | |
22137 | PyObject * obj1 = 0 ; | |
22138 | char *kwnames[] = { | |
22139 | (char *) "self",(char *) "other", NULL | |
22140 | }; | |
22141 | ||
22142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22145 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22147 | { | |
22148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22149 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22150 | ||
22151 | wxPyEndAllowThreads(__tstate); | |
22152 | if (PyErr_Occurred()) SWIG_fail; | |
22153 | } | |
22154 | { | |
22155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22156 | } | |
22157 | return resultobj; | |
22158 | fail: | |
22159 | return NULL; | |
22160 | } | |
22161 | ||
22162 | ||
22163 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22164 | PyObject *resultobj; | |
22165 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22166 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22167 | bool result; | |
22168 | PyObject * obj0 = 0 ; | |
22169 | PyObject * obj1 = 0 ; | |
22170 | char *kwnames[] = { | |
22171 | (char *) "self",(char *) "other", NULL | |
22172 | }; | |
22173 | ||
22174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22179 | { | |
22180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22181 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22182 | ||
22183 | wxPyEndAllowThreads(__tstate); | |
22184 | if (PyErr_Occurred()) SWIG_fail; | |
22185 | } | |
22186 | { | |
22187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22188 | } | |
22189 | return resultobj; | |
22190 | fail: | |
22191 | return NULL; | |
22192 | } | |
22193 | ||
22194 | ||
22195 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22196 | PyObject *resultobj; | |
22197 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22198 | bool result; | |
22199 | PyObject * obj0 = 0 ; | |
22200 | char *kwnames[] = { | |
22201 | (char *) "self", NULL | |
22202 | }; | |
22203 | ||
22204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22207 | { | |
22208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22209 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22210 | ||
22211 | wxPyEndAllowThreads(__tstate); | |
22212 | if (PyErr_Occurred()) SWIG_fail; | |
22213 | } | |
22214 | { | |
22215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22216 | } | |
22217 | return resultobj; | |
22218 | fail: | |
22219 | return NULL; | |
22220 | } | |
22221 | ||
22222 | ||
22223 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22224 | PyObject *resultobj; | |
22225 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22226 | bool result; | |
22227 | PyObject * obj0 = 0 ; | |
22228 | char *kwnames[] = { | |
22229 | (char *) "self", NULL | |
22230 | }; | |
22231 | ||
22232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22235 | { | |
22236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22237 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22238 | ||
22239 | wxPyEndAllowThreads(__tstate); | |
22240 | if (PyErr_Occurred()) SWIG_fail; | |
22241 | } | |
22242 | { | |
22243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22244 | } | |
22245 | return resultobj; | |
22246 | fail: | |
22247 | return NULL; | |
22248 | } | |
22249 | ||
22250 | ||
22251 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22252 | PyObject *resultobj; | |
22253 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22254 | bool result; | |
22255 | PyObject * obj0 = 0 ; | |
22256 | char *kwnames[] = { | |
22257 | (char *) "self", NULL | |
22258 | }; | |
22259 | ||
22260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22263 | { | |
22264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22265 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22266 | ||
22267 | wxPyEndAllowThreads(__tstate); | |
22268 | if (PyErr_Occurred()) SWIG_fail; | |
22269 | } | |
22270 | { | |
22271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22272 | } | |
22273 | return resultobj; | |
22274 | fail: | |
22275 | return NULL; | |
22276 | } | |
22277 | ||
22278 | ||
22279 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22280 | PyObject *resultobj; | |
22281 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22282 | wxTimeSpan *arg2 = 0 ; | |
22283 | bool result; | |
22284 | PyObject * obj0 = 0 ; | |
22285 | PyObject * obj1 = 0 ; | |
22286 | char *kwnames[] = { | |
22287 | (char *) "self",(char *) "ts", NULL | |
22288 | }; | |
22289 | ||
22290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
22291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22293 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22294 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22295 | SWIG_fail; | |
22296 | if (arg2 == NULL) { | |
22297 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22298 | SWIG_fail; | |
22299 | } | |
22300 | { | |
22301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22302 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22303 | ||
22304 | wxPyEndAllowThreads(__tstate); | |
22305 | if (PyErr_Occurred()) SWIG_fail; | |
22306 | } | |
22307 | { | |
22308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22309 | } | |
22310 | return resultobj; | |
22311 | fail: | |
22312 | return NULL; | |
22313 | } | |
22314 | ||
22315 | ||
22316 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22317 | PyObject *resultobj; | |
22318 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22319 | wxTimeSpan *arg2 = 0 ; | |
22320 | bool result; | |
22321 | PyObject * obj0 = 0 ; | |
22322 | PyObject * obj1 = 0 ; | |
22323 | char *kwnames[] = { | |
22324 | (char *) "self",(char *) "ts", NULL | |
22325 | }; | |
22326 | ||
22327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
22328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22330 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22331 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22332 | SWIG_fail; | |
22333 | if (arg2 == NULL) { | |
22334 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22335 | SWIG_fail; | |
22336 | } | |
22337 | { | |
22338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22339 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22340 | ||
22341 | wxPyEndAllowThreads(__tstate); | |
22342 | if (PyErr_Occurred()) SWIG_fail; | |
22343 | } | |
22344 | { | |
22345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22346 | } | |
22347 | return resultobj; | |
22348 | fail: | |
22349 | return NULL; | |
22350 | } | |
22351 | ||
22352 | ||
22353 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22354 | PyObject *resultobj; | |
22355 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22356 | wxTimeSpan *arg2 = 0 ; | |
22357 | bool result; | |
22358 | PyObject * obj0 = 0 ; | |
22359 | PyObject * obj1 = 0 ; | |
22360 | char *kwnames[] = { | |
22361 | (char *) "self",(char *) "t", NULL | |
22362 | }; | |
22363 | ||
22364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
22365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22368 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22369 | SWIG_fail; | |
22370 | if (arg2 == NULL) { | |
22371 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22372 | SWIG_fail; | |
22373 | } | |
22374 | { | |
22375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22376 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22377 | ||
22378 | wxPyEndAllowThreads(__tstate); | |
22379 | if (PyErr_Occurred()) SWIG_fail; | |
22380 | } | |
22381 | { | |
22382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22383 | } | |
22384 | return resultobj; | |
22385 | fail: | |
22386 | return NULL; | |
22387 | } | |
22388 | ||
22389 | ||
22390 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22391 | PyObject *resultobj; | |
22392 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22393 | int result; | |
22394 | PyObject * obj0 = 0 ; | |
22395 | char *kwnames[] = { | |
22396 | (char *) "self", NULL | |
22397 | }; | |
22398 | ||
22399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22402 | { | |
22403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22404 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22405 | ||
22406 | wxPyEndAllowThreads(__tstate); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
22409 | resultobj = SWIG_FromInt((int)result); | |
22410 | return resultobj; | |
22411 | fail: | |
22412 | return NULL; | |
22413 | } | |
22414 | ||
22415 | ||
22416 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22417 | PyObject *resultobj; | |
22418 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22419 | int result; | |
22420 | PyObject * obj0 = 0 ; | |
22421 | char *kwnames[] = { | |
22422 | (char *) "self", NULL | |
22423 | }; | |
22424 | ||
22425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22428 | { | |
22429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22430 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22431 | ||
22432 | wxPyEndAllowThreads(__tstate); | |
22433 | if (PyErr_Occurred()) SWIG_fail; | |
22434 | } | |
22435 | resultobj = SWIG_FromInt((int)result); | |
22436 | return resultobj; | |
22437 | fail: | |
22438 | return NULL; | |
22439 | } | |
22440 | ||
22441 | ||
22442 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22443 | PyObject *resultobj; | |
22444 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22445 | int result; | |
22446 | PyObject * obj0 = 0 ; | |
22447 | char *kwnames[] = { | |
22448 | (char *) "self", NULL | |
22449 | }; | |
22450 | ||
22451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22454 | { | |
22455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22456 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22457 | ||
22458 | wxPyEndAllowThreads(__tstate); | |
22459 | if (PyErr_Occurred()) SWIG_fail; | |
22460 | } | |
22461 | resultobj = SWIG_FromInt((int)result); | |
22462 | return resultobj; | |
22463 | fail: | |
22464 | return NULL; | |
22465 | } | |
22466 | ||
22467 | ||
22468 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22469 | PyObject *resultobj; | |
22470 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22471 | int result; | |
22472 | PyObject * obj0 = 0 ; | |
22473 | char *kwnames[] = { | |
22474 | (char *) "self", NULL | |
22475 | }; | |
22476 | ||
22477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22480 | { | |
22481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22482 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22483 | ||
22484 | wxPyEndAllowThreads(__tstate); | |
22485 | if (PyErr_Occurred()) SWIG_fail; | |
22486 | } | |
22487 | resultobj = SWIG_FromInt((int)result); | |
22488 | return resultobj; | |
22489 | fail: | |
22490 | return NULL; | |
22491 | } | |
22492 | ||
22493 | ||
22494 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22495 | PyObject *resultobj; | |
22496 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22497 | wxLongLong result; | |
22498 | PyObject * obj0 = 0 ; | |
22499 | char *kwnames[] = { | |
22500 | (char *) "self", NULL | |
22501 | }; | |
22502 | ||
22503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22506 | { | |
22507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22508 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22509 | ||
22510 | wxPyEndAllowThreads(__tstate); | |
22511 | if (PyErr_Occurred()) SWIG_fail; | |
22512 | } | |
22513 | { | |
22514 | PyObject *hi, *lo, *shifter, *shifted; | |
22515 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22516 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22517 | shifter = PyLong_FromLong(32); | |
22518 | shifted = PyNumber_Lshift(hi, shifter); | |
22519 | resultobj = PyNumber_Or(shifted, lo); | |
22520 | Py_DECREF(hi); | |
22521 | Py_DECREF(lo); | |
22522 | Py_DECREF(shifter); | |
22523 | Py_DECREF(shifted); | |
22524 | } | |
22525 | return resultobj; | |
22526 | fail: | |
22527 | return NULL; | |
22528 | } | |
22529 | ||
22530 | ||
22531 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22532 | PyObject *resultobj; | |
22533 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22534 | wxLongLong result; | |
22535 | PyObject * obj0 = 0 ; | |
22536 | char *kwnames[] = { | |
22537 | (char *) "self", NULL | |
22538 | }; | |
22539 | ||
22540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
22541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22543 | { | |
22544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22545 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22546 | ||
22547 | wxPyEndAllowThreads(__tstate); | |
22548 | if (PyErr_Occurred()) SWIG_fail; | |
22549 | } | |
22550 | { | |
22551 | PyObject *hi, *lo, *shifter, *shifted; | |
22552 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22553 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22554 | shifter = PyLong_FromLong(32); | |
22555 | shifted = PyNumber_Lshift(hi, shifter); | |
22556 | resultobj = PyNumber_Or(shifted, lo); | |
22557 | Py_DECREF(hi); | |
22558 | Py_DECREF(lo); | |
22559 | Py_DECREF(shifter); | |
22560 | Py_DECREF(shifted); | |
22561 | } | |
22562 | return resultobj; | |
22563 | fail: | |
22564 | return NULL; | |
22565 | } | |
22566 | ||
22567 | ||
22568 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22569 | PyObject *resultobj; | |
22570 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22571 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22572 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22573 | wxString result; | |
22574 | bool temp2 = False ; | |
22575 | PyObject * obj0 = 0 ; | |
22576 | PyObject * obj1 = 0 ; | |
22577 | char *kwnames[] = { | |
22578 | (char *) "self",(char *) "format", NULL | |
22579 | }; | |
22580 | ||
22581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
22582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22584 | if (obj1) { | |
22585 | { | |
22586 | arg2 = wxString_in_helper(obj1); | |
22587 | if (arg2 == NULL) SWIG_fail; | |
22588 | temp2 = True; | |
22589 | } | |
22590 | } | |
22591 | { | |
22592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22593 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22594 | ||
22595 | wxPyEndAllowThreads(__tstate); | |
22596 | if (PyErr_Occurred()) SWIG_fail; | |
22597 | } | |
22598 | { | |
22599 | #if wxUSE_UNICODE | |
22600 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22601 | #else | |
22602 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22603 | #endif | |
22604 | } | |
22605 | { | |
22606 | if (temp2) | |
22607 | delete arg2; | |
22608 | } | |
22609 | return resultobj; | |
22610 | fail: | |
22611 | { | |
22612 | if (temp2) | |
22613 | delete arg2; | |
22614 | } | |
22615 | return NULL; | |
22616 | } | |
22617 | ||
22618 | ||
22619 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22620 | PyObject *obj; | |
22621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22622 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22623 | Py_INCREF(obj); | |
22624 | return Py_BuildValue((char *)""); | |
22625 | } | |
22626 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22627 | PyObject *resultobj; | |
22628 | int arg1 = (int) 0 ; | |
22629 | int arg2 = (int) 0 ; | |
22630 | int arg3 = (int) 0 ; | |
22631 | int arg4 = (int) 0 ; | |
22632 | wxDateSpan *result; | |
22633 | PyObject * obj0 = 0 ; | |
22634 | PyObject * obj1 = 0 ; | |
22635 | PyObject * obj2 = 0 ; | |
22636 | PyObject * obj3 = 0 ; | |
22637 | char *kwnames[] = { | |
22638 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22639 | }; | |
22640 | ||
22641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22642 | if (obj0) { | |
22643 | arg1 = (int) SWIG_AsInt(obj0); | |
22644 | if (PyErr_Occurred()) SWIG_fail; | |
22645 | } | |
22646 | if (obj1) { | |
22647 | arg2 = (int) SWIG_AsInt(obj1); | |
22648 | if (PyErr_Occurred()) SWIG_fail; | |
22649 | } | |
22650 | if (obj2) { | |
22651 | arg3 = (int) SWIG_AsInt(obj2); | |
22652 | if (PyErr_Occurred()) SWIG_fail; | |
22653 | } | |
22654 | if (obj3) { | |
22655 | arg4 = (int) SWIG_AsInt(obj3); | |
22656 | if (PyErr_Occurred()) SWIG_fail; | |
22657 | } | |
22658 | { | |
22659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22660 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22661 | ||
22662 | wxPyEndAllowThreads(__tstate); | |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
22664 | } | |
22665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
22666 | return resultobj; | |
22667 | fail: | |
22668 | return NULL; | |
22669 | } | |
22670 | ||
22671 | ||
22672 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22673 | PyObject *resultobj; | |
22674 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22675 | PyObject * obj0 = 0 ; | |
22676 | char *kwnames[] = { | |
22677 | (char *) "self", NULL | |
22678 | }; | |
22679 | ||
22680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
22681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22683 | { | |
22684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22685 | delete arg1; | |
22686 | ||
22687 | wxPyEndAllowThreads(__tstate); | |
22688 | if (PyErr_Occurred()) SWIG_fail; | |
22689 | } | |
22690 | Py_INCREF(Py_None); resultobj = Py_None; | |
22691 | return resultobj; | |
22692 | fail: | |
22693 | return NULL; | |
22694 | } | |
22695 | ||
22696 | ||
22697 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22698 | PyObject *resultobj; | |
22699 | int arg1 ; | |
22700 | wxDateSpan result; | |
22701 | PyObject * obj0 = 0 ; | |
22702 | char *kwnames[] = { | |
22703 | (char *) "days", NULL | |
22704 | }; | |
22705 | ||
22706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
22707 | arg1 = (int) SWIG_AsInt(obj0); | |
22708 | if (PyErr_Occurred()) SWIG_fail; | |
22709 | { | |
22710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22711 | result = wxDateSpan::Days(arg1); | |
22712 | ||
22713 | wxPyEndAllowThreads(__tstate); | |
22714 | if (PyErr_Occurred()) SWIG_fail; | |
22715 | } | |
22716 | { | |
22717 | wxDateSpan * resultptr; | |
22718 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22719 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22720 | } | |
22721 | return resultobj; | |
22722 | fail: | |
22723 | return NULL; | |
22724 | } | |
22725 | ||
22726 | ||
22727 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22728 | PyObject *resultobj; | |
22729 | wxDateSpan result; | |
22730 | char *kwnames[] = { | |
22731 | NULL | |
22732 | }; | |
22733 | ||
22734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22735 | { | |
22736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22737 | result = wxDateSpan::Day(); | |
22738 | ||
22739 | wxPyEndAllowThreads(__tstate); | |
22740 | if (PyErr_Occurred()) SWIG_fail; | |
22741 | } | |
22742 | { | |
22743 | wxDateSpan * resultptr; | |
22744 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22745 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22746 | } | |
22747 | return resultobj; | |
22748 | fail: | |
22749 | return NULL; | |
22750 | } | |
22751 | ||
22752 | ||
22753 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22754 | PyObject *resultobj; | |
22755 | int arg1 ; | |
22756 | wxDateSpan result; | |
22757 | PyObject * obj0 = 0 ; | |
22758 | char *kwnames[] = { | |
22759 | (char *) "weeks", NULL | |
22760 | }; | |
22761 | ||
22762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
22763 | arg1 = (int) SWIG_AsInt(obj0); | |
22764 | if (PyErr_Occurred()) SWIG_fail; | |
22765 | { | |
22766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22767 | result = wxDateSpan::Weeks(arg1); | |
22768 | ||
22769 | wxPyEndAllowThreads(__tstate); | |
22770 | if (PyErr_Occurred()) SWIG_fail; | |
22771 | } | |
22772 | { | |
22773 | wxDateSpan * resultptr; | |
22774 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22775 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22776 | } | |
22777 | return resultobj; | |
22778 | fail: | |
22779 | return NULL; | |
22780 | } | |
22781 | ||
22782 | ||
22783 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22784 | PyObject *resultobj; | |
22785 | wxDateSpan result; | |
22786 | char *kwnames[] = { | |
22787 | NULL | |
22788 | }; | |
22789 | ||
22790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22791 | { | |
22792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22793 | result = wxDateSpan::Week(); | |
22794 | ||
22795 | wxPyEndAllowThreads(__tstate); | |
22796 | if (PyErr_Occurred()) SWIG_fail; | |
22797 | } | |
22798 | { | |
22799 | wxDateSpan * resultptr; | |
22800 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22801 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22802 | } | |
22803 | return resultobj; | |
22804 | fail: | |
22805 | return NULL; | |
22806 | } | |
22807 | ||
22808 | ||
22809 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22810 | PyObject *resultobj; | |
22811 | int arg1 ; | |
22812 | wxDateSpan result; | |
22813 | PyObject * obj0 = 0 ; | |
22814 | char *kwnames[] = { | |
22815 | (char *) "mon", NULL | |
22816 | }; | |
22817 | ||
22818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
22819 | arg1 = (int) SWIG_AsInt(obj0); | |
22820 | if (PyErr_Occurred()) SWIG_fail; | |
22821 | { | |
22822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22823 | result = wxDateSpan::Months(arg1); | |
22824 | ||
22825 | wxPyEndAllowThreads(__tstate); | |
22826 | if (PyErr_Occurred()) SWIG_fail; | |
22827 | } | |
22828 | { | |
22829 | wxDateSpan * resultptr; | |
22830 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22831 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22832 | } | |
22833 | return resultobj; | |
22834 | fail: | |
22835 | return NULL; | |
22836 | } | |
22837 | ||
22838 | ||
22839 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22840 | PyObject *resultobj; | |
22841 | wxDateSpan result; | |
22842 | char *kwnames[] = { | |
22843 | NULL | |
22844 | }; | |
22845 | ||
22846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22847 | { | |
22848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22849 | result = wxDateSpan::Month(); | |
22850 | ||
22851 | wxPyEndAllowThreads(__tstate); | |
22852 | if (PyErr_Occurred()) SWIG_fail; | |
22853 | } | |
22854 | { | |
22855 | wxDateSpan * resultptr; | |
22856 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22857 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22858 | } | |
22859 | return resultobj; | |
22860 | fail: | |
22861 | return NULL; | |
22862 | } | |
22863 | ||
22864 | ||
22865 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22866 | PyObject *resultobj; | |
22867 | int arg1 ; | |
22868 | wxDateSpan result; | |
22869 | PyObject * obj0 = 0 ; | |
22870 | char *kwnames[] = { | |
22871 | (char *) "years", NULL | |
22872 | }; | |
22873 | ||
22874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
22875 | arg1 = (int) SWIG_AsInt(obj0); | |
22876 | if (PyErr_Occurred()) SWIG_fail; | |
22877 | { | |
22878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22879 | result = wxDateSpan::Years(arg1); | |
22880 | ||
22881 | wxPyEndAllowThreads(__tstate); | |
22882 | if (PyErr_Occurred()) SWIG_fail; | |
22883 | } | |
22884 | { | |
22885 | wxDateSpan * resultptr; | |
22886 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22887 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22888 | } | |
22889 | return resultobj; | |
22890 | fail: | |
22891 | return NULL; | |
22892 | } | |
22893 | ||
22894 | ||
22895 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22896 | PyObject *resultobj; | |
22897 | wxDateSpan result; | |
22898 | char *kwnames[] = { | |
22899 | NULL | |
22900 | }; | |
22901 | ||
22902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22903 | { | |
22904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22905 | result = wxDateSpan::Year(); | |
22906 | ||
22907 | wxPyEndAllowThreads(__tstate); | |
22908 | if (PyErr_Occurred()) SWIG_fail; | |
22909 | } | |
22910 | { | |
22911 | wxDateSpan * resultptr; | |
22912 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22913 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22914 | } | |
22915 | return resultobj; | |
22916 | fail: | |
22917 | return NULL; | |
22918 | } | |
22919 | ||
22920 | ||
22921 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22922 | PyObject *resultobj; | |
22923 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22924 | int arg2 ; | |
22925 | wxDateSpan *result; | |
22926 | PyObject * obj0 = 0 ; | |
22927 | PyObject * obj1 = 0 ; | |
22928 | char *kwnames[] = { | |
22929 | (char *) "self",(char *) "n", NULL | |
22930 | }; | |
22931 | ||
22932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
22933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22935 | arg2 = (int) SWIG_AsInt(obj1); | |
22936 | if (PyErr_Occurred()) SWIG_fail; | |
22937 | { | |
22938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22939 | { | |
22940 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22941 | result = (wxDateSpan *) &_result_ref; | |
22942 | } | |
22943 | ||
22944 | wxPyEndAllowThreads(__tstate); | |
22945 | if (PyErr_Occurred()) SWIG_fail; | |
22946 | } | |
22947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22948 | return resultobj; | |
22949 | fail: | |
22950 | return NULL; | |
22951 | } | |
22952 | ||
22953 | ||
22954 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22955 | PyObject *resultobj; | |
22956 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22957 | int arg2 ; | |
22958 | wxDateSpan *result; | |
22959 | PyObject * obj0 = 0 ; | |
22960 | PyObject * obj1 = 0 ; | |
22961 | char *kwnames[] = { | |
22962 | (char *) "self",(char *) "n", NULL | |
22963 | }; | |
22964 | ||
22965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
22966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22968 | arg2 = (int) SWIG_AsInt(obj1); | |
22969 | if (PyErr_Occurred()) SWIG_fail; | |
22970 | { | |
22971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22972 | { | |
22973 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22974 | result = (wxDateSpan *) &_result_ref; | |
22975 | } | |
22976 | ||
22977 | wxPyEndAllowThreads(__tstate); | |
22978 | if (PyErr_Occurred()) SWIG_fail; | |
22979 | } | |
22980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22981 | return resultobj; | |
22982 | fail: | |
22983 | return NULL; | |
22984 | } | |
22985 | ||
22986 | ||
22987 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22988 | PyObject *resultobj; | |
22989 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22990 | int arg2 ; | |
22991 | wxDateSpan *result; | |
22992 | PyObject * obj0 = 0 ; | |
22993 | PyObject * obj1 = 0 ; | |
22994 | char *kwnames[] = { | |
22995 | (char *) "self",(char *) "n", NULL | |
22996 | }; | |
22997 | ||
22998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
22999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23001 | arg2 = (int) SWIG_AsInt(obj1); | |
23002 | if (PyErr_Occurred()) SWIG_fail; | |
23003 | { | |
23004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23005 | { | |
23006 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23007 | result = (wxDateSpan *) &_result_ref; | |
23008 | } | |
23009 | ||
23010 | wxPyEndAllowThreads(__tstate); | |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
23012 | } | |
23013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23014 | return resultobj; | |
23015 | fail: | |
23016 | return NULL; | |
23017 | } | |
23018 | ||
23019 | ||
23020 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23021 | PyObject *resultobj; | |
23022 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23023 | int arg2 ; | |
23024 | wxDateSpan *result; | |
23025 | PyObject * obj0 = 0 ; | |
23026 | PyObject * obj1 = 0 ; | |
23027 | char *kwnames[] = { | |
23028 | (char *) "self",(char *) "n", NULL | |
23029 | }; | |
23030 | ||
23031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
23032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23034 | arg2 = (int) SWIG_AsInt(obj1); | |
23035 | if (PyErr_Occurred()) SWIG_fail; | |
23036 | { | |
23037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23038 | { | |
23039 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23040 | result = (wxDateSpan *) &_result_ref; | |
23041 | } | |
23042 | ||
23043 | wxPyEndAllowThreads(__tstate); | |
23044 | if (PyErr_Occurred()) SWIG_fail; | |
23045 | } | |
23046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23047 | return resultobj; | |
23048 | fail: | |
23049 | return NULL; | |
23050 | } | |
23051 | ||
23052 | ||
23053 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23054 | PyObject *resultobj; | |
23055 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23056 | int result; | |
23057 | PyObject * obj0 = 0 ; | |
23058 | char *kwnames[] = { | |
23059 | (char *) "self", NULL | |
23060 | }; | |
23061 | ||
23062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
23063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23065 | { | |
23066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23067 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23068 | ||
23069 | wxPyEndAllowThreads(__tstate); | |
23070 | if (PyErr_Occurred()) SWIG_fail; | |
23071 | } | |
23072 | resultobj = SWIG_FromInt((int)result); | |
23073 | return resultobj; | |
23074 | fail: | |
23075 | return NULL; | |
23076 | } | |
23077 | ||
23078 | ||
23079 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23080 | PyObject *resultobj; | |
23081 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23082 | int result; | |
23083 | PyObject * obj0 = 0 ; | |
23084 | char *kwnames[] = { | |
23085 | (char *) "self", NULL | |
23086 | }; | |
23087 | ||
23088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23091 | { | |
23092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23093 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23094 | ||
23095 | wxPyEndAllowThreads(__tstate); | |
23096 | if (PyErr_Occurred()) SWIG_fail; | |
23097 | } | |
23098 | resultobj = SWIG_FromInt((int)result); | |
23099 | return resultobj; | |
23100 | fail: | |
23101 | return NULL; | |
23102 | } | |
23103 | ||
23104 | ||
23105 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23106 | PyObject *resultobj; | |
23107 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23108 | int result; | |
23109 | PyObject * obj0 = 0 ; | |
23110 | char *kwnames[] = { | |
23111 | (char *) "self", NULL | |
23112 | }; | |
23113 | ||
23114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23117 | { | |
23118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23119 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23120 | ||
23121 | wxPyEndAllowThreads(__tstate); | |
23122 | if (PyErr_Occurred()) SWIG_fail; | |
23123 | } | |
23124 | resultobj = SWIG_FromInt((int)result); | |
23125 | return resultobj; | |
23126 | fail: | |
23127 | return NULL; | |
23128 | } | |
23129 | ||
23130 | ||
23131 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23132 | PyObject *resultobj; | |
23133 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23134 | int result; | |
23135 | PyObject * obj0 = 0 ; | |
23136 | char *kwnames[] = { | |
23137 | (char *) "self", NULL | |
23138 | }; | |
23139 | ||
23140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23143 | { | |
23144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23145 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23146 | ||
23147 | wxPyEndAllowThreads(__tstate); | |
23148 | if (PyErr_Occurred()) SWIG_fail; | |
23149 | } | |
23150 | resultobj = SWIG_FromInt((int)result); | |
23151 | return resultobj; | |
23152 | fail: | |
23153 | return NULL; | |
23154 | } | |
23155 | ||
23156 | ||
23157 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23158 | PyObject *resultobj; | |
23159 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23160 | int result; | |
23161 | PyObject * obj0 = 0 ; | |
23162 | char *kwnames[] = { | |
23163 | (char *) "self", NULL | |
23164 | }; | |
23165 | ||
23166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23169 | { | |
23170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23171 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23172 | ||
23173 | wxPyEndAllowThreads(__tstate); | |
23174 | if (PyErr_Occurred()) SWIG_fail; | |
23175 | } | |
23176 | resultobj = SWIG_FromInt((int)result); | |
23177 | return resultobj; | |
23178 | fail: | |
23179 | return NULL; | |
23180 | } | |
23181 | ||
23182 | ||
23183 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23184 | PyObject *resultobj; | |
23185 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23186 | wxDateSpan *arg2 = 0 ; | |
23187 | wxDateSpan *result; | |
23188 | PyObject * obj0 = 0 ; | |
23189 | PyObject * obj1 = 0 ; | |
23190 | char *kwnames[] = { | |
23191 | (char *) "self",(char *) "other", NULL | |
23192 | }; | |
23193 | ||
23194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23197 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23198 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23199 | SWIG_fail; | |
23200 | if (arg2 == NULL) { | |
23201 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23202 | SWIG_fail; | |
23203 | } | |
23204 | { | |
23205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23206 | { | |
23207 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23208 | result = (wxDateSpan *) &_result_ref; | |
23209 | } | |
23210 | ||
23211 | wxPyEndAllowThreads(__tstate); | |
23212 | if (PyErr_Occurred()) SWIG_fail; | |
23213 | } | |
23214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23215 | return resultobj; | |
23216 | fail: | |
23217 | return NULL; | |
23218 | } | |
23219 | ||
23220 | ||
23221 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23222 | PyObject *resultobj; | |
23223 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23224 | wxDateSpan *arg2 = 0 ; | |
23225 | wxDateSpan *result; | |
23226 | PyObject * obj0 = 0 ; | |
23227 | PyObject * obj1 = 0 ; | |
23228 | char *kwnames[] = { | |
23229 | (char *) "self",(char *) "other", NULL | |
23230 | }; | |
23231 | ||
23232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23237 | SWIG_fail; | |
23238 | if (arg2 == NULL) { | |
23239 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23240 | SWIG_fail; | |
23241 | } | |
23242 | { | |
23243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23244 | { | |
23245 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23246 | result = (wxDateSpan *) &_result_ref; | |
23247 | } | |
23248 | ||
23249 | wxPyEndAllowThreads(__tstate); | |
23250 | if (PyErr_Occurred()) SWIG_fail; | |
23251 | } | |
23252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23253 | return resultobj; | |
23254 | fail: | |
23255 | return NULL; | |
23256 | } | |
23257 | ||
23258 | ||
23259 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23260 | PyObject *resultobj; | |
23261 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23262 | wxDateSpan *result; | |
23263 | PyObject * obj0 = 0 ; | |
23264 | char *kwnames[] = { | |
23265 | (char *) "self", NULL | |
23266 | }; | |
23267 | ||
23268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23271 | { | |
23272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23273 | { | |
23274 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23275 | result = (wxDateSpan *) &_result_ref; | |
23276 | } | |
23277 | ||
23278 | wxPyEndAllowThreads(__tstate); | |
23279 | if (PyErr_Occurred()) SWIG_fail; | |
23280 | } | |
23281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23282 | return resultobj; | |
23283 | fail: | |
23284 | return NULL; | |
23285 | } | |
23286 | ||
23287 | ||
23288 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23289 | PyObject *resultobj; | |
23290 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23291 | int arg2 ; | |
23292 | wxDateSpan *result; | |
23293 | PyObject * obj0 = 0 ; | |
23294 | PyObject * obj1 = 0 ; | |
23295 | char *kwnames[] = { | |
23296 | (char *) "self",(char *) "factor", NULL | |
23297 | }; | |
23298 | ||
23299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
23300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23302 | arg2 = (int) SWIG_AsInt(obj1); | |
23303 | if (PyErr_Occurred()) SWIG_fail; | |
23304 | { | |
23305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23306 | { | |
23307 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23308 | result = (wxDateSpan *) &_result_ref; | |
23309 | } | |
23310 | ||
23311 | wxPyEndAllowThreads(__tstate); | |
23312 | if (PyErr_Occurred()) SWIG_fail; | |
23313 | } | |
23314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23315 | return resultobj; | |
23316 | fail: | |
23317 | return NULL; | |
23318 | } | |
23319 | ||
23320 | ||
23321 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23322 | PyObject *resultobj; | |
23323 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23324 | wxDateSpan *arg2 = 0 ; | |
23325 | wxDateSpan *result; | |
23326 | PyObject * obj0 = 0 ; | |
23327 | PyObject * obj1 = 0 ; | |
23328 | char *kwnames[] = { | |
23329 | (char *) "self",(char *) "other", NULL | |
23330 | }; | |
23331 | ||
23332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
23333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23336 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23337 | SWIG_fail; | |
23338 | if (arg2 == NULL) { | |
23339 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23340 | SWIG_fail; | |
23341 | } | |
23342 | { | |
23343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23344 | { | |
23345 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23346 | result = (wxDateSpan *) &_result_ref; | |
23347 | } | |
23348 | ||
23349 | wxPyEndAllowThreads(__tstate); | |
23350 | if (PyErr_Occurred()) SWIG_fail; | |
23351 | } | |
23352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23353 | return resultobj; | |
23354 | fail: | |
23355 | return NULL; | |
23356 | } | |
23357 | ||
23358 | ||
23359 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23360 | PyObject *resultobj; | |
23361 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23362 | wxDateSpan *arg2 = 0 ; | |
23363 | wxDateSpan *result; | |
23364 | PyObject * obj0 = 0 ; | |
23365 | PyObject * obj1 = 0 ; | |
23366 | char *kwnames[] = { | |
23367 | (char *) "self",(char *) "other", NULL | |
23368 | }; | |
23369 | ||
23370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
23371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23373 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23374 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23375 | SWIG_fail; | |
23376 | if (arg2 == NULL) { | |
23377 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23378 | SWIG_fail; | |
23379 | } | |
23380 | { | |
23381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23382 | { | |
23383 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23384 | result = (wxDateSpan *) &_result_ref; | |
23385 | } | |
23386 | ||
23387 | wxPyEndAllowThreads(__tstate); | |
23388 | if (PyErr_Occurred()) SWIG_fail; | |
23389 | } | |
23390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23391 | return resultobj; | |
23392 | fail: | |
23393 | return NULL; | |
23394 | } | |
23395 | ||
23396 | ||
23397 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23398 | PyObject *resultobj; | |
23399 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23400 | wxDateSpan *result; | |
23401 | PyObject * obj0 = 0 ; | |
23402 | char *kwnames[] = { | |
23403 | (char *) "self", NULL | |
23404 | }; | |
23405 | ||
23406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23409 | { | |
23410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23411 | { | |
23412 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23413 | result = (wxDateSpan *) &_result_ref; | |
23414 | } | |
23415 | ||
23416 | wxPyEndAllowThreads(__tstate); | |
23417 | if (PyErr_Occurred()) SWIG_fail; | |
23418 | } | |
23419 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23420 | return resultobj; | |
23421 | fail: | |
23422 | return NULL; | |
23423 | } | |
23424 | ||
23425 | ||
23426 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23427 | PyObject *resultobj; | |
23428 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23429 | int arg2 ; | |
23430 | wxDateSpan *result; | |
23431 | PyObject * obj0 = 0 ; | |
23432 | PyObject * obj1 = 0 ; | |
23433 | char *kwnames[] = { | |
23434 | (char *) "self",(char *) "factor", NULL | |
23435 | }; | |
23436 | ||
23437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
23438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23440 | arg2 = (int) SWIG_AsInt(obj1); | |
23441 | if (PyErr_Occurred()) SWIG_fail; | |
23442 | { | |
23443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23444 | { | |
23445 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23446 | result = (wxDateSpan *) &_result_ref; | |
23447 | } | |
23448 | ||
23449 | wxPyEndAllowThreads(__tstate); | |
23450 | if (PyErr_Occurred()) SWIG_fail; | |
23451 | } | |
23452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23453 | return resultobj; | |
23454 | fail: | |
23455 | return NULL; | |
23456 | } | |
23457 | ||
23458 | ||
23459 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23460 | PyObject *resultobj; | |
23461 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23462 | wxDateSpan *arg2 = 0 ; | |
23463 | wxDateSpan result; | |
23464 | PyObject * obj0 = 0 ; | |
23465 | PyObject * obj1 = 0 ; | |
23466 | char *kwnames[] = { | |
23467 | (char *) "self",(char *) "other", NULL | |
23468 | }; | |
23469 | ||
23470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23474 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23475 | SWIG_fail; | |
23476 | if (arg2 == NULL) { | |
23477 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23478 | SWIG_fail; | |
23479 | } | |
23480 | { | |
23481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23482 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23483 | ||
23484 | wxPyEndAllowThreads(__tstate); | |
23485 | if (PyErr_Occurred()) SWIG_fail; | |
23486 | } | |
23487 | { | |
23488 | wxDateSpan * resultptr; | |
23489 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23490 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23491 | } | |
23492 | return resultobj; | |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
23498 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23499 | PyObject *resultobj; | |
23500 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23501 | wxDateSpan *arg2 = 0 ; | |
23502 | wxDateSpan result; | |
23503 | PyObject * obj0 = 0 ; | |
23504 | PyObject * obj1 = 0 ; | |
23505 | char *kwnames[] = { | |
23506 | (char *) "self",(char *) "other", NULL | |
23507 | }; | |
23508 | ||
23509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23512 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23513 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23514 | SWIG_fail; | |
23515 | if (arg2 == NULL) { | |
23516 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23517 | SWIG_fail; | |
23518 | } | |
23519 | { | |
23520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23521 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23522 | ||
23523 | wxPyEndAllowThreads(__tstate); | |
23524 | if (PyErr_Occurred()) SWIG_fail; | |
23525 | } | |
23526 | { | |
23527 | wxDateSpan * resultptr; | |
23528 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23529 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23530 | } | |
23531 | return resultobj; | |
23532 | fail: | |
23533 | return NULL; | |
23534 | } | |
23535 | ||
23536 | ||
23537 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23538 | PyObject *resultobj; | |
23539 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23540 | int arg2 ; | |
23541 | wxDateSpan result; | |
23542 | PyObject * obj0 = 0 ; | |
23543 | PyObject * obj1 = 0 ; | |
23544 | char *kwnames[] = { | |
23545 | (char *) "self",(char *) "n", NULL | |
23546 | }; | |
23547 | ||
23548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
23549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23551 | arg2 = (int) SWIG_AsInt(obj1); | |
23552 | if (PyErr_Occurred()) SWIG_fail; | |
23553 | { | |
23554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23555 | result = wxDateSpan___mul__(arg1,arg2); | |
23556 | ||
23557 | wxPyEndAllowThreads(__tstate); | |
23558 | if (PyErr_Occurred()) SWIG_fail; | |
23559 | } | |
23560 | { | |
23561 | wxDateSpan * resultptr; | |
23562 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23563 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23564 | } | |
23565 | return resultobj; | |
23566 | fail: | |
23567 | return NULL; | |
23568 | } | |
23569 | ||
23570 | ||
23571 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23572 | PyObject *resultobj; | |
23573 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23574 | int arg2 ; | |
23575 | wxDateSpan result; | |
23576 | PyObject * obj0 = 0 ; | |
23577 | PyObject * obj1 = 0 ; | |
23578 | char *kwnames[] = { | |
23579 | (char *) "self",(char *) "n", NULL | |
23580 | }; | |
23581 | ||
23582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
23583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23585 | arg2 = (int) SWIG_AsInt(obj1); | |
23586 | if (PyErr_Occurred()) SWIG_fail; | |
23587 | { | |
23588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23589 | result = wxDateSpan___rmul__(arg1,arg2); | |
23590 | ||
23591 | wxPyEndAllowThreads(__tstate); | |
23592 | if (PyErr_Occurred()) SWIG_fail; | |
23593 | } | |
23594 | { | |
23595 | wxDateSpan * resultptr; | |
23596 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23597 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23598 | } | |
23599 | return resultobj; | |
23600 | fail: | |
23601 | return NULL; | |
23602 | } | |
23603 | ||
23604 | ||
23605 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23606 | PyObject *resultobj; | |
23607 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23608 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23609 | bool result; | |
23610 | PyObject * obj0 = 0 ; | |
23611 | PyObject * obj1 = 0 ; | |
23612 | char *kwnames[] = { | |
23613 | (char *) "self",(char *) "other", NULL | |
23614 | }; | |
23615 | ||
23616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23619 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23621 | { | |
23622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23623 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
23624 | ||
23625 | wxPyEndAllowThreads(__tstate); | |
23626 | if (PyErr_Occurred()) SWIG_fail; | |
23627 | } | |
23628 | { | |
23629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23630 | } | |
23631 | return resultobj; | |
23632 | fail: | |
23633 | return NULL; | |
23634 | } | |
23635 | ||
23636 | ||
23637 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23638 | PyObject *resultobj; | |
23639 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23640 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23641 | bool result; | |
23642 | PyObject * obj0 = 0 ; | |
23643 | PyObject * obj1 = 0 ; | |
23644 | char *kwnames[] = { | |
23645 | (char *) "self",(char *) "other", NULL | |
23646 | }; | |
23647 | ||
23648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23651 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23653 | { | |
23654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23655 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
23656 | ||
23657 | wxPyEndAllowThreads(__tstate); | |
23658 | if (PyErr_Occurred()) SWIG_fail; | |
23659 | } | |
23660 | { | |
23661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23662 | } | |
23663 | return resultobj; | |
23664 | fail: | |
23665 | return NULL; | |
23666 | } | |
23667 | ||
23668 | ||
23669 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23670 | PyObject *obj; | |
23671 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23672 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23673 | Py_INCREF(obj); | |
23674 | return Py_BuildValue((char *)""); | |
23675 | } | |
23676 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23677 | PyObject *resultobj; | |
23678 | long result; | |
23679 | char *kwnames[] = { | |
23680 | NULL | |
23681 | }; | |
23682 | ||
23683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23684 | { | |
23685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23686 | result = (long)wxGetLocalTime(); | |
23687 | ||
23688 | wxPyEndAllowThreads(__tstate); | |
23689 | if (PyErr_Occurred()) SWIG_fail; | |
23690 | } | |
23691 | resultobj = SWIG_FromLong((long)result); | |
23692 | return resultobj; | |
23693 | fail: | |
23694 | return NULL; | |
23695 | } | |
23696 | ||
23697 | ||
23698 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23699 | PyObject *resultobj; | |
23700 | long result; | |
23701 | char *kwnames[] = { | |
23702 | NULL | |
23703 | }; | |
23704 | ||
23705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23706 | { | |
23707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23708 | result = (long)wxGetUTCTime(); | |
23709 | ||
23710 | wxPyEndAllowThreads(__tstate); | |
23711 | if (PyErr_Occurred()) SWIG_fail; | |
23712 | } | |
23713 | resultobj = SWIG_FromLong((long)result); | |
23714 | return resultobj; | |
23715 | fail: | |
23716 | return NULL; | |
23717 | } | |
23718 | ||
23719 | ||
23720 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23721 | PyObject *resultobj; | |
23722 | long result; | |
23723 | char *kwnames[] = { | |
23724 | NULL | |
23725 | }; | |
23726 | ||
23727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23728 | { | |
23729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23730 | result = (long)wxGetCurrentTime(); | |
23731 | ||
23732 | wxPyEndAllowThreads(__tstate); | |
23733 | if (PyErr_Occurred()) SWIG_fail; | |
23734 | } | |
23735 | resultobj = SWIG_FromLong((long)result); | |
23736 | return resultobj; | |
23737 | fail: | |
23738 | return NULL; | |
23739 | } | |
23740 | ||
23741 | ||
23742 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23743 | PyObject *resultobj; | |
23744 | wxLongLong result; | |
23745 | char *kwnames[] = { | |
23746 | NULL | |
23747 | }; | |
23748 | ||
23749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23750 | { | |
23751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23752 | result = wxGetLocalTimeMillis(); | |
23753 | ||
23754 | wxPyEndAllowThreads(__tstate); | |
23755 | if (PyErr_Occurred()) SWIG_fail; | |
23756 | } | |
23757 | { | |
23758 | PyObject *hi, *lo, *shifter, *shifted; | |
23759 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23760 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23761 | shifter = PyLong_FromLong(32); | |
23762 | shifted = PyNumber_Lshift(hi, shifter); | |
23763 | resultobj = PyNumber_Or(shifted, lo); | |
23764 | Py_DECREF(hi); | |
23765 | Py_DECREF(lo); | |
23766 | Py_DECREF(shifter); | |
23767 | Py_DECREF(shifted); | |
23768 | } | |
23769 | return resultobj; | |
23770 | fail: | |
23771 | return NULL; | |
23772 | } | |
23773 | ||
23774 | ||
23775 | static int _wrap_DefaultDateTime_set(PyObject *_val) { | |
23776 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23777 | return 1; | |
23778 | } | |
23779 | ||
23780 | ||
23781 | static PyObject *_wrap_DefaultDateTime_get() { | |
23782 | PyObject *pyobj; | |
23783 | ||
23784 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
23785 | return pyobj; | |
23786 | } | |
23787 | ||
23788 | ||
23789 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23790 | PyObject *resultobj; | |
23791 | int arg1 ; | |
23792 | wxDataFormat *result; | |
23793 | PyObject * obj0 = 0 ; | |
23794 | char *kwnames[] = { | |
23795 | (char *) "type", NULL | |
23796 | }; | |
23797 | ||
23798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
23799 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); | |
23800 | if (PyErr_Occurred()) SWIG_fail; | |
23801 | { | |
23802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23803 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23804 | ||
23805 | wxPyEndAllowThreads(__tstate); | |
23806 | if (PyErr_Occurred()) SWIG_fail; | |
23807 | } | |
23808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23809 | return resultobj; | |
23810 | fail: | |
23811 | return NULL; | |
23812 | } | |
23813 | ||
23814 | ||
23815 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23816 | PyObject *resultobj; | |
23817 | wxString *arg1 = 0 ; | |
23818 | wxDataFormat *result; | |
23819 | bool temp1 = False ; | |
23820 | PyObject * obj0 = 0 ; | |
23821 | char *kwnames[] = { | |
23822 | (char *) "format", NULL | |
23823 | }; | |
23824 | ||
23825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23826 | { | |
23827 | arg1 = wxString_in_helper(obj0); | |
23828 | if (arg1 == NULL) SWIG_fail; | |
23829 | temp1 = True; | |
23830 | } | |
23831 | { | |
23832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23833 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23834 | ||
23835 | wxPyEndAllowThreads(__tstate); | |
23836 | if (PyErr_Occurred()) SWIG_fail; | |
23837 | } | |
23838 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23839 | { | |
23840 | if (temp1) | |
23841 | delete arg1; | |
23842 | } | |
23843 | return resultobj; | |
23844 | fail: | |
23845 | { | |
23846 | if (temp1) | |
23847 | delete arg1; | |
23848 | } | |
23849 | return NULL; | |
23850 | } | |
23851 | ||
23852 | ||
23853 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23854 | PyObject *resultobj; | |
23855 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23856 | PyObject * obj0 = 0 ; | |
23857 | char *kwnames[] = { | |
23858 | (char *) "self", NULL | |
23859 | }; | |
23860 | ||
23861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
23862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23864 | { | |
23865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23866 | delete arg1; | |
23867 | ||
23868 | wxPyEndAllowThreads(__tstate); | |
23869 | if (PyErr_Occurred()) SWIG_fail; | |
23870 | } | |
23871 | Py_INCREF(Py_None); resultobj = Py_None; | |
23872 | return resultobj; | |
23873 | fail: | |
23874 | return NULL; | |
23875 | } | |
23876 | ||
23877 | ||
23878 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23879 | PyObject *resultobj; | |
23880 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23881 | int arg2 ; | |
23882 | bool result; | |
23883 | PyObject * obj0 = 0 ; | |
23884 | PyObject * obj1 = 0 ; | |
23885 | ||
23886 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23889 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23890 | if (PyErr_Occurred()) SWIG_fail; | |
23891 | { | |
23892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23893 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
23894 | ||
23895 | wxPyEndAllowThreads(__tstate); | |
23896 | if (PyErr_Occurred()) SWIG_fail; | |
23897 | } | |
23898 | { | |
23899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23900 | } | |
23901 | return resultobj; | |
23902 | fail: | |
23903 | return NULL; | |
23904 | } | |
23905 | ||
23906 | ||
23907 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23908 | PyObject *resultobj; | |
23909 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23910 | int arg2 ; | |
23911 | bool result; | |
23912 | PyObject * obj0 = 0 ; | |
23913 | PyObject * obj1 = 0 ; | |
23914 | ||
23915 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23918 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23919 | if (PyErr_Occurred()) SWIG_fail; | |
23920 | { | |
23921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23922 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
23923 | ||
23924 | wxPyEndAllowThreads(__tstate); | |
23925 | if (PyErr_Occurred()) SWIG_fail; | |
23926 | } | |
23927 | { | |
23928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23929 | } | |
23930 | return resultobj; | |
23931 | fail: | |
23932 | return NULL; | |
23933 | } | |
23934 | ||
23935 | ||
23936 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23937 | PyObject *resultobj; | |
23938 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23939 | wxDataFormat *arg2 = 0 ; | |
23940 | bool result; | |
23941 | PyObject * obj0 = 0 ; | |
23942 | PyObject * obj1 = 0 ; | |
23943 | ||
23944 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23947 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23948 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23949 | SWIG_fail; | |
23950 | if (arg2 == NULL) { | |
23951 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23952 | SWIG_fail; | |
23953 | } | |
23954 | { | |
23955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23956 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23957 | ||
23958 | wxPyEndAllowThreads(__tstate); | |
23959 | if (PyErr_Occurred()) SWIG_fail; | |
23960 | } | |
23961 | { | |
23962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23963 | } | |
23964 | return resultobj; | |
23965 | fail: | |
23966 | return NULL; | |
23967 | } | |
23968 | ||
23969 | ||
23970 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23971 | int argc; | |
23972 | PyObject *argv[3]; | |
23973 | int ii; | |
23974 | ||
23975 | argc = PyObject_Length(args); | |
23976 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23977 | argv[ii] = PyTuple_GetItem(args,ii); | |
23978 | } | |
23979 | if (argc == 2) { | |
23980 | int _v; | |
23981 | { | |
23982 | void *ptr; | |
23983 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23984 | _v = 0; | |
23985 | PyErr_Clear(); | |
23986 | } else { | |
23987 | _v = 1; | |
23988 | } | |
23989 | } | |
23990 | if (_v) { | |
23991 | { | |
23992 | void *ptr; | |
23993 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23994 | _v = 0; | |
23995 | PyErr_Clear(); | |
23996 | } else { | |
23997 | _v = 1; | |
23998 | } | |
23999 | } | |
24000 | if (_v) { | |
24001 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24002 | } | |
24003 | } | |
24004 | } | |
24005 | if (argc == 2) { | |
24006 | int _v; | |
24007 | { | |
24008 | void *ptr; | |
24009 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24010 | _v = 0; | |
24011 | PyErr_Clear(); | |
24012 | } else { | |
24013 | _v = 1; | |
24014 | } | |
24015 | } | |
24016 | if (_v) { | |
24017 | _v = SWIG_CheckInt(argv[1]); | |
24018 | if (_v) { | |
24019 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24020 | } | |
24021 | } | |
24022 | } | |
24023 | ||
24024 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24025 | return NULL; | |
24026 | } | |
24027 | ||
24028 | ||
24029 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
24030 | PyObject *resultobj; | |
24031 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24032 | wxDataFormat *arg2 = 0 ; | |
24033 | bool result; | |
24034 | PyObject * obj0 = 0 ; | |
24035 | PyObject * obj1 = 0 ; | |
24036 | ||
24037 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24041 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24042 | SWIG_fail; | |
24043 | if (arg2 == NULL) { | |
24044 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24045 | SWIG_fail; | |
24046 | } | |
24047 | { | |
24048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24049 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24050 | ||
24051 | wxPyEndAllowThreads(__tstate); | |
24052 | if (PyErr_Occurred()) SWIG_fail; | |
24053 | } | |
24054 | { | |
24055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24056 | } | |
24057 | return resultobj; | |
24058 | fail: | |
24059 | return NULL; | |
24060 | } | |
24061 | ||
24062 | ||
24063 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24064 | int argc; | |
24065 | PyObject *argv[3]; | |
24066 | int ii; | |
24067 | ||
24068 | argc = PyObject_Length(args); | |
24069 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24070 | argv[ii] = PyTuple_GetItem(args,ii); | |
24071 | } | |
24072 | if (argc == 2) { | |
24073 | int _v; | |
24074 | { | |
24075 | void *ptr; | |
24076 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24077 | _v = 0; | |
24078 | PyErr_Clear(); | |
24079 | } else { | |
24080 | _v = 1; | |
24081 | } | |
24082 | } | |
24083 | if (_v) { | |
24084 | { | |
24085 | void *ptr; | |
24086 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24087 | _v = 0; | |
24088 | PyErr_Clear(); | |
24089 | } else { | |
24090 | _v = 1; | |
24091 | } | |
24092 | } | |
24093 | if (_v) { | |
24094 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24095 | } | |
24096 | } | |
24097 | } | |
24098 | if (argc == 2) { | |
24099 | int _v; | |
24100 | { | |
24101 | void *ptr; | |
24102 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24103 | _v = 0; | |
24104 | PyErr_Clear(); | |
24105 | } else { | |
24106 | _v = 1; | |
24107 | } | |
24108 | } | |
24109 | if (_v) { | |
24110 | _v = SWIG_CheckInt(argv[1]); | |
24111 | if (_v) { | |
24112 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24113 | } | |
24114 | } | |
24115 | } | |
24116 | ||
24117 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24118 | return NULL; | |
24119 | } | |
24120 | ||
24121 | ||
24122 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24123 | PyObject *resultobj; | |
24124 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24125 | int arg2 ; | |
24126 | PyObject * obj0 = 0 ; | |
24127 | PyObject * obj1 = 0 ; | |
24128 | char *kwnames[] = { | |
24129 | (char *) "self",(char *) "format", NULL | |
24130 | }; | |
24131 | ||
24132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24135 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24136 | if (PyErr_Occurred()) SWIG_fail; | |
24137 | { | |
24138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24139 | (arg1)->SetType((wxDataFormatId )arg2); | |
24140 | ||
24141 | wxPyEndAllowThreads(__tstate); | |
24142 | if (PyErr_Occurred()) SWIG_fail; | |
24143 | } | |
24144 | Py_INCREF(Py_None); resultobj = Py_None; | |
24145 | return resultobj; | |
24146 | fail: | |
24147 | return NULL; | |
24148 | } | |
24149 | ||
24150 | ||
24151 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24152 | PyObject *resultobj; | |
24153 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24154 | int result; | |
24155 | PyObject * obj0 = 0 ; | |
24156 | char *kwnames[] = { | |
24157 | (char *) "self", NULL | |
24158 | }; | |
24159 | ||
24160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24163 | { | |
24164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24165 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24166 | ||
24167 | wxPyEndAllowThreads(__tstate); | |
24168 | if (PyErr_Occurred()) SWIG_fail; | |
24169 | } | |
24170 | resultobj = SWIG_FromInt((int)result); | |
24171 | return resultobj; | |
24172 | fail: | |
24173 | return NULL; | |
24174 | } | |
24175 | ||
24176 | ||
24177 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24178 | PyObject *resultobj; | |
24179 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24180 | wxString result; | |
24181 | PyObject * obj0 = 0 ; | |
24182 | char *kwnames[] = { | |
24183 | (char *) "self", NULL | |
24184 | }; | |
24185 | ||
24186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24189 | { | |
24190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24191 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24192 | ||
24193 | wxPyEndAllowThreads(__tstate); | |
24194 | if (PyErr_Occurred()) SWIG_fail; | |
24195 | } | |
24196 | { | |
24197 | #if wxUSE_UNICODE | |
24198 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24199 | #else | |
24200 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24201 | #endif | |
24202 | } | |
24203 | return resultobj; | |
24204 | fail: | |
24205 | return NULL; | |
24206 | } | |
24207 | ||
24208 | ||
24209 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24210 | PyObject *resultobj; | |
24211 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24212 | wxString *arg2 = 0 ; | |
24213 | bool temp2 = False ; | |
24214 | PyObject * obj0 = 0 ; | |
24215 | PyObject * obj1 = 0 ; | |
24216 | char *kwnames[] = { | |
24217 | (char *) "self",(char *) "format", NULL | |
24218 | }; | |
24219 | ||
24220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24223 | { | |
24224 | arg2 = wxString_in_helper(obj1); | |
24225 | if (arg2 == NULL) SWIG_fail; | |
24226 | temp2 = True; | |
24227 | } | |
24228 | { | |
24229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24230 | (arg1)->SetId((wxString const &)*arg2); | |
24231 | ||
24232 | wxPyEndAllowThreads(__tstate); | |
24233 | if (PyErr_Occurred()) SWIG_fail; | |
24234 | } | |
24235 | Py_INCREF(Py_None); resultobj = Py_None; | |
24236 | { | |
24237 | if (temp2) | |
24238 | delete arg2; | |
24239 | } | |
24240 | return resultobj; | |
24241 | fail: | |
24242 | { | |
24243 | if (temp2) | |
24244 | delete arg2; | |
24245 | } | |
24246 | return NULL; | |
24247 | } | |
24248 | ||
24249 | ||
24250 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24251 | PyObject *obj; | |
24252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24253 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24254 | Py_INCREF(obj); | |
24255 | return Py_BuildValue((char *)""); | |
24256 | } | |
24257 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24258 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24259 | return 1; | |
24260 | } | |
24261 | ||
24262 | ||
24263 | static PyObject *_wrap_FormatInvalid_get() { | |
24264 | PyObject *pyobj; | |
24265 | ||
24266 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24267 | return pyobj; | |
24268 | } | |
24269 | ||
24270 | ||
24271 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24272 | PyObject *resultobj; | |
24273 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24274 | PyObject * obj0 = 0 ; | |
24275 | char *kwnames[] = { | |
24276 | (char *) "self", NULL | |
24277 | }; | |
24278 | ||
24279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24282 | { | |
24283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24284 | delete arg1; | |
24285 | ||
24286 | wxPyEndAllowThreads(__tstate); | |
24287 | if (PyErr_Occurred()) SWIG_fail; | |
24288 | } | |
24289 | Py_INCREF(Py_None); resultobj = Py_None; | |
24290 | return resultobj; | |
24291 | fail: | |
24292 | return NULL; | |
24293 | } | |
24294 | ||
24295 | ||
24296 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24297 | PyObject *resultobj; | |
24298 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24299 | int arg2 = (int) wxDataObject::Get ; | |
24300 | SwigValueWrapper< wxDataFormat > result; | |
24301 | PyObject * obj0 = 0 ; | |
24302 | PyObject * obj1 = 0 ; | |
24303 | char *kwnames[] = { | |
24304 | (char *) "self",(char *) "dir", NULL | |
24305 | }; | |
24306 | ||
24307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
24308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24310 | if (obj1) { | |
24311 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24312 | if (PyErr_Occurred()) SWIG_fail; | |
24313 | } | |
24314 | { | |
24315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24316 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24317 | ||
24318 | wxPyEndAllowThreads(__tstate); | |
24319 | if (PyErr_Occurred()) SWIG_fail; | |
24320 | } | |
24321 | { | |
24322 | wxDataFormat * resultptr; | |
24323 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
24324 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
24325 | } | |
24326 | return resultobj; | |
24327 | fail: | |
24328 | return NULL; | |
24329 | } | |
24330 | ||
24331 | ||
24332 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24333 | PyObject *resultobj; | |
24334 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24335 | int arg2 = (int) wxDataObject::Get ; | |
24336 | size_t result; | |
24337 | PyObject * obj0 = 0 ; | |
24338 | PyObject * obj1 = 0 ; | |
24339 | char *kwnames[] = { | |
24340 | (char *) "self",(char *) "dir", NULL | |
24341 | }; | |
24342 | ||
24343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
24344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24346 | if (obj1) { | |
24347 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24348 | if (PyErr_Occurred()) SWIG_fail; | |
24349 | } | |
24350 | { | |
24351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24352 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24353 | ||
24354 | wxPyEndAllowThreads(__tstate); | |
24355 | if (PyErr_Occurred()) SWIG_fail; | |
24356 | } | |
24357 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24358 | return resultobj; | |
24359 | fail: | |
24360 | return NULL; | |
24361 | } | |
24362 | ||
24363 | ||
24364 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24365 | PyObject *resultobj; | |
24366 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24367 | wxDataFormat *arg2 = 0 ; | |
24368 | int arg3 = (int) wxDataObject::Get ; | |
24369 | bool result; | |
24370 | PyObject * obj0 = 0 ; | |
24371 | PyObject * obj1 = 0 ; | |
24372 | PyObject * obj2 = 0 ; | |
24373 | char *kwnames[] = { | |
24374 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24375 | }; | |
24376 | ||
24377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24380 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24381 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24382 | SWIG_fail; | |
24383 | if (arg2 == NULL) { | |
24384 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24385 | SWIG_fail; | |
24386 | } | |
24387 | if (obj2) { | |
24388 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); | |
24389 | if (PyErr_Occurred()) SWIG_fail; | |
24390 | } | |
24391 | { | |
24392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24393 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24394 | ||
24395 | wxPyEndAllowThreads(__tstate); | |
24396 | if (PyErr_Occurred()) SWIG_fail; | |
24397 | } | |
24398 | { | |
24399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24400 | } | |
24401 | return resultobj; | |
24402 | fail: | |
24403 | return NULL; | |
24404 | } | |
24405 | ||
24406 | ||
24407 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24408 | PyObject *resultobj; | |
24409 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24410 | wxDataFormat *arg2 = 0 ; | |
24411 | size_t result; | |
24412 | PyObject * obj0 = 0 ; | |
24413 | PyObject * obj1 = 0 ; | |
24414 | char *kwnames[] = { | |
24415 | (char *) "self",(char *) "format", NULL | |
24416 | }; | |
24417 | ||
24418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24421 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24422 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24423 | SWIG_fail; | |
24424 | if (arg2 == NULL) { | |
24425 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24426 | SWIG_fail; | |
24427 | } | |
24428 | { | |
24429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24430 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24431 | ||
24432 | wxPyEndAllowThreads(__tstate); | |
24433 | if (PyErr_Occurred()) SWIG_fail; | |
24434 | } | |
24435 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24436 | return resultobj; | |
24437 | fail: | |
24438 | return NULL; | |
24439 | } | |
24440 | ||
24441 | ||
24442 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24443 | PyObject *resultobj; | |
24444 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24445 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
24446 | int arg3 = (int) wxDataObject::Get ; | |
24447 | PyObject * obj0 = 0 ; | |
24448 | PyObject * obj1 = 0 ; | |
24449 | PyObject * obj2 = 0 ; | |
24450 | char *kwnames[] = { | |
24451 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
24452 | }; | |
24453 | ||
24454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24457 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24459 | if (obj2) { | |
24460 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); | |
24461 | if (PyErr_Occurred()) SWIG_fail; | |
24462 | } | |
24463 | { | |
24464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24465 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
24466 | ||
24467 | wxPyEndAllowThreads(__tstate); | |
24468 | if (PyErr_Occurred()) SWIG_fail; | |
24469 | } | |
24470 | Py_INCREF(Py_None); resultobj = Py_None; | |
24471 | return resultobj; | |
24472 | fail: | |
24473 | return NULL; | |
24474 | } | |
24475 | ||
24476 | ||
24477 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24478 | PyObject *resultobj; | |
24479 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24480 | wxDataFormat *arg2 = 0 ; | |
24481 | void *arg3 = (void *) 0 ; | |
24482 | bool result; | |
24483 | PyObject * obj0 = 0 ; | |
24484 | PyObject * obj1 = 0 ; | |
24485 | PyObject * obj2 = 0 ; | |
24486 | char *kwnames[] = { | |
24487 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
24488 | }; | |
24489 | ||
24490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24493 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24494 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24495 | SWIG_fail; | |
24496 | if (arg2 == NULL) { | |
24497 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24498 | SWIG_fail; | |
24499 | } | |
24500 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24501 | { | |
24502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24503 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
24504 | ||
24505 | wxPyEndAllowThreads(__tstate); | |
24506 | if (PyErr_Occurred()) SWIG_fail; | |
24507 | } | |
24508 | { | |
24509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24510 | } | |
24511 | return resultobj; | |
24512 | fail: | |
24513 | return NULL; | |
24514 | } | |
24515 | ||
24516 | ||
24517 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24518 | PyObject *resultobj; | |
24519 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24520 | wxDataFormat *arg2 = 0 ; | |
24521 | size_t arg3 ; | |
24522 | void *arg4 = (void *) 0 ; | |
24523 | bool result; | |
24524 | PyObject * obj0 = 0 ; | |
24525 | PyObject * obj1 = 0 ; | |
24526 | PyObject * obj2 = 0 ; | |
24527 | PyObject * obj3 = 0 ; | |
24528 | char *kwnames[] = { | |
24529 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
24530 | }; | |
24531 | ||
24532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24535 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24536 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24537 | SWIG_fail; | |
24538 | if (arg2 == NULL) { | |
24539 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24540 | SWIG_fail; | |
24541 | } | |
24542 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
24543 | if (PyErr_Occurred()) SWIG_fail; | |
24544 | if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24545 | { | |
24546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24547 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
24548 | ||
24549 | wxPyEndAllowThreads(__tstate); | |
24550 | if (PyErr_Occurred()) SWIG_fail; | |
24551 | } | |
24552 | { | |
24553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24554 | } | |
24555 | return resultobj; | |
24556 | fail: | |
24557 | return NULL; | |
24558 | } | |
24559 | ||
24560 | ||
24561 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24562 | PyObject *obj; | |
24563 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24564 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24565 | Py_INCREF(obj); | |
24566 | return Py_BuildValue((char *)""); | |
24567 | } | |
24568 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24569 | PyObject *resultobj; | |
24570 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24571 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24572 | wxDataObjectSimple *result; | |
24573 | PyObject * obj0 = 0 ; | |
24574 | char *kwnames[] = { | |
24575 | (char *) "format", NULL | |
24576 | }; | |
24577 | ||
24578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24579 | if (obj0) { | |
24580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24581 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24582 | SWIG_fail; | |
24583 | if (arg1 == NULL) { | |
24584 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24585 | SWIG_fail; | |
24586 | } | |
24587 | } | |
24588 | { | |
24589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24590 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24591 | ||
24592 | wxPyEndAllowThreads(__tstate); | |
24593 | if (PyErr_Occurred()) SWIG_fail; | |
24594 | } | |
24595 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
24596 | return resultobj; | |
24597 | fail: | |
24598 | return NULL; | |
24599 | } | |
24600 | ||
24601 | ||
24602 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24603 | PyObject *resultobj; | |
24604 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24605 | wxDataFormat *result; | |
24606 | PyObject * obj0 = 0 ; | |
24607 | char *kwnames[] = { | |
24608 | (char *) "self", NULL | |
24609 | }; | |
24610 | ||
24611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
24612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24614 | { | |
24615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24616 | { | |
24617 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24618 | result = (wxDataFormat *) &_result_ref; | |
24619 | } | |
24620 | ||
24621 | wxPyEndAllowThreads(__tstate); | |
24622 | if (PyErr_Occurred()) SWIG_fail; | |
24623 | } | |
24624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
24625 | return resultobj; | |
24626 | fail: | |
24627 | return NULL; | |
24628 | } | |
24629 | ||
24630 | ||
24631 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24632 | PyObject *resultobj; | |
24633 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24634 | wxDataFormat *arg2 = 0 ; | |
24635 | PyObject * obj0 = 0 ; | |
24636 | PyObject * obj1 = 0 ; | |
24637 | char *kwnames[] = { | |
24638 | (char *) "self",(char *) "format", NULL | |
24639 | }; | |
24640 | ||
24641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
24642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24644 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24645 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24646 | SWIG_fail; | |
24647 | if (arg2 == NULL) { | |
24648 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24649 | SWIG_fail; | |
24650 | } | |
24651 | { | |
24652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24653 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24654 | ||
24655 | wxPyEndAllowThreads(__tstate); | |
24656 | if (PyErr_Occurred()) SWIG_fail; | |
24657 | } | |
24658 | Py_INCREF(Py_None); resultobj = Py_None; | |
24659 | return resultobj; | |
24660 | fail: | |
24661 | return NULL; | |
24662 | } | |
24663 | ||
24664 | ||
24665 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24666 | PyObject *obj; | |
24667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24668 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24669 | Py_INCREF(obj); | |
24670 | return Py_BuildValue((char *)""); | |
24671 | } | |
24672 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24673 | PyObject *resultobj; | |
24674 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24675 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24676 | wxPyDataObjectSimple *result; | |
24677 | PyObject * obj0 = 0 ; | |
24678 | char *kwnames[] = { | |
24679 | (char *) "format", NULL | |
24680 | }; | |
24681 | ||
24682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24683 | if (obj0) { | |
24684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24685 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24686 | SWIG_fail; | |
24687 | if (arg1 == NULL) { | |
24688 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24689 | SWIG_fail; | |
24690 | } | |
24691 | } | |
24692 | { | |
24693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24694 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24695 | ||
24696 | wxPyEndAllowThreads(__tstate); | |
24697 | if (PyErr_Occurred()) SWIG_fail; | |
24698 | } | |
24699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
24700 | return resultobj; | |
24701 | fail: | |
24702 | return NULL; | |
24703 | } | |
24704 | ||
24705 | ||
24706 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24707 | PyObject *resultobj; | |
24708 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24709 | PyObject *arg2 = (PyObject *) 0 ; | |
24710 | PyObject *arg3 = (PyObject *) 0 ; | |
24711 | PyObject * obj0 = 0 ; | |
24712 | PyObject * obj1 = 0 ; | |
24713 | PyObject * obj2 = 0 ; | |
24714 | char *kwnames[] = { | |
24715 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24716 | }; | |
24717 | ||
24718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
24720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24721 | arg2 = obj1; | |
24722 | arg3 = obj2; | |
24723 | { | |
24724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24725 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24726 | ||
24727 | wxPyEndAllowThreads(__tstate); | |
24728 | if (PyErr_Occurred()) SWIG_fail; | |
24729 | } | |
24730 | Py_INCREF(Py_None); resultobj = Py_None; | |
24731 | return resultobj; | |
24732 | fail: | |
24733 | return NULL; | |
24734 | } | |
24735 | ||
24736 | ||
24737 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24738 | PyObject *obj; | |
24739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24740 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24741 | Py_INCREF(obj); | |
24742 | return Py_BuildValue((char *)""); | |
24743 | } | |
24744 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24745 | PyObject *resultobj; | |
24746 | wxDataObjectComposite *result; | |
24747 | char *kwnames[] = { | |
24748 | NULL | |
24749 | }; | |
24750 | ||
24751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24752 | { | |
24753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24754 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24755 | ||
24756 | wxPyEndAllowThreads(__tstate); | |
24757 | if (PyErr_Occurred()) SWIG_fail; | |
24758 | } | |
24759 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
24760 | return resultobj; | |
24761 | fail: | |
24762 | return NULL; | |
24763 | } | |
24764 | ||
24765 | ||
24766 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24767 | PyObject *resultobj; | |
24768 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24769 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
24770 | int arg3 = (int) False ; | |
24771 | PyObject * obj0 = 0 ; | |
24772 | PyObject * obj1 = 0 ; | |
24773 | PyObject * obj2 = 0 ; | |
24774 | char *kwnames[] = { | |
24775 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24776 | }; | |
24777 | ||
24778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
24780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24781 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24782 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24783 | if (obj2) { | |
24784 | arg3 = (int) SWIG_AsInt(obj2); | |
24785 | if (PyErr_Occurred()) SWIG_fail; | |
24786 | } | |
24787 | { | |
24788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24789 | (arg1)->Add(arg2,arg3); | |
24790 | ||
24791 | wxPyEndAllowThreads(__tstate); | |
24792 | if (PyErr_Occurred()) SWIG_fail; | |
24793 | } | |
24794 | Py_INCREF(Py_None); resultobj = Py_None; | |
24795 | return resultobj; | |
24796 | fail: | |
24797 | return NULL; | |
24798 | } | |
24799 | ||
24800 | ||
24801 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24802 | PyObject *obj; | |
24803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24804 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24805 | Py_INCREF(obj); | |
24806 | return Py_BuildValue((char *)""); | |
24807 | } | |
24808 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24809 | PyObject *resultobj; | |
24810 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24811 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24812 | wxTextDataObject *result; | |
24813 | bool temp1 = False ; | |
24814 | PyObject * obj0 = 0 ; | |
24815 | char *kwnames[] = { | |
24816 | (char *) "text", NULL | |
24817 | }; | |
24818 | ||
24819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24820 | if (obj0) { | |
24821 | { | |
24822 | arg1 = wxString_in_helper(obj0); | |
24823 | if (arg1 == NULL) SWIG_fail; | |
24824 | temp1 = True; | |
24825 | } | |
24826 | } | |
24827 | { | |
24828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24829 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24830 | ||
24831 | wxPyEndAllowThreads(__tstate); | |
24832 | if (PyErr_Occurred()) SWIG_fail; | |
24833 | } | |
24834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
24835 | { | |
24836 | if (temp1) | |
24837 | delete arg1; | |
24838 | } | |
24839 | return resultobj; | |
24840 | fail: | |
24841 | { | |
24842 | if (temp1) | |
24843 | delete arg1; | |
24844 | } | |
24845 | return NULL; | |
24846 | } | |
24847 | ||
24848 | ||
24849 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24850 | PyObject *resultobj; | |
24851 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24852 | size_t result; | |
24853 | PyObject * obj0 = 0 ; | |
24854 | char *kwnames[] = { | |
24855 | (char *) "self", NULL | |
24856 | }; | |
24857 | ||
24858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
24859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24861 | { | |
24862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24863 | result = (size_t)(arg1)->GetTextLength(); | |
24864 | ||
24865 | wxPyEndAllowThreads(__tstate); | |
24866 | if (PyErr_Occurred()) SWIG_fail; | |
24867 | } | |
24868 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24869 | return resultobj; | |
24870 | fail: | |
24871 | return NULL; | |
24872 | } | |
24873 | ||
24874 | ||
24875 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24876 | PyObject *resultobj; | |
24877 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24878 | wxString result; | |
24879 | PyObject * obj0 = 0 ; | |
24880 | char *kwnames[] = { | |
24881 | (char *) "self", NULL | |
24882 | }; | |
24883 | ||
24884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
24885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24887 | { | |
24888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24889 | result = (arg1)->GetText(); | |
24890 | ||
24891 | wxPyEndAllowThreads(__tstate); | |
24892 | if (PyErr_Occurred()) SWIG_fail; | |
24893 | } | |
24894 | { | |
24895 | #if wxUSE_UNICODE | |
24896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24897 | #else | |
24898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24899 | #endif | |
24900 | } | |
24901 | return resultobj; | |
24902 | fail: | |
24903 | return NULL; | |
24904 | } | |
24905 | ||
24906 | ||
24907 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24908 | PyObject *resultobj; | |
24909 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24910 | wxString *arg2 = 0 ; | |
24911 | bool temp2 = False ; | |
24912 | PyObject * obj0 = 0 ; | |
24913 | PyObject * obj1 = 0 ; | |
24914 | char *kwnames[] = { | |
24915 | (char *) "self",(char *) "text", NULL | |
24916 | }; | |
24917 | ||
24918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
24919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24921 | { | |
24922 | arg2 = wxString_in_helper(obj1); | |
24923 | if (arg2 == NULL) SWIG_fail; | |
24924 | temp2 = True; | |
24925 | } | |
24926 | { | |
24927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24928 | (arg1)->SetText((wxString const &)*arg2); | |
24929 | ||
24930 | wxPyEndAllowThreads(__tstate); | |
24931 | if (PyErr_Occurred()) SWIG_fail; | |
24932 | } | |
24933 | Py_INCREF(Py_None); resultobj = Py_None; | |
24934 | { | |
24935 | if (temp2) | |
24936 | delete arg2; | |
24937 | } | |
24938 | return resultobj; | |
24939 | fail: | |
24940 | { | |
24941 | if (temp2) | |
24942 | delete arg2; | |
24943 | } | |
24944 | return NULL; | |
24945 | } | |
24946 | ||
24947 | ||
24948 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24949 | PyObject *obj; | |
24950 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24951 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24952 | Py_INCREF(obj); | |
24953 | return Py_BuildValue((char *)""); | |
24954 | } | |
24955 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24956 | PyObject *resultobj; | |
24957 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24958 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24959 | wxPyTextDataObject *result; | |
24960 | bool temp1 = False ; | |
24961 | PyObject * obj0 = 0 ; | |
24962 | char *kwnames[] = { | |
24963 | (char *) "text", NULL | |
24964 | }; | |
24965 | ||
24966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24967 | if (obj0) { | |
24968 | { | |
24969 | arg1 = wxString_in_helper(obj0); | |
24970 | if (arg1 == NULL) SWIG_fail; | |
24971 | temp1 = True; | |
24972 | } | |
24973 | } | |
24974 | { | |
24975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24976 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24977 | ||
24978 | wxPyEndAllowThreads(__tstate); | |
24979 | if (PyErr_Occurred()) SWIG_fail; | |
24980 | } | |
24981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
24982 | { | |
24983 | if (temp1) | |
24984 | delete arg1; | |
24985 | } | |
24986 | return resultobj; | |
24987 | fail: | |
24988 | { | |
24989 | if (temp1) | |
24990 | delete arg1; | |
24991 | } | |
24992 | return NULL; | |
24993 | } | |
24994 | ||
24995 | ||
24996 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24997 | PyObject *resultobj; | |
24998 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
24999 | PyObject *arg2 = (PyObject *) 0 ; | |
25000 | PyObject *arg3 = (PyObject *) 0 ; | |
25001 | PyObject * obj0 = 0 ; | |
25002 | PyObject * obj1 = 0 ; | |
25003 | PyObject * obj2 = 0 ; | |
25004 | char *kwnames[] = { | |
25005 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25006 | }; | |
25007 | ||
25008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
25010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25011 | arg2 = obj1; | |
25012 | arg3 = obj2; | |
25013 | { | |
25014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25015 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25016 | ||
25017 | wxPyEndAllowThreads(__tstate); | |
25018 | if (PyErr_Occurred()) SWIG_fail; | |
25019 | } | |
25020 | Py_INCREF(Py_None); resultobj = Py_None; | |
25021 | return resultobj; | |
25022 | fail: | |
25023 | return NULL; | |
25024 | } | |
25025 | ||
25026 | ||
25027 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25028 | PyObject *obj; | |
25029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25030 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25031 | Py_INCREF(obj); | |
25032 | return Py_BuildValue((char *)""); | |
25033 | } | |
25034 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25035 | PyObject *resultobj; | |
25036 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25037 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25038 | wxBitmapDataObject *result; | |
25039 | PyObject * obj0 = 0 ; | |
25040 | char *kwnames[] = { | |
25041 | (char *) "bitmap", NULL | |
25042 | }; | |
25043 | ||
25044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25045 | if (obj0) { | |
25046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25047 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25048 | SWIG_fail; | |
25049 | if (arg1 == NULL) { | |
25050 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25051 | SWIG_fail; | |
25052 | } | |
25053 | } | |
25054 | { | |
25055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25056 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25057 | ||
25058 | wxPyEndAllowThreads(__tstate); | |
25059 | if (PyErr_Occurred()) SWIG_fail; | |
25060 | } | |
25061 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
25062 | return resultobj; | |
25063 | fail: | |
25064 | return NULL; | |
25065 | } | |
25066 | ||
25067 | ||
25068 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25069 | PyObject *resultobj; | |
25070 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25071 | wxBitmap result; | |
25072 | PyObject * obj0 = 0 ; | |
25073 | char *kwnames[] = { | |
25074 | (char *) "self", NULL | |
25075 | }; | |
25076 | ||
25077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25080 | { | |
25081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25082 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25083 | ||
25084 | wxPyEndAllowThreads(__tstate); | |
25085 | if (PyErr_Occurred()) SWIG_fail; | |
25086 | } | |
25087 | { | |
25088 | wxBitmap * resultptr; | |
25089 | resultptr = new wxBitmap((wxBitmap &) result); | |
25090 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25091 | } | |
25092 | return resultobj; | |
25093 | fail: | |
25094 | return NULL; | |
25095 | } | |
25096 | ||
25097 | ||
25098 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25099 | PyObject *resultobj; | |
25100 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25101 | wxBitmap *arg2 = 0 ; | |
25102 | PyObject * obj0 = 0 ; | |
25103 | PyObject * obj1 = 0 ; | |
25104 | char *kwnames[] = { | |
25105 | (char *) "self",(char *) "bitmap", NULL | |
25106 | }; | |
25107 | ||
25108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25113 | SWIG_fail; | |
25114 | if (arg2 == NULL) { | |
25115 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25116 | SWIG_fail; | |
25117 | } | |
25118 | { | |
25119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25120 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25121 | ||
25122 | wxPyEndAllowThreads(__tstate); | |
25123 | if (PyErr_Occurred()) SWIG_fail; | |
25124 | } | |
25125 | Py_INCREF(Py_None); resultobj = Py_None; | |
25126 | return resultobj; | |
25127 | fail: | |
25128 | return NULL; | |
25129 | } | |
25130 | ||
25131 | ||
25132 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25133 | PyObject *obj; | |
25134 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25135 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25136 | Py_INCREF(obj); | |
25137 | return Py_BuildValue((char *)""); | |
25138 | } | |
25139 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25140 | PyObject *resultobj; | |
25141 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25142 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25143 | wxPyBitmapDataObject *result; | |
25144 | PyObject * obj0 = 0 ; | |
25145 | char *kwnames[] = { | |
25146 | (char *) "bitmap", NULL | |
25147 | }; | |
25148 | ||
25149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25150 | if (obj0) { | |
25151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25152 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25153 | SWIG_fail; | |
25154 | if (arg1 == NULL) { | |
25155 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25156 | SWIG_fail; | |
25157 | } | |
25158 | } | |
25159 | { | |
25160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25161 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25162 | ||
25163 | wxPyEndAllowThreads(__tstate); | |
25164 | if (PyErr_Occurred()) SWIG_fail; | |
25165 | } | |
25166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25167 | return resultobj; | |
25168 | fail: | |
25169 | return NULL; | |
25170 | } | |
25171 | ||
25172 | ||
25173 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25174 | PyObject *resultobj; | |
25175 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25176 | PyObject *arg2 = (PyObject *) 0 ; | |
25177 | PyObject *arg3 = (PyObject *) 0 ; | |
25178 | PyObject * obj0 = 0 ; | |
25179 | PyObject * obj1 = 0 ; | |
25180 | PyObject * obj2 = 0 ; | |
25181 | char *kwnames[] = { | |
25182 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25183 | }; | |
25184 | ||
25185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25188 | arg2 = obj1; | |
25189 | arg3 = obj2; | |
25190 | { | |
25191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25192 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25193 | ||
25194 | wxPyEndAllowThreads(__tstate); | |
25195 | if (PyErr_Occurred()) SWIG_fail; | |
25196 | } | |
25197 | Py_INCREF(Py_None); resultobj = Py_None; | |
25198 | return resultobj; | |
25199 | fail: | |
25200 | return NULL; | |
25201 | } | |
25202 | ||
25203 | ||
25204 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25205 | PyObject *obj; | |
25206 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25207 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25208 | Py_INCREF(obj); | |
25209 | return Py_BuildValue((char *)""); | |
25210 | } | |
25211 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25212 | PyObject *resultobj; | |
25213 | wxFileDataObject *result; | |
25214 | char *kwnames[] = { | |
25215 | NULL | |
25216 | }; | |
25217 | ||
25218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25219 | { | |
25220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25221 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25222 | ||
25223 | wxPyEndAllowThreads(__tstate); | |
25224 | if (PyErr_Occurred()) SWIG_fail; | |
25225 | } | |
25226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
25227 | return resultobj; | |
25228 | fail: | |
25229 | return NULL; | |
25230 | } | |
25231 | ||
25232 | ||
25233 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25234 | PyObject *resultobj; | |
25235 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25236 | wxArrayString *result; | |
25237 | PyObject * obj0 = 0 ; | |
25238 | char *kwnames[] = { | |
25239 | (char *) "self", NULL | |
25240 | }; | |
25241 | ||
25242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
25243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25245 | { | |
25246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25247 | { | |
25248 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25249 | result = (wxArrayString *) &_result_ref; | |
25250 | } | |
25251 | ||
25252 | wxPyEndAllowThreads(__tstate); | |
25253 | if (PyErr_Occurred()) SWIG_fail; | |
25254 | } | |
25255 | { | |
25256 | resultobj = wxArrayString2PyList_helper(*result); | |
25257 | } | |
25258 | return resultobj; | |
25259 | fail: | |
25260 | return NULL; | |
25261 | } | |
25262 | ||
25263 | ||
25264 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25265 | PyObject *resultobj; | |
25266 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25267 | wxString *arg2 = 0 ; | |
25268 | bool temp2 = False ; | |
25269 | PyObject * obj0 = 0 ; | |
25270 | PyObject * obj1 = 0 ; | |
25271 | char *kwnames[] = { | |
25272 | (char *) "self",(char *) "filename", NULL | |
25273 | }; | |
25274 | ||
25275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25278 | { | |
25279 | arg2 = wxString_in_helper(obj1); | |
25280 | if (arg2 == NULL) SWIG_fail; | |
25281 | temp2 = True; | |
25282 | } | |
25283 | { | |
25284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25285 | (arg1)->AddFile((wxString const &)*arg2); | |
25286 | ||
25287 | wxPyEndAllowThreads(__tstate); | |
25288 | if (PyErr_Occurred()) SWIG_fail; | |
25289 | } | |
25290 | Py_INCREF(Py_None); resultobj = Py_None; | |
25291 | { | |
25292 | if (temp2) | |
25293 | delete arg2; | |
25294 | } | |
25295 | return resultobj; | |
25296 | fail: | |
25297 | { | |
25298 | if (temp2) | |
25299 | delete arg2; | |
25300 | } | |
25301 | return NULL; | |
25302 | } | |
25303 | ||
25304 | ||
25305 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25306 | PyObject *obj; | |
25307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25308 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25309 | Py_INCREF(obj); | |
25310 | return Py_BuildValue((char *)""); | |
25311 | } | |
25312 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25313 | PyObject *resultobj; | |
25314 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25315 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25316 | wxCustomDataObject *result; | |
25317 | PyObject * obj0 = 0 ; | |
25318 | char *kwnames[] = { | |
25319 | (char *) "format", NULL | |
25320 | }; | |
25321 | ||
25322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25323 | if (obj0) { | |
25324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25325 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25326 | SWIG_fail; | |
25327 | if (arg1 == NULL) { | |
25328 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25329 | SWIG_fail; | |
25330 | } | |
25331 | } | |
25332 | { | |
25333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25334 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25335 | ||
25336 | wxPyEndAllowThreads(__tstate); | |
25337 | if (PyErr_Occurred()) SWIG_fail; | |
25338 | } | |
25339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
25340 | return resultobj; | |
25341 | fail: | |
25342 | return NULL; | |
25343 | } | |
25344 | ||
25345 | ||
25346 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25347 | PyObject *resultobj; | |
25348 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25349 | PyObject *arg2 = (PyObject *) 0 ; | |
25350 | PyObject * obj0 = 0 ; | |
25351 | PyObject * obj1 = 0 ; | |
25352 | char *kwnames[] = { | |
25353 | (char *) "self",(char *) "data", NULL | |
25354 | }; | |
25355 | ||
25356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
25357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25359 | arg2 = obj1; | |
25360 | { | |
25361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25362 | wxCustomDataObject_TakeData(arg1,arg2); | |
25363 | ||
25364 | wxPyEndAllowThreads(__tstate); | |
25365 | if (PyErr_Occurred()) SWIG_fail; | |
25366 | } | |
25367 | Py_INCREF(Py_None); resultobj = Py_None; | |
25368 | return resultobj; | |
25369 | fail: | |
25370 | return NULL; | |
25371 | } | |
25372 | ||
25373 | ||
25374 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25375 | PyObject *resultobj; | |
25376 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25377 | PyObject *arg2 = (PyObject *) 0 ; | |
25378 | bool result; | |
25379 | PyObject * obj0 = 0 ; | |
25380 | PyObject * obj1 = 0 ; | |
25381 | char *kwnames[] = { | |
25382 | (char *) "self",(char *) "data", NULL | |
25383 | }; | |
25384 | ||
25385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25388 | arg2 = obj1; | |
25389 | { | |
25390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25391 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25392 | ||
25393 | wxPyEndAllowThreads(__tstate); | |
25394 | if (PyErr_Occurred()) SWIG_fail; | |
25395 | } | |
25396 | { | |
25397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25398 | } | |
25399 | return resultobj; | |
25400 | fail: | |
25401 | return NULL; | |
25402 | } | |
25403 | ||
25404 | ||
25405 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25406 | PyObject *resultobj; | |
25407 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25408 | size_t result; | |
25409 | PyObject * obj0 = 0 ; | |
25410 | char *kwnames[] = { | |
25411 | (char *) "self", NULL | |
25412 | }; | |
25413 | ||
25414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
25415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25417 | { | |
25418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25419 | result = (size_t)(arg1)->GetSize(); | |
25420 | ||
25421 | wxPyEndAllowThreads(__tstate); | |
25422 | if (PyErr_Occurred()) SWIG_fail; | |
25423 | } | |
25424 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25425 | return resultobj; | |
25426 | fail: | |
25427 | return NULL; | |
25428 | } | |
25429 | ||
25430 | ||
25431 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25432 | PyObject *resultobj; | |
25433 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25434 | PyObject *result; | |
25435 | PyObject * obj0 = 0 ; | |
25436 | char *kwnames[] = { | |
25437 | (char *) "self", NULL | |
25438 | }; | |
25439 | ||
25440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
25441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25443 | { | |
25444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25445 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25446 | ||
25447 | wxPyEndAllowThreads(__tstate); | |
25448 | if (PyErr_Occurred()) SWIG_fail; | |
25449 | } | |
25450 | resultobj = result; | |
25451 | return resultobj; | |
25452 | fail: | |
25453 | return NULL; | |
25454 | } | |
25455 | ||
25456 | ||
25457 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25458 | PyObject *obj; | |
25459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25460 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25461 | Py_INCREF(obj); | |
25462 | return Py_BuildValue((char *)""); | |
25463 | } | |
25464 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25465 | PyObject *resultobj; | |
25466 | wxURLDataObject *result; | |
25467 | char *kwnames[] = { | |
25468 | NULL | |
25469 | }; | |
25470 | ||
25471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25472 | { | |
25473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25474 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25475 | ||
25476 | wxPyEndAllowThreads(__tstate); | |
25477 | if (PyErr_Occurred()) SWIG_fail; | |
25478 | } | |
25479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
25480 | return resultobj; | |
25481 | fail: | |
25482 | return NULL; | |
25483 | } | |
25484 | ||
25485 | ||
25486 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25487 | PyObject *resultobj; | |
25488 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25489 | wxString result; | |
25490 | PyObject * obj0 = 0 ; | |
25491 | char *kwnames[] = { | |
25492 | (char *) "self", NULL | |
25493 | }; | |
25494 | ||
25495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
25496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25498 | { | |
25499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25500 | result = (arg1)->GetURL(); | |
25501 | ||
25502 | wxPyEndAllowThreads(__tstate); | |
25503 | if (PyErr_Occurred()) SWIG_fail; | |
25504 | } | |
25505 | { | |
25506 | #if wxUSE_UNICODE | |
25507 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25508 | #else | |
25509 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25510 | #endif | |
25511 | } | |
25512 | return resultobj; | |
25513 | fail: | |
25514 | return NULL; | |
25515 | } | |
25516 | ||
25517 | ||
25518 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25519 | PyObject *resultobj; | |
25520 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25521 | wxString *arg2 = 0 ; | |
25522 | bool temp2 = False ; | |
25523 | PyObject * obj0 = 0 ; | |
25524 | PyObject * obj1 = 0 ; | |
25525 | char *kwnames[] = { | |
25526 | (char *) "self",(char *) "url", NULL | |
25527 | }; | |
25528 | ||
25529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
25530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25532 | { | |
25533 | arg2 = wxString_in_helper(obj1); | |
25534 | if (arg2 == NULL) SWIG_fail; | |
25535 | temp2 = True; | |
25536 | } | |
25537 | { | |
25538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25539 | (arg1)->SetURL((wxString const &)*arg2); | |
25540 | ||
25541 | wxPyEndAllowThreads(__tstate); | |
25542 | if (PyErr_Occurred()) SWIG_fail; | |
25543 | } | |
25544 | Py_INCREF(Py_None); resultobj = Py_None; | |
25545 | { | |
25546 | if (temp2) | |
25547 | delete arg2; | |
25548 | } | |
25549 | return resultobj; | |
25550 | fail: | |
25551 | { | |
25552 | if (temp2) | |
25553 | delete arg2; | |
25554 | } | |
25555 | return NULL; | |
25556 | } | |
25557 | ||
25558 | ||
25559 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25560 | PyObject *obj; | |
25561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25562 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25563 | Py_INCREF(obj); | |
25564 | return Py_BuildValue((char *)""); | |
25565 | } | |
25566 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25567 | PyObject *resultobj; | |
25568 | wxMetafileDataObject *result; | |
25569 | char *kwnames[] = { | |
25570 | NULL | |
25571 | }; | |
25572 | ||
25573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25574 | { | |
25575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25576 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25577 | ||
25578 | wxPyEndAllowThreads(__tstate); | |
25579 | if (PyErr_Occurred()) SWIG_fail; | |
25580 | } | |
25581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
25582 | return resultobj; | |
25583 | fail: | |
25584 | return NULL; | |
25585 | } | |
25586 | ||
25587 | ||
25588 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25589 | PyObject *resultobj; | |
25590 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25591 | wxMetafile *arg2 = 0 ; | |
25592 | PyObject * obj0 = 0 ; | |
25593 | PyObject * obj1 = 0 ; | |
25594 | char *kwnames[] = { | |
25595 | (char *) "self",(char *) "metafile", NULL | |
25596 | }; | |
25597 | ||
25598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
25599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
25600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25601 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
25602 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25603 | SWIG_fail; | |
25604 | if (arg2 == NULL) { | |
25605 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25606 | SWIG_fail; | |
25607 | } | |
25608 | { | |
25609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25610 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
25611 | ||
25612 | wxPyEndAllowThreads(__tstate); | |
25613 | if (PyErr_Occurred()) SWIG_fail; | |
25614 | } | |
25615 | Py_INCREF(Py_None); resultobj = Py_None; | |
25616 | return resultobj; | |
25617 | fail: | |
25618 | return NULL; | |
25619 | } | |
25620 | ||
25621 | ||
25622 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25623 | PyObject *resultobj; | |
25624 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25625 | wxMetafile result; | |
25626 | PyObject * obj0 = 0 ; | |
25627 | char *kwnames[] = { | |
25628 | (char *) "self", NULL | |
25629 | }; | |
25630 | ||
25631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
25632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
25633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25634 | { | |
25635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25636 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
25637 | ||
25638 | wxPyEndAllowThreads(__tstate); | |
25639 | if (PyErr_Occurred()) SWIG_fail; | |
25640 | } | |
25641 | { | |
25642 | wxMetafile * resultptr; | |
25643 | resultptr = new wxMetafile((wxMetafile &) result); | |
25644 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); | |
25645 | } | |
25646 | return resultobj; | |
25647 | fail: | |
25648 | return NULL; | |
25649 | } | |
25650 | ||
25651 | ||
25652 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25653 | PyObject *obj; | |
25654 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25655 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25656 | Py_INCREF(obj); | |
25657 | return Py_BuildValue((char *)""); | |
25658 | } | |
25659 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25660 | PyObject *resultobj; | |
25661 | int arg1 ; | |
25662 | bool result; | |
25663 | PyObject * obj0 = 0 ; | |
25664 | char *kwnames[] = { | |
25665 | (char *) "res", NULL | |
25666 | }; | |
25667 | ||
25668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
25669 | arg1 = (wxDragResult) SWIG_AsInt(obj0); | |
25670 | if (PyErr_Occurred()) SWIG_fail; | |
25671 | { | |
25672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25673 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25674 | ||
25675 | wxPyEndAllowThreads(__tstate); | |
25676 | if (PyErr_Occurred()) SWIG_fail; | |
25677 | } | |
25678 | { | |
25679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25680 | } | |
25681 | return resultobj; | |
25682 | fail: | |
25683 | return NULL; | |
25684 | } | |
25685 | ||
25686 | ||
25687 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25688 | PyObject *resultobj; | |
25689 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25690 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25691 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25692 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
25693 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
25694 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
25695 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
25696 | wxPyDropSource *result; | |
25697 | PyObject * obj0 = 0 ; | |
25698 | PyObject * obj1 = 0 ; | |
25699 | PyObject * obj2 = 0 ; | |
25700 | PyObject * obj3 = 0 ; | |
25701 | char *kwnames[] = { | |
25702 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25703 | }; | |
25704 | ||
25705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25708 | if (obj1) { | |
25709 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
25710 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25711 | SWIG_fail; | |
25712 | if (arg2 == NULL) { | |
25713 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25714 | SWIG_fail; | |
25715 | } | |
25716 | } | |
25717 | if (obj2) { | |
25718 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25719 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25720 | SWIG_fail; | |
25721 | if (arg3 == NULL) { | |
25722 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25723 | SWIG_fail; | |
25724 | } | |
25725 | } | |
25726 | if (obj3) { | |
25727 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, | |
25728 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25729 | SWIG_fail; | |
25730 | if (arg4 == NULL) { | |
25731 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25732 | SWIG_fail; | |
25733 | } | |
25734 | } | |
25735 | { | |
25736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25737 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
25738 | ||
25739 | wxPyEndAllowThreads(__tstate); | |
25740 | if (PyErr_Occurred()) SWIG_fail; | |
25741 | } | |
25742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
25743 | return resultobj; | |
25744 | fail: | |
25745 | return NULL; | |
25746 | } | |
25747 | ||
25748 | ||
25749 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25750 | PyObject *resultobj; | |
25751 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25752 | PyObject *arg2 = (PyObject *) 0 ; | |
25753 | PyObject *arg3 = (PyObject *) 0 ; | |
25754 | int arg4 ; | |
25755 | PyObject * obj0 = 0 ; | |
25756 | PyObject * obj1 = 0 ; | |
25757 | PyObject * obj2 = 0 ; | |
25758 | PyObject * obj3 = 0 ; | |
25759 | char *kwnames[] = { | |
25760 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25761 | }; | |
25762 | ||
25763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25766 | arg2 = obj1; | |
25767 | arg3 = obj2; | |
25768 | arg4 = (int) SWIG_AsInt(obj3); | |
25769 | if (PyErr_Occurred()) SWIG_fail; | |
25770 | { | |
25771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25772 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25773 | ||
25774 | wxPyEndAllowThreads(__tstate); | |
25775 | if (PyErr_Occurred()) SWIG_fail; | |
25776 | } | |
25777 | Py_INCREF(Py_None); resultobj = Py_None; | |
25778 | return resultobj; | |
25779 | fail: | |
25780 | return NULL; | |
25781 | } | |
25782 | ||
25783 | ||
25784 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25785 | PyObject *resultobj; | |
25786 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25787 | PyObject * obj0 = 0 ; | |
25788 | char *kwnames[] = { | |
25789 | (char *) "self", NULL | |
25790 | }; | |
25791 | ||
25792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
25793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25795 | { | |
25796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25797 | delete arg1; | |
25798 | ||
25799 | wxPyEndAllowThreads(__tstate); | |
25800 | if (PyErr_Occurred()) SWIG_fail; | |
25801 | } | |
25802 | Py_INCREF(Py_None); resultobj = Py_None; | |
25803 | return resultobj; | |
25804 | fail: | |
25805 | return NULL; | |
25806 | } | |
25807 | ||
25808 | ||
25809 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25810 | PyObject *resultobj; | |
25811 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25812 | wxDataObject *arg2 = 0 ; | |
25813 | PyObject * obj0 = 0 ; | |
25814 | PyObject * obj1 = 0 ; | |
25815 | char *kwnames[] = { | |
25816 | (char *) "self",(char *) "data", NULL | |
25817 | }; | |
25818 | ||
25819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25822 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25823 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25824 | SWIG_fail; | |
25825 | if (arg2 == NULL) { | |
25826 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25827 | SWIG_fail; | |
25828 | } | |
25829 | { | |
25830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25831 | (arg1)->SetData(*arg2); | |
25832 | ||
25833 | wxPyEndAllowThreads(__tstate); | |
25834 | if (PyErr_Occurred()) SWIG_fail; | |
25835 | } | |
25836 | Py_INCREF(Py_None); resultobj = Py_None; | |
25837 | return resultobj; | |
25838 | fail: | |
25839 | return NULL; | |
25840 | } | |
25841 | ||
25842 | ||
25843 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25844 | PyObject *resultobj; | |
25845 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25846 | wxDataObject *result; | |
25847 | PyObject * obj0 = 0 ; | |
25848 | char *kwnames[] = { | |
25849 | (char *) "self", NULL | |
25850 | }; | |
25851 | ||
25852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
25853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25855 | { | |
25856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25857 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25858 | ||
25859 | wxPyEndAllowThreads(__tstate); | |
25860 | if (PyErr_Occurred()) SWIG_fail; | |
25861 | } | |
25862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
25863 | return resultobj; | |
25864 | fail: | |
25865 | return NULL; | |
25866 | } | |
25867 | ||
25868 | ||
25869 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25870 | PyObject *resultobj; | |
25871 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25872 | int arg2 ; | |
25873 | wxCursor *arg3 = 0 ; | |
25874 | PyObject * obj0 = 0 ; | |
25875 | PyObject * obj1 = 0 ; | |
25876 | PyObject * obj2 = 0 ; | |
25877 | char *kwnames[] = { | |
25878 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25879 | }; | |
25880 | ||
25881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25884 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25885 | if (PyErr_Occurred()) SWIG_fail; | |
25886 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25887 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25888 | SWIG_fail; | |
25889 | if (arg3 == NULL) { | |
25890 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25891 | SWIG_fail; | |
25892 | } | |
25893 | { | |
25894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25895 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25896 | ||
25897 | wxPyEndAllowThreads(__tstate); | |
25898 | if (PyErr_Occurred()) SWIG_fail; | |
25899 | } | |
25900 | Py_INCREF(Py_None); resultobj = Py_None; | |
25901 | return resultobj; | |
25902 | fail: | |
25903 | return NULL; | |
25904 | } | |
25905 | ||
25906 | ||
25907 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25908 | PyObject *resultobj; | |
25909 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25910 | int arg2 = (int) wxDrag_CopyOnly ; | |
25911 | int result; | |
25912 | PyObject * obj0 = 0 ; | |
25913 | PyObject * obj1 = 0 ; | |
25914 | char *kwnames[] = { | |
25915 | (char *) "self",(char *) "flags", NULL | |
25916 | }; | |
25917 | ||
25918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
25919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25921 | if (obj1) { | |
25922 | arg2 = (int) SWIG_AsInt(obj1); | |
25923 | if (PyErr_Occurred()) SWIG_fail; | |
25924 | } | |
25925 | { | |
25926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25927 | result = (int)(arg1)->DoDragDrop(arg2); | |
25928 | ||
25929 | wxPyEndAllowThreads(__tstate); | |
25930 | if (PyErr_Occurred()) SWIG_fail; | |
25931 | } | |
25932 | resultobj = SWIG_FromInt((int)result); | |
25933 | return resultobj; | |
25934 | fail: | |
25935 | return NULL; | |
25936 | } | |
25937 | ||
25938 | ||
25939 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25940 | PyObject *resultobj; | |
25941 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25942 | int arg2 ; | |
25943 | bool result; | |
25944 | PyObject * obj0 = 0 ; | |
25945 | PyObject * obj1 = 0 ; | |
25946 | char *kwnames[] = { | |
25947 | (char *) "self",(char *) "effect", NULL | |
25948 | }; | |
25949 | ||
25950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
25951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25953 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25954 | if (PyErr_Occurred()) SWIG_fail; | |
25955 | { | |
25956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25957 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25958 | ||
25959 | wxPyEndAllowThreads(__tstate); | |
25960 | if (PyErr_Occurred()) SWIG_fail; | |
25961 | } | |
25962 | { | |
25963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25964 | } | |
25965 | return resultobj; | |
25966 | fail: | |
25967 | return NULL; | |
25968 | } | |
25969 | ||
25970 | ||
25971 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25972 | PyObject *obj; | |
25973 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25974 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25975 | Py_INCREF(obj); | |
25976 | return Py_BuildValue((char *)""); | |
25977 | } | |
25978 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25979 | PyObject *resultobj; | |
25980 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25981 | wxPyDropTarget *result; | |
25982 | PyObject * obj0 = 0 ; | |
25983 | char *kwnames[] = { | |
25984 | (char *) "dataObject", NULL | |
25985 | }; | |
25986 | ||
25987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
25988 | if (obj0) { | |
25989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25990 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25991 | } | |
25992 | { | |
25993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25994 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25995 | ||
25996 | wxPyEndAllowThreads(__tstate); | |
25997 | if (PyErr_Occurred()) SWIG_fail; | |
25998 | } | |
25999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
26000 | return resultobj; | |
26001 | fail: | |
26002 | return NULL; | |
26003 | } | |
26004 | ||
26005 | ||
26006 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26007 | PyObject *resultobj; | |
26008 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26009 | PyObject *arg2 = (PyObject *) 0 ; | |
26010 | PyObject *arg3 = (PyObject *) 0 ; | |
26011 | PyObject * obj0 = 0 ; | |
26012 | PyObject * obj1 = 0 ; | |
26013 | PyObject * obj2 = 0 ; | |
26014 | char *kwnames[] = { | |
26015 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26016 | }; | |
26017 | ||
26018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26021 | arg2 = obj1; | |
26022 | arg3 = obj2; | |
26023 | { | |
26024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26025 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26026 | ||
26027 | wxPyEndAllowThreads(__tstate); | |
26028 | if (PyErr_Occurred()) SWIG_fail; | |
26029 | } | |
26030 | Py_INCREF(Py_None); resultobj = Py_None; | |
26031 | return resultobj; | |
26032 | fail: | |
26033 | return NULL; | |
26034 | } | |
26035 | ||
26036 | ||
26037 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26038 | PyObject *resultobj; | |
26039 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26040 | PyObject * obj0 = 0 ; | |
26041 | char *kwnames[] = { | |
26042 | (char *) "self", NULL | |
26043 | }; | |
26044 | ||
26045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
26046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26048 | { | |
26049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26050 | delete arg1; | |
26051 | ||
26052 | wxPyEndAllowThreads(__tstate); | |
26053 | if (PyErr_Occurred()) SWIG_fail; | |
26054 | } | |
26055 | Py_INCREF(Py_None); resultobj = Py_None; | |
26056 | return resultobj; | |
26057 | fail: | |
26058 | return NULL; | |
26059 | } | |
26060 | ||
26061 | ||
26062 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26063 | PyObject *resultobj; | |
26064 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26065 | wxDataObject *result; | |
26066 | PyObject * obj0 = 0 ; | |
26067 | char *kwnames[] = { | |
26068 | (char *) "self", NULL | |
26069 | }; | |
26070 | ||
26071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
26072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26074 | { | |
26075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26076 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26077 | ||
26078 | wxPyEndAllowThreads(__tstate); | |
26079 | if (PyErr_Occurred()) SWIG_fail; | |
26080 | } | |
26081 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26082 | return resultobj; | |
26083 | fail: | |
26084 | return NULL; | |
26085 | } | |
26086 | ||
26087 | ||
26088 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26089 | PyObject *resultobj; | |
26090 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26091 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26092 | PyObject * obj0 = 0 ; | |
26093 | PyObject * obj1 = 0 ; | |
26094 | char *kwnames[] = { | |
26095 | (char *) "self",(char *) "dataObject", NULL | |
26096 | }; | |
26097 | ||
26098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26101 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26102 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26103 | { | |
26104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26105 | (arg1)->SetDataObject(arg2); | |
26106 | ||
26107 | wxPyEndAllowThreads(__tstate); | |
26108 | if (PyErr_Occurred()) SWIG_fail; | |
26109 | } | |
26110 | Py_INCREF(Py_None); resultobj = Py_None; | |
26111 | return resultobj; | |
26112 | fail: | |
26113 | return NULL; | |
26114 | } | |
26115 | ||
26116 | ||
26117 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26118 | PyObject *resultobj; | |
26119 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26120 | int arg2 ; | |
26121 | int arg3 ; | |
26122 | int arg4 ; | |
26123 | int result; | |
26124 | PyObject * obj0 = 0 ; | |
26125 | PyObject * obj1 = 0 ; | |
26126 | PyObject * obj2 = 0 ; | |
26127 | PyObject * obj3 = 0 ; | |
26128 | char *kwnames[] = { | |
26129 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26130 | }; | |
26131 | ||
26132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26135 | arg2 = (int) SWIG_AsInt(obj1); | |
26136 | if (PyErr_Occurred()) SWIG_fail; | |
26137 | arg3 = (int) SWIG_AsInt(obj2); | |
26138 | if (PyErr_Occurred()) SWIG_fail; | |
26139 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26140 | if (PyErr_Occurred()) SWIG_fail; | |
26141 | { | |
26142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26143 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26144 | ||
26145 | wxPyEndAllowThreads(__tstate); | |
26146 | if (PyErr_Occurred()) SWIG_fail; | |
26147 | } | |
26148 | resultobj = SWIG_FromInt((int)result); | |
26149 | return resultobj; | |
26150 | fail: | |
26151 | return NULL; | |
26152 | } | |
26153 | ||
26154 | ||
26155 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26156 | PyObject *resultobj; | |
26157 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26158 | int arg2 ; | |
26159 | int arg3 ; | |
26160 | int arg4 ; | |
26161 | int result; | |
26162 | PyObject * obj0 = 0 ; | |
26163 | PyObject * obj1 = 0 ; | |
26164 | PyObject * obj2 = 0 ; | |
26165 | PyObject * obj3 = 0 ; | |
26166 | char *kwnames[] = { | |
26167 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26168 | }; | |
26169 | ||
26170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26173 | arg2 = (int) SWIG_AsInt(obj1); | |
26174 | if (PyErr_Occurred()) SWIG_fail; | |
26175 | arg3 = (int) SWIG_AsInt(obj2); | |
26176 | if (PyErr_Occurred()) SWIG_fail; | |
26177 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26178 | if (PyErr_Occurred()) SWIG_fail; | |
26179 | { | |
26180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26181 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26182 | ||
26183 | wxPyEndAllowThreads(__tstate); | |
26184 | if (PyErr_Occurred()) SWIG_fail; | |
26185 | } | |
26186 | resultobj = SWIG_FromInt((int)result); | |
26187 | return resultobj; | |
26188 | fail: | |
26189 | return NULL; | |
26190 | } | |
26191 | ||
26192 | ||
26193 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26194 | PyObject *resultobj; | |
26195 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26196 | PyObject * obj0 = 0 ; | |
26197 | char *kwnames[] = { | |
26198 | (char *) "self", NULL | |
26199 | }; | |
26200 | ||
26201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26204 | { | |
26205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26206 | (arg1)->base_OnLeave(); | |
26207 | ||
26208 | wxPyEndAllowThreads(__tstate); | |
26209 | if (PyErr_Occurred()) SWIG_fail; | |
26210 | } | |
26211 | Py_INCREF(Py_None); resultobj = Py_None; | |
26212 | return resultobj; | |
26213 | fail: | |
26214 | return NULL; | |
26215 | } | |
26216 | ||
26217 | ||
26218 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26219 | PyObject *resultobj; | |
26220 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26221 | int arg2 ; | |
26222 | int arg3 ; | |
26223 | bool result; | |
26224 | PyObject * obj0 = 0 ; | |
26225 | PyObject * obj1 = 0 ; | |
26226 | PyObject * obj2 = 0 ; | |
26227 | char *kwnames[] = { | |
26228 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26229 | }; | |
26230 | ||
26231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26234 | arg2 = (int) SWIG_AsInt(obj1); | |
26235 | if (PyErr_Occurred()) SWIG_fail; | |
26236 | arg3 = (int) SWIG_AsInt(obj2); | |
26237 | if (PyErr_Occurred()) SWIG_fail; | |
26238 | { | |
26239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26240 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26241 | ||
26242 | wxPyEndAllowThreads(__tstate); | |
26243 | if (PyErr_Occurred()) SWIG_fail; | |
26244 | } | |
26245 | { | |
26246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26247 | } | |
26248 | return resultobj; | |
26249 | fail: | |
26250 | return NULL; | |
26251 | } | |
26252 | ||
26253 | ||
26254 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26255 | PyObject *resultobj; | |
26256 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26257 | bool result; | |
26258 | PyObject * obj0 = 0 ; | |
26259 | char *kwnames[] = { | |
26260 | (char *) "self", NULL | |
26261 | }; | |
26262 | ||
26263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
26264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26266 | { | |
26267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26268 | result = (bool)(arg1)->GetData(); | |
26269 | ||
26270 | wxPyEndAllowThreads(__tstate); | |
26271 | if (PyErr_Occurred()) SWIG_fail; | |
26272 | } | |
26273 | { | |
26274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26275 | } | |
26276 | return resultobj; | |
26277 | fail: | |
26278 | return NULL; | |
26279 | } | |
26280 | ||
26281 | ||
26282 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26283 | PyObject *obj; | |
26284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26285 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26286 | Py_INCREF(obj); | |
26287 | return Py_BuildValue((char *)""); | |
26288 | } | |
26289 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26290 | PyObject *resultobj; | |
26291 | wxPyTextDropTarget *result; | |
26292 | char *kwnames[] = { | |
26293 | NULL | |
26294 | }; | |
26295 | ||
26296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26297 | { | |
26298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26299 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26300 | ||
26301 | wxPyEndAllowThreads(__tstate); | |
26302 | if (PyErr_Occurred()) SWIG_fail; | |
26303 | } | |
26304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
26305 | return resultobj; | |
26306 | fail: | |
26307 | return NULL; | |
26308 | } | |
26309 | ||
26310 | ||
26311 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26312 | PyObject *resultobj; | |
26313 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26314 | PyObject *arg2 = (PyObject *) 0 ; | |
26315 | PyObject *arg3 = (PyObject *) 0 ; | |
26316 | PyObject * obj0 = 0 ; | |
26317 | PyObject * obj1 = 0 ; | |
26318 | PyObject * obj2 = 0 ; | |
26319 | char *kwnames[] = { | |
26320 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26321 | }; | |
26322 | ||
26323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26326 | arg2 = obj1; | |
26327 | arg3 = obj2; | |
26328 | { | |
26329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26330 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26331 | ||
26332 | wxPyEndAllowThreads(__tstate); | |
26333 | if (PyErr_Occurred()) SWIG_fail; | |
26334 | } | |
26335 | Py_INCREF(Py_None); resultobj = Py_None; | |
26336 | return resultobj; | |
26337 | fail: | |
26338 | return NULL; | |
26339 | } | |
26340 | ||
26341 | ||
26342 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26343 | PyObject *resultobj; | |
26344 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26345 | int arg2 ; | |
26346 | int arg3 ; | |
26347 | int arg4 ; | |
26348 | int result; | |
26349 | PyObject * obj0 = 0 ; | |
26350 | PyObject * obj1 = 0 ; | |
26351 | PyObject * obj2 = 0 ; | |
26352 | PyObject * obj3 = 0 ; | |
26353 | char *kwnames[] = { | |
26354 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26355 | }; | |
26356 | ||
26357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26360 | arg2 = (int) SWIG_AsInt(obj1); | |
26361 | if (PyErr_Occurred()) SWIG_fail; | |
26362 | arg3 = (int) SWIG_AsInt(obj2); | |
26363 | if (PyErr_Occurred()) SWIG_fail; | |
26364 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26365 | if (PyErr_Occurred()) SWIG_fail; | |
26366 | { | |
26367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26368 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26369 | ||
26370 | wxPyEndAllowThreads(__tstate); | |
26371 | if (PyErr_Occurred()) SWIG_fail; | |
26372 | } | |
26373 | resultobj = SWIG_FromInt((int)result); | |
26374 | return resultobj; | |
26375 | fail: | |
26376 | return NULL; | |
26377 | } | |
26378 | ||
26379 | ||
26380 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26381 | PyObject *resultobj; | |
26382 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26383 | int arg2 ; | |
26384 | int arg3 ; | |
26385 | int arg4 ; | |
26386 | int result; | |
26387 | PyObject * obj0 = 0 ; | |
26388 | PyObject * obj1 = 0 ; | |
26389 | PyObject * obj2 = 0 ; | |
26390 | PyObject * obj3 = 0 ; | |
26391 | char *kwnames[] = { | |
26392 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26393 | }; | |
26394 | ||
26395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26398 | arg2 = (int) SWIG_AsInt(obj1); | |
26399 | if (PyErr_Occurred()) SWIG_fail; | |
26400 | arg3 = (int) SWIG_AsInt(obj2); | |
26401 | if (PyErr_Occurred()) SWIG_fail; | |
26402 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26403 | if (PyErr_Occurred()) SWIG_fail; | |
26404 | { | |
26405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26406 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26407 | ||
26408 | wxPyEndAllowThreads(__tstate); | |
26409 | if (PyErr_Occurred()) SWIG_fail; | |
26410 | } | |
26411 | resultobj = SWIG_FromInt((int)result); | |
26412 | return resultobj; | |
26413 | fail: | |
26414 | return NULL; | |
26415 | } | |
26416 | ||
26417 | ||
26418 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26419 | PyObject *resultobj; | |
26420 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26421 | PyObject * obj0 = 0 ; | |
26422 | char *kwnames[] = { | |
26423 | (char *) "self", NULL | |
26424 | }; | |
26425 | ||
26426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26429 | { | |
26430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26431 | (arg1)->base_OnLeave(); | |
26432 | ||
26433 | wxPyEndAllowThreads(__tstate); | |
26434 | if (PyErr_Occurred()) SWIG_fail; | |
26435 | } | |
26436 | Py_INCREF(Py_None); resultobj = Py_None; | |
26437 | return resultobj; | |
26438 | fail: | |
26439 | return NULL; | |
26440 | } | |
26441 | ||
26442 | ||
26443 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26444 | PyObject *resultobj; | |
26445 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26446 | int arg2 ; | |
26447 | int arg3 ; | |
26448 | bool result; | |
26449 | PyObject * obj0 = 0 ; | |
26450 | PyObject * obj1 = 0 ; | |
26451 | PyObject * obj2 = 0 ; | |
26452 | char *kwnames[] = { | |
26453 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26454 | }; | |
26455 | ||
26456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26459 | arg2 = (int) SWIG_AsInt(obj1); | |
26460 | if (PyErr_Occurred()) SWIG_fail; | |
26461 | arg3 = (int) SWIG_AsInt(obj2); | |
26462 | if (PyErr_Occurred()) SWIG_fail; | |
26463 | { | |
26464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26465 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26466 | ||
26467 | wxPyEndAllowThreads(__tstate); | |
26468 | if (PyErr_Occurred()) SWIG_fail; | |
26469 | } | |
26470 | { | |
26471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26472 | } | |
26473 | return resultobj; | |
26474 | fail: | |
26475 | return NULL; | |
26476 | } | |
26477 | ||
26478 | ||
26479 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26480 | PyObject *resultobj; | |
26481 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26482 | int arg2 ; | |
26483 | int arg3 ; | |
26484 | int arg4 ; | |
26485 | int result; | |
26486 | PyObject * obj0 = 0 ; | |
26487 | PyObject * obj1 = 0 ; | |
26488 | PyObject * obj2 = 0 ; | |
26489 | PyObject * obj3 = 0 ; | |
26490 | char *kwnames[] = { | |
26491 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26492 | }; | |
26493 | ||
26494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26497 | arg2 = (int) SWIG_AsInt(obj1); | |
26498 | if (PyErr_Occurred()) SWIG_fail; | |
26499 | arg3 = (int) SWIG_AsInt(obj2); | |
26500 | if (PyErr_Occurred()) SWIG_fail; | |
26501 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26502 | if (PyErr_Occurred()) SWIG_fail; | |
26503 | { | |
26504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26505 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26506 | ||
26507 | wxPyEndAllowThreads(__tstate); | |
26508 | if (PyErr_Occurred()) SWIG_fail; | |
26509 | } | |
26510 | resultobj = SWIG_FromInt((int)result); | |
26511 | return resultobj; | |
26512 | fail: | |
26513 | return NULL; | |
26514 | } | |
26515 | ||
26516 | ||
26517 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26518 | PyObject *obj; | |
26519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26520 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26521 | Py_INCREF(obj); | |
26522 | return Py_BuildValue((char *)""); | |
26523 | } | |
26524 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26525 | PyObject *resultobj; | |
26526 | wxPyFileDropTarget *result; | |
26527 | char *kwnames[] = { | |
26528 | NULL | |
26529 | }; | |
26530 | ||
26531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26532 | { | |
26533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26534 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26535 | ||
26536 | wxPyEndAllowThreads(__tstate); | |
26537 | if (PyErr_Occurred()) SWIG_fail; | |
26538 | } | |
26539 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
26540 | return resultobj; | |
26541 | fail: | |
26542 | return NULL; | |
26543 | } | |
26544 | ||
26545 | ||
26546 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26547 | PyObject *resultobj; | |
26548 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26549 | PyObject *arg2 = (PyObject *) 0 ; | |
26550 | PyObject *arg3 = (PyObject *) 0 ; | |
26551 | PyObject * obj0 = 0 ; | |
26552 | PyObject * obj1 = 0 ; | |
26553 | PyObject * obj2 = 0 ; | |
26554 | char *kwnames[] = { | |
26555 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26556 | }; | |
26557 | ||
26558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26561 | arg2 = obj1; | |
26562 | arg3 = obj2; | |
26563 | { | |
26564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26565 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26566 | ||
26567 | wxPyEndAllowThreads(__tstate); | |
26568 | if (PyErr_Occurred()) SWIG_fail; | |
26569 | } | |
26570 | Py_INCREF(Py_None); resultobj = Py_None; | |
26571 | return resultobj; | |
26572 | fail: | |
26573 | return NULL; | |
26574 | } | |
26575 | ||
26576 | ||
26577 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26578 | PyObject *resultobj; | |
26579 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26580 | int arg2 ; | |
26581 | int arg3 ; | |
26582 | int arg4 ; | |
26583 | int result; | |
26584 | PyObject * obj0 = 0 ; | |
26585 | PyObject * obj1 = 0 ; | |
26586 | PyObject * obj2 = 0 ; | |
26587 | PyObject * obj3 = 0 ; | |
26588 | char *kwnames[] = { | |
26589 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26590 | }; | |
26591 | ||
26592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26595 | arg2 = (int) SWIG_AsInt(obj1); | |
26596 | if (PyErr_Occurred()) SWIG_fail; | |
26597 | arg3 = (int) SWIG_AsInt(obj2); | |
26598 | if (PyErr_Occurred()) SWIG_fail; | |
26599 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26600 | if (PyErr_Occurred()) SWIG_fail; | |
26601 | { | |
26602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26603 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26604 | ||
26605 | wxPyEndAllowThreads(__tstate); | |
26606 | if (PyErr_Occurred()) SWIG_fail; | |
26607 | } | |
26608 | resultobj = SWIG_FromInt((int)result); | |
26609 | return resultobj; | |
26610 | fail: | |
26611 | return NULL; | |
26612 | } | |
26613 | ||
26614 | ||
26615 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26616 | PyObject *resultobj; | |
26617 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26618 | int arg2 ; | |
26619 | int arg3 ; | |
26620 | int arg4 ; | |
26621 | int result; | |
26622 | PyObject * obj0 = 0 ; | |
26623 | PyObject * obj1 = 0 ; | |
26624 | PyObject * obj2 = 0 ; | |
26625 | PyObject * obj3 = 0 ; | |
26626 | char *kwnames[] = { | |
26627 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26628 | }; | |
26629 | ||
26630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26633 | arg2 = (int) SWIG_AsInt(obj1); | |
26634 | if (PyErr_Occurred()) SWIG_fail; | |
26635 | arg3 = (int) SWIG_AsInt(obj2); | |
26636 | if (PyErr_Occurred()) SWIG_fail; | |
26637 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26638 | if (PyErr_Occurred()) SWIG_fail; | |
26639 | { | |
26640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26641 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26642 | ||
26643 | wxPyEndAllowThreads(__tstate); | |
26644 | if (PyErr_Occurred()) SWIG_fail; | |
26645 | } | |
26646 | resultobj = SWIG_FromInt((int)result); | |
26647 | return resultobj; | |
26648 | fail: | |
26649 | return NULL; | |
26650 | } | |
26651 | ||
26652 | ||
26653 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26654 | PyObject *resultobj; | |
26655 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26656 | PyObject * obj0 = 0 ; | |
26657 | char *kwnames[] = { | |
26658 | (char *) "self", NULL | |
26659 | }; | |
26660 | ||
26661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26664 | { | |
26665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26666 | (arg1)->base_OnLeave(); | |
26667 | ||
26668 | wxPyEndAllowThreads(__tstate); | |
26669 | if (PyErr_Occurred()) SWIG_fail; | |
26670 | } | |
26671 | Py_INCREF(Py_None); resultobj = Py_None; | |
26672 | return resultobj; | |
26673 | fail: | |
26674 | return NULL; | |
26675 | } | |
26676 | ||
26677 | ||
26678 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26679 | PyObject *resultobj; | |
26680 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26681 | int arg2 ; | |
26682 | int arg3 ; | |
26683 | bool result; | |
26684 | PyObject * obj0 = 0 ; | |
26685 | PyObject * obj1 = 0 ; | |
26686 | PyObject * obj2 = 0 ; | |
26687 | char *kwnames[] = { | |
26688 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26689 | }; | |
26690 | ||
26691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26694 | arg2 = (int) SWIG_AsInt(obj1); | |
26695 | if (PyErr_Occurred()) SWIG_fail; | |
26696 | arg3 = (int) SWIG_AsInt(obj2); | |
26697 | if (PyErr_Occurred()) SWIG_fail; | |
26698 | { | |
26699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26700 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26701 | ||
26702 | wxPyEndAllowThreads(__tstate); | |
26703 | if (PyErr_Occurred()) SWIG_fail; | |
26704 | } | |
26705 | { | |
26706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26707 | } | |
26708 | return resultobj; | |
26709 | fail: | |
26710 | return NULL; | |
26711 | } | |
26712 | ||
26713 | ||
26714 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26715 | PyObject *resultobj; | |
26716 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26717 | int arg2 ; | |
26718 | int arg3 ; | |
26719 | int arg4 ; | |
26720 | int result; | |
26721 | PyObject * obj0 = 0 ; | |
26722 | PyObject * obj1 = 0 ; | |
26723 | PyObject * obj2 = 0 ; | |
26724 | PyObject * obj3 = 0 ; | |
26725 | char *kwnames[] = { | |
26726 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26727 | }; | |
26728 | ||
26729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26732 | arg2 = (int) SWIG_AsInt(obj1); | |
26733 | if (PyErr_Occurred()) SWIG_fail; | |
26734 | arg3 = (int) SWIG_AsInt(obj2); | |
26735 | if (PyErr_Occurred()) SWIG_fail; | |
26736 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26737 | if (PyErr_Occurred()) SWIG_fail; | |
26738 | { | |
26739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26740 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26741 | ||
26742 | wxPyEndAllowThreads(__tstate); | |
26743 | if (PyErr_Occurred()) SWIG_fail; | |
26744 | } | |
26745 | resultobj = SWIG_FromInt((int)result); | |
26746 | return resultobj; | |
26747 | fail: | |
26748 | return NULL; | |
26749 | } | |
26750 | ||
26751 | ||
26752 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26753 | PyObject *obj; | |
26754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26755 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26756 | Py_INCREF(obj); | |
26757 | return Py_BuildValue((char *)""); | |
26758 | } | |
26759 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26760 | PyObject *resultobj; | |
26761 | wxClipboard *result; | |
26762 | char *kwnames[] = { | |
26763 | NULL | |
26764 | }; | |
26765 | ||
26766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26767 | { | |
26768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26769 | result = (wxClipboard *)new wxClipboard(); | |
26770 | ||
26771 | wxPyEndAllowThreads(__tstate); | |
26772 | if (PyErr_Occurred()) SWIG_fail; | |
26773 | } | |
26774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
26775 | return resultobj; | |
26776 | fail: | |
26777 | return NULL; | |
26778 | } | |
26779 | ||
26780 | ||
26781 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26782 | PyObject *resultobj; | |
26783 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26784 | PyObject * obj0 = 0 ; | |
26785 | char *kwnames[] = { | |
26786 | (char *) "self", NULL | |
26787 | }; | |
26788 | ||
26789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
26790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26792 | { | |
26793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26794 | delete arg1; | |
26795 | ||
26796 | wxPyEndAllowThreads(__tstate); | |
26797 | if (PyErr_Occurred()) SWIG_fail; | |
26798 | } | |
26799 | Py_INCREF(Py_None); resultobj = Py_None; | |
26800 | return resultobj; | |
26801 | fail: | |
26802 | return NULL; | |
26803 | } | |
26804 | ||
26805 | ||
26806 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26807 | PyObject *resultobj; | |
26808 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26809 | bool result; | |
26810 | PyObject * obj0 = 0 ; | |
26811 | char *kwnames[] = { | |
26812 | (char *) "self", NULL | |
26813 | }; | |
26814 | ||
26815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
26816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26818 | { | |
26819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26820 | result = (bool)(arg1)->Open(); | |
26821 | ||
26822 | wxPyEndAllowThreads(__tstate); | |
26823 | if (PyErr_Occurred()) SWIG_fail; | |
26824 | } | |
26825 | { | |
26826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26827 | } | |
26828 | return resultobj; | |
26829 | fail: | |
26830 | return NULL; | |
26831 | } | |
26832 | ||
26833 | ||
26834 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26835 | PyObject *resultobj; | |
26836 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26837 | PyObject * obj0 = 0 ; | |
26838 | char *kwnames[] = { | |
26839 | (char *) "self", NULL | |
26840 | }; | |
26841 | ||
26842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
26843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26845 | { | |
26846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26847 | (arg1)->Close(); | |
26848 | ||
26849 | wxPyEndAllowThreads(__tstate); | |
26850 | if (PyErr_Occurred()) SWIG_fail; | |
26851 | } | |
26852 | Py_INCREF(Py_None); resultobj = Py_None; | |
26853 | return resultobj; | |
26854 | fail: | |
26855 | return NULL; | |
26856 | } | |
26857 | ||
26858 | ||
26859 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26860 | PyObject *resultobj; | |
26861 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26862 | bool result; | |
26863 | PyObject * obj0 = 0 ; | |
26864 | char *kwnames[] = { | |
26865 | (char *) "self", NULL | |
26866 | }; | |
26867 | ||
26868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
26869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26871 | { | |
26872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26873 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26874 | ||
26875 | wxPyEndAllowThreads(__tstate); | |
26876 | if (PyErr_Occurred()) SWIG_fail; | |
26877 | } | |
26878 | { | |
26879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26880 | } | |
26881 | return resultobj; | |
26882 | fail: | |
26883 | return NULL; | |
26884 | } | |
26885 | ||
26886 | ||
26887 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26888 | PyObject *resultobj; | |
26889 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26890 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26891 | bool result; | |
26892 | PyObject * obj0 = 0 ; | |
26893 | PyObject * obj1 = 0 ; | |
26894 | char *kwnames[] = { | |
26895 | (char *) "self",(char *) "data", NULL | |
26896 | }; | |
26897 | ||
26898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
26899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26901 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26902 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26903 | { | |
26904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26905 | result = (bool)(arg1)->AddData(arg2); | |
26906 | ||
26907 | wxPyEndAllowThreads(__tstate); | |
26908 | if (PyErr_Occurred()) SWIG_fail; | |
26909 | } | |
26910 | { | |
26911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26912 | } | |
26913 | return resultobj; | |
26914 | fail: | |
26915 | return NULL; | |
26916 | } | |
26917 | ||
26918 | ||
26919 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26920 | PyObject *resultobj; | |
26921 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26922 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26923 | bool result; | |
26924 | PyObject * obj0 = 0 ; | |
26925 | PyObject * obj1 = 0 ; | |
26926 | char *kwnames[] = { | |
26927 | (char *) "self",(char *) "data", NULL | |
26928 | }; | |
26929 | ||
26930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26933 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26934 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26935 | { | |
26936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26937 | result = (bool)(arg1)->SetData(arg2); | |
26938 | ||
26939 | wxPyEndAllowThreads(__tstate); | |
26940 | if (PyErr_Occurred()) SWIG_fail; | |
26941 | } | |
26942 | { | |
26943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26944 | } | |
26945 | return resultobj; | |
26946 | fail: | |
26947 | return NULL; | |
26948 | } | |
26949 | ||
26950 | ||
26951 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26952 | PyObject *resultobj; | |
26953 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26954 | wxDataFormat *arg2 = 0 ; | |
26955 | bool result; | |
26956 | PyObject * obj0 = 0 ; | |
26957 | PyObject * obj1 = 0 ; | |
26958 | char *kwnames[] = { | |
26959 | (char *) "self",(char *) "format", NULL | |
26960 | }; | |
26961 | ||
26962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
26963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
26966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26967 | SWIG_fail; | |
26968 | if (arg2 == NULL) { | |
26969 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26970 | SWIG_fail; | |
26971 | } | |
26972 | { | |
26973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26974 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26975 | ||
26976 | wxPyEndAllowThreads(__tstate); | |
26977 | if (PyErr_Occurred()) SWIG_fail; | |
26978 | } | |
26979 | { | |
26980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26981 | } | |
26982 | return resultobj; | |
26983 | fail: | |
26984 | return NULL; | |
26985 | } | |
26986 | ||
26987 | ||
26988 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26989 | PyObject *resultobj; | |
26990 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26991 | wxDataObject *arg2 = 0 ; | |
26992 | bool result; | |
26993 | PyObject * obj0 = 0 ; | |
26994 | PyObject * obj1 = 0 ; | |
26995 | char *kwnames[] = { | |
26996 | (char *) "self",(char *) "data", NULL | |
26997 | }; | |
26998 | ||
26999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
27000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27002 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27003 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27004 | SWIG_fail; | |
27005 | if (arg2 == NULL) { | |
27006 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27007 | SWIG_fail; | |
27008 | } | |
27009 | { | |
27010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27011 | result = (bool)(arg1)->GetData(*arg2); | |
27012 | ||
27013 | wxPyEndAllowThreads(__tstate); | |
27014 | if (PyErr_Occurred()) SWIG_fail; | |
27015 | } | |
27016 | { | |
27017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27018 | } | |
27019 | return resultobj; | |
27020 | fail: | |
27021 | return NULL; | |
27022 | } | |
27023 | ||
27024 | ||
27025 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27026 | PyObject *resultobj; | |
27027 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27028 | PyObject * obj0 = 0 ; | |
27029 | char *kwnames[] = { | |
27030 | (char *) "self", NULL | |
27031 | }; | |
27032 | ||
27033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
27034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27036 | { | |
27037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27038 | (arg1)->Clear(); | |
27039 | ||
27040 | wxPyEndAllowThreads(__tstate); | |
27041 | if (PyErr_Occurred()) SWIG_fail; | |
27042 | } | |
27043 | Py_INCREF(Py_None); resultobj = Py_None; | |
27044 | return resultobj; | |
27045 | fail: | |
27046 | return NULL; | |
27047 | } | |
27048 | ||
27049 | ||
27050 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27051 | PyObject *resultobj; | |
27052 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27053 | bool result; | |
27054 | PyObject * obj0 = 0 ; | |
27055 | char *kwnames[] = { | |
27056 | (char *) "self", NULL | |
27057 | }; | |
27058 | ||
27059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
27060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27062 | { | |
27063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27064 | result = (bool)(arg1)->Flush(); | |
27065 | ||
27066 | wxPyEndAllowThreads(__tstate); | |
27067 | if (PyErr_Occurred()) SWIG_fail; | |
27068 | } | |
27069 | { | |
27070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27071 | } | |
27072 | return resultobj; | |
27073 | fail: | |
27074 | return NULL; | |
27075 | } | |
27076 | ||
27077 | ||
27078 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27079 | PyObject *resultobj; | |
27080 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27081 | bool arg2 = (bool) True ; | |
27082 | PyObject * obj0 = 0 ; | |
27083 | PyObject * obj1 = 0 ; | |
27084 | char *kwnames[] = { | |
27085 | (char *) "self",(char *) "primary", NULL | |
27086 | }; | |
27087 | ||
27088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27091 | if (obj1) { | |
27092 | arg2 = (bool) SWIG_AsBool(obj1); | |
27093 | if (PyErr_Occurred()) SWIG_fail; | |
27094 | } | |
27095 | { | |
27096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27097 | (arg1)->UsePrimarySelection(arg2); | |
27098 | ||
27099 | wxPyEndAllowThreads(__tstate); | |
27100 | if (PyErr_Occurred()) SWIG_fail; | |
27101 | } | |
27102 | Py_INCREF(Py_None); resultobj = Py_None; | |
27103 | return resultobj; | |
27104 | fail: | |
27105 | return NULL; | |
27106 | } | |
27107 | ||
27108 | ||
27109 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
27110 | PyObject *obj; | |
27111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27112 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27113 | Py_INCREF(obj); | |
27114 | return Py_BuildValue((char *)""); | |
27115 | } | |
27116 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
27117 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
27118 | return 1; | |
27119 | } | |
27120 | ||
27121 | ||
27122 | static PyObject *_wrap_TheClipboard_get() { | |
27123 | PyObject *pyobj; | |
27124 | ||
27125 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); | |
27126 | return pyobj; | |
27127 | } | |
27128 | ||
27129 | ||
27130 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27131 | PyObject *resultobj; | |
27132 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27133 | wxClipboardLocker *result; | |
27134 | PyObject * obj0 = 0 ; | |
27135 | char *kwnames[] = { | |
27136 | (char *) "clipboard", NULL | |
27137 | }; | |
27138 | ||
27139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27140 | if (obj0) { | |
27141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27143 | } | |
27144 | { | |
27145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27146 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27147 | ||
27148 | wxPyEndAllowThreads(__tstate); | |
27149 | if (PyErr_Occurred()) SWIG_fail; | |
27150 | } | |
27151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27152 | return resultobj; | |
27153 | fail: | |
27154 | return NULL; | |
27155 | } | |
27156 | ||
27157 | ||
27158 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27159 | PyObject *resultobj; | |
27160 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27161 | PyObject * obj0 = 0 ; | |
27162 | char *kwnames[] = { | |
27163 | (char *) "self", NULL | |
27164 | }; | |
27165 | ||
27166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27169 | { | |
27170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27171 | delete arg1; | |
27172 | ||
27173 | wxPyEndAllowThreads(__tstate); | |
27174 | if (PyErr_Occurred()) SWIG_fail; | |
27175 | } | |
27176 | Py_INCREF(Py_None); resultobj = Py_None; | |
27177 | return resultobj; | |
27178 | fail: | |
27179 | return NULL; | |
27180 | } | |
27181 | ||
27182 | ||
27183 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27184 | PyObject *resultobj; | |
27185 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27186 | bool result; | |
27187 | PyObject * obj0 = 0 ; | |
27188 | char *kwnames[] = { | |
27189 | (char *) "self", NULL | |
27190 | }; | |
27191 | ||
27192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27195 | { | |
27196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27197 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27198 | ||
27199 | wxPyEndAllowThreads(__tstate); | |
27200 | if (PyErr_Occurred()) SWIG_fail; | |
27201 | } | |
27202 | { | |
27203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27204 | } | |
27205 | return resultobj; | |
27206 | fail: | |
27207 | return NULL; | |
27208 | } | |
27209 | ||
27210 | ||
27211 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27212 | PyObject *obj; | |
27213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27214 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27215 | Py_INCREF(obj); | |
27216 | return Py_BuildValue((char *)""); | |
27217 | } | |
27218 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27219 | PyObject *resultobj; | |
27220 | int arg1 = (int) 0 ; | |
27221 | int arg2 = (int) 0 ; | |
27222 | int arg3 = (int) 0 ; | |
27223 | int arg4 = (int) 0 ; | |
27224 | wxVideoMode *result; | |
27225 | PyObject * obj0 = 0 ; | |
27226 | PyObject * obj1 = 0 ; | |
27227 | PyObject * obj2 = 0 ; | |
27228 | PyObject * obj3 = 0 ; | |
27229 | char *kwnames[] = { | |
27230 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27231 | }; | |
27232 | ||
27233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27234 | if (obj0) { | |
27235 | arg1 = (int) SWIG_AsInt(obj0); | |
27236 | if (PyErr_Occurred()) SWIG_fail; | |
27237 | } | |
27238 | if (obj1) { | |
27239 | arg2 = (int) SWIG_AsInt(obj1); | |
27240 | if (PyErr_Occurred()) SWIG_fail; | |
27241 | } | |
27242 | if (obj2) { | |
27243 | arg3 = (int) SWIG_AsInt(obj2); | |
27244 | if (PyErr_Occurred()) SWIG_fail; | |
27245 | } | |
27246 | if (obj3) { | |
27247 | arg4 = (int) SWIG_AsInt(obj3); | |
27248 | if (PyErr_Occurred()) SWIG_fail; | |
27249 | } | |
27250 | { | |
27251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27252 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27253 | ||
27254 | wxPyEndAllowThreads(__tstate); | |
27255 | if (PyErr_Occurred()) SWIG_fail; | |
27256 | } | |
27257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27258 | return resultobj; | |
27259 | fail: | |
27260 | return NULL; | |
27261 | } | |
27262 | ||
27263 | ||
27264 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27265 | PyObject *resultobj; | |
27266 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27267 | PyObject * obj0 = 0 ; | |
27268 | char *kwnames[] = { | |
27269 | (char *) "self", NULL | |
27270 | }; | |
27271 | ||
27272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27275 | { | |
27276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27277 | delete arg1; | |
27278 | ||
27279 | wxPyEndAllowThreads(__tstate); | |
27280 | if (PyErr_Occurred()) SWIG_fail; | |
27281 | } | |
27282 | Py_INCREF(Py_None); resultobj = Py_None; | |
27283 | return resultobj; | |
27284 | fail: | |
27285 | return NULL; | |
27286 | } | |
27287 | ||
27288 | ||
27289 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27290 | PyObject *resultobj; | |
27291 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27292 | wxVideoMode *arg2 = 0 ; | |
27293 | bool result; | |
27294 | PyObject * obj0 = 0 ; | |
27295 | PyObject * obj1 = 0 ; | |
27296 | char *kwnames[] = { | |
27297 | (char *) "self",(char *) "other", NULL | |
27298 | }; | |
27299 | ||
27300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27303 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27304 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27305 | SWIG_fail; | |
27306 | if (arg2 == NULL) { | |
27307 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27308 | SWIG_fail; | |
27309 | } | |
27310 | { | |
27311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27312 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27313 | ||
27314 | wxPyEndAllowThreads(__tstate); | |
27315 | if (PyErr_Occurred()) SWIG_fail; | |
27316 | } | |
27317 | { | |
27318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27319 | } | |
27320 | return resultobj; | |
27321 | fail: | |
27322 | return NULL; | |
27323 | } | |
27324 | ||
27325 | ||
27326 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27327 | PyObject *resultobj; | |
27328 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27329 | int result; | |
27330 | PyObject * obj0 = 0 ; | |
27331 | char *kwnames[] = { | |
27332 | (char *) "self", NULL | |
27333 | }; | |
27334 | ||
27335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27338 | { | |
27339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27340 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27341 | ||
27342 | wxPyEndAllowThreads(__tstate); | |
27343 | if (PyErr_Occurred()) SWIG_fail; | |
27344 | } | |
27345 | resultobj = SWIG_FromInt((int)result); | |
27346 | return resultobj; | |
27347 | fail: | |
27348 | return NULL; | |
27349 | } | |
27350 | ||
27351 | ||
27352 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27353 | PyObject *resultobj; | |
27354 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27355 | int result; | |
27356 | PyObject * obj0 = 0 ; | |
27357 | char *kwnames[] = { | |
27358 | (char *) "self", NULL | |
27359 | }; | |
27360 | ||
27361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27364 | { | |
27365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27366 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27367 | ||
27368 | wxPyEndAllowThreads(__tstate); | |
27369 | if (PyErr_Occurred()) SWIG_fail; | |
27370 | } | |
27371 | resultobj = SWIG_FromInt((int)result); | |
27372 | return resultobj; | |
27373 | fail: | |
27374 | return NULL; | |
27375 | } | |
27376 | ||
27377 | ||
27378 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27379 | PyObject *resultobj; | |
27380 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27381 | int result; | |
27382 | PyObject * obj0 = 0 ; | |
27383 | char *kwnames[] = { | |
27384 | (char *) "self", NULL | |
27385 | }; | |
27386 | ||
27387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27390 | { | |
27391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27392 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27393 | ||
27394 | wxPyEndAllowThreads(__tstate); | |
27395 | if (PyErr_Occurred()) SWIG_fail; | |
27396 | } | |
27397 | resultobj = SWIG_FromInt((int)result); | |
27398 | return resultobj; | |
27399 | fail: | |
27400 | return NULL; | |
27401 | } | |
27402 | ||
27403 | ||
27404 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27405 | PyObject *resultobj; | |
27406 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27407 | bool result; | |
27408 | PyObject * obj0 = 0 ; | |
27409 | char *kwnames[] = { | |
27410 | (char *) "self", NULL | |
27411 | }; | |
27412 | ||
27413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27416 | { | |
27417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27418 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27419 | ||
27420 | wxPyEndAllowThreads(__tstate); | |
27421 | if (PyErr_Occurred()) SWIG_fail; | |
27422 | } | |
27423 | { | |
27424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27425 | } | |
27426 | return resultobj; | |
27427 | fail: | |
27428 | return NULL; | |
27429 | } | |
27430 | ||
27431 | ||
27432 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27433 | PyObject *resultobj; | |
27434 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27435 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27436 | bool result; | |
27437 | PyObject * obj0 = 0 ; | |
27438 | PyObject * obj1 = 0 ; | |
27439 | char *kwnames[] = { | |
27440 | (char *) "self",(char *) "other", NULL | |
27441 | }; | |
27442 | ||
27443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27446 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27448 | { | |
27449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27450 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27451 | ||
27452 | wxPyEndAllowThreads(__tstate); | |
27453 | if (PyErr_Occurred()) SWIG_fail; | |
27454 | } | |
27455 | { | |
27456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27457 | } | |
27458 | return resultobj; | |
27459 | fail: | |
27460 | return NULL; | |
27461 | } | |
27462 | ||
27463 | ||
27464 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27465 | PyObject *resultobj; | |
27466 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27467 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27468 | bool result; | |
27469 | PyObject * obj0 = 0 ; | |
27470 | PyObject * obj1 = 0 ; | |
27471 | char *kwnames[] = { | |
27472 | (char *) "self",(char *) "other", NULL | |
27473 | }; | |
27474 | ||
27475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27478 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27480 | { | |
27481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27482 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27483 | ||
27484 | wxPyEndAllowThreads(__tstate); | |
27485 | if (PyErr_Occurred()) SWIG_fail; | |
27486 | } | |
27487 | { | |
27488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27489 | } | |
27490 | return resultobj; | |
27491 | fail: | |
27492 | return NULL; | |
27493 | } | |
27494 | ||
27495 | ||
27496 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27497 | PyObject *resultobj; | |
27498 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27499 | int arg2 ; | |
27500 | PyObject * obj0 = 0 ; | |
27501 | PyObject * obj1 = 0 ; | |
27502 | char *kwnames[] = { | |
27503 | (char *) "self",(char *) "w", NULL | |
27504 | }; | |
27505 | ||
27506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27509 | arg2 = (int) SWIG_AsInt(obj1); | |
27510 | if (PyErr_Occurred()) SWIG_fail; | |
27511 | if (arg1) (arg1)->w = arg2; | |
27512 | ||
27513 | Py_INCREF(Py_None); resultobj = Py_None; | |
27514 | return resultobj; | |
27515 | fail: | |
27516 | return NULL; | |
27517 | } | |
27518 | ||
27519 | ||
27520 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27521 | PyObject *resultobj; | |
27522 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27523 | int result; | |
27524 | PyObject * obj0 = 0 ; | |
27525 | char *kwnames[] = { | |
27526 | (char *) "self", NULL | |
27527 | }; | |
27528 | ||
27529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27532 | result = (int) ((arg1)->w); | |
27533 | ||
27534 | resultobj = SWIG_FromInt((int)result); | |
27535 | return resultobj; | |
27536 | fail: | |
27537 | return NULL; | |
27538 | } | |
27539 | ||
27540 | ||
27541 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27542 | PyObject *resultobj; | |
27543 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27544 | int arg2 ; | |
27545 | PyObject * obj0 = 0 ; | |
27546 | PyObject * obj1 = 0 ; | |
27547 | char *kwnames[] = { | |
27548 | (char *) "self",(char *) "h", NULL | |
27549 | }; | |
27550 | ||
27551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27554 | arg2 = (int) SWIG_AsInt(obj1); | |
27555 | if (PyErr_Occurred()) SWIG_fail; | |
27556 | if (arg1) (arg1)->h = arg2; | |
27557 | ||
27558 | Py_INCREF(Py_None); resultobj = Py_None; | |
27559 | return resultobj; | |
27560 | fail: | |
27561 | return NULL; | |
27562 | } | |
27563 | ||
27564 | ||
27565 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27566 | PyObject *resultobj; | |
27567 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27568 | int result; | |
27569 | PyObject * obj0 = 0 ; | |
27570 | char *kwnames[] = { | |
27571 | (char *) "self", NULL | |
27572 | }; | |
27573 | ||
27574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27577 | result = (int) ((arg1)->h); | |
27578 | ||
27579 | resultobj = SWIG_FromInt((int)result); | |
27580 | return resultobj; | |
27581 | fail: | |
27582 | return NULL; | |
27583 | } | |
27584 | ||
27585 | ||
27586 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27587 | PyObject *resultobj; | |
27588 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27589 | int arg2 ; | |
27590 | PyObject * obj0 = 0 ; | |
27591 | PyObject * obj1 = 0 ; | |
27592 | char *kwnames[] = { | |
27593 | (char *) "self",(char *) "bpp", NULL | |
27594 | }; | |
27595 | ||
27596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27599 | arg2 = (int) SWIG_AsInt(obj1); | |
27600 | if (PyErr_Occurred()) SWIG_fail; | |
27601 | if (arg1) (arg1)->bpp = arg2; | |
27602 | ||
27603 | Py_INCREF(Py_None); resultobj = Py_None; | |
27604 | return resultobj; | |
27605 | fail: | |
27606 | return NULL; | |
27607 | } | |
27608 | ||
27609 | ||
27610 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27611 | PyObject *resultobj; | |
27612 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27613 | int result; | |
27614 | PyObject * obj0 = 0 ; | |
27615 | char *kwnames[] = { | |
27616 | (char *) "self", NULL | |
27617 | }; | |
27618 | ||
27619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27622 | result = (int) ((arg1)->bpp); | |
27623 | ||
27624 | resultobj = SWIG_FromInt((int)result); | |
27625 | return resultobj; | |
27626 | fail: | |
27627 | return NULL; | |
27628 | } | |
27629 | ||
27630 | ||
27631 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27632 | PyObject *resultobj; | |
27633 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27634 | int arg2 ; | |
27635 | PyObject * obj0 = 0 ; | |
27636 | PyObject * obj1 = 0 ; | |
27637 | char *kwnames[] = { | |
27638 | (char *) "self",(char *) "refresh", NULL | |
27639 | }; | |
27640 | ||
27641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27644 | arg2 = (int) SWIG_AsInt(obj1); | |
27645 | if (PyErr_Occurred()) SWIG_fail; | |
27646 | if (arg1) (arg1)->refresh = arg2; | |
27647 | ||
27648 | Py_INCREF(Py_None); resultobj = Py_None; | |
27649 | return resultobj; | |
27650 | fail: | |
27651 | return NULL; | |
27652 | } | |
27653 | ||
27654 | ||
27655 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27656 | PyObject *resultobj; | |
27657 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27658 | int result; | |
27659 | PyObject * obj0 = 0 ; | |
27660 | char *kwnames[] = { | |
27661 | (char *) "self", NULL | |
27662 | }; | |
27663 | ||
27664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27667 | result = (int) ((arg1)->refresh); | |
27668 | ||
27669 | resultobj = SWIG_FromInt((int)result); | |
27670 | return resultobj; | |
27671 | fail: | |
27672 | return NULL; | |
27673 | } | |
27674 | ||
27675 | ||
27676 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27677 | PyObject *obj; | |
27678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27679 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27680 | Py_INCREF(obj); | |
27681 | return Py_BuildValue((char *)""); | |
27682 | } | |
27683 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27684 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27685 | return 1; | |
27686 | } | |
27687 | ||
27688 | ||
27689 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27690 | PyObject *pyobj; | |
27691 | ||
27692 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27693 | return pyobj; | |
27694 | } | |
27695 | ||
27696 | ||
27697 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27698 | PyObject *resultobj; | |
27699 | size_t arg1 = (size_t) 0 ; | |
27700 | wxDisplay *result; | |
27701 | PyObject * obj0 = 0 ; | |
27702 | char *kwnames[] = { | |
27703 | (char *) "index", NULL | |
27704 | }; | |
27705 | ||
27706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27707 | if (obj0) { | |
27708 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27709 | if (PyErr_Occurred()) SWIG_fail; | |
27710 | } | |
27711 | { | |
27712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27713 | result = (wxDisplay *)new wxDisplay(arg1); | |
27714 | ||
27715 | wxPyEndAllowThreads(__tstate); | |
27716 | if (PyErr_Occurred()) SWIG_fail; | |
27717 | } | |
27718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27719 | return resultobj; | |
27720 | fail: | |
27721 | return NULL; | |
27722 | } | |
27723 | ||
27724 | ||
27725 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27726 | PyObject *resultobj; | |
27727 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27728 | PyObject * obj0 = 0 ; | |
27729 | char *kwnames[] = { | |
27730 | (char *) "self", NULL | |
27731 | }; | |
27732 | ||
27733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27736 | { | |
27737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27738 | delete arg1; | |
27739 | ||
27740 | wxPyEndAllowThreads(__tstate); | |
27741 | if (PyErr_Occurred()) SWIG_fail; | |
27742 | } | |
27743 | Py_INCREF(Py_None); resultobj = Py_None; | |
27744 | return resultobj; | |
27745 | fail: | |
27746 | return NULL; | |
27747 | } | |
27748 | ||
27749 | ||
27750 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27751 | PyObject *resultobj; | |
27752 | size_t result; | |
27753 | char *kwnames[] = { | |
27754 | NULL | |
27755 | }; | |
27756 | ||
27757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27758 | { | |
27759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27760 | result = (size_t)wxDisplay::GetCount(); | |
27761 | ||
27762 | wxPyEndAllowThreads(__tstate); | |
27763 | if (PyErr_Occurred()) SWIG_fail; | |
27764 | } | |
27765 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27766 | return resultobj; | |
27767 | fail: | |
27768 | return NULL; | |
27769 | } | |
27770 | ||
27771 | ||
27772 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27773 | PyObject *resultobj; | |
27774 | wxPoint *arg1 = 0 ; | |
27775 | int result; | |
27776 | wxPoint temp1 ; | |
27777 | PyObject * obj0 = 0 ; | |
27778 | char *kwnames[] = { | |
27779 | (char *) "pt", NULL | |
27780 | }; | |
27781 | ||
27782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27783 | { | |
27784 | arg1 = &temp1; | |
27785 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27786 | } | |
27787 | { | |
27788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27789 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27790 | ||
27791 | wxPyEndAllowThreads(__tstate); | |
27792 | if (PyErr_Occurred()) SWIG_fail; | |
27793 | } | |
27794 | resultobj = SWIG_FromInt((int)result); | |
27795 | return resultobj; | |
27796 | fail: | |
27797 | return NULL; | |
27798 | } | |
27799 | ||
27800 | ||
27801 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27802 | PyObject *resultobj; | |
27803 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27804 | int result; | |
27805 | PyObject * obj0 = 0 ; | |
27806 | char *kwnames[] = { | |
27807 | (char *) "window", NULL | |
27808 | }; | |
27809 | ||
27810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27813 | { | |
27814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27815 | result = (int)wxDisplay::GetFromWindow(arg1); | |
27816 | ||
27817 | wxPyEndAllowThreads(__tstate); | |
27818 | if (PyErr_Occurred()) SWIG_fail; | |
27819 | } | |
27820 | resultobj = SWIG_FromInt((int)result); | |
27821 | return resultobj; | |
27822 | fail: | |
27823 | return NULL; | |
27824 | } | |
27825 | ||
27826 | ||
27827 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27828 | PyObject *resultobj; | |
27829 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27830 | bool result; | |
27831 | PyObject * obj0 = 0 ; | |
27832 | char *kwnames[] = { | |
27833 | (char *) "self", NULL | |
27834 | }; | |
27835 | ||
27836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27839 | { | |
27840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27841 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27842 | ||
27843 | wxPyEndAllowThreads(__tstate); | |
27844 | if (PyErr_Occurred()) SWIG_fail; | |
27845 | } | |
27846 | { | |
27847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27848 | } | |
27849 | return resultobj; | |
27850 | fail: | |
27851 | return NULL; | |
27852 | } | |
27853 | ||
27854 | ||
27855 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27856 | PyObject *resultobj; | |
27857 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27858 | wxRect result; | |
27859 | PyObject * obj0 = 0 ; | |
27860 | char *kwnames[] = { | |
27861 | (char *) "self", NULL | |
27862 | }; | |
27863 | ||
27864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27867 | { | |
27868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27869 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27870 | ||
27871 | wxPyEndAllowThreads(__tstate); | |
27872 | if (PyErr_Occurred()) SWIG_fail; | |
27873 | } | |
27874 | { | |
27875 | wxRect * resultptr; | |
27876 | resultptr = new wxRect((wxRect &) result); | |
27877 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27878 | } | |
27879 | return resultobj; | |
27880 | fail: | |
27881 | return NULL; | |
27882 | } | |
27883 | ||
27884 | ||
27885 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27886 | PyObject *resultobj; | |
27887 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27888 | wxString result; | |
27889 | PyObject * obj0 = 0 ; | |
27890 | char *kwnames[] = { | |
27891 | (char *) "self", NULL | |
27892 | }; | |
27893 | ||
27894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
27895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27897 | { | |
27898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27899 | result = ((wxDisplay const *)arg1)->GetName(); | |
27900 | ||
27901 | wxPyEndAllowThreads(__tstate); | |
27902 | if (PyErr_Occurred()) SWIG_fail; | |
27903 | } | |
27904 | { | |
27905 | #if wxUSE_UNICODE | |
27906 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27907 | #else | |
27908 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27909 | #endif | |
27910 | } | |
27911 | return resultobj; | |
27912 | fail: | |
27913 | return NULL; | |
27914 | } | |
27915 | ||
27916 | ||
27917 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27918 | PyObject *resultobj; | |
27919 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27920 | bool result; | |
27921 | PyObject * obj0 = 0 ; | |
27922 | char *kwnames[] = { | |
27923 | (char *) "self", NULL | |
27924 | }; | |
27925 | ||
27926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
27927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27929 | { | |
27930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27931 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
27932 | ||
27933 | wxPyEndAllowThreads(__tstate); | |
27934 | if (PyErr_Occurred()) SWIG_fail; | |
27935 | } | |
27936 | { | |
27937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27938 | } | |
27939 | return resultobj; | |
27940 | fail: | |
27941 | return NULL; | |
27942 | } | |
27943 | ||
27944 | ||
27945 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27946 | PyObject *resultobj; | |
27947 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27948 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27949 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27950 | PyObject *result; | |
27951 | PyObject * obj0 = 0 ; | |
27952 | PyObject * obj1 = 0 ; | |
27953 | char *kwnames[] = { | |
27954 | (char *) "self",(char *) "mode", NULL | |
27955 | }; | |
27956 | ||
27957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
27958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27960 | if (obj1) { | |
27961 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27962 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27963 | SWIG_fail; | |
27964 | if (arg2 == NULL) { | |
27965 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27966 | SWIG_fail; | |
27967 | } | |
27968 | } | |
27969 | { | |
27970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27971 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
27972 | ||
27973 | wxPyEndAllowThreads(__tstate); | |
27974 | if (PyErr_Occurred()) SWIG_fail; | |
27975 | } | |
27976 | resultobj = result; | |
27977 | return resultobj; | |
27978 | fail: | |
27979 | return NULL; | |
27980 | } | |
27981 | ||
27982 | ||
27983 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27984 | PyObject *resultobj; | |
27985 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27986 | wxVideoMode result; | |
27987 | PyObject * obj0 = 0 ; | |
27988 | char *kwnames[] = { | |
27989 | (char *) "self", NULL | |
27990 | }; | |
27991 | ||
27992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
27993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27995 | { | |
27996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27997 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
27998 | ||
27999 | wxPyEndAllowThreads(__tstate); | |
28000 | if (PyErr_Occurred()) SWIG_fail; | |
28001 | } | |
28002 | { | |
28003 | wxVideoMode * resultptr; | |
28004 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28006 | } | |
28007 | return resultobj; | |
28008 | fail: | |
28009 | return NULL; | |
28010 | } | |
28011 | ||
28012 | ||
28013 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28014 | PyObject *resultobj; | |
28015 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28016 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28017 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28018 | bool result; | |
28019 | PyObject * obj0 = 0 ; | |
28020 | PyObject * obj1 = 0 ; | |
28021 | char *kwnames[] = { | |
28022 | (char *) "self",(char *) "mode", NULL | |
28023 | }; | |
28024 | ||
28025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28028 | if (obj1) { | |
28029 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28030 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28031 | SWIG_fail; | |
28032 | if (arg2 == NULL) { | |
28033 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28034 | SWIG_fail; | |
28035 | } | |
28036 | } | |
28037 | { | |
28038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28039 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28040 | ||
28041 | wxPyEndAllowThreads(__tstate); | |
28042 | if (PyErr_Occurred()) SWIG_fail; | |
28043 | } | |
28044 | { | |
28045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28046 | } | |
28047 | return resultobj; | |
28048 | fail: | |
28049 | return NULL; | |
28050 | } | |
28051 | ||
28052 | ||
28053 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28054 | PyObject *resultobj; | |
28055 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28056 | PyObject * obj0 = 0 ; | |
28057 | char *kwnames[] = { | |
28058 | (char *) "self", NULL | |
28059 | }; | |
28060 | ||
28061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28064 | { | |
28065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28066 | (arg1)->ResetMode(); | |
28067 | ||
28068 | wxPyEndAllowThreads(__tstate); | |
28069 | if (PyErr_Occurred()) SWIG_fail; | |
28070 | } | |
28071 | Py_INCREF(Py_None); resultobj = Py_None; | |
28072 | return resultobj; | |
28073 | fail: | |
28074 | return NULL; | |
28075 | } | |
28076 | ||
28077 | ||
28078 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
28079 | PyObject *obj; | |
28080 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28081 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28082 | Py_INCREF(obj); | |
28083 | return Py_BuildValue((char *)""); | |
28084 | } | |
28085 | static PyMethodDef SwigMethods[] = { | |
28086 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
28087 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28088 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
28089 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
28090 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28091 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28092 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
28093 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
28094 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
28095 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28096 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
28097 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28098 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
28099 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
28100 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
28101 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
28102 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
28103 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
28104 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28105 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28106 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28107 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28108 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28109 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28110 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28111 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28112 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28113 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28114 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28115 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
28116 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
28117 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
28118 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28119 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28120 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28121 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28122 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28123 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28124 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28125 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28126 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28127 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28128 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28129 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28130 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28131 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28132 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28133 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28134 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28135 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28136 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28137 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28138 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28139 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28140 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28141 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28142 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28143 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28144 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28145 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28146 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28147 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28148 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28149 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28150 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28151 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28152 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
28153 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, | |
28154 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
28155 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28156 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28157 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28158 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28159 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28160 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28161 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28162 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28163 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28164 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28165 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28166 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28167 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28168 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28169 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28170 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28171 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
28172 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28173 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
28174 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28175 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
28176 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28177 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28178 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28179 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28180 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28181 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28182 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28183 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28184 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28185 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28186 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28187 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28188 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28189 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28190 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28191 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28192 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28193 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28194 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28195 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28198 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28201 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28205 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28207 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28209 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28210 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28211 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28214 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28215 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28216 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28221 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28222 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28224 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28225 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28227 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28228 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28229 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28230 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28231 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28232 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28233 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28234 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
28237 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
28238 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
28239 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
28241 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28242 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, | |
28243 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28245 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28246 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28247 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28250 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28259 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28260 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28265 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28273 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28275 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28277 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28278 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28279 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28281 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28283 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28285 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28290 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28291 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28292 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28293 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28294 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28296 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28297 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28298 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28300 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28301 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28304 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28305 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28306 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, | |
28309 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, | |
28310 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28313 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28314 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28316 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28317 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28320 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28321 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28322 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28323 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28324 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28326 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28329 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28330 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28334 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28339 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28341 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28342 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28344 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28345 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28346 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28347 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28348 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28349 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28350 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28352 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28353 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28354 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28355 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28356 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28357 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28370 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28383 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28386 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28387 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28388 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28389 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28400 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28412 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28414 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28415 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
28416 | { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS }, | |
28417 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS }, | |
28419 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28420 | { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS }, | |
28421 | { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS }, | |
28422 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, | |
28423 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
28424 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28428 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28440 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28452 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28456 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28458 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28461 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28468 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28469 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28470 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28476 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, | |
28479 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28483 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28498 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28507 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28508 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28509 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
28510 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
28522 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
28523 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28525 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28526 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28527 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
28528 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28529 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28530 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28531 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
28532 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28558 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28559 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28577 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28578 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28579 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28580 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28582 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28583 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28586 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28619 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28621 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28622 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28623 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28624 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28625 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28626 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28627 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28628 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28629 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28630 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28631 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28632 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28633 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28636 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28637 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28640 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28641 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28644 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28645 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28652 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28662 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28664 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28667 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28670 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28674 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28676 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28680 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28683 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28685 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28686 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28687 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28688 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28689 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28691 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28693 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28694 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28697 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28698 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28701 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28704 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28711 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28714 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28715 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28718 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28719 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28720 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28723 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28725 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28729 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28730 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28731 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28732 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28734 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28735 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28736 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28737 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28738 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28739 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28740 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28741 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28742 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28743 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28744 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28746 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28747 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28748 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28749 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
28750 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28753 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28756 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28757 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28761 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28764 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28768 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28769 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28771 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
28773 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, | |
28774 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
28775 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28776 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
28777 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28778 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28780 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28781 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28782 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28783 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28784 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28785 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28786 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
28787 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
28788 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28789 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28791 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28792 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28793 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28794 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28796 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28797 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28798 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
28799 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28800 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28801 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28803 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28804 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28805 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28806 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28807 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28808 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28809 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28810 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28811 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28812 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28813 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28814 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28815 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28816 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28817 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28818 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28819 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28820 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28821 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28822 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28823 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28824 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28825 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28826 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28827 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28828 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28829 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28830 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28831 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28832 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28833 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28834 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28835 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28836 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28837 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28838 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28839 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28840 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28841 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28842 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
28843 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28844 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28845 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28846 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28847 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28848 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28849 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28850 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28851 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28852 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28853 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28854 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28855 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28856 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28857 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28858 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28859 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28860 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28861 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28862 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28863 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28864 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28865 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28866 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28867 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28868 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28869 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28870 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28871 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28872 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28873 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28874 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
28875 | { NULL, NULL } | |
28876 | }; | |
28877 | ||
28878 | ||
28879 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28880 | ||
28881 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28882 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28883 | } | |
28884 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28885 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28886 | } | |
28887 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28888 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28889 | } | |
28890 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
28891 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
28892 | } | |
28893 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
28894 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
28895 | } | |
28896 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
28897 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
28898 | } | |
28899 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
28900 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
28901 | } | |
28902 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
28903 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
28904 | } | |
28905 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
28906 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
28907 | } | |
28908 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
28909 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
28910 | } | |
28911 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
28912 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28913 | } | |
28914 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
28915 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
28916 | } | |
28917 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
28918 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
28919 | } | |
28920 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
28921 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28922 | } | |
28923 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
28924 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28925 | } | |
28926 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
28927 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
28928 | } | |
28929 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
28930 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
28931 | } | |
28932 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
28933 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
28934 | } | |
28935 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
28936 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
28937 | } | |
28938 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
28939 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
28940 | } | |
28941 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
28942 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
28943 | } | |
28944 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
28945 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
28946 | } | |
28947 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
28948 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28949 | } | |
28950 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
28951 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28952 | } | |
28953 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
28954 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28955 | } | |
28956 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
28957 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28958 | } | |
28959 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
28960 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28961 | } | |
28962 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
28963 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
28964 | } | |
28965 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
28966 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
28967 | } | |
28968 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
28969 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28970 | } | |
28971 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
28972 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
28973 | } | |
28974 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
28975 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
28976 | } | |
28977 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
28978 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
28979 | } | |
28980 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
28981 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28982 | } | |
28983 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
28984 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28985 | } | |
28986 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
28987 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28988 | } | |
28989 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
28990 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
28991 | } | |
28992 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
28993 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
28994 | } | |
28995 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
28996 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
28997 | } | |
28998 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
28999 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
29000 | } | |
29001 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
29002 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29003 | } | |
29004 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29005 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29006 | } | |
29007 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29008 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29009 | } | |
29010 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29011 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29012 | } | |
29013 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29014 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29015 | } | |
29016 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29017 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29018 | } | |
29019 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29020 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29021 | } | |
29022 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29023 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29024 | } | |
29025 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29026 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29027 | } | |
29028 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29029 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29030 | } | |
29031 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29032 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29033 | } | |
29034 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29035 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29036 | } | |
29037 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29038 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29039 | } | |
29040 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29041 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29042 | } | |
29043 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29044 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29045 | } | |
29046 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29047 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29048 | } | |
29049 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29050 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29051 | } | |
29052 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29053 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29054 | } | |
29055 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29056 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29057 | } | |
29058 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29059 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29060 | } | |
29061 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29062 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29063 | } | |
29064 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29065 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29066 | } | |
29067 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29068 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29069 | } | |
29070 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29071 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29072 | } | |
29073 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29074 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29075 | } | |
29076 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29077 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29078 | } | |
29079 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29080 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29081 | } | |
29082 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29083 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29084 | } | |
29085 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29086 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29087 | } | |
29088 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29089 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29090 | } | |
29091 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29092 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29093 | } | |
29094 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29095 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29096 | } | |
29097 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29098 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29099 | } | |
29100 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29101 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29102 | } | |
29103 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29104 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29105 | } | |
29106 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29107 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29108 | } | |
29109 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29110 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29111 | } | |
29112 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29113 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29114 | } | |
29115 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29116 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29117 | } | |
29118 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29119 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29120 | } | |
29121 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29122 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29123 | } | |
29124 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29125 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29126 | } | |
29127 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29128 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29129 | } | |
29130 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29131 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29132 | } | |
29133 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29134 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29135 | } | |
29136 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29137 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29138 | } | |
29139 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29140 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29141 | } | |
29142 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29143 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29144 | } | |
29145 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29146 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29147 | } | |
29148 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29149 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29150 | } | |
29151 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29152 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29153 | } | |
29154 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29155 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29156 | } | |
29157 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29158 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29159 | } | |
29160 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29161 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29162 | } | |
29163 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29164 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29165 | } | |
29166 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29167 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29168 | } | |
29169 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29170 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29171 | } | |
29172 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29173 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29174 | } | |
29175 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29176 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29177 | } | |
29178 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29179 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29180 | } | |
29181 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29182 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29183 | } | |
29184 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29185 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29186 | } | |
29187 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29188 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29189 | } | |
29190 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29191 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29192 | } | |
29193 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29194 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29195 | } | |
29196 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29197 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29198 | } | |
29199 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29200 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29201 | } | |
29202 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29203 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29204 | } | |
29205 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29206 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29207 | } | |
29208 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29209 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29210 | } | |
29211 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29212 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29213 | } | |
29214 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29215 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29216 | } | |
29217 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29218 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29219 | } | |
29220 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29221 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29222 | } | |
29223 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29224 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29225 | } | |
29226 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29227 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29228 | } | |
29229 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29230 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29231 | } | |
29232 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29233 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29234 | } | |
29235 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29236 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29237 | } | |
29238 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29239 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29240 | } | |
29241 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29242 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29243 | } | |
29244 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29245 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29246 | } | |
29247 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29248 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29249 | } | |
29250 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29251 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29252 | } | |
29253 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29254 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29255 | } | |
29256 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29257 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29258 | } | |
29259 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
29260 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29261 | } | |
29262 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
29263 | return (void *)((wxObject *) ((wxImage *) x)); | |
29264 | } | |
29265 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29266 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29267 | } | |
29268 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29269 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29270 | } | |
29271 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29272 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29273 | } | |
29274 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29275 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29276 | } | |
29277 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29278 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29279 | } | |
29280 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29281 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29282 | } | |
29283 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29284 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29285 | } | |
29286 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29287 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29288 | } | |
29289 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29290 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29291 | } | |
29292 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29293 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29294 | } | |
29295 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29296 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29297 | } | |
29298 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29299 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29300 | } | |
29301 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29302 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29303 | } | |
29304 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29305 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29306 | } | |
29307 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29308 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29309 | } | |
29310 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29311 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29312 | } | |
29313 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29314 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29315 | } | |
29316 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29317 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29318 | } | |
29319 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29320 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29321 | } | |
29322 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29323 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29324 | } | |
29325 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29326 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29327 | } | |
29328 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29329 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29330 | } | |
29331 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29332 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29333 | } | |
29334 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29335 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29336 | } | |
29337 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29338 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29339 | } | |
29340 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29341 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29342 | } | |
29343 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29344 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29345 | } | |
29346 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29347 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29348 | } | |
29349 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29350 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29351 | } | |
29352 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29353 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29354 | } | |
29355 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29356 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29357 | } | |
29358 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29359 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29360 | } | |
29361 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29362 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29363 | } | |
29364 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29365 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29366 | } | |
29367 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29368 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29369 | } | |
29370 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29371 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29372 | } | |
29373 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29374 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29375 | } | |
29376 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29377 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29378 | } | |
29379 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29380 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29381 | } | |
29382 | 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}}; | |
29383 | 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}}; | |
29384 | static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29385 | 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}}; | |
29386 | 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}}; | |
29387 | 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}}; | |
29388 | 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}}; | |
29389 | 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}}; | |
29390 | 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}}; | |
29391 | 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}}; | |
29392 | 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}}; | |
29393 | 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}}; | |
29394 | 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}}; | |
29395 | 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}}; | |
29396 | 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}}; | |
29397 | 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}}; | |
29398 | 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}}; | |
29399 | 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}}; | |
29400 | 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}}; | |
29401 | 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}}; | |
29402 | 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}}; | |
29403 | 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}}; | |
29404 | 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}}; | |
29405 | 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}}; | |
29406 | 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}}; | |
29407 | 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}}; | |
29408 | 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}}; | |
29409 | 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}}; | |
29410 | 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}}; | |
29411 | 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}}; | |
29412 | 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}}; | |
29413 | 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}}; | |
29414 | 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}}; | |
29415 | 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}}; | |
29416 | 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}}; | |
29417 | 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}}; | |
29418 | 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}}; | |
29419 | 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}}; | |
29420 | 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}}; | |
29421 | 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}}; | |
29422 | 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}}; | |
29423 | 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}}; | |
29424 | 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}}; | |
29425 | 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}}; | |
29426 | 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}}; | |
29427 | 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}}; | |
29428 | 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}}; | |
29429 | 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}}; | |
29430 | 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}}; | |
29431 | 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}}; | |
29432 | 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}}; | |
29433 | 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}}; | |
29434 | 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}}; | |
29435 | 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}}; | |
29436 | 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}}; | |
29437 | 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}}; | |
29438 | 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}}; | |
29439 | 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}}; | |
29440 | 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}}; | |
29441 | 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}}; | |
29442 | 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}}; | |
29443 | 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}}; | |
29444 | 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}}; | |
29445 | 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}}; | |
29446 | 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}}; | |
29447 | 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}}; | |
29448 | 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}}; | |
29449 | 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}}; | |
29450 | 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}}; | |
29451 | 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}}; | |
29452 | 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}}; | |
29453 | 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}}; | |
29454 | 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}}; | |
29455 | 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}}; | |
29456 | 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}}; | |
29457 | 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}}; | |
29458 | 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}}; | |
29459 | 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}}; | |
29460 | 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}}; | |
29461 | 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}}; | |
29462 | 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}}; | |
29463 | 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}}; | |
29464 | 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}}; | |
29465 | 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}}; | |
29466 | 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}}; | |
29467 | 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}}; | |
29468 | 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}}; | |
29469 | ||
29470 | static swig_type_info *swig_types_initial[] = { | |
29471 | _swigt__p_wxLogChain, | |
29472 | _swigt__p_wxMutexGuiLocker, | |
29473 | _swigt__p_wxMetafile, | |
29474 | _swigt__p_wxFileHistory, | |
29475 | _swigt__p_wxLog, | |
29476 | _swigt__p_wxDateTime__TimeZone, | |
29477 | _swigt__p_wxMenu, | |
29478 | _swigt__p_wxEvent, | |
29479 | _swigt__p_wxConfigBase, | |
29480 | _swigt__p_wxDisplay, | |
29481 | _swigt__p_wxFileType, | |
29482 | _swigt__p_wxLogGui, | |
29483 | _swigt__p_wxFont, | |
29484 | _swigt__p_wxDataFormat, | |
29485 | _swigt__p_wxTimerEvent, | |
29486 | _swigt__p_wxCaret, | |
29487 | _swigt__p_int, | |
29488 | _swigt__p_wxSize, | |
29489 | _swigt__p_wxClipboard, | |
29490 | _swigt__p_wxStopWatch, | |
29491 | _swigt__p_wxDC, | |
29492 | _swigt__p_wxClipboardLocker, | |
29493 | _swigt__p_wxIcon, | |
29494 | _swigt__p_wxLogStderr, | |
29495 | _swigt__p_wxLogTextCtrl, | |
29496 | _swigt__p_wxTextCtrl, | |
29497 | _swigt__p_wxBusyCursor, | |
29498 | _swigt__p_wxPyTextDataObject, | |
29499 | _swigt__p_wxBitmapDataObject, | |
29500 | _swigt__p_wxTextDataObject, | |
29501 | _swigt__p_wxDataObject, | |
29502 | _swigt__p_wxPyBitmapDataObject, | |
29503 | _swigt__p_wxFileDataObject, | |
29504 | _swigt__p_wxCustomDataObject, | |
29505 | _swigt__p_wxURLDataObject, | |
29506 | _swigt__p_wxMetafileDataObject, | |
29507 | _swigt__p_wxSound, | |
29508 | _swigt__p_wxTimerRunner, | |
29509 | _swigt__p_wxLogWindow, | |
29510 | _swigt__p_wxTimeSpan, | |
29511 | _swigt__p_wxArrayString, | |
29512 | _swigt__p_wxWindowDisabler, | |
29513 | _swigt__p_wxToolTip, | |
29514 | _swigt__p_wxDataObjectComposite, | |
29515 | _swigt__p_wxFileConfig, | |
29516 | _swigt__p_wxSystemSettings, | |
29517 | _swigt__p_wxVideoMode, | |
29518 | _swigt__p_wxPyDataObjectSimple, | |
29519 | _swigt__p_wxDataObjectSimple, | |
29520 | _swigt__p_wxEvtHandler, | |
29521 | _swigt__p_wxRect, | |
29522 | _swigt__p_char, | |
29523 | _swigt__p_wxSingleInstanceChecker, | |
29524 | _swigt__p_wxFileTypeInfo, | |
29525 | _swigt__p_wxFrame, | |
29526 | _swigt__p_wxTimer, | |
29527 | _swigt__p_wxMimeTypesManager, | |
29528 | _swigt__p_wxPyArtProvider, | |
29529 | _swigt__p_wxPyTipProvider, | |
29530 | _swigt__p_wxTipProvider, | |
29531 | _swigt__p_wxJoystick, | |
29532 | _swigt__p_wxSystemOptions, | |
29533 | _swigt__p_wxPoint, | |
29534 | _swigt__p_wxJoystickEvent, | |
29535 | _swigt__p_wxCursor, | |
29536 | _swigt__p_wxObject, | |
29537 | _swigt__p_wxOutputStream, | |
29538 | _swigt__p_wxDateTime, | |
29539 | _swigt__p_wxPyDropSource, | |
29540 | _swigt__p_wxWindow, | |
29541 | _swigt__p_wxString, | |
29542 | _swigt__p_wxPyProcess, | |
29543 | _swigt__p_wxBitmap, | |
29544 | _swigt__p_wxConfig, | |
29545 | _swigt__p_wxChar, | |
29546 | _swigt__p_wxBusyInfo, | |
29547 | _swigt__p_wxPyDropTarget, | |
29548 | _swigt__p_wxPyTextDropTarget, | |
29549 | _swigt__p_wxPyFileDropTarget, | |
29550 | _swigt__p_wxProcessEvent, | |
29551 | _swigt__p_wxPyLog, | |
29552 | _swigt__p_wxLogNull, | |
29553 | _swigt__p_wxColour, | |
29554 | _swigt__p_wxByte, | |
29555 | _swigt__p_wxConfigPathChanger, | |
29556 | _swigt__p_wxPyTimer, | |
29557 | _swigt__p_wxDateSpan, | |
29558 | 0 | |
29559 | }; | |
29560 | ||
29561 | ||
29562 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29563 | ||
29564 | static swig_const_info swig_const_table[] = { | |
29565 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
29566 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29567 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29568 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29569 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
29570 | {0}}; | |
29571 | ||
29572 | #ifdef __cplusplus | |
29573 | } | |
29574 | #endif | |
29575 | ||
29576 | #ifdef __cplusplus | |
29577 | extern "C" | |
29578 | #endif | |
29579 | SWIGEXPORT(void) SWIG_init(void) { | |
29580 | static PyObject *SWIG_globals = 0; | |
29581 | static int typeinit = 0; | |
29582 | PyObject *m, *d; | |
29583 | int i; | |
29584 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29585 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29586 | d = PyModule_GetDict(m); | |
29587 | ||
29588 | if (!typeinit) { | |
29589 | for (i = 0; swig_types_initial[i]; i++) { | |
29590 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29591 | } | |
29592 | typeinit = 1; | |
29593 | } | |
29594 | SWIG_InstallConstants(d,swig_const_table); | |
29595 | ||
29596 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); | |
29597 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29598 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29599 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29600 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29601 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29602 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29603 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29604 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29605 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29606 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29607 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29608 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29609 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29610 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29611 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29612 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29613 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29614 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29615 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29616 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29617 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29618 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29619 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29620 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29621 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29622 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29623 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29624 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29625 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29626 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29627 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29628 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29629 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29630 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29631 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29632 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29633 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29634 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29635 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29636 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29637 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29638 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29639 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29640 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29641 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29642 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29643 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29644 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29645 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29646 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29647 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29648 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29649 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29650 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29651 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29652 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29653 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29654 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29655 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29656 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29657 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29658 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29659 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29660 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29661 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29662 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29663 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29664 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29665 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29666 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29667 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29668 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29669 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29670 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29671 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29672 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29673 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29674 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29675 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29676 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29677 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29678 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29679 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29680 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29681 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29682 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29683 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29684 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29685 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29686 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
29687 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
29688 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29689 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29690 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
29691 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); | |
29692 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29693 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29694 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
29695 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
29696 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); | |
29697 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29698 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29699 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29700 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29701 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29702 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29703 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29704 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29705 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29706 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29707 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29708 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29709 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29710 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29711 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29712 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29713 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29714 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29715 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29716 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29717 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29718 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29719 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29720 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29721 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29722 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29723 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29724 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29725 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29726 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29727 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29728 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29729 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29730 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29731 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29732 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29733 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29734 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29735 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29736 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29737 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29738 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29739 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29740 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
29741 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
29742 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); | |
29743 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29744 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29745 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
29746 | ||
29747 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29748 | ||
29749 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); | |
29750 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29751 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29752 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29753 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29754 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29755 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
29756 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
29757 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29758 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29759 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
29760 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); | |
29761 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29762 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29763 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29764 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29765 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29766 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29767 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
29768 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
29769 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29770 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29771 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29772 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29773 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29774 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29775 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29776 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29777 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29778 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29779 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29780 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29781 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29782 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29783 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29784 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29785 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29786 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29787 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29788 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29789 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29790 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29791 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29792 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29793 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29794 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29795 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29796 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29797 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29798 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29799 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29800 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29801 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29802 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29803 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29804 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29805 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29806 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29807 | ||
29808 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29809 | ||
29810 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); | |
29811 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29812 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29813 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29814 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29815 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29816 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29817 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29818 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
29819 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); | |
29820 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
29821 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); | |
29822 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29823 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29824 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29825 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29826 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29827 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29828 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29829 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29830 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29831 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29832 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29833 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29834 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29835 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29836 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29837 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29838 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29839 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29840 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29841 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29842 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29843 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29844 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29845 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29846 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29847 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29848 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29849 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29850 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29851 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29852 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29853 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29854 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29855 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29856 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29857 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29858 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29859 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29860 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29861 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29862 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29863 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29864 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29865 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29866 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29867 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29868 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29869 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29870 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29871 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29872 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29873 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29874 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29875 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29876 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29877 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29878 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29879 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29880 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29881 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29882 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29883 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29884 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29885 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29886 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29887 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29888 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29889 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29890 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29891 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
29892 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
29893 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
29894 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
29895 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
29896 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
29897 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
29898 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
29899 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
29900 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
29901 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
29902 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
29903 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
29904 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
29905 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
29906 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
29907 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
29908 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
29909 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
29910 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
29911 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
29912 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
29913 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
29914 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
29915 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
29916 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
29917 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
29918 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
29919 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
29920 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
29921 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
29922 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
29923 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
29924 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
29925 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
29926 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
29927 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
29928 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
29929 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
29930 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
29931 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
29932 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
29933 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
29934 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
29935 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
29936 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
29937 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
29938 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
29939 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
29940 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
29941 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
29942 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
29943 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
29944 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
29945 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
29946 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
29947 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
29948 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
29949 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
29950 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
29951 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
29952 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
29953 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
29954 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
29955 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
29956 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
29957 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
29958 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
29959 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
29960 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
29961 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
29962 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
29963 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
29964 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
29965 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
29966 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
29967 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
29968 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
29969 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
29970 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
29971 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
29972 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
29973 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
29974 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
29975 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
29976 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); | |
29977 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); | |
29978 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
29979 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
29980 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
29981 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
29982 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
29983 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
29984 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
29985 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
29986 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
29987 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
29988 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
29989 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
29990 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
29991 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
29992 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
29993 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
29994 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
29995 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
29996 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
29997 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
29998 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); | |
29999 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
30000 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
30001 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
30002 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
30003 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
30004 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
30005 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
30006 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
30007 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
30008 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
30009 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
30010 | ||
30011 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30012 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30013 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30014 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30015 | ||
30016 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
30017 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); | |
30018 | } | |
30019 |