]>
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] | |
b1f29bf7 RD |
236 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27] |
237 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[28] | |
238 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[29] | |
239 | #define SWIGTYPE_p_wxTextDataObject swig_types[30] | |
240 | #define SWIGTYPE_p_wxDataObject swig_types[31] | |
d55e5bfc RD |
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] | |
b1f29bf7 RD |
292 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[83] |
293 | #define SWIGTYPE_p_wxPyTimer swig_types[84] | |
294 | #define SWIGTYPE_p_wxDateSpan swig_types[85] | |
295 | static swig_type_info *swig_types[87]; | |
d55e5bfc RD |
296 | |
297 | /* -------- TYPES TABLE (END) -------- */ | |
298 | ||
299 | ||
300 | /*----------------------------------------------- | |
301 | @(target):= _misc_.so | |
302 | ------------------------------------------------*/ | |
303 | #define SWIG_init init_misc_ | |
304 | ||
305 | #define SWIG_name "_misc_" | |
306 | ||
307 | /* Auxiliar swig macros */ | |
308 | ||
309 | #ifdef __cplusplus | |
310 | #define SWIGSTATICINLINE(a) static inline a | |
311 | #define SWIGSTATIC(a) static a | |
312 | #define swig_new_array(type, size) (new type[(size)]) | |
313 | #define swig_delete_array(cptr) delete[] cptr | |
314 | #define swig_const_cast(type,a) const_cast<type>(a) | |
315 | #define swig_static_cast(type,a) static_cast<type>(a) | |
316 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
317 | ||
318 | #ifdef HAVE_NUMERIC_CAST | |
319 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
320 | #else | |
321 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
322 | #endif | |
323 | ||
324 | #else /* C case */ | |
325 | ||
326 | #define SWIGSTATICINLINE(a) static a | |
327 | #define SWIGSTATIC(a) static a | |
328 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
329 | #define swig_delete_array(cptr) free((char*)cptr) | |
330 | #define swig_const_cast(type,a) (type)(a) | |
331 | #define swig_static_cast(type,a) (type)(a) | |
332 | #define swig_reinterpret_cast(type,a) (type)(a) | |
333 | #define swig_numeric_cast(type,a) (type)(a) | |
334 | ||
335 | #endif /* __cplusplus */ | |
336 | ||
337 | ||
338 | #define SWIG_FromSignedChar PyInt_FromLong | |
339 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
340 | #define SWIG_FromShort PyInt_FromLong | |
341 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
342 | #define SWIG_FromInt PyInt_FromLong | |
343 | #define SWIG_FromLong PyInt_FromLong | |
344 | #define SWIG_FromFloat PyFloat_FromDouble | |
345 | #define SWIG_FromDouble PyFloat_FromDouble | |
346 | #define SWIG_FromFloat PyFloat_FromDouble | |
347 | #define SWIG_FromDouble PyFloat_FromDouble | |
348 | ||
349 | ||
350 | #include "wx/wxPython/wxPython.h" | |
351 | #include "wx/wxPython/pyclasses.h" | |
352 | #include "wx/wxPython/pyistream.h" | |
353 | ||
354 | ||
355 | static const wxString wxPyEmptyString(wxEmptyString); | |
356 | ||
357 | ||
358 | ||
359 | #include <limits.h> | |
360 | ||
361 | ||
362 | SWIGSTATICINLINE(long) | |
363 | SWIG_CheckLongInRange(long value, const char* type, | |
364 | long min_value, long max_value) | |
365 | { | |
366 | if (!PyErr_Occurred()) { | |
367 | if (value < min_value) { | |
368 | PyObject *err = | |
369 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
370 | value, type, min_value); | |
371 | ||
372 | PyErr_SetObject(PyExc_OverflowError, err); | |
373 | Py_DECREF(err); | |
374 | } else if (value > max_value) { | |
375 | PyObject *err = | |
376 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
377 | value, type, max_value); | |
378 | PyErr_SetObject(PyExc_OverflowError, err); | |
379 | Py_DECREF(err); | |
380 | } | |
381 | } | |
382 | return value; | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATICINLINE(long) | |
387 | SWIG_AsLong(PyObject * obj) | |
388 | { | |
389 | if (PyNumber_Check(obj)) | |
390 | return PyInt_AsLong(obj); | |
391 | else { | |
392 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
393 | obj->ob_type->tp_name); | |
394 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
395 | Py_DECREF(errmsg); | |
396 | return 0; | |
397 | } | |
398 | } | |
399 | ||
400 | ||
401 | #if INT_MAX != LONG_MAX | |
402 | SWIGSTATICINLINE(int) | |
403 | SWIG_AsInt(PyObject *obj) | |
404 | { | |
405 | return swig_numeric_cast(int, | |
406 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
407 | "int", INT_MIN, INT_MAX)); | |
408 | } | |
409 | #else | |
410 | #define SWIG_AsInt SWIG_AsLong | |
411 | #endif | |
412 | ||
413 | ||
414 | SWIGSTATICINLINE(int) | |
415 | SWIG_CheckInt(PyObject* obj) | |
416 | { | |
417 | SWIG_AsInt(obj); | |
418 | if (PyErr_Occurred()) { | |
419 | PyErr_Clear(); | |
420 | return 0; | |
421 | } else { | |
422 | return 1; | |
423 | } | |
424 | } | |
425 | ||
426 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
427 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
428 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
429 | ||
430 | SWIGSTATICINLINE(int) | |
431 | SWIG_CheckLong(PyObject* obj) | |
432 | { | |
433 | SWIG_AsLong(obj); | |
434 | if (PyErr_Occurred()) { | |
435 | PyErr_Clear(); | |
436 | return 0; | |
437 | } else { | |
438 | return 1; | |
439 | } | |
440 | } | |
441 | ||
442 | ||
443 | SWIGSTATICINLINE(bool) | |
444 | SWIG_AsBool(PyObject *obj) | |
445 | { | |
446 | return PyObject_IsTrue(obj) ? true : false; | |
447 | } | |
448 | ||
449 | ||
450 | SWIGSTATICINLINE(int) | |
451 | SWIG_CheckBool(PyObject* obj) | |
452 | { | |
453 | SWIG_AsBool(obj); | |
454 | if (PyErr_Occurred()) { | |
455 | PyErr_Clear(); | |
456 | return 0; | |
457 | } else { | |
458 | return 1; | |
459 | } | |
460 | } | |
461 | ||
462 | ||
463 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
464 | PyObject* o2; | |
465 | PyObject* o3; | |
466 | ||
467 | if (!target) { | |
468 | target = o; | |
469 | } else if (target == Py_None) { | |
470 | Py_DECREF(Py_None); | |
471 | target = o; | |
472 | } else { | |
473 | if (!PyTuple_Check(target)) { | |
474 | o2 = target; | |
475 | target = PyTuple_New(1); | |
476 | PyTuple_SetItem(target, 0, o2); | |
477 | } | |
478 | o3 = PyTuple_New(1); | |
479 | PyTuple_SetItem(o3, 0, o); | |
480 | ||
481 | o2 = target; | |
482 | target = PySequence_Concat(o2, o3); | |
483 | Py_DECREF(o2); | |
484 | Py_DECREF(o3); | |
485 | } | |
486 | return target; | |
487 | } | |
488 | ||
489 | ||
490 | SWIGSTATICINLINE(unsigned long) | |
491 | SWIG_AsUnsignedLong(PyObject * obj) | |
492 | { | |
493 | if (PyLong_Check(obj)) { | |
494 | return PyLong_AsUnsignedLong(obj); | |
495 | } else { | |
496 | long i = SWIG_AsLong(obj); | |
497 | if ( !PyErr_Occurred() && (i < 0)) { | |
498 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
499 | } | |
500 | return i; | |
501 | } | |
502 | } | |
503 | ||
504 | ||
505 | SWIGSTATICINLINE(int) | |
506 | SWIG_CheckUnsignedLong(PyObject* obj) | |
507 | { | |
508 | SWIG_AsUnsignedLong(obj); | |
509 | if (PyErr_Occurred()) { | |
510 | PyErr_Clear(); | |
511 | return 0; | |
512 | } else { | |
513 | return 1; | |
514 | } | |
515 | } | |
516 | ||
517 | ||
518 | SWIGSTATICINLINE(PyObject* ) | |
519 | SWIG_FromUnsignedLong(unsigned long value) | |
520 | { | |
521 | return (value > LONG_MAX) ? | |
522 | PyLong_FromUnsignedLong(value) | |
523 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
524 | } | |
525 | ||
526 | ||
527 | bool wxThread_IsMain() { | |
528 | #ifdef WXP_WITH_THREAD | |
529 | return wxThread::IsMain(); | |
530 | #else | |
531 | return True; | |
532 | #endif | |
533 | } | |
534 | ||
535 | ||
536 | int wxCaret_GetBlinkTime() { | |
537 | return wxCaret::GetBlinkTime(); | |
538 | } | |
539 | ||
540 | void wxCaret_SetBlinkTime(int milliseconds) { | |
541 | wxCaret::SetBlinkTime(milliseconds); | |
542 | } | |
543 | ||
544 | ||
545 | #include <wx/snglinst.h> | |
546 | ||
547 | ||
548 | #ifdef __WXMSW__ | |
549 | #include <wx/msw/private.h> | |
550 | #include <wx/dynload.h> | |
551 | #endif | |
552 | ||
553 | ||
554 | ||
555 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
556 | { | |
557 | #ifdef __WXMSW__ | |
558 | ||
559 | switch (method) | |
560 | { | |
561 | case 1: | |
562 | // This one only partially works. Appears to be an undocumented | |
563 | // "standard" convention that not all widgets adhear to. For | |
564 | // example, for some widgets backgrounds or non-client areas may | |
565 | // not be painted. | |
566 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
567 | break; | |
568 | ||
569 | case 2: | |
570 | // This one works much better, except for on XP. On Win2k nearly | |
571 | // all widgets and their children are captured correctly[**]. On | |
572 | // XP with Themes activated most native widgets draw only | |
573 | // partially, if at all. Without themes it works just like on | |
574 | // Win2k. | |
575 | // | |
576 | // ** For example the radio buttons in a wxRadioBox are not its | |
577 | // children by default, but you can capture it via the panel | |
578 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
579 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
580 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
581 | PRF_ERASEBKGND | PRF_OWNED ); | |
582 | break; | |
583 | ||
584 | case 3: | |
585 | // This one is only defined in the latest SDK and is only | |
586 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
587 | // so I expect that it will work similar to the above. Since it | |
588 | // is avaialble only on XP, it can't be compiled like this and | |
589 | // will have to be loaded dynamically. | |
590 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
591 | ||
592 | // fall through | |
593 | ||
594 | case 4: | |
595 | // Use PrintWindow if available, or fallback to WM_PRINT | |
596 | // otherwise. Unfortunately using PrintWindow is even worse than | |
597 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
598 | // at all, with or without Themes. | |
599 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
600 | static bool s_triedToLoad = False; | |
601 | static PrintWindow_t pfnPrintWindow = NULL; | |
602 | if ( !s_triedToLoad ) | |
603 | { | |
604 | ||
605 | s_triedToLoad = True; | |
606 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
607 | if ( dllUser32.IsLoaded() ) | |
608 | { | |
609 | wxLogNull nolog; // Don't report errors here | |
610 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
611 | } | |
612 | } | |
613 | if (pfnPrintWindow) | |
614 | { | |
615 | printf("Using PrintWindow\n"); | |
616 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
617 | } | |
618 | else | |
619 | { | |
620 | printf("Using WM_PRINT\n"); | |
621 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
622 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
623 | } | |
624 | } | |
625 | #endif | |
626 | } | |
627 | ||
628 | ||
629 | ||
630 | #include <wx/tipdlg.h> | |
631 | ||
632 | ||
633 | class wxPyTipProvider : public wxTipProvider { | |
634 | public: | |
635 | wxPyTipProvider(size_t currentTip) | |
636 | : wxTipProvider(currentTip) {} | |
637 | ||
638 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
639 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
640 | PYPRIVATE; | |
641 | }; | |
642 | ||
643 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
644 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
645 | ||
646 | ||
647 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
648 | ||
649 | void wxPyTimer::Notify() { | |
650 | bool found; | |
651 | bool blocked = wxPyBeginBlockThreads(); | |
652 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
653 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
654 | wxPyEndBlockThreads(blocked); | |
655 | if (! found) | |
656 | wxTimer::Notify(); | |
657 | } | |
658 | void wxPyTimer::base_Notify() { | |
659 | wxTimer::Notify(); | |
660 | } | |
661 | ||
662 | ||
663 | ||
664 | SWIGSTATICINLINE(PyObject *) | |
665 | SWIG_FromCharPtr(const char* cptr) | |
666 | { | |
667 | size_t size = cptr ? strlen(cptr) : 0; | |
668 | if (cptr) { | |
669 | if (size > INT_MAX) { | |
670 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
671 | SWIG_TypeQuery("char *"), 0); | |
672 | } else { | |
673 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
674 | } | |
675 | } else { | |
676 | Py_INCREF(Py_None); | |
677 | return Py_None; | |
678 | } | |
679 | } | |
680 | ||
681 | ||
682 | SWIGSTATICINLINE(unsigned long) | |
683 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
684 | unsigned long max_value) | |
685 | { | |
686 | if (!PyErr_Occurred()) { | |
687 | if (value > max_value) { | |
688 | PyObject *err = | |
689 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
690 | value, type, max_value); | |
691 | PyErr_SetObject(PyExc_OverflowError, err); | |
692 | Py_DECREF(err); | |
693 | } | |
694 | } | |
695 | return value; | |
696 | } | |
697 | ||
698 | ||
699 | #if UINT_MAX != ULONG_MAX | |
700 | SWIGSTATICINLINE(unsigned int) | |
701 | SWIG_AsUnsignedInt(PyObject *obj) | |
702 | { | |
703 | return swig_numeric_cast(unsigned int, | |
704 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
705 | "unsigned int", UINT_MAX)); | |
706 | } | |
707 | #else | |
708 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
709 | #endif | |
710 | ||
711 | ||
712 | SWIGSTATICINLINE(int) | |
713 | SWIG_CheckUnsignedInt(PyObject* obj) | |
714 | { | |
715 | SWIG_AsUnsignedInt(obj); | |
716 | if (PyErr_Occurred()) { | |
717 | PyErr_Clear(); | |
718 | return 0; | |
719 | } else { | |
720 | return 1; | |
721 | } | |
722 | } | |
723 | ||
724 | wxString Log_TimeStamp(){ | |
725 | wxString msg; | |
726 | wxLog::TimeStamp(&msg); | |
727 | return msg; | |
728 | } | |
729 | void wxLog_Destroy(wxLog *self){ delete self; } | |
730 | ||
731 | // A wxLog class that can be derived from in wxPython | |
732 | class wxPyLog : public wxLog { | |
733 | public: | |
734 | wxPyLog() : wxLog() {} | |
735 | ||
736 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
737 | bool found; | |
738 | bool blocked = wxPyBeginBlockThreads(); | |
739 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
740 | PyObject* s = wx2PyString(szString); | |
741 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
742 | Py_DECREF(s); | |
743 | } | |
744 | wxPyEndBlockThreads(blocked); | |
745 | if (! found) | |
746 | wxLog::DoLog(level, szString, t); | |
747 | } | |
748 | ||
749 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
750 | bool found; | |
751 | bool blocked = wxPyBeginBlockThreads(); | |
752 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
753 | PyObject* s = wx2PyString(szString); | |
754 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
755 | Py_DECREF(s); | |
756 | } | |
757 | wxPyEndBlockThreads(blocked); | |
758 | if (! found) | |
759 | wxLog::DoLogString(szString, t); | |
760 | } | |
761 | ||
762 | PYPRIVATE; | |
763 | }; | |
764 | ||
765 | ||
766 | ||
767 | ||
768 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
769 | ||
770 | ||
771 | #include <wx/joystick.h> | |
772 | ||
773 | ||
774 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
775 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
776 | class wxJoystick : public wxObject { | |
777 | public: | |
778 | wxJoystick(int joystick = wxJOYSTICK1) { | |
779 | bool blocked = wxPyBeginBlockThreads(); | |
780 | PyErr_SetString(PyExc_NotImplementedError, | |
781 | "wxJoystick is not available on this platform."); | |
782 | wxPyEndBlockThreads(blocked); | |
783 | } | |
784 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
785 | int GetZPosition() { return -1; } | |
786 | int GetButtonState() { return -1; } | |
787 | int GetPOVPosition() { return -1; } | |
788 | int GetPOVCTSPosition() { return -1; } | |
789 | int GetRudderPosition() { return -1; } | |
790 | int GetUPosition() { return -1; } | |
791 | int GetVPosition() { return -1; } | |
792 | int GetMovementThreshold() { return -1; } | |
793 | void SetMovementThreshold(int threshold) {} | |
794 | ||
795 | bool IsOk(void) { return False; } | |
796 | int GetNumberJoysticks() { return -1; } | |
797 | int GetManufacturerId() { return -1; } | |
798 | int GetProductId() { return -1; } | |
799 | wxString GetProductName() { return ""; } | |
800 | int GetXMin() { return -1; } | |
801 | int GetYMin() { return -1; } | |
802 | int GetZMin() { return -1; } | |
803 | int GetXMax() { return -1; } | |
804 | int GetYMax() { return -1; } | |
805 | int GetZMax() { return -1; } | |
806 | int GetNumberButtons() { return -1; } | |
807 | int GetNumberAxes() { return -1; } | |
808 | int GetMaxButtons() { return -1; } | |
809 | int GetMaxAxes() { return -1; } | |
810 | int GetPollingMin() { return -1; } | |
811 | int GetPollingMax() { return -1; } | |
812 | int GetRudderMin() { return -1; } | |
813 | int GetRudderMax() { return -1; } | |
814 | int GetUMin() { return -1; } | |
815 | int GetUMax() { return -1; } | |
816 | int GetVMin() { return -1; } | |
817 | int GetVMax() { return -1; } | |
818 | ||
819 | bool HasRudder() { return False; } | |
820 | bool HasZ() { return False; } | |
821 | bool HasU() { return False; } | |
822 | bool HasV() { return False; } | |
823 | bool HasPOV() { return False; } | |
824 | bool HasPOV4Dir() { return False; } | |
825 | bool HasPOVCTS() { return False; } | |
826 | ||
827 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } | |
828 | bool ReleaseCapture() { return False; } | |
829 | }; | |
830 | #endif | |
831 | ||
832 | ||
833 | #include <wx/sound.h> | |
834 | ||
835 | ||
836 | #if !wxUSE_SOUND | |
837 | // A C++ stub class for wxWave for platforms that don't have it. | |
838 | class wxSound : public wxObject | |
839 | { | |
840 | public: | |
841 | wxSound() { | |
842 | bool blocked = wxPyBeginBlockThreads(); | |
843 | PyErr_SetString(PyExc_NotImplementedError, | |
844 | "wxSound is not available on this platform."); | |
845 | wxPyEndBlockThreads(blocked); | |
846 | } | |
b1f29bf7 | 847 | wxSound(const wxString&/*, bool*/) { |
d55e5bfc RD |
848 | bool blocked = wxPyBeginBlockThreads(); |
849 | PyErr_SetString(PyExc_NotImplementedError, | |
850 | "wxSound is not available on this platform."); | |
851 | wxPyEndBlockThreads(blocked); | |
852 | } | |
853 | wxSound(int, const wxByte*) { | |
854 | bool blocked = wxPyBeginBlockThreads(); | |
855 | PyErr_SetString(PyExc_NotImplementedError, | |
856 | "wxSound is not available on this platform."); | |
857 | wxPyEndBlockThreads(blocked); | |
858 | } | |
859 | ||
860 | ~wxSound() {}; | |
861 | ||
b1f29bf7 | 862 | bool Create(const wxString&/*, bool*/) { return false; } |
d55e5bfc RD |
863 | bool Create(int, const wxByte*) { return false; }; |
864 | bool IsOk() { return false; }; | |
865 | bool Play(unsigned) const { return false; } | |
866 | static bool Play(const wxString&, unsigned) { return false; } | |
867 | static void Stop() {} | |
868 | }; | |
869 | ||
870 | #endif | |
871 | ||
b1f29bf7 RD |
872 | wxSound *new_wxSound(wxString const &fileName){ |
873 | if (fileName.Length() == 0) | |
874 | return new wxSound; | |
875 | else | |
876 | return new wxSound(fileName); | |
877 | } | |
878 | wxSound *new_wxSound(PyObject *data){ | |
879 | unsigned char* buffer; int size; | |
880 | wxSound *sound = NULL; | |
881 | ||
882 | bool blocked = wxPyBeginBlockThreads(); | |
883 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
884 | goto done; | |
885 | sound = new wxSound(size, buffer); | |
886 | done: | |
887 | wxPyEndBlockThreads(blocked); | |
888 | return sound; | |
889 | } | |
890 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
891 | #ifndef __WXMAC__ | |
892 | unsigned char* buffer; | |
893 | int size; | |
894 | bool rv = False; | |
895 | ||
896 | bool blocked = wxPyBeginBlockThreads(); | |
897 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
898 | goto done; | |
899 | rv = self->Create(size, buffer); | |
900 | done: | |
901 | wxPyEndBlockThreads(blocked); | |
902 | return rv; | |
903 | #else | |
904 | bool blocked = wxPyBeginBlockThreads(); | |
905 | PyErr_SetString(PyExc_NotImplementedError, | |
906 | "Create from data is not available on this platform."); | |
907 | wxPyEndBlockThreads(blocked); | |
908 | return False; | |
909 | #endif | |
910 | } | |
d55e5bfc RD |
911 | |
912 | #include <wx/mimetype.h> | |
913 | ||
914 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
915 | wxString str; | |
916 | if (self->GetMimeType(&str)) | |
917 | return wx2PyString(str); | |
918 | else | |
919 | RETURN_NONE(); | |
920 | } | |
921 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
922 | wxArrayString arr; | |
923 | if (self->GetMimeTypes(arr)) | |
924 | return wxArrayString2PyList_helper(arr); | |
925 | else | |
926 | RETURN_NONE(); | |
927 | } | |
928 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
929 | wxArrayString arr; | |
930 | if (self->GetExtensions(arr)) | |
931 | return wxArrayString2PyList_helper(arr); | |
932 | else | |
933 | RETURN_NONE(); | |
934 | } | |
935 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
936 | wxIconLocation loc; | |
937 | if (self->GetIcon(&loc)) | |
938 | return new wxIcon(loc); | |
939 | else | |
940 | return NULL; | |
941 | } | |
942 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
943 | wxIconLocation loc; | |
944 | if (self->GetIcon(&loc)) { | |
945 | wxString iconFile = loc.GetFileName(); | |
946 | int iconIndex = -1; | |
947 | ||
948 | iconIndex = loc.GetIndex(); | |
949 | ||
950 | // Make a tuple and put the values in it | |
951 | bool blocked = wxPyBeginBlockThreads(); | |
952 | PyObject* tuple = PyTuple_New(3); | |
953 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
954 | wxT("wxIcon"), True)); | |
955 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
956 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
957 | wxPyEndBlockThreads(blocked); | |
958 | return tuple; | |
959 | } | |
960 | else | |
961 | RETURN_NONE(); | |
962 | } | |
963 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
964 | wxString str; | |
965 | if (self->GetDescription(&str)) | |
966 | return wx2PyString(str); | |
967 | else | |
968 | RETURN_NONE(); | |
969 | } | |
970 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
971 | wxString str; | |
972 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
973 | return wx2PyString(str); | |
974 | else | |
975 | RETURN_NONE(); | |
976 | } | |
977 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
978 | wxString str; | |
979 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
980 | return wx2PyString(str); | |
981 | else | |
982 | RETURN_NONE(); | |
983 | } | |
984 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
985 | wxArrayString verbs; | |
986 | wxArrayString commands; | |
987 | if (self->GetAllCommands(&verbs, &commands, | |
988 | wxFileType::MessageParameters(filename, mimetype))) { | |
989 | bool blocked = wxPyBeginBlockThreads(); | |
990 | PyObject* tuple = PyTuple_New(2); | |
991 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
992 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
993 | wxPyEndBlockThreads(blocked); | |
994 | return tuple; | |
995 | } | |
996 | else | |
997 | RETURN_NONE(); | |
998 | } | |
999 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1000 | return wxFileType::ExpandCommand(command, | |
1001 | wxFileType::MessageParameters(filename, mimetype)); | |
1002 | } | |
1003 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1004 | wxArrayString arr; | |
1005 | self->EnumAllFileTypes(arr); | |
1006 | return wxArrayString2PyList_helper(arr); | |
1007 | } | |
1008 | ||
1009 | #include <wx/artprov.h> | |
1010 | ||
1011 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1012 | static const wxString wxPyART_MENU(wxART_MENU); | |
1013 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1014 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1015 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1016 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
1017 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
1018 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1019 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1020 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1021 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1022 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1023 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1024 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1025 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1026 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1027 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1028 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1029 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1030 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1031 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1032 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1033 | static const wxString wxPyART_HELP(wxART_HELP); | |
1034 | static const wxString wxPyART_TIP(wxART_TIP); | |
1035 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1036 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1037 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1038 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1039 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1040 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1041 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1042 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1043 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1044 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1045 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1046 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1047 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1048 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1049 | // Python aware wxArtProvider | |
1050 | class wxPyArtProvider : public wxArtProvider { | |
1051 | public: | |
1052 | ||
1053 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1054 | const wxArtClient& client, | |
1055 | const wxSize& size) { | |
1056 | wxBitmap rval = wxNullBitmap; | |
1057 | bool blocked = wxPyBeginBlockThreads(); | |
1058 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1059 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1060 | PyObject* ro; | |
1061 | wxBitmap* ptr; | |
1062 | PyObject* s1, *s2; | |
1063 | s1 = wx2PyString(id); | |
1064 | s2 = wx2PyString(client); | |
1065 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1066 | Py_DECREF(so); | |
1067 | Py_DECREF(s1); | |
1068 | Py_DECREF(s2); | |
1069 | if (ro) { | |
1070 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1071 | rval = *ptr; | |
1072 | Py_DECREF(ro); | |
1073 | } | |
1074 | } | |
1075 | wxPyEndBlockThreads(blocked); | |
1076 | return rval; | |
1077 | } | |
1078 | ||
1079 | PYPRIVATE; | |
1080 | }; | |
1081 | ||
1082 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1083 | ||
1084 | ||
1085 | ||
1086 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1087 | PyObject* ret = PyTuple_New(3); | |
1088 | if (ret) { | |
1089 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1090 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1091 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1092 | } | |
1093 | return ret; | |
1094 | } | |
1095 | ||
1096 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1097 | bool cont; | |
1098 | long index = 0; | |
1099 | wxString value; | |
1100 | ||
1101 | cont = self->GetFirstGroup(value, index); | |
1102 | return __EnumerationHelper(cont, value, index); | |
1103 | } | |
1104 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1105 | bool cont; | |
1106 | wxString value; | |
1107 | ||
1108 | cont = self->GetNextGroup(value, index); | |
1109 | return __EnumerationHelper(cont, value, index); | |
1110 | } | |
1111 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1112 | bool cont; | |
1113 | long index = 0; | |
1114 | wxString value; | |
1115 | ||
1116 | cont = self->GetFirstEntry(value, index); | |
1117 | return __EnumerationHelper(cont, value, index); | |
1118 | } | |
1119 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1120 | bool cont; | |
1121 | wxString value; | |
1122 | ||
1123 | cont = self->GetNextEntry(value, index); | |
1124 | return __EnumerationHelper(cont, value, index); | |
1125 | } | |
1126 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1127 | long rv; | |
1128 | self->Read(key, &rv, defaultVal); | |
1129 | return rv; | |
1130 | } | |
1131 | ||
1132 | SWIGSTATICINLINE(double) | |
1133 | SWIG_AsDouble(PyObject *obj) | |
1134 | { | |
1135 | if (PyNumber_Check(obj)) | |
1136 | return PyFloat_AsDouble(obj); | |
1137 | else { | |
1138 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1139 | obj->ob_type->tp_name); | |
1140 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1141 | Py_DECREF(errmsg); | |
1142 | return 0; | |
1143 | } | |
1144 | } | |
1145 | ||
1146 | ||
1147 | SWIGSTATICINLINE(int) | |
1148 | SWIG_CheckDouble(PyObject* obj) | |
1149 | { | |
1150 | SWIG_AsDouble(obj); | |
1151 | if (PyErr_Occurred()) { | |
1152 | PyErr_Clear(); | |
1153 | return 0; | |
1154 | } else { | |
1155 | return 1; | |
1156 | } | |
1157 | } | |
1158 | ||
1159 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1160 | double rv; | |
1161 | self->Read(key, &rv, defaultVal); | |
1162 | return rv; | |
1163 | } | |
1164 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1165 | bool rv; | |
1166 | self->Read(key, &rv, defaultVal); | |
1167 | return rv; | |
1168 | } | |
1169 | ||
1170 | #include <wx/datetime.h> | |
1171 | ||
1172 | ||
1173 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1174 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1175 | ||
1176 | #define LOCAL_TZ wxDateTime::Local | |
1177 | ||
1178 | ||
1179 | #if UINT_MAX < LONG_MAX | |
1180 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1181 | #else | |
1182 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1183 | #endif | |
1184 | ||
1185 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1186 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1187 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1188 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1189 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1190 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
1191 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1192 | return (*self < *other); | |
1193 | } | |
1194 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1195 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1196 | return (*self <= *other); | |
1197 | } | |
1198 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1199 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1200 | return (*self > *other); | |
1201 | } | |
1202 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1203 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1204 | return (*self >= *other); | |
1205 | } | |
1206 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1207 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1208 | return (*self == *other); | |
1209 | } | |
1210 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1211 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1212 | return (*self != *other); | |
1213 | } | |
1214 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1215 | const wxChar* rv; | |
1216 | const wxChar* _date = date; | |
1217 | rv = self->ParseRfc822Date(_date); | |
1218 | if (rv == NULL) return -1; | |
1219 | return rv - _date; | |
1220 | } | |
1221 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1222 | const wxChar* rv; | |
1223 | const wxChar* _date = date; | |
1224 | rv = self->ParseFormat(_date, format, dateDef); | |
1225 | if (rv == NULL) return -1; | |
1226 | return rv - _date; | |
1227 | } | |
1228 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1229 | const wxChar* rv; | |
1230 | const wxChar* _datetime = datetime; | |
1231 | rv = self->ParseDateTime(_datetime); | |
1232 | if (rv == NULL) return -1; | |
1233 | return rv - _datetime; | |
1234 | } | |
1235 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1236 | const wxChar* rv; | |
1237 | const wxChar* _date = date; | |
1238 | rv = self->ParseDate(_date); | |
1239 | if (rv == NULL) return -1; | |
1240 | return rv - _date; | |
1241 | } | |
1242 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1243 | const wxChar* rv; | |
1244 | const wxChar* _time = time; | |
1245 | rv = self->ParseTime(_time); | |
1246 | if (rv == NULL) return -1; | |
1247 | return rv - _time; | |
1248 | } | |
1249 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1250 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1251 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1252 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
1253 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } | |
1254 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } | |
1255 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } | |
1256 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } | |
1257 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } | |
1258 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } | |
1259 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
1260 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1261 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1262 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
1263 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } | |
1264 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } | |
1265 | ||
1266 | #include <wx/dataobj.h> | |
1267 | ||
1268 | // Create a new class for wxPython to use | |
1269 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1270 | public: | |
1271 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1272 | : wxDataObjectSimple(format) {} | |
1273 | ||
1274 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1275 | bool GetDataHere(void *buf) const; | |
1276 | bool SetData(size_t len, const void *buf) const; | |
1277 | PYPRIVATE; | |
1278 | }; | |
1279 | ||
1280 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1281 | ||
1282 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1283 | // We need to get the data for this object and write it to buf. I think | |
1284 | // the best way to do this for wxPython is to have the Python method | |
1285 | // return either a string or None and then act appropriately with the | |
1286 | // C++ version. | |
1287 | ||
1288 | bool rval = False; | |
1289 | bool blocked = wxPyBeginBlockThreads(); | |
1290 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1291 | PyObject* ro; | |
1292 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1293 | if (ro) { | |
1294 | rval = (ro != Py_None && PyString_Check(ro)); | |
1295 | if (rval) | |
1296 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1297 | Py_DECREF(ro); | |
1298 | } | |
1299 | } | |
1300 | wxPyEndBlockThreads(blocked); | |
1301 | return rval; | |
1302 | } | |
1303 | ||
1304 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1305 | // For this one we simply need to make a string from buf and len | |
1306 | // and send it to the Python method. | |
1307 | bool rval = False; | |
1308 | bool blocked = wxPyBeginBlockThreads(); | |
1309 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1310 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1311 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1312 | Py_DECREF(data); | |
1313 | } | |
1314 | wxPyEndBlockThreads(blocked); | |
1315 | return rval; | |
1316 | } | |
1317 | ||
1318 | // Create a new class for wxPython to use | |
1319 | class wxPyTextDataObject : public wxTextDataObject { | |
1320 | public: | |
1321 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1322 | : wxTextDataObject(text) {} | |
1323 | ||
1324 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1325 | DEC_PYCALLBACK_STRING__const(GetText); | |
1326 | DEC_PYCALLBACK__STRING(SetText); | |
1327 | PYPRIVATE; | |
1328 | }; | |
1329 | ||
1330 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1331 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1332 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1333 | ||
1334 | ||
1335 | // Create a new class for wxPython to use | |
1336 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1337 | public: | |
1338 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1339 | : wxBitmapDataObject(bitmap) {} | |
1340 | ||
1341 | wxBitmap GetBitmap() const; | |
1342 | void SetBitmap(const wxBitmap& bitmap); | |
1343 | PYPRIVATE; | |
1344 | }; | |
1345 | ||
1346 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1347 | wxBitmap* rval = &wxNullBitmap; | |
1348 | bool blocked = wxPyBeginBlockThreads(); | |
1349 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1350 | PyObject* ro; | |
1351 | wxBitmap* ptr; | |
1352 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1353 | if (ro) { | |
1354 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1355 | rval = ptr; | |
1356 | Py_DECREF(ro); | |
1357 | } | |
1358 | } | |
1359 | wxPyEndBlockThreads(blocked); | |
1360 | return *rval; | |
1361 | } | |
1362 | ||
1363 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1364 | bool blocked = wxPyBeginBlockThreads(); | |
1365 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
1366 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); | |
1367 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
1368 | Py_DECREF(bo); | |
1369 | } | |
1370 | wxPyEndBlockThreads(blocked); | |
1371 | } | |
1372 | ||
1373 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1374 | if (PyString_Check(data)) { | |
1375 | // for Python we just call SetData here since we always need it to make a copy. | |
1376 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1377 | } | |
1378 | else { | |
1379 | // raise a TypeError if not a string | |
1380 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1381 | } | |
1382 | } | |
1383 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1384 | if (PyString_Check(data)) { | |
1385 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1386 | } | |
1387 | else { | |
1388 | // raise a TypeError if not a string | |
1389 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1390 | return False; | |
1391 | } | |
1392 | } | |
1393 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1394 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1395 | } | |
1396 | ||
1397 | #include <wx/metafile.h> | |
1398 | ||
1399 | ||
1400 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1401 | ||
1402 | ||
1403 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1404 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1405 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1406 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1407 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1408 | ||
1409 | ||
1410 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1411 | public: | |
1412 | wxPyTextDropTarget() {} | |
1413 | ||
1414 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1415 | ||
1416 | DEC_PYCALLBACK__(OnLeave); | |
1417 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1418 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1419 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1420 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1421 | ||
1422 | PYPRIVATE; | |
1423 | }; | |
1424 | ||
1425 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1426 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1427 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1428 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1429 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1430 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1431 | ||
1432 | ||
1433 | ||
1434 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1435 | public: | |
1436 | wxPyFileDropTarget() {} | |
1437 | ||
1438 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1439 | ||
1440 | DEC_PYCALLBACK__(OnLeave); | |
1441 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1442 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1443 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1444 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1445 | ||
1446 | PYPRIVATE; | |
1447 | }; | |
1448 | ||
1449 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1450 | const wxArrayString& filenames) { | |
1451 | bool rval = False; | |
1452 | bool blocked = wxPyBeginBlockThreads(); | |
1453 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1454 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1455 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1456 | Py_DECREF(list); | |
1457 | } | |
1458 | wxPyEndBlockThreads(blocked); | |
1459 | return rval; | |
1460 | } | |
1461 | ||
1462 | ||
1463 | ||
1464 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1465 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1466 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1467 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1468 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1474 | ||
1475 | #include "wx/display.h" | |
1476 | ||
1477 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1478 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1479 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1480 | PyObject* pyList = NULL; | |
1481 | wxArrayVideoModes arr = self->GetModes(mode); | |
1482 | bool blocked = wxPyBeginBlockThreads(); | |
1483 | pyList = PyList_New(0); | |
1484 | for (int i=0; i < arr.GetCount(); i++) { | |
1485 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1486 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1487 | PyList_Append(pyList, pyObj); | |
1488 | } | |
1489 | wxPyEndBlockThreads(blocked); | |
1490 | return pyList; | |
1491 | } | |
1492 | #ifdef __cplusplus | |
1493 | extern "C" { | |
1494 | #endif | |
1495 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1496 | PyObject *resultobj; | |
1497 | int arg1 ; | |
1498 | wxColour result; | |
1499 | PyObject * obj0 = 0 ; | |
1500 | char *kwnames[] = { | |
1501 | (char *) "index", NULL | |
1502 | }; | |
1503 | ||
1504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
1505 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); | |
1506 | if (PyErr_Occurred()) SWIG_fail; | |
1507 | { | |
1508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1509 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1510 | ||
1511 | wxPyEndAllowThreads(__tstate); | |
1512 | if (PyErr_Occurred()) SWIG_fail; | |
1513 | } | |
1514 | { | |
1515 | wxColour * resultptr; | |
1516 | resultptr = new wxColour((wxColour &) result); | |
1517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1518 | } | |
1519 | return resultobj; | |
1520 | fail: | |
1521 | return NULL; | |
1522 | } | |
1523 | ||
1524 | ||
1525 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1526 | PyObject *resultobj; | |
1527 | int arg1 ; | |
1528 | wxFont result; | |
1529 | PyObject * obj0 = 0 ; | |
1530 | char *kwnames[] = { | |
1531 | (char *) "index", NULL | |
1532 | }; | |
1533 | ||
1534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
1535 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); | |
1536 | if (PyErr_Occurred()) SWIG_fail; | |
1537 | { | |
1538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1539 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1540 | ||
1541 | wxPyEndAllowThreads(__tstate); | |
1542 | if (PyErr_Occurred()) SWIG_fail; | |
1543 | } | |
1544 | { | |
1545 | wxFont * resultptr; | |
1546 | resultptr = new wxFont((wxFont &) result); | |
1547 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1548 | } | |
1549 | return resultobj; | |
1550 | fail: | |
1551 | return NULL; | |
1552 | } | |
1553 | ||
1554 | ||
1555 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1556 | PyObject *resultobj; | |
1557 | int arg1 ; | |
1558 | int result; | |
1559 | PyObject * obj0 = 0 ; | |
1560 | char *kwnames[] = { | |
1561 | (char *) "index", NULL | |
1562 | }; | |
1563 | ||
1564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
1565 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); | |
1566 | if (PyErr_Occurred()) SWIG_fail; | |
1567 | { | |
1568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1569 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1570 | ||
1571 | wxPyEndAllowThreads(__tstate); | |
1572 | if (PyErr_Occurred()) SWIG_fail; | |
1573 | } | |
1574 | resultobj = SWIG_FromInt((int)result); | |
1575 | return resultobj; | |
1576 | fail: | |
1577 | return NULL; | |
1578 | } | |
1579 | ||
1580 | ||
1581 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1582 | PyObject *resultobj; | |
1583 | int arg1 ; | |
1584 | bool result; | |
1585 | PyObject * obj0 = 0 ; | |
1586 | char *kwnames[] = { | |
1587 | (char *) "index", NULL | |
1588 | }; | |
1589 | ||
1590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
1591 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); | |
1592 | if (PyErr_Occurred()) SWIG_fail; | |
1593 | { | |
1594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1595 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1596 | ||
1597 | wxPyEndAllowThreads(__tstate); | |
1598 | if (PyErr_Occurred()) SWIG_fail; | |
1599 | } | |
1600 | { | |
1601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1602 | } | |
1603 | return resultobj; | |
1604 | fail: | |
1605 | return NULL; | |
1606 | } | |
1607 | ||
1608 | ||
1609 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1610 | PyObject *resultobj; | |
1611 | int result; | |
1612 | char *kwnames[] = { | |
1613 | NULL | |
1614 | }; | |
1615 | ||
1616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1617 | { | |
1618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1619 | result = (int)wxSystemSettings::GetScreenType(); | |
1620 | ||
1621 | wxPyEndAllowThreads(__tstate); | |
1622 | if (PyErr_Occurred()) SWIG_fail; | |
1623 | } | |
1624 | resultobj = SWIG_FromInt((int)result); | |
1625 | return resultobj; | |
1626 | fail: | |
1627 | return NULL; | |
1628 | } | |
1629 | ||
1630 | ||
1631 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1632 | PyObject *resultobj; | |
1633 | int arg1 ; | |
1634 | PyObject * obj0 = 0 ; | |
1635 | char *kwnames[] = { | |
1636 | (char *) "screen", NULL | |
1637 | }; | |
1638 | ||
1639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
1640 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); | |
1641 | if (PyErr_Occurred()) SWIG_fail; | |
1642 | { | |
1643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1644 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1645 | ||
1646 | wxPyEndAllowThreads(__tstate); | |
1647 | if (PyErr_Occurred()) SWIG_fail; | |
1648 | } | |
1649 | Py_INCREF(Py_None); resultobj = Py_None; | |
1650 | return resultobj; | |
1651 | fail: | |
1652 | return NULL; | |
1653 | } | |
1654 | ||
1655 | ||
1656 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1657 | PyObject *obj; | |
1658 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1659 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1660 | Py_INCREF(obj); | |
1661 | return Py_BuildValue((char *)""); | |
1662 | } | |
1663 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1664 | PyObject *resultobj; | |
1665 | wxSystemOptions *result; | |
1666 | char *kwnames[] = { | |
1667 | NULL | |
1668 | }; | |
1669 | ||
1670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1671 | { | |
1672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1673 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1674 | ||
1675 | wxPyEndAllowThreads(__tstate); | |
1676 | if (PyErr_Occurred()) SWIG_fail; | |
1677 | } | |
1678 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
1679 | return resultobj; | |
1680 | fail: | |
1681 | return NULL; | |
1682 | } | |
1683 | ||
1684 | ||
1685 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject *resultobj; | |
1687 | wxString *arg1 = 0 ; | |
1688 | wxString *arg2 = 0 ; | |
1689 | bool temp1 = False ; | |
1690 | bool temp2 = False ; | |
1691 | PyObject * obj0 = 0 ; | |
1692 | PyObject * obj1 = 0 ; | |
1693 | char *kwnames[] = { | |
1694 | (char *) "name",(char *) "value", NULL | |
1695 | }; | |
1696 | ||
1697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1698 | { | |
1699 | arg1 = wxString_in_helper(obj0); | |
1700 | if (arg1 == NULL) SWIG_fail; | |
1701 | temp1 = True; | |
1702 | } | |
1703 | { | |
1704 | arg2 = wxString_in_helper(obj1); | |
1705 | if (arg2 == NULL) SWIG_fail; | |
1706 | temp2 = True; | |
1707 | } | |
1708 | { | |
1709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1710 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1711 | ||
1712 | wxPyEndAllowThreads(__tstate); | |
1713 | if (PyErr_Occurred()) SWIG_fail; | |
1714 | } | |
1715 | Py_INCREF(Py_None); resultobj = Py_None; | |
1716 | { | |
1717 | if (temp1) | |
1718 | delete arg1; | |
1719 | } | |
1720 | { | |
1721 | if (temp2) | |
1722 | delete arg2; | |
1723 | } | |
1724 | return resultobj; | |
1725 | fail: | |
1726 | { | |
1727 | if (temp1) | |
1728 | delete arg1; | |
1729 | } | |
1730 | { | |
1731 | if (temp2) | |
1732 | delete arg2; | |
1733 | } | |
1734 | return NULL; | |
1735 | } | |
1736 | ||
1737 | ||
1738 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1739 | PyObject *resultobj; | |
1740 | wxString *arg1 = 0 ; | |
1741 | int arg2 ; | |
1742 | bool temp1 = False ; | |
1743 | PyObject * obj0 = 0 ; | |
1744 | PyObject * obj1 = 0 ; | |
1745 | char *kwnames[] = { | |
1746 | (char *) "name",(char *) "value", NULL | |
1747 | }; | |
1748 | ||
1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
1750 | { | |
1751 | arg1 = wxString_in_helper(obj0); | |
1752 | if (arg1 == NULL) SWIG_fail; | |
1753 | temp1 = True; | |
1754 | } | |
1755 | arg2 = (int) SWIG_AsInt(obj1); | |
1756 | if (PyErr_Occurred()) SWIG_fail; | |
1757 | { | |
1758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1759 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1760 | ||
1761 | wxPyEndAllowThreads(__tstate); | |
1762 | if (PyErr_Occurred()) SWIG_fail; | |
1763 | } | |
1764 | Py_INCREF(Py_None); resultobj = Py_None; | |
1765 | { | |
1766 | if (temp1) | |
1767 | delete arg1; | |
1768 | } | |
1769 | return resultobj; | |
1770 | fail: | |
1771 | { | |
1772 | if (temp1) | |
1773 | delete arg1; | |
1774 | } | |
1775 | return NULL; | |
1776 | } | |
1777 | ||
1778 | ||
1779 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1780 | PyObject *resultobj; | |
1781 | wxString *arg1 = 0 ; | |
1782 | wxString result; | |
1783 | bool temp1 = False ; | |
1784 | PyObject * obj0 = 0 ; | |
1785 | char *kwnames[] = { | |
1786 | (char *) "name", NULL | |
1787 | }; | |
1788 | ||
1789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1790 | { | |
1791 | arg1 = wxString_in_helper(obj0); | |
1792 | if (arg1 == NULL) SWIG_fail; | |
1793 | temp1 = True; | |
1794 | } | |
1795 | { | |
1796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1797 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1798 | ||
1799 | wxPyEndAllowThreads(__tstate); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | } | |
1802 | { | |
1803 | #if wxUSE_UNICODE | |
1804 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1805 | #else | |
1806 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1807 | #endif | |
1808 | } | |
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_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1824 | PyObject *resultobj; | |
1825 | wxString *arg1 = 0 ; | |
1826 | int 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_GetOptionInt",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 = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1842 | ||
1843 | wxPyEndAllowThreads(__tstate); | |
1844 | if (PyErr_Occurred()) SWIG_fail; | |
1845 | } | |
1846 | resultobj = SWIG_FromInt((int)result); | |
1847 | { | |
1848 | if (temp1) | |
1849 | delete arg1; | |
1850 | } | |
1851 | return resultobj; | |
1852 | fail: | |
1853 | { | |
1854 | if (temp1) | |
1855 | delete arg1; | |
1856 | } | |
1857 | return NULL; | |
1858 | } | |
1859 | ||
1860 | ||
1861 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1862 | PyObject *resultobj; | |
1863 | wxString *arg1 = 0 ; | |
1864 | bool result; | |
1865 | bool temp1 = False ; | |
1866 | PyObject * obj0 = 0 ; | |
1867 | char *kwnames[] = { | |
1868 | (char *) "name", NULL | |
1869 | }; | |
1870 | ||
1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1872 | { | |
1873 | arg1 = wxString_in_helper(obj0); | |
1874 | if (arg1 == NULL) SWIG_fail; | |
1875 | temp1 = True; | |
1876 | } | |
1877 | { | |
1878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1879 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1880 | ||
1881 | wxPyEndAllowThreads(__tstate); | |
1882 | if (PyErr_Occurred()) SWIG_fail; | |
1883 | } | |
1884 | { | |
1885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1886 | } | |
1887 | { | |
1888 | if (temp1) | |
1889 | delete arg1; | |
1890 | } | |
1891 | return resultobj; | |
1892 | fail: | |
1893 | { | |
1894 | if (temp1) | |
1895 | delete arg1; | |
1896 | } | |
1897 | return NULL; | |
1898 | } | |
1899 | ||
1900 | ||
1901 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1902 | PyObject *obj; | |
1903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1904 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1905 | Py_INCREF(obj); | |
1906 | return Py_BuildValue((char *)""); | |
1907 | } | |
1908 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
1909 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1910 | return 1; | |
1911 | } | |
1912 | ||
1913 | ||
1914 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1915 | PyObject *pyobj; | |
1916 | ||
1917 | { | |
1918 | #if wxUSE_UNICODE | |
1919 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1920 | #else | |
1921 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1922 | #endif | |
1923 | } | |
1924 | return pyobj; | |
1925 | } | |
1926 | ||
1927 | ||
1928 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1929 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1930 | return 1; | |
1931 | } | |
1932 | ||
1933 | ||
1934 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1935 | PyObject *pyobj; | |
1936 | ||
1937 | { | |
1938 | #if wxUSE_UNICODE | |
1939 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1940 | #else | |
1941 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1942 | #endif | |
1943 | } | |
1944 | return pyobj; | |
1945 | } | |
1946 | ||
1947 | ||
1948 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1949 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1950 | return 1; | |
1951 | } | |
1952 | ||
1953 | ||
1954 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1955 | PyObject *pyobj; | |
1956 | ||
1957 | { | |
1958 | #if wxUSE_UNICODE | |
1959 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1960 | #else | |
1961 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1962 | #endif | |
1963 | } | |
1964 | return pyobj; | |
1965 | } | |
1966 | ||
1967 | ||
1968 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1969 | PyObject *resultobj; | |
1970 | long result; | |
1971 | char *kwnames[] = { | |
1972 | NULL | |
1973 | }; | |
1974 | ||
1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1976 | { | |
1977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1978 | result = (long)wxNewId(); | |
1979 | ||
1980 | wxPyEndAllowThreads(__tstate); | |
1981 | if (PyErr_Occurred()) SWIG_fail; | |
1982 | } | |
1983 | resultobj = SWIG_FromLong((long)result); | |
1984 | return resultobj; | |
1985 | fail: | |
1986 | return NULL; | |
1987 | } | |
1988 | ||
1989 | ||
1990 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1991 | PyObject *resultobj; | |
1992 | long arg1 ; | |
1993 | PyObject * obj0 = 0 ; | |
1994 | char *kwnames[] = { | |
1995 | (char *) "id", NULL | |
1996 | }; | |
1997 | ||
1998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
1999 | arg1 = (long) SWIG_AsLong(obj0); | |
2000 | if (PyErr_Occurred()) SWIG_fail; | |
2001 | { | |
2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2003 | wxRegisterId(arg1); | |
2004 | ||
2005 | wxPyEndAllowThreads(__tstate); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | } | |
2008 | Py_INCREF(Py_None); resultobj = Py_None; | |
2009 | return resultobj; | |
2010 | fail: | |
2011 | return NULL; | |
2012 | } | |
2013 | ||
2014 | ||
2015 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject *resultobj; | |
2017 | long result; | |
2018 | char *kwnames[] = { | |
2019 | NULL | |
2020 | }; | |
2021 | ||
2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2023 | { | |
2024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2025 | result = (long)wxGetCurrentId(); | |
2026 | ||
2027 | wxPyEndAllowThreads(__tstate); | |
2028 | if (PyErr_Occurred()) SWIG_fail; | |
2029 | } | |
2030 | resultobj = SWIG_FromLong((long)result); | |
2031 | return resultobj; | |
2032 | fail: | |
2033 | return NULL; | |
2034 | } | |
2035 | ||
2036 | ||
2037 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2038 | PyObject *resultobj; | |
2039 | char *kwnames[] = { | |
2040 | NULL | |
2041 | }; | |
2042 | ||
2043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2044 | { | |
2045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2046 | wxBell(); | |
2047 | ||
2048 | wxPyEndAllowThreads(__tstate); | |
2049 | if (PyErr_Occurred()) SWIG_fail; | |
2050 | } | |
2051 | Py_INCREF(Py_None); resultobj = Py_None; | |
2052 | return resultobj; | |
2053 | fail: | |
2054 | return NULL; | |
2055 | } | |
2056 | ||
2057 | ||
2058 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2059 | PyObject *resultobj; | |
2060 | char *kwnames[] = { | |
2061 | NULL | |
2062 | }; | |
2063 | ||
2064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2065 | { | |
2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2067 | wxEndBusyCursor(); | |
2068 | ||
2069 | wxPyEndAllowThreads(__tstate); | |
2070 | if (PyErr_Occurred()) SWIG_fail; | |
2071 | } | |
2072 | Py_INCREF(Py_None); resultobj = Py_None; | |
2073 | return resultobj; | |
2074 | fail: | |
2075 | return NULL; | |
2076 | } | |
2077 | ||
2078 | ||
2079 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2080 | PyObject *resultobj; | |
2081 | bool arg1 = (bool) True ; | |
2082 | long result; | |
2083 | PyObject * obj0 = 0 ; | |
2084 | char *kwnames[] = { | |
2085 | (char *) "resetTimer", NULL | |
2086 | }; | |
2087 | ||
2088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2089 | if (obj0) { | |
2090 | arg1 = (bool) SWIG_AsBool(obj0); | |
2091 | if (PyErr_Occurred()) SWIG_fail; | |
2092 | } | |
2093 | { | |
2094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2095 | result = (long)wxGetElapsedTime(arg1); | |
2096 | ||
2097 | wxPyEndAllowThreads(__tstate); | |
2098 | if (PyErr_Occurred()) SWIG_fail; | |
2099 | } | |
2100 | resultobj = SWIG_FromLong((long)result); | |
2101 | return resultobj; | |
2102 | fail: | |
2103 | return NULL; | |
2104 | } | |
2105 | ||
2106 | ||
2107 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2108 | PyObject *resultobj; | |
2109 | int *arg1 = (int *) 0 ; | |
2110 | int *arg2 = (int *) 0 ; | |
2111 | int temp1 ; | |
2112 | int temp2 ; | |
2113 | char *kwnames[] = { | |
2114 | NULL | |
2115 | }; | |
2116 | ||
2117 | arg1 = &temp1; | |
2118 | arg2 = &temp2; | |
2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2120 | { | |
2121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2122 | wxGetMousePosition(arg1,arg2); | |
2123 | ||
2124 | wxPyEndAllowThreads(__tstate); | |
2125 | if (PyErr_Occurred()) SWIG_fail; | |
2126 | } | |
2127 | Py_INCREF(Py_None); resultobj = Py_None; | |
2128 | { | |
2129 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2130 | resultobj = t_output_helper(resultobj,o); | |
2131 | } | |
2132 | { | |
2133 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2134 | resultobj = t_output_helper(resultobj,o); | |
2135 | } | |
2136 | return resultobj; | |
2137 | fail: | |
2138 | return NULL; | |
2139 | } | |
2140 | ||
2141 | ||
2142 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2143 | PyObject *resultobj; | |
2144 | bool result; | |
2145 | char *kwnames[] = { | |
2146 | NULL | |
2147 | }; | |
2148 | ||
2149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2150 | { | |
2151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2152 | result = (bool)wxIsBusy(); | |
2153 | ||
2154 | wxPyEndAllowThreads(__tstate); | |
2155 | if (PyErr_Occurred()) SWIG_fail; | |
2156 | } | |
2157 | { | |
2158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2159 | } | |
2160 | return resultobj; | |
2161 | fail: | |
2162 | return NULL; | |
2163 | } | |
2164 | ||
2165 | ||
2166 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2167 | PyObject *resultobj; | |
2168 | wxString result; | |
2169 | char *kwnames[] = { | |
2170 | NULL | |
2171 | }; | |
2172 | ||
2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2174 | { | |
2175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2176 | result = wxNow(); | |
2177 | ||
2178 | wxPyEndAllowThreads(__tstate); | |
2179 | if (PyErr_Occurred()) SWIG_fail; | |
2180 | } | |
2181 | { | |
2182 | #if wxUSE_UNICODE | |
2183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2184 | #else | |
2185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2186 | #endif | |
2187 | } | |
2188 | return resultobj; | |
2189 | fail: | |
2190 | return NULL; | |
2191 | } | |
2192 | ||
2193 | ||
2194 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2195 | PyObject *resultobj; | |
2196 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2197 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2198 | bool result; | |
2199 | bool temp1 = False ; | |
2200 | PyObject * obj0 = 0 ; | |
2201 | char *kwnames[] = { | |
2202 | (char *) "command", NULL | |
2203 | }; | |
2204 | ||
2205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2206 | if (obj0) { | |
2207 | { | |
2208 | arg1 = wxString_in_helper(obj0); | |
2209 | if (arg1 == NULL) SWIG_fail; | |
2210 | temp1 = True; | |
2211 | } | |
2212 | } | |
2213 | { | |
2214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2215 | result = (bool)wxShell((wxString const &)*arg1); | |
2216 | ||
2217 | wxPyEndAllowThreads(__tstate); | |
2218 | if (PyErr_Occurred()) SWIG_fail; | |
2219 | } | |
2220 | { | |
2221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2222 | } | |
2223 | { | |
2224 | if (temp1) | |
2225 | delete arg1; | |
2226 | } | |
2227 | return resultobj; | |
2228 | fail: | |
2229 | { | |
2230 | if (temp1) | |
2231 | delete arg1; | |
2232 | } | |
2233 | return NULL; | |
2234 | } | |
2235 | ||
2236 | ||
2237 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2238 | PyObject *resultobj; | |
2239 | char *kwnames[] = { | |
2240 | NULL | |
2241 | }; | |
2242 | ||
2243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2244 | { | |
2245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2246 | wxStartTimer(); | |
2247 | ||
2248 | wxPyEndAllowThreads(__tstate); | |
2249 | if (PyErr_Occurred()) SWIG_fail; | |
2250 | } | |
2251 | Py_INCREF(Py_None); resultobj = Py_None; | |
2252 | return resultobj; | |
2253 | fail: | |
2254 | return NULL; | |
2255 | } | |
2256 | ||
2257 | ||
2258 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2259 | PyObject *resultobj; | |
2260 | int *arg1 = (int *) 0 ; | |
2261 | int *arg2 = (int *) 0 ; | |
2262 | int result; | |
2263 | int temp1 ; | |
2264 | int temp2 ; | |
2265 | char *kwnames[] = { | |
2266 | NULL | |
2267 | }; | |
2268 | ||
2269 | arg1 = &temp1; | |
2270 | arg2 = &temp2; | |
2271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2272 | { | |
2273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2274 | result = (int)wxGetOsVersion(arg1,arg2); | |
2275 | ||
2276 | wxPyEndAllowThreads(__tstate); | |
2277 | if (PyErr_Occurred()) SWIG_fail; | |
2278 | } | |
2279 | resultobj = SWIG_FromInt((int)result); | |
2280 | { | |
2281 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2282 | resultobj = t_output_helper(resultobj,o); | |
2283 | } | |
2284 | { | |
2285 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2286 | resultobj = t_output_helper(resultobj,o); | |
2287 | } | |
2288 | return resultobj; | |
2289 | fail: | |
2290 | return NULL; | |
2291 | } | |
2292 | ||
2293 | ||
2294 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2295 | PyObject *resultobj; | |
2296 | wxString result; | |
2297 | char *kwnames[] = { | |
2298 | NULL | |
2299 | }; | |
2300 | ||
2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2302 | { | |
2303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2304 | result = wxGetOsDescription(); | |
2305 | ||
2306 | wxPyEndAllowThreads(__tstate); | |
2307 | if (PyErr_Occurred()) SWIG_fail; | |
2308 | } | |
2309 | { | |
2310 | #if wxUSE_UNICODE | |
2311 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2312 | #else | |
2313 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2314 | #endif | |
2315 | } | |
2316 | return resultobj; | |
2317 | fail: | |
2318 | return NULL; | |
2319 | } | |
2320 | ||
2321 | ||
2322 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2323 | PyObject *resultobj; | |
2324 | long result; | |
2325 | char *kwnames[] = { | |
2326 | NULL | |
2327 | }; | |
2328 | ||
2329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2330 | { | |
2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2332 | result = (long)wxGetFreeMemory(); | |
2333 | ||
2334 | wxPyEndAllowThreads(__tstate); | |
2335 | if (PyErr_Occurred()) SWIG_fail; | |
2336 | } | |
2337 | resultobj = SWIG_FromLong((long)result); | |
2338 | return resultobj; | |
2339 | fail: | |
2340 | return NULL; | |
2341 | } | |
2342 | ||
2343 | ||
2344 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2345 | PyObject *resultobj; | |
2346 | int arg1 ; | |
2347 | bool result; | |
2348 | PyObject * obj0 = 0 ; | |
2349 | char *kwnames[] = { | |
2350 | (char *) "wFlags", NULL | |
2351 | }; | |
2352 | ||
2353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
2354 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); | |
2355 | if (PyErr_Occurred()) SWIG_fail; | |
2356 | { | |
2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2358 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2359 | ||
2360 | wxPyEndAllowThreads(__tstate); | |
2361 | if (PyErr_Occurred()) SWIG_fail; | |
2362 | } | |
2363 | { | |
2364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2365 | } | |
2366 | return resultobj; | |
2367 | fail: | |
2368 | return NULL; | |
2369 | } | |
2370 | ||
2371 | ||
2372 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2373 | PyObject *resultobj; | |
2374 | int arg1 ; | |
2375 | PyObject * obj0 = 0 ; | |
2376 | char *kwnames[] = { | |
2377 | (char *) "secs", NULL | |
2378 | }; | |
2379 | ||
2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
2381 | arg1 = (int) SWIG_AsInt(obj0); | |
2382 | if (PyErr_Occurred()) SWIG_fail; | |
2383 | { | |
2384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2385 | wxSleep(arg1); | |
2386 | ||
2387 | wxPyEndAllowThreads(__tstate); | |
2388 | if (PyErr_Occurred()) SWIG_fail; | |
2389 | } | |
2390 | Py_INCREF(Py_None); resultobj = Py_None; | |
2391 | return resultobj; | |
2392 | fail: | |
2393 | return NULL; | |
2394 | } | |
2395 | ||
2396 | ||
2397 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2398 | PyObject *resultobj; | |
2399 | unsigned long arg1 ; | |
2400 | PyObject * obj0 = 0 ; | |
2401 | char *kwnames[] = { | |
2402 | (char *) "milliseconds", NULL | |
2403 | }; | |
2404 | ||
2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
2406 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
2407 | if (PyErr_Occurred()) SWIG_fail; | |
2408 | { | |
2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2410 | wxUsleep(arg1); | |
2411 | ||
2412 | wxPyEndAllowThreads(__tstate); | |
2413 | if (PyErr_Occurred()) SWIG_fail; | |
2414 | } | |
2415 | Py_INCREF(Py_None); resultobj = Py_None; | |
2416 | return resultobj; | |
2417 | fail: | |
2418 | return NULL; | |
2419 | } | |
2420 | ||
2421 | ||
2422 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2423 | PyObject *resultobj; | |
2424 | bool arg1 ; | |
2425 | PyObject * obj0 = 0 ; | |
2426 | char *kwnames[] = { | |
2427 | (char *) "enable", NULL | |
2428 | }; | |
2429 | ||
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2431 | arg1 = (bool) SWIG_AsBool(obj0); | |
2432 | if (PyErr_Occurred()) SWIG_fail; | |
2433 | { | |
2434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2435 | wxEnableTopLevelWindows(arg1); | |
2436 | ||
2437 | wxPyEndAllowThreads(__tstate); | |
2438 | if (PyErr_Occurred()) SWIG_fail; | |
2439 | } | |
2440 | Py_INCREF(Py_None); resultobj = Py_None; | |
2441 | return resultobj; | |
2442 | fail: | |
2443 | return NULL; | |
2444 | } | |
2445 | ||
2446 | ||
2447 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2448 | PyObject *resultobj; | |
2449 | wxString *arg1 = 0 ; | |
2450 | wxString result; | |
2451 | bool temp1 = False ; | |
2452 | PyObject * obj0 = 0 ; | |
2453 | char *kwnames[] = { | |
2454 | (char *) "in", NULL | |
2455 | }; | |
2456 | ||
2457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2458 | { | |
2459 | arg1 = wxString_in_helper(obj0); | |
2460 | if (arg1 == NULL) SWIG_fail; | |
2461 | temp1 = True; | |
2462 | } | |
2463 | { | |
2464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2465 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2466 | ||
2467 | wxPyEndAllowThreads(__tstate); | |
2468 | if (PyErr_Occurred()) SWIG_fail; | |
2469 | } | |
2470 | { | |
2471 | #if wxUSE_UNICODE | |
2472 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2473 | #else | |
2474 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2475 | #endif | |
2476 | } | |
2477 | { | |
2478 | if (temp1) | |
2479 | delete arg1; | |
2480 | } | |
2481 | return resultobj; | |
2482 | fail: | |
2483 | { | |
2484 | if (temp1) | |
2485 | delete arg1; | |
2486 | } | |
2487 | return NULL; | |
2488 | } | |
2489 | ||
2490 | ||
2491 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2492 | PyObject *resultobj; | |
2493 | wxString result; | |
2494 | char *kwnames[] = { | |
2495 | NULL | |
2496 | }; | |
2497 | ||
2498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2499 | { | |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2501 | result = wxGetEmailAddress(); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | } | |
2506 | { | |
2507 | #if wxUSE_UNICODE | |
2508 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2509 | #else | |
2510 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2511 | #endif | |
2512 | } | |
2513 | return resultobj; | |
2514 | fail: | |
2515 | return NULL; | |
2516 | } | |
2517 | ||
2518 | ||
2519 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2520 | PyObject *resultobj; | |
2521 | wxString result; | |
2522 | char *kwnames[] = { | |
2523 | NULL | |
2524 | }; | |
2525 | ||
2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2527 | { | |
2528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2529 | result = wxGetHostName(); | |
2530 | ||
2531 | wxPyEndAllowThreads(__tstate); | |
2532 | if (PyErr_Occurred()) SWIG_fail; | |
2533 | } | |
2534 | { | |
2535 | #if wxUSE_UNICODE | |
2536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2537 | #else | |
2538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2539 | #endif | |
2540 | } | |
2541 | return resultobj; | |
2542 | fail: | |
2543 | return NULL; | |
2544 | } | |
2545 | ||
2546 | ||
2547 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2548 | PyObject *resultobj; | |
2549 | wxString result; | |
2550 | char *kwnames[] = { | |
2551 | NULL | |
2552 | }; | |
2553 | ||
2554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2555 | { | |
2556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2557 | result = wxGetFullHostName(); | |
2558 | ||
2559 | wxPyEndAllowThreads(__tstate); | |
2560 | if (PyErr_Occurred()) SWIG_fail; | |
2561 | } | |
2562 | { | |
2563 | #if wxUSE_UNICODE | |
2564 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2565 | #else | |
2566 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2567 | #endif | |
2568 | } | |
2569 | return resultobj; | |
2570 | fail: | |
2571 | return NULL; | |
2572 | } | |
2573 | ||
2574 | ||
2575 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2576 | PyObject *resultobj; | |
2577 | wxString result; | |
2578 | char *kwnames[] = { | |
2579 | NULL | |
2580 | }; | |
2581 | ||
2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2583 | { | |
2584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2585 | result = wxGetUserId(); | |
2586 | ||
2587 | wxPyEndAllowThreads(__tstate); | |
2588 | if (PyErr_Occurred()) SWIG_fail; | |
2589 | } | |
2590 | { | |
2591 | #if wxUSE_UNICODE | |
2592 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2593 | #else | |
2594 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2595 | #endif | |
2596 | } | |
2597 | return resultobj; | |
2598 | fail: | |
2599 | return NULL; | |
2600 | } | |
2601 | ||
2602 | ||
2603 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2604 | PyObject *resultobj; | |
2605 | wxString result; | |
2606 | char *kwnames[] = { | |
2607 | NULL | |
2608 | }; | |
2609 | ||
2610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2611 | { | |
2612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2613 | result = wxGetUserName(); | |
2614 | ||
2615 | wxPyEndAllowThreads(__tstate); | |
2616 | if (PyErr_Occurred()) SWIG_fail; | |
2617 | } | |
2618 | { | |
2619 | #if wxUSE_UNICODE | |
2620 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2621 | #else | |
2622 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2623 | #endif | |
2624 | } | |
2625 | return resultobj; | |
2626 | fail: | |
2627 | return NULL; | |
2628 | } | |
2629 | ||
2630 | ||
2631 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2632 | PyObject *resultobj; | |
2633 | wxString result; | |
2634 | char *kwnames[] = { | |
2635 | NULL | |
2636 | }; | |
2637 | ||
2638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2639 | { | |
2640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2641 | result = wxGetHomeDir(); | |
2642 | ||
2643 | wxPyEndAllowThreads(__tstate); | |
2644 | if (PyErr_Occurred()) SWIG_fail; | |
2645 | } | |
2646 | { | |
2647 | #if wxUSE_UNICODE | |
2648 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2649 | #else | |
2650 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2651 | #endif | |
2652 | } | |
2653 | return resultobj; | |
2654 | fail: | |
2655 | return NULL; | |
2656 | } | |
2657 | ||
2658 | ||
2659 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2660 | PyObject *resultobj; | |
2661 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2662 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2663 | wxString result; | |
2664 | bool temp1 = False ; | |
2665 | PyObject * obj0 = 0 ; | |
2666 | char *kwnames[] = { | |
2667 | (char *) "user", NULL | |
2668 | }; | |
2669 | ||
2670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2671 | if (obj0) { | |
2672 | { | |
2673 | arg1 = wxString_in_helper(obj0); | |
2674 | if (arg1 == NULL) SWIG_fail; | |
2675 | temp1 = True; | |
2676 | } | |
2677 | } | |
2678 | { | |
2679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2680 | result = wxGetUserHome((wxString const &)*arg1); | |
2681 | ||
2682 | wxPyEndAllowThreads(__tstate); | |
2683 | if (PyErr_Occurred()) SWIG_fail; | |
2684 | } | |
2685 | { | |
2686 | #if wxUSE_UNICODE | |
2687 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2688 | #else | |
2689 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2690 | #endif | |
2691 | } | |
2692 | { | |
2693 | if (temp1) | |
2694 | delete arg1; | |
2695 | } | |
2696 | return resultobj; | |
2697 | fail: | |
2698 | { | |
2699 | if (temp1) | |
2700 | delete arg1; | |
2701 | } | |
2702 | return NULL; | |
2703 | } | |
2704 | ||
2705 | ||
2706 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2707 | PyObject *resultobj; | |
2708 | unsigned long result; | |
2709 | char *kwnames[] = { | |
2710 | NULL | |
2711 | }; | |
2712 | ||
2713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2714 | { | |
2715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2716 | result = (unsigned long)wxGetProcessId(); | |
2717 | ||
2718 | wxPyEndAllowThreads(__tstate); | |
2719 | if (PyErr_Occurred()) SWIG_fail; | |
2720 | } | |
2721 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
2722 | return resultobj; | |
2723 | fail: | |
2724 | return NULL; | |
2725 | } | |
2726 | ||
2727 | ||
2728 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2729 | PyObject *resultobj; | |
2730 | char *kwnames[] = { | |
2731 | NULL | |
2732 | }; | |
2733 | ||
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2735 | { | |
2736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2737 | wxTrap(); | |
2738 | ||
2739 | wxPyEndAllowThreads(__tstate); | |
2740 | if (PyErr_Occurred()) SWIG_fail; | |
2741 | } | |
2742 | Py_INCREF(Py_None); resultobj = Py_None; | |
2743 | return resultobj; | |
2744 | fail: | |
2745 | return NULL; | |
2746 | } | |
2747 | ||
2748 | ||
2749 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2750 | PyObject *resultobj; | |
2751 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2752 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2753 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2754 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2755 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2756 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2757 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2758 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2759 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2760 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2761 | int arg6 = (int) 0 ; | |
2762 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2763 | int arg8 = (int) -1 ; | |
2764 | int arg9 = (int) -1 ; | |
2765 | wxString result; | |
2766 | bool temp1 = False ; | |
2767 | bool temp2 = False ; | |
2768 | bool temp3 = False ; | |
2769 | bool temp4 = False ; | |
2770 | bool temp5 = False ; | |
2771 | PyObject * obj0 = 0 ; | |
2772 | PyObject * obj1 = 0 ; | |
2773 | PyObject * obj2 = 0 ; | |
2774 | PyObject * obj3 = 0 ; | |
2775 | PyObject * obj4 = 0 ; | |
2776 | PyObject * obj5 = 0 ; | |
2777 | PyObject * obj6 = 0 ; | |
2778 | PyObject * obj7 = 0 ; | |
2779 | PyObject * obj8 = 0 ; | |
2780 | char *kwnames[] = { | |
2781 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2782 | }; | |
2783 | ||
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2785 | if (obj0) { | |
2786 | { | |
2787 | arg1 = wxString_in_helper(obj0); | |
2788 | if (arg1 == NULL) SWIG_fail; | |
2789 | temp1 = True; | |
2790 | } | |
2791 | } | |
2792 | if (obj1) { | |
2793 | { | |
2794 | arg2 = wxString_in_helper(obj1); | |
2795 | if (arg2 == NULL) SWIG_fail; | |
2796 | temp2 = True; | |
2797 | } | |
2798 | } | |
2799 | if (obj2) { | |
2800 | { | |
2801 | arg3 = wxString_in_helper(obj2); | |
2802 | if (arg3 == NULL) SWIG_fail; | |
2803 | temp3 = True; | |
2804 | } | |
2805 | } | |
2806 | if (obj3) { | |
2807 | { | |
2808 | arg4 = wxString_in_helper(obj3); | |
2809 | if (arg4 == NULL) SWIG_fail; | |
2810 | temp4 = True; | |
2811 | } | |
2812 | } | |
2813 | if (obj4) { | |
2814 | { | |
2815 | arg5 = wxString_in_helper(obj4); | |
2816 | if (arg5 == NULL) SWIG_fail; | |
2817 | temp5 = True; | |
2818 | } | |
2819 | } | |
2820 | if (obj5) { | |
2821 | arg6 = (int) SWIG_AsInt(obj5); | |
2822 | if (PyErr_Occurred()) SWIG_fail; | |
2823 | } | |
2824 | if (obj6) { | |
2825 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
2826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2827 | } | |
2828 | if (obj7) { | |
2829 | arg8 = (int) SWIG_AsInt(obj7); | |
2830 | if (PyErr_Occurred()) SWIG_fail; | |
2831 | } | |
2832 | if (obj8) { | |
2833 | arg9 = (int) SWIG_AsInt(obj8); | |
2834 | if (PyErr_Occurred()) SWIG_fail; | |
2835 | } | |
2836 | { | |
2837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2838 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2839 | ||
2840 | wxPyEndAllowThreads(__tstate); | |
2841 | if (PyErr_Occurred()) SWIG_fail; | |
2842 | } | |
2843 | { | |
2844 | #if wxUSE_UNICODE | |
2845 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2846 | #else | |
2847 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2848 | #endif | |
2849 | } | |
2850 | { | |
2851 | if (temp1) | |
2852 | delete arg1; | |
2853 | } | |
2854 | { | |
2855 | if (temp2) | |
2856 | delete arg2; | |
2857 | } | |
2858 | { | |
2859 | if (temp3) | |
2860 | delete arg3; | |
2861 | } | |
2862 | { | |
2863 | if (temp4) | |
2864 | delete arg4; | |
2865 | } | |
2866 | { | |
2867 | if (temp5) | |
2868 | delete arg5; | |
2869 | } | |
2870 | return resultobj; | |
2871 | fail: | |
2872 | { | |
2873 | if (temp1) | |
2874 | delete arg1; | |
2875 | } | |
2876 | { | |
2877 | if (temp2) | |
2878 | delete arg2; | |
2879 | } | |
2880 | { | |
2881 | if (temp3) | |
2882 | delete arg3; | |
2883 | } | |
2884 | { | |
2885 | if (temp4) | |
2886 | delete arg4; | |
2887 | } | |
2888 | { | |
2889 | if (temp5) | |
2890 | delete arg5; | |
2891 | } | |
2892 | return NULL; | |
2893 | } | |
2894 | ||
2895 | ||
2896 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2897 | PyObject *resultobj; | |
2898 | wxString *arg1 = 0 ; | |
2899 | wxString *arg2 = 0 ; | |
2900 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2901 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2902 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2903 | wxString result; | |
2904 | bool temp1 = False ; | |
2905 | bool temp2 = False ; | |
2906 | bool temp3 = False ; | |
2907 | PyObject * obj0 = 0 ; | |
2908 | PyObject * obj1 = 0 ; | |
2909 | PyObject * obj2 = 0 ; | |
2910 | PyObject * obj3 = 0 ; | |
2911 | char *kwnames[] = { | |
2912 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2913 | }; | |
2914 | ||
2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2916 | { | |
2917 | arg1 = wxString_in_helper(obj0); | |
2918 | if (arg1 == NULL) SWIG_fail; | |
2919 | temp1 = True; | |
2920 | } | |
2921 | { | |
2922 | arg2 = wxString_in_helper(obj1); | |
2923 | if (arg2 == NULL) SWIG_fail; | |
2924 | temp2 = True; | |
2925 | } | |
2926 | if (obj2) { | |
2927 | { | |
2928 | arg3 = wxString_in_helper(obj2); | |
2929 | if (arg3 == NULL) SWIG_fail; | |
2930 | temp3 = True; | |
2931 | } | |
2932 | } | |
2933 | if (obj3) { | |
2934 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
2935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2936 | } | |
2937 | { | |
2938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2939 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2940 | ||
2941 | wxPyEndAllowThreads(__tstate); | |
2942 | if (PyErr_Occurred()) SWIG_fail; | |
2943 | } | |
2944 | { | |
2945 | #if wxUSE_UNICODE | |
2946 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2947 | #else | |
2948 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2949 | #endif | |
2950 | } | |
2951 | { | |
2952 | if (temp1) | |
2953 | delete arg1; | |
2954 | } | |
2955 | { | |
2956 | if (temp2) | |
2957 | delete arg2; | |
2958 | } | |
2959 | { | |
2960 | if (temp3) | |
2961 | delete arg3; | |
2962 | } | |
2963 | return resultobj; | |
2964 | fail: | |
2965 | { | |
2966 | if (temp1) | |
2967 | delete arg1; | |
2968 | } | |
2969 | { | |
2970 | if (temp2) | |
2971 | delete arg2; | |
2972 | } | |
2973 | { | |
2974 | if (temp3) | |
2975 | delete arg3; | |
2976 | } | |
2977 | return NULL; | |
2978 | } | |
2979 | ||
2980 | ||
2981 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2982 | PyObject *resultobj; | |
2983 | wxString *arg1 = 0 ; | |
2984 | wxString *arg2 = 0 ; | |
2985 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2986 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2987 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2988 | wxString result; | |
2989 | bool temp1 = False ; | |
2990 | bool temp2 = False ; | |
2991 | bool temp3 = False ; | |
2992 | PyObject * obj0 = 0 ; | |
2993 | PyObject * obj1 = 0 ; | |
2994 | PyObject * obj2 = 0 ; | |
2995 | PyObject * obj3 = 0 ; | |
2996 | char *kwnames[] = { | |
2997 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2998 | }; | |
2999 | ||
3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3001 | { | |
3002 | arg1 = wxString_in_helper(obj0); | |
3003 | if (arg1 == NULL) SWIG_fail; | |
3004 | temp1 = True; | |
3005 | } | |
3006 | { | |
3007 | arg2 = wxString_in_helper(obj1); | |
3008 | if (arg2 == NULL) SWIG_fail; | |
3009 | temp2 = True; | |
3010 | } | |
3011 | if (obj2) { | |
3012 | { | |
3013 | arg3 = wxString_in_helper(obj2); | |
3014 | if (arg3 == NULL) SWIG_fail; | |
3015 | temp3 = True; | |
3016 | } | |
3017 | } | |
3018 | if (obj3) { | |
3019 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3021 | } | |
3022 | { | |
3023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3024 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3025 | ||
3026 | wxPyEndAllowThreads(__tstate); | |
3027 | if (PyErr_Occurred()) SWIG_fail; | |
3028 | } | |
3029 | { | |
3030 | #if wxUSE_UNICODE | |
3031 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3032 | #else | |
3033 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3034 | #endif | |
3035 | } | |
3036 | { | |
3037 | if (temp1) | |
3038 | delete arg1; | |
3039 | } | |
3040 | { | |
3041 | if (temp2) | |
3042 | delete arg2; | |
3043 | } | |
3044 | { | |
3045 | if (temp3) | |
3046 | delete arg3; | |
3047 | } | |
3048 | return resultobj; | |
3049 | fail: | |
3050 | { | |
3051 | if (temp1) | |
3052 | delete arg1; | |
3053 | } | |
3054 | { | |
3055 | if (temp2) | |
3056 | delete arg2; | |
3057 | } | |
3058 | { | |
3059 | if (temp3) | |
3060 | delete arg3; | |
3061 | } | |
3062 | return NULL; | |
3063 | } | |
3064 | ||
3065 | ||
3066 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3067 | PyObject *resultobj; | |
3068 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3069 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3070 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3071 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3072 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3073 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3074 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3075 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3076 | wxString result; | |
3077 | bool temp1 = False ; | |
3078 | bool temp2 = False ; | |
3079 | wxPoint temp4 ; | |
3080 | PyObject * obj0 = 0 ; | |
3081 | PyObject * obj1 = 0 ; | |
3082 | PyObject * obj2 = 0 ; | |
3083 | PyObject * obj3 = 0 ; | |
3084 | PyObject * obj4 = 0 ; | |
3085 | char *kwnames[] = { | |
3086 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3087 | }; | |
3088 | ||
3089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3090 | if (obj0) { | |
3091 | { | |
3092 | arg1 = wxString_in_helper(obj0); | |
3093 | if (arg1 == NULL) SWIG_fail; | |
3094 | temp1 = True; | |
3095 | } | |
3096 | } | |
3097 | if (obj1) { | |
3098 | { | |
3099 | arg2 = wxString_in_helper(obj1); | |
3100 | if (arg2 == NULL) SWIG_fail; | |
3101 | temp2 = True; | |
3102 | } | |
3103 | } | |
3104 | if (obj2) { | |
3105 | arg3 = (long) SWIG_AsLong(obj2); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
3108 | if (obj3) { | |
3109 | { | |
3110 | arg4 = &temp4; | |
3111 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3112 | } | |
3113 | } | |
3114 | if (obj4) { | |
3115 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3117 | } | |
3118 | { | |
3119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3120 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3121 | ||
3122 | wxPyEndAllowThreads(__tstate); | |
3123 | if (PyErr_Occurred()) SWIG_fail; | |
3124 | } | |
3125 | { | |
3126 | #if wxUSE_UNICODE | |
3127 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3128 | #else | |
3129 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3130 | #endif | |
3131 | } | |
3132 | { | |
3133 | if (temp1) | |
3134 | delete arg1; | |
3135 | } | |
3136 | { | |
3137 | if (temp2) | |
3138 | delete arg2; | |
3139 | } | |
3140 | return resultobj; | |
3141 | fail: | |
3142 | { | |
3143 | if (temp1) | |
3144 | delete arg1; | |
3145 | } | |
3146 | { | |
3147 | if (temp2) | |
3148 | delete arg2; | |
3149 | } | |
3150 | return NULL; | |
3151 | } | |
3152 | ||
3153 | ||
3154 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3155 | PyObject *resultobj; | |
3156 | wxString *arg1 = 0 ; | |
3157 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3158 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3159 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3160 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3161 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3162 | int arg5 = (int) -1 ; | |
3163 | int arg6 = (int) -1 ; | |
3164 | bool arg7 = (bool) True ; | |
3165 | wxString result; | |
3166 | bool temp1 = False ; | |
3167 | bool temp2 = False ; | |
3168 | bool temp3 = False ; | |
3169 | PyObject * obj0 = 0 ; | |
3170 | PyObject * obj1 = 0 ; | |
3171 | PyObject * obj2 = 0 ; | |
3172 | PyObject * obj3 = 0 ; | |
3173 | PyObject * obj4 = 0 ; | |
3174 | PyObject * obj5 = 0 ; | |
3175 | PyObject * obj6 = 0 ; | |
3176 | char *kwnames[] = { | |
3177 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3178 | }; | |
3179 | ||
3180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3181 | { | |
3182 | arg1 = wxString_in_helper(obj0); | |
3183 | if (arg1 == NULL) SWIG_fail; | |
3184 | temp1 = True; | |
3185 | } | |
3186 | if (obj1) { | |
3187 | { | |
3188 | arg2 = wxString_in_helper(obj1); | |
3189 | if (arg2 == NULL) SWIG_fail; | |
3190 | temp2 = True; | |
3191 | } | |
3192 | } | |
3193 | if (obj2) { | |
3194 | { | |
3195 | arg3 = wxString_in_helper(obj2); | |
3196 | if (arg3 == NULL) SWIG_fail; | |
3197 | temp3 = True; | |
3198 | } | |
3199 | } | |
3200 | if (obj3) { | |
3201 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3203 | } | |
3204 | if (obj4) { | |
3205 | arg5 = (int) SWIG_AsInt(obj4); | |
3206 | if (PyErr_Occurred()) SWIG_fail; | |
3207 | } | |
3208 | if (obj5) { | |
3209 | arg6 = (int) SWIG_AsInt(obj5); | |
3210 | if (PyErr_Occurred()) SWIG_fail; | |
3211 | } | |
3212 | if (obj6) { | |
3213 | arg7 = (bool) SWIG_AsBool(obj6); | |
3214 | if (PyErr_Occurred()) SWIG_fail; | |
3215 | } | |
3216 | { | |
3217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3218 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3219 | ||
3220 | wxPyEndAllowThreads(__tstate); | |
3221 | if (PyErr_Occurred()) SWIG_fail; | |
3222 | } | |
3223 | { | |
3224 | #if wxUSE_UNICODE | |
3225 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3226 | #else | |
3227 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3228 | #endif | |
3229 | } | |
3230 | { | |
3231 | if (temp1) | |
3232 | delete arg1; | |
3233 | } | |
3234 | { | |
3235 | if (temp2) | |
3236 | delete arg2; | |
3237 | } | |
3238 | { | |
3239 | if (temp3) | |
3240 | delete arg3; | |
3241 | } | |
3242 | return resultobj; | |
3243 | fail: | |
3244 | { | |
3245 | if (temp1) | |
3246 | delete arg1; | |
3247 | } | |
3248 | { | |
3249 | if (temp2) | |
3250 | delete arg2; | |
3251 | } | |
3252 | { | |
3253 | if (temp3) | |
3254 | delete arg3; | |
3255 | } | |
3256 | return NULL; | |
3257 | } | |
3258 | ||
3259 | ||
3260 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3261 | PyObject *resultobj; | |
3262 | wxString *arg1 = 0 ; | |
3263 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3264 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3265 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3266 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3267 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3268 | wxString result; | |
3269 | bool temp1 = False ; | |
3270 | bool temp2 = False ; | |
3271 | bool temp3 = False ; | |
3272 | PyObject * obj0 = 0 ; | |
3273 | PyObject * obj1 = 0 ; | |
3274 | PyObject * obj2 = 0 ; | |
3275 | PyObject * obj3 = 0 ; | |
3276 | char *kwnames[] = { | |
3277 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3278 | }; | |
3279 | ||
3280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3281 | { | |
3282 | arg1 = wxString_in_helper(obj0); | |
3283 | if (arg1 == NULL) SWIG_fail; | |
3284 | temp1 = True; | |
3285 | } | |
3286 | if (obj1) { | |
3287 | { | |
3288 | arg2 = wxString_in_helper(obj1); | |
3289 | if (arg2 == NULL) SWIG_fail; | |
3290 | temp2 = True; | |
3291 | } | |
3292 | } | |
3293 | if (obj2) { | |
3294 | { | |
3295 | arg3 = wxString_in_helper(obj2); | |
3296 | if (arg3 == NULL) SWIG_fail; | |
3297 | temp3 = True; | |
3298 | } | |
3299 | } | |
3300 | if (obj3) { | |
3301 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3303 | } | |
3304 | { | |
3305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3306 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3307 | ||
3308 | wxPyEndAllowThreads(__tstate); | |
3309 | if (PyErr_Occurred()) SWIG_fail; | |
3310 | } | |
3311 | { | |
3312 | #if wxUSE_UNICODE | |
3313 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3314 | #else | |
3315 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3316 | #endif | |
3317 | } | |
3318 | { | |
3319 | if (temp1) | |
3320 | delete arg1; | |
3321 | } | |
3322 | { | |
3323 | if (temp2) | |
3324 | delete arg2; | |
3325 | } | |
3326 | { | |
3327 | if (temp3) | |
3328 | delete arg3; | |
3329 | } | |
3330 | return resultobj; | |
3331 | fail: | |
3332 | { | |
3333 | if (temp1) | |
3334 | delete arg1; | |
3335 | } | |
3336 | { | |
3337 | if (temp2) | |
3338 | delete arg2; | |
3339 | } | |
3340 | { | |
3341 | if (temp3) | |
3342 | delete arg3; | |
3343 | } | |
3344 | return NULL; | |
3345 | } | |
3346 | ||
3347 | ||
3348 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3349 | PyObject *resultobj; | |
3350 | wxString *arg1 = 0 ; | |
3351 | wxString *arg2 = 0 ; | |
3352 | int arg3 ; | |
3353 | wxString *arg4 = (wxString *) 0 ; | |
3354 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3355 | int arg6 = (int) -1 ; | |
3356 | int arg7 = (int) -1 ; | |
3357 | bool arg8 = (bool) True ; | |
3358 | int arg9 = (int) 150 ; | |
3359 | int arg10 = (int) 200 ; | |
3360 | wxString result; | |
3361 | bool temp1 = False ; | |
3362 | bool temp2 = False ; | |
3363 | PyObject * obj0 = 0 ; | |
3364 | PyObject * obj1 = 0 ; | |
3365 | PyObject * obj2 = 0 ; | |
3366 | PyObject * obj3 = 0 ; | |
3367 | PyObject * obj4 = 0 ; | |
3368 | PyObject * obj5 = 0 ; | |
3369 | PyObject * obj6 = 0 ; | |
3370 | PyObject * obj7 = 0 ; | |
3371 | PyObject * obj8 = 0 ; | |
3372 | char *kwnames[] = { | |
3373 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3374 | }; | |
3375 | ||
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3377 | { | |
3378 | arg1 = wxString_in_helper(obj0); | |
3379 | if (arg1 == NULL) SWIG_fail; | |
3380 | temp1 = True; | |
3381 | } | |
3382 | { | |
3383 | arg2 = wxString_in_helper(obj1); | |
3384 | if (arg2 == NULL) SWIG_fail; | |
3385 | temp2 = True; | |
3386 | } | |
3387 | { | |
3388 | arg3 = PyList_Size(obj2); | |
3389 | arg4 = wxString_LIST_helper(obj2); | |
3390 | if (arg4 == NULL) SWIG_fail; | |
3391 | } | |
3392 | if (obj3) { | |
3393 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3395 | } | |
3396 | if (obj4) { | |
3397 | arg6 = (int) SWIG_AsInt(obj4); | |
3398 | if (PyErr_Occurred()) SWIG_fail; | |
3399 | } | |
3400 | if (obj5) { | |
3401 | arg7 = (int) SWIG_AsInt(obj5); | |
3402 | if (PyErr_Occurred()) SWIG_fail; | |
3403 | } | |
3404 | if (obj6) { | |
3405 | arg8 = (bool) SWIG_AsBool(obj6); | |
3406 | if (PyErr_Occurred()) SWIG_fail; | |
3407 | } | |
3408 | if (obj7) { | |
3409 | arg9 = (int) SWIG_AsInt(obj7); | |
3410 | if (PyErr_Occurred()) SWIG_fail; | |
3411 | } | |
3412 | if (obj8) { | |
3413 | arg10 = (int) SWIG_AsInt(obj8); | |
3414 | if (PyErr_Occurred()) SWIG_fail; | |
3415 | } | |
3416 | { | |
3417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3418 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3419 | ||
3420 | wxPyEndAllowThreads(__tstate); | |
3421 | if (PyErr_Occurred()) SWIG_fail; | |
3422 | } | |
3423 | { | |
3424 | #if wxUSE_UNICODE | |
3425 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3426 | #else | |
3427 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3428 | #endif | |
3429 | } | |
3430 | { | |
3431 | if (temp1) | |
3432 | delete arg1; | |
3433 | } | |
3434 | { | |
3435 | if (temp2) | |
3436 | delete arg2; | |
3437 | } | |
3438 | { | |
3439 | if (arg4) delete [] arg4; | |
3440 | } | |
3441 | return resultobj; | |
3442 | fail: | |
3443 | { | |
3444 | if (temp1) | |
3445 | delete arg1; | |
3446 | } | |
3447 | { | |
3448 | if (temp2) | |
3449 | delete arg2; | |
3450 | } | |
3451 | { | |
3452 | if (arg4) delete [] arg4; | |
3453 | } | |
3454 | return NULL; | |
3455 | } | |
3456 | ||
3457 | ||
3458 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3459 | PyObject *resultobj; | |
3460 | wxString *arg1 = 0 ; | |
3461 | wxString *arg2 = 0 ; | |
3462 | int arg3 ; | |
3463 | wxString *arg4 = (wxString *) 0 ; | |
3464 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3465 | int arg6 = (int) -1 ; | |
3466 | int arg7 = (int) -1 ; | |
3467 | bool arg8 = (bool) True ; | |
3468 | int arg9 = (int) 150 ; | |
3469 | int arg10 = (int) 200 ; | |
3470 | int result; | |
3471 | bool temp1 = False ; | |
3472 | bool temp2 = False ; | |
3473 | PyObject * obj0 = 0 ; | |
3474 | PyObject * obj1 = 0 ; | |
3475 | PyObject * obj2 = 0 ; | |
3476 | PyObject * obj3 = 0 ; | |
3477 | PyObject * obj4 = 0 ; | |
3478 | PyObject * obj5 = 0 ; | |
3479 | PyObject * obj6 = 0 ; | |
3480 | PyObject * obj7 = 0 ; | |
3481 | PyObject * obj8 = 0 ; | |
3482 | char *kwnames[] = { | |
3483 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3484 | }; | |
3485 | ||
3486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3487 | { | |
3488 | arg1 = wxString_in_helper(obj0); | |
3489 | if (arg1 == NULL) SWIG_fail; | |
3490 | temp1 = True; | |
3491 | } | |
3492 | { | |
3493 | arg2 = wxString_in_helper(obj1); | |
3494 | if (arg2 == NULL) SWIG_fail; | |
3495 | temp2 = True; | |
3496 | } | |
3497 | { | |
3498 | arg3 = PyList_Size(obj2); | |
3499 | arg4 = wxString_LIST_helper(obj2); | |
3500 | if (arg4 == NULL) SWIG_fail; | |
3501 | } | |
3502 | if (obj3) { | |
3503 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3505 | } | |
3506 | if (obj4) { | |
3507 | arg6 = (int) SWIG_AsInt(obj4); | |
3508 | if (PyErr_Occurred()) SWIG_fail; | |
3509 | } | |
3510 | if (obj5) { | |
3511 | arg7 = (int) SWIG_AsInt(obj5); | |
3512 | if (PyErr_Occurred()) SWIG_fail; | |
3513 | } | |
3514 | if (obj6) { | |
3515 | arg8 = (bool) SWIG_AsBool(obj6); | |
3516 | if (PyErr_Occurred()) SWIG_fail; | |
3517 | } | |
3518 | if (obj7) { | |
3519 | arg9 = (int) SWIG_AsInt(obj7); | |
3520 | if (PyErr_Occurred()) SWIG_fail; | |
3521 | } | |
3522 | if (obj8) { | |
3523 | arg10 = (int) SWIG_AsInt(obj8); | |
3524 | if (PyErr_Occurred()) SWIG_fail; | |
3525 | } | |
3526 | { | |
3527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3528 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3529 | ||
3530 | wxPyEndAllowThreads(__tstate); | |
3531 | if (PyErr_Occurred()) SWIG_fail; | |
3532 | } | |
3533 | resultobj = SWIG_FromInt((int)result); | |
3534 | { | |
3535 | if (temp1) | |
3536 | delete arg1; | |
3537 | } | |
3538 | { | |
3539 | if (temp2) | |
3540 | delete arg2; | |
3541 | } | |
3542 | { | |
3543 | if (arg4) delete [] arg4; | |
3544 | } | |
3545 | return resultobj; | |
3546 | fail: | |
3547 | { | |
3548 | if (temp1) | |
3549 | delete arg1; | |
3550 | } | |
3551 | { | |
3552 | if (temp2) | |
3553 | delete arg2; | |
3554 | } | |
3555 | { | |
3556 | if (arg4) delete [] arg4; | |
3557 | } | |
3558 | return NULL; | |
3559 | } | |
3560 | ||
3561 | ||
3562 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3563 | PyObject *resultobj; | |
3564 | wxString *arg1 = 0 ; | |
3565 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3566 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3567 | int arg3 = (int) wxOK|wxCENTRE ; | |
3568 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3569 | int arg5 = (int) -1 ; | |
3570 | int arg6 = (int) -1 ; | |
3571 | int result; | |
3572 | bool temp1 = False ; | |
3573 | bool temp2 = False ; | |
3574 | PyObject * obj0 = 0 ; | |
3575 | PyObject * obj1 = 0 ; | |
3576 | PyObject * obj2 = 0 ; | |
3577 | PyObject * obj3 = 0 ; | |
3578 | PyObject * obj4 = 0 ; | |
3579 | PyObject * obj5 = 0 ; | |
3580 | char *kwnames[] = { | |
3581 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3582 | }; | |
3583 | ||
3584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3585 | { | |
3586 | arg1 = wxString_in_helper(obj0); | |
3587 | if (arg1 == NULL) SWIG_fail; | |
3588 | temp1 = True; | |
3589 | } | |
3590 | if (obj1) { | |
3591 | { | |
3592 | arg2 = wxString_in_helper(obj1); | |
3593 | if (arg2 == NULL) SWIG_fail; | |
3594 | temp2 = True; | |
3595 | } | |
3596 | } | |
3597 | if (obj2) { | |
3598 | arg3 = (int) SWIG_AsInt(obj2); | |
3599 | if (PyErr_Occurred()) SWIG_fail; | |
3600 | } | |
3601 | if (obj3) { | |
3602 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3604 | } | |
3605 | if (obj4) { | |
3606 | arg5 = (int) SWIG_AsInt(obj4); | |
3607 | if (PyErr_Occurred()) SWIG_fail; | |
3608 | } | |
3609 | if (obj5) { | |
3610 | arg6 = (int) SWIG_AsInt(obj5); | |
3611 | if (PyErr_Occurred()) SWIG_fail; | |
3612 | } | |
3613 | { | |
3614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3615 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3616 | ||
3617 | wxPyEndAllowThreads(__tstate); | |
3618 | if (PyErr_Occurred()) SWIG_fail; | |
3619 | } | |
3620 | resultobj = SWIG_FromInt((int)result); | |
3621 | { | |
3622 | if (temp1) | |
3623 | delete arg1; | |
3624 | } | |
3625 | { | |
3626 | if (temp2) | |
3627 | delete arg2; | |
3628 | } | |
3629 | return resultobj; | |
3630 | fail: | |
3631 | { | |
3632 | if (temp1) | |
3633 | delete arg1; | |
3634 | } | |
3635 | { | |
3636 | if (temp2) | |
3637 | delete arg2; | |
3638 | } | |
3639 | return NULL; | |
3640 | } | |
3641 | ||
3642 | ||
3643 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3644 | PyObject *resultobj; | |
3645 | wxString *arg1 = 0 ; | |
3646 | wxString *arg2 = 0 ; | |
3647 | wxString *arg3 = 0 ; | |
3648 | long arg4 ; | |
3649 | long arg5 = (long) 0 ; | |
3650 | long arg6 = (long) 100 ; | |
3651 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3652 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3653 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3654 | long result; | |
3655 | bool temp1 = False ; | |
3656 | bool temp2 = False ; | |
3657 | bool temp3 = False ; | |
3658 | wxPoint temp8 ; | |
3659 | PyObject * obj0 = 0 ; | |
3660 | PyObject * obj1 = 0 ; | |
3661 | PyObject * obj2 = 0 ; | |
3662 | PyObject * obj3 = 0 ; | |
3663 | PyObject * obj4 = 0 ; | |
3664 | PyObject * obj5 = 0 ; | |
3665 | PyObject * obj6 = 0 ; | |
3666 | PyObject * obj7 = 0 ; | |
3667 | char *kwnames[] = { | |
3668 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3669 | }; | |
3670 | ||
3671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3672 | { | |
3673 | arg1 = wxString_in_helper(obj0); | |
3674 | if (arg1 == NULL) SWIG_fail; | |
3675 | temp1 = True; | |
3676 | } | |
3677 | { | |
3678 | arg2 = wxString_in_helper(obj1); | |
3679 | if (arg2 == NULL) SWIG_fail; | |
3680 | temp2 = True; | |
3681 | } | |
3682 | { | |
3683 | arg3 = wxString_in_helper(obj2); | |
3684 | if (arg3 == NULL) SWIG_fail; | |
3685 | temp3 = True; | |
3686 | } | |
3687 | arg4 = (long) SWIG_AsLong(obj3); | |
3688 | if (PyErr_Occurred()) SWIG_fail; | |
3689 | if (obj4) { | |
3690 | arg5 = (long) SWIG_AsLong(obj4); | |
3691 | if (PyErr_Occurred()) SWIG_fail; | |
3692 | } | |
3693 | if (obj5) { | |
3694 | arg6 = (long) SWIG_AsLong(obj5); | |
3695 | if (PyErr_Occurred()) SWIG_fail; | |
3696 | } | |
3697 | if (obj6) { | |
3698 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3700 | } | |
3701 | if (obj7) { | |
3702 | { | |
3703 | arg8 = &temp8; | |
3704 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3705 | } | |
3706 | } | |
3707 | { | |
3708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3709 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3710 | ||
3711 | wxPyEndAllowThreads(__tstate); | |
3712 | if (PyErr_Occurred()) SWIG_fail; | |
3713 | } | |
3714 | resultobj = SWIG_FromLong((long)result); | |
3715 | { | |
3716 | if (temp1) | |
3717 | delete arg1; | |
3718 | } | |
3719 | { | |
3720 | if (temp2) | |
3721 | delete arg2; | |
3722 | } | |
3723 | { | |
3724 | if (temp3) | |
3725 | delete arg3; | |
3726 | } | |
3727 | return resultobj; | |
3728 | fail: | |
3729 | { | |
3730 | if (temp1) | |
3731 | delete arg1; | |
3732 | } | |
3733 | { | |
3734 | if (temp2) | |
3735 | delete arg2; | |
3736 | } | |
3737 | { | |
3738 | if (temp3) | |
3739 | delete arg3; | |
3740 | } | |
3741 | return NULL; | |
3742 | } | |
3743 | ||
3744 | ||
3745 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3746 | PyObject *resultobj; | |
3747 | bool result; | |
3748 | char *kwnames[] = { | |
3749 | NULL | |
3750 | }; | |
3751 | ||
3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3753 | { | |
3754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3755 | result = (bool)wxColourDisplay(); | |
3756 | ||
3757 | wxPyEndAllowThreads(__tstate); | |
3758 | if (PyErr_Occurred()) SWIG_fail; | |
3759 | } | |
3760 | { | |
3761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3762 | } | |
3763 | return resultobj; | |
3764 | fail: | |
3765 | return NULL; | |
3766 | } | |
3767 | ||
3768 | ||
3769 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3770 | PyObject *resultobj; | |
3771 | int result; | |
3772 | char *kwnames[] = { | |
3773 | NULL | |
3774 | }; | |
3775 | ||
3776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3777 | { | |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3779 | result = (int)wxDisplayDepth(); | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | resultobj = SWIG_FromInt((int)result); | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
3791 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3792 | PyObject *resultobj; | |
3793 | int result; | |
3794 | char *kwnames[] = { | |
3795 | NULL | |
3796 | }; | |
3797 | ||
3798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3799 | { | |
3800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3801 | result = (int)wxGetDisplayDepth(); | |
3802 | ||
3803 | wxPyEndAllowThreads(__tstate); | |
3804 | if (PyErr_Occurred()) SWIG_fail; | |
3805 | } | |
3806 | resultobj = SWIG_FromInt((int)result); | |
3807 | return resultobj; | |
3808 | fail: | |
3809 | return NULL; | |
3810 | } | |
3811 | ||
3812 | ||
3813 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3814 | PyObject *resultobj; | |
3815 | int *arg1 = (int *) 0 ; | |
3816 | int *arg2 = (int *) 0 ; | |
3817 | int temp1 ; | |
3818 | int temp2 ; | |
3819 | char *kwnames[] = { | |
3820 | NULL | |
3821 | }; | |
3822 | ||
3823 | arg1 = &temp1; | |
3824 | arg2 = &temp2; | |
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3826 | { | |
3827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3828 | wxDisplaySize(arg1,arg2); | |
3829 | ||
3830 | wxPyEndAllowThreads(__tstate); | |
3831 | if (PyErr_Occurred()) SWIG_fail; | |
3832 | } | |
3833 | Py_INCREF(Py_None); resultobj = Py_None; | |
3834 | { | |
3835 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3836 | resultobj = t_output_helper(resultobj,o); | |
3837 | } | |
3838 | { | |
3839 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3840 | resultobj = t_output_helper(resultobj,o); | |
3841 | } | |
3842 | return resultobj; | |
3843 | fail: | |
3844 | return NULL; | |
3845 | } | |
3846 | ||
3847 | ||
3848 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3849 | PyObject *resultobj; | |
3850 | wxSize result; | |
3851 | char *kwnames[] = { | |
3852 | NULL | |
3853 | }; | |
3854 | ||
3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3856 | { | |
3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3858 | result = wxGetDisplaySize(); | |
3859 | ||
3860 | wxPyEndAllowThreads(__tstate); | |
3861 | if (PyErr_Occurred()) SWIG_fail; | |
3862 | } | |
3863 | { | |
3864 | wxSize * resultptr; | |
3865 | resultptr = new wxSize((wxSize &) result); | |
3866 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3867 | } | |
3868 | return resultobj; | |
3869 | fail: | |
3870 | return NULL; | |
3871 | } | |
3872 | ||
3873 | ||
3874 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3875 | PyObject *resultobj; | |
3876 | int *arg1 = (int *) 0 ; | |
3877 | int *arg2 = (int *) 0 ; | |
3878 | int temp1 ; | |
3879 | int temp2 ; | |
3880 | char *kwnames[] = { | |
3881 | NULL | |
3882 | }; | |
3883 | ||
3884 | arg1 = &temp1; | |
3885 | arg2 = &temp2; | |
3886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3887 | { | |
3888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3889 | wxDisplaySizeMM(arg1,arg2); | |
3890 | ||
3891 | wxPyEndAllowThreads(__tstate); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
3894 | Py_INCREF(Py_None); resultobj = Py_None; | |
3895 | { | |
3896 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3897 | resultobj = t_output_helper(resultobj,o); | |
3898 | } | |
3899 | { | |
3900 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3901 | resultobj = t_output_helper(resultobj,o); | |
3902 | } | |
3903 | return resultobj; | |
3904 | fail: | |
3905 | return NULL; | |
3906 | } | |
3907 | ||
3908 | ||
3909 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3910 | PyObject *resultobj; | |
3911 | wxSize result; | |
3912 | char *kwnames[] = { | |
3913 | NULL | |
3914 | }; | |
3915 | ||
3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3917 | { | |
3918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3919 | result = wxGetDisplaySizeMM(); | |
3920 | ||
3921 | wxPyEndAllowThreads(__tstate); | |
3922 | if (PyErr_Occurred()) SWIG_fail; | |
3923 | } | |
3924 | { | |
3925 | wxSize * resultptr; | |
3926 | resultptr = new wxSize((wxSize &) result); | |
3927 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3928 | } | |
3929 | return resultobj; | |
3930 | fail: | |
3931 | return NULL; | |
3932 | } | |
3933 | ||
3934 | ||
3935 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3936 | PyObject *resultobj; | |
3937 | int *arg1 = (int *) 0 ; | |
3938 | int *arg2 = (int *) 0 ; | |
3939 | int *arg3 = (int *) 0 ; | |
3940 | int *arg4 = (int *) 0 ; | |
3941 | int temp1 ; | |
3942 | int temp2 ; | |
3943 | int temp3 ; | |
3944 | int temp4 ; | |
3945 | char *kwnames[] = { | |
3946 | NULL | |
3947 | }; | |
3948 | ||
3949 | arg1 = &temp1; | |
3950 | arg2 = &temp2; | |
3951 | arg3 = &temp3; | |
3952 | arg4 = &temp4; | |
3953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3954 | { | |
3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3956 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3957 | ||
3958 | wxPyEndAllowThreads(__tstate); | |
3959 | if (PyErr_Occurred()) SWIG_fail; | |
3960 | } | |
3961 | Py_INCREF(Py_None); resultobj = Py_None; | |
3962 | { | |
3963 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3964 | resultobj = t_output_helper(resultobj,o); | |
3965 | } | |
3966 | { | |
3967 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3968 | resultobj = t_output_helper(resultobj,o); | |
3969 | } | |
3970 | { | |
3971 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3972 | resultobj = t_output_helper(resultobj,o); | |
3973 | } | |
3974 | { | |
3975 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3976 | resultobj = t_output_helper(resultobj,o); | |
3977 | } | |
3978 | return resultobj; | |
3979 | fail: | |
3980 | return NULL; | |
3981 | } | |
3982 | ||
3983 | ||
3984 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3985 | PyObject *resultobj; | |
3986 | wxRect result; | |
3987 | char *kwnames[] = { | |
3988 | NULL | |
3989 | }; | |
3990 | ||
3991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3992 | { | |
3993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3994 | result = wxGetClientDisplayRect(); | |
3995 | ||
3996 | wxPyEndAllowThreads(__tstate); | |
3997 | if (PyErr_Occurred()) SWIG_fail; | |
3998 | } | |
3999 | { | |
4000 | wxRect * resultptr; | |
4001 | resultptr = new wxRect((wxRect &) result); | |
4002 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4003 | } | |
4004 | return resultobj; | |
4005 | fail: | |
4006 | return NULL; | |
4007 | } | |
4008 | ||
4009 | ||
4010 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4011 | PyObject *resultobj; | |
4012 | wxCursor *arg1 = 0 ; | |
4013 | PyObject * obj0 = 0 ; | |
4014 | char *kwnames[] = { | |
4015 | (char *) "cursor", NULL | |
4016 | }; | |
4017 | ||
4018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
4019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4020 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4021 | SWIG_fail; | |
4022 | if (arg1 == NULL) { | |
4023 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4024 | SWIG_fail; | |
4025 | } | |
4026 | { | |
4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4028 | wxSetCursor(*arg1); | |
4029 | ||
4030 | wxPyEndAllowThreads(__tstate); | |
4031 | if (PyErr_Occurred()) SWIG_fail; | |
4032 | } | |
4033 | Py_INCREF(Py_None); resultobj = Py_None; | |
4034 | return resultobj; | |
4035 | fail: | |
4036 | return NULL; | |
4037 | } | |
4038 | ||
4039 | ||
4040 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4041 | PyObject *resultobj; | |
4042 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4043 | PyObject * obj0 = 0 ; | |
4044 | char *kwnames[] = { | |
4045 | (char *) "cursor", NULL | |
4046 | }; | |
4047 | ||
4048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4049 | if (obj0) { | |
4050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4052 | } | |
4053 | { | |
4054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4055 | wxBeginBusyCursor(arg1); | |
4056 | ||
4057 | wxPyEndAllowThreads(__tstate); | |
4058 | if (PyErr_Occurred()) SWIG_fail; | |
4059 | } | |
4060 | Py_INCREF(Py_None); resultobj = Py_None; | |
4061 | return resultobj; | |
4062 | fail: | |
4063 | return NULL; | |
4064 | } | |
4065 | ||
4066 | ||
4067 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4068 | PyObject *resultobj; | |
4069 | wxWindow *result; | |
4070 | char *kwnames[] = { | |
4071 | NULL | |
4072 | }; | |
4073 | ||
4074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4075 | { | |
4076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4077 | result = (wxWindow *)wxGetActiveWindow(); | |
4078 | ||
4079 | wxPyEndAllowThreads(__tstate); | |
4080 | if (PyErr_Occurred()) SWIG_fail; | |
4081 | } | |
4082 | { | |
4083 | resultobj = wxPyMake_wxObject(result); | |
4084 | } | |
4085 | return resultobj; | |
4086 | fail: | |
4087 | return NULL; | |
4088 | } | |
4089 | ||
4090 | ||
4091 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4092 | PyObject *resultobj; | |
4093 | wxPoint *arg1 = 0 ; | |
4094 | wxWindow *result; | |
4095 | wxPoint temp1 ; | |
4096 | PyObject * obj0 = 0 ; | |
4097 | char *kwnames[] = { | |
4098 | (char *) "pt", NULL | |
4099 | }; | |
4100 | ||
4101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4102 | { | |
4103 | arg1 = &temp1; | |
4104 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4105 | } | |
4106 | { | |
4107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4108 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4109 | ||
4110 | wxPyEndAllowThreads(__tstate); | |
4111 | if (PyErr_Occurred()) SWIG_fail; | |
4112 | } | |
4113 | { | |
4114 | resultobj = wxPyMake_wxObject(result); | |
4115 | } | |
4116 | return resultobj; | |
4117 | fail: | |
4118 | return NULL; | |
4119 | } | |
4120 | ||
4121 | ||
4122 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4123 | PyObject *resultobj; | |
4124 | wxPoint *arg1 = 0 ; | |
4125 | wxWindow *result; | |
4126 | wxPoint temp1 ; | |
4127 | PyObject * obj0 = 0 ; | |
4128 | char *kwnames[] = { | |
4129 | (char *) "pt", NULL | |
4130 | }; | |
4131 | ||
4132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4133 | { | |
4134 | arg1 = &temp1; | |
4135 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4136 | } | |
4137 | { | |
4138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4139 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4140 | ||
4141 | wxPyEndAllowThreads(__tstate); | |
4142 | if (PyErr_Occurred()) SWIG_fail; | |
4143 | } | |
4144 | { | |
4145 | resultobj = wxPyMake_wxObject(result); | |
4146 | } | |
4147 | return resultobj; | |
4148 | fail: | |
4149 | return NULL; | |
4150 | } | |
4151 | ||
4152 | ||
4153 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4154 | PyObject *resultobj; | |
4155 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4156 | wxWindow *result; | |
4157 | PyObject * obj0 = 0 ; | |
4158 | char *kwnames[] = { | |
4159 | (char *) "win", NULL | |
4160 | }; | |
4161 | ||
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4165 | { | |
4166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4167 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4168 | ||
4169 | wxPyEndAllowThreads(__tstate); | |
4170 | if (PyErr_Occurred()) SWIG_fail; | |
4171 | } | |
4172 | { | |
4173 | resultobj = wxPyMake_wxObject(result); | |
4174 | } | |
4175 | return resultobj; | |
4176 | fail: | |
4177 | return NULL; | |
4178 | } | |
4179 | ||
4180 | ||
4181 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4182 | PyObject *resultobj; | |
4183 | int arg1 ; | |
4184 | bool result; | |
4185 | PyObject * obj0 = 0 ; | |
4186 | char *kwnames[] = { | |
4187 | (char *) "key", NULL | |
4188 | }; | |
4189 | ||
4190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
4191 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); | |
4192 | if (PyErr_Occurred()) SWIG_fail; | |
4193 | { | |
4194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4195 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4196 | ||
4197 | wxPyEndAllowThreads(__tstate); | |
4198 | if (PyErr_Occurred()) SWIG_fail; | |
4199 | } | |
4200 | { | |
4201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4202 | } | |
4203 | return resultobj; | |
4204 | fail: | |
4205 | return NULL; | |
4206 | } | |
4207 | ||
4208 | ||
4209 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4210 | PyObject *resultobj; | |
4211 | char *kwnames[] = { | |
4212 | NULL | |
4213 | }; | |
4214 | ||
4215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4216 | { | |
4217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4218 | wxWakeUpMainThread(); | |
4219 | ||
4220 | wxPyEndAllowThreads(__tstate); | |
4221 | if (PyErr_Occurred()) SWIG_fail; | |
4222 | } | |
4223 | Py_INCREF(Py_None); resultobj = Py_None; | |
4224 | return resultobj; | |
4225 | fail: | |
4226 | return NULL; | |
4227 | } | |
4228 | ||
4229 | ||
4230 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4231 | PyObject *resultobj; | |
4232 | char *kwnames[] = { | |
4233 | NULL | |
4234 | }; | |
4235 | ||
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4237 | { | |
4238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4239 | wxMutexGuiEnter(); | |
4240 | ||
4241 | wxPyEndAllowThreads(__tstate); | |
4242 | if (PyErr_Occurred()) SWIG_fail; | |
4243 | } | |
4244 | Py_INCREF(Py_None); resultobj = Py_None; | |
4245 | return resultobj; | |
4246 | fail: | |
4247 | return NULL; | |
4248 | } | |
4249 | ||
4250 | ||
4251 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4252 | PyObject *resultobj; | |
4253 | char *kwnames[] = { | |
4254 | NULL | |
4255 | }; | |
4256 | ||
4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4258 | { | |
4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4260 | wxMutexGuiLeave(); | |
4261 | ||
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4265 | Py_INCREF(Py_None); resultobj = Py_None; | |
4266 | return resultobj; | |
4267 | fail: | |
4268 | return NULL; | |
4269 | } | |
4270 | ||
4271 | ||
4272 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4273 | PyObject *resultobj; | |
4274 | wxMutexGuiLocker *result; | |
4275 | char *kwnames[] = { | |
4276 | NULL | |
4277 | }; | |
4278 | ||
4279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4280 | { | |
4281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4282 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4283 | ||
4284 | wxPyEndAllowThreads(__tstate); | |
4285 | if (PyErr_Occurred()) SWIG_fail; | |
4286 | } | |
4287 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4288 | return resultobj; | |
4289 | fail: | |
4290 | return NULL; | |
4291 | } | |
4292 | ||
4293 | ||
4294 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject *resultobj; | |
4296 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4297 | PyObject * obj0 = 0 ; | |
4298 | char *kwnames[] = { | |
4299 | (char *) "self", NULL | |
4300 | }; | |
4301 | ||
4302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4305 | { | |
4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4307 | delete arg1; | |
4308 | ||
4309 | wxPyEndAllowThreads(__tstate); | |
4310 | if (PyErr_Occurred()) SWIG_fail; | |
4311 | } | |
4312 | Py_INCREF(Py_None); resultobj = Py_None; | |
4313 | return resultobj; | |
4314 | fail: | |
4315 | return NULL; | |
4316 | } | |
4317 | ||
4318 | ||
4319 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4320 | PyObject *obj; | |
4321 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4322 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4323 | Py_INCREF(obj); | |
4324 | return Py_BuildValue((char *)""); | |
4325 | } | |
4326 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4327 | PyObject *resultobj; | |
4328 | bool result; | |
4329 | char *kwnames[] = { | |
4330 | NULL | |
4331 | }; | |
4332 | ||
4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4334 | { | |
4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4336 | result = (bool)wxThread_IsMain(); | |
4337 | ||
4338 | wxPyEndAllowThreads(__tstate); | |
4339 | if (PyErr_Occurred()) SWIG_fail; | |
4340 | } | |
4341 | { | |
4342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4343 | } | |
4344 | return resultobj; | |
4345 | fail: | |
4346 | return NULL; | |
4347 | } | |
4348 | ||
4349 | ||
4350 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4351 | PyObject *resultobj; | |
4352 | wxString *arg1 = 0 ; | |
4353 | wxToolTip *result; | |
4354 | bool temp1 = False ; | |
4355 | PyObject * obj0 = 0 ; | |
4356 | char *kwnames[] = { | |
4357 | (char *) "tip", NULL | |
4358 | }; | |
4359 | ||
4360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4361 | { | |
4362 | arg1 = wxString_in_helper(obj0); | |
4363 | if (arg1 == NULL) SWIG_fail; | |
4364 | temp1 = True; | |
4365 | } | |
4366 | { | |
4367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4368 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4369 | ||
4370 | wxPyEndAllowThreads(__tstate); | |
4371 | if (PyErr_Occurred()) SWIG_fail; | |
4372 | } | |
4373 | { | |
4374 | resultobj = wxPyMake_wxObject(result); | |
4375 | } | |
4376 | { | |
4377 | if (temp1) | |
4378 | delete arg1; | |
4379 | } | |
4380 | return resultobj; | |
4381 | fail: | |
4382 | { | |
4383 | if (temp1) | |
4384 | delete arg1; | |
4385 | } | |
4386 | return NULL; | |
4387 | } | |
4388 | ||
4389 | ||
4390 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4391 | PyObject *resultobj; | |
4392 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4393 | wxString *arg2 = 0 ; | |
4394 | bool temp2 = False ; | |
4395 | PyObject * obj0 = 0 ; | |
4396 | PyObject * obj1 = 0 ; | |
4397 | char *kwnames[] = { | |
4398 | (char *) "self",(char *) "tip", NULL | |
4399 | }; | |
4400 | ||
4401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4404 | { | |
4405 | arg2 = wxString_in_helper(obj1); | |
4406 | if (arg2 == NULL) SWIG_fail; | |
4407 | temp2 = True; | |
4408 | } | |
4409 | { | |
4410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4411 | (arg1)->SetTip((wxString const &)*arg2); | |
4412 | ||
4413 | wxPyEndAllowThreads(__tstate); | |
4414 | if (PyErr_Occurred()) SWIG_fail; | |
4415 | } | |
4416 | Py_INCREF(Py_None); resultobj = Py_None; | |
4417 | { | |
4418 | if (temp2) | |
4419 | delete arg2; | |
4420 | } | |
4421 | return resultobj; | |
4422 | fail: | |
4423 | { | |
4424 | if (temp2) | |
4425 | delete arg2; | |
4426 | } | |
4427 | return NULL; | |
4428 | } | |
4429 | ||
4430 | ||
4431 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4432 | PyObject *resultobj; | |
4433 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4434 | wxString result; | |
4435 | PyObject * obj0 = 0 ; | |
4436 | char *kwnames[] = { | |
4437 | (char *) "self", NULL | |
4438 | }; | |
4439 | ||
4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4443 | { | |
4444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4445 | result = (arg1)->GetTip(); | |
4446 | ||
4447 | wxPyEndAllowThreads(__tstate); | |
4448 | if (PyErr_Occurred()) SWIG_fail; | |
4449 | } | |
4450 | { | |
4451 | #if wxUSE_UNICODE | |
4452 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4453 | #else | |
4454 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4455 | #endif | |
4456 | } | |
4457 | return resultobj; | |
4458 | fail: | |
4459 | return NULL; | |
4460 | } | |
4461 | ||
4462 | ||
4463 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4464 | PyObject *resultobj; | |
4465 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4466 | wxWindow *result; | |
4467 | PyObject * obj0 = 0 ; | |
4468 | char *kwnames[] = { | |
4469 | (char *) "self", NULL | |
4470 | }; | |
4471 | ||
4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4475 | { | |
4476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4477 | result = (wxWindow *)(arg1)->GetWindow(); | |
4478 | ||
4479 | wxPyEndAllowThreads(__tstate); | |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
4481 | } | |
4482 | { | |
4483 | resultobj = wxPyMake_wxObject(result); | |
4484 | } | |
4485 | return resultobj; | |
4486 | fail: | |
4487 | return NULL; | |
4488 | } | |
4489 | ||
4490 | ||
4491 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4492 | PyObject *resultobj; | |
4493 | bool arg1 ; | |
4494 | PyObject * obj0 = 0 ; | |
4495 | char *kwnames[] = { | |
4496 | (char *) "flag", NULL | |
4497 | }; | |
4498 | ||
4499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
4500 | arg1 = (bool) SWIG_AsBool(obj0); | |
4501 | if (PyErr_Occurred()) SWIG_fail; | |
4502 | { | |
4503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4504 | wxToolTip::Enable(arg1); | |
4505 | ||
4506 | wxPyEndAllowThreads(__tstate); | |
4507 | if (PyErr_Occurred()) SWIG_fail; | |
4508 | } | |
4509 | Py_INCREF(Py_None); resultobj = Py_None; | |
4510 | return resultobj; | |
4511 | fail: | |
4512 | return NULL; | |
4513 | } | |
4514 | ||
4515 | ||
4516 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4517 | PyObject *resultobj; | |
4518 | long arg1 ; | |
4519 | PyObject * obj0 = 0 ; | |
4520 | char *kwnames[] = { | |
4521 | (char *) "milliseconds", NULL | |
4522 | }; | |
4523 | ||
4524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
4525 | arg1 = (long) SWIG_AsLong(obj0); | |
4526 | if (PyErr_Occurred()) SWIG_fail; | |
4527 | { | |
4528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4529 | wxToolTip::SetDelay(arg1); | |
4530 | ||
4531 | wxPyEndAllowThreads(__tstate); | |
4532 | if (PyErr_Occurred()) SWIG_fail; | |
4533 | } | |
4534 | Py_INCREF(Py_None); resultobj = Py_None; | |
4535 | return resultobj; | |
4536 | fail: | |
4537 | return NULL; | |
4538 | } | |
4539 | ||
4540 | ||
4541 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4542 | PyObject *obj; | |
4543 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4544 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4545 | Py_INCREF(obj); | |
4546 | return Py_BuildValue((char *)""); | |
4547 | } | |
4548 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4549 | PyObject *resultobj; | |
4550 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4551 | wxSize *arg2 = 0 ; | |
4552 | wxCaret *result; | |
4553 | wxSize temp2 ; | |
4554 | PyObject * obj0 = 0 ; | |
4555 | PyObject * obj1 = 0 ; | |
4556 | char *kwnames[] = { | |
4557 | (char *) "window",(char *) "size", NULL | |
4558 | }; | |
4559 | ||
4560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4563 | { | |
4564 | arg2 = &temp2; | |
4565 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4566 | } | |
4567 | { | |
4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4569 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4570 | ||
4571 | wxPyEndAllowThreads(__tstate); | |
4572 | if (PyErr_Occurred()) SWIG_fail; | |
4573 | } | |
4574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
4575 | return resultobj; | |
4576 | fail: | |
4577 | return NULL; | |
4578 | } | |
4579 | ||
4580 | ||
4581 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4582 | PyObject *resultobj; | |
4583 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4584 | PyObject * obj0 = 0 ; | |
4585 | char *kwnames[] = { | |
4586 | (char *) "self", NULL | |
4587 | }; | |
4588 | ||
4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4592 | { | |
4593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4594 | delete arg1; | |
4595 | ||
4596 | wxPyEndAllowThreads(__tstate); | |
4597 | if (PyErr_Occurred()) SWIG_fail; | |
4598 | } | |
4599 | Py_INCREF(Py_None); resultobj = Py_None; | |
4600 | return resultobj; | |
4601 | fail: | |
4602 | return NULL; | |
4603 | } | |
4604 | ||
4605 | ||
4606 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4607 | PyObject *resultobj; | |
4608 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4609 | bool result; | |
4610 | PyObject * obj0 = 0 ; | |
4611 | char *kwnames[] = { | |
4612 | (char *) "self", NULL | |
4613 | }; | |
4614 | ||
4615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4618 | { | |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | result = (bool)(arg1)->IsOk(); | |
4621 | ||
4622 | wxPyEndAllowThreads(__tstate); | |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
4624 | } | |
4625 | { | |
4626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4627 | } | |
4628 | return resultobj; | |
4629 | fail: | |
4630 | return NULL; | |
4631 | } | |
4632 | ||
4633 | ||
4634 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4635 | PyObject *resultobj; | |
4636 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4637 | bool result; | |
4638 | PyObject * obj0 = 0 ; | |
4639 | char *kwnames[] = { | |
4640 | (char *) "self", NULL | |
4641 | }; | |
4642 | ||
4643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4646 | { | |
4647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4648 | result = (bool)(arg1)->IsVisible(); | |
4649 | ||
4650 | wxPyEndAllowThreads(__tstate); | |
4651 | if (PyErr_Occurred()) SWIG_fail; | |
4652 | } | |
4653 | { | |
4654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4655 | } | |
4656 | return resultobj; | |
4657 | fail: | |
4658 | return NULL; | |
4659 | } | |
4660 | ||
4661 | ||
4662 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4663 | PyObject *resultobj; | |
4664 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4665 | wxPoint result; | |
4666 | PyObject * obj0 = 0 ; | |
4667 | char *kwnames[] = { | |
4668 | (char *) "self", NULL | |
4669 | }; | |
4670 | ||
4671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4674 | { | |
4675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4676 | result = (arg1)->GetPosition(); | |
4677 | ||
4678 | wxPyEndAllowThreads(__tstate); | |
4679 | if (PyErr_Occurred()) SWIG_fail; | |
4680 | } | |
4681 | { | |
4682 | wxPoint * resultptr; | |
4683 | resultptr = new wxPoint((wxPoint &) result); | |
4684 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4685 | } | |
4686 | return resultobj; | |
4687 | fail: | |
4688 | return NULL; | |
4689 | } | |
4690 | ||
4691 | ||
4692 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4693 | PyObject *resultobj; | |
4694 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4695 | int *arg2 = (int *) 0 ; | |
4696 | int *arg3 = (int *) 0 ; | |
4697 | int temp2 ; | |
4698 | int temp3 ; | |
4699 | PyObject * obj0 = 0 ; | |
4700 | char *kwnames[] = { | |
4701 | (char *) "self", NULL | |
4702 | }; | |
4703 | ||
4704 | arg2 = &temp2; | |
4705 | arg3 = &temp3; | |
4706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4709 | { | |
4710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4711 | (arg1)->GetPosition(arg2,arg3); | |
4712 | ||
4713 | wxPyEndAllowThreads(__tstate); | |
4714 | if (PyErr_Occurred()) SWIG_fail; | |
4715 | } | |
4716 | Py_INCREF(Py_None); resultobj = Py_None; | |
4717 | { | |
4718 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4719 | resultobj = t_output_helper(resultobj,o); | |
4720 | } | |
4721 | { | |
4722 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4723 | resultobj = t_output_helper(resultobj,o); | |
4724 | } | |
4725 | return resultobj; | |
4726 | fail: | |
4727 | return NULL; | |
4728 | } | |
4729 | ||
4730 | ||
4731 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4732 | PyObject *resultobj; | |
4733 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4734 | wxSize result; | |
4735 | PyObject * obj0 = 0 ; | |
4736 | char *kwnames[] = { | |
4737 | (char *) "self", NULL | |
4738 | }; | |
4739 | ||
4740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
4741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4743 | { | |
4744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4745 | result = (arg1)->GetSize(); | |
4746 | ||
4747 | wxPyEndAllowThreads(__tstate); | |
4748 | if (PyErr_Occurred()) SWIG_fail; | |
4749 | } | |
4750 | { | |
4751 | wxSize * resultptr; | |
4752 | resultptr = new wxSize((wxSize &) result); | |
4753 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4754 | } | |
4755 | return resultobj; | |
4756 | fail: | |
4757 | return NULL; | |
4758 | } | |
4759 | ||
4760 | ||
4761 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4762 | PyObject *resultobj; | |
4763 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4764 | int *arg2 = (int *) 0 ; | |
4765 | int *arg3 = (int *) 0 ; | |
4766 | int temp2 ; | |
4767 | int temp3 ; | |
4768 | PyObject * obj0 = 0 ; | |
4769 | char *kwnames[] = { | |
4770 | (char *) "self", NULL | |
4771 | }; | |
4772 | ||
4773 | arg2 = &temp2; | |
4774 | arg3 = &temp3; | |
4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4778 | { | |
4779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4780 | (arg1)->GetSize(arg2,arg3); | |
4781 | ||
4782 | wxPyEndAllowThreads(__tstate); | |
4783 | if (PyErr_Occurred()) SWIG_fail; | |
4784 | } | |
4785 | Py_INCREF(Py_None); resultobj = Py_None; | |
4786 | { | |
4787 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4788 | resultobj = t_output_helper(resultobj,o); | |
4789 | } | |
4790 | { | |
4791 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4792 | resultobj = t_output_helper(resultobj,o); | |
4793 | } | |
4794 | return resultobj; | |
4795 | fail: | |
4796 | return NULL; | |
4797 | } | |
4798 | ||
4799 | ||
4800 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject *resultobj; | |
4802 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4803 | wxWindow *result; | |
4804 | PyObject * obj0 = 0 ; | |
4805 | char *kwnames[] = { | |
4806 | (char *) "self", NULL | |
4807 | }; | |
4808 | ||
4809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4812 | { | |
4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4814 | result = (wxWindow *)(arg1)->GetWindow(); | |
4815 | ||
4816 | wxPyEndAllowThreads(__tstate); | |
4817 | if (PyErr_Occurred()) SWIG_fail; | |
4818 | } | |
4819 | { | |
4820 | resultobj = wxPyMake_wxObject(result); | |
4821 | } | |
4822 | return resultobj; | |
4823 | fail: | |
4824 | return NULL; | |
4825 | } | |
4826 | ||
4827 | ||
4828 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4829 | PyObject *resultobj; | |
4830 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4831 | int arg2 ; | |
4832 | int arg3 ; | |
4833 | PyObject * obj0 = 0 ; | |
4834 | PyObject * obj1 = 0 ; | |
4835 | PyObject * obj2 = 0 ; | |
4836 | char *kwnames[] = { | |
4837 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4838 | }; | |
4839 | ||
4840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4843 | arg2 = (int) SWIG_AsInt(obj1); | |
4844 | if (PyErr_Occurred()) SWIG_fail; | |
4845 | arg3 = (int) SWIG_AsInt(obj2); | |
4846 | if (PyErr_Occurred()) SWIG_fail; | |
4847 | { | |
4848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4849 | (arg1)->Move(arg2,arg3); | |
4850 | ||
4851 | wxPyEndAllowThreads(__tstate); | |
4852 | if (PyErr_Occurred()) SWIG_fail; | |
4853 | } | |
4854 | Py_INCREF(Py_None); resultobj = Py_None; | |
4855 | return resultobj; | |
4856 | fail: | |
4857 | return NULL; | |
4858 | } | |
4859 | ||
4860 | ||
4861 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4862 | PyObject *resultobj; | |
4863 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4864 | wxPoint *arg2 = 0 ; | |
4865 | wxPoint temp2 ; | |
4866 | PyObject * obj0 = 0 ; | |
4867 | PyObject * obj1 = 0 ; | |
4868 | char *kwnames[] = { | |
4869 | (char *) "self",(char *) "pt", NULL | |
4870 | }; | |
4871 | ||
4872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4875 | { | |
4876 | arg2 = &temp2; | |
4877 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4878 | } | |
4879 | { | |
4880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4881 | (arg1)->Move((wxPoint const &)*arg2); | |
4882 | ||
4883 | wxPyEndAllowThreads(__tstate); | |
4884 | if (PyErr_Occurred()) SWIG_fail; | |
4885 | } | |
4886 | Py_INCREF(Py_None); resultobj = Py_None; | |
4887 | return resultobj; | |
4888 | fail: | |
4889 | return NULL; | |
4890 | } | |
4891 | ||
4892 | ||
4893 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4894 | PyObject *resultobj; | |
4895 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4896 | int arg2 ; | |
4897 | int arg3 ; | |
4898 | PyObject * obj0 = 0 ; | |
4899 | PyObject * obj1 = 0 ; | |
4900 | PyObject * obj2 = 0 ; | |
4901 | char *kwnames[] = { | |
4902 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4903 | }; | |
4904 | ||
4905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4908 | arg2 = (int) SWIG_AsInt(obj1); | |
4909 | if (PyErr_Occurred()) SWIG_fail; | |
4910 | arg3 = (int) SWIG_AsInt(obj2); | |
4911 | if (PyErr_Occurred()) SWIG_fail; | |
4912 | { | |
4913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4914 | (arg1)->SetSize(arg2,arg3); | |
4915 | ||
4916 | wxPyEndAllowThreads(__tstate); | |
4917 | if (PyErr_Occurred()) SWIG_fail; | |
4918 | } | |
4919 | Py_INCREF(Py_None); resultobj = Py_None; | |
4920 | return resultobj; | |
4921 | fail: | |
4922 | return NULL; | |
4923 | } | |
4924 | ||
4925 | ||
4926 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4927 | PyObject *resultobj; | |
4928 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4929 | wxSize *arg2 = 0 ; | |
4930 | wxSize temp2 ; | |
4931 | PyObject * obj0 = 0 ; | |
4932 | PyObject * obj1 = 0 ; | |
4933 | char *kwnames[] = { | |
4934 | (char *) "self",(char *) "size", NULL | |
4935 | }; | |
4936 | ||
4937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4940 | { | |
4941 | arg2 = &temp2; | |
4942 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4943 | } | |
4944 | { | |
4945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4946 | (arg1)->SetSize((wxSize const &)*arg2); | |
4947 | ||
4948 | wxPyEndAllowThreads(__tstate); | |
4949 | if (PyErr_Occurred()) SWIG_fail; | |
4950 | } | |
4951 | Py_INCREF(Py_None); resultobj = Py_None; | |
4952 | return resultobj; | |
4953 | fail: | |
4954 | return NULL; | |
4955 | } | |
4956 | ||
4957 | ||
4958 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4959 | PyObject *resultobj; | |
4960 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4961 | int arg2 = (int) True ; | |
4962 | PyObject * obj0 = 0 ; | |
4963 | PyObject * obj1 = 0 ; | |
4964 | char *kwnames[] = { | |
4965 | (char *) "self",(char *) "show", NULL | |
4966 | }; | |
4967 | ||
4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
4969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4971 | if (obj1) { | |
4972 | arg2 = (int) SWIG_AsInt(obj1); | |
4973 | if (PyErr_Occurred()) SWIG_fail; | |
4974 | } | |
4975 | { | |
4976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4977 | (arg1)->Show(arg2); | |
4978 | ||
4979 | wxPyEndAllowThreads(__tstate); | |
4980 | if (PyErr_Occurred()) SWIG_fail; | |
4981 | } | |
4982 | Py_INCREF(Py_None); resultobj = Py_None; | |
4983 | return resultobj; | |
4984 | fail: | |
4985 | return NULL; | |
4986 | } | |
4987 | ||
4988 | ||
4989 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4990 | PyObject *resultobj; | |
4991 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4992 | PyObject * obj0 = 0 ; | |
4993 | char *kwnames[] = { | |
4994 | (char *) "self", NULL | |
4995 | }; | |
4996 | ||
4997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5000 | { | |
5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5002 | (arg1)->Hide(); | |
5003 | ||
5004 | wxPyEndAllowThreads(__tstate); | |
5005 | if (PyErr_Occurred()) SWIG_fail; | |
5006 | } | |
5007 | Py_INCREF(Py_None); resultobj = Py_None; | |
5008 | return resultobj; | |
5009 | fail: | |
5010 | return NULL; | |
5011 | } | |
5012 | ||
5013 | ||
5014 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
5015 | PyObject *obj; | |
5016 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5017 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5018 | Py_INCREF(obj); | |
5019 | return Py_BuildValue((char *)""); | |
5020 | } | |
5021 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5022 | PyObject *resultobj; | |
5023 | int result; | |
5024 | char *kwnames[] = { | |
5025 | NULL | |
5026 | }; | |
5027 | ||
5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5029 | { | |
5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5031 | result = (int)wxCaret_GetBlinkTime(); | |
5032 | ||
5033 | wxPyEndAllowThreads(__tstate); | |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | } | |
5036 | resultobj = SWIG_FromInt((int)result); | |
5037 | return resultobj; | |
5038 | fail: | |
5039 | return NULL; | |
5040 | } | |
5041 | ||
5042 | ||
5043 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject *resultobj; | |
5045 | int arg1 ; | |
5046 | PyObject * obj0 = 0 ; | |
5047 | char *kwnames[] = { | |
5048 | (char *) "milliseconds", NULL | |
5049 | }; | |
5050 | ||
5051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
5052 | arg1 = (int) SWIG_AsInt(obj0); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | { | |
5055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5056 | wxCaret_SetBlinkTime(arg1); | |
5057 | ||
5058 | wxPyEndAllowThreads(__tstate); | |
5059 | if (PyErr_Occurred()) SWIG_fail; | |
5060 | } | |
5061 | Py_INCREF(Py_None); resultobj = Py_None; | |
5062 | return resultobj; | |
5063 | fail: | |
5064 | return NULL; | |
5065 | } | |
5066 | ||
5067 | ||
5068 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5069 | PyObject *resultobj; | |
5070 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5071 | wxBusyCursor *result; | |
5072 | PyObject * obj0 = 0 ; | |
5073 | char *kwnames[] = { | |
5074 | (char *) "cursor", NULL | |
5075 | }; | |
5076 | ||
5077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5078 | if (obj0) { | |
5079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5081 | } | |
5082 | { | |
5083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5084 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5085 | ||
5086 | wxPyEndAllowThreads(__tstate); | |
5087 | if (PyErr_Occurred()) SWIG_fail; | |
5088 | } | |
5089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5090 | return resultobj; | |
5091 | fail: | |
5092 | return NULL; | |
5093 | } | |
5094 | ||
5095 | ||
5096 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5097 | PyObject *resultobj; | |
5098 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5099 | PyObject * obj0 = 0 ; | |
5100 | char *kwnames[] = { | |
5101 | (char *) "self", NULL | |
5102 | }; | |
5103 | ||
5104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5107 | { | |
5108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5109 | delete arg1; | |
5110 | ||
5111 | wxPyEndAllowThreads(__tstate); | |
5112 | if (PyErr_Occurred()) SWIG_fail; | |
5113 | } | |
5114 | Py_INCREF(Py_None); resultobj = Py_None; | |
5115 | return resultobj; | |
5116 | fail: | |
5117 | return NULL; | |
5118 | } | |
5119 | ||
5120 | ||
5121 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5122 | PyObject *obj; | |
5123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5124 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5125 | Py_INCREF(obj); | |
5126 | return Py_BuildValue((char *)""); | |
5127 | } | |
5128 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5129 | PyObject *resultobj; | |
5130 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5131 | wxWindowDisabler *result; | |
5132 | PyObject * obj0 = 0 ; | |
5133 | char *kwnames[] = { | |
5134 | (char *) "winToSkip", NULL | |
5135 | }; | |
5136 | ||
5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5138 | if (obj0) { | |
5139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5141 | } | |
5142 | { | |
5143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5144 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5145 | ||
5146 | wxPyEndAllowThreads(__tstate); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
5149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5150 | return resultobj; | |
5151 | fail: | |
5152 | return NULL; | |
5153 | } | |
5154 | ||
5155 | ||
5156 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5157 | PyObject *resultobj; | |
5158 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5159 | PyObject * obj0 = 0 ; | |
5160 | char *kwnames[] = { | |
5161 | (char *) "self", NULL | |
5162 | }; | |
5163 | ||
5164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5167 | { | |
5168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5169 | delete arg1; | |
5170 | ||
5171 | wxPyEndAllowThreads(__tstate); | |
5172 | if (PyErr_Occurred()) SWIG_fail; | |
5173 | } | |
5174 | Py_INCREF(Py_None); resultobj = Py_None; | |
5175 | return resultobj; | |
5176 | fail: | |
5177 | return NULL; | |
5178 | } | |
5179 | ||
5180 | ||
5181 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5182 | PyObject *obj; | |
5183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5184 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5185 | Py_INCREF(obj); | |
5186 | return Py_BuildValue((char *)""); | |
5187 | } | |
5188 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5189 | PyObject *resultobj; | |
5190 | wxString *arg1 = 0 ; | |
5191 | wxBusyInfo *result; | |
5192 | bool temp1 = False ; | |
5193 | PyObject * obj0 = 0 ; | |
5194 | char *kwnames[] = { | |
5195 | (char *) "message", NULL | |
5196 | }; | |
5197 | ||
5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5199 | { | |
5200 | arg1 = wxString_in_helper(obj0); | |
5201 | if (arg1 == NULL) SWIG_fail; | |
5202 | temp1 = True; | |
5203 | } | |
5204 | { | |
5205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5206 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5207 | ||
5208 | wxPyEndAllowThreads(__tstate); | |
5209 | if (PyErr_Occurred()) SWIG_fail; | |
5210 | } | |
5211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5212 | { | |
5213 | if (temp1) | |
5214 | delete arg1; | |
5215 | } | |
5216 | return resultobj; | |
5217 | fail: | |
5218 | { | |
5219 | if (temp1) | |
5220 | delete arg1; | |
5221 | } | |
5222 | return NULL; | |
5223 | } | |
5224 | ||
5225 | ||
5226 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5227 | PyObject *resultobj; | |
5228 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5229 | PyObject * obj0 = 0 ; | |
5230 | char *kwnames[] = { | |
5231 | (char *) "self", NULL | |
5232 | }; | |
5233 | ||
5234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5237 | { | |
5238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5239 | delete arg1; | |
5240 | ||
5241 | wxPyEndAllowThreads(__tstate); | |
5242 | if (PyErr_Occurred()) SWIG_fail; | |
5243 | } | |
5244 | Py_INCREF(Py_None); resultobj = Py_None; | |
5245 | return resultobj; | |
5246 | fail: | |
5247 | return NULL; | |
5248 | } | |
5249 | ||
5250 | ||
5251 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5252 | PyObject *obj; | |
5253 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5254 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5255 | Py_INCREF(obj); | |
5256 | return Py_BuildValue((char *)""); | |
5257 | } | |
5258 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5259 | PyObject *resultobj; | |
5260 | wxStopWatch *result; | |
5261 | char *kwnames[] = { | |
5262 | NULL | |
5263 | }; | |
5264 | ||
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5266 | { | |
5267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5268 | result = (wxStopWatch *)new wxStopWatch(); | |
5269 | ||
5270 | wxPyEndAllowThreads(__tstate); | |
5271 | if (PyErr_Occurred()) SWIG_fail; | |
5272 | } | |
5273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5274 | return resultobj; | |
5275 | fail: | |
5276 | return NULL; | |
5277 | } | |
5278 | ||
5279 | ||
5280 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5281 | PyObject *resultobj; | |
5282 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5283 | long arg2 = (long) 0 ; | |
5284 | PyObject * obj0 = 0 ; | |
5285 | PyObject * obj1 = 0 ; | |
5286 | char *kwnames[] = { | |
5287 | (char *) "self",(char *) "t0", NULL | |
5288 | }; | |
5289 | ||
5290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5293 | if (obj1) { | |
5294 | arg2 = (long) SWIG_AsLong(obj1); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
5297 | { | |
5298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5299 | (arg1)->Start(arg2); | |
5300 | ||
5301 | wxPyEndAllowThreads(__tstate); | |
5302 | if (PyErr_Occurred()) SWIG_fail; | |
5303 | } | |
5304 | Py_INCREF(Py_None); resultobj = Py_None; | |
5305 | return resultobj; | |
5306 | fail: | |
5307 | return NULL; | |
5308 | } | |
5309 | ||
5310 | ||
5311 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5312 | PyObject *resultobj; | |
5313 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5314 | PyObject * obj0 = 0 ; | |
5315 | char *kwnames[] = { | |
5316 | (char *) "self", NULL | |
5317 | }; | |
5318 | ||
5319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5322 | { | |
5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5324 | (arg1)->Pause(); | |
5325 | ||
5326 | wxPyEndAllowThreads(__tstate); | |
5327 | if (PyErr_Occurred()) SWIG_fail; | |
5328 | } | |
5329 | Py_INCREF(Py_None); resultobj = Py_None; | |
5330 | return resultobj; | |
5331 | fail: | |
5332 | return NULL; | |
5333 | } | |
5334 | ||
5335 | ||
5336 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject *resultobj; | |
5338 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5339 | PyObject * obj0 = 0 ; | |
5340 | char *kwnames[] = { | |
5341 | (char *) "self", NULL | |
5342 | }; | |
5343 | ||
5344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5347 | { | |
5348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5349 | (arg1)->Resume(); | |
5350 | ||
5351 | wxPyEndAllowThreads(__tstate); | |
5352 | if (PyErr_Occurred()) SWIG_fail; | |
5353 | } | |
5354 | Py_INCREF(Py_None); resultobj = Py_None; | |
5355 | return resultobj; | |
5356 | fail: | |
5357 | return NULL; | |
5358 | } | |
5359 | ||
5360 | ||
5361 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5362 | PyObject *resultobj; | |
5363 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5364 | long result; | |
5365 | PyObject * obj0 = 0 ; | |
5366 | char *kwnames[] = { | |
5367 | (char *) "self", NULL | |
5368 | }; | |
5369 | ||
5370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5373 | { | |
5374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5375 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5376 | ||
5377 | wxPyEndAllowThreads(__tstate); | |
5378 | if (PyErr_Occurred()) SWIG_fail; | |
5379 | } | |
5380 | resultobj = SWIG_FromLong((long)result); | |
5381 | return resultobj; | |
5382 | fail: | |
5383 | return NULL; | |
5384 | } | |
5385 | ||
5386 | ||
5387 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5388 | PyObject *obj; | |
5389 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5390 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5391 | Py_INCREF(obj); | |
5392 | return Py_BuildValue((char *)""); | |
5393 | } | |
5394 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5395 | PyObject *resultobj; | |
5396 | int arg1 = (int) 9 ; | |
5397 | wxFileHistory *result; | |
5398 | PyObject * obj0 = 0 ; | |
5399 | char *kwnames[] = { | |
5400 | (char *) "maxFiles", NULL | |
5401 | }; | |
5402 | ||
5403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; | |
5404 | if (obj0) { | |
5405 | arg1 = (int) SWIG_AsInt(obj0); | |
5406 | if (PyErr_Occurred()) SWIG_fail; | |
5407 | } | |
5408 | { | |
5409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5410 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5411 | ||
5412 | wxPyEndAllowThreads(__tstate); | |
5413 | if (PyErr_Occurred()) SWIG_fail; | |
5414 | } | |
5415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5416 | return resultobj; | |
5417 | fail: | |
5418 | return NULL; | |
5419 | } | |
5420 | ||
5421 | ||
5422 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5423 | PyObject *resultobj; | |
5424 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5425 | PyObject * obj0 = 0 ; | |
5426 | char *kwnames[] = { | |
5427 | (char *) "self", NULL | |
5428 | }; | |
5429 | ||
5430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5433 | { | |
5434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5435 | delete arg1; | |
5436 | ||
5437 | wxPyEndAllowThreads(__tstate); | |
5438 | if (PyErr_Occurred()) SWIG_fail; | |
5439 | } | |
5440 | Py_INCREF(Py_None); resultobj = Py_None; | |
5441 | return resultobj; | |
5442 | fail: | |
5443 | return NULL; | |
5444 | } | |
5445 | ||
5446 | ||
5447 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5448 | PyObject *resultobj; | |
5449 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5450 | wxString *arg2 = 0 ; | |
5451 | bool temp2 = False ; | |
5452 | PyObject * obj0 = 0 ; | |
5453 | PyObject * obj1 = 0 ; | |
5454 | char *kwnames[] = { | |
5455 | (char *) "self",(char *) "file", NULL | |
5456 | }; | |
5457 | ||
5458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5461 | { | |
5462 | arg2 = wxString_in_helper(obj1); | |
5463 | if (arg2 == NULL) SWIG_fail; | |
5464 | temp2 = True; | |
5465 | } | |
5466 | { | |
5467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5468 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5469 | ||
5470 | wxPyEndAllowThreads(__tstate); | |
5471 | if (PyErr_Occurred()) SWIG_fail; | |
5472 | } | |
5473 | Py_INCREF(Py_None); resultobj = Py_None; | |
5474 | { | |
5475 | if (temp2) | |
5476 | delete arg2; | |
5477 | } | |
5478 | return resultobj; | |
5479 | fail: | |
5480 | { | |
5481 | if (temp2) | |
5482 | delete arg2; | |
5483 | } | |
5484 | return NULL; | |
5485 | } | |
5486 | ||
5487 | ||
5488 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5489 | PyObject *resultobj; | |
5490 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5491 | int arg2 ; | |
5492 | PyObject * obj0 = 0 ; | |
5493 | PyObject * obj1 = 0 ; | |
5494 | char *kwnames[] = { | |
5495 | (char *) "self",(char *) "i", NULL | |
5496 | }; | |
5497 | ||
5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5501 | arg2 = (int) SWIG_AsInt(obj1); | |
5502 | if (PyErr_Occurred()) SWIG_fail; | |
5503 | { | |
5504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5505 | (arg1)->RemoveFileFromHistory(arg2); | |
5506 | ||
5507 | wxPyEndAllowThreads(__tstate); | |
5508 | if (PyErr_Occurred()) SWIG_fail; | |
5509 | } | |
5510 | Py_INCREF(Py_None); resultobj = Py_None; | |
5511 | return resultobj; | |
5512 | fail: | |
5513 | return NULL; | |
5514 | } | |
5515 | ||
5516 | ||
5517 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5518 | PyObject *resultobj; | |
5519 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5520 | int result; | |
5521 | PyObject * obj0 = 0 ; | |
5522 | char *kwnames[] = { | |
5523 | (char *) "self", NULL | |
5524 | }; | |
5525 | ||
5526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5529 | { | |
5530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5531 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5532 | ||
5533 | wxPyEndAllowThreads(__tstate); | |
5534 | if (PyErr_Occurred()) SWIG_fail; | |
5535 | } | |
5536 | resultobj = SWIG_FromInt((int)result); | |
5537 | return resultobj; | |
5538 | fail: | |
5539 | return NULL; | |
5540 | } | |
5541 | ||
5542 | ||
5543 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5544 | PyObject *resultobj; | |
5545 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5546 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5547 | PyObject * obj0 = 0 ; | |
5548 | PyObject * obj1 = 0 ; | |
5549 | char *kwnames[] = { | |
5550 | (char *) "self",(char *) "menu", NULL | |
5551 | }; | |
5552 | ||
5553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
5554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5556 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5558 | { | |
5559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5560 | (arg1)->UseMenu(arg2); | |
5561 | ||
5562 | wxPyEndAllowThreads(__tstate); | |
5563 | if (PyErr_Occurred()) SWIG_fail; | |
5564 | } | |
5565 | Py_INCREF(Py_None); resultobj = Py_None; | |
5566 | return resultobj; | |
5567 | fail: | |
5568 | return NULL; | |
5569 | } | |
5570 | ||
5571 | ||
5572 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5573 | PyObject *resultobj; | |
5574 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5575 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5576 | PyObject * obj0 = 0 ; | |
5577 | PyObject * obj1 = 0 ; | |
5578 | char *kwnames[] = { | |
5579 | (char *) "self",(char *) "menu", NULL | |
5580 | }; | |
5581 | ||
5582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
5583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5585 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5587 | { | |
5588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5589 | (arg1)->RemoveMenu(arg2); | |
5590 | ||
5591 | wxPyEndAllowThreads(__tstate); | |
5592 | if (PyErr_Occurred()) SWIG_fail; | |
5593 | } | |
5594 | Py_INCREF(Py_None); resultobj = Py_None; | |
5595 | return resultobj; | |
5596 | fail: | |
5597 | return NULL; | |
5598 | } | |
5599 | ||
5600 | ||
5601 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5602 | PyObject *resultobj; | |
5603 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5604 | wxConfigBase *arg2 = 0 ; | |
5605 | PyObject * obj0 = 0 ; | |
5606 | PyObject * obj1 = 0 ; | |
5607 | char *kwnames[] = { | |
5608 | (char *) "self",(char *) "config", NULL | |
5609 | }; | |
5610 | ||
5611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5614 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5615 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5616 | SWIG_fail; | |
5617 | if (arg2 == NULL) { | |
5618 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5619 | SWIG_fail; | |
5620 | } | |
5621 | { | |
5622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5623 | (arg1)->Load(*arg2); | |
5624 | ||
5625 | wxPyEndAllowThreads(__tstate); | |
5626 | if (PyErr_Occurred()) SWIG_fail; | |
5627 | } | |
5628 | Py_INCREF(Py_None); resultobj = Py_None; | |
5629 | return resultobj; | |
5630 | fail: | |
5631 | return NULL; | |
5632 | } | |
5633 | ||
5634 | ||
5635 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject *resultobj; | |
5637 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5638 | wxConfigBase *arg2 = 0 ; | |
5639 | PyObject * obj0 = 0 ; | |
5640 | PyObject * obj1 = 0 ; | |
5641 | char *kwnames[] = { | |
5642 | (char *) "self",(char *) "config", NULL | |
5643 | }; | |
5644 | ||
5645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5649 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5650 | SWIG_fail; | |
5651 | if (arg2 == NULL) { | |
5652 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5653 | SWIG_fail; | |
5654 | } | |
5655 | { | |
5656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5657 | (arg1)->Save(*arg2); | |
5658 | ||
5659 | wxPyEndAllowThreads(__tstate); | |
5660 | if (PyErr_Occurred()) SWIG_fail; | |
5661 | } | |
5662 | Py_INCREF(Py_None); resultobj = Py_None; | |
5663 | return resultobj; | |
5664 | fail: | |
5665 | return NULL; | |
5666 | } | |
5667 | ||
5668 | ||
5669 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5670 | PyObject *resultobj; | |
5671 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5672 | PyObject * obj0 = 0 ; | |
5673 | char *kwnames[] = { | |
5674 | (char *) "self", NULL | |
5675 | }; | |
5676 | ||
5677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5680 | { | |
5681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5682 | (arg1)->AddFilesToMenu(); | |
5683 | ||
5684 | wxPyEndAllowThreads(__tstate); | |
5685 | if (PyErr_Occurred()) SWIG_fail; | |
5686 | } | |
5687 | Py_INCREF(Py_None); resultobj = Py_None; | |
5688 | return resultobj; | |
5689 | fail: | |
5690 | return NULL; | |
5691 | } | |
5692 | ||
5693 | ||
5694 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5695 | PyObject *resultobj; | |
5696 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5697 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5698 | PyObject * obj0 = 0 ; | |
5699 | PyObject * obj1 = 0 ; | |
5700 | char *kwnames[] = { | |
5701 | (char *) "self",(char *) "menu", NULL | |
5702 | }; | |
5703 | ||
5704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5707 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5709 | { | |
5710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5711 | (arg1)->AddFilesToMenu(arg2); | |
5712 | ||
5713 | wxPyEndAllowThreads(__tstate); | |
5714 | if (PyErr_Occurred()) SWIG_fail; | |
5715 | } | |
5716 | Py_INCREF(Py_None); resultobj = Py_None; | |
5717 | return resultobj; | |
5718 | fail: | |
5719 | return NULL; | |
5720 | } | |
5721 | ||
5722 | ||
5723 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5724 | PyObject *resultobj; | |
5725 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5726 | int arg2 ; | |
5727 | wxString result; | |
5728 | PyObject * obj0 = 0 ; | |
5729 | PyObject * obj1 = 0 ; | |
5730 | char *kwnames[] = { | |
5731 | (char *) "self",(char *) "i", NULL | |
5732 | }; | |
5733 | ||
5734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
5735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5737 | arg2 = (int) SWIG_AsInt(obj1); | |
5738 | if (PyErr_Occurred()) SWIG_fail; | |
5739 | { | |
5740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5741 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5742 | ||
5743 | wxPyEndAllowThreads(__tstate); | |
5744 | if (PyErr_Occurred()) SWIG_fail; | |
5745 | } | |
5746 | { | |
5747 | #if wxUSE_UNICODE | |
5748 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5749 | #else | |
5750 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5751 | #endif | |
5752 | } | |
5753 | return resultobj; | |
5754 | fail: | |
5755 | return NULL; | |
5756 | } | |
5757 | ||
5758 | ||
5759 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5760 | PyObject *resultobj; | |
5761 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5762 | int result; | |
5763 | PyObject * obj0 = 0 ; | |
5764 | char *kwnames[] = { | |
5765 | (char *) "self", NULL | |
5766 | }; | |
5767 | ||
5768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5771 | { | |
5772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5773 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5774 | ||
5775 | wxPyEndAllowThreads(__tstate); | |
5776 | if (PyErr_Occurred()) SWIG_fail; | |
5777 | } | |
5778 | resultobj = SWIG_FromInt((int)result); | |
5779 | return resultobj; | |
5780 | fail: | |
5781 | return NULL; | |
5782 | } | |
5783 | ||
5784 | ||
5785 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5786 | PyObject *obj; | |
5787 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5788 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5789 | Py_INCREF(obj); | |
5790 | return Py_BuildValue((char *)""); | |
5791 | } | |
5792 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5793 | PyObject *resultobj; | |
5794 | wxString *arg1 = 0 ; | |
5795 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5796 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5797 | wxSingleInstanceChecker *result; | |
5798 | bool temp1 = False ; | |
5799 | bool temp2 = False ; | |
5800 | PyObject * obj0 = 0 ; | |
5801 | PyObject * obj1 = 0 ; | |
5802 | char *kwnames[] = { | |
5803 | (char *) "name",(char *) "path", NULL | |
5804 | }; | |
5805 | ||
5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5807 | { | |
5808 | arg1 = wxString_in_helper(obj0); | |
5809 | if (arg1 == NULL) SWIG_fail; | |
5810 | temp1 = True; | |
5811 | } | |
5812 | if (obj1) { | |
5813 | { | |
5814 | arg2 = wxString_in_helper(obj1); | |
5815 | if (arg2 == NULL) SWIG_fail; | |
5816 | temp2 = True; | |
5817 | } | |
5818 | } | |
5819 | { | |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5821 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | } | |
5826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5827 | { | |
5828 | if (temp1) | |
5829 | delete arg1; | |
5830 | } | |
5831 | { | |
5832 | if (temp2) | |
5833 | delete arg2; | |
5834 | } | |
5835 | return resultobj; | |
5836 | fail: | |
5837 | { | |
5838 | if (temp1) | |
5839 | delete arg1; | |
5840 | } | |
5841 | { | |
5842 | if (temp2) | |
5843 | delete arg2; | |
5844 | } | |
5845 | return NULL; | |
5846 | } | |
5847 | ||
5848 | ||
5849 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5850 | PyObject *resultobj; | |
5851 | wxSingleInstanceChecker *result; | |
5852 | char *kwnames[] = { | |
5853 | NULL | |
5854 | }; | |
5855 | ||
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5857 | { | |
5858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5859 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5860 | ||
5861 | wxPyEndAllowThreads(__tstate); | |
5862 | if (PyErr_Occurred()) SWIG_fail; | |
5863 | } | |
5864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5865 | return resultobj; | |
5866 | fail: | |
5867 | return NULL; | |
5868 | } | |
5869 | ||
5870 | ||
5871 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5872 | PyObject *resultobj; | |
5873 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5874 | PyObject * obj0 = 0 ; | |
5875 | char *kwnames[] = { | |
5876 | (char *) "self", NULL | |
5877 | }; | |
5878 | ||
5879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5882 | { | |
5883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5884 | delete arg1; | |
5885 | ||
5886 | wxPyEndAllowThreads(__tstate); | |
5887 | if (PyErr_Occurred()) SWIG_fail; | |
5888 | } | |
5889 | Py_INCREF(Py_None); resultobj = Py_None; | |
5890 | return resultobj; | |
5891 | fail: | |
5892 | return NULL; | |
5893 | } | |
5894 | ||
5895 | ||
5896 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5897 | PyObject *resultobj; | |
5898 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5899 | wxString *arg2 = 0 ; | |
5900 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5901 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5902 | bool result; | |
5903 | bool temp2 = False ; | |
5904 | bool temp3 = False ; | |
5905 | PyObject * obj0 = 0 ; | |
5906 | PyObject * obj1 = 0 ; | |
5907 | PyObject * obj2 = 0 ; | |
5908 | char *kwnames[] = { | |
5909 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5910 | }; | |
5911 | ||
5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5915 | { | |
5916 | arg2 = wxString_in_helper(obj1); | |
5917 | if (arg2 == NULL) SWIG_fail; | |
5918 | temp2 = True; | |
5919 | } | |
5920 | if (obj2) { | |
5921 | { | |
5922 | arg3 = wxString_in_helper(obj2); | |
5923 | if (arg3 == NULL) SWIG_fail; | |
5924 | temp3 = True; | |
5925 | } | |
5926 | } | |
5927 | { | |
5928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5929 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5930 | ||
5931 | wxPyEndAllowThreads(__tstate); | |
5932 | if (PyErr_Occurred()) SWIG_fail; | |
5933 | } | |
5934 | { | |
5935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5936 | } | |
5937 | { | |
5938 | if (temp2) | |
5939 | delete arg2; | |
5940 | } | |
5941 | { | |
5942 | if (temp3) | |
5943 | delete arg3; | |
5944 | } | |
5945 | return resultobj; | |
5946 | fail: | |
5947 | { | |
5948 | if (temp2) | |
5949 | delete arg2; | |
5950 | } | |
5951 | { | |
5952 | if (temp3) | |
5953 | delete arg3; | |
5954 | } | |
5955 | return NULL; | |
5956 | } | |
5957 | ||
5958 | ||
5959 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5960 | PyObject *resultobj; | |
5961 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5962 | bool result; | |
5963 | PyObject * obj0 = 0 ; | |
5964 | char *kwnames[] = { | |
5965 | (char *) "self", NULL | |
5966 | }; | |
5967 | ||
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5971 | { | |
5972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5973 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5974 | ||
5975 | wxPyEndAllowThreads(__tstate); | |
5976 | if (PyErr_Occurred()) SWIG_fail; | |
5977 | } | |
5978 | { | |
5979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5980 | } | |
5981 | return resultobj; | |
5982 | fail: | |
5983 | return NULL; | |
5984 | } | |
5985 | ||
5986 | ||
5987 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5988 | PyObject *obj; | |
5989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5990 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5991 | Py_INCREF(obj); | |
5992 | return Py_BuildValue((char *)""); | |
5993 | } | |
5994 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject *resultobj; | |
5996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5997 | wxDC *arg2 = 0 ; | |
5998 | int arg3 ; | |
5999 | PyObject * obj0 = 0 ; | |
6000 | PyObject * obj1 = 0 ; | |
6001 | PyObject * obj2 = 0 ; | |
6002 | char *kwnames[] = { | |
6003 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6004 | }; | |
6005 | ||
6006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6009 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6010 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6011 | SWIG_fail; | |
6012 | if (arg2 == NULL) { | |
6013 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6014 | SWIG_fail; | |
6015 | } | |
6016 | arg3 = (int) SWIG_AsInt(obj2); | |
6017 | if (PyErr_Occurred()) SWIG_fail; | |
6018 | { | |
6019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6020 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6021 | ||
6022 | wxPyEndAllowThreads(__tstate); | |
6023 | if (PyErr_Occurred()) SWIG_fail; | |
6024 | } | |
6025 | Py_INCREF(Py_None); resultobj = Py_None; | |
6026 | return resultobj; | |
6027 | fail: | |
6028 | return NULL; | |
6029 | } | |
6030 | ||
6031 | ||
6032 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6033 | PyObject *resultobj; | |
6034 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6035 | PyObject * obj0 = 0 ; | |
6036 | char *kwnames[] = { | |
6037 | (char *) "self", NULL | |
6038 | }; | |
6039 | ||
6040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6043 | { | |
6044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6045 | delete arg1; | |
6046 | ||
6047 | wxPyEndAllowThreads(__tstate); | |
6048 | if (PyErr_Occurred()) SWIG_fail; | |
6049 | } | |
6050 | Py_INCREF(Py_None); resultobj = Py_None; | |
6051 | return resultobj; | |
6052 | fail: | |
6053 | return NULL; | |
6054 | } | |
6055 | ||
6056 | ||
6057 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6058 | PyObject *resultobj; | |
6059 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6060 | wxString result; | |
6061 | PyObject * obj0 = 0 ; | |
6062 | char *kwnames[] = { | |
6063 | (char *) "self", NULL | |
6064 | }; | |
6065 | ||
6066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6069 | { | |
6070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6071 | result = (arg1)->GetTip(); | |
6072 | ||
6073 | wxPyEndAllowThreads(__tstate); | |
6074 | if (PyErr_Occurred()) SWIG_fail; | |
6075 | } | |
6076 | { | |
6077 | #if wxUSE_UNICODE | |
6078 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6079 | #else | |
6080 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6081 | #endif | |
6082 | } | |
6083 | return resultobj; | |
6084 | fail: | |
6085 | return NULL; | |
6086 | } | |
6087 | ||
6088 | ||
6089 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6090 | PyObject *resultobj; | |
6091 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6092 | size_t result; | |
6093 | PyObject * obj0 = 0 ; | |
6094 | char *kwnames[] = { | |
6095 | (char *) "self", NULL | |
6096 | }; | |
6097 | ||
6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6101 | { | |
6102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6103 | result = (size_t)(arg1)->GetCurrentTip(); | |
6104 | ||
6105 | wxPyEndAllowThreads(__tstate); | |
6106 | if (PyErr_Occurred()) SWIG_fail; | |
6107 | } | |
6108 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
6109 | return resultobj; | |
6110 | fail: | |
6111 | return NULL; | |
6112 | } | |
6113 | ||
6114 | ||
6115 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6116 | PyObject *resultobj; | |
6117 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6118 | wxString *arg2 = 0 ; | |
6119 | wxString result; | |
6120 | bool temp2 = False ; | |
6121 | PyObject * obj0 = 0 ; | |
6122 | PyObject * obj1 = 0 ; | |
6123 | char *kwnames[] = { | |
6124 | (char *) "self",(char *) "tip", NULL | |
6125 | }; | |
6126 | ||
6127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6130 | { | |
6131 | arg2 = wxString_in_helper(obj1); | |
6132 | if (arg2 == NULL) SWIG_fail; | |
6133 | temp2 = True; | |
6134 | } | |
6135 | { | |
6136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6137 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6138 | ||
6139 | wxPyEndAllowThreads(__tstate); | |
6140 | if (PyErr_Occurred()) SWIG_fail; | |
6141 | } | |
6142 | { | |
6143 | #if wxUSE_UNICODE | |
6144 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6145 | #else | |
6146 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6147 | #endif | |
6148 | } | |
6149 | { | |
6150 | if (temp2) | |
6151 | delete arg2; | |
6152 | } | |
6153 | return resultobj; | |
6154 | fail: | |
6155 | { | |
6156 | if (temp2) | |
6157 | delete arg2; | |
6158 | } | |
6159 | return NULL; | |
6160 | } | |
6161 | ||
6162 | ||
6163 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6164 | PyObject *obj; | |
6165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6166 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6167 | Py_INCREF(obj); | |
6168 | return Py_BuildValue((char *)""); | |
6169 | } | |
6170 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6171 | PyObject *resultobj; | |
6172 | size_t arg1 ; | |
6173 | wxPyTipProvider *result; | |
6174 | PyObject * obj0 = 0 ; | |
6175 | char *kwnames[] = { | |
6176 | (char *) "currentTip", NULL | |
6177 | }; | |
6178 | ||
6179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
6180 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
6181 | if (PyErr_Occurred()) SWIG_fail; | |
6182 | { | |
6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6184 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6185 | ||
6186 | wxPyEndAllowThreads(__tstate); | |
6187 | if (PyErr_Occurred()) SWIG_fail; | |
6188 | } | |
6189 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6190 | return resultobj; | |
6191 | fail: | |
6192 | return NULL; | |
6193 | } | |
6194 | ||
6195 | ||
6196 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6197 | PyObject *resultobj; | |
6198 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6199 | PyObject *arg2 = (PyObject *) 0 ; | |
6200 | PyObject *arg3 = (PyObject *) 0 ; | |
6201 | PyObject * obj0 = 0 ; | |
6202 | PyObject * obj1 = 0 ; | |
6203 | PyObject * obj2 = 0 ; | |
6204 | char *kwnames[] = { | |
6205 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6206 | }; | |
6207 | ||
6208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6211 | arg2 = obj1; | |
6212 | arg3 = obj2; | |
6213 | { | |
6214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6215 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6216 | ||
6217 | wxPyEndAllowThreads(__tstate); | |
6218 | if (PyErr_Occurred()) SWIG_fail; | |
6219 | } | |
6220 | Py_INCREF(Py_None); resultobj = Py_None; | |
6221 | return resultobj; | |
6222 | fail: | |
6223 | return NULL; | |
6224 | } | |
6225 | ||
6226 | ||
6227 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6228 | PyObject *obj; | |
6229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6230 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6231 | Py_INCREF(obj); | |
6232 | return Py_BuildValue((char *)""); | |
6233 | } | |
6234 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6235 | PyObject *resultobj; | |
6236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6237 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
6238 | bool arg3 = (bool) True ; | |
6239 | bool result; | |
6240 | PyObject * obj0 = 0 ; | |
6241 | PyObject * obj1 = 0 ; | |
6242 | PyObject * obj2 = 0 ; | |
6243 | char *kwnames[] = { | |
6244 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6245 | }; | |
6246 | ||
6247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6250 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6252 | if (obj2) { | |
6253 | arg3 = (bool) SWIG_AsBool(obj2); | |
6254 | if (PyErr_Occurred()) SWIG_fail; | |
6255 | } | |
6256 | { | |
6257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6258 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6259 | ||
6260 | wxPyEndAllowThreads(__tstate); | |
6261 | if (PyErr_Occurred()) SWIG_fail; | |
6262 | } | |
6263 | { | |
6264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6265 | } | |
6266 | return resultobj; | |
6267 | fail: | |
6268 | return NULL; | |
6269 | } | |
6270 | ||
6271 | ||
6272 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6273 | PyObject *resultobj; | |
6274 | wxString *arg1 = 0 ; | |
6275 | size_t arg2 ; | |
6276 | wxTipProvider *result; | |
6277 | bool temp1 = False ; | |
6278 | PyObject * obj0 = 0 ; | |
6279 | PyObject * obj1 = 0 ; | |
6280 | char *kwnames[] = { | |
6281 | (char *) "filename",(char *) "currentTip", NULL | |
6282 | }; | |
6283 | ||
6284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6285 | { | |
6286 | arg1 = wxString_in_helper(obj0); | |
6287 | if (arg1 == NULL) SWIG_fail; | |
6288 | temp1 = True; | |
6289 | } | |
6290 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6291 | if (PyErr_Occurred()) SWIG_fail; | |
6292 | { | |
6293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6294 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6295 | ||
6296 | wxPyEndAllowThreads(__tstate); | |
6297 | if (PyErr_Occurred()) SWIG_fail; | |
6298 | } | |
6299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6300 | { | |
6301 | if (temp1) | |
6302 | delete arg1; | |
6303 | } | |
6304 | return resultobj; | |
6305 | fail: | |
6306 | { | |
6307 | if (temp1) | |
6308 | delete arg1; | |
6309 | } | |
6310 | return NULL; | |
6311 | } | |
6312 | ||
6313 | ||
6314 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6315 | PyObject *resultobj; | |
6316 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6317 | int arg2 = (int) -1 ; | |
6318 | wxPyTimer *result; | |
6319 | PyObject * obj0 = 0 ; | |
6320 | PyObject * obj1 = 0 ; | |
6321 | char *kwnames[] = { | |
6322 | (char *) "owner",(char *) "id", NULL | |
6323 | }; | |
6324 | ||
6325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6326 | if (obj0) { | |
6327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6329 | } | |
6330 | if (obj1) { | |
6331 | arg2 = (int) SWIG_AsInt(obj1); | |
6332 | if (PyErr_Occurred()) SWIG_fail; | |
6333 | } | |
6334 | { | |
6335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6336 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6337 | ||
6338 | wxPyEndAllowThreads(__tstate); | |
6339 | if (PyErr_Occurred()) SWIG_fail; | |
6340 | } | |
6341 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6342 | return resultobj; | |
6343 | fail: | |
6344 | return NULL; | |
6345 | } | |
6346 | ||
6347 | ||
6348 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6349 | PyObject *resultobj; | |
6350 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6351 | PyObject * obj0 = 0 ; | |
6352 | char *kwnames[] = { | |
6353 | (char *) "self", NULL | |
6354 | }; | |
6355 | ||
6356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6359 | { | |
6360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6361 | delete arg1; | |
6362 | ||
6363 | wxPyEndAllowThreads(__tstate); | |
6364 | if (PyErr_Occurred()) SWIG_fail; | |
6365 | } | |
6366 | Py_INCREF(Py_None); resultobj = Py_None; | |
6367 | return resultobj; | |
6368 | fail: | |
6369 | return NULL; | |
6370 | } | |
6371 | ||
6372 | ||
6373 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6374 | PyObject *resultobj; | |
6375 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6376 | PyObject *arg2 = (PyObject *) 0 ; | |
6377 | PyObject *arg3 = (PyObject *) 0 ; | |
6378 | int arg4 = (int) 1 ; | |
6379 | PyObject * obj0 = 0 ; | |
6380 | PyObject * obj1 = 0 ; | |
6381 | PyObject * obj2 = 0 ; | |
6382 | PyObject * obj3 = 0 ; | |
6383 | char *kwnames[] = { | |
6384 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6385 | }; | |
6386 | ||
6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6390 | arg2 = obj1; | |
6391 | arg3 = obj2; | |
6392 | if (obj3) { | |
6393 | arg4 = (int) SWIG_AsInt(obj3); | |
6394 | if (PyErr_Occurred()) SWIG_fail; | |
6395 | } | |
6396 | { | |
6397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6398 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6399 | ||
6400 | wxPyEndAllowThreads(__tstate); | |
6401 | if (PyErr_Occurred()) SWIG_fail; | |
6402 | } | |
6403 | Py_INCREF(Py_None); resultobj = Py_None; | |
6404 | return resultobj; | |
6405 | fail: | |
6406 | return NULL; | |
6407 | } | |
6408 | ||
6409 | ||
6410 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6411 | PyObject *resultobj; | |
6412 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6413 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6414 | int arg3 = (int) -1 ; | |
6415 | PyObject * obj0 = 0 ; | |
6416 | PyObject * obj1 = 0 ; | |
6417 | PyObject * obj2 = 0 ; | |
6418 | char *kwnames[] = { | |
6419 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6420 | }; | |
6421 | ||
6422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6425 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6427 | if (obj2) { | |
6428 | arg3 = (int) SWIG_AsInt(obj2); | |
6429 | if (PyErr_Occurred()) SWIG_fail; | |
6430 | } | |
6431 | { | |
6432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6433 | (arg1)->SetOwner(arg2,arg3); | |
6434 | ||
6435 | wxPyEndAllowThreads(__tstate); | |
6436 | if (PyErr_Occurred()) SWIG_fail; | |
6437 | } | |
6438 | Py_INCREF(Py_None); resultobj = Py_None; | |
6439 | return resultobj; | |
6440 | fail: | |
6441 | return NULL; | |
6442 | } | |
6443 | ||
6444 | ||
6445 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6446 | PyObject *resultobj; | |
6447 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6448 | int arg2 = (int) -1 ; | |
6449 | bool arg3 = (bool) False ; | |
6450 | bool result; | |
6451 | PyObject * obj0 = 0 ; | |
6452 | PyObject * obj1 = 0 ; | |
6453 | PyObject * obj2 = 0 ; | |
6454 | char *kwnames[] = { | |
6455 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6456 | }; | |
6457 | ||
6458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6461 | if (obj1) { | |
6462 | arg2 = (int) SWIG_AsInt(obj1); | |
6463 | if (PyErr_Occurred()) SWIG_fail; | |
6464 | } | |
6465 | if (obj2) { | |
6466 | arg3 = (bool) SWIG_AsBool(obj2); | |
6467 | if (PyErr_Occurred()) SWIG_fail; | |
6468 | } | |
6469 | { | |
6470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6471 | result = (bool)(arg1)->Start(arg2,arg3); | |
6472 | ||
6473 | wxPyEndAllowThreads(__tstate); | |
6474 | if (PyErr_Occurred()) SWIG_fail; | |
6475 | } | |
6476 | { | |
6477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6478 | } | |
6479 | return resultobj; | |
6480 | fail: | |
6481 | return NULL; | |
6482 | } | |
6483 | ||
6484 | ||
6485 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6486 | PyObject *resultobj; | |
6487 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6488 | PyObject * obj0 = 0 ; | |
6489 | char *kwnames[] = { | |
6490 | (char *) "self", NULL | |
6491 | }; | |
6492 | ||
6493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6496 | { | |
6497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6498 | (arg1)->Stop(); | |
6499 | ||
6500 | wxPyEndAllowThreads(__tstate); | |
6501 | if (PyErr_Occurred()) SWIG_fail; | |
6502 | } | |
6503 | Py_INCREF(Py_None); resultobj = Py_None; | |
6504 | return resultobj; | |
6505 | fail: | |
6506 | return NULL; | |
6507 | } | |
6508 | ||
6509 | ||
6510 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6511 | PyObject *resultobj; | |
6512 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6513 | bool result; | |
6514 | PyObject * obj0 = 0 ; | |
6515 | char *kwnames[] = { | |
6516 | (char *) "self", NULL | |
6517 | }; | |
6518 | ||
6519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
6520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6522 | { | |
6523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6524 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6525 | ||
6526 | wxPyEndAllowThreads(__tstate); | |
6527 | if (PyErr_Occurred()) SWIG_fail; | |
6528 | } | |
6529 | { | |
6530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6531 | } | |
6532 | return resultobj; | |
6533 | fail: | |
6534 | return NULL; | |
6535 | } | |
6536 | ||
6537 | ||
6538 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6539 | PyObject *resultobj; | |
6540 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6541 | int result; | |
6542 | PyObject * obj0 = 0 ; | |
6543 | char *kwnames[] = { | |
6544 | (char *) "self", NULL | |
6545 | }; | |
6546 | ||
6547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
6548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6550 | { | |
6551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6552 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6553 | ||
6554 | wxPyEndAllowThreads(__tstate); | |
6555 | if (PyErr_Occurred()) SWIG_fail; | |
6556 | } | |
6557 | resultobj = SWIG_FromInt((int)result); | |
6558 | return resultobj; | |
6559 | fail: | |
6560 | return NULL; | |
6561 | } | |
6562 | ||
6563 | ||
6564 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6565 | PyObject *resultobj; | |
6566 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6567 | bool result; | |
6568 | PyObject * obj0 = 0 ; | |
6569 | char *kwnames[] = { | |
6570 | (char *) "self", NULL | |
6571 | }; | |
6572 | ||
6573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
6574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6576 | { | |
6577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6578 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6579 | ||
6580 | wxPyEndAllowThreads(__tstate); | |
6581 | if (PyErr_Occurred()) SWIG_fail; | |
6582 | } | |
6583 | { | |
6584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6585 | } | |
6586 | return resultobj; | |
6587 | fail: | |
6588 | return NULL; | |
6589 | } | |
6590 | ||
6591 | ||
6592 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6593 | PyObject *resultobj; | |
6594 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6595 | int result; | |
6596 | PyObject * obj0 = 0 ; | |
6597 | char *kwnames[] = { | |
6598 | (char *) "self", NULL | |
6599 | }; | |
6600 | ||
6601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
6602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6604 | { | |
6605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6606 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6607 | ||
6608 | wxPyEndAllowThreads(__tstate); | |
6609 | if (PyErr_Occurred()) SWIG_fail; | |
6610 | } | |
6611 | resultobj = SWIG_FromInt((int)result); | |
6612 | return resultobj; | |
6613 | fail: | |
6614 | return NULL; | |
6615 | } | |
6616 | ||
6617 | ||
6618 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { | |
6619 | PyObject *obj; | |
6620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6621 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6622 | Py_INCREF(obj); | |
6623 | return Py_BuildValue((char *)""); | |
6624 | } | |
6625 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6626 | PyObject *resultobj; | |
6627 | int arg1 = (int) 0 ; | |
6628 | int arg2 = (int) 0 ; | |
6629 | wxTimerEvent *result; | |
6630 | PyObject * obj0 = 0 ; | |
6631 | PyObject * obj1 = 0 ; | |
6632 | char *kwnames[] = { | |
6633 | (char *) "timerid",(char *) "interval", NULL | |
6634 | }; | |
6635 | ||
6636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
6637 | if (obj0) { | |
6638 | arg1 = (int) SWIG_AsInt(obj0); | |
6639 | if (PyErr_Occurred()) SWIG_fail; | |
6640 | } | |
6641 | if (obj1) { | |
6642 | arg2 = (int) SWIG_AsInt(obj1); | |
6643 | if (PyErr_Occurred()) SWIG_fail; | |
6644 | } | |
6645 | { | |
6646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6647 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6648 | ||
6649 | wxPyEndAllowThreads(__tstate); | |
6650 | if (PyErr_Occurred()) SWIG_fail; | |
6651 | } | |
6652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
6653 | return resultobj; | |
6654 | fail: | |
6655 | return NULL; | |
6656 | } | |
6657 | ||
6658 | ||
6659 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6660 | PyObject *resultobj; | |
6661 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6662 | int result; | |
6663 | PyObject * obj0 = 0 ; | |
6664 | char *kwnames[] = { | |
6665 | (char *) "self", NULL | |
6666 | }; | |
6667 | ||
6668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
6669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
6670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6671 | { | |
6672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6673 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6674 | ||
6675 | wxPyEndAllowThreads(__tstate); | |
6676 | if (PyErr_Occurred()) SWIG_fail; | |
6677 | } | |
6678 | resultobj = SWIG_FromInt((int)result); | |
6679 | return resultobj; | |
6680 | fail: | |
6681 | return NULL; | |
6682 | } | |
6683 | ||
6684 | ||
6685 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6686 | PyObject *obj; | |
6687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6688 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6689 | Py_INCREF(obj); | |
6690 | return Py_BuildValue((char *)""); | |
6691 | } | |
6692 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6693 | PyObject *resultobj; | |
6694 | wxTimer *arg1 = 0 ; | |
6695 | wxTimerRunner *result; | |
6696 | PyObject * obj0 = 0 ; | |
6697 | ||
6698 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6701 | SWIG_fail; | |
6702 | if (arg1 == NULL) { | |
6703 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6704 | SWIG_fail; | |
6705 | } | |
6706 | { | |
6707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6708 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
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__SWIG_1(PyObject *self, PyObject *args) { | |
6721 | PyObject *resultobj; | |
6722 | wxTimer *arg1 = 0 ; | |
6723 | int arg2 ; | |
6724 | bool arg3 = (bool) False ; | |
6725 | wxTimerRunner *result; | |
6726 | PyObject * obj0 = 0 ; | |
6727 | PyObject * obj1 = 0 ; | |
6728 | PyObject * obj2 = 0 ; | |
6729 | ||
6730 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
6731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6732 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6733 | SWIG_fail; | |
6734 | if (arg1 == NULL) { | |
6735 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6736 | SWIG_fail; | |
6737 | } | |
6738 | arg2 = (int) SWIG_AsInt(obj1); | |
6739 | if (PyErr_Occurred()) SWIG_fail; | |
6740 | if (obj2) { | |
6741 | arg3 = (bool) SWIG_AsBool(obj2); | |
6742 | if (PyErr_Occurred()) SWIG_fail; | |
6743 | } | |
6744 | { | |
6745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6746 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6747 | ||
6748 | wxPyEndAllowThreads(__tstate); | |
6749 | if (PyErr_Occurred()) SWIG_fail; | |
6750 | } | |
6751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
6752 | return resultobj; | |
6753 | fail: | |
6754 | return NULL; | |
6755 | } | |
6756 | ||
6757 | ||
6758 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6759 | int argc; | |
6760 | PyObject *argv[4]; | |
6761 | int ii; | |
6762 | ||
6763 | argc = PyObject_Length(args); | |
6764 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6765 | argv[ii] = PyTuple_GetItem(args,ii); | |
6766 | } | |
6767 | if (argc == 1) { | |
6768 | int _v; | |
6769 | { | |
6770 | void *ptr; | |
6771 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6772 | _v = 0; | |
6773 | PyErr_Clear(); | |
6774 | } else { | |
6775 | _v = 1; | |
6776 | } | |
6777 | } | |
6778 | if (_v) { | |
6779 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6780 | } | |
6781 | } | |
6782 | if ((argc >= 2) && (argc <= 3)) { | |
6783 | int _v; | |
6784 | { | |
6785 | void *ptr; | |
6786 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6787 | _v = 0; | |
6788 | PyErr_Clear(); | |
6789 | } else { | |
6790 | _v = 1; | |
6791 | } | |
6792 | } | |
6793 | if (_v) { | |
6794 | _v = SWIG_CheckInt(argv[1]); | |
6795 | if (_v) { | |
6796 | if (argc <= 2) { | |
6797 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6798 | } | |
6799 | _v = SWIG_CheckBool(argv[2]); | |
6800 | if (_v) { | |
6801 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6802 | } | |
6803 | } | |
6804 | } | |
6805 | } | |
6806 | ||
6807 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6808 | return NULL; | |
6809 | } | |
6810 | ||
6811 | ||
6812 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6813 | PyObject *resultobj; | |
6814 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6815 | PyObject * obj0 = 0 ; | |
6816 | char *kwnames[] = { | |
6817 | (char *) "self", NULL | |
6818 | }; | |
6819 | ||
6820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
6822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6823 | { | |
6824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6825 | delete arg1; | |
6826 | ||
6827 | wxPyEndAllowThreads(__tstate); | |
6828 | if (PyErr_Occurred()) SWIG_fail; | |
6829 | } | |
6830 | Py_INCREF(Py_None); resultobj = Py_None; | |
6831 | return resultobj; | |
6832 | fail: | |
6833 | return NULL; | |
6834 | } | |
6835 | ||
6836 | ||
6837 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6838 | PyObject *resultobj; | |
6839 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6840 | int arg2 ; | |
6841 | bool arg3 = (bool) False ; | |
6842 | PyObject * obj0 = 0 ; | |
6843 | PyObject * obj1 = 0 ; | |
6844 | PyObject * obj2 = 0 ; | |
6845 | char *kwnames[] = { | |
6846 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6847 | }; | |
6848 | ||
6849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
6851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6852 | arg2 = (int) SWIG_AsInt(obj1); | |
6853 | if (PyErr_Occurred()) SWIG_fail; | |
6854 | if (obj2) { | |
6855 | arg3 = (bool) SWIG_AsBool(obj2); | |
6856 | if (PyErr_Occurred()) SWIG_fail; | |
6857 | } | |
6858 | { | |
6859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6860 | (arg1)->Start(arg2,arg3); | |
6861 | ||
6862 | wxPyEndAllowThreads(__tstate); | |
6863 | if (PyErr_Occurred()) SWIG_fail; | |
6864 | } | |
6865 | Py_INCREF(Py_None); resultobj = Py_None; | |
6866 | return resultobj; | |
6867 | fail: | |
6868 | return NULL; | |
6869 | } | |
6870 | ||
6871 | ||
6872 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6873 | PyObject *obj; | |
6874 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6875 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6876 | Py_INCREF(obj); | |
6877 | return Py_BuildValue((char *)""); | |
6878 | } | |
6879 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6880 | PyObject *resultobj; | |
6881 | wxLog *result; | |
6882 | char *kwnames[] = { | |
6883 | NULL | |
6884 | }; | |
6885 | ||
6886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6887 | { | |
6888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6889 | result = (wxLog *)new wxLog(); | |
6890 | ||
6891 | wxPyEndAllowThreads(__tstate); | |
6892 | if (PyErr_Occurred()) SWIG_fail; | |
6893 | } | |
6894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
6895 | return resultobj; | |
6896 | fail: | |
6897 | return NULL; | |
6898 | } | |
6899 | ||
6900 | ||
6901 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6902 | PyObject *resultobj; | |
6903 | bool result; | |
6904 | char *kwnames[] = { | |
6905 | NULL | |
6906 | }; | |
6907 | ||
6908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6909 | { | |
6910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6911 | result = (bool)wxLog::IsEnabled(); | |
6912 | ||
6913 | wxPyEndAllowThreads(__tstate); | |
6914 | if (PyErr_Occurred()) SWIG_fail; | |
6915 | } | |
6916 | { | |
6917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6918 | } | |
6919 | return resultobj; | |
6920 | fail: | |
6921 | return NULL; | |
6922 | } | |
6923 | ||
6924 | ||
6925 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6926 | PyObject *resultobj; | |
6927 | bool arg1 = (bool) True ; | |
6928 | bool result; | |
6929 | PyObject * obj0 = 0 ; | |
6930 | char *kwnames[] = { | |
6931 | (char *) "doIt", NULL | |
6932 | }; | |
6933 | ||
6934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6935 | if (obj0) { | |
6936 | arg1 = (bool) SWIG_AsBool(obj0); | |
6937 | if (PyErr_Occurred()) SWIG_fail; | |
6938 | } | |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | result = (bool)wxLog::EnableLogging(arg1); | |
6942 | ||
6943 | wxPyEndAllowThreads(__tstate); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
6946 | { | |
6947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6948 | } | |
6949 | return resultobj; | |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
6955 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6956 | PyObject *resultobj; | |
6957 | wxLogLevel arg1 ; | |
6958 | wxChar *arg2 = (wxChar *) 0 ; | |
6959 | time_t arg3 ; | |
6960 | PyObject * obj0 = 0 ; | |
6961 | PyObject * obj1 = 0 ; | |
6962 | PyObject * obj2 = 0 ; | |
6963 | char *kwnames[] = { | |
6964 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6965 | }; | |
6966 | ||
6967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6968 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
6969 | if (PyErr_Occurred()) SWIG_fail; | |
6970 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
6971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6972 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
6973 | if (PyErr_Occurred()) SWIG_fail; | |
6974 | { | |
6975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6976 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6977 | ||
6978 | wxPyEndAllowThreads(__tstate); | |
6979 | if (PyErr_Occurred()) SWIG_fail; | |
6980 | } | |
6981 | Py_INCREF(Py_None); resultobj = Py_None; | |
6982 | return resultobj; | |
6983 | fail: | |
6984 | return NULL; | |
6985 | } | |
6986 | ||
6987 | ||
6988 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6989 | PyObject *resultobj; | |
6990 | wxLog *arg1 = (wxLog *) 0 ; | |
6991 | PyObject * obj0 = 0 ; | |
6992 | char *kwnames[] = { | |
6993 | (char *) "self", NULL | |
6994 | }; | |
6995 | ||
6996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
6998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6999 | { | |
7000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7001 | (arg1)->Flush(); | |
7002 | ||
7003 | wxPyEndAllowThreads(__tstate); | |
7004 | if (PyErr_Occurred()) SWIG_fail; | |
7005 | } | |
7006 | Py_INCREF(Py_None); resultobj = Py_None; | |
7007 | return resultobj; | |
7008 | fail: | |
7009 | return NULL; | |
7010 | } | |
7011 | ||
7012 | ||
7013 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7014 | PyObject *resultobj; | |
7015 | char *kwnames[] = { | |
7016 | NULL | |
7017 | }; | |
7018 | ||
7019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7020 | { | |
7021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7022 | wxLog::FlushActive(); | |
7023 | ||
7024 | wxPyEndAllowThreads(__tstate); | |
7025 | if (PyErr_Occurred()) SWIG_fail; | |
7026 | } | |
7027 | Py_INCREF(Py_None); resultobj = Py_None; | |
7028 | return resultobj; | |
7029 | fail: | |
7030 | return NULL; | |
7031 | } | |
7032 | ||
7033 | ||
7034 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7035 | PyObject *resultobj; | |
7036 | wxLog *result; | |
7037 | char *kwnames[] = { | |
7038 | NULL | |
7039 | }; | |
7040 | ||
7041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7042 | { | |
7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7044 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7045 | ||
7046 | wxPyEndAllowThreads(__tstate); | |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
7048 | } | |
7049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7050 | return resultobj; | |
7051 | fail: | |
7052 | return NULL; | |
7053 | } | |
7054 | ||
7055 | ||
7056 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7057 | PyObject *resultobj; | |
7058 | wxLog *arg1 = (wxLog *) 0 ; | |
7059 | wxLog *result; | |
7060 | PyObject * obj0 = 0 ; | |
7061 | char *kwnames[] = { | |
7062 | (char *) "pLogger", NULL | |
7063 | }; | |
7064 | ||
7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7068 | { | |
7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7070 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7071 | ||
7072 | wxPyEndAllowThreads(__tstate); | |
7073 | if (PyErr_Occurred()) SWIG_fail; | |
7074 | } | |
7075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7076 | return resultobj; | |
7077 | fail: | |
7078 | return NULL; | |
7079 | } | |
7080 | ||
7081 | ||
7082 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7083 | PyObject *resultobj; | |
7084 | char *kwnames[] = { | |
7085 | NULL | |
7086 | }; | |
7087 | ||
7088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7089 | { | |
7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7091 | wxLog::Suspend(); | |
7092 | ||
7093 | wxPyEndAllowThreads(__tstate); | |
7094 | if (PyErr_Occurred()) SWIG_fail; | |
7095 | } | |
7096 | Py_INCREF(Py_None); resultobj = Py_None; | |
7097 | return resultobj; | |
7098 | fail: | |
7099 | return NULL; | |
7100 | } | |
7101 | ||
7102 | ||
7103 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7104 | PyObject *resultobj; | |
7105 | char *kwnames[] = { | |
7106 | NULL | |
7107 | }; | |
7108 | ||
7109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7110 | { | |
7111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7112 | wxLog::Resume(); | |
7113 | ||
7114 | wxPyEndAllowThreads(__tstate); | |
7115 | if (PyErr_Occurred()) SWIG_fail; | |
7116 | } | |
7117 | Py_INCREF(Py_None); resultobj = Py_None; | |
7118 | return resultobj; | |
7119 | fail: | |
7120 | return NULL; | |
7121 | } | |
7122 | ||
7123 | ||
7124 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7125 | PyObject *resultobj; | |
7126 | bool arg1 = (bool) True ; | |
7127 | PyObject * obj0 = 0 ; | |
7128 | char *kwnames[] = { | |
7129 | (char *) "bVerbose", NULL | |
7130 | }; | |
7131 | ||
7132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7133 | if (obj0) { | |
7134 | arg1 = (bool) SWIG_AsBool(obj0); | |
7135 | if (PyErr_Occurred()) SWIG_fail; | |
7136 | } | |
7137 | { | |
7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7139 | wxLog::SetVerbose(arg1); | |
7140 | ||
7141 | wxPyEndAllowThreads(__tstate); | |
7142 | if (PyErr_Occurred()) SWIG_fail; | |
7143 | } | |
7144 | Py_INCREF(Py_None); resultobj = Py_None; | |
7145 | return resultobj; | |
7146 | fail: | |
7147 | return NULL; | |
7148 | } | |
7149 | ||
7150 | ||
7151 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7152 | PyObject *resultobj; | |
7153 | wxLogLevel arg1 ; | |
7154 | PyObject * obj0 = 0 ; | |
7155 | char *kwnames[] = { | |
7156 | (char *) "logLevel", NULL | |
7157 | }; | |
7158 | ||
7159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
7160 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
7161 | if (PyErr_Occurred()) SWIG_fail; | |
7162 | { | |
7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7164 | wxLog::SetLogLevel(arg1); | |
7165 | ||
7166 | wxPyEndAllowThreads(__tstate); | |
7167 | if (PyErr_Occurred()) SWIG_fail; | |
7168 | } | |
7169 | Py_INCREF(Py_None); resultobj = Py_None; | |
7170 | return resultobj; | |
7171 | fail: | |
7172 | return NULL; | |
7173 | } | |
7174 | ||
7175 | ||
7176 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7177 | PyObject *resultobj; | |
7178 | char *kwnames[] = { | |
7179 | NULL | |
7180 | }; | |
7181 | ||
7182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7183 | { | |
7184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7185 | wxLog::DontCreateOnDemand(); | |
7186 | ||
7187 | wxPyEndAllowThreads(__tstate); | |
7188 | if (PyErr_Occurred()) SWIG_fail; | |
7189 | } | |
7190 | Py_INCREF(Py_None); resultobj = Py_None; | |
7191 | return resultobj; | |
7192 | fail: | |
7193 | return NULL; | |
7194 | } | |
7195 | ||
7196 | ||
7197 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7198 | PyObject *resultobj; | |
7199 | wxTraceMask arg1 ; | |
7200 | PyObject * obj0 = 0 ; | |
7201 | char *kwnames[] = { | |
7202 | (char *) "ulMask", NULL | |
7203 | }; | |
7204 | ||
7205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
7206 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); | |
7207 | if (PyErr_Occurred()) SWIG_fail; | |
7208 | { | |
7209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7210 | wxLog::SetTraceMask(arg1); | |
7211 | ||
7212 | wxPyEndAllowThreads(__tstate); | |
7213 | if (PyErr_Occurred()) SWIG_fail; | |
7214 | } | |
7215 | Py_INCREF(Py_None); resultobj = Py_None; | |
7216 | return resultobj; | |
7217 | fail: | |
7218 | return NULL; | |
7219 | } | |
7220 | ||
7221 | ||
7222 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7223 | PyObject *resultobj; | |
7224 | wxString *arg1 = 0 ; | |
7225 | bool temp1 = False ; | |
7226 | PyObject * obj0 = 0 ; | |
7227 | char *kwnames[] = { | |
7228 | (char *) "str", NULL | |
7229 | }; | |
7230 | ||
7231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7232 | { | |
7233 | arg1 = wxString_in_helper(obj0); | |
7234 | if (arg1 == NULL) SWIG_fail; | |
7235 | temp1 = True; | |
7236 | } | |
7237 | { | |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7239 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7240 | ||
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
7244 | Py_INCREF(Py_None); resultobj = Py_None; | |
7245 | { | |
7246 | if (temp1) | |
7247 | delete arg1; | |
7248 | } | |
7249 | return resultobj; | |
7250 | fail: | |
7251 | { | |
7252 | if (temp1) | |
7253 | delete arg1; | |
7254 | } | |
7255 | return NULL; | |
7256 | } | |
7257 | ||
7258 | ||
7259 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7260 | PyObject *resultobj; | |
7261 | wxString *arg1 = 0 ; | |
7262 | bool temp1 = False ; | |
7263 | PyObject * obj0 = 0 ; | |
7264 | char *kwnames[] = { | |
7265 | (char *) "str", NULL | |
7266 | }; | |
7267 | ||
7268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7269 | { | |
7270 | arg1 = wxString_in_helper(obj0); | |
7271 | if (arg1 == NULL) SWIG_fail; | |
7272 | temp1 = True; | |
7273 | } | |
7274 | { | |
7275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7276 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7277 | ||
7278 | wxPyEndAllowThreads(__tstate); | |
7279 | if (PyErr_Occurred()) SWIG_fail; | |
7280 | } | |
7281 | Py_INCREF(Py_None); resultobj = Py_None; | |
7282 | { | |
7283 | if (temp1) | |
7284 | delete arg1; | |
7285 | } | |
7286 | return resultobj; | |
7287 | fail: | |
7288 | { | |
7289 | if (temp1) | |
7290 | delete arg1; | |
7291 | } | |
7292 | return NULL; | |
7293 | } | |
7294 | ||
7295 | ||
7296 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7297 | PyObject *resultobj; | |
7298 | char *kwnames[] = { | |
7299 | NULL | |
7300 | }; | |
7301 | ||
7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7303 | { | |
7304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7305 | wxLog::ClearTraceMasks(); | |
7306 | ||
7307 | wxPyEndAllowThreads(__tstate); | |
7308 | if (PyErr_Occurred()) SWIG_fail; | |
7309 | } | |
7310 | Py_INCREF(Py_None); resultobj = Py_None; | |
7311 | return resultobj; | |
7312 | fail: | |
7313 | return NULL; | |
7314 | } | |
7315 | ||
7316 | ||
7317 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7318 | PyObject *resultobj; | |
7319 | wxArrayString *result; | |
7320 | char *kwnames[] = { | |
7321 | NULL | |
7322 | }; | |
7323 | ||
7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7325 | { | |
7326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7327 | { | |
7328 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7329 | result = (wxArrayString *) &_result_ref; | |
7330 | } | |
7331 | ||
7332 | wxPyEndAllowThreads(__tstate); | |
7333 | if (PyErr_Occurred()) SWIG_fail; | |
7334 | } | |
7335 | { | |
7336 | resultobj = wxArrayString2PyList_helper(*result); | |
7337 | } | |
7338 | return resultobj; | |
7339 | fail: | |
7340 | return NULL; | |
7341 | } | |
7342 | ||
7343 | ||
7344 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7345 | PyObject *resultobj; | |
7346 | wxChar *arg1 = (wxChar *) 0 ; | |
7347 | PyObject * obj0 = 0 ; | |
7348 | char *kwnames[] = { | |
7349 | (char *) "ts", NULL | |
7350 | }; | |
7351 | ||
7352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7355 | { | |
7356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7357 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7358 | ||
7359 | wxPyEndAllowThreads(__tstate); | |
7360 | if (PyErr_Occurred()) SWIG_fail; | |
7361 | } | |
7362 | Py_INCREF(Py_None); resultobj = Py_None; | |
7363 | return resultobj; | |
7364 | fail: | |
7365 | return NULL; | |
7366 | } | |
7367 | ||
7368 | ||
7369 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7370 | PyObject *resultobj; | |
7371 | bool result; | |
7372 | char *kwnames[] = { | |
7373 | NULL | |
7374 | }; | |
7375 | ||
7376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7377 | { | |
7378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7379 | result = (bool)wxLog::GetVerbose(); | |
7380 | ||
7381 | wxPyEndAllowThreads(__tstate); | |
7382 | if (PyErr_Occurred()) SWIG_fail; | |
7383 | } | |
7384 | { | |
7385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7386 | } | |
7387 | return resultobj; | |
7388 | fail: | |
7389 | return NULL; | |
7390 | } | |
7391 | ||
7392 | ||
7393 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7394 | PyObject *resultobj; | |
7395 | wxTraceMask result; | |
7396 | char *kwnames[] = { | |
7397 | NULL | |
7398 | }; | |
7399 | ||
7400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7401 | { | |
7402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7403 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7404 | ||
7405 | wxPyEndAllowThreads(__tstate); | |
7406 | if (PyErr_Occurred()) SWIG_fail; | |
7407 | } | |
7408 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7409 | return resultobj; | |
7410 | fail: | |
7411 | return NULL; | |
7412 | } | |
7413 | ||
7414 | ||
7415 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7416 | PyObject *resultobj; | |
7417 | wxChar *arg1 = (wxChar *) 0 ; | |
7418 | bool result; | |
7419 | PyObject * obj0 = 0 ; | |
7420 | char *kwnames[] = { | |
7421 | (char *) "mask", NULL | |
7422 | }; | |
7423 | ||
7424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7427 | { | |
7428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7429 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7430 | ||
7431 | wxPyEndAllowThreads(__tstate); | |
7432 | if (PyErr_Occurred()) SWIG_fail; | |
7433 | } | |
7434 | { | |
7435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7436 | } | |
7437 | return resultobj; | |
7438 | fail: | |
7439 | return NULL; | |
7440 | } | |
7441 | ||
7442 | ||
7443 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7444 | PyObject *resultobj; | |
7445 | wxLogLevel result; | |
7446 | char *kwnames[] = { | |
7447 | NULL | |
7448 | }; | |
7449 | ||
7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7451 | { | |
7452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7453 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7454 | ||
7455 | wxPyEndAllowThreads(__tstate); | |
7456 | if (PyErr_Occurred()) SWIG_fail; | |
7457 | } | |
7458 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7459 | return resultobj; | |
7460 | fail: | |
7461 | return NULL; | |
7462 | } | |
7463 | ||
7464 | ||
7465 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7466 | PyObject *resultobj; | |
7467 | wxChar *result; | |
7468 | char *kwnames[] = { | |
7469 | NULL | |
7470 | }; | |
7471 | ||
7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7473 | { | |
7474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7475 | result = (wxChar *)wxLog::GetTimestamp(); | |
7476 | ||
7477 | wxPyEndAllowThreads(__tstate); | |
7478 | if (PyErr_Occurred()) SWIG_fail; | |
7479 | } | |
7480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
7481 | return resultobj; | |
7482 | fail: | |
7483 | return NULL; | |
7484 | } | |
7485 | ||
7486 | ||
7487 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7488 | PyObject *resultobj; | |
7489 | wxString result; | |
7490 | char *kwnames[] = { | |
7491 | NULL | |
7492 | }; | |
7493 | ||
7494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7495 | { | |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | result = Log_TimeStamp(); | |
7498 | ||
7499 | wxPyEndAllowThreads(__tstate); | |
7500 | if (PyErr_Occurred()) SWIG_fail; | |
7501 | } | |
7502 | { | |
7503 | #if wxUSE_UNICODE | |
7504 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7505 | #else | |
7506 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7507 | #endif | |
7508 | } | |
7509 | return resultobj; | |
7510 | fail: | |
7511 | return NULL; | |
7512 | } | |
7513 | ||
7514 | ||
7515 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7516 | PyObject *resultobj; | |
7517 | wxLog *arg1 = (wxLog *) 0 ; | |
7518 | PyObject * obj0 = 0 ; | |
7519 | char *kwnames[] = { | |
7520 | (char *) "self", NULL | |
7521 | }; | |
7522 | ||
7523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
7524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7526 | { | |
7527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7528 | wxLog_Destroy(arg1); | |
7529 | ||
7530 | wxPyEndAllowThreads(__tstate); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
7533 | Py_INCREF(Py_None); resultobj = Py_None; | |
7534 | return resultobj; | |
7535 | fail: | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
7540 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7541 | PyObject *obj; | |
7542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7543 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7544 | Py_INCREF(obj); | |
7545 | return Py_BuildValue((char *)""); | |
7546 | } | |
7547 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7548 | PyObject *resultobj; | |
7549 | wxLogStderr *result; | |
7550 | char *kwnames[] = { | |
7551 | NULL | |
7552 | }; | |
7553 | ||
7554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7555 | { | |
7556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7557 | result = (wxLogStderr *)new wxLogStderr(); | |
7558 | ||
7559 | wxPyEndAllowThreads(__tstate); | |
7560 | if (PyErr_Occurred()) SWIG_fail; | |
7561 | } | |
7562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
7563 | return resultobj; | |
7564 | fail: | |
7565 | return NULL; | |
7566 | } | |
7567 | ||
7568 | ||
7569 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7570 | PyObject *obj; | |
7571 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7572 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7573 | Py_INCREF(obj); | |
7574 | return Py_BuildValue((char *)""); | |
7575 | } | |
7576 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7577 | PyObject *resultobj; | |
7578 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7579 | wxLogTextCtrl *result; | |
7580 | PyObject * obj0 = 0 ; | |
7581 | char *kwnames[] = { | |
7582 | (char *) "pTextCtrl", NULL | |
7583 | }; | |
7584 | ||
7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
7586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7588 | { | |
7589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7590 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7591 | ||
7592 | wxPyEndAllowThreads(__tstate); | |
7593 | if (PyErr_Occurred()) SWIG_fail; | |
7594 | } | |
7595 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
7596 | return resultobj; | |
7597 | fail: | |
7598 | return NULL; | |
7599 | } | |
7600 | ||
7601 | ||
7602 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7603 | PyObject *obj; | |
7604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7605 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7606 | Py_INCREF(obj); | |
7607 | return Py_BuildValue((char *)""); | |
7608 | } | |
7609 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7610 | PyObject *resultobj; | |
7611 | wxLogGui *result; | |
7612 | char *kwnames[] = { | |
7613 | NULL | |
7614 | }; | |
7615 | ||
7616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7617 | { | |
7618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7619 | result = (wxLogGui *)new wxLogGui(); | |
7620 | ||
7621 | wxPyEndAllowThreads(__tstate); | |
7622 | if (PyErr_Occurred()) SWIG_fail; | |
7623 | } | |
7624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
7625 | return resultobj; | |
7626 | fail: | |
7627 | return NULL; | |
7628 | } | |
7629 | ||
7630 | ||
7631 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7632 | PyObject *obj; | |
7633 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7634 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7635 | Py_INCREF(obj); | |
7636 | return Py_BuildValue((char *)""); | |
7637 | } | |
7638 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7639 | PyObject *resultobj; | |
7640 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7641 | wxString *arg2 = 0 ; | |
7642 | bool arg3 = (bool) True ; | |
7643 | bool arg4 = (bool) True ; | |
7644 | wxLogWindow *result; | |
7645 | bool temp2 = False ; | |
7646 | PyObject * obj0 = 0 ; | |
7647 | PyObject * obj1 = 0 ; | |
7648 | PyObject * obj2 = 0 ; | |
7649 | PyObject * obj3 = 0 ; | |
7650 | char *kwnames[] = { | |
7651 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7652 | }; | |
7653 | ||
7654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
7656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7657 | { | |
7658 | arg2 = wxString_in_helper(obj1); | |
7659 | if (arg2 == NULL) SWIG_fail; | |
7660 | temp2 = True; | |
7661 | } | |
7662 | if (obj2) { | |
7663 | arg3 = (bool) SWIG_AsBool(obj2); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | if (obj3) { | |
7667 | arg4 = (bool) SWIG_AsBool(obj3); | |
7668 | if (PyErr_Occurred()) SWIG_fail; | |
7669 | } | |
7670 | { | |
7671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7672 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7673 | ||
7674 | wxPyEndAllowThreads(__tstate); | |
7675 | if (PyErr_Occurred()) SWIG_fail; | |
7676 | } | |
7677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
7678 | { | |
7679 | if (temp2) | |
7680 | delete arg2; | |
7681 | } | |
7682 | return resultobj; | |
7683 | fail: | |
7684 | { | |
7685 | if (temp2) | |
7686 | delete arg2; | |
7687 | } | |
7688 | return NULL; | |
7689 | } | |
7690 | ||
7691 | ||
7692 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7693 | PyObject *resultobj; | |
7694 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7695 | bool arg2 = (bool) True ; | |
7696 | PyObject * obj0 = 0 ; | |
7697 | PyObject * obj1 = 0 ; | |
7698 | char *kwnames[] = { | |
7699 | (char *) "self",(char *) "bShow", NULL | |
7700 | }; | |
7701 | ||
7702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
7703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7705 | if (obj1) { | |
7706 | arg2 = (bool) SWIG_AsBool(obj1); | |
7707 | if (PyErr_Occurred()) SWIG_fail; | |
7708 | } | |
7709 | { | |
7710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7711 | (arg1)->Show(arg2); | |
7712 | ||
7713 | wxPyEndAllowThreads(__tstate); | |
7714 | if (PyErr_Occurred()) SWIG_fail; | |
7715 | } | |
7716 | Py_INCREF(Py_None); resultobj = Py_None; | |
7717 | return resultobj; | |
7718 | fail: | |
7719 | return NULL; | |
7720 | } | |
7721 | ||
7722 | ||
7723 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7724 | PyObject *resultobj; | |
7725 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7726 | wxFrame *result; | |
7727 | PyObject * obj0 = 0 ; | |
7728 | char *kwnames[] = { | |
7729 | (char *) "self", NULL | |
7730 | }; | |
7731 | ||
7732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7735 | { | |
7736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7737 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7738 | ||
7739 | wxPyEndAllowThreads(__tstate); | |
7740 | if (PyErr_Occurred()) SWIG_fail; | |
7741 | } | |
7742 | { | |
7743 | resultobj = wxPyMake_wxObject(result); | |
7744 | } | |
7745 | return resultobj; | |
7746 | fail: | |
7747 | return NULL; | |
7748 | } | |
7749 | ||
7750 | ||
7751 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7752 | PyObject *resultobj; | |
7753 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7754 | wxLog *result; | |
7755 | PyObject * obj0 = 0 ; | |
7756 | char *kwnames[] = { | |
7757 | (char *) "self", NULL | |
7758 | }; | |
7759 | ||
7760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7763 | { | |
7764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7765 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7766 | ||
7767 | wxPyEndAllowThreads(__tstate); | |
7768 | if (PyErr_Occurred()) SWIG_fail; | |
7769 | } | |
7770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7771 | return resultobj; | |
7772 | fail: | |
7773 | return NULL; | |
7774 | } | |
7775 | ||
7776 | ||
7777 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7778 | PyObject *resultobj; | |
7779 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7780 | bool result; | |
7781 | PyObject * obj0 = 0 ; | |
7782 | char *kwnames[] = { | |
7783 | (char *) "self", NULL | |
7784 | }; | |
7785 | ||
7786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7789 | { | |
7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7791 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7792 | ||
7793 | wxPyEndAllowThreads(__tstate); | |
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | } | |
7796 | { | |
7797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7798 | } | |
7799 | return resultobj; | |
7800 | fail: | |
7801 | return NULL; | |
7802 | } | |
7803 | ||
7804 | ||
7805 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7806 | PyObject *resultobj; | |
7807 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7808 | bool arg2 ; | |
7809 | PyObject * obj0 = 0 ; | |
7810 | PyObject * obj1 = 0 ; | |
7811 | char *kwnames[] = { | |
7812 | (char *) "self",(char *) "bDoPass", NULL | |
7813 | }; | |
7814 | ||
7815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7818 | arg2 = (bool) SWIG_AsBool(obj1); | |
7819 | if (PyErr_Occurred()) SWIG_fail; | |
7820 | { | |
7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7822 | (arg1)->PassMessages(arg2); | |
7823 | ||
7824 | wxPyEndAllowThreads(__tstate); | |
7825 | if (PyErr_Occurred()) SWIG_fail; | |
7826 | } | |
7827 | Py_INCREF(Py_None); resultobj = Py_None; | |
7828 | return resultobj; | |
7829 | fail: | |
7830 | return NULL; | |
7831 | } | |
7832 | ||
7833 | ||
7834 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7835 | PyObject *obj; | |
7836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7837 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7838 | Py_INCREF(obj); | |
7839 | return Py_BuildValue((char *)""); | |
7840 | } | |
7841 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject *resultobj; | |
7843 | wxLog *arg1 = (wxLog *) 0 ; | |
7844 | wxLogChain *result; | |
7845 | PyObject * obj0 = 0 ; | |
7846 | char *kwnames[] = { | |
7847 | (char *) "logger", NULL | |
7848 | }; | |
7849 | ||
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7853 | { | |
7854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7855 | result = (wxLogChain *)new wxLogChain(arg1); | |
7856 | ||
7857 | wxPyEndAllowThreads(__tstate); | |
7858 | if (PyErr_Occurred()) SWIG_fail; | |
7859 | } | |
7860 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
7861 | return resultobj; | |
7862 | fail: | |
7863 | return NULL; | |
7864 | } | |
7865 | ||
7866 | ||
7867 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7868 | PyObject *resultobj; | |
7869 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7870 | wxLog *arg2 = (wxLog *) 0 ; | |
7871 | PyObject * obj0 = 0 ; | |
7872 | PyObject * obj1 = 0 ; | |
7873 | char *kwnames[] = { | |
7874 | (char *) "self",(char *) "logger", NULL | |
7875 | }; | |
7876 | ||
7877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7880 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
7881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7882 | { | |
7883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7884 | (arg1)->SetLog(arg2); | |
7885 | ||
7886 | wxPyEndAllowThreads(__tstate); | |
7887 | if (PyErr_Occurred()) SWIG_fail; | |
7888 | } | |
7889 | Py_INCREF(Py_None); resultobj = Py_None; | |
7890 | return resultobj; | |
7891 | fail: | |
7892 | return NULL; | |
7893 | } | |
7894 | ||
7895 | ||
7896 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7897 | PyObject *resultobj; | |
7898 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7899 | bool arg2 ; | |
7900 | PyObject * obj0 = 0 ; | |
7901 | PyObject * obj1 = 0 ; | |
7902 | char *kwnames[] = { | |
7903 | (char *) "self",(char *) "bDoPass", NULL | |
7904 | }; | |
7905 | ||
7906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7909 | arg2 = (bool) SWIG_AsBool(obj1); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | { | |
7912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7913 | (arg1)->PassMessages(arg2); | |
7914 | ||
7915 | wxPyEndAllowThreads(__tstate); | |
7916 | if (PyErr_Occurred()) SWIG_fail; | |
7917 | } | |
7918 | Py_INCREF(Py_None); resultobj = Py_None; | |
7919 | return resultobj; | |
7920 | fail: | |
7921 | return NULL; | |
7922 | } | |
7923 | ||
7924 | ||
7925 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7926 | PyObject *resultobj; | |
7927 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7928 | bool result; | |
7929 | PyObject * obj0 = 0 ; | |
7930 | char *kwnames[] = { | |
7931 | (char *) "self", NULL | |
7932 | }; | |
7933 | ||
7934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7937 | { | |
7938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7939 | result = (bool)(arg1)->IsPassingMessages(); | |
7940 | ||
7941 | wxPyEndAllowThreads(__tstate); | |
7942 | if (PyErr_Occurred()) SWIG_fail; | |
7943 | } | |
7944 | { | |
7945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7946 | } | |
7947 | return resultobj; | |
7948 | fail: | |
7949 | return NULL; | |
7950 | } | |
7951 | ||
7952 | ||
7953 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7954 | PyObject *resultobj; | |
7955 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7956 | wxLog *result; | |
7957 | PyObject * obj0 = 0 ; | |
7958 | char *kwnames[] = { | |
7959 | (char *) "self", NULL | |
7960 | }; | |
7961 | ||
7962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7965 | { | |
7966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7967 | result = (wxLog *)(arg1)->GetOldLog(); | |
7968 | ||
7969 | wxPyEndAllowThreads(__tstate); | |
7970 | if (PyErr_Occurred()) SWIG_fail; | |
7971 | } | |
7972 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7973 | return resultobj; | |
7974 | fail: | |
7975 | return NULL; | |
7976 | } | |
7977 | ||
7978 | ||
7979 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7980 | PyObject *obj; | |
7981 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7982 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7983 | Py_INCREF(obj); | |
7984 | return Py_BuildValue((char *)""); | |
7985 | } | |
7986 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7987 | PyObject *resultobj; | |
7988 | unsigned long result; | |
7989 | char *kwnames[] = { | |
7990 | NULL | |
7991 | }; | |
7992 | ||
7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7994 | { | |
7995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7996 | result = (unsigned long)wxSysErrorCode(); | |
7997 | ||
7998 | wxPyEndAllowThreads(__tstate); | |
7999 | if (PyErr_Occurred()) SWIG_fail; | |
8000 | } | |
8001 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
8002 | return resultobj; | |
8003 | fail: | |
8004 | return NULL; | |
8005 | } | |
8006 | ||
8007 | ||
8008 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8009 | PyObject *resultobj; | |
8010 | unsigned long arg1 = (unsigned long) 0 ; | |
8011 | wxString result; | |
8012 | PyObject * obj0 = 0 ; | |
8013 | char *kwnames[] = { | |
8014 | (char *) "nErrCode", NULL | |
8015 | }; | |
8016 | ||
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8018 | if (obj0) { | |
8019 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8020 | if (PyErr_Occurred()) SWIG_fail; | |
8021 | } | |
8022 | { | |
8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8024 | result = wxSysErrorMsg(arg1); | |
8025 | ||
8026 | wxPyEndAllowThreads(__tstate); | |
8027 | if (PyErr_Occurred()) SWIG_fail; | |
8028 | } | |
8029 | { | |
8030 | #if wxUSE_UNICODE | |
8031 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8032 | #else | |
8033 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8034 | #endif | |
8035 | } | |
8036 | return resultobj; | |
8037 | fail: | |
8038 | return NULL; | |
8039 | } | |
8040 | ||
8041 | ||
8042 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8043 | PyObject *resultobj; | |
8044 | wxString *arg1 = 0 ; | |
8045 | bool temp1 = False ; | |
8046 | PyObject * obj0 = 0 ; | |
8047 | char *kwnames[] = { | |
8048 | (char *) "msg", NULL | |
8049 | }; | |
8050 | ||
8051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8052 | { | |
8053 | arg1 = wxString_in_helper(obj0); | |
8054 | if (arg1 == NULL) SWIG_fail; | |
8055 | temp1 = True; | |
8056 | } | |
8057 | { | |
8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8059 | wxLogFatalError((wxString const &)*arg1); | |
8060 | ||
8061 | wxPyEndAllowThreads(__tstate); | |
8062 | if (PyErr_Occurred()) SWIG_fail; | |
8063 | } | |
8064 | Py_INCREF(Py_None); resultobj = Py_None; | |
8065 | { | |
8066 | if (temp1) | |
8067 | delete arg1; | |
8068 | } | |
8069 | return resultobj; | |
8070 | fail: | |
8071 | { | |
8072 | if (temp1) | |
8073 | delete arg1; | |
8074 | } | |
8075 | return NULL; | |
8076 | } | |
8077 | ||
8078 | ||
8079 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8080 | PyObject *resultobj; | |
8081 | wxString *arg1 = 0 ; | |
8082 | bool temp1 = False ; | |
8083 | PyObject * obj0 = 0 ; | |
8084 | char *kwnames[] = { | |
8085 | (char *) "msg", NULL | |
8086 | }; | |
8087 | ||
8088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8089 | { | |
8090 | arg1 = wxString_in_helper(obj0); | |
8091 | if (arg1 == NULL) SWIG_fail; | |
8092 | temp1 = True; | |
8093 | } | |
8094 | { | |
8095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8096 | wxLogError((wxString const &)*arg1); | |
8097 | ||
8098 | wxPyEndAllowThreads(__tstate); | |
8099 | if (PyErr_Occurred()) SWIG_fail; | |
8100 | } | |
8101 | Py_INCREF(Py_None); resultobj = Py_None; | |
8102 | { | |
8103 | if (temp1) | |
8104 | delete arg1; | |
8105 | } | |
8106 | return resultobj; | |
8107 | fail: | |
8108 | { | |
8109 | if (temp1) | |
8110 | delete arg1; | |
8111 | } | |
8112 | return NULL; | |
8113 | } | |
8114 | ||
8115 | ||
8116 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8117 | PyObject *resultobj; | |
8118 | wxString *arg1 = 0 ; | |
8119 | bool temp1 = False ; | |
8120 | PyObject * obj0 = 0 ; | |
8121 | char *kwnames[] = { | |
8122 | (char *) "msg", NULL | |
8123 | }; | |
8124 | ||
8125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8126 | { | |
8127 | arg1 = wxString_in_helper(obj0); | |
8128 | if (arg1 == NULL) SWIG_fail; | |
8129 | temp1 = True; | |
8130 | } | |
8131 | { | |
8132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8133 | wxLogWarning((wxString const &)*arg1); | |
8134 | ||
8135 | wxPyEndAllowThreads(__tstate); | |
8136 | if (PyErr_Occurred()) SWIG_fail; | |
8137 | } | |
8138 | Py_INCREF(Py_None); resultobj = Py_None; | |
8139 | { | |
8140 | if (temp1) | |
8141 | delete arg1; | |
8142 | } | |
8143 | return resultobj; | |
8144 | fail: | |
8145 | { | |
8146 | if (temp1) | |
8147 | delete arg1; | |
8148 | } | |
8149 | return NULL; | |
8150 | } | |
8151 | ||
8152 | ||
8153 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8154 | PyObject *resultobj; | |
8155 | wxString *arg1 = 0 ; | |
8156 | bool temp1 = False ; | |
8157 | PyObject * obj0 = 0 ; | |
8158 | char *kwnames[] = { | |
8159 | (char *) "msg", NULL | |
8160 | }; | |
8161 | ||
8162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8163 | { | |
8164 | arg1 = wxString_in_helper(obj0); | |
8165 | if (arg1 == NULL) SWIG_fail; | |
8166 | temp1 = True; | |
8167 | } | |
8168 | { | |
8169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8170 | wxLogMessage((wxString const &)*arg1); | |
8171 | ||
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
8175 | Py_INCREF(Py_None); resultobj = Py_None; | |
8176 | { | |
8177 | if (temp1) | |
8178 | delete arg1; | |
8179 | } | |
8180 | return resultobj; | |
8181 | fail: | |
8182 | { | |
8183 | if (temp1) | |
8184 | delete arg1; | |
8185 | } | |
8186 | return NULL; | |
8187 | } | |
8188 | ||
8189 | ||
8190 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8191 | PyObject *resultobj; | |
8192 | wxString *arg1 = 0 ; | |
8193 | bool temp1 = False ; | |
8194 | PyObject * obj0 = 0 ; | |
8195 | char *kwnames[] = { | |
8196 | (char *) "msg", NULL | |
8197 | }; | |
8198 | ||
8199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8200 | { | |
8201 | arg1 = wxString_in_helper(obj0); | |
8202 | if (arg1 == NULL) SWIG_fail; | |
8203 | temp1 = True; | |
8204 | } | |
8205 | { | |
8206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8207 | wxLogInfo((wxString const &)*arg1); | |
8208 | ||
8209 | wxPyEndAllowThreads(__tstate); | |
8210 | if (PyErr_Occurred()) SWIG_fail; | |
8211 | } | |
8212 | Py_INCREF(Py_None); resultobj = Py_None; | |
8213 | { | |
8214 | if (temp1) | |
8215 | delete arg1; | |
8216 | } | |
8217 | return resultobj; | |
8218 | fail: | |
8219 | { | |
8220 | if (temp1) | |
8221 | delete arg1; | |
8222 | } | |
8223 | return NULL; | |
8224 | } | |
8225 | ||
8226 | ||
8227 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8228 | PyObject *resultobj; | |
8229 | wxString *arg1 = 0 ; | |
8230 | bool temp1 = False ; | |
8231 | PyObject * obj0 = 0 ; | |
8232 | char *kwnames[] = { | |
8233 | (char *) "msg", NULL | |
8234 | }; | |
8235 | ||
8236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8237 | { | |
8238 | arg1 = wxString_in_helper(obj0); | |
8239 | if (arg1 == NULL) SWIG_fail; | |
8240 | temp1 = True; | |
8241 | } | |
8242 | { | |
8243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8244 | wxLogDebug((wxString const &)*arg1); | |
8245 | ||
8246 | wxPyEndAllowThreads(__tstate); | |
8247 | if (PyErr_Occurred()) SWIG_fail; | |
8248 | } | |
8249 | Py_INCREF(Py_None); resultobj = Py_None; | |
8250 | { | |
8251 | if (temp1) | |
8252 | delete arg1; | |
8253 | } | |
8254 | return resultobj; | |
8255 | fail: | |
8256 | { | |
8257 | if (temp1) | |
8258 | delete arg1; | |
8259 | } | |
8260 | return NULL; | |
8261 | } | |
8262 | ||
8263 | ||
8264 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8265 | PyObject *resultobj; | |
8266 | wxString *arg1 = 0 ; | |
8267 | bool temp1 = False ; | |
8268 | PyObject * obj0 = 0 ; | |
8269 | char *kwnames[] = { | |
8270 | (char *) "msg", NULL | |
8271 | }; | |
8272 | ||
8273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8274 | { | |
8275 | arg1 = wxString_in_helper(obj0); | |
8276 | if (arg1 == NULL) SWIG_fail; | |
8277 | temp1 = True; | |
8278 | } | |
8279 | { | |
8280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8281 | wxLogVerbose((wxString const &)*arg1); | |
8282 | ||
8283 | wxPyEndAllowThreads(__tstate); | |
8284 | if (PyErr_Occurred()) SWIG_fail; | |
8285 | } | |
8286 | Py_INCREF(Py_None); resultobj = Py_None; | |
8287 | { | |
8288 | if (temp1) | |
8289 | delete arg1; | |
8290 | } | |
8291 | return resultobj; | |
8292 | fail: | |
8293 | { | |
8294 | if (temp1) | |
8295 | delete arg1; | |
8296 | } | |
8297 | return NULL; | |
8298 | } | |
8299 | ||
8300 | ||
8301 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8302 | PyObject *resultobj; | |
8303 | wxString *arg1 = 0 ; | |
8304 | bool temp1 = False ; | |
8305 | PyObject * obj0 = 0 ; | |
8306 | char *kwnames[] = { | |
8307 | (char *) "msg", NULL | |
8308 | }; | |
8309 | ||
8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8311 | { | |
8312 | arg1 = wxString_in_helper(obj0); | |
8313 | if (arg1 == NULL) SWIG_fail; | |
8314 | temp1 = True; | |
8315 | } | |
8316 | { | |
8317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8318 | wxLogStatus((wxString const &)*arg1); | |
8319 | ||
8320 | wxPyEndAllowThreads(__tstate); | |
8321 | if (PyErr_Occurred()) SWIG_fail; | |
8322 | } | |
8323 | Py_INCREF(Py_None); resultobj = Py_None; | |
8324 | { | |
8325 | if (temp1) | |
8326 | delete arg1; | |
8327 | } | |
8328 | return resultobj; | |
8329 | fail: | |
8330 | { | |
8331 | if (temp1) | |
8332 | delete arg1; | |
8333 | } | |
8334 | return NULL; | |
8335 | } | |
8336 | ||
8337 | ||
8338 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8339 | PyObject *resultobj; | |
8340 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8341 | wxString *arg2 = 0 ; | |
8342 | bool temp2 = False ; | |
8343 | PyObject * obj0 = 0 ; | |
8344 | PyObject * obj1 = 0 ; | |
8345 | char *kwnames[] = { | |
8346 | (char *) "pFrame",(char *) "msg", NULL | |
8347 | }; | |
8348 | ||
8349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8352 | { | |
8353 | arg2 = wxString_in_helper(obj1); | |
8354 | if (arg2 == NULL) SWIG_fail; | |
8355 | temp2 = True; | |
8356 | } | |
8357 | { | |
8358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8359 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8360 | ||
8361 | wxPyEndAllowThreads(__tstate); | |
8362 | if (PyErr_Occurred()) SWIG_fail; | |
8363 | } | |
8364 | Py_INCREF(Py_None); resultobj = Py_None; | |
8365 | { | |
8366 | if (temp2) | |
8367 | delete arg2; | |
8368 | } | |
8369 | return resultobj; | |
8370 | fail: | |
8371 | { | |
8372 | if (temp2) | |
8373 | delete arg2; | |
8374 | } | |
8375 | return NULL; | |
8376 | } | |
8377 | ||
8378 | ||
8379 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8380 | PyObject *resultobj; | |
8381 | wxString *arg1 = 0 ; | |
8382 | bool temp1 = False ; | |
8383 | PyObject * obj0 = 0 ; | |
8384 | char *kwnames[] = { | |
8385 | (char *) "msg", NULL | |
8386 | }; | |
8387 | ||
8388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8389 | { | |
8390 | arg1 = wxString_in_helper(obj0); | |
8391 | if (arg1 == NULL) SWIG_fail; | |
8392 | temp1 = True; | |
8393 | } | |
8394 | { | |
8395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8396 | wxLogSysError((wxString const &)*arg1); | |
8397 | ||
8398 | wxPyEndAllowThreads(__tstate); | |
8399 | if (PyErr_Occurred()) SWIG_fail; | |
8400 | } | |
8401 | Py_INCREF(Py_None); resultobj = Py_None; | |
8402 | { | |
8403 | if (temp1) | |
8404 | delete arg1; | |
8405 | } | |
8406 | return resultobj; | |
8407 | fail: | |
8408 | { | |
8409 | if (temp1) | |
8410 | delete arg1; | |
8411 | } | |
8412 | return NULL; | |
8413 | } | |
8414 | ||
8415 | ||
8416 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { | |
8417 | PyObject *resultobj; | |
8418 | unsigned long arg1 ; | |
8419 | wxString *arg2 = 0 ; | |
8420 | bool temp2 = False ; | |
8421 | PyObject * obj0 = 0 ; | |
8422 | PyObject * obj1 = 0 ; | |
8423 | ||
8424 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8425 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8426 | if (PyErr_Occurred()) SWIG_fail; | |
8427 | { | |
8428 | arg2 = wxString_in_helper(obj1); | |
8429 | if (arg2 == NULL) SWIG_fail; | |
8430 | temp2 = True; | |
8431 | } | |
8432 | { | |
8433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8434 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8435 | ||
8436 | wxPyEndAllowThreads(__tstate); | |
8437 | if (PyErr_Occurred()) SWIG_fail; | |
8438 | } | |
8439 | Py_INCREF(Py_None); resultobj = Py_None; | |
8440 | { | |
8441 | if (temp2) | |
8442 | delete arg2; | |
8443 | } | |
8444 | return resultobj; | |
8445 | fail: | |
8446 | { | |
8447 | if (temp2) | |
8448 | delete arg2; | |
8449 | } | |
8450 | return NULL; | |
8451 | } | |
8452 | ||
8453 | ||
8454 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { | |
8455 | PyObject *resultobj; | |
8456 | wxString *arg1 = 0 ; | |
8457 | wxString *arg2 = 0 ; | |
8458 | bool temp1 = False ; | |
8459 | bool temp2 = False ; | |
8460 | PyObject * obj0 = 0 ; | |
8461 | PyObject * obj1 = 0 ; | |
8462 | ||
8463 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8464 | { | |
8465 | arg1 = wxString_in_helper(obj0); | |
8466 | if (arg1 == NULL) SWIG_fail; | |
8467 | temp1 = True; | |
8468 | } | |
8469 | { | |
8470 | arg2 = wxString_in_helper(obj1); | |
8471 | if (arg2 == NULL) SWIG_fail; | |
8472 | temp2 = True; | |
8473 | } | |
8474 | { | |
8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8476 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8477 | ||
8478 | wxPyEndAllowThreads(__tstate); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | Py_INCREF(Py_None); resultobj = Py_None; | |
8482 | { | |
8483 | if (temp1) | |
8484 | delete arg1; | |
8485 | } | |
8486 | { | |
8487 | if (temp2) | |
8488 | delete arg2; | |
8489 | } | |
8490 | return resultobj; | |
8491 | fail: | |
8492 | { | |
8493 | if (temp1) | |
8494 | delete arg1; | |
8495 | } | |
8496 | { | |
8497 | if (temp2) | |
8498 | delete arg2; | |
8499 | } | |
8500 | return NULL; | |
8501 | } | |
8502 | ||
8503 | ||
8504 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
8505 | int argc; | |
8506 | PyObject *argv[3]; | |
8507 | int ii; | |
8508 | ||
8509 | argc = PyObject_Length(args); | |
8510 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8511 | argv[ii] = PyTuple_GetItem(args,ii); | |
8512 | } | |
8513 | if (argc == 2) { | |
8514 | int _v; | |
8515 | { | |
8516 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
8517 | } | |
8518 | if (_v) { | |
8519 | { | |
8520 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8521 | } | |
8522 | if (_v) { | |
8523 | return _wrap_LogTrace__SWIG_1(self,args); | |
8524 | } | |
8525 | } | |
8526 | } | |
8527 | if (argc == 2) { | |
8528 | int _v; | |
8529 | _v = SWIG_CheckUnsignedLong(argv[0]); | |
8530 | if (_v) { | |
8531 | { | |
8532 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8533 | } | |
8534 | if (_v) { | |
8535 | return _wrap_LogTrace__SWIG_0(self,args); | |
8536 | } | |
8537 | } | |
8538 | } | |
8539 | ||
8540 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
8545 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8546 | PyObject *resultobj; | |
8547 | unsigned long arg1 ; | |
8548 | wxString *arg2 = 0 ; | |
8549 | bool temp2 = False ; | |
8550 | PyObject * obj0 = 0 ; | |
8551 | PyObject * obj1 = 0 ; | |
8552 | char *kwnames[] = { | |
8553 | (char *) "level",(char *) "msg", NULL | |
8554 | }; | |
8555 | ||
8556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
8557 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8558 | if (PyErr_Occurred()) SWIG_fail; | |
8559 | { | |
8560 | arg2 = wxString_in_helper(obj1); | |
8561 | if (arg2 == NULL) SWIG_fail; | |
8562 | temp2 = True; | |
8563 | } | |
8564 | { | |
8565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8566 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8567 | ||
8568 | wxPyEndAllowThreads(__tstate); | |
8569 | if (PyErr_Occurred()) SWIG_fail; | |
8570 | } | |
8571 | Py_INCREF(Py_None); resultobj = Py_None; | |
8572 | { | |
8573 | if (temp2) | |
8574 | delete arg2; | |
8575 | } | |
8576 | return resultobj; | |
8577 | fail: | |
8578 | { | |
8579 | if (temp2) | |
8580 | delete arg2; | |
8581 | } | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
8586 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8587 | PyObject *resultobj; | |
8588 | wxString *arg1 = 0 ; | |
8589 | wxString *arg2 = 0 ; | |
8590 | bool temp1 = False ; | |
8591 | bool temp2 = False ; | |
8592 | PyObject * obj0 = 0 ; | |
8593 | PyObject * obj1 = 0 ; | |
8594 | char *kwnames[] = { | |
8595 | (char *) "title",(char *) "text", NULL | |
8596 | }; | |
8597 | ||
8598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8599 | { | |
8600 | arg1 = wxString_in_helper(obj0); | |
8601 | if (arg1 == NULL) SWIG_fail; | |
8602 | temp1 = True; | |
8603 | } | |
8604 | { | |
8605 | arg2 = wxString_in_helper(obj1); | |
8606 | if (arg2 == NULL) SWIG_fail; | |
8607 | temp2 = True; | |
8608 | } | |
8609 | { | |
8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8611 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8612 | ||
8613 | wxPyEndAllowThreads(__tstate); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
8616 | Py_INCREF(Py_None); resultobj = Py_None; | |
8617 | { | |
8618 | if (temp1) | |
8619 | delete arg1; | |
8620 | } | |
8621 | { | |
8622 | if (temp2) | |
8623 | delete arg2; | |
8624 | } | |
8625 | return resultobj; | |
8626 | fail: | |
8627 | { | |
8628 | if (temp1) | |
8629 | delete arg1; | |
8630 | } | |
8631 | { | |
8632 | if (temp2) | |
8633 | delete arg2; | |
8634 | } | |
8635 | return NULL; | |
8636 | } | |
8637 | ||
8638 | ||
8639 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8640 | PyObject *resultobj; | |
8641 | wxLogNull *result; | |
8642 | char *kwnames[] = { | |
8643 | NULL | |
8644 | }; | |
8645 | ||
8646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8647 | { | |
8648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8649 | result = (wxLogNull *)new wxLogNull(); | |
8650 | ||
8651 | wxPyEndAllowThreads(__tstate); | |
8652 | if (PyErr_Occurred()) SWIG_fail; | |
8653 | } | |
8654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
8655 | return resultobj; | |
8656 | fail: | |
8657 | return NULL; | |
8658 | } | |
8659 | ||
8660 | ||
8661 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8662 | PyObject *resultobj; | |
8663 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8664 | PyObject * obj0 = 0 ; | |
8665 | char *kwnames[] = { | |
8666 | (char *) "self", NULL | |
8667 | }; | |
8668 | ||
8669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
8670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
8671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8672 | { | |
8673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8674 | delete arg1; | |
8675 | ||
8676 | wxPyEndAllowThreads(__tstate); | |
8677 | if (PyErr_Occurred()) SWIG_fail; | |
8678 | } | |
8679 | Py_INCREF(Py_None); resultobj = Py_None; | |
8680 | return resultobj; | |
8681 | fail: | |
8682 | return NULL; | |
8683 | } | |
8684 | ||
8685 | ||
8686 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8687 | PyObject *obj; | |
8688 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8689 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8690 | Py_INCREF(obj); | |
8691 | return Py_BuildValue((char *)""); | |
8692 | } | |
8693 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8694 | PyObject *resultobj; | |
8695 | wxPyLog *result; | |
8696 | char *kwnames[] = { | |
8697 | NULL | |
8698 | }; | |
8699 | ||
8700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8701 | { | |
8702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8703 | result = (wxPyLog *)new wxPyLog(); | |
8704 | ||
8705 | wxPyEndAllowThreads(__tstate); | |
8706 | if (PyErr_Occurred()) SWIG_fail; | |
8707 | } | |
8708 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
8709 | return resultobj; | |
8710 | fail: | |
8711 | return NULL; | |
8712 | } | |
8713 | ||
8714 | ||
8715 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8716 | PyObject *resultobj; | |
8717 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8718 | PyObject *arg2 = (PyObject *) 0 ; | |
8719 | PyObject *arg3 = (PyObject *) 0 ; | |
8720 | PyObject * obj0 = 0 ; | |
8721 | PyObject * obj1 = 0 ; | |
8722 | PyObject * obj2 = 0 ; | |
8723 | char *kwnames[] = { | |
8724 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8725 | }; | |
8726 | ||
8727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
8729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8730 | arg2 = obj1; | |
8731 | arg3 = obj2; | |
8732 | { | |
8733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8734 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8735 | ||
8736 | wxPyEndAllowThreads(__tstate); | |
8737 | if (PyErr_Occurred()) SWIG_fail; | |
8738 | } | |
8739 | Py_INCREF(Py_None); resultobj = Py_None; | |
8740 | return resultobj; | |
8741 | fail: | |
8742 | return NULL; | |
8743 | } | |
8744 | ||
8745 | ||
8746 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8747 | PyObject *obj; | |
8748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8749 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8750 | Py_INCREF(obj); | |
8751 | return Py_BuildValue((char *)""); | |
8752 | } | |
8753 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8754 | PyObject *resultobj; | |
8755 | int arg1 ; | |
8756 | int arg2 = (int) wxSIGTERM ; | |
8757 | int result; | |
8758 | PyObject * obj0 = 0 ; | |
8759 | PyObject * obj1 = 0 ; | |
8760 | char *kwnames[] = { | |
8761 | (char *) "pid",(char *) "sig", NULL | |
8762 | }; | |
8763 | ||
8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
8765 | arg1 = (int) SWIG_AsInt(obj0); | |
8766 | if (PyErr_Occurred()) SWIG_fail; | |
8767 | if (obj1) { | |
8768 | arg2 = (wxSignal) SWIG_AsInt(obj1); | |
8769 | if (PyErr_Occurred()) SWIG_fail; | |
8770 | } | |
8771 | { | |
8772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8773 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8774 | ||
8775 | wxPyEndAllowThreads(__tstate); | |
8776 | if (PyErr_Occurred()) SWIG_fail; | |
8777 | } | |
8778 | resultobj = SWIG_FromInt((int)result); | |
8779 | return resultobj; | |
8780 | fail: | |
8781 | return NULL; | |
8782 | } | |
8783 | ||
8784 | ||
8785 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8786 | PyObject *resultobj; | |
8787 | int arg1 ; | |
8788 | bool result; | |
8789 | PyObject * obj0 = 0 ; | |
8790 | char *kwnames[] = { | |
8791 | (char *) "pid", NULL | |
8792 | }; | |
8793 | ||
8794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
8795 | arg1 = (int) SWIG_AsInt(obj0); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | { | |
8798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8799 | result = (bool)wxPyProcess::Exists(arg1); | |
8800 | ||
8801 | wxPyEndAllowThreads(__tstate); | |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
8803 | } | |
8804 | { | |
8805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8806 | } | |
8807 | return resultobj; | |
8808 | fail: | |
8809 | return NULL; | |
8810 | } | |
8811 | ||
8812 | ||
8813 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8814 | PyObject *resultobj; | |
8815 | wxString *arg1 = 0 ; | |
8816 | int arg2 = (int) wxEXEC_ASYNC ; | |
8817 | wxPyProcess *result; | |
8818 | bool temp1 = False ; | |
8819 | PyObject * obj0 = 0 ; | |
8820 | PyObject * obj1 = 0 ; | |
8821 | char *kwnames[] = { | |
8822 | (char *) "cmd",(char *) "flags", NULL | |
8823 | }; | |
8824 | ||
8825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
8826 | { | |
8827 | arg1 = wxString_in_helper(obj0); | |
8828 | if (arg1 == NULL) SWIG_fail; | |
8829 | temp1 = True; | |
8830 | } | |
8831 | if (obj1) { | |
8832 | arg2 = (int) SWIG_AsInt(obj1); | |
8833 | if (PyErr_Occurred()) SWIG_fail; | |
8834 | } | |
8835 | { | |
8836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8837 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8838 | ||
8839 | wxPyEndAllowThreads(__tstate); | |
8840 | if (PyErr_Occurred()) SWIG_fail; | |
8841 | } | |
8842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
8843 | { | |
8844 | if (temp1) | |
8845 | delete arg1; | |
8846 | } | |
8847 | return resultobj; | |
8848 | fail: | |
8849 | { | |
8850 | if (temp1) | |
8851 | delete arg1; | |
8852 | } | |
8853 | return NULL; | |
8854 | } | |
8855 | ||
8856 | ||
8857 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8858 | PyObject *resultobj; | |
8859 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8860 | int arg2 = (int) -1 ; | |
8861 | wxPyProcess *result; | |
8862 | PyObject * obj0 = 0 ; | |
8863 | PyObject * obj1 = 0 ; | |
8864 | char *kwnames[] = { | |
8865 | (char *) "parent",(char *) "id", NULL | |
8866 | }; | |
8867 | ||
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
8869 | if (obj0) { | |
8870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
8871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8872 | } | |
8873 | if (obj1) { | |
8874 | arg2 = (int) SWIG_AsInt(obj1); | |
8875 | if (PyErr_Occurred()) SWIG_fail; | |
8876 | } | |
8877 | { | |
8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8879 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8880 | ||
8881 | wxPyEndAllowThreads(__tstate); | |
8882 | if (PyErr_Occurred()) SWIG_fail; | |
8883 | } | |
8884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
8885 | return resultobj; | |
8886 | fail: | |
8887 | return NULL; | |
8888 | } | |
8889 | ||
8890 | ||
8891 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8892 | PyObject *resultobj; | |
8893 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8894 | PyObject *arg2 = (PyObject *) 0 ; | |
8895 | PyObject *arg3 = (PyObject *) 0 ; | |
8896 | PyObject * obj0 = 0 ; | |
8897 | PyObject * obj1 = 0 ; | |
8898 | PyObject * obj2 = 0 ; | |
8899 | char *kwnames[] = { | |
8900 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8901 | }; | |
8902 | ||
8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8906 | arg2 = obj1; | |
8907 | arg3 = obj2; | |
8908 | { | |
8909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8910 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8911 | ||
8912 | wxPyEndAllowThreads(__tstate); | |
8913 | if (PyErr_Occurred()) SWIG_fail; | |
8914 | } | |
8915 | Py_INCREF(Py_None); resultobj = Py_None; | |
8916 | return resultobj; | |
8917 | fail: | |
8918 | return NULL; | |
8919 | } | |
8920 | ||
8921 | ||
8922 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8923 | PyObject *resultobj; | |
8924 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8925 | int arg2 ; | |
8926 | int arg3 ; | |
8927 | PyObject * obj0 = 0 ; | |
8928 | PyObject * obj1 = 0 ; | |
8929 | PyObject * obj2 = 0 ; | |
8930 | char *kwnames[] = { | |
8931 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8932 | }; | |
8933 | ||
8934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8937 | arg2 = (int) SWIG_AsInt(obj1); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | arg3 = (int) SWIG_AsInt(obj2); | |
8940 | if (PyErr_Occurred()) SWIG_fail; | |
8941 | { | |
8942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8943 | (arg1)->base_OnTerminate(arg2,arg3); | |
8944 | ||
8945 | wxPyEndAllowThreads(__tstate); | |
8946 | if (PyErr_Occurred()) SWIG_fail; | |
8947 | } | |
8948 | Py_INCREF(Py_None); resultobj = Py_None; | |
8949 | return resultobj; | |
8950 | fail: | |
8951 | return NULL; | |
8952 | } | |
8953 | ||
8954 | ||
8955 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8956 | PyObject *resultobj; | |
8957 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8958 | PyObject * obj0 = 0 ; | |
8959 | char *kwnames[] = { | |
8960 | (char *) "self", NULL | |
8961 | }; | |
8962 | ||
8963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8966 | { | |
8967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8968 | (arg1)->Redirect(); | |
8969 | ||
8970 | wxPyEndAllowThreads(__tstate); | |
8971 | if (PyErr_Occurred()) SWIG_fail; | |
8972 | } | |
8973 | Py_INCREF(Py_None); resultobj = Py_None; | |
8974 | return resultobj; | |
8975 | fail: | |
8976 | return NULL; | |
8977 | } | |
8978 | ||
8979 | ||
8980 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8981 | PyObject *resultobj; | |
8982 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8983 | bool result; | |
8984 | PyObject * obj0 = 0 ; | |
8985 | char *kwnames[] = { | |
8986 | (char *) "self", NULL | |
8987 | }; | |
8988 | ||
8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8992 | { | |
8993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8994 | result = (bool)(arg1)->IsRedirected(); | |
8995 | ||
8996 | wxPyEndAllowThreads(__tstate); | |
8997 | if (PyErr_Occurred()) SWIG_fail; | |
8998 | } | |
8999 | { | |
9000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9001 | } | |
9002 | return resultobj; | |
9003 | fail: | |
9004 | return NULL; | |
9005 | } | |
9006 | ||
9007 | ||
9008 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9009 | PyObject *resultobj; | |
9010 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9011 | PyObject * obj0 = 0 ; | |
9012 | char *kwnames[] = { | |
9013 | (char *) "self", NULL | |
9014 | }; | |
9015 | ||
9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
9017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9019 | { | |
9020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9021 | (arg1)->Detach(); | |
9022 | ||
9023 | wxPyEndAllowThreads(__tstate); | |
9024 | if (PyErr_Occurred()) SWIG_fail; | |
9025 | } | |
9026 | Py_INCREF(Py_None); resultobj = Py_None; | |
9027 | return resultobj; | |
9028 | fail: | |
9029 | return NULL; | |
9030 | } | |
9031 | ||
9032 | ||
9033 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9034 | PyObject *resultobj; | |
9035 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9036 | wxInputStream *result; | |
9037 | PyObject * obj0 = 0 ; | |
9038 | char *kwnames[] = { | |
9039 | (char *) "self", NULL | |
9040 | }; | |
9041 | ||
9042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9045 | { | |
9046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9047 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9048 | ||
9049 | wxPyEndAllowThreads(__tstate); | |
9050 | if (PyErr_Occurred()) SWIG_fail; | |
9051 | } | |
9052 | { | |
9053 | wxPyInputStream * _ptr = NULL; | |
9054 | ||
9055 | if (result) { | |
9056 | _ptr = new wxPyInputStream(result); | |
9057 | } | |
9058 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9059 | } | |
9060 | return resultobj; | |
9061 | fail: | |
9062 | return NULL; | |
9063 | } | |
9064 | ||
9065 | ||
9066 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9067 | PyObject *resultobj; | |
9068 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9069 | wxInputStream *result; | |
9070 | PyObject * obj0 = 0 ; | |
9071 | char *kwnames[] = { | |
9072 | (char *) "self", NULL | |
9073 | }; | |
9074 | ||
9075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9078 | { | |
9079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9080 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9081 | ||
9082 | wxPyEndAllowThreads(__tstate); | |
9083 | if (PyErr_Occurred()) SWIG_fail; | |
9084 | } | |
9085 | { | |
9086 | wxPyInputStream * _ptr = NULL; | |
9087 | ||
9088 | if (result) { | |
9089 | _ptr = new wxPyInputStream(result); | |
9090 | } | |
9091 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9092 | } | |
9093 | return resultobj; | |
9094 | fail: | |
9095 | return NULL; | |
9096 | } | |
9097 | ||
9098 | ||
9099 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9100 | PyObject *resultobj; | |
9101 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9102 | wxOutputStream *result; | |
9103 | PyObject * obj0 = 0 ; | |
9104 | char *kwnames[] = { | |
9105 | (char *) "self", NULL | |
9106 | }; | |
9107 | ||
9108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9111 | { | |
9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9113 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9114 | ||
9115 | wxPyEndAllowThreads(__tstate); | |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
9117 | } | |
9118 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9119 | return resultobj; | |
9120 | fail: | |
9121 | return NULL; | |
9122 | } | |
9123 | ||
9124 | ||
9125 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9126 | PyObject *resultobj; | |
9127 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9128 | PyObject * obj0 = 0 ; | |
9129 | char *kwnames[] = { | |
9130 | (char *) "self", NULL | |
9131 | }; | |
9132 | ||
9133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9136 | { | |
9137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9138 | (arg1)->CloseOutput(); | |
9139 | ||
9140 | wxPyEndAllowThreads(__tstate); | |
9141 | if (PyErr_Occurred()) SWIG_fail; | |
9142 | } | |
9143 | Py_INCREF(Py_None); resultobj = Py_None; | |
9144 | return resultobj; | |
9145 | fail: | |
9146 | return NULL; | |
9147 | } | |
9148 | ||
9149 | ||
9150 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9151 | PyObject *resultobj; | |
9152 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9153 | bool result; | |
9154 | PyObject * obj0 = 0 ; | |
9155 | char *kwnames[] = { | |
9156 | (char *) "self", NULL | |
9157 | }; | |
9158 | ||
9159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9162 | { | |
9163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9164 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9165 | ||
9166 | wxPyEndAllowThreads(__tstate); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | } | |
9169 | { | |
9170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9171 | } | |
9172 | return resultobj; | |
9173 | fail: | |
9174 | return NULL; | |
9175 | } | |
9176 | ||
9177 | ||
9178 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9179 | PyObject *resultobj; | |
9180 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9181 | bool result; | |
9182 | PyObject * obj0 = 0 ; | |
9183 | char *kwnames[] = { | |
9184 | (char *) "self", NULL | |
9185 | }; | |
9186 | ||
9187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9190 | { | |
9191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9192 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9193 | ||
9194 | wxPyEndAllowThreads(__tstate); | |
9195 | if (PyErr_Occurred()) SWIG_fail; | |
9196 | } | |
9197 | { | |
9198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9199 | } | |
9200 | return resultobj; | |
9201 | fail: | |
9202 | return NULL; | |
9203 | } | |
9204 | ||
9205 | ||
9206 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9207 | PyObject *resultobj; | |
9208 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9209 | bool result; | |
9210 | PyObject * obj0 = 0 ; | |
9211 | char *kwnames[] = { | |
9212 | (char *) "self", NULL | |
9213 | }; | |
9214 | ||
9215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9218 | { | |
9219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9220 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9221 | ||
9222 | wxPyEndAllowThreads(__tstate); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
9225 | { | |
9226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9227 | } | |
9228 | return resultobj; | |
9229 | fail: | |
9230 | return NULL; | |
9231 | } | |
9232 | ||
9233 | ||
9234 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9235 | PyObject *obj; | |
9236 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9237 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9238 | Py_INCREF(obj); | |
9239 | return Py_BuildValue((char *)""); | |
9240 | } | |
9241 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9242 | PyObject *resultobj; | |
9243 | int arg1 = (int) 0 ; | |
9244 | int arg2 = (int) 0 ; | |
9245 | int arg3 = (int) 0 ; | |
9246 | wxProcessEvent *result; | |
9247 | PyObject * obj0 = 0 ; | |
9248 | PyObject * obj1 = 0 ; | |
9249 | PyObject * obj2 = 0 ; | |
9250 | char *kwnames[] = { | |
9251 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9252 | }; | |
9253 | ||
9254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9255 | if (obj0) { | |
9256 | arg1 = (int) SWIG_AsInt(obj0); | |
9257 | if (PyErr_Occurred()) SWIG_fail; | |
9258 | } | |
9259 | if (obj1) { | |
9260 | arg2 = (int) SWIG_AsInt(obj1); | |
9261 | if (PyErr_Occurred()) SWIG_fail; | |
9262 | } | |
9263 | if (obj2) { | |
9264 | arg3 = (int) SWIG_AsInt(obj2); | |
9265 | if (PyErr_Occurred()) SWIG_fail; | |
9266 | } | |
9267 | { | |
9268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9269 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9270 | ||
9271 | wxPyEndAllowThreads(__tstate); | |
9272 | if (PyErr_Occurred()) SWIG_fail; | |
9273 | } | |
9274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9275 | return resultobj; | |
9276 | fail: | |
9277 | return NULL; | |
9278 | } | |
9279 | ||
9280 | ||
9281 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9282 | PyObject *resultobj; | |
9283 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9284 | int result; | |
9285 | PyObject * obj0 = 0 ; | |
9286 | char *kwnames[] = { | |
9287 | (char *) "self", NULL | |
9288 | }; | |
9289 | ||
9290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9293 | { | |
9294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9295 | result = (int)(arg1)->GetPid(); | |
9296 | ||
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
9300 | resultobj = SWIG_FromInt((int)result); | |
9301 | return resultobj; | |
9302 | fail: | |
9303 | return NULL; | |
9304 | } | |
9305 | ||
9306 | ||
9307 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9308 | PyObject *resultobj; | |
9309 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9310 | int result; | |
9311 | PyObject * obj0 = 0 ; | |
9312 | char *kwnames[] = { | |
9313 | (char *) "self", NULL | |
9314 | }; | |
9315 | ||
9316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9319 | { | |
9320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9321 | result = (int)(arg1)->GetExitCode(); | |
9322 | ||
9323 | wxPyEndAllowThreads(__tstate); | |
9324 | if (PyErr_Occurred()) SWIG_fail; | |
9325 | } | |
9326 | resultobj = SWIG_FromInt((int)result); | |
9327 | return resultobj; | |
9328 | fail: | |
9329 | return NULL; | |
9330 | } | |
9331 | ||
9332 | ||
9333 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9334 | PyObject *resultobj; | |
9335 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9336 | int arg2 ; | |
9337 | PyObject * obj0 = 0 ; | |
9338 | PyObject * obj1 = 0 ; | |
9339 | char *kwnames[] = { | |
9340 | (char *) "self",(char *) "m_pid", NULL | |
9341 | }; | |
9342 | ||
9343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9346 | arg2 = (int) SWIG_AsInt(obj1); | |
9347 | if (PyErr_Occurred()) SWIG_fail; | |
9348 | if (arg1) (arg1)->m_pid = arg2; | |
9349 | ||
9350 | Py_INCREF(Py_None); resultobj = Py_None; | |
9351 | return resultobj; | |
9352 | fail: | |
9353 | return NULL; | |
9354 | } | |
9355 | ||
9356 | ||
9357 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9358 | PyObject *resultobj; | |
9359 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9360 | int result; | |
9361 | PyObject * obj0 = 0 ; | |
9362 | char *kwnames[] = { | |
9363 | (char *) "self", NULL | |
9364 | }; | |
9365 | ||
9366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9369 | result = (int) ((arg1)->m_pid); | |
9370 | ||
9371 | resultobj = SWIG_FromInt((int)result); | |
9372 | return resultobj; | |
9373 | fail: | |
9374 | return NULL; | |
9375 | } | |
9376 | ||
9377 | ||
9378 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9379 | PyObject *resultobj; | |
9380 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9381 | int arg2 ; | |
9382 | PyObject * obj0 = 0 ; | |
9383 | PyObject * obj1 = 0 ; | |
9384 | char *kwnames[] = { | |
9385 | (char *) "self",(char *) "m_exitcode", NULL | |
9386 | }; | |
9387 | ||
9388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9391 | arg2 = (int) SWIG_AsInt(obj1); | |
9392 | if (PyErr_Occurred()) SWIG_fail; | |
9393 | if (arg1) (arg1)->m_exitcode = arg2; | |
9394 | ||
9395 | Py_INCREF(Py_None); resultobj = Py_None; | |
9396 | return resultobj; | |
9397 | fail: | |
9398 | return NULL; | |
9399 | } | |
9400 | ||
9401 | ||
9402 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9403 | PyObject *resultobj; | |
9404 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9405 | int result; | |
9406 | PyObject * obj0 = 0 ; | |
9407 | char *kwnames[] = { | |
9408 | (char *) "self", NULL | |
9409 | }; | |
9410 | ||
9411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9414 | result = (int) ((arg1)->m_exitcode); | |
9415 | ||
9416 | resultobj = SWIG_FromInt((int)result); | |
9417 | return resultobj; | |
9418 | fail: | |
9419 | return NULL; | |
9420 | } | |
9421 | ||
9422 | ||
9423 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9424 | PyObject *obj; | |
9425 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9426 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9427 | Py_INCREF(obj); | |
9428 | return Py_BuildValue((char *)""); | |
9429 | } | |
9430 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9431 | PyObject *resultobj; | |
9432 | wxString *arg1 = 0 ; | |
9433 | int arg2 = (int) wxEXEC_ASYNC ; | |
9434 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9435 | long result; | |
9436 | bool temp1 = False ; | |
9437 | PyObject * obj0 = 0 ; | |
9438 | PyObject * obj1 = 0 ; | |
9439 | PyObject * obj2 = 0 ; | |
9440 | char *kwnames[] = { | |
9441 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9442 | }; | |
9443 | ||
9444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9445 | { | |
9446 | arg1 = wxString_in_helper(obj0); | |
9447 | if (arg1 == NULL) SWIG_fail; | |
9448 | temp1 = True; | |
9449 | } | |
9450 | if (obj1) { | |
9451 | arg2 = (int) SWIG_AsInt(obj1); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
9454 | if (obj2) { | |
9455 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
9456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9457 | } | |
9458 | { | |
9459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9460 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9461 | ||
9462 | wxPyEndAllowThreads(__tstate); | |
9463 | if (PyErr_Occurred()) SWIG_fail; | |
9464 | } | |
9465 | resultobj = SWIG_FromLong((long)result); | |
9466 | { | |
9467 | if (temp1) | |
9468 | delete arg1; | |
9469 | } | |
9470 | return resultobj; | |
9471 | fail: | |
9472 | { | |
9473 | if (temp1) | |
9474 | delete arg1; | |
9475 | } | |
9476 | return NULL; | |
9477 | } | |
9478 | ||
9479 | ||
9480 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9481 | PyObject *resultobj; | |
9482 | int arg1 = (int) wxJOYSTICK1 ; | |
9483 | wxJoystick *result; | |
9484 | PyObject * obj0 = 0 ; | |
9485 | char *kwnames[] = { | |
9486 | (char *) "joystick", NULL | |
9487 | }; | |
9488 | ||
9489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9490 | if (obj0) { | |
9491 | arg1 = (int) SWIG_AsInt(obj0); | |
9492 | if (PyErr_Occurred()) SWIG_fail; | |
9493 | } | |
9494 | { | |
9495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9496 | result = (wxJoystick *)new wxJoystick(arg1); | |
9497 | ||
9498 | wxPyEndAllowThreads(__tstate); | |
9499 | if (PyErr_Occurred()) SWIG_fail; | |
9500 | } | |
9501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
9502 | return resultobj; | |
9503 | fail: | |
9504 | return NULL; | |
9505 | } | |
9506 | ||
9507 | ||
9508 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9509 | PyObject *resultobj; | |
9510 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9511 | PyObject * obj0 = 0 ; | |
9512 | char *kwnames[] = { | |
9513 | (char *) "self", NULL | |
9514 | }; | |
9515 | ||
9516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
9517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9519 | { | |
9520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9521 | delete arg1; | |
9522 | ||
9523 | wxPyEndAllowThreads(__tstate); | |
9524 | if (PyErr_Occurred()) SWIG_fail; | |
9525 | } | |
9526 | Py_INCREF(Py_None); resultobj = Py_None; | |
9527 | return resultobj; | |
9528 | fail: | |
9529 | return NULL; | |
9530 | } | |
9531 | ||
9532 | ||
9533 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9534 | PyObject *resultobj; | |
9535 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9536 | wxPoint result; | |
9537 | PyObject * obj0 = 0 ; | |
9538 | char *kwnames[] = { | |
9539 | (char *) "self", NULL | |
9540 | }; | |
9541 | ||
9542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
9543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9545 | { | |
9546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9547 | result = (arg1)->GetPosition(); | |
9548 | ||
9549 | wxPyEndAllowThreads(__tstate); | |
9550 | if (PyErr_Occurred()) SWIG_fail; | |
9551 | } | |
9552 | { | |
9553 | wxPoint * resultptr; | |
9554 | resultptr = new wxPoint((wxPoint &) result); | |
9555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
9556 | } | |
9557 | return resultobj; | |
9558 | fail: | |
9559 | return NULL; | |
9560 | } | |
9561 | ||
9562 | ||
9563 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9564 | PyObject *resultobj; | |
9565 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9566 | int result; | |
9567 | PyObject * obj0 = 0 ; | |
9568 | char *kwnames[] = { | |
9569 | (char *) "self", NULL | |
9570 | }; | |
9571 | ||
9572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
9573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9575 | { | |
9576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9577 | result = (int)(arg1)->GetZPosition(); | |
9578 | ||
9579 | wxPyEndAllowThreads(__tstate); | |
9580 | if (PyErr_Occurred()) SWIG_fail; | |
9581 | } | |
9582 | resultobj = SWIG_FromInt((int)result); | |
9583 | return resultobj; | |
9584 | fail: | |
9585 | return NULL; | |
9586 | } | |
9587 | ||
9588 | ||
9589 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9590 | PyObject *resultobj; | |
9591 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9592 | int result; | |
9593 | PyObject * obj0 = 0 ; | |
9594 | char *kwnames[] = { | |
9595 | (char *) "self", NULL | |
9596 | }; | |
9597 | ||
9598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
9599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9601 | { | |
9602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9603 | result = (int)(arg1)->GetButtonState(); | |
9604 | ||
9605 | wxPyEndAllowThreads(__tstate); | |
9606 | if (PyErr_Occurred()) SWIG_fail; | |
9607 | } | |
9608 | resultobj = SWIG_FromInt((int)result); | |
9609 | return resultobj; | |
9610 | fail: | |
9611 | return NULL; | |
9612 | } | |
9613 | ||
9614 | ||
9615 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9616 | PyObject *resultobj; | |
9617 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9618 | int result; | |
9619 | PyObject * obj0 = 0 ; | |
9620 | char *kwnames[] = { | |
9621 | (char *) "self", NULL | |
9622 | }; | |
9623 | ||
9624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
9625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9627 | { | |
9628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9629 | result = (int)(arg1)->GetPOVPosition(); | |
9630 | ||
9631 | wxPyEndAllowThreads(__tstate); | |
9632 | if (PyErr_Occurred()) SWIG_fail; | |
9633 | } | |
9634 | resultobj = SWIG_FromInt((int)result); | |
9635 | return resultobj; | |
9636 | fail: | |
9637 | return NULL; | |
9638 | } | |
9639 | ||
9640 | ||
9641 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9642 | PyObject *resultobj; | |
9643 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9644 | int result; | |
9645 | PyObject * obj0 = 0 ; | |
9646 | char *kwnames[] = { | |
9647 | (char *) "self", NULL | |
9648 | }; | |
9649 | ||
9650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
9651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9656 | ||
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | resultobj = SWIG_FromInt((int)result); | |
9661 | return resultobj; | |
9662 | fail: | |
9663 | return NULL; | |
9664 | } | |
9665 | ||
9666 | ||
9667 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9668 | PyObject *resultobj; | |
9669 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9670 | int result; | |
9671 | PyObject * obj0 = 0 ; | |
9672 | char *kwnames[] = { | |
9673 | (char *) "self", NULL | |
9674 | }; | |
9675 | ||
9676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
9677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9679 | { | |
9680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9681 | result = (int)(arg1)->GetRudderPosition(); | |
9682 | ||
9683 | wxPyEndAllowThreads(__tstate); | |
9684 | if (PyErr_Occurred()) SWIG_fail; | |
9685 | } | |
9686 | resultobj = SWIG_FromInt((int)result); | |
9687 | return resultobj; | |
9688 | fail: | |
9689 | return NULL; | |
9690 | } | |
9691 | ||
9692 | ||
9693 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9694 | PyObject *resultobj; | |
9695 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9696 | int result; | |
9697 | PyObject * obj0 = 0 ; | |
9698 | char *kwnames[] = { | |
9699 | (char *) "self", NULL | |
9700 | }; | |
9701 | ||
9702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
9703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9705 | { | |
9706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9707 | result = (int)(arg1)->GetUPosition(); | |
9708 | ||
9709 | wxPyEndAllowThreads(__tstate); | |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
9711 | } | |
9712 | resultobj = SWIG_FromInt((int)result); | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | return NULL; | |
9716 | } | |
9717 | ||
9718 | ||
9719 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9720 | PyObject *resultobj; | |
9721 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9722 | int result; | |
9723 | PyObject * obj0 = 0 ; | |
9724 | char *kwnames[] = { | |
9725 | (char *) "self", NULL | |
9726 | }; | |
9727 | ||
9728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
9729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9731 | { | |
9732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9733 | result = (int)(arg1)->GetVPosition(); | |
9734 | ||
9735 | wxPyEndAllowThreads(__tstate); | |
9736 | if (PyErr_Occurred()) SWIG_fail; | |
9737 | } | |
9738 | resultobj = SWIG_FromInt((int)result); | |
9739 | return resultobj; | |
9740 | fail: | |
9741 | return NULL; | |
9742 | } | |
9743 | ||
9744 | ||
9745 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9746 | PyObject *resultobj; | |
9747 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9748 | int result; | |
9749 | PyObject * obj0 = 0 ; | |
9750 | char *kwnames[] = { | |
9751 | (char *) "self", NULL | |
9752 | }; | |
9753 | ||
9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
9755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9757 | { | |
9758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9759 | result = (int)(arg1)->GetMovementThreshold(); | |
9760 | ||
9761 | wxPyEndAllowThreads(__tstate); | |
9762 | if (PyErr_Occurred()) SWIG_fail; | |
9763 | } | |
9764 | resultobj = SWIG_FromInt((int)result); | |
9765 | return resultobj; | |
9766 | fail: | |
9767 | return NULL; | |
9768 | } | |
9769 | ||
9770 | ||
9771 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9772 | PyObject *resultobj; | |
9773 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9774 | int arg2 ; | |
9775 | PyObject * obj0 = 0 ; | |
9776 | PyObject * obj1 = 0 ; | |
9777 | char *kwnames[] = { | |
9778 | (char *) "self",(char *) "threshold", NULL | |
9779 | }; | |
9780 | ||
9781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
9782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9784 | arg2 = (int) SWIG_AsInt(obj1); | |
9785 | if (PyErr_Occurred()) SWIG_fail; | |
9786 | { | |
9787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9788 | (arg1)->SetMovementThreshold(arg2); | |
9789 | ||
9790 | wxPyEndAllowThreads(__tstate); | |
9791 | if (PyErr_Occurred()) SWIG_fail; | |
9792 | } | |
9793 | Py_INCREF(Py_None); resultobj = Py_None; | |
9794 | return resultobj; | |
9795 | fail: | |
9796 | return NULL; | |
9797 | } | |
9798 | ||
9799 | ||
9800 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9801 | PyObject *resultobj; | |
9802 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9803 | bool result; | |
9804 | PyObject * obj0 = 0 ; | |
9805 | char *kwnames[] = { | |
9806 | (char *) "self", NULL | |
9807 | }; | |
9808 | ||
9809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9812 | { | |
9813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9814 | result = (bool)(arg1)->IsOk(); | |
9815 | ||
9816 | wxPyEndAllowThreads(__tstate); | |
9817 | if (PyErr_Occurred()) SWIG_fail; | |
9818 | } | |
9819 | { | |
9820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9821 | } | |
9822 | return resultobj; | |
9823 | fail: | |
9824 | return NULL; | |
9825 | } | |
9826 | ||
9827 | ||
9828 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9829 | PyObject *resultobj; | |
9830 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9831 | int result; | |
9832 | PyObject * obj0 = 0 ; | |
9833 | char *kwnames[] = { | |
9834 | (char *) "self", NULL | |
9835 | }; | |
9836 | ||
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9840 | { | |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9842 | result = (int)(arg1)->GetNumberJoysticks(); | |
9843 | ||
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
9847 | resultobj = SWIG_FromInt((int)result); | |
9848 | return resultobj; | |
9849 | fail: | |
9850 | return NULL; | |
9851 | } | |
9852 | ||
9853 | ||
9854 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9855 | PyObject *resultobj; | |
9856 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9857 | int result; | |
9858 | PyObject * obj0 = 0 ; | |
9859 | char *kwnames[] = { | |
9860 | (char *) "self", NULL | |
9861 | }; | |
9862 | ||
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9866 | { | |
9867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9868 | result = (int)(arg1)->GetManufacturerId(); | |
9869 | ||
9870 | wxPyEndAllowThreads(__tstate); | |
9871 | if (PyErr_Occurred()) SWIG_fail; | |
9872 | } | |
9873 | resultobj = SWIG_FromInt((int)result); | |
9874 | return resultobj; | |
9875 | fail: | |
9876 | return NULL; | |
9877 | } | |
9878 | ||
9879 | ||
9880 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9881 | PyObject *resultobj; | |
9882 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9883 | int result; | |
9884 | PyObject * obj0 = 0 ; | |
9885 | char *kwnames[] = { | |
9886 | (char *) "self", NULL | |
9887 | }; | |
9888 | ||
9889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9892 | { | |
9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9894 | result = (int)(arg1)->GetProductId(); | |
9895 | ||
9896 | wxPyEndAllowThreads(__tstate); | |
9897 | if (PyErr_Occurred()) SWIG_fail; | |
9898 | } | |
9899 | resultobj = SWIG_FromInt((int)result); | |
9900 | return resultobj; | |
9901 | fail: | |
9902 | return NULL; | |
9903 | } | |
9904 | ||
9905 | ||
9906 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9907 | PyObject *resultobj; | |
9908 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9909 | wxString result; | |
9910 | PyObject * obj0 = 0 ; | |
9911 | char *kwnames[] = { | |
9912 | (char *) "self", NULL | |
9913 | }; | |
9914 | ||
9915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9918 | { | |
9919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9920 | result = (arg1)->GetProductName(); | |
9921 | ||
9922 | wxPyEndAllowThreads(__tstate); | |
9923 | if (PyErr_Occurred()) SWIG_fail; | |
9924 | } | |
9925 | { | |
9926 | #if wxUSE_UNICODE | |
9927 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9928 | #else | |
9929 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9930 | #endif | |
9931 | } | |
9932 | return resultobj; | |
9933 | fail: | |
9934 | return NULL; | |
9935 | } | |
9936 | ||
9937 | ||
9938 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9939 | PyObject *resultobj; | |
9940 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9941 | int result; | |
9942 | PyObject * obj0 = 0 ; | |
9943 | char *kwnames[] = { | |
9944 | (char *) "self", NULL | |
9945 | }; | |
9946 | ||
9947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9950 | { | |
9951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9952 | result = (int)(arg1)->GetXMin(); | |
9953 | ||
9954 | wxPyEndAllowThreads(__tstate); | |
9955 | if (PyErr_Occurred()) SWIG_fail; | |
9956 | } | |
9957 | resultobj = SWIG_FromInt((int)result); | |
9958 | return resultobj; | |
9959 | fail: | |
9960 | return NULL; | |
9961 | } | |
9962 | ||
9963 | ||
9964 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9965 | PyObject *resultobj; | |
9966 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9967 | int result; | |
9968 | PyObject * obj0 = 0 ; | |
9969 | char *kwnames[] = { | |
9970 | (char *) "self", NULL | |
9971 | }; | |
9972 | ||
9973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9976 | { | |
9977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9978 | result = (int)(arg1)->GetYMin(); | |
9979 | ||
9980 | wxPyEndAllowThreads(__tstate); | |
9981 | if (PyErr_Occurred()) SWIG_fail; | |
9982 | } | |
9983 | resultobj = SWIG_FromInt((int)result); | |
9984 | return resultobj; | |
9985 | fail: | |
9986 | return NULL; | |
9987 | } | |
9988 | ||
9989 | ||
9990 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9991 | PyObject *resultobj; | |
9992 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9993 | int result; | |
9994 | PyObject * obj0 = 0 ; | |
9995 | char *kwnames[] = { | |
9996 | (char *) "self", NULL | |
9997 | }; | |
9998 | ||
9999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
10000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10002 | { | |
10003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10004 | result = (int)(arg1)->GetZMin(); | |
10005 | ||
10006 | wxPyEndAllowThreads(__tstate); | |
10007 | if (PyErr_Occurred()) SWIG_fail; | |
10008 | } | |
10009 | resultobj = SWIG_FromInt((int)result); | |
10010 | return resultobj; | |
10011 | fail: | |
10012 | return NULL; | |
10013 | } | |
10014 | ||
10015 | ||
10016 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10017 | PyObject *resultobj; | |
10018 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10019 | int result; | |
10020 | PyObject * obj0 = 0 ; | |
10021 | char *kwnames[] = { | |
10022 | (char *) "self", NULL | |
10023 | }; | |
10024 | ||
10025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
10026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10028 | { | |
10029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10030 | result = (int)(arg1)->GetXMax(); | |
10031 | ||
10032 | wxPyEndAllowThreads(__tstate); | |
10033 | if (PyErr_Occurred()) SWIG_fail; | |
10034 | } | |
10035 | resultobj = SWIG_FromInt((int)result); | |
10036 | return resultobj; | |
10037 | fail: | |
10038 | return NULL; | |
10039 | } | |
10040 | ||
10041 | ||
10042 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10043 | PyObject *resultobj; | |
10044 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10045 | int result; | |
10046 | PyObject * obj0 = 0 ; | |
10047 | char *kwnames[] = { | |
10048 | (char *) "self", NULL | |
10049 | }; | |
10050 | ||
10051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10054 | { | |
10055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10056 | result = (int)(arg1)->GetYMax(); | |
10057 | ||
10058 | wxPyEndAllowThreads(__tstate); | |
10059 | if (PyErr_Occurred()) SWIG_fail; | |
10060 | } | |
10061 | resultobj = SWIG_FromInt((int)result); | |
10062 | return resultobj; | |
10063 | fail: | |
10064 | return NULL; | |
10065 | } | |
10066 | ||
10067 | ||
10068 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10069 | PyObject *resultobj; | |
10070 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10071 | int result; | |
10072 | PyObject * obj0 = 0 ; | |
10073 | char *kwnames[] = { | |
10074 | (char *) "self", NULL | |
10075 | }; | |
10076 | ||
10077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10080 | { | |
10081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10082 | result = (int)(arg1)->GetZMax(); | |
10083 | ||
10084 | wxPyEndAllowThreads(__tstate); | |
10085 | if (PyErr_Occurred()) SWIG_fail; | |
10086 | } | |
10087 | resultobj = SWIG_FromInt((int)result); | |
10088 | return resultobj; | |
10089 | fail: | |
10090 | return NULL; | |
10091 | } | |
10092 | ||
10093 | ||
10094 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10095 | PyObject *resultobj; | |
10096 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10097 | int result; | |
10098 | PyObject * obj0 = 0 ; | |
10099 | char *kwnames[] = { | |
10100 | (char *) "self", NULL | |
10101 | }; | |
10102 | ||
10103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10106 | { | |
10107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10108 | result = (int)(arg1)->GetNumberButtons(); | |
10109 | ||
10110 | wxPyEndAllowThreads(__tstate); | |
10111 | if (PyErr_Occurred()) SWIG_fail; | |
10112 | } | |
10113 | resultobj = SWIG_FromInt((int)result); | |
10114 | return resultobj; | |
10115 | fail: | |
10116 | return NULL; | |
10117 | } | |
10118 | ||
10119 | ||
10120 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10121 | PyObject *resultobj; | |
10122 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10123 | int result; | |
10124 | PyObject * obj0 = 0 ; | |
10125 | char *kwnames[] = { | |
10126 | (char *) "self", NULL | |
10127 | }; | |
10128 | ||
10129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10132 | { | |
10133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10134 | result = (int)(arg1)->GetNumberAxes(); | |
10135 | ||
10136 | wxPyEndAllowThreads(__tstate); | |
10137 | if (PyErr_Occurred()) SWIG_fail; | |
10138 | } | |
10139 | resultobj = SWIG_FromInt((int)result); | |
10140 | return resultobj; | |
10141 | fail: | |
10142 | return NULL; | |
10143 | } | |
10144 | ||
10145 | ||
10146 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10147 | PyObject *resultobj; | |
10148 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10149 | int result; | |
10150 | PyObject * obj0 = 0 ; | |
10151 | char *kwnames[] = { | |
10152 | (char *) "self", NULL | |
10153 | }; | |
10154 | ||
10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
10156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10158 | { | |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | result = (int)(arg1)->GetMaxButtons(); | |
10161 | ||
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | resultobj = SWIG_FromInt((int)result); | |
10166 | return resultobj; | |
10167 | fail: | |
10168 | return NULL; | |
10169 | } | |
10170 | ||
10171 | ||
10172 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10173 | PyObject *resultobj; | |
10174 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10175 | int result; | |
10176 | PyObject * obj0 = 0 ; | |
10177 | char *kwnames[] = { | |
10178 | (char *) "self", NULL | |
10179 | }; | |
10180 | ||
10181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10184 | { | |
10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10186 | result = (int)(arg1)->GetMaxAxes(); | |
10187 | ||
10188 | wxPyEndAllowThreads(__tstate); | |
10189 | if (PyErr_Occurred()) SWIG_fail; | |
10190 | } | |
10191 | resultobj = SWIG_FromInt((int)result); | |
10192 | return resultobj; | |
10193 | fail: | |
10194 | return NULL; | |
10195 | } | |
10196 | ||
10197 | ||
10198 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10199 | PyObject *resultobj; | |
10200 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10201 | int result; | |
10202 | PyObject * obj0 = 0 ; | |
10203 | char *kwnames[] = { | |
10204 | (char *) "self", NULL | |
10205 | }; | |
10206 | ||
10207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10210 | { | |
10211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10212 | result = (int)(arg1)->GetPollingMin(); | |
10213 | ||
10214 | wxPyEndAllowThreads(__tstate); | |
10215 | if (PyErr_Occurred()) SWIG_fail; | |
10216 | } | |
10217 | resultobj = SWIG_FromInt((int)result); | |
10218 | return resultobj; | |
10219 | fail: | |
10220 | return NULL; | |
10221 | } | |
10222 | ||
10223 | ||
10224 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10225 | PyObject *resultobj; | |
10226 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10227 | int result; | |
10228 | PyObject * obj0 = 0 ; | |
10229 | char *kwnames[] = { | |
10230 | (char *) "self", NULL | |
10231 | }; | |
10232 | ||
10233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10236 | { | |
10237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10238 | result = (int)(arg1)->GetPollingMax(); | |
10239 | ||
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | resultobj = SWIG_FromInt((int)result); | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
10250 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj; | |
10252 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10253 | int result; | |
10254 | PyObject * obj0 = 0 ; | |
10255 | char *kwnames[] = { | |
10256 | (char *) "self", NULL | |
10257 | }; | |
10258 | ||
10259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10262 | { | |
10263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10264 | result = (int)(arg1)->GetRudderMin(); | |
10265 | ||
10266 | wxPyEndAllowThreads(__tstate); | |
10267 | if (PyErr_Occurred()) SWIG_fail; | |
10268 | } | |
10269 | resultobj = SWIG_FromInt((int)result); | |
10270 | return resultobj; | |
10271 | fail: | |
10272 | return NULL; | |
10273 | } | |
10274 | ||
10275 | ||
10276 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10277 | PyObject *resultobj; | |
10278 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10279 | int result; | |
10280 | PyObject * obj0 = 0 ; | |
10281 | char *kwnames[] = { | |
10282 | (char *) "self", NULL | |
10283 | }; | |
10284 | ||
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10288 | { | |
10289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10290 | result = (int)(arg1)->GetRudderMax(); | |
10291 | ||
10292 | wxPyEndAllowThreads(__tstate); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | resultobj = SWIG_FromInt((int)result); | |
10296 | return resultobj; | |
10297 | fail: | |
10298 | return NULL; | |
10299 | } | |
10300 | ||
10301 | ||
10302 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10303 | PyObject *resultobj; | |
10304 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10305 | int result; | |
10306 | PyObject * obj0 = 0 ; | |
10307 | char *kwnames[] = { | |
10308 | (char *) "self", NULL | |
10309 | }; | |
10310 | ||
10311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10314 | { | |
10315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10316 | result = (int)(arg1)->GetUMin(); | |
10317 | ||
10318 | wxPyEndAllowThreads(__tstate); | |
10319 | if (PyErr_Occurred()) SWIG_fail; | |
10320 | } | |
10321 | resultobj = SWIG_FromInt((int)result); | |
10322 | return resultobj; | |
10323 | fail: | |
10324 | return NULL; | |
10325 | } | |
10326 | ||
10327 | ||
10328 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10329 | PyObject *resultobj; | |
10330 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10331 | int result; | |
10332 | PyObject * obj0 = 0 ; | |
10333 | char *kwnames[] = { | |
10334 | (char *) "self", NULL | |
10335 | }; | |
10336 | ||
10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10340 | { | |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | result = (int)(arg1)->GetUMax(); | |
10343 | ||
10344 | wxPyEndAllowThreads(__tstate); | |
10345 | if (PyErr_Occurred()) SWIG_fail; | |
10346 | } | |
10347 | resultobj = SWIG_FromInt((int)result); | |
10348 | return resultobj; | |
10349 | fail: | |
10350 | return NULL; | |
10351 | } | |
10352 | ||
10353 | ||
10354 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10355 | PyObject *resultobj; | |
10356 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10357 | int result; | |
10358 | PyObject * obj0 = 0 ; | |
10359 | char *kwnames[] = { | |
10360 | (char *) "self", NULL | |
10361 | }; | |
10362 | ||
10363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10366 | { | |
10367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10368 | result = (int)(arg1)->GetVMin(); | |
10369 | ||
10370 | wxPyEndAllowThreads(__tstate); | |
10371 | if (PyErr_Occurred()) SWIG_fail; | |
10372 | } | |
10373 | resultobj = SWIG_FromInt((int)result); | |
10374 | return resultobj; | |
10375 | fail: | |
10376 | return NULL; | |
10377 | } | |
10378 | ||
10379 | ||
10380 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10381 | PyObject *resultobj; | |
10382 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10383 | int result; | |
10384 | PyObject * obj0 = 0 ; | |
10385 | char *kwnames[] = { | |
10386 | (char *) "self", NULL | |
10387 | }; | |
10388 | ||
10389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10392 | { | |
10393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10394 | result = (int)(arg1)->GetVMax(); | |
10395 | ||
10396 | wxPyEndAllowThreads(__tstate); | |
10397 | if (PyErr_Occurred()) SWIG_fail; | |
10398 | } | |
10399 | resultobj = SWIG_FromInt((int)result); | |
10400 | return resultobj; | |
10401 | fail: | |
10402 | return NULL; | |
10403 | } | |
10404 | ||
10405 | ||
10406 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10407 | PyObject *resultobj; | |
10408 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10409 | bool result; | |
10410 | PyObject * obj0 = 0 ; | |
10411 | char *kwnames[] = { | |
10412 | (char *) "self", NULL | |
10413 | }; | |
10414 | ||
10415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10418 | { | |
10419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10420 | result = (bool)(arg1)->HasRudder(); | |
10421 | ||
10422 | wxPyEndAllowThreads(__tstate); | |
10423 | if (PyErr_Occurred()) SWIG_fail; | |
10424 | } | |
10425 | { | |
10426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10427 | } | |
10428 | return resultobj; | |
10429 | fail: | |
10430 | return NULL; | |
10431 | } | |
10432 | ||
10433 | ||
10434 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10435 | PyObject *resultobj; | |
10436 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10437 | bool result; | |
10438 | PyObject * obj0 = 0 ; | |
10439 | char *kwnames[] = { | |
10440 | (char *) "self", NULL | |
10441 | }; | |
10442 | ||
10443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10446 | { | |
10447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10448 | result = (bool)(arg1)->HasZ(); | |
10449 | ||
10450 | wxPyEndAllowThreads(__tstate); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
10453 | { | |
10454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10455 | } | |
10456 | return resultobj; | |
10457 | fail: | |
10458 | return NULL; | |
10459 | } | |
10460 | ||
10461 | ||
10462 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10463 | PyObject *resultobj; | |
10464 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10465 | bool result; | |
10466 | PyObject * obj0 = 0 ; | |
10467 | char *kwnames[] = { | |
10468 | (char *) "self", NULL | |
10469 | }; | |
10470 | ||
10471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10474 | { | |
10475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10476 | result = (bool)(arg1)->HasU(); | |
10477 | ||
10478 | wxPyEndAllowThreads(__tstate); | |
10479 | if (PyErr_Occurred()) SWIG_fail; | |
10480 | } | |
10481 | { | |
10482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10483 | } | |
10484 | return resultobj; | |
10485 | fail: | |
10486 | return NULL; | |
10487 | } | |
10488 | ||
10489 | ||
10490 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10491 | PyObject *resultobj; | |
10492 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10493 | bool result; | |
10494 | PyObject * obj0 = 0 ; | |
10495 | char *kwnames[] = { | |
10496 | (char *) "self", NULL | |
10497 | }; | |
10498 | ||
10499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10502 | { | |
10503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10504 | result = (bool)(arg1)->HasV(); | |
10505 | ||
10506 | wxPyEndAllowThreads(__tstate); | |
10507 | if (PyErr_Occurred()) SWIG_fail; | |
10508 | } | |
10509 | { | |
10510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10511 | } | |
10512 | return resultobj; | |
10513 | fail: | |
10514 | return NULL; | |
10515 | } | |
10516 | ||
10517 | ||
10518 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10519 | PyObject *resultobj; | |
10520 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10521 | bool result; | |
10522 | PyObject * obj0 = 0 ; | |
10523 | char *kwnames[] = { | |
10524 | (char *) "self", NULL | |
10525 | }; | |
10526 | ||
10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
10528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10530 | { | |
10531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10532 | result = (bool)(arg1)->HasPOV(); | |
10533 | ||
10534 | wxPyEndAllowThreads(__tstate); | |
10535 | if (PyErr_Occurred()) SWIG_fail; | |
10536 | } | |
10537 | { | |
10538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10539 | } | |
10540 | return resultobj; | |
10541 | fail: | |
10542 | return NULL; | |
10543 | } | |
10544 | ||
10545 | ||
10546 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10547 | PyObject *resultobj; | |
10548 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10549 | bool result; | |
10550 | PyObject * obj0 = 0 ; | |
10551 | char *kwnames[] = { | |
10552 | (char *) "self", NULL | |
10553 | }; | |
10554 | ||
10555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
10556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10558 | { | |
10559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10560 | result = (bool)(arg1)->HasPOV4Dir(); | |
10561 | ||
10562 | wxPyEndAllowThreads(__tstate); | |
10563 | if (PyErr_Occurred()) SWIG_fail; | |
10564 | } | |
10565 | { | |
10566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10567 | } | |
10568 | return resultobj; | |
10569 | fail: | |
10570 | return NULL; | |
10571 | } | |
10572 | ||
10573 | ||
10574 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10575 | PyObject *resultobj; | |
10576 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10577 | bool result; | |
10578 | PyObject * obj0 = 0 ; | |
10579 | char *kwnames[] = { | |
10580 | (char *) "self", NULL | |
10581 | }; | |
10582 | ||
10583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
10584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10586 | { | |
10587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10588 | result = (bool)(arg1)->HasPOVCTS(); | |
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_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10603 | PyObject *resultobj; | |
10604 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10605 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10606 | int arg3 = (int) 0 ; | |
10607 | bool result; | |
10608 | PyObject * obj0 = 0 ; | |
10609 | PyObject * obj1 = 0 ; | |
10610 | PyObject * obj2 = 0 ; | |
10611 | char *kwnames[] = { | |
10612 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10613 | }; | |
10614 | ||
10615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10620 | if (obj2) { | |
10621 | arg3 = (int) SWIG_AsInt(obj2); | |
10622 | if (PyErr_Occurred()) SWIG_fail; | |
10623 | } | |
10624 | { | |
10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10626 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10627 | ||
10628 | wxPyEndAllowThreads(__tstate); | |
10629 | if (PyErr_Occurred()) SWIG_fail; | |
10630 | } | |
10631 | { | |
10632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10633 | } | |
10634 | return resultobj; | |
10635 | fail: | |
10636 | return NULL; | |
10637 | } | |
10638 | ||
10639 | ||
10640 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10641 | PyObject *resultobj; | |
10642 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10643 | bool result; | |
10644 | PyObject * obj0 = 0 ; | |
10645 | char *kwnames[] = { | |
10646 | (char *) "self", NULL | |
10647 | }; | |
10648 | ||
10649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
10650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10652 | { | |
10653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10654 | result = (bool)(arg1)->ReleaseCapture(); | |
10655 | ||
10656 | wxPyEndAllowThreads(__tstate); | |
10657 | if (PyErr_Occurred()) SWIG_fail; | |
10658 | } | |
10659 | { | |
10660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10661 | } | |
10662 | return resultobj; | |
10663 | fail: | |
10664 | return NULL; | |
10665 | } | |
10666 | ||
10667 | ||
10668 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10669 | PyObject *obj; | |
10670 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10671 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10672 | Py_INCREF(obj); | |
10673 | return Py_BuildValue((char *)""); | |
10674 | } | |
10675 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10676 | PyObject *resultobj; | |
10677 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10678 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10679 | PyObject * obj0 = 0 ; | |
10680 | PyObject * obj1 = 0 ; | |
10681 | char *kwnames[] = { | |
10682 | (char *) "self",(char *) "m_pos", NULL | |
10683 | }; | |
10684 | ||
10685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
10686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10688 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10690 | if (arg1) (arg1)->m_pos = *arg2; | |
10691 | ||
10692 | Py_INCREF(Py_None); resultobj = Py_None; | |
10693 | return resultobj; | |
10694 | fail: | |
10695 | return NULL; | |
10696 | } | |
10697 | ||
10698 | ||
10699 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10700 | PyObject *resultobj; | |
10701 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10702 | wxPoint *result; | |
10703 | PyObject * obj0 = 0 ; | |
10704 | char *kwnames[] = { | |
10705 | (char *) "self", NULL | |
10706 | }; | |
10707 | ||
10708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
10709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10711 | result = (wxPoint *)& ((arg1)->m_pos); | |
10712 | ||
10713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
10714 | return resultobj; | |
10715 | fail: | |
10716 | return NULL; | |
10717 | } | |
10718 | ||
10719 | ||
10720 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10721 | PyObject *resultobj; | |
10722 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10723 | int arg2 ; | |
10724 | PyObject * obj0 = 0 ; | |
10725 | PyObject * obj1 = 0 ; | |
10726 | char *kwnames[] = { | |
10727 | (char *) "self",(char *) "m_zPosition", NULL | |
10728 | }; | |
10729 | ||
10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
10731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10733 | arg2 = (int) SWIG_AsInt(obj1); | |
10734 | if (PyErr_Occurred()) SWIG_fail; | |
10735 | if (arg1) (arg1)->m_zPosition = arg2; | |
10736 | ||
10737 | Py_INCREF(Py_None); resultobj = Py_None; | |
10738 | return resultobj; | |
10739 | fail: | |
10740 | return NULL; | |
10741 | } | |
10742 | ||
10743 | ||
10744 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10745 | PyObject *resultobj; | |
10746 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10747 | int result; | |
10748 | PyObject * obj0 = 0 ; | |
10749 | char *kwnames[] = { | |
10750 | (char *) "self", NULL | |
10751 | }; | |
10752 | ||
10753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
10754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10756 | result = (int) ((arg1)->m_zPosition); | |
10757 | ||
10758 | resultobj = SWIG_FromInt((int)result); | |
10759 | return resultobj; | |
10760 | fail: | |
10761 | return NULL; | |
10762 | } | |
10763 | ||
10764 | ||
10765 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10766 | PyObject *resultobj; | |
10767 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10768 | int arg2 ; | |
10769 | PyObject * obj0 = 0 ; | |
10770 | PyObject * obj1 = 0 ; | |
10771 | char *kwnames[] = { | |
10772 | (char *) "self",(char *) "m_buttonChange", NULL | |
10773 | }; | |
10774 | ||
10775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
10776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10778 | arg2 = (int) SWIG_AsInt(obj1); | |
10779 | if (PyErr_Occurred()) SWIG_fail; | |
10780 | if (arg1) (arg1)->m_buttonChange = arg2; | |
10781 | ||
10782 | Py_INCREF(Py_None); resultobj = Py_None; | |
10783 | return resultobj; | |
10784 | fail: | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
10789 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10790 | PyObject *resultobj; | |
10791 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10792 | int result; | |
10793 | PyObject * obj0 = 0 ; | |
10794 | char *kwnames[] = { | |
10795 | (char *) "self", NULL | |
10796 | }; | |
10797 | ||
10798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
10799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10801 | result = (int) ((arg1)->m_buttonChange); | |
10802 | ||
10803 | resultobj = SWIG_FromInt((int)result); | |
10804 | return resultobj; | |
10805 | fail: | |
10806 | return NULL; | |
10807 | } | |
10808 | ||
10809 | ||
10810 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10811 | PyObject *resultobj; | |
10812 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10813 | int arg2 ; | |
10814 | PyObject * obj0 = 0 ; | |
10815 | PyObject * obj1 = 0 ; | |
10816 | char *kwnames[] = { | |
10817 | (char *) "self",(char *) "m_buttonState", NULL | |
10818 | }; | |
10819 | ||
10820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
10821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10823 | arg2 = (int) SWIG_AsInt(obj1); | |
10824 | if (PyErr_Occurred()) SWIG_fail; | |
10825 | if (arg1) (arg1)->m_buttonState = arg2; | |
10826 | ||
10827 | Py_INCREF(Py_None); resultobj = Py_None; | |
10828 | return resultobj; | |
10829 | fail: | |
10830 | return NULL; | |
10831 | } | |
10832 | ||
10833 | ||
10834 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10835 | PyObject *resultobj; | |
10836 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10837 | int result; | |
10838 | PyObject * obj0 = 0 ; | |
10839 | char *kwnames[] = { | |
10840 | (char *) "self", NULL | |
10841 | }; | |
10842 | ||
10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
10844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10846 | result = (int) ((arg1)->m_buttonState); | |
10847 | ||
10848 | resultobj = SWIG_FromInt((int)result); | |
10849 | return resultobj; | |
10850 | fail: | |
10851 | return NULL; | |
10852 | } | |
10853 | ||
10854 | ||
10855 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10856 | PyObject *resultobj; | |
10857 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10858 | int arg2 ; | |
10859 | PyObject * obj0 = 0 ; | |
10860 | PyObject * obj1 = 0 ; | |
10861 | char *kwnames[] = { | |
10862 | (char *) "self",(char *) "m_joyStick", NULL | |
10863 | }; | |
10864 | ||
10865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
10866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10868 | arg2 = (int) SWIG_AsInt(obj1); | |
10869 | if (PyErr_Occurred()) SWIG_fail; | |
10870 | if (arg1) (arg1)->m_joyStick = arg2; | |
10871 | ||
10872 | Py_INCREF(Py_None); resultobj = Py_None; | |
10873 | return resultobj; | |
10874 | fail: | |
10875 | return NULL; | |
10876 | } | |
10877 | ||
10878 | ||
10879 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10880 | PyObject *resultobj; | |
10881 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10882 | int result; | |
10883 | PyObject * obj0 = 0 ; | |
10884 | char *kwnames[] = { | |
10885 | (char *) "self", NULL | |
10886 | }; | |
10887 | ||
10888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
10889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10891 | result = (int) ((arg1)->m_joyStick); | |
10892 | ||
10893 | resultobj = SWIG_FromInt((int)result); | |
10894 | return resultobj; | |
10895 | fail: | |
10896 | return NULL; | |
10897 | } | |
10898 | ||
10899 | ||
10900 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10901 | PyObject *resultobj; | |
10902 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10903 | int arg2 = (int) 0 ; | |
10904 | int arg3 = (int) wxJOYSTICK1 ; | |
10905 | int arg4 = (int) 0 ; | |
10906 | wxJoystickEvent *result; | |
10907 | PyObject * obj0 = 0 ; | |
10908 | PyObject * obj1 = 0 ; | |
10909 | PyObject * obj2 = 0 ; | |
10910 | PyObject * obj3 = 0 ; | |
10911 | char *kwnames[] = { | |
10912 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10913 | }; | |
10914 | ||
10915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10916 | if (obj0) { | |
10917 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
10918 | if (PyErr_Occurred()) SWIG_fail; | |
10919 | } | |
10920 | if (obj1) { | |
10921 | arg2 = (int) SWIG_AsInt(obj1); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | if (obj2) { | |
10925 | arg3 = (int) SWIG_AsInt(obj2); | |
10926 | if (PyErr_Occurred()) SWIG_fail; | |
10927 | } | |
10928 | if (obj3) { | |
10929 | arg4 = (int) SWIG_AsInt(obj3); | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | } | |
10932 | { | |
10933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10934 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10935 | ||
10936 | wxPyEndAllowThreads(__tstate); | |
10937 | if (PyErr_Occurred()) SWIG_fail; | |
10938 | } | |
10939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
10940 | return resultobj; | |
10941 | fail: | |
10942 | return NULL; | |
10943 | } | |
10944 | ||
10945 | ||
10946 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10947 | PyObject *resultobj; | |
10948 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10949 | wxPoint result; | |
10950 | PyObject * obj0 = 0 ; | |
10951 | char *kwnames[] = { | |
10952 | (char *) "self", NULL | |
10953 | }; | |
10954 | ||
10955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10958 | { | |
10959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10960 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10961 | ||
10962 | wxPyEndAllowThreads(__tstate); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
10964 | } | |
10965 | { | |
10966 | wxPoint * resultptr; | |
10967 | resultptr = new wxPoint((wxPoint &) result); | |
10968 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10969 | } | |
10970 | return resultobj; | |
10971 | fail: | |
10972 | return NULL; | |
10973 | } | |
10974 | ||
10975 | ||
10976 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10977 | PyObject *resultobj; | |
10978 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10979 | int result; | |
10980 | PyObject * obj0 = 0 ; | |
10981 | char *kwnames[] = { | |
10982 | (char *) "self", NULL | |
10983 | }; | |
10984 | ||
10985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
10986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10988 | { | |
10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10990 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10991 | ||
10992 | wxPyEndAllowThreads(__tstate); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
10995 | resultobj = SWIG_FromInt((int)result); | |
10996 | return resultobj; | |
10997 | fail: | |
10998 | return NULL; | |
10999 | } | |
11000 | ||
11001 | ||
11002 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11003 | PyObject *resultobj; | |
11004 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11005 | int result; | |
11006 | PyObject * obj0 = 0 ; | |
11007 | char *kwnames[] = { | |
11008 | (char *) "self", NULL | |
11009 | }; | |
11010 | ||
11011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
11012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11014 | { | |
11015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11016 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11017 | ||
11018 | wxPyEndAllowThreads(__tstate); | |
11019 | if (PyErr_Occurred()) SWIG_fail; | |
11020 | } | |
11021 | resultobj = SWIG_FromInt((int)result); | |
11022 | return resultobj; | |
11023 | fail: | |
11024 | return NULL; | |
11025 | } | |
11026 | ||
11027 | ||
11028 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11029 | PyObject *resultobj; | |
11030 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11031 | int result; | |
11032 | PyObject * obj0 = 0 ; | |
11033 | char *kwnames[] = { | |
11034 | (char *) "self", NULL | |
11035 | }; | |
11036 | ||
11037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11040 | { | |
11041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11042 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11043 | ||
11044 | wxPyEndAllowThreads(__tstate); | |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
11046 | } | |
11047 | resultobj = SWIG_FromInt((int)result); | |
11048 | return resultobj; | |
11049 | fail: | |
11050 | return NULL; | |
11051 | } | |
11052 | ||
11053 | ||
11054 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject *resultobj; | |
11056 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11057 | int result; | |
11058 | PyObject * obj0 = 0 ; | |
11059 | char *kwnames[] = { | |
11060 | (char *) "self", NULL | |
11061 | }; | |
11062 | ||
11063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11066 | { | |
11067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11068 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11069 | ||
11070 | wxPyEndAllowThreads(__tstate); | |
11071 | if (PyErr_Occurred()) SWIG_fail; | |
11072 | } | |
11073 | resultobj = SWIG_FromInt((int)result); | |
11074 | return resultobj; | |
11075 | fail: | |
11076 | return NULL; | |
11077 | } | |
11078 | ||
11079 | ||
11080 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11081 | PyObject *resultobj; | |
11082 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11083 | int arg2 ; | |
11084 | PyObject * obj0 = 0 ; | |
11085 | PyObject * obj1 = 0 ; | |
11086 | char *kwnames[] = { | |
11087 | (char *) "self",(char *) "stick", NULL | |
11088 | }; | |
11089 | ||
11090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11093 | arg2 = (int) SWIG_AsInt(obj1); | |
11094 | if (PyErr_Occurred()) SWIG_fail; | |
11095 | { | |
11096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11097 | (arg1)->SetJoystick(arg2); | |
11098 | ||
11099 | wxPyEndAllowThreads(__tstate); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | } | |
11102 | Py_INCREF(Py_None); resultobj = Py_None; | |
11103 | return resultobj; | |
11104 | fail: | |
11105 | return NULL; | |
11106 | } | |
11107 | ||
11108 | ||
11109 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11110 | PyObject *resultobj; | |
11111 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11112 | int arg2 ; | |
11113 | PyObject * obj0 = 0 ; | |
11114 | PyObject * obj1 = 0 ; | |
11115 | char *kwnames[] = { | |
11116 | (char *) "self",(char *) "state", NULL | |
11117 | }; | |
11118 | ||
11119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11122 | arg2 = (int) SWIG_AsInt(obj1); | |
11123 | if (PyErr_Occurred()) SWIG_fail; | |
11124 | { | |
11125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11126 | (arg1)->SetButtonState(arg2); | |
11127 | ||
11128 | wxPyEndAllowThreads(__tstate); | |
11129 | if (PyErr_Occurred()) SWIG_fail; | |
11130 | } | |
11131 | Py_INCREF(Py_None); resultobj = Py_None; | |
11132 | return resultobj; | |
11133 | fail: | |
11134 | return NULL; | |
11135 | } | |
11136 | ||
11137 | ||
11138 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11139 | PyObject *resultobj; | |
11140 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11141 | int arg2 ; | |
11142 | PyObject * obj0 = 0 ; | |
11143 | PyObject * obj1 = 0 ; | |
11144 | char *kwnames[] = { | |
11145 | (char *) "self",(char *) "change", NULL | |
11146 | }; | |
11147 | ||
11148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11151 | arg2 = (int) SWIG_AsInt(obj1); | |
11152 | if (PyErr_Occurred()) SWIG_fail; | |
11153 | { | |
11154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11155 | (arg1)->SetButtonChange(arg2); | |
11156 | ||
11157 | wxPyEndAllowThreads(__tstate); | |
11158 | if (PyErr_Occurred()) SWIG_fail; | |
11159 | } | |
11160 | Py_INCREF(Py_None); resultobj = Py_None; | |
11161 | return resultobj; | |
11162 | fail: | |
11163 | return NULL; | |
11164 | } | |
11165 | ||
11166 | ||
11167 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11168 | PyObject *resultobj; | |
11169 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11170 | wxPoint *arg2 = 0 ; | |
11171 | wxPoint temp2 ; | |
11172 | PyObject * obj0 = 0 ; | |
11173 | PyObject * obj1 = 0 ; | |
11174 | char *kwnames[] = { | |
11175 | (char *) "self",(char *) "pos", NULL | |
11176 | }; | |
11177 | ||
11178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11181 | { | |
11182 | arg2 = &temp2; | |
11183 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11184 | } | |
11185 | { | |
11186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11187 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11188 | ||
11189 | wxPyEndAllowThreads(__tstate); | |
11190 | if (PyErr_Occurred()) SWIG_fail; | |
11191 | } | |
11192 | Py_INCREF(Py_None); resultobj = Py_None; | |
11193 | return resultobj; | |
11194 | fail: | |
11195 | return NULL; | |
11196 | } | |
11197 | ||
11198 | ||
11199 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11200 | PyObject *resultobj; | |
11201 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11202 | int arg2 ; | |
11203 | PyObject * obj0 = 0 ; | |
11204 | PyObject * obj1 = 0 ; | |
11205 | char *kwnames[] = { | |
11206 | (char *) "self",(char *) "zPos", NULL | |
11207 | }; | |
11208 | ||
11209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11212 | arg2 = (int) SWIG_AsInt(obj1); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
11214 | { | |
11215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11216 | (arg1)->SetZPosition(arg2); | |
11217 | ||
11218 | wxPyEndAllowThreads(__tstate); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | } | |
11221 | Py_INCREF(Py_None); resultobj = Py_None; | |
11222 | return resultobj; | |
11223 | fail: | |
11224 | return NULL; | |
11225 | } | |
11226 | ||
11227 | ||
11228 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11229 | PyObject *resultobj; | |
11230 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11231 | bool result; | |
11232 | PyObject * obj0 = 0 ; | |
11233 | char *kwnames[] = { | |
11234 | (char *) "self", NULL | |
11235 | }; | |
11236 | ||
11237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11240 | { | |
11241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11242 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11243 | ||
11244 | wxPyEndAllowThreads(__tstate); | |
11245 | if (PyErr_Occurred()) SWIG_fail; | |
11246 | } | |
11247 | { | |
11248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11249 | } | |
11250 | return resultobj; | |
11251 | fail: | |
11252 | return NULL; | |
11253 | } | |
11254 | ||
11255 | ||
11256 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11257 | PyObject *resultobj; | |
11258 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11259 | bool result; | |
11260 | PyObject * obj0 = 0 ; | |
11261 | char *kwnames[] = { | |
11262 | (char *) "self", NULL | |
11263 | }; | |
11264 | ||
11265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11268 | { | |
11269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11270 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11271 | ||
11272 | wxPyEndAllowThreads(__tstate); | |
11273 | if (PyErr_Occurred()) SWIG_fail; | |
11274 | } | |
11275 | { | |
11276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11277 | } | |
11278 | return resultobj; | |
11279 | fail: | |
11280 | return NULL; | |
11281 | } | |
11282 | ||
11283 | ||
11284 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11285 | PyObject *resultobj; | |
11286 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11287 | bool result; | |
11288 | PyObject * obj0 = 0 ; | |
11289 | char *kwnames[] = { | |
11290 | (char *) "self", NULL | |
11291 | }; | |
11292 | ||
11293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11296 | { | |
11297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11298 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11299 | ||
11300 | wxPyEndAllowThreads(__tstate); | |
11301 | if (PyErr_Occurred()) SWIG_fail; | |
11302 | } | |
11303 | { | |
11304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11305 | } | |
11306 | return resultobj; | |
11307 | fail: | |
11308 | return NULL; | |
11309 | } | |
11310 | ||
11311 | ||
11312 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11313 | PyObject *resultobj; | |
11314 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11315 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11316 | bool result; | |
11317 | PyObject * obj0 = 0 ; | |
11318 | PyObject * obj1 = 0 ; | |
11319 | char *kwnames[] = { | |
11320 | (char *) "self",(char *) "but", NULL | |
11321 | }; | |
11322 | ||
11323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11326 | if (obj1) { | |
11327 | arg2 = (int) SWIG_AsInt(obj1); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | } | |
11330 | { | |
11331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11332 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11333 | ||
11334 | wxPyEndAllowThreads(__tstate); | |
11335 | if (PyErr_Occurred()) SWIG_fail; | |
11336 | } | |
11337 | { | |
11338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11339 | } | |
11340 | return resultobj; | |
11341 | fail: | |
11342 | return NULL; | |
11343 | } | |
11344 | ||
11345 | ||
11346 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11347 | PyObject *resultobj; | |
11348 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11349 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11350 | bool result; | |
11351 | PyObject * obj0 = 0 ; | |
11352 | PyObject * obj1 = 0 ; | |
11353 | char *kwnames[] = { | |
11354 | (char *) "self",(char *) "but", NULL | |
11355 | }; | |
11356 | ||
11357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11360 | if (obj1) { | |
11361 | arg2 = (int) SWIG_AsInt(obj1); | |
11362 | if (PyErr_Occurred()) SWIG_fail; | |
11363 | } | |
11364 | { | |
11365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11366 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11367 | ||
11368 | wxPyEndAllowThreads(__tstate); | |
11369 | if (PyErr_Occurred()) SWIG_fail; | |
11370 | } | |
11371 | { | |
11372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11373 | } | |
11374 | return resultobj; | |
11375 | fail: | |
11376 | return NULL; | |
11377 | } | |
11378 | ||
11379 | ||
11380 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11381 | PyObject *resultobj; | |
11382 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11383 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11384 | bool result; | |
11385 | PyObject * obj0 = 0 ; | |
11386 | PyObject * obj1 = 0 ; | |
11387 | char *kwnames[] = { | |
11388 | (char *) "self",(char *) "but", NULL | |
11389 | }; | |
11390 | ||
11391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11394 | if (obj1) { | |
11395 | arg2 = (int) SWIG_AsInt(obj1); | |
11396 | if (PyErr_Occurred()) SWIG_fail; | |
11397 | } | |
11398 | { | |
11399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11400 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11401 | ||
11402 | wxPyEndAllowThreads(__tstate); | |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
11404 | } | |
11405 | { | |
11406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11407 | } | |
11408 | return resultobj; | |
11409 | fail: | |
11410 | return NULL; | |
11411 | } | |
11412 | ||
11413 | ||
11414 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11415 | PyObject *obj; | |
11416 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11417 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11418 | Py_INCREF(obj); | |
11419 | return Py_BuildValue((char *)""); | |
11420 | } | |
b1f29bf7 | 11421 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11422 | PyObject *resultobj; |
b1f29bf7 RD |
11423 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11424 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc RD |
11425 | wxSound *result; |
11426 | bool temp1 = False ; | |
11427 | PyObject * obj0 = 0 ; | |
b1f29bf7 RD |
11428 | char *kwnames[] = { |
11429 | (char *) "fileName", NULL | |
11430 | }; | |
d55e5bfc | 11431 | |
b1f29bf7 RD |
11432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11433 | if (obj0) { | |
11434 | { | |
11435 | arg1 = wxString_in_helper(obj0); | |
11436 | if (arg1 == NULL) SWIG_fail; | |
11437 | temp1 = True; | |
11438 | } | |
d55e5bfc RD |
11439 | } |
11440 | { | |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 11442 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
11443 | |
11444 | wxPyEndAllowThreads(__tstate); | |
11445 | if (PyErr_Occurred()) SWIG_fail; | |
11446 | } | |
11447 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11448 | { | |
11449 | if (temp1) | |
11450 | delete arg1; | |
11451 | } | |
11452 | return resultobj; | |
11453 | fail: | |
11454 | { | |
11455 | if (temp1) | |
11456 | delete arg1; | |
11457 | } | |
11458 | return NULL; | |
11459 | } | |
11460 | ||
11461 | ||
b1f29bf7 | 11462 | static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11463 | PyObject *resultobj; |
b1f29bf7 | 11464 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
11465 | wxSound *result; |
11466 | PyObject * obj0 = 0 ; | |
b1f29bf7 RD |
11467 | char *kwnames[] = { |
11468 | (char *) "data", NULL | |
11469 | }; | |
d55e5bfc | 11470 | |
b1f29bf7 RD |
11471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11472 | arg1 = obj0; | |
d55e5bfc RD |
11473 | { |
11474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 11475 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
11476 | |
11477 | wxPyEndAllowThreads(__tstate); | |
11478 | if (PyErr_Occurred()) SWIG_fail; | |
11479 | } | |
11480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11481 | return resultobj; | |
11482 | fail: | |
11483 | return NULL; | |
11484 | } | |
11485 | ||
11486 | ||
d55e5bfc RD |
11487 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
11488 | PyObject *resultobj; | |
11489 | wxSound *arg1 = (wxSound *) 0 ; | |
11490 | PyObject * obj0 = 0 ; | |
11491 | char *kwnames[] = { | |
11492 | (char *) "self", NULL | |
11493 | }; | |
11494 | ||
11495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
11496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11498 | { | |
11499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11500 | delete arg1; | |
11501 | ||
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | Py_INCREF(Py_None); resultobj = Py_None; | |
11506 | return resultobj; | |
11507 | fail: | |
11508 | return NULL; | |
11509 | } | |
11510 | ||
11511 | ||
b1f29bf7 | 11512 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11513 | PyObject *resultobj; |
11514 | wxSound *arg1 = (wxSound *) 0 ; | |
11515 | wxString *arg2 = 0 ; | |
d55e5bfc RD |
11516 | bool result; |
11517 | bool temp2 = False ; | |
11518 | PyObject * obj0 = 0 ; | |
11519 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
11520 | char *kwnames[] = { |
11521 | (char *) "self",(char *) "fileName", NULL | |
11522 | }; | |
d55e5bfc | 11523 | |
b1f29bf7 | 11524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11527 | { | |
11528 | arg2 = wxString_in_helper(obj1); | |
11529 | if (arg2 == NULL) SWIG_fail; | |
11530 | temp2 = True; | |
11531 | } | |
d55e5bfc RD |
11532 | { |
11533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 11534 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
11535 | |
11536 | wxPyEndAllowThreads(__tstate); | |
11537 | if (PyErr_Occurred()) SWIG_fail; | |
11538 | } | |
11539 | { | |
11540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11541 | } | |
11542 | { | |
11543 | if (temp2) | |
11544 | delete arg2; | |
11545 | } | |
11546 | return resultobj; | |
11547 | fail: | |
11548 | { | |
11549 | if (temp2) | |
11550 | delete arg2; | |
11551 | } | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
b1f29bf7 | 11556 | static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11557 | PyObject *resultobj; |
11558 | wxSound *arg1 = (wxSound *) 0 ; | |
b1f29bf7 | 11559 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
11560 | bool result; |
11561 | PyObject * obj0 = 0 ; | |
11562 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
11563 | char *kwnames[] = { |
11564 | (char *) "self",(char *) "data", NULL | |
11565 | }; | |
d55e5bfc | 11566 | |
b1f29bf7 | 11567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b1f29bf7 | 11570 | arg2 = obj1; |
d55e5bfc RD |
11571 | { |
11572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 11573 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
11574 | |
11575 | wxPyEndAllowThreads(__tstate); | |
11576 | if (PyErr_Occurred()) SWIG_fail; | |
11577 | } | |
11578 | { | |
11579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11580 | } | |
11581 | return resultobj; | |
11582 | fail: | |
11583 | return NULL; | |
11584 | } | |
11585 | ||
11586 | ||
d55e5bfc RD |
11587 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
11588 | PyObject *resultobj; | |
11589 | wxSound *arg1 = (wxSound *) 0 ; | |
11590 | bool result; | |
11591 | PyObject * obj0 = 0 ; | |
11592 | char *kwnames[] = { | |
11593 | (char *) "self", NULL | |
11594 | }; | |
11595 | ||
11596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
11597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11599 | { | |
11600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11601 | result = (bool)(arg1)->IsOk(); | |
11602 | ||
11603 | wxPyEndAllowThreads(__tstate); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | { | |
11607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11608 | } | |
11609 | return resultobj; | |
11610 | fail: | |
11611 | return NULL; | |
11612 | } | |
11613 | ||
11614 | ||
b1f29bf7 | 11615 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11616 | PyObject *resultobj; |
11617 | wxSound *arg1 = (wxSound *) 0 ; | |
11618 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11619 | bool result; | |
11620 | PyObject * obj0 = 0 ; | |
11621 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
11622 | char *kwnames[] = { |
11623 | (char *) "self",(char *) "flags", NULL | |
11624 | }; | |
d55e5bfc | 11625 | |
b1f29bf7 | 11626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11629 | if (obj1) { | |
11630 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
11632 | } | |
11633 | { | |
11634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11635 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11636 | ||
11637 | wxPyEndAllowThreads(__tstate); | |
11638 | if (PyErr_Occurred()) SWIG_fail; | |
11639 | } | |
11640 | { | |
11641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11642 | } | |
11643 | return resultobj; | |
11644 | fail: | |
11645 | return NULL; | |
11646 | } | |
11647 | ||
11648 | ||
b1f29bf7 | 11649 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11650 | PyObject *resultobj; |
11651 | wxString *arg1 = 0 ; | |
11652 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11653 | bool result; | |
11654 | bool temp1 = False ; | |
11655 | PyObject * obj0 = 0 ; | |
11656 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
11657 | char *kwnames[] = { |
11658 | (char *) "filename",(char *) "flags", NULL | |
11659 | }; | |
d55e5bfc | 11660 | |
b1f29bf7 | 11661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11662 | { |
11663 | arg1 = wxString_in_helper(obj0); | |
11664 | if (arg1 == NULL) SWIG_fail; | |
11665 | temp1 = True; | |
11666 | } | |
11667 | if (obj1) { | |
11668 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11669 | if (PyErr_Occurred()) SWIG_fail; | |
11670 | } | |
11671 | { | |
11672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11673 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
11674 | ||
11675 | wxPyEndAllowThreads(__tstate); | |
11676 | if (PyErr_Occurred()) SWIG_fail; | |
11677 | } | |
11678 | { | |
11679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11680 | } | |
11681 | { | |
11682 | if (temp1) | |
11683 | delete arg1; | |
11684 | } | |
11685 | return resultobj; | |
11686 | fail: | |
11687 | { | |
11688 | if (temp1) | |
11689 | delete arg1; | |
11690 | } | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
11695 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11696 | PyObject *resultobj; | |
11697 | char *kwnames[] = { | |
11698 | NULL | |
11699 | }; | |
11700 | ||
11701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11702 | { | |
11703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11704 | wxSound::Stop(); | |
11705 | ||
11706 | wxPyEndAllowThreads(__tstate); | |
11707 | if (PyErr_Occurred()) SWIG_fail; | |
11708 | } | |
11709 | Py_INCREF(Py_None); resultobj = Py_None; | |
11710 | return resultobj; | |
11711 | fail: | |
11712 | return NULL; | |
11713 | } | |
11714 | ||
11715 | ||
11716 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
11717 | PyObject *obj; | |
11718 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11719 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
11720 | Py_INCREF(obj); | |
11721 | return Py_BuildValue((char *)""); | |
11722 | } | |
11723 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11724 | PyObject *resultobj; | |
11725 | wxString *arg1 = 0 ; | |
11726 | wxString *arg2 = 0 ; | |
11727 | wxString *arg3 = 0 ; | |
11728 | wxString *arg4 = 0 ; | |
11729 | wxFileTypeInfo *result; | |
11730 | bool temp1 = False ; | |
11731 | bool temp2 = False ; | |
11732 | bool temp3 = False ; | |
11733 | bool temp4 = False ; | |
11734 | PyObject * obj0 = 0 ; | |
11735 | PyObject * obj1 = 0 ; | |
11736 | PyObject * obj2 = 0 ; | |
11737 | PyObject * obj3 = 0 ; | |
11738 | char *kwnames[] = { | |
11739 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11740 | }; | |
11741 | ||
11742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11743 | { | |
11744 | arg1 = wxString_in_helper(obj0); | |
11745 | if (arg1 == NULL) SWIG_fail; | |
11746 | temp1 = True; | |
11747 | } | |
11748 | { | |
11749 | arg2 = wxString_in_helper(obj1); | |
11750 | if (arg2 == NULL) SWIG_fail; | |
11751 | temp2 = True; | |
11752 | } | |
11753 | { | |
11754 | arg3 = wxString_in_helper(obj2); | |
11755 | if (arg3 == NULL) SWIG_fail; | |
11756 | temp3 = True; | |
11757 | } | |
11758 | { | |
11759 | arg4 = wxString_in_helper(obj3); | |
11760 | if (arg4 == NULL) SWIG_fail; | |
11761 | temp4 = True; | |
11762 | } | |
11763 | { | |
11764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11765 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11766 | ||
11767 | wxPyEndAllowThreads(__tstate); | |
11768 | if (PyErr_Occurred()) SWIG_fail; | |
11769 | } | |
11770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11771 | { | |
11772 | if (temp1) | |
11773 | delete arg1; | |
11774 | } | |
11775 | { | |
11776 | if (temp2) | |
11777 | delete arg2; | |
11778 | } | |
11779 | { | |
11780 | if (temp3) | |
11781 | delete arg3; | |
11782 | } | |
11783 | { | |
11784 | if (temp4) | |
11785 | delete arg4; | |
11786 | } | |
11787 | return resultobj; | |
11788 | fail: | |
11789 | { | |
11790 | if (temp1) | |
11791 | delete arg1; | |
11792 | } | |
11793 | { | |
11794 | if (temp2) | |
11795 | delete arg2; | |
11796 | } | |
11797 | { | |
11798 | if (temp3) | |
11799 | delete arg3; | |
11800 | } | |
11801 | { | |
11802 | if (temp4) | |
11803 | delete arg4; | |
11804 | } | |
11805 | return NULL; | |
11806 | } | |
11807 | ||
11808 | ||
11809 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11810 | PyObject *resultobj; | |
11811 | wxArrayString *arg1 = 0 ; | |
11812 | wxFileTypeInfo *result; | |
11813 | bool temp1 = False ; | |
11814 | PyObject * obj0 = 0 ; | |
11815 | char *kwnames[] = { | |
11816 | (char *) "sArray", NULL | |
11817 | }; | |
11818 | ||
11819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11820 | { | |
11821 | if (! PySequence_Check(obj0)) { | |
11822 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11823 | SWIG_fail; | |
11824 | } | |
11825 | arg1 = new wxArrayString; | |
11826 | temp1 = True; | |
11827 | int i, len=PySequence_Length(obj0); | |
11828 | for (i=0; i<len; i++) { | |
11829 | PyObject* item = PySequence_GetItem(obj0, i); | |
11830 | #if wxUSE_UNICODE | |
11831 | PyObject* str = PyObject_Unicode(item); | |
11832 | #else | |
11833 | PyObject* str = PyObject_Str(item); | |
11834 | #endif | |
11835 | if (PyErr_Occurred()) SWIG_fail; | |
11836 | arg1->Add(Py2wxString(str)); | |
11837 | Py_DECREF(item); | |
11838 | Py_DECREF(str); | |
11839 | } | |
11840 | } | |
11841 | { | |
11842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11843 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11844 | ||
11845 | wxPyEndAllowThreads(__tstate); | |
11846 | if (PyErr_Occurred()) SWIG_fail; | |
11847 | } | |
11848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11849 | { | |
11850 | if (temp1) delete arg1; | |
11851 | } | |
11852 | return resultobj; | |
11853 | fail: | |
11854 | { | |
11855 | if (temp1) delete arg1; | |
11856 | } | |
11857 | return NULL; | |
11858 | } | |
11859 | ||
11860 | ||
11861 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11862 | PyObject *resultobj; | |
11863 | wxFileTypeInfo *result; | |
11864 | char *kwnames[] = { | |
11865 | NULL | |
11866 | }; | |
11867 | ||
11868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11869 | { | |
11870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11871 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11872 | ||
11873 | wxPyEndAllowThreads(__tstate); | |
11874 | if (PyErr_Occurred()) SWIG_fail; | |
11875 | } | |
11876 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11877 | return resultobj; | |
11878 | fail: | |
11879 | return NULL; | |
11880 | } | |
11881 | ||
11882 | ||
11883 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11884 | PyObject *resultobj; | |
11885 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11886 | bool result; | |
11887 | PyObject * obj0 = 0 ; | |
11888 | char *kwnames[] = { | |
11889 | (char *) "self", NULL | |
11890 | }; | |
11891 | ||
11892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
11893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
11894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11895 | { | |
11896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11897 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
11898 | ||
11899 | wxPyEndAllowThreads(__tstate); | |
11900 | if (PyErr_Occurred()) SWIG_fail; | |
11901 | } | |
11902 | { | |
11903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11904 | } | |
11905 | return resultobj; | |
11906 | fail: | |
11907 | return NULL; | |
11908 | } | |
11909 | ||
11910 | ||
11911 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11912 | PyObject *resultobj; | |
11913 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11914 | wxString *arg2 = 0 ; | |
11915 | int arg3 = (int) 0 ; | |
11916 | bool temp2 = False ; | |
11917 | PyObject * obj0 = 0 ; | |
11918 | PyObject * obj1 = 0 ; | |
11919 | PyObject * obj2 = 0 ; | |
11920 | char *kwnames[] = { | |
11921 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
11922 | }; | |
11923 | ||
11924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
11926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11927 | { | |
11928 | arg2 = wxString_in_helper(obj1); | |
11929 | if (arg2 == NULL) SWIG_fail; | |
11930 | temp2 = True; | |
11931 | } | |
11932 | if (obj2) { | |
11933 | arg3 = (int) SWIG_AsInt(obj2); | |
11934 | if (PyErr_Occurred()) SWIG_fail; | |
11935 | } | |
11936 | { | |
11937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11938 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
11939 | ||
11940 | wxPyEndAllowThreads(__tstate); | |
11941 | if (PyErr_Occurred()) SWIG_fail; | |
11942 | } | |
11943 | Py_INCREF(Py_None); resultobj = Py_None; | |
11944 | { | |
11945 | if (temp2) | |
11946 | delete arg2; | |
11947 | } | |
11948 | return resultobj; | |
11949 | fail: | |
11950 | { | |
11951 | if (temp2) | |
11952 | delete arg2; | |
11953 | } | |
11954 | return NULL; | |
11955 | } | |
11956 | ||
11957 | ||
11958 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11959 | PyObject *resultobj; | |
11960 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11961 | wxString *arg2 = 0 ; | |
11962 | bool temp2 = False ; | |
11963 | PyObject * obj0 = 0 ; | |
11964 | PyObject * obj1 = 0 ; | |
11965 | char *kwnames[] = { | |
11966 | (char *) "self",(char *) "shortDesc", NULL | |
11967 | }; | |
11968 | ||
11969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
11970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
11971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11972 | { | |
11973 | arg2 = wxString_in_helper(obj1); | |
11974 | if (arg2 == NULL) SWIG_fail; | |
11975 | temp2 = True; | |
11976 | } | |
11977 | { | |
11978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11979 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
11980 | ||
11981 | wxPyEndAllowThreads(__tstate); | |
11982 | if (PyErr_Occurred()) SWIG_fail; | |
11983 | } | |
11984 | Py_INCREF(Py_None); resultobj = Py_None; | |
11985 | { | |
11986 | if (temp2) | |
11987 | delete arg2; | |
11988 | } | |
11989 | return resultobj; | |
11990 | fail: | |
11991 | { | |
11992 | if (temp2) | |
11993 | delete arg2; | |
11994 | } | |
11995 | return NULL; | |
11996 | } | |
11997 | ||
11998 | ||
11999 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12000 | PyObject *resultobj; | |
12001 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12002 | wxString *result; | |
12003 | PyObject * obj0 = 0 ; | |
12004 | char *kwnames[] = { | |
12005 | (char *) "self", NULL | |
12006 | }; | |
12007 | ||
12008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12011 | { | |
12012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12013 | { | |
12014 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12015 | result = (wxString *) &_result_ref; | |
12016 | } | |
12017 | ||
12018 | wxPyEndAllowThreads(__tstate); | |
12019 | if (PyErr_Occurred()) SWIG_fail; | |
12020 | } | |
12021 | { | |
12022 | #if wxUSE_UNICODE | |
12023 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12024 | #else | |
12025 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12026 | #endif | |
12027 | } | |
12028 | return resultobj; | |
12029 | fail: | |
12030 | return NULL; | |
12031 | } | |
12032 | ||
12033 | ||
12034 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12035 | PyObject *resultobj; | |
12036 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12037 | wxString *result; | |
12038 | PyObject * obj0 = 0 ; | |
12039 | char *kwnames[] = { | |
12040 | (char *) "self", NULL | |
12041 | }; | |
12042 | ||
12043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12046 | { | |
12047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12048 | { | |
12049 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12050 | result = (wxString *) &_result_ref; | |
12051 | } | |
12052 | ||
12053 | wxPyEndAllowThreads(__tstate); | |
12054 | if (PyErr_Occurred()) SWIG_fail; | |
12055 | } | |
12056 | { | |
12057 | #if wxUSE_UNICODE | |
12058 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12059 | #else | |
12060 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12061 | #endif | |
12062 | } | |
12063 | return resultobj; | |
12064 | fail: | |
12065 | return NULL; | |
12066 | } | |
12067 | ||
12068 | ||
12069 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12070 | PyObject *resultobj; | |
12071 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12072 | wxString *result; | |
12073 | PyObject * obj0 = 0 ; | |
12074 | char *kwnames[] = { | |
12075 | (char *) "self", NULL | |
12076 | }; | |
12077 | ||
12078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
12079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12081 | { | |
12082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12083 | { | |
12084 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12085 | result = (wxString *) &_result_ref; | |
12086 | } | |
12087 | ||
12088 | wxPyEndAllowThreads(__tstate); | |
12089 | if (PyErr_Occurred()) SWIG_fail; | |
12090 | } | |
12091 | { | |
12092 | #if wxUSE_UNICODE | |
12093 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12094 | #else | |
12095 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12096 | #endif | |
12097 | } | |
12098 | return resultobj; | |
12099 | fail: | |
12100 | return NULL; | |
12101 | } | |
12102 | ||
12103 | ||
12104 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12105 | PyObject *resultobj; | |
12106 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12107 | wxString *result; | |
12108 | PyObject * obj0 = 0 ; | |
12109 | char *kwnames[] = { | |
12110 | (char *) "self", NULL | |
12111 | }; | |
12112 | ||
12113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12116 | { | |
12117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12118 | { | |
12119 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12120 | result = (wxString *) &_result_ref; | |
12121 | } | |
12122 | ||
12123 | wxPyEndAllowThreads(__tstate); | |
12124 | if (PyErr_Occurred()) SWIG_fail; | |
12125 | } | |
12126 | { | |
12127 | #if wxUSE_UNICODE | |
12128 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12129 | #else | |
12130 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12131 | #endif | |
12132 | } | |
12133 | return resultobj; | |
12134 | fail: | |
12135 | return NULL; | |
12136 | } | |
12137 | ||
12138 | ||
12139 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12140 | PyObject *resultobj; | |
12141 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12142 | wxString *result; | |
12143 | PyObject * obj0 = 0 ; | |
12144 | char *kwnames[] = { | |
12145 | (char *) "self", NULL | |
12146 | }; | |
12147 | ||
12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12151 | { | |
12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12153 | { | |
12154 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12155 | result = (wxString *) &_result_ref; | |
12156 | } | |
12157 | ||
12158 | wxPyEndAllowThreads(__tstate); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
12161 | { | |
12162 | #if wxUSE_UNICODE | |
12163 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12164 | #else | |
12165 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12166 | #endif | |
12167 | } | |
12168 | return resultobj; | |
12169 | fail: | |
12170 | return NULL; | |
12171 | } | |
12172 | ||
12173 | ||
12174 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12175 | PyObject *resultobj; | |
12176 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12177 | wxArrayString *result; | |
12178 | PyObject * obj0 = 0 ; | |
12179 | char *kwnames[] = { | |
12180 | (char *) "self", NULL | |
12181 | }; | |
12182 | ||
12183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12186 | { | |
12187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12188 | { | |
12189 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12190 | result = (wxArrayString *) &_result_ref; | |
12191 | } | |
12192 | ||
12193 | wxPyEndAllowThreads(__tstate); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
12195 | } | |
12196 | { | |
12197 | resultobj = wxArrayString2PyList_helper(*result); | |
12198 | } | |
12199 | return resultobj; | |
12200 | fail: | |
12201 | return NULL; | |
12202 | } | |
12203 | ||
12204 | ||
12205 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12206 | PyObject *resultobj; | |
12207 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12208 | int result; | |
12209 | PyObject * obj0 = 0 ; | |
12210 | char *kwnames[] = { | |
12211 | (char *) "self", NULL | |
12212 | }; | |
12213 | ||
12214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12217 | { | |
12218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12219 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12220 | ||
12221 | wxPyEndAllowThreads(__tstate); | |
12222 | if (PyErr_Occurred()) SWIG_fail; | |
12223 | } | |
12224 | resultobj = SWIG_FromInt((int)result); | |
12225 | return resultobj; | |
12226 | fail: | |
12227 | return NULL; | |
12228 | } | |
12229 | ||
12230 | ||
12231 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12232 | PyObject *resultobj; | |
12233 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12234 | wxString *result; | |
12235 | PyObject * obj0 = 0 ; | |
12236 | char *kwnames[] = { | |
12237 | (char *) "self", NULL | |
12238 | }; | |
12239 | ||
12240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12243 | { | |
12244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12245 | { | |
12246 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12247 | result = (wxString *) &_result_ref; | |
12248 | } | |
12249 | ||
12250 | wxPyEndAllowThreads(__tstate); | |
12251 | if (PyErr_Occurred()) SWIG_fail; | |
12252 | } | |
12253 | { | |
12254 | #if wxUSE_UNICODE | |
12255 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12256 | #else | |
12257 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12258 | #endif | |
12259 | } | |
12260 | return resultobj; | |
12261 | fail: | |
12262 | return NULL; | |
12263 | } | |
12264 | ||
12265 | ||
12266 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12267 | PyObject *resultobj; | |
12268 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12269 | int result; | |
12270 | PyObject * obj0 = 0 ; | |
12271 | char *kwnames[] = { | |
12272 | (char *) "self", NULL | |
12273 | }; | |
12274 | ||
12275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12278 | { | |
12279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12280 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12281 | ||
12282 | wxPyEndAllowThreads(__tstate); | |
12283 | if (PyErr_Occurred()) SWIG_fail; | |
12284 | } | |
12285 | resultobj = SWIG_FromInt((int)result); | |
12286 | return resultobj; | |
12287 | fail: | |
12288 | return NULL; | |
12289 | } | |
12290 | ||
12291 | ||
12292 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12293 | PyObject *obj; | |
12294 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12295 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12296 | Py_INCREF(obj); | |
12297 | return Py_BuildValue((char *)""); | |
12298 | } | |
12299 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12300 | PyObject *resultobj; | |
12301 | wxFileTypeInfo *arg1 = 0 ; | |
12302 | wxFileType *result; | |
12303 | PyObject * obj0 = 0 ; | |
12304 | char *kwnames[] = { | |
12305 | (char *) "ftInfo", NULL | |
12306 | }; | |
12307 | ||
12308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12310 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12311 | SWIG_fail; | |
12312 | if (arg1 == NULL) { | |
12313 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12314 | SWIG_fail; | |
12315 | } | |
12316 | { | |
12317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12318 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12319 | ||
12320 | wxPyEndAllowThreads(__tstate); | |
12321 | if (PyErr_Occurred()) SWIG_fail; | |
12322 | } | |
12323 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12324 | return resultobj; | |
12325 | fail: | |
12326 | return NULL; | |
12327 | } | |
12328 | ||
12329 | ||
12330 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12331 | PyObject *resultobj; | |
12332 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12333 | PyObject * obj0 = 0 ; | |
12334 | char *kwnames[] = { | |
12335 | (char *) "self", NULL | |
12336 | }; | |
12337 | ||
12338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12341 | { | |
12342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12343 | delete arg1; | |
12344 | ||
12345 | wxPyEndAllowThreads(__tstate); | |
12346 | if (PyErr_Occurred()) SWIG_fail; | |
12347 | } | |
12348 | Py_INCREF(Py_None); resultobj = Py_None; | |
12349 | return resultobj; | |
12350 | fail: | |
12351 | return NULL; | |
12352 | } | |
12353 | ||
12354 | ||
12355 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12356 | PyObject *resultobj; | |
12357 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12358 | PyObject *result; | |
12359 | PyObject * obj0 = 0 ; | |
12360 | char *kwnames[] = { | |
12361 | (char *) "self", NULL | |
12362 | }; | |
12363 | ||
12364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12367 | { | |
12368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12369 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12370 | ||
12371 | wxPyEndAllowThreads(__tstate); | |
12372 | if (PyErr_Occurred()) SWIG_fail; | |
12373 | } | |
12374 | resultobj = result; | |
12375 | return resultobj; | |
12376 | fail: | |
12377 | return NULL; | |
12378 | } | |
12379 | ||
12380 | ||
12381 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12382 | PyObject *resultobj; | |
12383 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12384 | PyObject *result; | |
12385 | PyObject * obj0 = 0 ; | |
12386 | char *kwnames[] = { | |
12387 | (char *) "self", NULL | |
12388 | }; | |
12389 | ||
12390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12393 | { | |
12394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12395 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12396 | ||
12397 | wxPyEndAllowThreads(__tstate); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | } | |
12400 | resultobj = result; | |
12401 | return resultobj; | |
12402 | fail: | |
12403 | return NULL; | |
12404 | } | |
12405 | ||
12406 | ||
12407 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12408 | PyObject *resultobj; | |
12409 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12410 | PyObject *result; | |
12411 | PyObject * obj0 = 0 ; | |
12412 | char *kwnames[] = { | |
12413 | (char *) "self", NULL | |
12414 | }; | |
12415 | ||
12416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12419 | { | |
12420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12421 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12422 | ||
12423 | wxPyEndAllowThreads(__tstate); | |
12424 | if (PyErr_Occurred()) SWIG_fail; | |
12425 | } | |
12426 | resultobj = result; | |
12427 | return resultobj; | |
12428 | fail: | |
12429 | return NULL; | |
12430 | } | |
12431 | ||
12432 | ||
12433 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12434 | PyObject *resultobj; | |
12435 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12436 | wxIcon *result; | |
12437 | PyObject * obj0 = 0 ; | |
12438 | char *kwnames[] = { | |
12439 | (char *) "self", NULL | |
12440 | }; | |
12441 | ||
12442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12445 | { | |
12446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12447 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12448 | ||
12449 | wxPyEndAllowThreads(__tstate); | |
12450 | if (PyErr_Occurred()) SWIG_fail; | |
12451 | } | |
12452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
12453 | return resultobj; | |
12454 | fail: | |
12455 | return NULL; | |
12456 | } | |
12457 | ||
12458 | ||
12459 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12460 | PyObject *resultobj; | |
12461 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12462 | PyObject *result; | |
12463 | PyObject * obj0 = 0 ; | |
12464 | char *kwnames[] = { | |
12465 | (char *) "self", NULL | |
12466 | }; | |
12467 | ||
12468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12471 | { | |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12474 | ||
12475 | wxPyEndAllowThreads(__tstate); | |
12476 | if (PyErr_Occurred()) SWIG_fail; | |
12477 | } | |
12478 | resultobj = result; | |
12479 | return resultobj; | |
12480 | fail: | |
12481 | return NULL; | |
12482 | } | |
12483 | ||
12484 | ||
12485 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12486 | PyObject *resultobj; | |
12487 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12488 | PyObject *result; | |
12489 | PyObject * obj0 = 0 ; | |
12490 | char *kwnames[] = { | |
12491 | (char *) "self", NULL | |
12492 | }; | |
12493 | ||
12494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12497 | { | |
12498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12499 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12500 | ||
12501 | wxPyEndAllowThreads(__tstate); | |
12502 | if (PyErr_Occurred()) SWIG_fail; | |
12503 | } | |
12504 | resultobj = result; | |
12505 | return resultobj; | |
12506 | fail: | |
12507 | return NULL; | |
12508 | } | |
12509 | ||
12510 | ||
12511 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12512 | PyObject *resultobj; | |
12513 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12514 | wxString *arg2 = 0 ; | |
12515 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12516 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12517 | PyObject *result; | |
12518 | bool temp2 = False ; | |
12519 | bool temp3 = False ; | |
12520 | PyObject * obj0 = 0 ; | |
12521 | PyObject * obj1 = 0 ; | |
12522 | PyObject * obj2 = 0 ; | |
12523 | char *kwnames[] = { | |
12524 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12525 | }; | |
12526 | ||
12527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12530 | { | |
12531 | arg2 = wxString_in_helper(obj1); | |
12532 | if (arg2 == NULL) SWIG_fail; | |
12533 | temp2 = True; | |
12534 | } | |
12535 | if (obj2) { | |
12536 | { | |
12537 | arg3 = wxString_in_helper(obj2); | |
12538 | if (arg3 == NULL) SWIG_fail; | |
12539 | temp3 = True; | |
12540 | } | |
12541 | } | |
12542 | { | |
12543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12544 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12545 | ||
12546 | wxPyEndAllowThreads(__tstate); | |
12547 | if (PyErr_Occurred()) SWIG_fail; | |
12548 | } | |
12549 | resultobj = result; | |
12550 | { | |
12551 | if (temp2) | |
12552 | delete arg2; | |
12553 | } | |
12554 | { | |
12555 | if (temp3) | |
12556 | delete arg3; | |
12557 | } | |
12558 | return resultobj; | |
12559 | fail: | |
12560 | { | |
12561 | if (temp2) | |
12562 | delete arg2; | |
12563 | } | |
12564 | { | |
12565 | if (temp3) | |
12566 | delete arg3; | |
12567 | } | |
12568 | return NULL; | |
12569 | } | |
12570 | ||
12571 | ||
12572 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12573 | PyObject *resultobj; | |
12574 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12575 | wxString *arg2 = 0 ; | |
12576 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12577 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12578 | PyObject *result; | |
12579 | bool temp2 = False ; | |
12580 | bool temp3 = False ; | |
12581 | PyObject * obj0 = 0 ; | |
12582 | PyObject * obj1 = 0 ; | |
12583 | PyObject * obj2 = 0 ; | |
12584 | char *kwnames[] = { | |
12585 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12586 | }; | |
12587 | ||
12588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12591 | { | |
12592 | arg2 = wxString_in_helper(obj1); | |
12593 | if (arg2 == NULL) SWIG_fail; | |
12594 | temp2 = True; | |
12595 | } | |
12596 | if (obj2) { | |
12597 | { | |
12598 | arg3 = wxString_in_helper(obj2); | |
12599 | if (arg3 == NULL) SWIG_fail; | |
12600 | temp3 = True; | |
12601 | } | |
12602 | } | |
12603 | { | |
12604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12605 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12606 | ||
12607 | wxPyEndAllowThreads(__tstate); | |
12608 | if (PyErr_Occurred()) SWIG_fail; | |
12609 | } | |
12610 | resultobj = result; | |
12611 | { | |
12612 | if (temp2) | |
12613 | delete arg2; | |
12614 | } | |
12615 | { | |
12616 | if (temp3) | |
12617 | delete arg3; | |
12618 | } | |
12619 | return resultobj; | |
12620 | fail: | |
12621 | { | |
12622 | if (temp2) | |
12623 | delete arg2; | |
12624 | } | |
12625 | { | |
12626 | if (temp3) | |
12627 | delete arg3; | |
12628 | } | |
12629 | return NULL; | |
12630 | } | |
12631 | ||
12632 | ||
12633 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12634 | PyObject *resultobj; | |
12635 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12636 | wxString *arg2 = 0 ; | |
12637 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12638 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12639 | PyObject *result; | |
12640 | bool temp2 = False ; | |
12641 | bool temp3 = False ; | |
12642 | PyObject * obj0 = 0 ; | |
12643 | PyObject * obj1 = 0 ; | |
12644 | PyObject * obj2 = 0 ; | |
12645 | char *kwnames[] = { | |
12646 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12647 | }; | |
12648 | ||
12649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12652 | { | |
12653 | arg2 = wxString_in_helper(obj1); | |
12654 | if (arg2 == NULL) SWIG_fail; | |
12655 | temp2 = True; | |
12656 | } | |
12657 | if (obj2) { | |
12658 | { | |
12659 | arg3 = wxString_in_helper(obj2); | |
12660 | if (arg3 == NULL) SWIG_fail; | |
12661 | temp3 = True; | |
12662 | } | |
12663 | } | |
12664 | { | |
12665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12666 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12667 | ||
12668 | wxPyEndAllowThreads(__tstate); | |
12669 | if (PyErr_Occurred()) SWIG_fail; | |
12670 | } | |
12671 | resultobj = result; | |
12672 | { | |
12673 | if (temp2) | |
12674 | delete arg2; | |
12675 | } | |
12676 | { | |
12677 | if (temp3) | |
12678 | delete arg3; | |
12679 | } | |
12680 | return resultobj; | |
12681 | fail: | |
12682 | { | |
12683 | if (temp2) | |
12684 | delete arg2; | |
12685 | } | |
12686 | { | |
12687 | if (temp3) | |
12688 | delete arg3; | |
12689 | } | |
12690 | return NULL; | |
12691 | } | |
12692 | ||
12693 | ||
12694 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12695 | PyObject *resultobj; | |
12696 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12697 | wxString *arg2 = 0 ; | |
12698 | wxString *arg3 = 0 ; | |
12699 | bool arg4 = (bool) True ; | |
12700 | bool result; | |
12701 | bool temp2 = False ; | |
12702 | bool temp3 = False ; | |
12703 | PyObject * obj0 = 0 ; | |
12704 | PyObject * obj1 = 0 ; | |
12705 | PyObject * obj2 = 0 ; | |
12706 | PyObject * obj3 = 0 ; | |
12707 | char *kwnames[] = { | |
12708 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12709 | }; | |
12710 | ||
12711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12714 | { | |
12715 | arg2 = wxString_in_helper(obj1); | |
12716 | if (arg2 == NULL) SWIG_fail; | |
12717 | temp2 = True; | |
12718 | } | |
12719 | { | |
12720 | arg3 = wxString_in_helper(obj2); | |
12721 | if (arg3 == NULL) SWIG_fail; | |
12722 | temp3 = True; | |
12723 | } | |
12724 | if (obj3) { | |
12725 | arg4 = (bool) SWIG_AsBool(obj3); | |
12726 | if (PyErr_Occurred()) SWIG_fail; | |
12727 | } | |
12728 | { | |
12729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12730 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12731 | ||
12732 | wxPyEndAllowThreads(__tstate); | |
12733 | if (PyErr_Occurred()) SWIG_fail; | |
12734 | } | |
12735 | { | |
12736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12737 | } | |
12738 | { | |
12739 | if (temp2) | |
12740 | delete arg2; | |
12741 | } | |
12742 | { | |
12743 | if (temp3) | |
12744 | delete arg3; | |
12745 | } | |
12746 | return resultobj; | |
12747 | fail: | |
12748 | { | |
12749 | if (temp2) | |
12750 | delete arg2; | |
12751 | } | |
12752 | { | |
12753 | if (temp3) | |
12754 | delete arg3; | |
12755 | } | |
12756 | return NULL; | |
12757 | } | |
12758 | ||
12759 | ||
12760 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12761 | PyObject *resultobj; | |
12762 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12763 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12764 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12765 | int arg3 = (int) 0 ; | |
12766 | bool result; | |
12767 | bool temp2 = False ; | |
12768 | PyObject * obj0 = 0 ; | |
12769 | PyObject * obj1 = 0 ; | |
12770 | PyObject * obj2 = 0 ; | |
12771 | char *kwnames[] = { | |
12772 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12773 | }; | |
12774 | ||
12775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12778 | if (obj1) { | |
12779 | { | |
12780 | arg2 = wxString_in_helper(obj1); | |
12781 | if (arg2 == NULL) SWIG_fail; | |
12782 | temp2 = True; | |
12783 | } | |
12784 | } | |
12785 | if (obj2) { | |
12786 | arg3 = (int) SWIG_AsInt(obj2); | |
12787 | if (PyErr_Occurred()) SWIG_fail; | |
12788 | } | |
12789 | { | |
12790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12791 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12792 | ||
12793 | wxPyEndAllowThreads(__tstate); | |
12794 | if (PyErr_Occurred()) SWIG_fail; | |
12795 | } | |
12796 | { | |
12797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12798 | } | |
12799 | { | |
12800 | if (temp2) | |
12801 | delete arg2; | |
12802 | } | |
12803 | return resultobj; | |
12804 | fail: | |
12805 | { | |
12806 | if (temp2) | |
12807 | delete arg2; | |
12808 | } | |
12809 | return NULL; | |
12810 | } | |
12811 | ||
12812 | ||
12813 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12814 | PyObject *resultobj; | |
12815 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12816 | bool result; | |
12817 | PyObject * obj0 = 0 ; | |
12818 | char *kwnames[] = { | |
12819 | (char *) "self", NULL | |
12820 | }; | |
12821 | ||
12822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
12823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12825 | { | |
12826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12827 | result = (bool)(arg1)->Unassociate(); | |
12828 | ||
12829 | wxPyEndAllowThreads(__tstate); | |
12830 | if (PyErr_Occurred()) SWIG_fail; | |
12831 | } | |
12832 | { | |
12833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12834 | } | |
12835 | return resultobj; | |
12836 | fail: | |
12837 | return NULL; | |
12838 | } | |
12839 | ||
12840 | ||
12841 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12842 | PyObject *resultobj; | |
12843 | wxString *arg1 = 0 ; | |
12844 | wxString *arg2 = 0 ; | |
12845 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12846 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12847 | wxString result; | |
12848 | bool temp1 = False ; | |
12849 | bool temp2 = False ; | |
12850 | bool temp3 = False ; | |
12851 | PyObject * obj0 = 0 ; | |
12852 | PyObject * obj1 = 0 ; | |
12853 | PyObject * obj2 = 0 ; | |
12854 | char *kwnames[] = { | |
12855 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12856 | }; | |
12857 | ||
12858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12859 | { | |
12860 | arg1 = wxString_in_helper(obj0); | |
12861 | if (arg1 == NULL) SWIG_fail; | |
12862 | temp1 = True; | |
12863 | } | |
12864 | { | |
12865 | arg2 = wxString_in_helper(obj1); | |
12866 | if (arg2 == NULL) SWIG_fail; | |
12867 | temp2 = True; | |
12868 | } | |
12869 | if (obj2) { | |
12870 | { | |
12871 | arg3 = wxString_in_helper(obj2); | |
12872 | if (arg3 == NULL) SWIG_fail; | |
12873 | temp3 = True; | |
12874 | } | |
12875 | } | |
12876 | { | |
12877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12878 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12879 | ||
12880 | wxPyEndAllowThreads(__tstate); | |
12881 | if (PyErr_Occurred()) SWIG_fail; | |
12882 | } | |
12883 | { | |
12884 | #if wxUSE_UNICODE | |
12885 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12886 | #else | |
12887 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12888 | #endif | |
12889 | } | |
12890 | { | |
12891 | if (temp1) | |
12892 | delete arg1; | |
12893 | } | |
12894 | { | |
12895 | if (temp2) | |
12896 | delete arg2; | |
12897 | } | |
12898 | { | |
12899 | if (temp3) | |
12900 | delete arg3; | |
12901 | } | |
12902 | return resultobj; | |
12903 | fail: | |
12904 | { | |
12905 | if (temp1) | |
12906 | delete arg1; | |
12907 | } | |
12908 | { | |
12909 | if (temp2) | |
12910 | delete arg2; | |
12911 | } | |
12912 | { | |
12913 | if (temp3) | |
12914 | delete arg3; | |
12915 | } | |
12916 | return NULL; | |
12917 | } | |
12918 | ||
12919 | ||
12920 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
12921 | PyObject *obj; | |
12922 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12923 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
12924 | Py_INCREF(obj); | |
12925 | return Py_BuildValue((char *)""); | |
12926 | } | |
12927 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
12928 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
12929 | return 1; | |
12930 | } | |
12931 | ||
12932 | ||
12933 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
12934 | PyObject *pyobj; | |
12935 | ||
12936 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
12937 | return pyobj; | |
12938 | } | |
12939 | ||
12940 | ||
12941 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12942 | PyObject *resultobj; | |
12943 | wxString *arg1 = 0 ; | |
12944 | wxString *arg2 = 0 ; | |
12945 | bool result; | |
12946 | bool temp1 = False ; | |
12947 | bool temp2 = False ; | |
12948 | PyObject * obj0 = 0 ; | |
12949 | PyObject * obj1 = 0 ; | |
12950 | char *kwnames[] = { | |
12951 | (char *) "mimeType",(char *) "wildcard", NULL | |
12952 | }; | |
12953 | ||
12954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
12955 | { | |
12956 | arg1 = wxString_in_helper(obj0); | |
12957 | if (arg1 == NULL) SWIG_fail; | |
12958 | temp1 = True; | |
12959 | } | |
12960 | { | |
12961 | arg2 = wxString_in_helper(obj1); | |
12962 | if (arg2 == NULL) SWIG_fail; | |
12963 | temp2 = True; | |
12964 | } | |
12965 | { | |
12966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12967 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
12968 | ||
12969 | wxPyEndAllowThreads(__tstate); | |
12970 | if (PyErr_Occurred()) SWIG_fail; | |
12971 | } | |
12972 | { | |
12973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12974 | } | |
12975 | { | |
12976 | if (temp1) | |
12977 | delete arg1; | |
12978 | } | |
12979 | { | |
12980 | if (temp2) | |
12981 | delete arg2; | |
12982 | } | |
12983 | return resultobj; | |
12984 | fail: | |
12985 | { | |
12986 | if (temp1) | |
12987 | delete arg1; | |
12988 | } | |
12989 | { | |
12990 | if (temp2) | |
12991 | delete arg2; | |
12992 | } | |
12993 | return NULL; | |
12994 | } | |
12995 | ||
12996 | ||
12997 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12998 | PyObject *resultobj; | |
12999 | wxMimeTypesManager *result; | |
13000 | char *kwnames[] = { | |
13001 | NULL | |
13002 | }; | |
13003 | ||
13004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13005 | { | |
13006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13007 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13008 | ||
13009 | wxPyEndAllowThreads(__tstate); | |
13010 | if (PyErr_Occurred()) SWIG_fail; | |
13011 | } | |
13012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13013 | return resultobj; | |
13014 | fail: | |
13015 | return NULL; | |
13016 | } | |
13017 | ||
13018 | ||
13019 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13020 | PyObject *resultobj; | |
13021 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13022 | int arg2 = (int) wxMAILCAP_ALL ; | |
13023 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13024 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13025 | bool temp3 = False ; | |
13026 | PyObject * obj0 = 0 ; | |
13027 | PyObject * obj1 = 0 ; | |
13028 | PyObject * obj2 = 0 ; | |
13029 | char *kwnames[] = { | |
13030 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13031 | }; | |
13032 | ||
13033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13036 | if (obj1) { | |
13037 | arg2 = (int) SWIG_AsInt(obj1); | |
13038 | if (PyErr_Occurred()) SWIG_fail; | |
13039 | } | |
13040 | if (obj2) { | |
13041 | { | |
13042 | arg3 = wxString_in_helper(obj2); | |
13043 | if (arg3 == NULL) SWIG_fail; | |
13044 | temp3 = True; | |
13045 | } | |
13046 | } | |
13047 | { | |
13048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13049 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13050 | ||
13051 | wxPyEndAllowThreads(__tstate); | |
13052 | if (PyErr_Occurred()) SWIG_fail; | |
13053 | } | |
13054 | Py_INCREF(Py_None); resultobj = Py_None; | |
13055 | { | |
13056 | if (temp3) | |
13057 | delete arg3; | |
13058 | } | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | { | |
13062 | if (temp3) | |
13063 | delete arg3; | |
13064 | } | |
13065 | return NULL; | |
13066 | } | |
13067 | ||
13068 | ||
13069 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13070 | PyObject *resultobj; | |
13071 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13072 | PyObject * obj0 = 0 ; | |
13073 | char *kwnames[] = { | |
13074 | (char *) "self", NULL | |
13075 | }; | |
13076 | ||
13077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13080 | { | |
13081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13082 | (arg1)->ClearData(); | |
13083 | ||
13084 | wxPyEndAllowThreads(__tstate); | |
13085 | if (PyErr_Occurred()) SWIG_fail; | |
13086 | } | |
13087 | Py_INCREF(Py_None); resultobj = Py_None; | |
13088 | return resultobj; | |
13089 | fail: | |
13090 | return NULL; | |
13091 | } | |
13092 | ||
13093 | ||
13094 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13095 | PyObject *resultobj; | |
13096 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13097 | wxString *arg2 = 0 ; | |
13098 | wxFileType *result; | |
13099 | bool temp2 = False ; | |
13100 | PyObject * obj0 = 0 ; | |
13101 | PyObject * obj1 = 0 ; | |
13102 | char *kwnames[] = { | |
13103 | (char *) "self",(char *) "ext", NULL | |
13104 | }; | |
13105 | ||
13106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13109 | { | |
13110 | arg2 = wxString_in_helper(obj1); | |
13111 | if (arg2 == NULL) SWIG_fail; | |
13112 | temp2 = True; | |
13113 | } | |
13114 | { | |
13115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13116 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13117 | ||
13118 | wxPyEndAllowThreads(__tstate); | |
13119 | if (PyErr_Occurred()) SWIG_fail; | |
13120 | } | |
13121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13122 | { | |
13123 | if (temp2) | |
13124 | delete arg2; | |
13125 | } | |
13126 | return resultobj; | |
13127 | fail: | |
13128 | { | |
13129 | if (temp2) | |
13130 | delete arg2; | |
13131 | } | |
13132 | return NULL; | |
13133 | } | |
13134 | ||
13135 | ||
13136 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13137 | PyObject *resultobj; | |
13138 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13139 | wxString *arg2 = 0 ; | |
13140 | wxFileType *result; | |
13141 | bool temp2 = False ; | |
13142 | PyObject * obj0 = 0 ; | |
13143 | PyObject * obj1 = 0 ; | |
13144 | char *kwnames[] = { | |
13145 | (char *) "self",(char *) "mimeType", NULL | |
13146 | }; | |
13147 | ||
13148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13151 | { | |
13152 | arg2 = wxString_in_helper(obj1); | |
13153 | if (arg2 == NULL) SWIG_fail; | |
13154 | temp2 = True; | |
13155 | } | |
13156 | { | |
13157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13158 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13159 | ||
13160 | wxPyEndAllowThreads(__tstate); | |
13161 | if (PyErr_Occurred()) SWIG_fail; | |
13162 | } | |
13163 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13164 | { | |
13165 | if (temp2) | |
13166 | delete arg2; | |
13167 | } | |
13168 | return resultobj; | |
13169 | fail: | |
13170 | { | |
13171 | if (temp2) | |
13172 | delete arg2; | |
13173 | } | |
13174 | return NULL; | |
13175 | } | |
13176 | ||
13177 | ||
13178 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13179 | PyObject *resultobj; | |
13180 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13181 | wxString *arg2 = 0 ; | |
13182 | bool arg3 = (bool) False ; | |
13183 | bool result; | |
13184 | bool temp2 = False ; | |
13185 | PyObject * obj0 = 0 ; | |
13186 | PyObject * obj1 = 0 ; | |
13187 | PyObject * obj2 = 0 ; | |
13188 | char *kwnames[] = { | |
13189 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13190 | }; | |
13191 | ||
13192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13195 | { | |
13196 | arg2 = wxString_in_helper(obj1); | |
13197 | if (arg2 == NULL) SWIG_fail; | |
13198 | temp2 = True; | |
13199 | } | |
13200 | if (obj2) { | |
13201 | arg3 = (bool) SWIG_AsBool(obj2); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | { | |
13205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13206 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13207 | ||
13208 | wxPyEndAllowThreads(__tstate); | |
13209 | if (PyErr_Occurred()) SWIG_fail; | |
13210 | } | |
13211 | { | |
13212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13213 | } | |
13214 | { | |
13215 | if (temp2) | |
13216 | delete arg2; | |
13217 | } | |
13218 | return resultobj; | |
13219 | fail: | |
13220 | { | |
13221 | if (temp2) | |
13222 | delete arg2; | |
13223 | } | |
13224 | return NULL; | |
13225 | } | |
13226 | ||
13227 | ||
13228 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13229 | PyObject *resultobj; | |
13230 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13231 | wxString *arg2 = 0 ; | |
13232 | bool result; | |
13233 | bool temp2 = False ; | |
13234 | PyObject * obj0 = 0 ; | |
13235 | PyObject * obj1 = 0 ; | |
13236 | char *kwnames[] = { | |
13237 | (char *) "self",(char *) "filename", NULL | |
13238 | }; | |
13239 | ||
13240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13243 | { | |
13244 | arg2 = wxString_in_helper(obj1); | |
13245 | if (arg2 == NULL) SWIG_fail; | |
13246 | temp2 = True; | |
13247 | } | |
13248 | { | |
13249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13250 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13251 | ||
13252 | wxPyEndAllowThreads(__tstate); | |
13253 | if (PyErr_Occurred()) SWIG_fail; | |
13254 | } | |
13255 | { | |
13256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13257 | } | |
13258 | { | |
13259 | if (temp2) | |
13260 | delete arg2; | |
13261 | } | |
13262 | return resultobj; | |
13263 | fail: | |
13264 | { | |
13265 | if (temp2) | |
13266 | delete arg2; | |
13267 | } | |
13268 | return NULL; | |
13269 | } | |
13270 | ||
13271 | ||
13272 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13273 | PyObject *resultobj; | |
13274 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13275 | PyObject *result; | |
13276 | PyObject * obj0 = 0 ; | |
13277 | char *kwnames[] = { | |
13278 | (char *) "self", NULL | |
13279 | }; | |
13280 | ||
13281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13284 | { | |
13285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13286 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13287 | ||
13288 | wxPyEndAllowThreads(__tstate); | |
13289 | if (PyErr_Occurred()) SWIG_fail; | |
13290 | } | |
13291 | resultobj = result; | |
13292 | return resultobj; | |
13293 | fail: | |
13294 | return NULL; | |
13295 | } | |
13296 | ||
13297 | ||
13298 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13299 | PyObject *resultobj; | |
13300 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13301 | wxFileTypeInfo *arg2 = 0 ; | |
13302 | PyObject * obj0 = 0 ; | |
13303 | PyObject * obj1 = 0 ; | |
13304 | char *kwnames[] = { | |
13305 | (char *) "self",(char *) "ft", NULL | |
13306 | }; | |
13307 | ||
13308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13311 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13312 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13313 | SWIG_fail; | |
13314 | if (arg2 == NULL) { | |
13315 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13316 | SWIG_fail; | |
13317 | } | |
13318 | { | |
13319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13320 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13321 | ||
13322 | wxPyEndAllowThreads(__tstate); | |
13323 | if (PyErr_Occurred()) SWIG_fail; | |
13324 | } | |
13325 | Py_INCREF(Py_None); resultobj = Py_None; | |
13326 | return resultobj; | |
13327 | fail: | |
13328 | return NULL; | |
13329 | } | |
13330 | ||
13331 | ||
13332 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13333 | PyObject *resultobj; | |
13334 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13335 | wxFileTypeInfo *arg2 = 0 ; | |
13336 | wxFileType *result; | |
13337 | PyObject * obj0 = 0 ; | |
13338 | PyObject * obj1 = 0 ; | |
13339 | char *kwnames[] = { | |
13340 | (char *) "self",(char *) "ftInfo", NULL | |
13341 | }; | |
13342 | ||
13343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13347 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13348 | SWIG_fail; | |
13349 | if (arg2 == NULL) { | |
13350 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13351 | SWIG_fail; | |
13352 | } | |
13353 | { | |
13354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13355 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13356 | ||
13357 | wxPyEndAllowThreads(__tstate); | |
13358 | if (PyErr_Occurred()) SWIG_fail; | |
13359 | } | |
13360 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13361 | return resultobj; | |
13362 | fail: | |
13363 | return NULL; | |
13364 | } | |
13365 | ||
13366 | ||
13367 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13368 | PyObject *resultobj; | |
13369 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13370 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13371 | bool result; | |
13372 | PyObject * obj0 = 0 ; | |
13373 | PyObject * obj1 = 0 ; | |
13374 | char *kwnames[] = { | |
13375 | (char *) "self",(char *) "ft", NULL | |
13376 | }; | |
13377 | ||
13378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13381 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13383 | { | |
13384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13385 | result = (bool)(arg1)->Unassociate(arg2); | |
13386 | ||
13387 | wxPyEndAllowThreads(__tstate); | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | } | |
13390 | { | |
13391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13392 | } | |
13393 | return resultobj; | |
13394 | fail: | |
13395 | return NULL; | |
13396 | } | |
13397 | ||
13398 | ||
13399 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13400 | PyObject *resultobj; | |
13401 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13402 | PyObject * obj0 = 0 ; | |
13403 | char *kwnames[] = { | |
13404 | (char *) "self", NULL | |
13405 | }; | |
13406 | ||
13407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13410 | { | |
13411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13412 | delete arg1; | |
13413 | ||
13414 | wxPyEndAllowThreads(__tstate); | |
13415 | if (PyErr_Occurred()) SWIG_fail; | |
13416 | } | |
13417 | Py_INCREF(Py_None); resultobj = Py_None; | |
13418 | return resultobj; | |
13419 | fail: | |
13420 | return NULL; | |
13421 | } | |
13422 | ||
13423 | ||
13424 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13425 | PyObject *obj; | |
13426 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13427 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13428 | Py_INCREF(obj); | |
13429 | return Py_BuildValue((char *)""); | |
13430 | } | |
13431 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13432 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13433 | return 1; | |
13434 | } | |
13435 | ||
13436 | ||
13437 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13438 | PyObject *pyobj; | |
13439 | ||
13440 | { | |
13441 | #if wxUSE_UNICODE | |
13442 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13443 | #else | |
13444 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13445 | #endif | |
13446 | } | |
13447 | return pyobj; | |
13448 | } | |
13449 | ||
13450 | ||
13451 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13452 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13453 | return 1; | |
13454 | } | |
13455 | ||
13456 | ||
13457 | static PyObject *_wrap_ART_MENU_get() { | |
13458 | PyObject *pyobj; | |
13459 | ||
13460 | { | |
13461 | #if wxUSE_UNICODE | |
13462 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13463 | #else | |
13464 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13465 | #endif | |
13466 | } | |
13467 | return pyobj; | |
13468 | } | |
13469 | ||
13470 | ||
13471 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13472 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13473 | return 1; | |
13474 | } | |
13475 | ||
13476 | ||
13477 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13478 | PyObject *pyobj; | |
13479 | ||
13480 | { | |
13481 | #if wxUSE_UNICODE | |
13482 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13483 | #else | |
13484 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13485 | #endif | |
13486 | } | |
13487 | return pyobj; | |
13488 | } | |
13489 | ||
13490 | ||
13491 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13492 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13493 | return 1; | |
13494 | } | |
13495 | ||
13496 | ||
13497 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13498 | PyObject *pyobj; | |
13499 | ||
13500 | { | |
13501 | #if wxUSE_UNICODE | |
13502 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13503 | #else | |
13504 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13505 | #endif | |
13506 | } | |
13507 | return pyobj; | |
13508 | } | |
13509 | ||
13510 | ||
13511 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13512 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13513 | return 1; | |
13514 | } | |
13515 | ||
13516 | ||
13517 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13518 | PyObject *pyobj; | |
13519 | ||
13520 | { | |
13521 | #if wxUSE_UNICODE | |
13522 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13523 | #else | |
13524 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13525 | #endif | |
13526 | } | |
13527 | return pyobj; | |
13528 | } | |
13529 | ||
13530 | ||
13531 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13532 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13533 | return 1; | |
13534 | } | |
13535 | ||
13536 | ||
13537 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13538 | PyObject *pyobj; | |
13539 | ||
13540 | { | |
13541 | #if wxUSE_UNICODE | |
13542 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13543 | #else | |
13544 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13545 | #endif | |
13546 | } | |
13547 | return pyobj; | |
13548 | } | |
13549 | ||
13550 | ||
13551 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13552 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13553 | return 1; | |
13554 | } | |
13555 | ||
13556 | ||
13557 | static PyObject *_wrap_ART_OTHER_get() { | |
13558 | PyObject *pyobj; | |
13559 | ||
13560 | { | |
13561 | #if wxUSE_UNICODE | |
13562 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13563 | #else | |
13564 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13565 | #endif | |
13566 | } | |
13567 | return pyobj; | |
13568 | } | |
13569 | ||
13570 | ||
13571 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13572 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13573 | return 1; | |
13574 | } | |
13575 | ||
13576 | ||
13577 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13578 | PyObject *pyobj; | |
13579 | ||
13580 | { | |
13581 | #if wxUSE_UNICODE | |
13582 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13583 | #else | |
13584 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13585 | #endif | |
13586 | } | |
13587 | return pyobj; | |
13588 | } | |
13589 | ||
13590 | ||
13591 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13592 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13593 | return 1; | |
13594 | } | |
13595 | ||
13596 | ||
13597 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13598 | PyObject *pyobj; | |
13599 | ||
13600 | { | |
13601 | #if wxUSE_UNICODE | |
13602 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13603 | #else | |
13604 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13605 | #endif | |
13606 | } | |
13607 | return pyobj; | |
13608 | } | |
13609 | ||
13610 | ||
13611 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13612 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13613 | return 1; | |
13614 | } | |
13615 | ||
13616 | ||
13617 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13618 | PyObject *pyobj; | |
13619 | ||
13620 | { | |
13621 | #if wxUSE_UNICODE | |
13622 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13623 | #else | |
13624 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13625 | #endif | |
13626 | } | |
13627 | return pyobj; | |
13628 | } | |
13629 | ||
13630 | ||
13631 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13632 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13633 | return 1; | |
13634 | } | |
13635 | ||
13636 | ||
13637 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13638 | PyObject *pyobj; | |
13639 | ||
13640 | { | |
13641 | #if wxUSE_UNICODE | |
13642 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13643 | #else | |
13644 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13645 | #endif | |
13646 | } | |
13647 | return pyobj; | |
13648 | } | |
13649 | ||
13650 | ||
13651 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13652 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13653 | return 1; | |
13654 | } | |
13655 | ||
13656 | ||
13657 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13658 | PyObject *pyobj; | |
13659 | ||
13660 | { | |
13661 | #if wxUSE_UNICODE | |
13662 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13663 | #else | |
13664 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13665 | #endif | |
13666 | } | |
13667 | return pyobj; | |
13668 | } | |
13669 | ||
13670 | ||
13671 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13672 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13673 | return 1; | |
13674 | } | |
13675 | ||
13676 | ||
13677 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13678 | PyObject *pyobj; | |
13679 | ||
13680 | { | |
13681 | #if wxUSE_UNICODE | |
13682 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13683 | #else | |
13684 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13685 | #endif | |
13686 | } | |
13687 | return pyobj; | |
13688 | } | |
13689 | ||
13690 | ||
13691 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13692 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13693 | return 1; | |
13694 | } | |
13695 | ||
13696 | ||
13697 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13698 | PyObject *pyobj; | |
13699 | ||
13700 | { | |
13701 | #if wxUSE_UNICODE | |
13702 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13703 | #else | |
13704 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13705 | #endif | |
13706 | } | |
13707 | return pyobj; | |
13708 | } | |
13709 | ||
13710 | ||
13711 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13712 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13713 | return 1; | |
13714 | } | |
13715 | ||
13716 | ||
13717 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13718 | PyObject *pyobj; | |
13719 | ||
13720 | { | |
13721 | #if wxUSE_UNICODE | |
13722 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13723 | #else | |
13724 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13725 | #endif | |
13726 | } | |
13727 | return pyobj; | |
13728 | } | |
13729 | ||
13730 | ||
13731 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13732 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13733 | return 1; | |
13734 | } | |
13735 | ||
13736 | ||
13737 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13738 | PyObject *pyobj; | |
13739 | ||
13740 | { | |
13741 | #if wxUSE_UNICODE | |
13742 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13743 | #else | |
13744 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13745 | #endif | |
13746 | } | |
13747 | return pyobj; | |
13748 | } | |
13749 | ||
13750 | ||
13751 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13752 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13753 | return 1; | |
13754 | } | |
13755 | ||
13756 | ||
13757 | static PyObject *_wrap_ART_GO_UP_get() { | |
13758 | PyObject *pyobj; | |
13759 | ||
13760 | { | |
13761 | #if wxUSE_UNICODE | |
13762 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13763 | #else | |
13764 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13765 | #endif | |
13766 | } | |
13767 | return pyobj; | |
13768 | } | |
13769 | ||
13770 | ||
13771 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13772 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13773 | return 1; | |
13774 | } | |
13775 | ||
13776 | ||
13777 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13778 | PyObject *pyobj; | |
13779 | ||
13780 | { | |
13781 | #if wxUSE_UNICODE | |
13782 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13783 | #else | |
13784 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13785 | #endif | |
13786 | } | |
13787 | return pyobj; | |
13788 | } | |
13789 | ||
13790 | ||
13791 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13792 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13793 | return 1; | |
13794 | } | |
13795 | ||
13796 | ||
13797 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13798 | PyObject *pyobj; | |
13799 | ||
13800 | { | |
13801 | #if wxUSE_UNICODE | |
13802 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13803 | #else | |
13804 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13805 | #endif | |
13806 | } | |
13807 | return pyobj; | |
13808 | } | |
13809 | ||
13810 | ||
13811 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13812 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13813 | return 1; | |
13814 | } | |
13815 | ||
13816 | ||
13817 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13818 | PyObject *pyobj; | |
13819 | ||
13820 | { | |
13821 | #if wxUSE_UNICODE | |
13822 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13823 | #else | |
13824 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13825 | #endif | |
13826 | } | |
13827 | return pyobj; | |
13828 | } | |
13829 | ||
13830 | ||
13831 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13832 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13833 | return 1; | |
13834 | } | |
13835 | ||
13836 | ||
13837 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13838 | PyObject *pyobj; | |
13839 | ||
13840 | { | |
13841 | #if wxUSE_UNICODE | |
13842 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13843 | #else | |
13844 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13845 | #endif | |
13846 | } | |
13847 | return pyobj; | |
13848 | } | |
13849 | ||
13850 | ||
13851 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
13852 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13853 | return 1; | |
13854 | } | |
13855 | ||
13856 | ||
13857 | static PyObject *_wrap_ART_PRINT_get() { | |
13858 | PyObject *pyobj; | |
13859 | ||
13860 | { | |
13861 | #if wxUSE_UNICODE | |
13862 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13863 | #else | |
13864 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13865 | #endif | |
13866 | } | |
13867 | return pyobj; | |
13868 | } | |
13869 | ||
13870 | ||
13871 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
13872 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13873 | return 1; | |
13874 | } | |
13875 | ||
13876 | ||
13877 | static PyObject *_wrap_ART_HELP_get() { | |
13878 | PyObject *pyobj; | |
13879 | ||
13880 | { | |
13881 | #if wxUSE_UNICODE | |
13882 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13883 | #else | |
13884 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13885 | #endif | |
13886 | } | |
13887 | return pyobj; | |
13888 | } | |
13889 | ||
13890 | ||
13891 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
13892 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
13893 | return 1; | |
13894 | } | |
13895 | ||
13896 | ||
13897 | static PyObject *_wrap_ART_TIP_get() { | |
13898 | PyObject *pyobj; | |
13899 | ||
13900 | { | |
13901 | #if wxUSE_UNICODE | |
13902 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13903 | #else | |
13904 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13905 | #endif | |
13906 | } | |
13907 | return pyobj; | |
13908 | } | |
13909 | ||
13910 | ||
13911 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
13912 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
13913 | return 1; | |
13914 | } | |
13915 | ||
13916 | ||
13917 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
13918 | PyObject *pyobj; | |
13919 | ||
13920 | { | |
13921 | #if wxUSE_UNICODE | |
13922 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13923 | #else | |
13924 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13925 | #endif | |
13926 | } | |
13927 | return pyobj; | |
13928 | } | |
13929 | ||
13930 | ||
13931 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
13932 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
13933 | return 1; | |
13934 | } | |
13935 | ||
13936 | ||
13937 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
13938 | PyObject *pyobj; | |
13939 | ||
13940 | { | |
13941 | #if wxUSE_UNICODE | |
13942 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13943 | #else | |
13944 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13945 | #endif | |
13946 | } | |
13947 | return pyobj; | |
13948 | } | |
13949 | ||
13950 | ||
13951 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
13952 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
13953 | return 1; | |
13954 | } | |
13955 | ||
13956 | ||
13957 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
13958 | PyObject *pyobj; | |
13959 | ||
13960 | { | |
13961 | #if wxUSE_UNICODE | |
13962 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13963 | #else | |
13964 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13965 | #endif | |
13966 | } | |
13967 | return pyobj; | |
13968 | } | |
13969 | ||
13970 | ||
13971 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
13972 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
13973 | return 1; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | static PyObject *_wrap_ART_FOLDER_get() { | |
13978 | PyObject *pyobj; | |
13979 | ||
13980 | { | |
13981 | #if wxUSE_UNICODE | |
13982 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13983 | #else | |
13984 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13985 | #endif | |
13986 | } | |
13987 | return pyobj; | |
13988 | } | |
13989 | ||
13990 | ||
13991 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
13992 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
13993 | return 1; | |
13994 | } | |
13995 | ||
13996 | ||
13997 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
13998 | PyObject *pyobj; | |
13999 | ||
14000 | { | |
14001 | #if wxUSE_UNICODE | |
14002 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14003 | #else | |
14004 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14005 | #endif | |
14006 | } | |
14007 | return pyobj; | |
14008 | } | |
14009 | ||
14010 | ||
14011 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14012 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14013 | return 1; | |
14014 | } | |
14015 | ||
14016 | ||
14017 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14018 | PyObject *pyobj; | |
14019 | ||
14020 | { | |
14021 | #if wxUSE_UNICODE | |
14022 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14023 | #else | |
14024 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14025 | #endif | |
14026 | } | |
14027 | return pyobj; | |
14028 | } | |
14029 | ||
14030 | ||
14031 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14032 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14033 | return 1; | |
14034 | } | |
14035 | ||
14036 | ||
14037 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14038 | PyObject *pyobj; | |
14039 | ||
14040 | { | |
14041 | #if wxUSE_UNICODE | |
14042 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14043 | #else | |
14044 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14045 | #endif | |
14046 | } | |
14047 | return pyobj; | |
14048 | } | |
14049 | ||
14050 | ||
14051 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14052 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14053 | return 1; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14058 | PyObject *pyobj; | |
14059 | ||
14060 | { | |
14061 | #if wxUSE_UNICODE | |
14062 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14063 | #else | |
14064 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14065 | #endif | |
14066 | } | |
14067 | return pyobj; | |
14068 | } | |
14069 | ||
14070 | ||
14071 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14072 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14073 | return 1; | |
14074 | } | |
14075 | ||
14076 | ||
14077 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14078 | PyObject *pyobj; | |
14079 | ||
14080 | { | |
14081 | #if wxUSE_UNICODE | |
14082 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14083 | #else | |
14084 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14085 | #endif | |
14086 | } | |
14087 | return pyobj; | |
14088 | } | |
14089 | ||
14090 | ||
14091 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14092 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14093 | return 1; | |
14094 | } | |
14095 | ||
14096 | ||
14097 | static PyObject *_wrap_ART_ERROR_get() { | |
14098 | PyObject *pyobj; | |
14099 | ||
14100 | { | |
14101 | #if wxUSE_UNICODE | |
14102 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14103 | #else | |
14104 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14105 | #endif | |
14106 | } | |
14107 | return pyobj; | |
14108 | } | |
14109 | ||
14110 | ||
14111 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14112 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14113 | return 1; | |
14114 | } | |
14115 | ||
14116 | ||
14117 | static PyObject *_wrap_ART_QUESTION_get() { | |
14118 | PyObject *pyobj; | |
14119 | ||
14120 | { | |
14121 | #if wxUSE_UNICODE | |
14122 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14123 | #else | |
14124 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14125 | #endif | |
14126 | } | |
14127 | return pyobj; | |
14128 | } | |
14129 | ||
14130 | ||
14131 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14132 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14133 | return 1; | |
14134 | } | |
14135 | ||
14136 | ||
14137 | static PyObject *_wrap_ART_WARNING_get() { | |
14138 | PyObject *pyobj; | |
14139 | ||
14140 | { | |
14141 | #if wxUSE_UNICODE | |
14142 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14143 | #else | |
14144 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14145 | #endif | |
14146 | } | |
14147 | return pyobj; | |
14148 | } | |
14149 | ||
14150 | ||
14151 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14152 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14153 | return 1; | |
14154 | } | |
14155 | ||
14156 | ||
14157 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14158 | PyObject *pyobj; | |
14159 | ||
14160 | { | |
14161 | #if wxUSE_UNICODE | |
14162 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14163 | #else | |
14164 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14165 | #endif | |
14166 | } | |
14167 | return pyobj; | |
14168 | } | |
14169 | ||
14170 | ||
14171 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14172 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14173 | return 1; | |
14174 | } | |
14175 | ||
14176 | ||
14177 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14178 | PyObject *pyobj; | |
14179 | ||
14180 | { | |
14181 | #if wxUSE_UNICODE | |
14182 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14183 | #else | |
14184 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14185 | #endif | |
14186 | } | |
14187 | return pyobj; | |
14188 | } | |
14189 | ||
14190 | ||
14191 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14192 | PyObject *resultobj; | |
14193 | wxPyArtProvider *result; | |
14194 | char *kwnames[] = { | |
14195 | NULL | |
14196 | }; | |
14197 | ||
14198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14199 | { | |
14200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14201 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14202 | ||
14203 | wxPyEndAllowThreads(__tstate); | |
14204 | if (PyErr_Occurred()) SWIG_fail; | |
14205 | } | |
14206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14207 | return resultobj; | |
14208 | fail: | |
14209 | return NULL; | |
14210 | } | |
14211 | ||
14212 | ||
14213 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14214 | PyObject *resultobj; | |
14215 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14216 | PyObject *arg2 = (PyObject *) 0 ; | |
14217 | PyObject *arg3 = (PyObject *) 0 ; | |
14218 | PyObject * obj0 = 0 ; | |
14219 | PyObject * obj1 = 0 ; | |
14220 | PyObject * obj2 = 0 ; | |
14221 | char *kwnames[] = { | |
14222 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14223 | }; | |
14224 | ||
14225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14228 | arg2 = obj1; | |
14229 | arg3 = obj2; | |
14230 | { | |
14231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14232 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14233 | ||
14234 | wxPyEndAllowThreads(__tstate); | |
14235 | if (PyErr_Occurred()) SWIG_fail; | |
14236 | } | |
14237 | Py_INCREF(Py_None); resultobj = Py_None; | |
14238 | return resultobj; | |
14239 | fail: | |
14240 | return NULL; | |
14241 | } | |
14242 | ||
14243 | ||
14244 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14245 | PyObject *resultobj; | |
14246 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14247 | PyObject * obj0 = 0 ; | |
14248 | char *kwnames[] = { | |
14249 | (char *) "provider", NULL | |
14250 | }; | |
14251 | ||
14252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14255 | { | |
14256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14257 | wxPyArtProvider::PushProvider(arg1); | |
14258 | ||
14259 | wxPyEndAllowThreads(__tstate); | |
14260 | if (PyErr_Occurred()) SWIG_fail; | |
14261 | } | |
14262 | Py_INCREF(Py_None); resultobj = Py_None; | |
14263 | return resultobj; | |
14264 | fail: | |
14265 | return NULL; | |
14266 | } | |
14267 | ||
14268 | ||
14269 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14270 | PyObject *resultobj; | |
14271 | bool result; | |
14272 | char *kwnames[] = { | |
14273 | NULL | |
14274 | }; | |
14275 | ||
14276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14277 | { | |
14278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14279 | result = (bool)wxPyArtProvider::PopProvider(); | |
14280 | ||
14281 | wxPyEndAllowThreads(__tstate); | |
14282 | if (PyErr_Occurred()) SWIG_fail; | |
14283 | } | |
14284 | { | |
14285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14286 | } | |
14287 | return resultobj; | |
14288 | fail: | |
14289 | return NULL; | |
14290 | } | |
14291 | ||
14292 | ||
14293 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14294 | PyObject *resultobj; | |
14295 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14296 | bool result; | |
14297 | PyObject * obj0 = 0 ; | |
14298 | char *kwnames[] = { | |
14299 | (char *) "provider", NULL | |
14300 | }; | |
14301 | ||
14302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14305 | { | |
14306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14307 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14308 | ||
14309 | wxPyEndAllowThreads(__tstate); | |
14310 | if (PyErr_Occurred()) SWIG_fail; | |
14311 | } | |
14312 | { | |
14313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14314 | } | |
14315 | return resultobj; | |
14316 | fail: | |
14317 | return NULL; | |
14318 | } | |
14319 | ||
14320 | ||
14321 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14322 | PyObject *resultobj; | |
14323 | wxString *arg1 = 0 ; | |
14324 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14325 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14326 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14327 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14328 | wxBitmap result; | |
14329 | bool temp1 = False ; | |
14330 | bool temp2 = False ; | |
14331 | wxSize temp3 ; | |
14332 | PyObject * obj0 = 0 ; | |
14333 | PyObject * obj1 = 0 ; | |
14334 | PyObject * obj2 = 0 ; | |
14335 | char *kwnames[] = { | |
14336 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14337 | }; | |
14338 | ||
14339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14340 | { | |
14341 | arg1 = wxString_in_helper(obj0); | |
14342 | if (arg1 == NULL) SWIG_fail; | |
14343 | temp1 = True; | |
14344 | } | |
14345 | if (obj1) { | |
14346 | { | |
14347 | arg2 = wxString_in_helper(obj1); | |
14348 | if (arg2 == NULL) SWIG_fail; | |
14349 | temp2 = True; | |
14350 | } | |
14351 | } | |
14352 | if (obj2) { | |
14353 | { | |
14354 | arg3 = &temp3; | |
14355 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14356 | } | |
14357 | } | |
14358 | { | |
14359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14360 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14361 | ||
14362 | wxPyEndAllowThreads(__tstate); | |
14363 | if (PyErr_Occurred()) SWIG_fail; | |
14364 | } | |
14365 | { | |
14366 | wxBitmap * resultptr; | |
14367 | resultptr = new wxBitmap((wxBitmap &) result); | |
14368 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
14369 | } | |
14370 | { | |
14371 | if (temp1) | |
14372 | delete arg1; | |
14373 | } | |
14374 | { | |
14375 | if (temp2) | |
14376 | delete arg2; | |
14377 | } | |
14378 | return resultobj; | |
14379 | fail: | |
14380 | { | |
14381 | if (temp1) | |
14382 | delete arg1; | |
14383 | } | |
14384 | { | |
14385 | if (temp2) | |
14386 | delete arg2; | |
14387 | } | |
14388 | return NULL; | |
14389 | } | |
14390 | ||
14391 | ||
14392 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14393 | PyObject *resultobj; | |
14394 | wxString *arg1 = 0 ; | |
14395 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14396 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14397 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14398 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14399 | wxIcon result; | |
14400 | bool temp1 = False ; | |
14401 | bool temp2 = False ; | |
14402 | wxSize temp3 ; | |
14403 | PyObject * obj0 = 0 ; | |
14404 | PyObject * obj1 = 0 ; | |
14405 | PyObject * obj2 = 0 ; | |
14406 | char *kwnames[] = { | |
14407 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14408 | }; | |
14409 | ||
14410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14411 | { | |
14412 | arg1 = wxString_in_helper(obj0); | |
14413 | if (arg1 == NULL) SWIG_fail; | |
14414 | temp1 = True; | |
14415 | } | |
14416 | if (obj1) { | |
14417 | { | |
14418 | arg2 = wxString_in_helper(obj1); | |
14419 | if (arg2 == NULL) SWIG_fail; | |
14420 | temp2 = True; | |
14421 | } | |
14422 | } | |
14423 | if (obj2) { | |
14424 | { | |
14425 | arg3 = &temp3; | |
14426 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14427 | } | |
14428 | } | |
14429 | { | |
14430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14431 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14432 | ||
14433 | wxPyEndAllowThreads(__tstate); | |
14434 | if (PyErr_Occurred()) SWIG_fail; | |
14435 | } | |
14436 | { | |
14437 | wxIcon * resultptr; | |
14438 | resultptr = new wxIcon((wxIcon &) result); | |
14439 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
14440 | } | |
14441 | { | |
14442 | if (temp1) | |
14443 | delete arg1; | |
14444 | } | |
14445 | { | |
14446 | if (temp2) | |
14447 | delete arg2; | |
14448 | } | |
14449 | return resultobj; | |
14450 | fail: | |
14451 | { | |
14452 | if (temp1) | |
14453 | delete arg1; | |
14454 | } | |
14455 | { | |
14456 | if (temp2) | |
14457 | delete arg2; | |
14458 | } | |
14459 | return NULL; | |
14460 | } | |
14461 | ||
14462 | ||
14463 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14464 | PyObject *resultobj; | |
14465 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14466 | PyObject * obj0 = 0 ; | |
14467 | char *kwnames[] = { | |
14468 | (char *) "self", NULL | |
14469 | }; | |
14470 | ||
14471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14474 | { | |
14475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14476 | wxPyArtProvider_Destroy(arg1); | |
14477 | ||
14478 | wxPyEndAllowThreads(__tstate); | |
14479 | if (PyErr_Occurred()) SWIG_fail; | |
14480 | } | |
14481 | Py_INCREF(Py_None); resultobj = Py_None; | |
14482 | return resultobj; | |
14483 | fail: | |
14484 | return NULL; | |
14485 | } | |
14486 | ||
14487 | ||
14488 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { | |
14489 | PyObject *obj; | |
14490 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14491 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14492 | Py_INCREF(obj); | |
14493 | return Py_BuildValue((char *)""); | |
14494 | } | |
14495 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14496 | PyObject *resultobj; | |
14497 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14498 | PyObject * obj0 = 0 ; | |
14499 | char *kwnames[] = { | |
14500 | (char *) "self", NULL | |
14501 | }; | |
14502 | ||
14503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
14504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14506 | { | |
14507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14508 | delete arg1; | |
14509 | ||
14510 | wxPyEndAllowThreads(__tstate); | |
14511 | if (PyErr_Occurred()) SWIG_fail; | |
14512 | } | |
14513 | Py_INCREF(Py_None); resultobj = Py_None; | |
14514 | return resultobj; | |
14515 | fail: | |
14516 | return NULL; | |
14517 | } | |
14518 | ||
14519 | ||
14520 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14521 | PyObject *resultobj; | |
14522 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14523 | wxConfigBase *result; | |
14524 | PyObject * obj0 = 0 ; | |
14525 | char *kwnames[] = { | |
14526 | (char *) "config", NULL | |
14527 | }; | |
14528 | ||
14529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
14530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14532 | { | |
14533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14534 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14535 | ||
14536 | wxPyEndAllowThreads(__tstate); | |
14537 | if (PyErr_Occurred()) SWIG_fail; | |
14538 | } | |
14539 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14540 | return resultobj; | |
14541 | fail: | |
14542 | return NULL; | |
14543 | } | |
14544 | ||
14545 | ||
14546 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14547 | PyObject *resultobj; | |
14548 | bool arg1 = (bool) True ; | |
14549 | wxConfigBase *result; | |
14550 | PyObject * obj0 = 0 ; | |
14551 | char *kwnames[] = { | |
14552 | (char *) "createOnDemand", NULL | |
14553 | }; | |
14554 | ||
14555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14556 | if (obj0) { | |
14557 | arg1 = (bool) SWIG_AsBool(obj0); | |
14558 | if (PyErr_Occurred()) SWIG_fail; | |
14559 | } | |
14560 | { | |
14561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14562 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14563 | ||
14564 | wxPyEndAllowThreads(__tstate); | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
14567 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14568 | return resultobj; | |
14569 | fail: | |
14570 | return NULL; | |
14571 | } | |
14572 | ||
14573 | ||
14574 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14575 | PyObject *resultobj; | |
14576 | wxConfigBase *result; | |
14577 | char *kwnames[] = { | |
14578 | NULL | |
14579 | }; | |
14580 | ||
14581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14582 | { | |
14583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14584 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14585 | ||
14586 | wxPyEndAllowThreads(__tstate); | |
14587 | if (PyErr_Occurred()) SWIG_fail; | |
14588 | } | |
14589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14590 | return resultobj; | |
14591 | fail: | |
14592 | return NULL; | |
14593 | } | |
14594 | ||
14595 | ||
14596 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14597 | PyObject *resultobj; | |
14598 | char *kwnames[] = { | |
14599 | NULL | |
14600 | }; | |
14601 | ||
14602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14603 | { | |
14604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14605 | wxConfigBase::DontCreateOnDemand(); | |
14606 | ||
14607 | wxPyEndAllowThreads(__tstate); | |
14608 | if (PyErr_Occurred()) SWIG_fail; | |
14609 | } | |
14610 | Py_INCREF(Py_None); resultobj = Py_None; | |
14611 | return resultobj; | |
14612 | fail: | |
14613 | return NULL; | |
14614 | } | |
14615 | ||
14616 | ||
14617 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14618 | PyObject *resultobj; | |
14619 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14620 | wxString *arg2 = 0 ; | |
14621 | bool temp2 = False ; | |
14622 | PyObject * obj0 = 0 ; | |
14623 | PyObject * obj1 = 0 ; | |
14624 | char *kwnames[] = { | |
14625 | (char *) "self",(char *) "path", NULL | |
14626 | }; | |
14627 | ||
14628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
14629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14631 | { | |
14632 | arg2 = wxString_in_helper(obj1); | |
14633 | if (arg2 == NULL) SWIG_fail; | |
14634 | temp2 = True; | |
14635 | } | |
14636 | { | |
14637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14638 | (arg1)->SetPath((wxString const &)*arg2); | |
14639 | ||
14640 | wxPyEndAllowThreads(__tstate); | |
14641 | if (PyErr_Occurred()) SWIG_fail; | |
14642 | } | |
14643 | Py_INCREF(Py_None); resultobj = Py_None; | |
14644 | { | |
14645 | if (temp2) | |
14646 | delete arg2; | |
14647 | } | |
14648 | return resultobj; | |
14649 | fail: | |
14650 | { | |
14651 | if (temp2) | |
14652 | delete arg2; | |
14653 | } | |
14654 | return NULL; | |
14655 | } | |
14656 | ||
14657 | ||
14658 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14659 | PyObject *resultobj; | |
14660 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14661 | wxString *result; | |
14662 | PyObject * obj0 = 0 ; | |
14663 | char *kwnames[] = { | |
14664 | (char *) "self", NULL | |
14665 | }; | |
14666 | ||
14667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
14668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14670 | { | |
14671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14672 | { | |
14673 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14674 | result = (wxString *) &_result_ref; | |
14675 | } | |
14676 | ||
14677 | wxPyEndAllowThreads(__tstate); | |
14678 | if (PyErr_Occurred()) SWIG_fail; | |
14679 | } | |
14680 | { | |
14681 | #if wxUSE_UNICODE | |
14682 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14683 | #else | |
14684 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14685 | #endif | |
14686 | } | |
14687 | return resultobj; | |
14688 | fail: | |
14689 | return NULL; | |
14690 | } | |
14691 | ||
14692 | ||
14693 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14694 | PyObject *resultobj; | |
14695 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14696 | PyObject *result; | |
14697 | PyObject * obj0 = 0 ; | |
14698 | char *kwnames[] = { | |
14699 | (char *) "self", NULL | |
14700 | }; | |
14701 | ||
14702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
14703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14705 | { | |
14706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14707 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14708 | ||
14709 | wxPyEndAllowThreads(__tstate); | |
14710 | if (PyErr_Occurred()) SWIG_fail; | |
14711 | } | |
14712 | resultobj = result; | |
14713 | return resultobj; | |
14714 | fail: | |
14715 | return NULL; | |
14716 | } | |
14717 | ||
14718 | ||
14719 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14720 | PyObject *resultobj; | |
14721 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14722 | long arg2 ; | |
14723 | PyObject *result; | |
14724 | PyObject * obj0 = 0 ; | |
14725 | PyObject * obj1 = 0 ; | |
14726 | char *kwnames[] = { | |
14727 | (char *) "self",(char *) "index", NULL | |
14728 | }; | |
14729 | ||
14730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
14731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14733 | arg2 = (long) SWIG_AsLong(obj1); | |
14734 | if (PyErr_Occurred()) SWIG_fail; | |
14735 | { | |
14736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14737 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14738 | ||
14739 | wxPyEndAllowThreads(__tstate); | |
14740 | if (PyErr_Occurred()) SWIG_fail; | |
14741 | } | |
14742 | resultobj = result; | |
14743 | return resultobj; | |
14744 | fail: | |
14745 | return NULL; | |
14746 | } | |
14747 | ||
14748 | ||
14749 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14750 | PyObject *resultobj; | |
14751 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14752 | PyObject *result; | |
14753 | PyObject * obj0 = 0 ; | |
14754 | char *kwnames[] = { | |
14755 | (char *) "self", NULL | |
14756 | }; | |
14757 | ||
14758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
14759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14761 | { | |
14762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14763 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14764 | ||
14765 | wxPyEndAllowThreads(__tstate); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
14767 | } | |
14768 | resultobj = result; | |
14769 | return resultobj; | |
14770 | fail: | |
14771 | return NULL; | |
14772 | } | |
14773 | ||
14774 | ||
14775 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14776 | PyObject *resultobj; | |
14777 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14778 | long arg2 ; | |
14779 | PyObject *result; | |
14780 | PyObject * obj0 = 0 ; | |
14781 | PyObject * obj1 = 0 ; | |
14782 | char *kwnames[] = { | |
14783 | (char *) "self",(char *) "index", NULL | |
14784 | }; | |
14785 | ||
14786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
14787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14789 | arg2 = (long) SWIG_AsLong(obj1); | |
14790 | if (PyErr_Occurred()) SWIG_fail; | |
14791 | { | |
14792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14793 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14794 | ||
14795 | wxPyEndAllowThreads(__tstate); | |
14796 | if (PyErr_Occurred()) SWIG_fail; | |
14797 | } | |
14798 | resultobj = result; | |
14799 | return resultobj; | |
14800 | fail: | |
14801 | return NULL; | |
14802 | } | |
14803 | ||
14804 | ||
14805 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14806 | PyObject *resultobj; | |
14807 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14808 | bool arg2 = (bool) False ; | |
14809 | size_t result; | |
14810 | PyObject * obj0 = 0 ; | |
14811 | PyObject * obj1 = 0 ; | |
14812 | char *kwnames[] = { | |
14813 | (char *) "self",(char *) "recursive", NULL | |
14814 | }; | |
14815 | ||
14816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
14817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14819 | if (obj1) { | |
14820 | arg2 = (bool) SWIG_AsBool(obj1); | |
14821 | if (PyErr_Occurred()) SWIG_fail; | |
14822 | } | |
14823 | { | |
14824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14825 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14826 | ||
14827 | wxPyEndAllowThreads(__tstate); | |
14828 | if (PyErr_Occurred()) SWIG_fail; | |
14829 | } | |
14830 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14831 | return resultobj; | |
14832 | fail: | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14838 | PyObject *resultobj; | |
14839 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14840 | bool arg2 = (bool) False ; | |
14841 | size_t result; | |
14842 | PyObject * obj0 = 0 ; | |
14843 | PyObject * obj1 = 0 ; | |
14844 | char *kwnames[] = { | |
14845 | (char *) "self",(char *) "recursive", NULL | |
14846 | }; | |
14847 | ||
14848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
14849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14851 | if (obj1) { | |
14852 | arg2 = (bool) SWIG_AsBool(obj1); | |
14853 | if (PyErr_Occurred()) SWIG_fail; | |
14854 | } | |
14855 | { | |
14856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14857 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14858 | ||
14859 | wxPyEndAllowThreads(__tstate); | |
14860 | if (PyErr_Occurred()) SWIG_fail; | |
14861 | } | |
14862 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14863 | return resultobj; | |
14864 | fail: | |
14865 | return NULL; | |
14866 | } | |
14867 | ||
14868 | ||
14869 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14870 | PyObject *resultobj; | |
14871 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14872 | wxString *arg2 = 0 ; | |
14873 | bool result; | |
14874 | bool temp2 = False ; | |
14875 | PyObject * obj0 = 0 ; | |
14876 | PyObject * obj1 = 0 ; | |
14877 | char *kwnames[] = { | |
14878 | (char *) "self",(char *) "name", NULL | |
14879 | }; | |
14880 | ||
14881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
14882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14884 | { | |
14885 | arg2 = wxString_in_helper(obj1); | |
14886 | if (arg2 == NULL) SWIG_fail; | |
14887 | temp2 = True; | |
14888 | } | |
14889 | { | |
14890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14891 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
14892 | ||
14893 | wxPyEndAllowThreads(__tstate); | |
14894 | if (PyErr_Occurred()) SWIG_fail; | |
14895 | } | |
14896 | { | |
14897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14898 | } | |
14899 | { | |
14900 | if (temp2) | |
14901 | delete arg2; | |
14902 | } | |
14903 | return resultobj; | |
14904 | fail: | |
14905 | { | |
14906 | if (temp2) | |
14907 | delete arg2; | |
14908 | } | |
14909 | return NULL; | |
14910 | } | |
14911 | ||
14912 | ||
14913 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14914 | PyObject *resultobj; | |
14915 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14916 | wxString *arg2 = 0 ; | |
14917 | bool result; | |
14918 | bool temp2 = False ; | |
14919 | PyObject * obj0 = 0 ; | |
14920 | PyObject * obj1 = 0 ; | |
14921 | char *kwnames[] = { | |
14922 | (char *) "self",(char *) "name", NULL | |
14923 | }; | |
14924 | ||
14925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
14926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14928 | { | |
14929 | arg2 = wxString_in_helper(obj1); | |
14930 | if (arg2 == NULL) SWIG_fail; | |
14931 | temp2 = True; | |
14932 | } | |
14933 | { | |
14934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14935 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
14936 | ||
14937 | wxPyEndAllowThreads(__tstate); | |
14938 | if (PyErr_Occurred()) SWIG_fail; | |
14939 | } | |
14940 | { | |
14941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14942 | } | |
14943 | { | |
14944 | if (temp2) | |
14945 | delete arg2; | |
14946 | } | |
14947 | return resultobj; | |
14948 | fail: | |
14949 | { | |
14950 | if (temp2) | |
14951 | delete arg2; | |
14952 | } | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
14957 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14958 | PyObject *resultobj; | |
14959 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14960 | wxString *arg2 = 0 ; | |
14961 | bool result; | |
14962 | bool temp2 = False ; | |
14963 | PyObject * obj0 = 0 ; | |
14964 | PyObject * obj1 = 0 ; | |
14965 | char *kwnames[] = { | |
14966 | (char *) "self",(char *) "name", NULL | |
14967 | }; | |
14968 | ||
14969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
14970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14972 | { | |
14973 | arg2 = wxString_in_helper(obj1); | |
14974 | if (arg2 == NULL) SWIG_fail; | |
14975 | temp2 = True; | |
14976 | } | |
14977 | { | |
14978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14979 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
14980 | ||
14981 | wxPyEndAllowThreads(__tstate); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | } | |
14984 | { | |
14985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14986 | } | |
14987 | { | |
14988 | if (temp2) | |
14989 | delete arg2; | |
14990 | } | |
14991 | return resultobj; | |
14992 | fail: | |
14993 | { | |
14994 | if (temp2) | |
14995 | delete arg2; | |
14996 | } | |
14997 | return NULL; | |
14998 | } | |
14999 | ||
15000 | ||
15001 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15002 | PyObject *resultobj; | |
15003 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15004 | wxString *arg2 = 0 ; | |
15005 | int result; | |
15006 | bool temp2 = False ; | |
15007 | PyObject * obj0 = 0 ; | |
15008 | PyObject * obj1 = 0 ; | |
15009 | char *kwnames[] = { | |
15010 | (char *) "self",(char *) "name", NULL | |
15011 | }; | |
15012 | ||
15013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15016 | { | |
15017 | arg2 = wxString_in_helper(obj1); | |
15018 | if (arg2 == NULL) SWIG_fail; | |
15019 | temp2 = True; | |
15020 | } | |
15021 | { | |
15022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15023 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15024 | ||
15025 | wxPyEndAllowThreads(__tstate); | |
15026 | if (PyErr_Occurred()) SWIG_fail; | |
15027 | } | |
15028 | resultobj = SWIG_FromInt((int)result); | |
15029 | { | |
15030 | if (temp2) | |
15031 | delete arg2; | |
15032 | } | |
15033 | return resultobj; | |
15034 | fail: | |
15035 | { | |
15036 | if (temp2) | |
15037 | delete arg2; | |
15038 | } | |
15039 | return NULL; | |
15040 | } | |
15041 | ||
15042 | ||
15043 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15044 | PyObject *resultobj; | |
15045 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15046 | wxString *arg2 = 0 ; | |
15047 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15048 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15049 | wxString result; | |
15050 | bool temp2 = False ; | |
15051 | bool temp3 = False ; | |
15052 | PyObject * obj0 = 0 ; | |
15053 | PyObject * obj1 = 0 ; | |
15054 | PyObject * obj2 = 0 ; | |
15055 | char *kwnames[] = { | |
15056 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15057 | }; | |
15058 | ||
15059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15062 | { | |
15063 | arg2 = wxString_in_helper(obj1); | |
15064 | if (arg2 == NULL) SWIG_fail; | |
15065 | temp2 = True; | |
15066 | } | |
15067 | if (obj2) { | |
15068 | { | |
15069 | arg3 = wxString_in_helper(obj2); | |
15070 | if (arg3 == NULL) SWIG_fail; | |
15071 | temp3 = True; | |
15072 | } | |
15073 | } | |
15074 | { | |
15075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15076 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15077 | ||
15078 | wxPyEndAllowThreads(__tstate); | |
15079 | if (PyErr_Occurred()) SWIG_fail; | |
15080 | } | |
15081 | { | |
15082 | #if wxUSE_UNICODE | |
15083 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15084 | #else | |
15085 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15086 | #endif | |
15087 | } | |
15088 | { | |
15089 | if (temp2) | |
15090 | delete arg2; | |
15091 | } | |
15092 | { | |
15093 | if (temp3) | |
15094 | delete arg3; | |
15095 | } | |
15096 | return resultobj; | |
15097 | fail: | |
15098 | { | |
15099 | if (temp2) | |
15100 | delete arg2; | |
15101 | } | |
15102 | { | |
15103 | if (temp3) | |
15104 | delete arg3; | |
15105 | } | |
15106 | return NULL; | |
15107 | } | |
15108 | ||
15109 | ||
15110 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15111 | PyObject *resultobj; | |
15112 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15113 | wxString *arg2 = 0 ; | |
15114 | long arg3 = (long) 0 ; | |
15115 | long result; | |
15116 | bool temp2 = False ; | |
15117 | PyObject * obj0 = 0 ; | |
15118 | PyObject * obj1 = 0 ; | |
15119 | PyObject * obj2 = 0 ; | |
15120 | char *kwnames[] = { | |
15121 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15122 | }; | |
15123 | ||
15124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15127 | { | |
15128 | arg2 = wxString_in_helper(obj1); | |
15129 | if (arg2 == NULL) SWIG_fail; | |
15130 | temp2 = True; | |
15131 | } | |
15132 | if (obj2) { | |
15133 | arg3 = (long) SWIG_AsLong(obj2); | |
15134 | if (PyErr_Occurred()) SWIG_fail; | |
15135 | } | |
15136 | { | |
15137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15138 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15139 | ||
15140 | wxPyEndAllowThreads(__tstate); | |
15141 | if (PyErr_Occurred()) SWIG_fail; | |
15142 | } | |
15143 | resultobj = SWIG_FromLong((long)result); | |
15144 | { | |
15145 | if (temp2) | |
15146 | delete arg2; | |
15147 | } | |
15148 | return resultobj; | |
15149 | fail: | |
15150 | { | |
15151 | if (temp2) | |
15152 | delete arg2; | |
15153 | } | |
15154 | return NULL; | |
15155 | } | |
15156 | ||
15157 | ||
15158 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15159 | PyObject *resultobj; | |
15160 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15161 | wxString *arg2 = 0 ; | |
15162 | double arg3 = (double) 0.0 ; | |
15163 | double result; | |
15164 | bool temp2 = False ; | |
15165 | PyObject * obj0 = 0 ; | |
15166 | PyObject * obj1 = 0 ; | |
15167 | PyObject * obj2 = 0 ; | |
15168 | char *kwnames[] = { | |
15169 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15170 | }; | |
15171 | ||
15172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15175 | { | |
15176 | arg2 = wxString_in_helper(obj1); | |
15177 | if (arg2 == NULL) SWIG_fail; | |
15178 | temp2 = True; | |
15179 | } | |
15180 | if (obj2) { | |
15181 | arg3 = (double) SWIG_AsDouble(obj2); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
15184 | { | |
15185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15186 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15187 | ||
15188 | wxPyEndAllowThreads(__tstate); | |
15189 | if (PyErr_Occurred()) SWIG_fail; | |
15190 | } | |
15191 | resultobj = SWIG_FromDouble((double)result); | |
15192 | { | |
15193 | if (temp2) | |
15194 | delete arg2; | |
15195 | } | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | { | |
15199 | if (temp2) | |
15200 | delete arg2; | |
15201 | } | |
15202 | return NULL; | |
15203 | } | |
15204 | ||
15205 | ||
15206 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15207 | PyObject *resultobj; | |
15208 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15209 | wxString *arg2 = 0 ; | |
15210 | bool arg3 = (bool) False ; | |
15211 | bool result; | |
15212 | bool temp2 = False ; | |
15213 | PyObject * obj0 = 0 ; | |
15214 | PyObject * obj1 = 0 ; | |
15215 | PyObject * obj2 = 0 ; | |
15216 | char *kwnames[] = { | |
15217 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15218 | }; | |
15219 | ||
15220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15223 | { | |
15224 | arg2 = wxString_in_helper(obj1); | |
15225 | if (arg2 == NULL) SWIG_fail; | |
15226 | temp2 = True; | |
15227 | } | |
15228 | if (obj2) { | |
15229 | arg3 = (bool) SWIG_AsBool(obj2); | |
15230 | if (PyErr_Occurred()) SWIG_fail; | |
15231 | } | |
15232 | { | |
15233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15234 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15235 | ||
15236 | wxPyEndAllowThreads(__tstate); | |
15237 | if (PyErr_Occurred()) SWIG_fail; | |
15238 | } | |
15239 | { | |
15240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15241 | } | |
15242 | { | |
15243 | if (temp2) | |
15244 | delete arg2; | |
15245 | } | |
15246 | return resultobj; | |
15247 | fail: | |
15248 | { | |
15249 | if (temp2) | |
15250 | delete arg2; | |
15251 | } | |
15252 | return NULL; | |
15253 | } | |
15254 | ||
15255 | ||
15256 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15257 | PyObject *resultobj; | |
15258 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15259 | wxString *arg2 = 0 ; | |
15260 | wxString *arg3 = 0 ; | |
15261 | bool result; | |
15262 | bool temp2 = False ; | |
15263 | bool temp3 = False ; | |
15264 | PyObject * obj0 = 0 ; | |
15265 | PyObject * obj1 = 0 ; | |
15266 | PyObject * obj2 = 0 ; | |
15267 | char *kwnames[] = { | |
15268 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15269 | }; | |
15270 | ||
15271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15274 | { | |
15275 | arg2 = wxString_in_helper(obj1); | |
15276 | if (arg2 == NULL) SWIG_fail; | |
15277 | temp2 = True; | |
15278 | } | |
15279 | { | |
15280 | arg3 = wxString_in_helper(obj2); | |
15281 | if (arg3 == NULL) SWIG_fail; | |
15282 | temp3 = True; | |
15283 | } | |
15284 | { | |
15285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15286 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15287 | ||
15288 | wxPyEndAllowThreads(__tstate); | |
15289 | if (PyErr_Occurred()) SWIG_fail; | |
15290 | } | |
15291 | { | |
15292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15293 | } | |
15294 | { | |
15295 | if (temp2) | |
15296 | delete arg2; | |
15297 | } | |
15298 | { | |
15299 | if (temp3) | |
15300 | delete arg3; | |
15301 | } | |
15302 | return resultobj; | |
15303 | fail: | |
15304 | { | |
15305 | if (temp2) | |
15306 | delete arg2; | |
15307 | } | |
15308 | { | |
15309 | if (temp3) | |
15310 | delete arg3; | |
15311 | } | |
15312 | return NULL; | |
15313 | } | |
15314 | ||
15315 | ||
15316 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15317 | PyObject *resultobj; | |
15318 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15319 | wxString *arg2 = 0 ; | |
15320 | long arg3 ; | |
15321 | bool result; | |
15322 | bool temp2 = False ; | |
15323 | PyObject * obj0 = 0 ; | |
15324 | PyObject * obj1 = 0 ; | |
15325 | PyObject * obj2 = 0 ; | |
15326 | char *kwnames[] = { | |
15327 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15328 | }; | |
15329 | ||
15330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15333 | { | |
15334 | arg2 = wxString_in_helper(obj1); | |
15335 | if (arg2 == NULL) SWIG_fail; | |
15336 | temp2 = True; | |
15337 | } | |
15338 | arg3 = (long) SWIG_AsLong(obj2); | |
15339 | if (PyErr_Occurred()) SWIG_fail; | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15343 | ||
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | { | |
15348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15349 | } | |
15350 | { | |
15351 | if (temp2) | |
15352 | delete arg2; | |
15353 | } | |
15354 | return resultobj; | |
15355 | fail: | |
15356 | { | |
15357 | if (temp2) | |
15358 | delete arg2; | |
15359 | } | |
15360 | return NULL; | |
15361 | } | |
15362 | ||
15363 | ||
15364 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15365 | PyObject *resultobj; | |
15366 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15367 | wxString *arg2 = 0 ; | |
15368 | double arg3 ; | |
15369 | bool result; | |
15370 | bool temp2 = False ; | |
15371 | PyObject * obj0 = 0 ; | |
15372 | PyObject * obj1 = 0 ; | |
15373 | PyObject * obj2 = 0 ; | |
15374 | char *kwnames[] = { | |
15375 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15376 | }; | |
15377 | ||
15378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15381 | { | |
15382 | arg2 = wxString_in_helper(obj1); | |
15383 | if (arg2 == NULL) SWIG_fail; | |
15384 | temp2 = True; | |
15385 | } | |
15386 | arg3 = (double) SWIG_AsDouble(obj2); | |
15387 | if (PyErr_Occurred()) SWIG_fail; | |
15388 | { | |
15389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15390 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15391 | ||
15392 | wxPyEndAllowThreads(__tstate); | |
15393 | if (PyErr_Occurred()) SWIG_fail; | |
15394 | } | |
15395 | { | |
15396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15397 | } | |
15398 | { | |
15399 | if (temp2) | |
15400 | delete arg2; | |
15401 | } | |
15402 | return resultobj; | |
15403 | fail: | |
15404 | { | |
15405 | if (temp2) | |
15406 | delete arg2; | |
15407 | } | |
15408 | return NULL; | |
15409 | } | |
15410 | ||
15411 | ||
15412 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15413 | PyObject *resultobj; | |
15414 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15415 | wxString *arg2 = 0 ; | |
15416 | bool arg3 ; | |
15417 | bool result; | |
15418 | bool temp2 = False ; | |
15419 | PyObject * obj0 = 0 ; | |
15420 | PyObject * obj1 = 0 ; | |
15421 | PyObject * obj2 = 0 ; | |
15422 | char *kwnames[] = { | |
15423 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15424 | }; | |
15425 | ||
15426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15429 | { | |
15430 | arg2 = wxString_in_helper(obj1); | |
15431 | if (arg2 == NULL) SWIG_fail; | |
15432 | temp2 = True; | |
15433 | } | |
15434 | arg3 = (bool) SWIG_AsBool(obj2); | |
15435 | if (PyErr_Occurred()) SWIG_fail; | |
15436 | { | |
15437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15438 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15439 | ||
15440 | wxPyEndAllowThreads(__tstate); | |
15441 | if (PyErr_Occurred()) SWIG_fail; | |
15442 | } | |
15443 | { | |
15444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15445 | } | |
15446 | { | |
15447 | if (temp2) | |
15448 | delete arg2; | |
15449 | } | |
15450 | return resultobj; | |
15451 | fail: | |
15452 | { | |
15453 | if (temp2) | |
15454 | delete arg2; | |
15455 | } | |
15456 | return NULL; | |
15457 | } | |
15458 | ||
15459 | ||
15460 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15461 | PyObject *resultobj; | |
15462 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15463 | bool arg2 = (bool) False ; | |
15464 | bool result; | |
15465 | PyObject * obj0 = 0 ; | |
15466 | PyObject * obj1 = 0 ; | |
15467 | char *kwnames[] = { | |
15468 | (char *) "self",(char *) "currentOnly", NULL | |
15469 | }; | |
15470 | ||
15471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15474 | if (obj1) { | |
15475 | arg2 = (bool) SWIG_AsBool(obj1); | |
15476 | if (PyErr_Occurred()) SWIG_fail; | |
15477 | } | |
15478 | { | |
15479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15480 | result = (bool)(arg1)->Flush(arg2); | |
15481 | ||
15482 | wxPyEndAllowThreads(__tstate); | |
15483 | if (PyErr_Occurred()) SWIG_fail; | |
15484 | } | |
15485 | { | |
15486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15487 | } | |
15488 | return resultobj; | |
15489 | fail: | |
15490 | return NULL; | |
15491 | } | |
15492 | ||
15493 | ||
15494 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15495 | PyObject *resultobj; | |
15496 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15497 | wxString *arg2 = 0 ; | |
15498 | wxString *arg3 = 0 ; | |
15499 | bool result; | |
15500 | bool temp2 = False ; | |
15501 | bool temp3 = False ; | |
15502 | PyObject * obj0 = 0 ; | |
15503 | PyObject * obj1 = 0 ; | |
15504 | PyObject * obj2 = 0 ; | |
15505 | char *kwnames[] = { | |
15506 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15507 | }; | |
15508 | ||
15509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15512 | { | |
15513 | arg2 = wxString_in_helper(obj1); | |
15514 | if (arg2 == NULL) SWIG_fail; | |
15515 | temp2 = True; | |
15516 | } | |
15517 | { | |
15518 | arg3 = wxString_in_helper(obj2); | |
15519 | if (arg3 == NULL) SWIG_fail; | |
15520 | temp3 = True; | |
15521 | } | |
15522 | { | |
15523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15524 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15525 | ||
15526 | wxPyEndAllowThreads(__tstate); | |
15527 | if (PyErr_Occurred()) SWIG_fail; | |
15528 | } | |
15529 | { | |
15530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15531 | } | |
15532 | { | |
15533 | if (temp2) | |
15534 | delete arg2; | |
15535 | } | |
15536 | { | |
15537 | if (temp3) | |
15538 | delete arg3; | |
15539 | } | |
15540 | return resultobj; | |
15541 | fail: | |
15542 | { | |
15543 | if (temp2) | |
15544 | delete arg2; | |
15545 | } | |
15546 | { | |
15547 | if (temp3) | |
15548 | delete arg3; | |
15549 | } | |
15550 | return NULL; | |
15551 | } | |
15552 | ||
15553 | ||
15554 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15555 | PyObject *resultobj; | |
15556 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15557 | wxString *arg2 = 0 ; | |
15558 | wxString *arg3 = 0 ; | |
15559 | bool result; | |
15560 | bool temp2 = False ; | |
15561 | bool temp3 = False ; | |
15562 | PyObject * obj0 = 0 ; | |
15563 | PyObject * obj1 = 0 ; | |
15564 | PyObject * obj2 = 0 ; | |
15565 | char *kwnames[] = { | |
15566 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15567 | }; | |
15568 | ||
15569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15572 | { | |
15573 | arg2 = wxString_in_helper(obj1); | |
15574 | if (arg2 == NULL) SWIG_fail; | |
15575 | temp2 = True; | |
15576 | } | |
15577 | { | |
15578 | arg3 = wxString_in_helper(obj2); | |
15579 | if (arg3 == NULL) SWIG_fail; | |
15580 | temp3 = True; | |
15581 | } | |
15582 | { | |
15583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15584 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15585 | ||
15586 | wxPyEndAllowThreads(__tstate); | |
15587 | if (PyErr_Occurred()) SWIG_fail; | |
15588 | } | |
15589 | { | |
15590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15591 | } | |
15592 | { | |
15593 | if (temp2) | |
15594 | delete arg2; | |
15595 | } | |
15596 | { | |
15597 | if (temp3) | |
15598 | delete arg3; | |
15599 | } | |
15600 | return resultobj; | |
15601 | fail: | |
15602 | { | |
15603 | if (temp2) | |
15604 | delete arg2; | |
15605 | } | |
15606 | { | |
15607 | if (temp3) | |
15608 | delete arg3; | |
15609 | } | |
15610 | return NULL; | |
15611 | } | |
15612 | ||
15613 | ||
15614 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15615 | PyObject *resultobj; | |
15616 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15617 | wxString *arg2 = 0 ; | |
15618 | bool arg3 = (bool) True ; | |
15619 | bool result; | |
15620 | bool temp2 = False ; | |
15621 | PyObject * obj0 = 0 ; | |
15622 | PyObject * obj1 = 0 ; | |
15623 | PyObject * obj2 = 0 ; | |
15624 | char *kwnames[] = { | |
15625 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
15626 | }; | |
15627 | ||
15628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15631 | { | |
15632 | arg2 = wxString_in_helper(obj1); | |
15633 | if (arg2 == NULL) SWIG_fail; | |
15634 | temp2 = True; | |
15635 | } | |
15636 | if (obj2) { | |
15637 | arg3 = (bool) SWIG_AsBool(obj2); | |
15638 | if (PyErr_Occurred()) SWIG_fail; | |
15639 | } | |
15640 | { | |
15641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15642 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15643 | ||
15644 | wxPyEndAllowThreads(__tstate); | |
15645 | if (PyErr_Occurred()) SWIG_fail; | |
15646 | } | |
15647 | { | |
15648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15649 | } | |
15650 | { | |
15651 | if (temp2) | |
15652 | delete arg2; | |
15653 | } | |
15654 | return resultobj; | |
15655 | fail: | |
15656 | { | |
15657 | if (temp2) | |
15658 | delete arg2; | |
15659 | } | |
15660 | return NULL; | |
15661 | } | |
15662 | ||
15663 | ||
15664 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15665 | PyObject *resultobj; | |
15666 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15667 | wxString *arg2 = 0 ; | |
15668 | bool result; | |
15669 | bool temp2 = False ; | |
15670 | PyObject * obj0 = 0 ; | |
15671 | PyObject * obj1 = 0 ; | |
15672 | char *kwnames[] = { | |
15673 | (char *) "self",(char *) "key", NULL | |
15674 | }; | |
15675 | ||
15676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15679 | { | |
15680 | arg2 = wxString_in_helper(obj1); | |
15681 | if (arg2 == NULL) SWIG_fail; | |
15682 | temp2 = True; | |
15683 | } | |
15684 | { | |
15685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15686 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15687 | ||
15688 | wxPyEndAllowThreads(__tstate); | |
15689 | if (PyErr_Occurred()) SWIG_fail; | |
15690 | } | |
15691 | { | |
15692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15693 | } | |
15694 | { | |
15695 | if (temp2) | |
15696 | delete arg2; | |
15697 | } | |
15698 | return resultobj; | |
15699 | fail: | |
15700 | { | |
15701 | if (temp2) | |
15702 | delete arg2; | |
15703 | } | |
15704 | return NULL; | |
15705 | } | |
15706 | ||
15707 | ||
15708 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15709 | PyObject *resultobj; | |
15710 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15711 | bool result; | |
15712 | PyObject * obj0 = 0 ; | |
15713 | char *kwnames[] = { | |
15714 | (char *) "self", NULL | |
15715 | }; | |
15716 | ||
15717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15720 | { | |
15721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15722 | result = (bool)(arg1)->DeleteAll(); | |
15723 | ||
15724 | wxPyEndAllowThreads(__tstate); | |
15725 | if (PyErr_Occurred()) SWIG_fail; | |
15726 | } | |
15727 | { | |
15728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15729 | } | |
15730 | return resultobj; | |
15731 | fail: | |
15732 | return NULL; | |
15733 | } | |
15734 | ||
15735 | ||
15736 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15737 | PyObject *resultobj; | |
15738 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15739 | bool arg2 = (bool) True ; | |
15740 | PyObject * obj0 = 0 ; | |
15741 | PyObject * obj1 = 0 ; | |
15742 | char *kwnames[] = { | |
15743 | (char *) "self",(char *) "doIt", NULL | |
15744 | }; | |
15745 | ||
15746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15749 | if (obj1) { | |
15750 | arg2 = (bool) SWIG_AsBool(obj1); | |
15751 | if (PyErr_Occurred()) SWIG_fail; | |
15752 | } | |
15753 | { | |
15754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15755 | (arg1)->SetExpandEnvVars(arg2); | |
15756 | ||
15757 | wxPyEndAllowThreads(__tstate); | |
15758 | if (PyErr_Occurred()) SWIG_fail; | |
15759 | } | |
15760 | Py_INCREF(Py_None); resultobj = Py_None; | |
15761 | return resultobj; | |
15762 | fail: | |
15763 | return NULL; | |
15764 | } | |
15765 | ||
15766 | ||
15767 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15768 | PyObject *resultobj; | |
15769 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15770 | bool result; | |
15771 | PyObject * obj0 = 0 ; | |
15772 | char *kwnames[] = { | |
15773 | (char *) "self", NULL | |
15774 | }; | |
15775 | ||
15776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
15777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15779 | { | |
15780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15781 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
15782 | ||
15783 | wxPyEndAllowThreads(__tstate); | |
15784 | if (PyErr_Occurred()) SWIG_fail; | |
15785 | } | |
15786 | { | |
15787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15788 | } | |
15789 | return resultobj; | |
15790 | fail: | |
15791 | return NULL; | |
15792 | } | |
15793 | ||
15794 | ||
15795 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15796 | PyObject *resultobj; | |
15797 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15798 | bool arg2 = (bool) True ; | |
15799 | PyObject * obj0 = 0 ; | |
15800 | PyObject * obj1 = 0 ; | |
15801 | char *kwnames[] = { | |
15802 | (char *) "self",(char *) "doIt", NULL | |
15803 | }; | |
15804 | ||
15805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15808 | if (obj1) { | |
15809 | arg2 = (bool) SWIG_AsBool(obj1); | |
15810 | if (PyErr_Occurred()) SWIG_fail; | |
15811 | } | |
15812 | { | |
15813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15814 | (arg1)->SetRecordDefaults(arg2); | |
15815 | ||
15816 | wxPyEndAllowThreads(__tstate); | |
15817 | if (PyErr_Occurred()) SWIG_fail; | |
15818 | } | |
15819 | Py_INCREF(Py_None); resultobj = Py_None; | |
15820 | return resultobj; | |
15821 | fail: | |
15822 | return NULL; | |
15823 | } | |
15824 | ||
15825 | ||
15826 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15827 | PyObject *resultobj; | |
15828 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15829 | bool result; | |
15830 | PyObject * obj0 = 0 ; | |
15831 | char *kwnames[] = { | |
15832 | (char *) "self", NULL | |
15833 | }; | |
15834 | ||
15835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15838 | { | |
15839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15840 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15841 | ||
15842 | wxPyEndAllowThreads(__tstate); | |
15843 | if (PyErr_Occurred()) SWIG_fail; | |
15844 | } | |
15845 | { | |
15846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15847 | } | |
15848 | return resultobj; | |
15849 | fail: | |
15850 | return NULL; | |
15851 | } | |
15852 | ||
15853 | ||
15854 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15855 | PyObject *resultobj; | |
15856 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15857 | wxString *arg2 = 0 ; | |
15858 | wxString result; | |
15859 | bool temp2 = False ; | |
15860 | PyObject * obj0 = 0 ; | |
15861 | PyObject * obj1 = 0 ; | |
15862 | char *kwnames[] = { | |
15863 | (char *) "self",(char *) "str", NULL | |
15864 | }; | |
15865 | ||
15866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15869 | { | |
15870 | arg2 = wxString_in_helper(obj1); | |
15871 | if (arg2 == NULL) SWIG_fail; | |
15872 | temp2 = True; | |
15873 | } | |
15874 | { | |
15875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15876 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15877 | ||
15878 | wxPyEndAllowThreads(__tstate); | |
15879 | if (PyErr_Occurred()) SWIG_fail; | |
15880 | } | |
15881 | { | |
15882 | #if wxUSE_UNICODE | |
15883 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15884 | #else | |
15885 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15886 | #endif | |
15887 | } | |
15888 | { | |
15889 | if (temp2) | |
15890 | delete arg2; | |
15891 | } | |
15892 | return resultobj; | |
15893 | fail: | |
15894 | { | |
15895 | if (temp2) | |
15896 | delete arg2; | |
15897 | } | |
15898 | return NULL; | |
15899 | } | |
15900 | ||
15901 | ||
15902 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15903 | PyObject *resultobj; | |
15904 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15905 | wxString result; | |
15906 | PyObject * obj0 = 0 ; | |
15907 | char *kwnames[] = { | |
15908 | (char *) "self", NULL | |
15909 | }; | |
15910 | ||
15911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15914 | { | |
15915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15916 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
15917 | ||
15918 | wxPyEndAllowThreads(__tstate); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | { | |
15922 | #if wxUSE_UNICODE | |
15923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15924 | #else | |
15925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15926 | #endif | |
15927 | } | |
15928 | return resultobj; | |
15929 | fail: | |
15930 | return NULL; | |
15931 | } | |
15932 | ||
15933 | ||
15934 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15935 | PyObject *resultobj; | |
15936 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15937 | wxString result; | |
15938 | PyObject * obj0 = 0 ; | |
15939 | char *kwnames[] = { | |
15940 | (char *) "self", NULL | |
15941 | }; | |
15942 | ||
15943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15946 | { | |
15947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15948 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
15949 | ||
15950 | wxPyEndAllowThreads(__tstate); | |
15951 | if (PyErr_Occurred()) SWIG_fail; | |
15952 | } | |
15953 | { | |
15954 | #if wxUSE_UNICODE | |
15955 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15956 | #else | |
15957 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15958 | #endif | |
15959 | } | |
15960 | return resultobj; | |
15961 | fail: | |
15962 | return NULL; | |
15963 | } | |
15964 | ||
15965 | ||
15966 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15967 | PyObject *resultobj; | |
15968 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15969 | wxString *arg2 = 0 ; | |
15970 | bool temp2 = False ; | |
15971 | PyObject * obj0 = 0 ; | |
15972 | PyObject * obj1 = 0 ; | |
15973 | char *kwnames[] = { | |
15974 | (char *) "self",(char *) "appName", NULL | |
15975 | }; | |
15976 | ||
15977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15980 | { | |
15981 | arg2 = wxString_in_helper(obj1); | |
15982 | if (arg2 == NULL) SWIG_fail; | |
15983 | temp2 = True; | |
15984 | } | |
15985 | { | |
15986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15987 | (arg1)->SetAppName((wxString const &)*arg2); | |
15988 | ||
15989 | wxPyEndAllowThreads(__tstate); | |
15990 | if (PyErr_Occurred()) SWIG_fail; | |
15991 | } | |
15992 | Py_INCREF(Py_None); resultobj = Py_None; | |
15993 | { | |
15994 | if (temp2) | |
15995 | delete arg2; | |
15996 | } | |
15997 | return resultobj; | |
15998 | fail: | |
15999 | { | |
16000 | if (temp2) | |
16001 | delete arg2; | |
16002 | } | |
16003 | return NULL; | |
16004 | } | |
16005 | ||
16006 | ||
16007 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16008 | PyObject *resultobj; | |
16009 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16010 | wxString *arg2 = 0 ; | |
16011 | bool temp2 = False ; | |
16012 | PyObject * obj0 = 0 ; | |
16013 | PyObject * obj1 = 0 ; | |
16014 | char *kwnames[] = { | |
16015 | (char *) "self",(char *) "vendorName", NULL | |
16016 | }; | |
16017 | ||
16018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16021 | { | |
16022 | arg2 = wxString_in_helper(obj1); | |
16023 | if (arg2 == NULL) SWIG_fail; | |
16024 | temp2 = True; | |
16025 | } | |
16026 | { | |
16027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16028 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16029 | ||
16030 | wxPyEndAllowThreads(__tstate); | |
16031 | if (PyErr_Occurred()) SWIG_fail; | |
16032 | } | |
16033 | Py_INCREF(Py_None); resultobj = Py_None; | |
16034 | { | |
16035 | if (temp2) | |
16036 | delete arg2; | |
16037 | } | |
16038 | return resultobj; | |
16039 | fail: | |
16040 | { | |
16041 | if (temp2) | |
16042 | delete arg2; | |
16043 | } | |
16044 | return NULL; | |
16045 | } | |
16046 | ||
16047 | ||
16048 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16049 | PyObject *resultobj; | |
16050 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16051 | long arg2 ; | |
16052 | PyObject * obj0 = 0 ; | |
16053 | PyObject * obj1 = 0 ; | |
16054 | char *kwnames[] = { | |
16055 | (char *) "self",(char *) "style", NULL | |
16056 | }; | |
16057 | ||
16058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16061 | arg2 = (long) SWIG_AsLong(obj1); | |
16062 | if (PyErr_Occurred()) SWIG_fail; | |
16063 | { | |
16064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16065 | (arg1)->SetStyle(arg2); | |
16066 | ||
16067 | wxPyEndAllowThreads(__tstate); | |
16068 | if (PyErr_Occurred()) SWIG_fail; | |
16069 | } | |
16070 | Py_INCREF(Py_None); resultobj = Py_None; | |
16071 | return resultobj; | |
16072 | fail: | |
16073 | return NULL; | |
16074 | } | |
16075 | ||
16076 | ||
16077 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16078 | PyObject *resultobj; | |
16079 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16080 | long result; | |
16081 | PyObject * obj0 = 0 ; | |
16082 | char *kwnames[] = { | |
16083 | (char *) "self", NULL | |
16084 | }; | |
16085 | ||
16086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16089 | { | |
16090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16091 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16092 | ||
16093 | wxPyEndAllowThreads(__tstate); | |
16094 | if (PyErr_Occurred()) SWIG_fail; | |
16095 | } | |
16096 | resultobj = SWIG_FromLong((long)result); | |
16097 | return resultobj; | |
16098 | fail: | |
16099 | return NULL; | |
16100 | } | |
16101 | ||
16102 | ||
16103 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16104 | PyObject *obj; | |
16105 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16106 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16107 | Py_INCREF(obj); | |
16108 | return Py_BuildValue((char *)""); | |
16109 | } | |
16110 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16111 | PyObject *resultobj; | |
16112 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16113 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16114 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16115 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16116 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16117 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16118 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16119 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16120 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16121 | wxConfig *result; | |
16122 | bool temp1 = False ; | |
16123 | bool temp2 = False ; | |
16124 | bool temp3 = False ; | |
16125 | bool temp4 = False ; | |
16126 | PyObject * obj0 = 0 ; | |
16127 | PyObject * obj1 = 0 ; | |
16128 | PyObject * obj2 = 0 ; | |
16129 | PyObject * obj3 = 0 ; | |
16130 | PyObject * obj4 = 0 ; | |
16131 | char *kwnames[] = { | |
16132 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16133 | }; | |
16134 | ||
16135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16136 | if (obj0) { | |
16137 | { | |
16138 | arg1 = wxString_in_helper(obj0); | |
16139 | if (arg1 == NULL) SWIG_fail; | |
16140 | temp1 = True; | |
16141 | } | |
16142 | } | |
16143 | if (obj1) { | |
16144 | { | |
16145 | arg2 = wxString_in_helper(obj1); | |
16146 | if (arg2 == NULL) SWIG_fail; | |
16147 | temp2 = True; | |
16148 | } | |
16149 | } | |
16150 | if (obj2) { | |
16151 | { | |
16152 | arg3 = wxString_in_helper(obj2); | |
16153 | if (arg3 == NULL) SWIG_fail; | |
16154 | temp3 = True; | |
16155 | } | |
16156 | } | |
16157 | if (obj3) { | |
16158 | { | |
16159 | arg4 = wxString_in_helper(obj3); | |
16160 | if (arg4 == NULL) SWIG_fail; | |
16161 | temp4 = True; | |
16162 | } | |
16163 | } | |
16164 | if (obj4) { | |
16165 | arg5 = (long) SWIG_AsLong(obj4); | |
16166 | if (PyErr_Occurred()) SWIG_fail; | |
16167 | } | |
16168 | { | |
16169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16170 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16171 | ||
16172 | wxPyEndAllowThreads(__tstate); | |
16173 | if (PyErr_Occurred()) SWIG_fail; | |
16174 | } | |
16175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16176 | { | |
16177 | if (temp1) | |
16178 | delete arg1; | |
16179 | } | |
16180 | { | |
16181 | if (temp2) | |
16182 | delete arg2; | |
16183 | } | |
16184 | { | |
16185 | if (temp3) | |
16186 | delete arg3; | |
16187 | } | |
16188 | { | |
16189 | if (temp4) | |
16190 | delete arg4; | |
16191 | } | |
16192 | return resultobj; | |
16193 | fail: | |
16194 | { | |
16195 | if (temp1) | |
16196 | delete arg1; | |
16197 | } | |
16198 | { | |
16199 | if (temp2) | |
16200 | delete arg2; | |
16201 | } | |
16202 | { | |
16203 | if (temp3) | |
16204 | delete arg3; | |
16205 | } | |
16206 | { | |
16207 | if (temp4) | |
16208 | delete arg4; | |
16209 | } | |
16210 | return NULL; | |
16211 | } | |
16212 | ||
16213 | ||
16214 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16215 | PyObject *resultobj; | |
16216 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16217 | PyObject * obj0 = 0 ; | |
16218 | char *kwnames[] = { | |
16219 | (char *) "self", NULL | |
16220 | }; | |
16221 | ||
16222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
16224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16225 | { | |
16226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16227 | delete arg1; | |
16228 | ||
16229 | wxPyEndAllowThreads(__tstate); | |
16230 | if (PyErr_Occurred()) SWIG_fail; | |
16231 | } | |
16232 | Py_INCREF(Py_None); resultobj = Py_None; | |
16233 | return resultobj; | |
16234 | fail: | |
16235 | return NULL; | |
16236 | } | |
16237 | ||
16238 | ||
16239 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16240 | PyObject *obj; | |
16241 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16242 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16243 | Py_INCREF(obj); | |
16244 | return Py_BuildValue((char *)""); | |
16245 | } | |
16246 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16247 | PyObject *resultobj; | |
16248 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16249 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16250 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16251 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16252 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16253 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16254 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16255 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16256 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16257 | wxFileConfig *result; | |
16258 | bool temp1 = False ; | |
16259 | bool temp2 = False ; | |
16260 | bool temp3 = False ; | |
16261 | bool temp4 = False ; | |
16262 | PyObject * obj0 = 0 ; | |
16263 | PyObject * obj1 = 0 ; | |
16264 | PyObject * obj2 = 0 ; | |
16265 | PyObject * obj3 = 0 ; | |
16266 | PyObject * obj4 = 0 ; | |
16267 | char *kwnames[] = { | |
16268 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16269 | }; | |
16270 | ||
16271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16272 | if (obj0) { | |
16273 | { | |
16274 | arg1 = wxString_in_helper(obj0); | |
16275 | if (arg1 == NULL) SWIG_fail; | |
16276 | temp1 = True; | |
16277 | } | |
16278 | } | |
16279 | if (obj1) { | |
16280 | { | |
16281 | arg2 = wxString_in_helper(obj1); | |
16282 | if (arg2 == NULL) SWIG_fail; | |
16283 | temp2 = True; | |
16284 | } | |
16285 | } | |
16286 | if (obj2) { | |
16287 | { | |
16288 | arg3 = wxString_in_helper(obj2); | |
16289 | if (arg3 == NULL) SWIG_fail; | |
16290 | temp3 = True; | |
16291 | } | |
16292 | } | |
16293 | if (obj3) { | |
16294 | { | |
16295 | arg4 = wxString_in_helper(obj3); | |
16296 | if (arg4 == NULL) SWIG_fail; | |
16297 | temp4 = True; | |
16298 | } | |
16299 | } | |
16300 | if (obj4) { | |
16301 | arg5 = (long) SWIG_AsLong(obj4); | |
16302 | if (PyErr_Occurred()) SWIG_fail; | |
16303 | } | |
16304 | { | |
16305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16306 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16307 | ||
16308 | wxPyEndAllowThreads(__tstate); | |
16309 | if (PyErr_Occurred()) SWIG_fail; | |
16310 | } | |
16311 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
16312 | { | |
16313 | if (temp1) | |
16314 | delete arg1; | |
16315 | } | |
16316 | { | |
16317 | if (temp2) | |
16318 | delete arg2; | |
16319 | } | |
16320 | { | |
16321 | if (temp3) | |
16322 | delete arg3; | |
16323 | } | |
16324 | { | |
16325 | if (temp4) | |
16326 | delete arg4; | |
16327 | } | |
16328 | return resultobj; | |
16329 | fail: | |
16330 | { | |
16331 | if (temp1) | |
16332 | delete arg1; | |
16333 | } | |
16334 | { | |
16335 | if (temp2) | |
16336 | delete arg2; | |
16337 | } | |
16338 | { | |
16339 | if (temp3) | |
16340 | delete arg3; | |
16341 | } | |
16342 | { | |
16343 | if (temp4) | |
16344 | delete arg4; | |
16345 | } | |
16346 | return NULL; | |
16347 | } | |
16348 | ||
16349 | ||
16350 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16351 | PyObject *resultobj; | |
16352 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16353 | PyObject * obj0 = 0 ; | |
16354 | char *kwnames[] = { | |
16355 | (char *) "self", NULL | |
16356 | }; | |
16357 | ||
16358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
16360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | delete arg1; | |
16364 | ||
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
16368 | Py_INCREF(Py_None); resultobj = Py_None; | |
16369 | return resultobj; | |
16370 | fail: | |
16371 | return NULL; | |
16372 | } | |
16373 | ||
16374 | ||
16375 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16376 | PyObject *obj; | |
16377 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16378 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16379 | Py_INCREF(obj); | |
16380 | return Py_BuildValue((char *)""); | |
16381 | } | |
16382 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16383 | PyObject *resultobj; | |
16384 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16385 | wxString *arg2 = 0 ; | |
16386 | wxConfigPathChanger *result; | |
16387 | bool temp2 = False ; | |
16388 | PyObject * obj0 = 0 ; | |
16389 | PyObject * obj1 = 0 ; | |
16390 | char *kwnames[] = { | |
16391 | (char *) "config",(char *) "entry", NULL | |
16392 | }; | |
16393 | ||
16394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
16395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16397 | { | |
16398 | arg2 = wxString_in_helper(obj1); | |
16399 | if (arg2 == NULL) SWIG_fail; | |
16400 | temp2 = True; | |
16401 | } | |
16402 | { | |
16403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16404 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16405 | ||
16406 | wxPyEndAllowThreads(__tstate); | |
16407 | if (PyErr_Occurred()) SWIG_fail; | |
16408 | } | |
16409 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
16410 | { | |
16411 | if (temp2) | |
16412 | delete arg2; | |
16413 | } | |
16414 | return resultobj; | |
16415 | fail: | |
16416 | { | |
16417 | if (temp2) | |
16418 | delete arg2; | |
16419 | } | |
16420 | return NULL; | |
16421 | } | |
16422 | ||
16423 | ||
16424 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16425 | PyObject *resultobj; | |
16426 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16427 | PyObject * obj0 = 0 ; | |
16428 | char *kwnames[] = { | |
16429 | (char *) "self", NULL | |
16430 | }; | |
16431 | ||
16432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
16433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16435 | { | |
16436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16437 | delete arg1; | |
16438 | ||
16439 | wxPyEndAllowThreads(__tstate); | |
16440 | if (PyErr_Occurred()) SWIG_fail; | |
16441 | } | |
16442 | Py_INCREF(Py_None); resultobj = Py_None; | |
16443 | return resultobj; | |
16444 | fail: | |
16445 | return NULL; | |
16446 | } | |
16447 | ||
16448 | ||
16449 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16450 | PyObject *resultobj; | |
16451 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16452 | wxString *result; | |
16453 | PyObject * obj0 = 0 ; | |
16454 | char *kwnames[] = { | |
16455 | (char *) "self", NULL | |
16456 | }; | |
16457 | ||
16458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
16459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16461 | { | |
16462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16463 | { | |
16464 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16465 | result = (wxString *) &_result_ref; | |
16466 | } | |
16467 | ||
16468 | wxPyEndAllowThreads(__tstate); | |
16469 | if (PyErr_Occurred()) SWIG_fail; | |
16470 | } | |
16471 | { | |
16472 | #if wxUSE_UNICODE | |
16473 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16474 | #else | |
16475 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16476 | #endif | |
16477 | } | |
16478 | return resultobj; | |
16479 | fail: | |
16480 | return NULL; | |
16481 | } | |
16482 | ||
16483 | ||
16484 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16485 | PyObject *obj; | |
16486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16487 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16488 | Py_INCREF(obj); | |
16489 | return Py_BuildValue((char *)""); | |
16490 | } | |
16491 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16492 | PyObject *resultobj; | |
16493 | wxString *arg1 = 0 ; | |
16494 | wxString result; | |
16495 | bool temp1 = False ; | |
16496 | PyObject * obj0 = 0 ; | |
16497 | char *kwnames[] = { | |
16498 | (char *) "sz", NULL | |
16499 | }; | |
16500 | ||
16501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16502 | { | |
16503 | arg1 = wxString_in_helper(obj0); | |
16504 | if (arg1 == NULL) SWIG_fail; | |
16505 | temp1 = True; | |
16506 | } | |
16507 | { | |
16508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16509 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16510 | ||
16511 | wxPyEndAllowThreads(__tstate); | |
16512 | if (PyErr_Occurred()) SWIG_fail; | |
16513 | } | |
16514 | { | |
16515 | #if wxUSE_UNICODE | |
16516 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16517 | #else | |
16518 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16519 | #endif | |
16520 | } | |
16521 | { | |
16522 | if (temp1) | |
16523 | delete arg1; | |
16524 | } | |
16525 | return resultobj; | |
16526 | fail: | |
16527 | { | |
16528 | if (temp1) | |
16529 | delete arg1; | |
16530 | } | |
16531 | return NULL; | |
16532 | } | |
16533 | ||
16534 | ||
16535 | static int _wrap_DateFormatStr_set(PyObject *_val) { | |
16536 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16537 | return 1; | |
16538 | } | |
16539 | ||
16540 | ||
16541 | static PyObject *_wrap_DateFormatStr_get() { | |
16542 | PyObject *pyobj; | |
16543 | ||
16544 | { | |
16545 | #if wxUSE_UNICODE | |
16546 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16547 | #else | |
16548 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16549 | #endif | |
16550 | } | |
16551 | return pyobj; | |
16552 | } | |
16553 | ||
16554 | ||
16555 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16556 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16557 | return 1; | |
16558 | } | |
16559 | ||
16560 | ||
16561 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16562 | PyObject *pyobj; | |
16563 | ||
16564 | { | |
16565 | #if wxUSE_UNICODE | |
16566 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16567 | #else | |
16568 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16569 | #endif | |
16570 | } | |
16571 | return pyobj; | |
16572 | } | |
16573 | ||
16574 | ||
16575 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16576 | PyObject *resultobj; | |
16577 | int arg1 ; | |
16578 | PyObject * obj0 = 0 ; | |
16579 | char *kwnames[] = { | |
16580 | (char *) "country", NULL | |
16581 | }; | |
16582 | ||
16583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
16584 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16585 | if (PyErr_Occurred()) SWIG_fail; | |
16586 | { | |
16587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16588 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16589 | ||
16590 | wxPyEndAllowThreads(__tstate); | |
16591 | if (PyErr_Occurred()) SWIG_fail; | |
16592 | } | |
16593 | Py_INCREF(Py_None); resultobj = Py_None; | |
16594 | return resultobj; | |
16595 | fail: | |
16596 | return NULL; | |
16597 | } | |
16598 | ||
16599 | ||
16600 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16601 | PyObject *resultobj; | |
16602 | int result; | |
16603 | char *kwnames[] = { | |
16604 | NULL | |
16605 | }; | |
16606 | ||
16607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16608 | { | |
16609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16610 | result = (int)wxDateTime::GetCountry(); | |
16611 | ||
16612 | wxPyEndAllowThreads(__tstate); | |
16613 | if (PyErr_Occurred()) SWIG_fail; | |
16614 | } | |
16615 | resultobj = SWIG_FromInt((int)result); | |
16616 | return resultobj; | |
16617 | fail: | |
16618 | return NULL; | |
16619 | } | |
16620 | ||
16621 | ||
16622 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16623 | PyObject *resultobj; | |
16624 | int arg1 = (int) wxDateTime::Country_Default ; | |
16625 | bool result; | |
16626 | PyObject * obj0 = 0 ; | |
16627 | char *kwnames[] = { | |
16628 | (char *) "country", NULL | |
16629 | }; | |
16630 | ||
16631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
16632 | if (obj0) { | |
16633 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16634 | if (PyErr_Occurred()) SWIG_fail; | |
16635 | } | |
16636 | { | |
16637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16638 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16639 | ||
16640 | wxPyEndAllowThreads(__tstate); | |
16641 | if (PyErr_Occurred()) SWIG_fail; | |
16642 | } | |
16643 | { | |
16644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16645 | } | |
16646 | return resultobj; | |
16647 | fail: | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
16652 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16653 | PyObject *resultobj; | |
16654 | int arg1 = (int) wxDateTime::Gregorian ; | |
16655 | int result; | |
16656 | PyObject * obj0 = 0 ; | |
16657 | char *kwnames[] = { | |
16658 | (char *) "cal", NULL | |
16659 | }; | |
16660 | ||
16661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
16662 | if (obj0) { | |
16663 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16664 | if (PyErr_Occurred()) SWIG_fail; | |
16665 | } | |
16666 | { | |
16667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16668 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16669 | ||
16670 | wxPyEndAllowThreads(__tstate); | |
16671 | if (PyErr_Occurred()) SWIG_fail; | |
16672 | } | |
16673 | resultobj = SWIG_FromInt((int)result); | |
16674 | return resultobj; | |
16675 | fail: | |
16676 | return NULL; | |
16677 | } | |
16678 | ||
16679 | ||
16680 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16681 | PyObject *resultobj; | |
16682 | int arg1 ; | |
16683 | int result; | |
16684 | PyObject * obj0 = 0 ; | |
16685 | char *kwnames[] = { | |
16686 | (char *) "year", NULL | |
16687 | }; | |
16688 | ||
16689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
16690 | arg1 = (int) SWIG_AsInt(obj0); | |
16691 | if (PyErr_Occurred()) SWIG_fail; | |
16692 | { | |
16693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16694 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16695 | ||
16696 | wxPyEndAllowThreads(__tstate); | |
16697 | if (PyErr_Occurred()) SWIG_fail; | |
16698 | } | |
16699 | resultobj = SWIG_FromInt((int)result); | |
16700 | return resultobj; | |
16701 | fail: | |
16702 | return NULL; | |
16703 | } | |
16704 | ||
16705 | ||
16706 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16707 | PyObject *resultobj; | |
16708 | int arg1 = (int) wxDateTime::Gregorian ; | |
16709 | int result; | |
16710 | PyObject * obj0 = 0 ; | |
16711 | char *kwnames[] = { | |
16712 | (char *) "cal", NULL | |
16713 | }; | |
16714 | ||
16715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
16716 | if (obj0) { | |
16717 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16718 | if (PyErr_Occurred()) SWIG_fail; | |
16719 | } | |
16720 | { | |
16721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16722 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16723 | ||
16724 | wxPyEndAllowThreads(__tstate); | |
16725 | if (PyErr_Occurred()) SWIG_fail; | |
16726 | } | |
16727 | resultobj = SWIG_FromInt((int)result); | |
16728 | return resultobj; | |
16729 | fail: | |
16730 | return NULL; | |
16731 | } | |
16732 | ||
16733 | ||
16734 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16735 | PyObject *resultobj; | |
16736 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16737 | int arg2 = (int) wxDateTime::Gregorian ; | |
16738 | bool result; | |
16739 | PyObject * obj0 = 0 ; | |
16740 | PyObject * obj1 = 0 ; | |
16741 | char *kwnames[] = { | |
16742 | (char *) "year",(char *) "cal", NULL | |
16743 | }; | |
16744 | ||
16745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
16746 | if (obj0) { | |
16747 | arg1 = (int) SWIG_AsInt(obj0); | |
16748 | if (PyErr_Occurred()) SWIG_fail; | |
16749 | } | |
16750 | if (obj1) { | |
16751 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16752 | if (PyErr_Occurred()) SWIG_fail; | |
16753 | } | |
16754 | { | |
16755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16756 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16757 | ||
16758 | wxPyEndAllowThreads(__tstate); | |
16759 | if (PyErr_Occurred()) SWIG_fail; | |
16760 | } | |
16761 | { | |
16762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16763 | } | |
16764 | return resultobj; | |
16765 | fail: | |
16766 | return NULL; | |
16767 | } | |
16768 | ||
16769 | ||
16770 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16771 | PyObject *resultobj; | |
16772 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16773 | int result; | |
16774 | PyObject * obj0 = 0 ; | |
16775 | char *kwnames[] = { | |
16776 | (char *) "year", NULL | |
16777 | }; | |
16778 | ||
16779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
16780 | if (obj0) { | |
16781 | arg1 = (int) SWIG_AsInt(obj0); | |
16782 | if (PyErr_Occurred()) SWIG_fail; | |
16783 | } | |
16784 | { | |
16785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16786 | result = (int)wxDateTime::GetCentury(arg1); | |
16787 | ||
16788 | wxPyEndAllowThreads(__tstate); | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | } | |
16791 | resultobj = SWIG_FromInt((int)result); | |
16792 | return resultobj; | |
16793 | fail: | |
16794 | return NULL; | |
16795 | } | |
16796 | ||
16797 | ||
16798 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16799 | PyObject *resultobj; | |
16800 | int arg1 ; | |
16801 | int arg2 = (int) wxDateTime::Gregorian ; | |
16802 | int result; | |
16803 | PyObject * obj0 = 0 ; | |
16804 | PyObject * obj1 = 0 ; | |
16805 | char *kwnames[] = { | |
16806 | (char *) "year",(char *) "cal", NULL | |
16807 | }; | |
16808 | ||
16809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
16810 | arg1 = (int) SWIG_AsInt(obj0); | |
16811 | if (PyErr_Occurred()) SWIG_fail; | |
16812 | if (obj1) { | |
16813 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16814 | if (PyErr_Occurred()) SWIG_fail; | |
16815 | } | |
16816 | { | |
16817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16818 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
16819 | ||
16820 | wxPyEndAllowThreads(__tstate); | |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | } | |
16823 | resultobj = SWIG_FromInt((int)result); | |
16824 | return resultobj; | |
16825 | fail: | |
16826 | return NULL; | |
16827 | } | |
16828 | ||
16829 | ||
16830 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16831 | PyObject *resultobj; | |
16832 | int arg1 ; | |
16833 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16834 | int arg3 = (int) wxDateTime::Gregorian ; | |
16835 | int result; | |
16836 | PyObject * obj0 = 0 ; | |
16837 | PyObject * obj1 = 0 ; | |
16838 | PyObject * obj2 = 0 ; | |
16839 | char *kwnames[] = { | |
16840 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16841 | }; | |
16842 | ||
16843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16844 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
16845 | if (PyErr_Occurred()) SWIG_fail; | |
16846 | if (obj1) { | |
16847 | arg2 = (int) SWIG_AsInt(obj1); | |
16848 | if (PyErr_Occurred()) SWIG_fail; | |
16849 | } | |
16850 | if (obj2) { | |
16851 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); | |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
16853 | } | |
16854 | { | |
16855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16856 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
16857 | ||
16858 | wxPyEndAllowThreads(__tstate); | |
16859 | if (PyErr_Occurred()) SWIG_fail; | |
16860 | } | |
16861 | resultobj = SWIG_FromInt((int)result); | |
16862 | return resultobj; | |
16863 | fail: | |
16864 | return NULL; | |
16865 | } | |
16866 | ||
16867 | ||
16868 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16869 | PyObject *resultobj; | |
16870 | int arg1 ; | |
16871 | int arg2 = (int) wxDateTime::Name_Full ; | |
16872 | wxString result; | |
16873 | PyObject * obj0 = 0 ; | |
16874 | PyObject * obj1 = 0 ; | |
16875 | char *kwnames[] = { | |
16876 | (char *) "month",(char *) "flags", NULL | |
16877 | }; | |
16878 | ||
16879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
16880 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
16881 | if (PyErr_Occurred()) SWIG_fail; | |
16882 | if (obj1) { | |
16883 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
16884 | if (PyErr_Occurred()) SWIG_fail; | |
16885 | } | |
16886 | { | |
16887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16888 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
16889 | ||
16890 | wxPyEndAllowThreads(__tstate); | |
16891 | if (PyErr_Occurred()) SWIG_fail; | |
16892 | } | |
16893 | { | |
16894 | #if wxUSE_UNICODE | |
16895 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16896 | #else | |
16897 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16898 | #endif | |
16899 | } | |
16900 | return resultobj; | |
16901 | fail: | |
16902 | return NULL; | |
16903 | } | |
16904 | ||
16905 | ||
16906 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16907 | PyObject *resultobj; | |
16908 | int arg1 ; | |
16909 | int arg2 = (int) wxDateTime::Name_Full ; | |
16910 | wxString result; | |
16911 | PyObject * obj0 = 0 ; | |
16912 | PyObject * obj1 = 0 ; | |
16913 | char *kwnames[] = { | |
16914 | (char *) "weekday",(char *) "flags", NULL | |
16915 | }; | |
16916 | ||
16917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
16918 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); | |
16919 | if (PyErr_Occurred()) SWIG_fail; | |
16920 | if (obj1) { | |
16921 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
16922 | if (PyErr_Occurred()) SWIG_fail; | |
16923 | } | |
16924 | { | |
16925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16926 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
16927 | ||
16928 | wxPyEndAllowThreads(__tstate); | |
16929 | if (PyErr_Occurred()) SWIG_fail; | |
16930 | } | |
16931 | { | |
16932 | #if wxUSE_UNICODE | |
16933 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16934 | #else | |
16935 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16936 | #endif | |
16937 | } | |
16938 | return resultobj; | |
16939 | fail: | |
16940 | return NULL; | |
16941 | } | |
16942 | ||
16943 | ||
16944 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16945 | PyObject *resultobj; | |
16946 | wxString *arg1 = (wxString *) 0 ; | |
16947 | wxString *arg2 = (wxString *) 0 ; | |
16948 | bool temp1 = False ; | |
16949 | bool temp2 = False ; | |
16950 | PyObject * obj0 = 0 ; | |
16951 | PyObject * obj1 = 0 ; | |
16952 | char *kwnames[] = { | |
16953 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
16954 | }; | |
16955 | ||
16956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
16957 | { | |
16958 | arg1 = wxString_in_helper(obj0); | |
16959 | if (arg1 == NULL) SWIG_fail; | |
16960 | temp1 = True; | |
16961 | } | |
16962 | { | |
16963 | arg2 = wxString_in_helper(obj1); | |
16964 | if (arg2 == NULL) SWIG_fail; | |
16965 | temp2 = True; | |
16966 | } | |
16967 | { | |
16968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16969 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
16970 | ||
16971 | wxPyEndAllowThreads(__tstate); | |
16972 | if (PyErr_Occurred()) SWIG_fail; | |
16973 | } | |
16974 | Py_INCREF(Py_None); resultobj = Py_None; | |
16975 | { | |
16976 | if (temp1) | |
16977 | delete arg1; | |
16978 | } | |
16979 | { | |
16980 | if (temp2) | |
16981 | delete arg2; | |
16982 | } | |
16983 | return resultobj; | |
16984 | fail: | |
16985 | { | |
16986 | if (temp1) | |
16987 | delete arg1; | |
16988 | } | |
16989 | { | |
16990 | if (temp2) | |
16991 | delete arg2; | |
16992 | } | |
16993 | return NULL; | |
16994 | } | |
16995 | ||
16996 | ||
16997 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16998 | PyObject *resultobj; | |
16999 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17000 | int arg2 = (int) wxDateTime::Country_Default ; | |
17001 | bool result; | |
17002 | PyObject * obj0 = 0 ; | |
17003 | PyObject * obj1 = 0 ; | |
17004 | char *kwnames[] = { | |
17005 | (char *) "year",(char *) "country", NULL | |
17006 | }; | |
17007 | ||
17008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17009 | if (obj0) { | |
17010 | arg1 = (int) SWIG_AsInt(obj0); | |
17011 | if (PyErr_Occurred()) SWIG_fail; | |
17012 | } | |
17013 | if (obj1) { | |
17014 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17015 | if (PyErr_Occurred()) SWIG_fail; | |
17016 | } | |
17017 | { | |
17018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17019 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17020 | ||
17021 | wxPyEndAllowThreads(__tstate); | |
17022 | if (PyErr_Occurred()) SWIG_fail; | |
17023 | } | |
17024 | { | |
17025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17026 | } | |
17027 | return resultobj; | |
17028 | fail: | |
17029 | return NULL; | |
17030 | } | |
17031 | ||
17032 | ||
17033 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17034 | PyObject *resultobj; | |
17035 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17036 | int arg2 = (int) wxDateTime::Country_Default ; | |
17037 | wxDateTime result; | |
17038 | PyObject * obj0 = 0 ; | |
17039 | PyObject * obj1 = 0 ; | |
17040 | char *kwnames[] = { | |
17041 | (char *) "year",(char *) "country", NULL | |
17042 | }; | |
17043 | ||
17044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17045 | if (obj0) { | |
17046 | arg1 = (int) SWIG_AsInt(obj0); | |
17047 | if (PyErr_Occurred()) SWIG_fail; | |
17048 | } | |
17049 | if (obj1) { | |
17050 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17051 | if (PyErr_Occurred()) SWIG_fail; | |
17052 | } | |
17053 | { | |
17054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17055 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17056 | ||
17057 | wxPyEndAllowThreads(__tstate); | |
17058 | if (PyErr_Occurred()) SWIG_fail; | |
17059 | } | |
17060 | { | |
17061 | wxDateTime * resultptr; | |
17062 | resultptr = new wxDateTime((wxDateTime &) result); | |
17063 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17064 | } | |
17065 | return resultobj; | |
17066 | fail: | |
17067 | return NULL; | |
17068 | } | |
17069 | ||
17070 | ||
17071 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17072 | PyObject *resultobj; | |
17073 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17074 | int arg2 = (int) wxDateTime::Country_Default ; | |
17075 | wxDateTime result; | |
17076 | PyObject * obj0 = 0 ; | |
17077 | PyObject * obj1 = 0 ; | |
17078 | char *kwnames[] = { | |
17079 | (char *) "year",(char *) "country", NULL | |
17080 | }; | |
17081 | ||
17082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17083 | if (obj0) { | |
17084 | arg1 = (int) SWIG_AsInt(obj0); | |
17085 | if (PyErr_Occurred()) SWIG_fail; | |
17086 | } | |
17087 | if (obj1) { | |
17088 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17089 | if (PyErr_Occurred()) SWIG_fail; | |
17090 | } | |
17091 | { | |
17092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17093 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17094 | ||
17095 | wxPyEndAllowThreads(__tstate); | |
17096 | if (PyErr_Occurred()) SWIG_fail; | |
17097 | } | |
17098 | { | |
17099 | wxDateTime * resultptr; | |
17100 | resultptr = new wxDateTime((wxDateTime &) result); | |
17101 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17102 | } | |
17103 | return resultobj; | |
17104 | fail: | |
17105 | return NULL; | |
17106 | } | |
17107 | ||
17108 | ||
17109 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17110 | PyObject *resultobj; | |
17111 | wxDateTime result; | |
17112 | char *kwnames[] = { | |
17113 | NULL | |
17114 | }; | |
17115 | ||
17116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17117 | { | |
17118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17119 | result = wxDateTime::Now(); | |
17120 | ||
17121 | wxPyEndAllowThreads(__tstate); | |
17122 | if (PyErr_Occurred()) SWIG_fail; | |
17123 | } | |
17124 | { | |
17125 | wxDateTime * resultptr; | |
17126 | resultptr = new wxDateTime((wxDateTime &) result); | |
17127 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17128 | } | |
17129 | return resultobj; | |
17130 | fail: | |
17131 | return NULL; | |
17132 | } | |
17133 | ||
17134 | ||
17135 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17136 | PyObject *resultobj; | |
17137 | wxDateTime result; | |
17138 | char *kwnames[] = { | |
17139 | NULL | |
17140 | }; | |
17141 | ||
17142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17143 | { | |
17144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17145 | result = wxDateTime::UNow(); | |
17146 | ||
17147 | wxPyEndAllowThreads(__tstate); | |
17148 | if (PyErr_Occurred()) SWIG_fail; | |
17149 | } | |
17150 | { | |
17151 | wxDateTime * resultptr; | |
17152 | resultptr = new wxDateTime((wxDateTime &) result); | |
17153 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17154 | } | |
17155 | return resultobj; | |
17156 | fail: | |
17157 | return NULL; | |
17158 | } | |
17159 | ||
17160 | ||
17161 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17162 | PyObject *resultobj; | |
17163 | wxDateTime result; | |
17164 | char *kwnames[] = { | |
17165 | NULL | |
17166 | }; | |
17167 | ||
17168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17169 | { | |
17170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17171 | result = wxDateTime::Today(); | |
17172 | ||
17173 | wxPyEndAllowThreads(__tstate); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
17176 | { | |
17177 | wxDateTime * resultptr; | |
17178 | resultptr = new wxDateTime((wxDateTime &) result); | |
17179 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17180 | } | |
17181 | return resultobj; | |
17182 | fail: | |
17183 | return NULL; | |
17184 | } | |
17185 | ||
17186 | ||
17187 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17188 | PyObject *resultobj; | |
17189 | wxDateTime *result; | |
17190 | char *kwnames[] = { | |
17191 | NULL | |
17192 | }; | |
17193 | ||
17194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17195 | { | |
17196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17197 | result = (wxDateTime *)new wxDateTime(); | |
17198 | ||
17199 | wxPyEndAllowThreads(__tstate); | |
17200 | if (PyErr_Occurred()) SWIG_fail; | |
17201 | } | |
17202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17203 | return resultobj; | |
17204 | fail: | |
17205 | return NULL; | |
17206 | } | |
17207 | ||
17208 | ||
17209 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17210 | PyObject *resultobj; | |
17211 | time_t arg1 ; | |
17212 | wxDateTime *result; | |
17213 | PyObject * obj0 = 0 ; | |
17214 | char *kwnames[] = { | |
17215 | (char *) "timet", NULL | |
17216 | }; | |
17217 | ||
17218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
17219 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); | |
17220 | if (PyErr_Occurred()) SWIG_fail; | |
17221 | { | |
17222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17223 | result = (wxDateTime *)new wxDateTime(arg1); | |
17224 | ||
17225 | wxPyEndAllowThreads(__tstate); | |
17226 | if (PyErr_Occurred()) SWIG_fail; | |
17227 | } | |
17228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17229 | return resultobj; | |
17230 | fail: | |
17231 | return NULL; | |
17232 | } | |
17233 | ||
17234 | ||
17235 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17236 | PyObject *resultobj; | |
17237 | double arg1 ; | |
17238 | wxDateTime *result; | |
17239 | PyObject * obj0 = 0 ; | |
17240 | char *kwnames[] = { | |
17241 | (char *) "jdn", NULL | |
17242 | }; | |
17243 | ||
17244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
17245 | arg1 = (double) SWIG_AsDouble(obj0); | |
17246 | if (PyErr_Occurred()) SWIG_fail; | |
17247 | { | |
17248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17249 | result = (wxDateTime *)new wxDateTime(arg1); | |
17250 | ||
17251 | wxPyEndAllowThreads(__tstate); | |
17252 | if (PyErr_Occurred()) SWIG_fail; | |
17253 | } | |
17254 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17255 | return resultobj; | |
17256 | fail: | |
17257 | return NULL; | |
17258 | } | |
17259 | ||
17260 | ||
17261 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17262 | PyObject *resultobj; | |
17263 | int arg1 ; | |
17264 | int arg2 = (int) 0 ; | |
17265 | int arg3 = (int) 0 ; | |
17266 | int arg4 = (int) 0 ; | |
17267 | wxDateTime *result; | |
17268 | PyObject * obj0 = 0 ; | |
17269 | PyObject * obj1 = 0 ; | |
17270 | PyObject * obj2 = 0 ; | |
17271 | PyObject * obj3 = 0 ; | |
17272 | char *kwnames[] = { | |
17273 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17274 | }; | |
17275 | ||
17276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17277 | arg1 = (int) SWIG_AsInt(obj0); | |
17278 | if (PyErr_Occurred()) SWIG_fail; | |
17279 | if (obj1) { | |
17280 | arg2 = (int) SWIG_AsInt(obj1); | |
17281 | if (PyErr_Occurred()) SWIG_fail; | |
17282 | } | |
17283 | if (obj2) { | |
17284 | arg3 = (int) SWIG_AsInt(obj2); | |
17285 | if (PyErr_Occurred()) SWIG_fail; | |
17286 | } | |
17287 | if (obj3) { | |
17288 | arg4 = (int) SWIG_AsInt(obj3); | |
17289 | if (PyErr_Occurred()) SWIG_fail; | |
17290 | } | |
17291 | { | |
17292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17293 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17294 | ||
17295 | wxPyEndAllowThreads(__tstate); | |
17296 | if (PyErr_Occurred()) SWIG_fail; | |
17297 | } | |
17298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17299 | return resultobj; | |
17300 | fail: | |
17301 | return NULL; | |
17302 | } | |
17303 | ||
17304 | ||
17305 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17306 | PyObject *resultobj; | |
17307 | int arg1 ; | |
17308 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17309 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17310 | int arg4 = (int) 0 ; | |
17311 | int arg5 = (int) 0 ; | |
17312 | int arg6 = (int) 0 ; | |
17313 | int arg7 = (int) 0 ; | |
17314 | wxDateTime *result; | |
17315 | PyObject * obj0 = 0 ; | |
17316 | PyObject * obj1 = 0 ; | |
17317 | PyObject * obj2 = 0 ; | |
17318 | PyObject * obj3 = 0 ; | |
17319 | PyObject * obj4 = 0 ; | |
17320 | PyObject * obj5 = 0 ; | |
17321 | PyObject * obj6 = 0 ; | |
17322 | char *kwnames[] = { | |
17323 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17324 | }; | |
17325 | ||
17326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17327 | arg1 = (int) SWIG_AsInt(obj0); | |
17328 | if (PyErr_Occurred()) SWIG_fail; | |
17329 | if (obj1) { | |
17330 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17331 | if (PyErr_Occurred()) SWIG_fail; | |
17332 | } | |
17333 | if (obj2) { | |
17334 | arg3 = (int) SWIG_AsInt(obj2); | |
17335 | if (PyErr_Occurred()) SWIG_fail; | |
17336 | } | |
17337 | if (obj3) { | |
17338 | arg4 = (int) SWIG_AsInt(obj3); | |
17339 | if (PyErr_Occurred()) SWIG_fail; | |
17340 | } | |
17341 | if (obj4) { | |
17342 | arg5 = (int) SWIG_AsInt(obj4); | |
17343 | if (PyErr_Occurred()) SWIG_fail; | |
17344 | } | |
17345 | if (obj5) { | |
17346 | arg6 = (int) SWIG_AsInt(obj5); | |
17347 | if (PyErr_Occurred()) SWIG_fail; | |
17348 | } | |
17349 | if (obj6) { | |
17350 | arg7 = (int) SWIG_AsInt(obj6); | |
17351 | if (PyErr_Occurred()) SWIG_fail; | |
17352 | } | |
17353 | { | |
17354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17355 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17356 | ||
17357 | wxPyEndAllowThreads(__tstate); | |
17358 | if (PyErr_Occurred()) SWIG_fail; | |
17359 | } | |
17360 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17361 | return resultobj; | |
17362 | fail: | |
17363 | return NULL; | |
17364 | } | |
17365 | ||
17366 | ||
17367 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17368 | PyObject *resultobj; | |
17369 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17370 | PyObject * obj0 = 0 ; | |
17371 | char *kwnames[] = { | |
17372 | (char *) "self", NULL | |
17373 | }; | |
17374 | ||
17375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17378 | { | |
17379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17380 | delete arg1; | |
17381 | ||
17382 | wxPyEndAllowThreads(__tstate); | |
17383 | if (PyErr_Occurred()) SWIG_fail; | |
17384 | } | |
17385 | Py_INCREF(Py_None); resultobj = Py_None; | |
17386 | return resultobj; | |
17387 | fail: | |
17388 | return NULL; | |
17389 | } | |
17390 | ||
17391 | ||
17392 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17393 | PyObject *resultobj; | |
17394 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17395 | wxDateTime *result; | |
17396 | PyObject * obj0 = 0 ; | |
17397 | char *kwnames[] = { | |
17398 | (char *) "self", NULL | |
17399 | }; | |
17400 | ||
17401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17404 | { | |
17405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17406 | { | |
17407 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17408 | result = (wxDateTime *) &_result_ref; | |
17409 | } | |
17410 | ||
17411 | wxPyEndAllowThreads(__tstate); | |
17412 | if (PyErr_Occurred()) SWIG_fail; | |
17413 | } | |
17414 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17415 | return resultobj; | |
17416 | fail: | |
17417 | return NULL; | |
17418 | } | |
17419 | ||
17420 | ||
17421 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17422 | PyObject *resultobj; | |
17423 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17424 | time_t arg2 ; | |
17425 | wxDateTime *result; | |
17426 | PyObject * obj0 = 0 ; | |
17427 | PyObject * obj1 = 0 ; | |
17428 | char *kwnames[] = { | |
17429 | (char *) "self",(char *) "timet", NULL | |
17430 | }; | |
17431 | ||
17432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17435 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17436 | if (PyErr_Occurred()) SWIG_fail; | |
17437 | { | |
17438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17439 | { | |
17440 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17441 | result = (wxDateTime *) &_result_ref; | |
17442 | } | |
17443 | ||
17444 | wxPyEndAllowThreads(__tstate); | |
17445 | if (PyErr_Occurred()) SWIG_fail; | |
17446 | } | |
17447 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17448 | return resultobj; | |
17449 | fail: | |
17450 | return NULL; | |
17451 | } | |
17452 | ||
17453 | ||
17454 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17455 | PyObject *resultobj; | |
17456 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17457 | double arg2 ; | |
17458 | wxDateTime *result; | |
17459 | PyObject * obj0 = 0 ; | |
17460 | PyObject * obj1 = 0 ; | |
17461 | char *kwnames[] = { | |
17462 | (char *) "self",(char *) "jdn", NULL | |
17463 | }; | |
17464 | ||
17465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17468 | arg2 = (double) SWIG_AsDouble(obj1); | |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
17470 | { | |
17471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17472 | { | |
17473 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17474 | result = (wxDateTime *) &_result_ref; | |
17475 | } | |
17476 | ||
17477 | wxPyEndAllowThreads(__tstate); | |
17478 | if (PyErr_Occurred()) SWIG_fail; | |
17479 | } | |
17480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17481 | return resultobj; | |
17482 | fail: | |
17483 | return NULL; | |
17484 | } | |
17485 | ||
17486 | ||
17487 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17488 | PyObject *resultobj; | |
17489 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17490 | int arg2 ; | |
17491 | int arg3 = (int) 0 ; | |
17492 | int arg4 = (int) 0 ; | |
17493 | int arg5 = (int) 0 ; | |
17494 | wxDateTime *result; | |
17495 | PyObject * obj0 = 0 ; | |
17496 | PyObject * obj1 = 0 ; | |
17497 | PyObject * obj2 = 0 ; | |
17498 | PyObject * obj3 = 0 ; | |
17499 | PyObject * obj4 = 0 ; | |
17500 | char *kwnames[] = { | |
17501 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17502 | }; | |
17503 | ||
17504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17507 | arg2 = (int) SWIG_AsInt(obj1); | |
17508 | if (PyErr_Occurred()) SWIG_fail; | |
17509 | if (obj2) { | |
17510 | arg3 = (int) SWIG_AsInt(obj2); | |
17511 | if (PyErr_Occurred()) SWIG_fail; | |
17512 | } | |
17513 | if (obj3) { | |
17514 | arg4 = (int) SWIG_AsInt(obj3); | |
17515 | if (PyErr_Occurred()) SWIG_fail; | |
17516 | } | |
17517 | if (obj4) { | |
17518 | arg5 = (int) SWIG_AsInt(obj4); | |
17519 | if (PyErr_Occurred()) SWIG_fail; | |
17520 | } | |
17521 | { | |
17522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17523 | { | |
17524 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17525 | result = (wxDateTime *) &_result_ref; | |
17526 | } | |
17527 | ||
17528 | wxPyEndAllowThreads(__tstate); | |
17529 | if (PyErr_Occurred()) SWIG_fail; | |
17530 | } | |
17531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17532 | return resultobj; | |
17533 | fail: | |
17534 | return NULL; | |
17535 | } | |
17536 | ||
17537 | ||
17538 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17539 | PyObject *resultobj; | |
17540 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17541 | int arg2 ; | |
17542 | int arg3 = (int) wxDateTime::Inv_Month ; | |
17543 | int arg4 = (int) wxDateTime::Inv_Year ; | |
17544 | int arg5 = (int) 0 ; | |
17545 | int arg6 = (int) 0 ; | |
17546 | int arg7 = (int) 0 ; | |
17547 | int arg8 = (int) 0 ; | |
17548 | wxDateTime *result; | |
17549 | PyObject * obj0 = 0 ; | |
17550 | PyObject * obj1 = 0 ; | |
17551 | PyObject * obj2 = 0 ; | |
17552 | PyObject * obj3 = 0 ; | |
17553 | PyObject * obj4 = 0 ; | |
17554 | PyObject * obj5 = 0 ; | |
17555 | PyObject * obj6 = 0 ; | |
17556 | PyObject * obj7 = 0 ; | |
17557 | char *kwnames[] = { | |
17558 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17559 | }; | |
17560 | ||
17561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
17562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17564 | arg2 = (int) SWIG_AsInt(obj1); | |
17565 | if (PyErr_Occurred()) SWIG_fail; | |
17566 | if (obj2) { | |
17567 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
17568 | if (PyErr_Occurred()) SWIG_fail; | |
17569 | } | |
17570 | if (obj3) { | |
17571 | arg4 = (int) SWIG_AsInt(obj3); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
17574 | if (obj4) { | |
17575 | arg5 = (int) SWIG_AsInt(obj4); | |
17576 | if (PyErr_Occurred()) SWIG_fail; | |
17577 | } | |
17578 | if (obj5) { | |
17579 | arg6 = (int) SWIG_AsInt(obj5); | |
17580 | if (PyErr_Occurred()) SWIG_fail; | |
17581 | } | |
17582 | if (obj6) { | |
17583 | arg7 = (int) SWIG_AsInt(obj6); | |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | } | |
17586 | if (obj7) { | |
17587 | arg8 = (int) SWIG_AsInt(obj7); | |
17588 | if (PyErr_Occurred()) SWIG_fail; | |
17589 | } | |
17590 | { | |
17591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17592 | { | |
17593 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17594 | result = (wxDateTime *) &_result_ref; | |
17595 | } | |
17596 | ||
17597 | wxPyEndAllowThreads(__tstate); | |
17598 | if (PyErr_Occurred()) SWIG_fail; | |
17599 | } | |
17600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17601 | return resultobj; | |
17602 | fail: | |
17603 | return NULL; | |
17604 | } | |
17605 | ||
17606 | ||
17607 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17608 | PyObject *resultobj; | |
17609 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17610 | wxDateTime *result; | |
17611 | PyObject * obj0 = 0 ; | |
17612 | char *kwnames[] = { | |
17613 | (char *) "self", NULL | |
17614 | }; | |
17615 | ||
17616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
17617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17619 | { | |
17620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17621 | { | |
17622 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17623 | result = (wxDateTime *) &_result_ref; | |
17624 | } | |
17625 | ||
17626 | wxPyEndAllowThreads(__tstate); | |
17627 | if (PyErr_Occurred()) SWIG_fail; | |
17628 | } | |
17629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17630 | return resultobj; | |
17631 | fail: | |
17632 | return NULL; | |
17633 | } | |
17634 | ||
17635 | ||
17636 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17637 | PyObject *resultobj; | |
17638 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17639 | int arg2 ; | |
17640 | wxDateTime *result; | |
17641 | PyObject * obj0 = 0 ; | |
17642 | PyObject * obj1 = 0 ; | |
17643 | char *kwnames[] = { | |
17644 | (char *) "self",(char *) "year", NULL | |
17645 | }; | |
17646 | ||
17647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
17648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17650 | arg2 = (int) SWIG_AsInt(obj1); | |
17651 | if (PyErr_Occurred()) SWIG_fail; | |
17652 | { | |
17653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17654 | { | |
17655 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17656 | result = (wxDateTime *) &_result_ref; | |
17657 | } | |
17658 | ||
17659 | wxPyEndAllowThreads(__tstate); | |
17660 | if (PyErr_Occurred()) SWIG_fail; | |
17661 | } | |
17662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17663 | return resultobj; | |
17664 | fail: | |
17665 | return NULL; | |
17666 | } | |
17667 | ||
17668 | ||
17669 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17670 | PyObject *resultobj; | |
17671 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17672 | int arg2 ; | |
17673 | wxDateTime *result; | |
17674 | PyObject * obj0 = 0 ; | |
17675 | PyObject * obj1 = 0 ; | |
17676 | char *kwnames[] = { | |
17677 | (char *) "self",(char *) "month", NULL | |
17678 | }; | |
17679 | ||
17680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17683 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17684 | if (PyErr_Occurred()) SWIG_fail; | |
17685 | { | |
17686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17687 | { | |
17688 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17689 | result = (wxDateTime *) &_result_ref; | |
17690 | } | |
17691 | ||
17692 | wxPyEndAllowThreads(__tstate); | |
17693 | if (PyErr_Occurred()) SWIG_fail; | |
17694 | } | |
17695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17696 | return resultobj; | |
17697 | fail: | |
17698 | return NULL; | |
17699 | } | |
17700 | ||
17701 | ||
17702 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17703 | PyObject *resultobj; | |
17704 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17705 | int arg2 ; | |
17706 | wxDateTime *result; | |
17707 | PyObject * obj0 = 0 ; | |
17708 | PyObject * obj1 = 0 ; | |
17709 | char *kwnames[] = { | |
17710 | (char *) "self",(char *) "day", NULL | |
17711 | }; | |
17712 | ||
17713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
17714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17716 | arg2 = (int) SWIG_AsInt(obj1); | |
17717 | if (PyErr_Occurred()) SWIG_fail; | |
17718 | { | |
17719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17720 | { | |
17721 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17722 | result = (wxDateTime *) &_result_ref; | |
17723 | } | |
17724 | ||
17725 | wxPyEndAllowThreads(__tstate); | |
17726 | if (PyErr_Occurred()) SWIG_fail; | |
17727 | } | |
17728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17729 | return resultobj; | |
17730 | fail: | |
17731 | return NULL; | |
17732 | } | |
17733 | ||
17734 | ||
17735 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17736 | PyObject *resultobj; | |
17737 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17738 | int arg2 ; | |
17739 | wxDateTime *result; | |
17740 | PyObject * obj0 = 0 ; | |
17741 | PyObject * obj1 = 0 ; | |
17742 | char *kwnames[] = { | |
17743 | (char *) "self",(char *) "hour", NULL | |
17744 | }; | |
17745 | ||
17746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
17747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17749 | arg2 = (int) SWIG_AsInt(obj1); | |
17750 | if (PyErr_Occurred()) SWIG_fail; | |
17751 | { | |
17752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17753 | { | |
17754 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17755 | result = (wxDateTime *) &_result_ref; | |
17756 | } | |
17757 | ||
17758 | wxPyEndAllowThreads(__tstate); | |
17759 | if (PyErr_Occurred()) SWIG_fail; | |
17760 | } | |
17761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17762 | return resultobj; | |
17763 | fail: | |
17764 | return NULL; | |
17765 | } | |
17766 | ||
17767 | ||
17768 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17769 | PyObject *resultobj; | |
17770 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17771 | int arg2 ; | |
17772 | wxDateTime *result; | |
17773 | PyObject * obj0 = 0 ; | |
17774 | PyObject * obj1 = 0 ; | |
17775 | char *kwnames[] = { | |
17776 | (char *) "self",(char *) "minute", NULL | |
17777 | }; | |
17778 | ||
17779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17782 | arg2 = (int) SWIG_AsInt(obj1); | |
17783 | if (PyErr_Occurred()) SWIG_fail; | |
17784 | { | |
17785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17786 | { | |
17787 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17788 | result = (wxDateTime *) &_result_ref; | |
17789 | } | |
17790 | ||
17791 | wxPyEndAllowThreads(__tstate); | |
17792 | if (PyErr_Occurred()) SWIG_fail; | |
17793 | } | |
17794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17795 | return resultobj; | |
17796 | fail: | |
17797 | return NULL; | |
17798 | } | |
17799 | ||
17800 | ||
17801 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17802 | PyObject *resultobj; | |
17803 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17804 | int arg2 ; | |
17805 | wxDateTime *result; | |
17806 | PyObject * obj0 = 0 ; | |
17807 | PyObject * obj1 = 0 ; | |
17808 | char *kwnames[] = { | |
17809 | (char *) "self",(char *) "second", NULL | |
17810 | }; | |
17811 | ||
17812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17815 | arg2 = (int) SWIG_AsInt(obj1); | |
17816 | if (PyErr_Occurred()) SWIG_fail; | |
17817 | { | |
17818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17819 | { | |
17820 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17821 | result = (wxDateTime *) &_result_ref; | |
17822 | } | |
17823 | ||
17824 | wxPyEndAllowThreads(__tstate); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
17827 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17828 | return resultobj; | |
17829 | fail: | |
17830 | return NULL; | |
17831 | } | |
17832 | ||
17833 | ||
17834 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17835 | PyObject *resultobj; | |
17836 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17837 | int arg2 ; | |
17838 | wxDateTime *result; | |
17839 | PyObject * obj0 = 0 ; | |
17840 | PyObject * obj1 = 0 ; | |
17841 | char *kwnames[] = { | |
17842 | (char *) "self",(char *) "millisecond", NULL | |
17843 | }; | |
17844 | ||
17845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17848 | arg2 = (int) SWIG_AsInt(obj1); | |
17849 | if (PyErr_Occurred()) SWIG_fail; | |
17850 | { | |
17851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17852 | { | |
17853 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17854 | result = (wxDateTime *) &_result_ref; | |
17855 | } | |
17856 | ||
17857 | wxPyEndAllowThreads(__tstate); | |
17858 | if (PyErr_Occurred()) SWIG_fail; | |
17859 | } | |
17860 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17861 | return resultobj; | |
17862 | fail: | |
17863 | return NULL; | |
17864 | } | |
17865 | ||
17866 | ||
17867 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17868 | PyObject *resultobj; | |
17869 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17870 | int arg2 ; | |
17871 | int arg3 = (int) wxDateTime::Monday_First ; | |
17872 | wxDateTime *result; | |
17873 | PyObject * obj0 = 0 ; | |
17874 | PyObject * obj1 = 0 ; | |
17875 | PyObject * obj2 = 0 ; | |
17876 | char *kwnames[] = { | |
17877 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17878 | }; | |
17879 | ||
17880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17883 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17884 | if (PyErr_Occurred()) SWIG_fail; | |
17885 | if (obj2) { | |
17886 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
17887 | if (PyErr_Occurred()) SWIG_fail; | |
17888 | } | |
17889 | { | |
17890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17891 | { | |
17892 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17893 | result = (wxDateTime *) &_result_ref; | |
17894 | } | |
17895 | ||
17896 | wxPyEndAllowThreads(__tstate); | |
17897 | if (PyErr_Occurred()) SWIG_fail; | |
17898 | } | |
17899 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17900 | return resultobj; | |
17901 | fail: | |
17902 | return NULL; | |
17903 | } | |
17904 | ||
17905 | ||
17906 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17907 | PyObject *resultobj; | |
17908 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17909 | int arg2 ; | |
17910 | int arg3 = (int) wxDateTime::Monday_First ; | |
17911 | wxDateTime result; | |
17912 | PyObject * obj0 = 0 ; | |
17913 | PyObject * obj1 = 0 ; | |
17914 | PyObject * obj2 = 0 ; | |
17915 | char *kwnames[] = { | |
17916 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17917 | }; | |
17918 | ||
17919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17922 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17923 | if (PyErr_Occurred()) SWIG_fail; | |
17924 | if (obj2) { | |
17925 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
17926 | if (PyErr_Occurred()) SWIG_fail; | |
17927 | } | |
17928 | { | |
17929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17930 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17931 | ||
17932 | wxPyEndAllowThreads(__tstate); | |
17933 | if (PyErr_Occurred()) SWIG_fail; | |
17934 | } | |
17935 | { | |
17936 | wxDateTime * resultptr; | |
17937 | resultptr = new wxDateTime((wxDateTime &) result); | |
17938 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17939 | } | |
17940 | return resultobj; | |
17941 | fail: | |
17942 | return NULL; | |
17943 | } | |
17944 | ||
17945 | ||
17946 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17947 | PyObject *resultobj; | |
17948 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17949 | int arg2 ; | |
17950 | wxDateTime *result; | |
17951 | PyObject * obj0 = 0 ; | |
17952 | PyObject * obj1 = 0 ; | |
17953 | char *kwnames[] = { | |
17954 | (char *) "self",(char *) "weekday", NULL | |
17955 | }; | |
17956 | ||
17957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17960 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17961 | if (PyErr_Occurred()) SWIG_fail; | |
17962 | { | |
17963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17964 | { | |
17965 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
17966 | result = (wxDateTime *) &_result_ref; | |
17967 | } | |
17968 | ||
17969 | wxPyEndAllowThreads(__tstate); | |
17970 | if (PyErr_Occurred()) SWIG_fail; | |
17971 | } | |
17972 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17973 | return resultobj; | |
17974 | fail: | |
17975 | return NULL; | |
17976 | } | |
17977 | ||
17978 | ||
17979 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17980 | PyObject *resultobj; | |
17981 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17982 | int arg2 ; | |
17983 | wxDateTime result; | |
17984 | PyObject * obj0 = 0 ; | |
17985 | PyObject * obj1 = 0 ; | |
17986 | char *kwnames[] = { | |
17987 | (char *) "self",(char *) "weekday", NULL | |
17988 | }; | |
17989 | ||
17990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17993 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17994 | if (PyErr_Occurred()) SWIG_fail; | |
17995 | { | |
17996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17997 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
17998 | ||
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
18002 | { | |
18003 | wxDateTime * resultptr; | |
18004 | resultptr = new wxDateTime((wxDateTime &) result); | |
18005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18006 | } | |
18007 | return resultobj; | |
18008 | fail: | |
18009 | return NULL; | |
18010 | } | |
18011 | ||
18012 | ||
18013 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18014 | PyObject *resultobj; | |
18015 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18016 | int arg2 ; | |
18017 | wxDateTime *result; | |
18018 | PyObject * obj0 = 0 ; | |
18019 | PyObject * obj1 = 0 ; | |
18020 | char *kwnames[] = { | |
18021 | (char *) "self",(char *) "weekday", NULL | |
18022 | }; | |
18023 | ||
18024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18027 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18028 | if (PyErr_Occurred()) SWIG_fail; | |
18029 | { | |
18030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18031 | { | |
18032 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18033 | result = (wxDateTime *) &_result_ref; | |
18034 | } | |
18035 | ||
18036 | wxPyEndAllowThreads(__tstate); | |
18037 | if (PyErr_Occurred()) SWIG_fail; | |
18038 | } | |
18039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18040 | return resultobj; | |
18041 | fail: | |
18042 | return NULL; | |
18043 | } | |
18044 | ||
18045 | ||
18046 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18047 | PyObject *resultobj; | |
18048 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18049 | int arg2 ; | |
18050 | wxDateTime result; | |
18051 | PyObject * obj0 = 0 ; | |
18052 | PyObject * obj1 = 0 ; | |
18053 | char *kwnames[] = { | |
18054 | (char *) "self",(char *) "weekday", NULL | |
18055 | }; | |
18056 | ||
18057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18060 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18061 | if (PyErr_Occurred()) SWIG_fail; | |
18062 | { | |
18063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18064 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18065 | ||
18066 | wxPyEndAllowThreads(__tstate); | |
18067 | if (PyErr_Occurred()) SWIG_fail; | |
18068 | } | |
18069 | { | |
18070 | wxDateTime * resultptr; | |
18071 | resultptr = new wxDateTime((wxDateTime &) result); | |
18072 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18073 | } | |
18074 | return resultobj; | |
18075 | fail: | |
18076 | return NULL; | |
18077 | } | |
18078 | ||
18079 | ||
18080 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18081 | PyObject *resultobj; | |
18082 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18083 | int arg2 ; | |
18084 | int arg3 = (int) 1 ; | |
18085 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18086 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18087 | bool result; | |
18088 | PyObject * obj0 = 0 ; | |
18089 | PyObject * obj1 = 0 ; | |
18090 | PyObject * obj2 = 0 ; | |
18091 | PyObject * obj3 = 0 ; | |
18092 | PyObject * obj4 = 0 ; | |
18093 | char *kwnames[] = { | |
18094 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18095 | }; | |
18096 | ||
18097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18100 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18101 | if (PyErr_Occurred()) SWIG_fail; | |
18102 | if (obj2) { | |
18103 | arg3 = (int) SWIG_AsInt(obj2); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
18106 | if (obj3) { | |
18107 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); | |
18108 | if (PyErr_Occurred()) SWIG_fail; | |
18109 | } | |
18110 | if (obj4) { | |
18111 | arg5 = (int) SWIG_AsInt(obj4); | |
18112 | if (PyErr_Occurred()) SWIG_fail; | |
18113 | } | |
18114 | { | |
18115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18116 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18117 | ||
18118 | wxPyEndAllowThreads(__tstate); | |
18119 | if (PyErr_Occurred()) SWIG_fail; | |
18120 | } | |
18121 | { | |
18122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18123 | } | |
18124 | return resultobj; | |
18125 | fail: | |
18126 | return NULL; | |
18127 | } | |
18128 | ||
18129 | ||
18130 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18131 | PyObject *resultobj; | |
18132 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18133 | int arg2 ; | |
18134 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18135 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18136 | bool result; | |
18137 | PyObject * obj0 = 0 ; | |
18138 | PyObject * obj1 = 0 ; | |
18139 | PyObject * obj2 = 0 ; | |
18140 | PyObject * obj3 = 0 ; | |
18141 | char *kwnames[] = { | |
18142 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18143 | }; | |
18144 | ||
18145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18148 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18149 | if (PyErr_Occurred()) SWIG_fail; | |
18150 | if (obj2) { | |
18151 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18152 | if (PyErr_Occurred()) SWIG_fail; | |
18153 | } | |
18154 | if (obj3) { | |
18155 | arg4 = (int) SWIG_AsInt(obj3); | |
18156 | if (PyErr_Occurred()) SWIG_fail; | |
18157 | } | |
18158 | { | |
18159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18160 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18161 | ||
18162 | wxPyEndAllowThreads(__tstate); | |
18163 | if (PyErr_Occurred()) SWIG_fail; | |
18164 | } | |
18165 | { | |
18166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18167 | } | |
18168 | return resultobj; | |
18169 | fail: | |
18170 | return NULL; | |
18171 | } | |
18172 | ||
18173 | ||
18174 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18175 | PyObject *resultobj; | |
18176 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18177 | int arg2 ; | |
18178 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18179 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18180 | wxDateTime result; | |
18181 | PyObject * obj0 = 0 ; | |
18182 | PyObject * obj1 = 0 ; | |
18183 | PyObject * obj2 = 0 ; | |
18184 | PyObject * obj3 = 0 ; | |
18185 | char *kwnames[] = { | |
18186 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18187 | }; | |
18188 | ||
18189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18192 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18193 | if (PyErr_Occurred()) SWIG_fail; | |
18194 | if (obj2) { | |
18195 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18196 | if (PyErr_Occurred()) SWIG_fail; | |
18197 | } | |
18198 | if (obj3) { | |
18199 | arg4 = (int) SWIG_AsInt(obj3); | |
18200 | if (PyErr_Occurred()) SWIG_fail; | |
18201 | } | |
18202 | { | |
18203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18204 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18205 | ||
18206 | wxPyEndAllowThreads(__tstate); | |
18207 | if (PyErr_Occurred()) SWIG_fail; | |
18208 | } | |
18209 | { | |
18210 | wxDateTime * resultptr; | |
18211 | resultptr = new wxDateTime((wxDateTime &) result); | |
18212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18213 | } | |
18214 | return resultobj; | |
18215 | fail: | |
18216 | return NULL; | |
18217 | } | |
18218 | ||
18219 | ||
18220 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18221 | PyObject *resultobj; | |
18222 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18223 | int arg2 ; | |
18224 | int arg3 = (int) wxDateTime::Mon ; | |
18225 | int arg4 = (int) wxDateTime::Monday_First ; | |
18226 | bool result; | |
18227 | PyObject * obj0 = 0 ; | |
18228 | PyObject * obj1 = 0 ; | |
18229 | PyObject * obj2 = 0 ; | |
18230 | PyObject * obj3 = 0 ; | |
18231 | char *kwnames[] = { | |
18232 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18233 | }; | |
18234 | ||
18235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18238 | arg2 = (int) SWIG_AsInt(obj1); | |
18239 | if (PyErr_Occurred()) SWIG_fail; | |
18240 | if (obj2) { | |
18241 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18242 | if (PyErr_Occurred()) SWIG_fail; | |
18243 | } | |
18244 | if (obj3) { | |
18245 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18246 | if (PyErr_Occurred()) SWIG_fail; | |
18247 | } | |
18248 | { | |
18249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18250 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18251 | ||
18252 | wxPyEndAllowThreads(__tstate); | |
18253 | if (PyErr_Occurred()) SWIG_fail; | |
18254 | } | |
18255 | { | |
18256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18257 | } | |
18258 | return resultobj; | |
18259 | fail: | |
18260 | return NULL; | |
18261 | } | |
18262 | ||
18263 | ||
18264 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18265 | PyObject *resultobj; | |
18266 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18267 | int arg2 ; | |
18268 | int arg3 = (int) wxDateTime::Mon ; | |
18269 | int arg4 = (int) wxDateTime::Monday_First ; | |
18270 | wxDateTime result; | |
18271 | PyObject * obj0 = 0 ; | |
18272 | PyObject * obj1 = 0 ; | |
18273 | PyObject * obj2 = 0 ; | |
18274 | PyObject * obj3 = 0 ; | |
18275 | char *kwnames[] = { | |
18276 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18277 | }; | |
18278 | ||
18279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18282 | arg2 = (int) SWIG_AsInt(obj1); | |
18283 | if (PyErr_Occurred()) SWIG_fail; | |
18284 | if (obj2) { | |
18285 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18286 | if (PyErr_Occurred()) SWIG_fail; | |
18287 | } | |
18288 | if (obj3) { | |
18289 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18290 | if (PyErr_Occurred()) SWIG_fail; | |
18291 | } | |
18292 | { | |
18293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18294 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18295 | ||
18296 | wxPyEndAllowThreads(__tstate); | |
18297 | if (PyErr_Occurred()) SWIG_fail; | |
18298 | } | |
18299 | { | |
18300 | wxDateTime * resultptr; | |
18301 | resultptr = new wxDateTime((wxDateTime &) result); | |
18302 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18303 | } | |
18304 | return resultobj; | |
18305 | fail: | |
18306 | return NULL; | |
18307 | } | |
18308 | ||
18309 | ||
18310 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18311 | PyObject *resultobj; | |
18312 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18313 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18314 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18315 | wxDateTime *result; | |
18316 | PyObject * obj0 = 0 ; | |
18317 | PyObject * obj1 = 0 ; | |
18318 | PyObject * obj2 = 0 ; | |
18319 | char *kwnames[] = { | |
18320 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18321 | }; | |
18322 | ||
18323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18326 | if (obj1) { | |
18327 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18328 | if (PyErr_Occurred()) SWIG_fail; | |
18329 | } | |
18330 | if (obj2) { | |
18331 | arg3 = (int) SWIG_AsInt(obj2); | |
18332 | if (PyErr_Occurred()) SWIG_fail; | |
18333 | } | |
18334 | { | |
18335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18336 | { | |
18337 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18338 | result = (wxDateTime *) &_result_ref; | |
18339 | } | |
18340 | ||
18341 | wxPyEndAllowThreads(__tstate); | |
18342 | if (PyErr_Occurred()) SWIG_fail; | |
18343 | } | |
18344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18345 | return resultobj; | |
18346 | fail: | |
18347 | return NULL; | |
18348 | } | |
18349 | ||
18350 | ||
18351 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18352 | PyObject *resultobj; | |
18353 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18354 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18355 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18356 | wxDateTime result; | |
18357 | PyObject * obj0 = 0 ; | |
18358 | PyObject * obj1 = 0 ; | |
18359 | PyObject * obj2 = 0 ; | |
18360 | char *kwnames[] = { | |
18361 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18362 | }; | |
18363 | ||
18364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18367 | if (obj1) { | |
18368 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18369 | if (PyErr_Occurred()) SWIG_fail; | |
18370 | } | |
18371 | if (obj2) { | |
18372 | arg3 = (int) SWIG_AsInt(obj2); | |
18373 | if (PyErr_Occurred()) SWIG_fail; | |
18374 | } | |
18375 | { | |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18378 | ||
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
18382 | { | |
18383 | wxDateTime * resultptr; | |
18384 | resultptr = new wxDateTime((wxDateTime &) result); | |
18385 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18386 | } | |
18387 | return resultobj; | |
18388 | fail: | |
18389 | return NULL; | |
18390 | } | |
18391 | ||
18392 | ||
18393 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18394 | PyObject *resultobj; | |
18395 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18396 | int arg2 ; | |
18397 | wxDateTime *result; | |
18398 | PyObject * obj0 = 0 ; | |
18399 | PyObject * obj1 = 0 ; | |
18400 | char *kwnames[] = { | |
18401 | (char *) "self",(char *) "yday", NULL | |
18402 | }; | |
18403 | ||
18404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18407 | arg2 = (int) SWIG_AsInt(obj1); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | { | |
18410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18411 | { | |
18412 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18413 | result = (wxDateTime *) &_result_ref; | |
18414 | } | |
18415 | ||
18416 | wxPyEndAllowThreads(__tstate); | |
18417 | if (PyErr_Occurred()) SWIG_fail; | |
18418 | } | |
18419 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18420 | return resultobj; | |
18421 | fail: | |
18422 | return NULL; | |
18423 | } | |
18424 | ||
18425 | ||
18426 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18427 | PyObject *resultobj; | |
18428 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18429 | int arg2 ; | |
18430 | wxDateTime result; | |
18431 | PyObject * obj0 = 0 ; | |
18432 | PyObject * obj1 = 0 ; | |
18433 | char *kwnames[] = { | |
18434 | (char *) "self",(char *) "yday", NULL | |
18435 | }; | |
18436 | ||
18437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18440 | arg2 = (int) SWIG_AsInt(obj1); | |
18441 | if (PyErr_Occurred()) SWIG_fail; | |
18442 | { | |
18443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18444 | result = (arg1)->GetYearDay(arg2); | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | { | |
18450 | wxDateTime * resultptr; | |
18451 | resultptr = new wxDateTime((wxDateTime &) result); | |
18452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18453 | } | |
18454 | return resultobj; | |
18455 | fail: | |
18456 | return NULL; | |
18457 | } | |
18458 | ||
18459 | ||
18460 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18461 | PyObject *resultobj; | |
18462 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18463 | double result; | |
18464 | PyObject * obj0 = 0 ; | |
18465 | char *kwnames[] = { | |
18466 | (char *) "self", NULL | |
18467 | }; | |
18468 | ||
18469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
18470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18472 | { | |
18473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18474 | result = (double)(arg1)->GetJulianDayNumber(); | |
18475 | ||
18476 | wxPyEndAllowThreads(__tstate); | |
18477 | if (PyErr_Occurred()) SWIG_fail; | |
18478 | } | |
18479 | resultobj = SWIG_FromDouble((double)result); | |
18480 | return resultobj; | |
18481 | fail: | |
18482 | return NULL; | |
18483 | } | |
18484 | ||
18485 | ||
18486 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18487 | PyObject *resultobj; | |
18488 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18489 | double result; | |
18490 | PyObject * obj0 = 0 ; | |
18491 | char *kwnames[] = { | |
18492 | (char *) "self", NULL | |
18493 | }; | |
18494 | ||
18495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
18496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18498 | { | |
18499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18500 | result = (double)(arg1)->GetJDN(); | |
18501 | ||
18502 | wxPyEndAllowThreads(__tstate); | |
18503 | if (PyErr_Occurred()) SWIG_fail; | |
18504 | } | |
18505 | resultobj = SWIG_FromDouble((double)result); | |
18506 | return resultobj; | |
18507 | fail: | |
18508 | return NULL; | |
18509 | } | |
18510 | ||
18511 | ||
18512 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18513 | PyObject *resultobj; | |
18514 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18515 | double result; | |
18516 | PyObject * obj0 = 0 ; | |
18517 | char *kwnames[] = { | |
18518 | (char *) "self", NULL | |
18519 | }; | |
18520 | ||
18521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
18522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18524 | { | |
18525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18526 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18527 | ||
18528 | wxPyEndAllowThreads(__tstate); | |
18529 | if (PyErr_Occurred()) SWIG_fail; | |
18530 | } | |
18531 | resultobj = SWIG_FromDouble((double)result); | |
18532 | return resultobj; | |
18533 | fail: | |
18534 | return NULL; | |
18535 | } | |
18536 | ||
18537 | ||
18538 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18539 | PyObject *resultobj; | |
18540 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18541 | double result; | |
18542 | PyObject * obj0 = 0 ; | |
18543 | char *kwnames[] = { | |
18544 | (char *) "self", NULL | |
18545 | }; | |
18546 | ||
18547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
18548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18550 | { | |
18551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18552 | result = (double)(arg1)->GetMJD(); | |
18553 | ||
18554 | wxPyEndAllowThreads(__tstate); | |
18555 | if (PyErr_Occurred()) SWIG_fail; | |
18556 | } | |
18557 | resultobj = SWIG_FromDouble((double)result); | |
18558 | return resultobj; | |
18559 | fail: | |
18560 | return NULL; | |
18561 | } | |
18562 | ||
18563 | ||
18564 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18565 | PyObject *resultobj; | |
18566 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18567 | double result; | |
18568 | PyObject * obj0 = 0 ; | |
18569 | char *kwnames[] = { | |
18570 | (char *) "self", NULL | |
18571 | }; | |
18572 | ||
18573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
18574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18576 | { | |
18577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18578 | result = (double)(arg1)->GetRataDie(); | |
18579 | ||
18580 | wxPyEndAllowThreads(__tstate); | |
18581 | if (PyErr_Occurred()) SWIG_fail; | |
18582 | } | |
18583 | resultobj = SWIG_FromDouble((double)result); | |
18584 | return resultobj; | |
18585 | fail: | |
18586 | return NULL; | |
18587 | } | |
18588 | ||
18589 | ||
18590 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18591 | PyObject *resultobj; | |
18592 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18593 | wxDateTime::TimeZone *arg2 = 0 ; | |
18594 | bool arg3 = (bool) False ; | |
18595 | wxDateTime result; | |
18596 | bool temp2 = False ; | |
18597 | PyObject * obj0 = 0 ; | |
18598 | PyObject * obj1 = 0 ; | |
18599 | PyObject * obj2 = 0 ; | |
18600 | char *kwnames[] = { | |
18601 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18602 | }; | |
18603 | ||
18604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18607 | { | |
18608 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18609 | temp2 = True; | |
18610 | } | |
18611 | if (obj2) { | |
18612 | arg3 = (bool) SWIG_AsBool(obj2); | |
18613 | if (PyErr_Occurred()) SWIG_fail; | |
18614 | } | |
18615 | { | |
18616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18617 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18618 | ||
18619 | wxPyEndAllowThreads(__tstate); | |
18620 | if (PyErr_Occurred()) SWIG_fail; | |
18621 | } | |
18622 | { | |
18623 | wxDateTime * resultptr; | |
18624 | resultptr = new wxDateTime((wxDateTime &) result); | |
18625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18626 | } | |
18627 | { | |
18628 | if (temp2) delete arg2; | |
18629 | } | |
18630 | return resultobj; | |
18631 | fail: | |
18632 | { | |
18633 | if (temp2) delete arg2; | |
18634 | } | |
18635 | return NULL; | |
18636 | } | |
18637 | ||
18638 | ||
18639 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18640 | PyObject *resultobj; | |
18641 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18642 | wxDateTime::TimeZone *arg2 = 0 ; | |
18643 | bool arg3 = (bool) False ; | |
18644 | wxDateTime *result; | |
18645 | bool temp2 = False ; | |
18646 | PyObject * obj0 = 0 ; | |
18647 | PyObject * obj1 = 0 ; | |
18648 | PyObject * obj2 = 0 ; | |
18649 | char *kwnames[] = { | |
18650 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18651 | }; | |
18652 | ||
18653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18656 | { | |
18657 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18658 | temp2 = True; | |
18659 | } | |
18660 | if (obj2) { | |
18661 | arg3 = (bool) SWIG_AsBool(obj2); | |
18662 | if (PyErr_Occurred()) SWIG_fail; | |
18663 | } | |
18664 | { | |
18665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18666 | { | |
18667 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18668 | result = (wxDateTime *) &_result_ref; | |
18669 | } | |
18670 | ||
18671 | wxPyEndAllowThreads(__tstate); | |
18672 | if (PyErr_Occurred()) SWIG_fail; | |
18673 | } | |
18674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18675 | { | |
18676 | if (temp2) delete arg2; | |
18677 | } | |
18678 | return resultobj; | |
18679 | fail: | |
18680 | { | |
18681 | if (temp2) delete arg2; | |
18682 | } | |
18683 | return NULL; | |
18684 | } | |
18685 | ||
18686 | ||
18687 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18688 | PyObject *resultobj; | |
18689 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18690 | bool arg2 = (bool) False ; | |
18691 | wxDateTime result; | |
18692 | PyObject * obj0 = 0 ; | |
18693 | PyObject * obj1 = 0 ; | |
18694 | char *kwnames[] = { | |
18695 | (char *) "self",(char *) "noDST", NULL | |
18696 | }; | |
18697 | ||
18698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
18699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18701 | if (obj1) { | |
18702 | arg2 = (bool) SWIG_AsBool(obj1); | |
18703 | if (PyErr_Occurred()) SWIG_fail; | |
18704 | } | |
18705 | { | |
18706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18707 | result = (arg1)->ToGMT(arg2); | |
18708 | ||
18709 | wxPyEndAllowThreads(__tstate); | |
18710 | if (PyErr_Occurred()) SWIG_fail; | |
18711 | } | |
18712 | { | |
18713 | wxDateTime * resultptr; | |
18714 | resultptr = new wxDateTime((wxDateTime &) result); | |
18715 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18716 | } | |
18717 | return resultobj; | |
18718 | fail: | |
18719 | return NULL; | |
18720 | } | |
18721 | ||
18722 | ||
18723 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18724 | PyObject *resultobj; | |
18725 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18726 | bool arg2 = (bool) False ; | |
18727 | wxDateTime *result; | |
18728 | PyObject * obj0 = 0 ; | |
18729 | PyObject * obj1 = 0 ; | |
18730 | char *kwnames[] = { | |
18731 | (char *) "self",(char *) "noDST", NULL | |
18732 | }; | |
18733 | ||
18734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
18735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18737 | if (obj1) { | |
18738 | arg2 = (bool) SWIG_AsBool(obj1); | |
18739 | if (PyErr_Occurred()) SWIG_fail; | |
18740 | } | |
18741 | { | |
18742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18743 | { | |
18744 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18745 | result = (wxDateTime *) &_result_ref; | |
18746 | } | |
18747 | ||
18748 | wxPyEndAllowThreads(__tstate); | |
18749 | if (PyErr_Occurred()) SWIG_fail; | |
18750 | } | |
18751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18752 | return resultobj; | |
18753 | fail: | |
18754 | return NULL; | |
18755 | } | |
18756 | ||
18757 | ||
18758 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18759 | PyObject *resultobj; | |
18760 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18761 | int arg2 = (int) wxDateTime::Country_Default ; | |
18762 | int result; | |
18763 | PyObject * obj0 = 0 ; | |
18764 | PyObject * obj1 = 0 ; | |
18765 | char *kwnames[] = { | |
18766 | (char *) "self",(char *) "country", NULL | |
18767 | }; | |
18768 | ||
18769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
18770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18772 | if (obj1) { | |
18773 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
18774 | if (PyErr_Occurred()) SWIG_fail; | |
18775 | } | |
18776 | { | |
18777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18778 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18779 | ||
18780 | wxPyEndAllowThreads(__tstate); | |
18781 | if (PyErr_Occurred()) SWIG_fail; | |
18782 | } | |
18783 | resultobj = SWIG_FromInt((int)result); | |
18784 | return resultobj; | |
18785 | fail: | |
18786 | return NULL; | |
18787 | } | |
18788 | ||
18789 | ||
18790 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18791 | PyObject *resultobj; | |
18792 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18793 | bool result; | |
18794 | PyObject * obj0 = 0 ; | |
18795 | char *kwnames[] = { | |
18796 | (char *) "self", NULL | |
18797 | }; | |
18798 | ||
18799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
18800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18802 | { | |
18803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18804 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18805 | ||
18806 | wxPyEndAllowThreads(__tstate); | |
18807 | if (PyErr_Occurred()) SWIG_fail; | |
18808 | } | |
18809 | { | |
18810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18811 | } | |
18812 | return resultobj; | |
18813 | fail: | |
18814 | return NULL; | |
18815 | } | |
18816 | ||
18817 | ||
18818 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18819 | PyObject *resultobj; | |
18820 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18821 | time_t result; | |
18822 | PyObject * obj0 = 0 ; | |
18823 | char *kwnames[] = { | |
18824 | (char *) "self", NULL | |
18825 | }; | |
18826 | ||
18827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
18828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18830 | { | |
18831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18832 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18833 | ||
18834 | wxPyEndAllowThreads(__tstate); | |
18835 | if (PyErr_Occurred()) SWIG_fail; | |
18836 | } | |
18837 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
18838 | return resultobj; | |
18839 | fail: | |
18840 | return NULL; | |
18841 | } | |
18842 | ||
18843 | ||
18844 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18845 | PyObject *resultobj; | |
18846 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18847 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18848 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18849 | int result; | |
18850 | bool temp2 = False ; | |
18851 | PyObject * obj0 = 0 ; | |
18852 | PyObject * obj1 = 0 ; | |
18853 | char *kwnames[] = { | |
18854 | (char *) "self",(char *) "tz", NULL | |
18855 | }; | |
18856 | ||
18857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
18858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18860 | if (obj1) { | |
18861 | { | |
18862 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18863 | temp2 = True; | |
18864 | } | |
18865 | } | |
18866 | { | |
18867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18868 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18869 | ||
18870 | wxPyEndAllowThreads(__tstate); | |
18871 | if (PyErr_Occurred()) SWIG_fail; | |
18872 | } | |
18873 | resultobj = SWIG_FromInt((int)result); | |
18874 | { | |
18875 | if (temp2) delete arg2; | |
18876 | } | |
18877 | return resultobj; | |
18878 | fail: | |
18879 | { | |
18880 | if (temp2) delete arg2; | |
18881 | } | |
18882 | return NULL; | |
18883 | } | |
18884 | ||
18885 | ||
18886 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18887 | PyObject *resultobj; | |
18888 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18889 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18890 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18891 | int result; | |
18892 | bool temp2 = False ; | |
18893 | PyObject * obj0 = 0 ; | |
18894 | PyObject * obj1 = 0 ; | |
18895 | char *kwnames[] = { | |
18896 | (char *) "self",(char *) "tz", NULL | |
18897 | }; | |
18898 | ||
18899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18902 | if (obj1) { | |
18903 | { | |
18904 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18905 | temp2 = True; | |
18906 | } | |
18907 | } | |
18908 | { | |
18909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18910 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
18911 | ||
18912 | wxPyEndAllowThreads(__tstate); | |
18913 | if (PyErr_Occurred()) SWIG_fail; | |
18914 | } | |
18915 | resultobj = SWIG_FromInt((int)result); | |
18916 | { | |
18917 | if (temp2) delete arg2; | |
18918 | } | |
18919 | return resultobj; | |
18920 | fail: | |
18921 | { | |
18922 | if (temp2) delete arg2; | |
18923 | } | |
18924 | return NULL; | |
18925 | } | |
18926 | ||
18927 | ||
18928 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18929 | PyObject *resultobj; | |
18930 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18931 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18932 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18933 | int result; | |
18934 | bool temp2 = False ; | |
18935 | PyObject * obj0 = 0 ; | |
18936 | PyObject * obj1 = 0 ; | |
18937 | char *kwnames[] = { | |
18938 | (char *) "self",(char *) "tz", NULL | |
18939 | }; | |
18940 | ||
18941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
18942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18944 | if (obj1) { | |
18945 | { | |
18946 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18947 | temp2 = True; | |
18948 | } | |
18949 | } | |
18950 | { | |
18951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18952 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
18953 | ||
18954 | wxPyEndAllowThreads(__tstate); | |
18955 | if (PyErr_Occurred()) SWIG_fail; | |
18956 | } | |
18957 | resultobj = SWIG_FromInt((int)result); | |
18958 | { | |
18959 | if (temp2) delete arg2; | |
18960 | } | |
18961 | return resultobj; | |
18962 | fail: | |
18963 | { | |
18964 | if (temp2) delete arg2; | |
18965 | } | |
18966 | return NULL; | |
18967 | } | |
18968 | ||
18969 | ||
18970 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18971 | PyObject *resultobj; | |
18972 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18973 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18974 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18975 | int result; | |
18976 | bool temp2 = False ; | |
18977 | PyObject * obj0 = 0 ; | |
18978 | PyObject * obj1 = 0 ; | |
18979 | char *kwnames[] = { | |
18980 | (char *) "self",(char *) "tz", NULL | |
18981 | }; | |
18982 | ||
18983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18986 | if (obj1) { | |
18987 | { | |
18988 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18989 | temp2 = True; | |
18990 | } | |
18991 | } | |
18992 | { | |
18993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18994 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
18995 | ||
18996 | wxPyEndAllowThreads(__tstate); | |
18997 | if (PyErr_Occurred()) SWIG_fail; | |
18998 | } | |
18999 | resultobj = SWIG_FromInt((int)result); | |
19000 | { | |
19001 | if (temp2) delete arg2; | |
19002 | } | |
19003 | return resultobj; | |
19004 | fail: | |
19005 | { | |
19006 | if (temp2) delete arg2; | |
19007 | } | |
19008 | return NULL; | |
19009 | } | |
19010 | ||
19011 | ||
19012 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19013 | PyObject *resultobj; | |
19014 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19015 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19016 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19017 | int result; | |
19018 | bool temp2 = False ; | |
19019 | PyObject * obj0 = 0 ; | |
19020 | PyObject * obj1 = 0 ; | |
19021 | char *kwnames[] = { | |
19022 | (char *) "self",(char *) "tz", NULL | |
19023 | }; | |
19024 | ||
19025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19028 | if (obj1) { | |
19029 | { | |
19030 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19031 | temp2 = True; | |
19032 | } | |
19033 | } | |
19034 | { | |
19035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19036 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19037 | ||
19038 | wxPyEndAllowThreads(__tstate); | |
19039 | if (PyErr_Occurred()) SWIG_fail; | |
19040 | } | |
19041 | resultobj = SWIG_FromInt((int)result); | |
19042 | { | |
19043 | if (temp2) delete arg2; | |
19044 | } | |
19045 | return resultobj; | |
19046 | fail: | |
19047 | { | |
19048 | if (temp2) delete arg2; | |
19049 | } | |
19050 | return NULL; | |
19051 | } | |
19052 | ||
19053 | ||
19054 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19055 | PyObject *resultobj; | |
19056 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19057 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19058 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19059 | int result; | |
19060 | bool temp2 = False ; | |
19061 | PyObject * obj0 = 0 ; | |
19062 | PyObject * obj1 = 0 ; | |
19063 | char *kwnames[] = { | |
19064 | (char *) "self",(char *) "tz", NULL | |
19065 | }; | |
19066 | ||
19067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19070 | if (obj1) { | |
19071 | { | |
19072 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19073 | temp2 = True; | |
19074 | } | |
19075 | } | |
19076 | { | |
19077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19078 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19079 | ||
19080 | wxPyEndAllowThreads(__tstate); | |
19081 | if (PyErr_Occurred()) SWIG_fail; | |
19082 | } | |
19083 | resultobj = SWIG_FromInt((int)result); | |
19084 | { | |
19085 | if (temp2) delete arg2; | |
19086 | } | |
19087 | return resultobj; | |
19088 | fail: | |
19089 | { | |
19090 | if (temp2) delete arg2; | |
19091 | } | |
19092 | return NULL; | |
19093 | } | |
19094 | ||
19095 | ||
19096 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19097 | PyObject *resultobj; | |
19098 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19099 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19100 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19101 | int result; | |
19102 | bool temp2 = False ; | |
19103 | PyObject * obj0 = 0 ; | |
19104 | PyObject * obj1 = 0 ; | |
19105 | char *kwnames[] = { | |
19106 | (char *) "self",(char *) "tz", NULL | |
19107 | }; | |
19108 | ||
19109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19112 | if (obj1) { | |
19113 | { | |
19114 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19115 | temp2 = True; | |
19116 | } | |
19117 | } | |
19118 | { | |
19119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19120 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19121 | ||
19122 | wxPyEndAllowThreads(__tstate); | |
19123 | if (PyErr_Occurred()) SWIG_fail; | |
19124 | } | |
19125 | resultobj = SWIG_FromInt((int)result); | |
19126 | { | |
19127 | if (temp2) delete arg2; | |
19128 | } | |
19129 | return resultobj; | |
19130 | fail: | |
19131 | { | |
19132 | if (temp2) delete arg2; | |
19133 | } | |
19134 | return NULL; | |
19135 | } | |
19136 | ||
19137 | ||
19138 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19139 | PyObject *resultobj; | |
19140 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19141 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19142 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19143 | int result; | |
19144 | bool temp2 = False ; | |
19145 | PyObject * obj0 = 0 ; | |
19146 | PyObject * obj1 = 0 ; | |
19147 | char *kwnames[] = { | |
19148 | (char *) "self",(char *) "tz", NULL | |
19149 | }; | |
19150 | ||
19151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19154 | if (obj1) { | |
19155 | { | |
19156 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19157 | temp2 = True; | |
19158 | } | |
19159 | } | |
19160 | { | |
19161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19162 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19163 | ||
19164 | wxPyEndAllowThreads(__tstate); | |
19165 | if (PyErr_Occurred()) SWIG_fail; | |
19166 | } | |
19167 | resultobj = SWIG_FromInt((int)result); | |
19168 | { | |
19169 | if (temp2) delete arg2; | |
19170 | } | |
19171 | return resultobj; | |
19172 | fail: | |
19173 | { | |
19174 | if (temp2) delete arg2; | |
19175 | } | |
19176 | return NULL; | |
19177 | } | |
19178 | ||
19179 | ||
19180 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19181 | PyObject *resultobj; | |
19182 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19183 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19184 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19185 | int result; | |
19186 | bool temp2 = False ; | |
19187 | PyObject * obj0 = 0 ; | |
19188 | PyObject * obj1 = 0 ; | |
19189 | char *kwnames[] = { | |
19190 | (char *) "self",(char *) "tz", NULL | |
19191 | }; | |
19192 | ||
19193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19196 | if (obj1) { | |
19197 | { | |
19198 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19199 | temp2 = True; | |
19200 | } | |
19201 | } | |
19202 | { | |
19203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19204 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
19205 | ||
19206 | wxPyEndAllowThreads(__tstate); | |
19207 | if (PyErr_Occurred()) SWIG_fail; | |
19208 | } | |
19209 | resultobj = SWIG_FromInt((int)result); | |
19210 | { | |
19211 | if (temp2) delete arg2; | |
19212 | } | |
19213 | return resultobj; | |
19214 | fail: | |
19215 | { | |
19216 | if (temp2) delete arg2; | |
19217 | } | |
19218 | return NULL; | |
19219 | } | |
19220 | ||
19221 | ||
19222 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19223 | PyObject *resultobj; | |
19224 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19225 | int arg2 = (int) wxDateTime::Monday_First ; | |
19226 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19227 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19228 | int result; | |
19229 | bool temp3 = False ; | |
19230 | PyObject * obj0 = 0 ; | |
19231 | PyObject * obj1 = 0 ; | |
19232 | PyObject * obj2 = 0 ; | |
19233 | char *kwnames[] = { | |
19234 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19235 | }; | |
19236 | ||
19237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19240 | if (obj1) { | |
19241 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19242 | if (PyErr_Occurred()) SWIG_fail; | |
19243 | } | |
19244 | if (obj2) { | |
19245 | { | |
19246 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19247 | temp3 = True; | |
19248 | } | |
19249 | } | |
19250 | { | |
19251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19252 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19253 | ||
19254 | wxPyEndAllowThreads(__tstate); | |
19255 | if (PyErr_Occurred()) SWIG_fail; | |
19256 | } | |
19257 | resultobj = SWIG_FromInt((int)result); | |
19258 | { | |
19259 | if (temp3) delete arg3; | |
19260 | } | |
19261 | return resultobj; | |
19262 | fail: | |
19263 | { | |
19264 | if (temp3) delete arg3; | |
19265 | } | |
19266 | return NULL; | |
19267 | } | |
19268 | ||
19269 | ||
19270 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19271 | PyObject *resultobj; | |
19272 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19273 | int arg2 = (int) wxDateTime::Monday_First ; | |
19274 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19275 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19276 | int result; | |
19277 | bool temp3 = False ; | |
19278 | PyObject * obj0 = 0 ; | |
19279 | PyObject * obj1 = 0 ; | |
19280 | PyObject * obj2 = 0 ; | |
19281 | char *kwnames[] = { | |
19282 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19283 | }; | |
19284 | ||
19285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19288 | if (obj1) { | |
19289 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19290 | if (PyErr_Occurred()) SWIG_fail; | |
19291 | } | |
19292 | if (obj2) { | |
19293 | { | |
19294 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19295 | temp3 = True; | |
19296 | } | |
19297 | } | |
19298 | { | |
19299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19300 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19301 | ||
19302 | wxPyEndAllowThreads(__tstate); | |
19303 | if (PyErr_Occurred()) SWIG_fail; | |
19304 | } | |
19305 | resultobj = SWIG_FromInt((int)result); | |
19306 | { | |
19307 | if (temp3) delete arg3; | |
19308 | } | |
19309 | return resultobj; | |
19310 | fail: | |
19311 | { | |
19312 | if (temp3) delete arg3; | |
19313 | } | |
19314 | return NULL; | |
19315 | } | |
19316 | ||
19317 | ||
19318 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19319 | PyObject *resultobj; | |
19320 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19321 | int arg2 = (int) wxDateTime::Country_Default ; | |
19322 | bool result; | |
19323 | PyObject * obj0 = 0 ; | |
19324 | PyObject * obj1 = 0 ; | |
19325 | char *kwnames[] = { | |
19326 | (char *) "self",(char *) "country", NULL | |
19327 | }; | |
19328 | ||
19329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
19330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19332 | if (obj1) { | |
19333 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
19334 | if (PyErr_Occurred()) SWIG_fail; | |
19335 | } | |
19336 | { | |
19337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19338 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19339 | ||
19340 | wxPyEndAllowThreads(__tstate); | |
19341 | if (PyErr_Occurred()) SWIG_fail; | |
19342 | } | |
19343 | { | |
19344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19345 | } | |
19346 | return resultobj; | |
19347 | fail: | |
19348 | return NULL; | |
19349 | } | |
19350 | ||
19351 | ||
19352 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19353 | PyObject *resultobj; | |
19354 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19355 | wxDateTime *arg2 = 0 ; | |
19356 | bool result; | |
19357 | PyObject * obj0 = 0 ; | |
19358 | PyObject * obj1 = 0 ; | |
19359 | char *kwnames[] = { | |
19360 | (char *) "self",(char *) "datetime", NULL | |
19361 | }; | |
19362 | ||
19363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19367 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19368 | SWIG_fail; | |
19369 | if (arg2 == NULL) { | |
19370 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19371 | SWIG_fail; | |
19372 | } | |
19373 | { | |
19374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19375 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19376 | ||
19377 | wxPyEndAllowThreads(__tstate); | |
19378 | if (PyErr_Occurred()) SWIG_fail; | |
19379 | } | |
19380 | { | |
19381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19382 | } | |
19383 | return resultobj; | |
19384 | fail: | |
19385 | return NULL; | |
19386 | } | |
19387 | ||
19388 | ||
19389 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19390 | PyObject *resultobj; | |
19391 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19392 | wxDateTime *arg2 = 0 ; | |
19393 | bool result; | |
19394 | PyObject * obj0 = 0 ; | |
19395 | PyObject * obj1 = 0 ; | |
19396 | char *kwnames[] = { | |
19397 | (char *) "self",(char *) "datetime", NULL | |
19398 | }; | |
19399 | ||
19400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19403 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19404 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19405 | SWIG_fail; | |
19406 | if (arg2 == NULL) { | |
19407 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19408 | SWIG_fail; | |
19409 | } | |
19410 | { | |
19411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19412 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19413 | ||
19414 | wxPyEndAllowThreads(__tstate); | |
19415 | if (PyErr_Occurred()) SWIG_fail; | |
19416 | } | |
19417 | { | |
19418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19419 | } | |
19420 | return resultobj; | |
19421 | fail: | |
19422 | return NULL; | |
19423 | } | |
19424 | ||
19425 | ||
19426 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19427 | PyObject *resultobj; | |
19428 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19429 | wxDateTime *arg2 = 0 ; | |
19430 | bool result; | |
19431 | PyObject * obj0 = 0 ; | |
19432 | PyObject * obj1 = 0 ; | |
19433 | char *kwnames[] = { | |
19434 | (char *) "self",(char *) "datetime", NULL | |
19435 | }; | |
19436 | ||
19437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
19438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19441 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19442 | SWIG_fail; | |
19443 | if (arg2 == NULL) { | |
19444 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19445 | SWIG_fail; | |
19446 | } | |
19447 | { | |
19448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19449 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19450 | ||
19451 | wxPyEndAllowThreads(__tstate); | |
19452 | if (PyErr_Occurred()) SWIG_fail; | |
19453 | } | |
19454 | { | |
19455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19456 | } | |
19457 | return resultobj; | |
19458 | fail: | |
19459 | return NULL; | |
19460 | } | |
19461 | ||
19462 | ||
19463 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19464 | PyObject *resultobj; | |
19465 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19466 | wxDateTime *arg2 = 0 ; | |
19467 | wxDateTime *arg3 = 0 ; | |
19468 | bool result; | |
19469 | PyObject * obj0 = 0 ; | |
19470 | PyObject * obj1 = 0 ; | |
19471 | PyObject * obj2 = 0 ; | |
19472 | char *kwnames[] = { | |
19473 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19474 | }; | |
19475 | ||
19476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19480 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19481 | SWIG_fail; | |
19482 | if (arg2 == NULL) { | |
19483 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19484 | SWIG_fail; | |
19485 | } | |
19486 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19487 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19488 | SWIG_fail; | |
19489 | if (arg3 == NULL) { | |
19490 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19491 | SWIG_fail; | |
19492 | } | |
19493 | { | |
19494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19495 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19496 | ||
19497 | wxPyEndAllowThreads(__tstate); | |
19498 | if (PyErr_Occurred()) SWIG_fail; | |
19499 | } | |
19500 | { | |
19501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19502 | } | |
19503 | return resultobj; | |
19504 | fail: | |
19505 | return NULL; | |
19506 | } | |
19507 | ||
19508 | ||
19509 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19510 | PyObject *resultobj; | |
19511 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19512 | wxDateTime *arg2 = 0 ; | |
19513 | wxDateTime *arg3 = 0 ; | |
19514 | bool result; | |
19515 | PyObject * obj0 = 0 ; | |
19516 | PyObject * obj1 = 0 ; | |
19517 | PyObject * obj2 = 0 ; | |
19518 | char *kwnames[] = { | |
19519 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19520 | }; | |
19521 | ||
19522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19526 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19527 | SWIG_fail; | |
19528 | if (arg2 == NULL) { | |
19529 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19530 | SWIG_fail; | |
19531 | } | |
19532 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19533 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19534 | SWIG_fail; | |
19535 | if (arg3 == NULL) { | |
19536 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19537 | SWIG_fail; | |
19538 | } | |
19539 | { | |
19540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19541 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19542 | ||
19543 | wxPyEndAllowThreads(__tstate); | |
19544 | if (PyErr_Occurred()) SWIG_fail; | |
19545 | } | |
19546 | { | |
19547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19548 | } | |
19549 | return resultobj; | |
19550 | fail: | |
19551 | return NULL; | |
19552 | } | |
19553 | ||
19554 | ||
19555 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19556 | PyObject *resultobj; | |
19557 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19558 | wxDateTime *arg2 = 0 ; | |
19559 | bool result; | |
19560 | PyObject * obj0 = 0 ; | |
19561 | PyObject * obj1 = 0 ; | |
19562 | char *kwnames[] = { | |
19563 | (char *) "self",(char *) "dt", NULL | |
19564 | }; | |
19565 | ||
19566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
19567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19569 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19570 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19571 | SWIG_fail; | |
19572 | if (arg2 == NULL) { | |
19573 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19574 | SWIG_fail; | |
19575 | } | |
19576 | { | |
19577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19578 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19579 | ||
19580 | wxPyEndAllowThreads(__tstate); | |
19581 | if (PyErr_Occurred()) SWIG_fail; | |
19582 | } | |
19583 | { | |
19584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19585 | } | |
19586 | return resultobj; | |
19587 | fail: | |
19588 | return NULL; | |
19589 | } | |
19590 | ||
19591 | ||
19592 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19593 | PyObject *resultobj; | |
19594 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19595 | wxDateTime *arg2 = 0 ; | |
19596 | bool result; | |
19597 | PyObject * obj0 = 0 ; | |
19598 | PyObject * obj1 = 0 ; | |
19599 | char *kwnames[] = { | |
19600 | (char *) "self",(char *) "dt", NULL | |
19601 | }; | |
19602 | ||
19603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
19604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19608 | SWIG_fail; | |
19609 | if (arg2 == NULL) { | |
19610 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19611 | SWIG_fail; | |
19612 | } | |
19613 | { | |
19614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19615 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19616 | ||
19617 | wxPyEndAllowThreads(__tstate); | |
19618 | if (PyErr_Occurred()) SWIG_fail; | |
19619 | } | |
19620 | { | |
19621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19622 | } | |
19623 | return resultobj; | |
19624 | fail: | |
19625 | return NULL; | |
19626 | } | |
19627 | ||
19628 | ||
19629 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19630 | PyObject *resultobj; | |
19631 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19632 | wxDateTime *arg2 = 0 ; | |
19633 | wxTimeSpan *arg3 = 0 ; | |
19634 | bool result; | |
19635 | PyObject * obj0 = 0 ; | |
19636 | PyObject * obj1 = 0 ; | |
19637 | PyObject * obj2 = 0 ; | |
19638 | char *kwnames[] = { | |
19639 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19640 | }; | |
19641 | ||
19642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19645 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19646 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19647 | SWIG_fail; | |
19648 | if (arg2 == NULL) { | |
19649 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19650 | SWIG_fail; | |
19651 | } | |
19652 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
19653 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19654 | SWIG_fail; | |
19655 | if (arg3 == NULL) { | |
19656 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19657 | SWIG_fail; | |
19658 | } | |
19659 | { | |
19660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19661 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19662 | ||
19663 | wxPyEndAllowThreads(__tstate); | |
19664 | if (PyErr_Occurred()) SWIG_fail; | |
19665 | } | |
19666 | { | |
19667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19668 | } | |
19669 | return resultobj; | |
19670 | fail: | |
19671 | return NULL; | |
19672 | } | |
19673 | ||
19674 | ||
19675 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19676 | PyObject *resultobj; | |
19677 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19678 | wxTimeSpan *arg2 = 0 ; | |
19679 | wxDateTime *result; | |
19680 | PyObject * obj0 = 0 ; | |
19681 | PyObject * obj1 = 0 ; | |
19682 | char *kwnames[] = { | |
19683 | (char *) "self",(char *) "diff", NULL | |
19684 | }; | |
19685 | ||
19686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
19687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19689 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19690 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19691 | SWIG_fail; | |
19692 | if (arg2 == NULL) { | |
19693 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19694 | SWIG_fail; | |
19695 | } | |
19696 | { | |
19697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19698 | { | |
19699 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19700 | result = (wxDateTime *) &_result_ref; | |
19701 | } | |
19702 | ||
19703 | wxPyEndAllowThreads(__tstate); | |
19704 | if (PyErr_Occurred()) SWIG_fail; | |
19705 | } | |
19706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19707 | return resultobj; | |
19708 | fail: | |
19709 | return NULL; | |
19710 | } | |
19711 | ||
19712 | ||
19713 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19714 | PyObject *resultobj; | |
19715 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19716 | wxDateSpan *arg2 = 0 ; | |
19717 | wxDateTime *result; | |
19718 | PyObject * obj0 = 0 ; | |
19719 | PyObject * obj1 = 0 ; | |
19720 | char *kwnames[] = { | |
19721 | (char *) "self",(char *) "diff", NULL | |
19722 | }; | |
19723 | ||
19724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
19725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19727 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19728 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19729 | SWIG_fail; | |
19730 | if (arg2 == NULL) { | |
19731 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19732 | SWIG_fail; | |
19733 | } | |
19734 | { | |
19735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19736 | { | |
19737 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19738 | result = (wxDateTime *) &_result_ref; | |
19739 | } | |
19740 | ||
19741 | wxPyEndAllowThreads(__tstate); | |
19742 | if (PyErr_Occurred()) SWIG_fail; | |
19743 | } | |
19744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19745 | return resultobj; | |
19746 | fail: | |
19747 | return NULL; | |
19748 | } | |
19749 | ||
19750 | ||
19751 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19752 | PyObject *resultobj; | |
19753 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19754 | wxTimeSpan *arg2 = 0 ; | |
19755 | wxDateTime *result; | |
19756 | PyObject * obj0 = 0 ; | |
19757 | PyObject * obj1 = 0 ; | |
19758 | char *kwnames[] = { | |
19759 | (char *) "self",(char *) "diff", NULL | |
19760 | }; | |
19761 | ||
19762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
19763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19767 | SWIG_fail; | |
19768 | if (arg2 == NULL) { | |
19769 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19770 | SWIG_fail; | |
19771 | } | |
19772 | { | |
19773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19774 | { | |
19775 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19776 | result = (wxDateTime *) &_result_ref; | |
19777 | } | |
19778 | ||
19779 | wxPyEndAllowThreads(__tstate); | |
19780 | if (PyErr_Occurred()) SWIG_fail; | |
19781 | } | |
19782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19783 | return resultobj; | |
19784 | fail: | |
19785 | return NULL; | |
19786 | } | |
19787 | ||
19788 | ||
19789 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19790 | PyObject *resultobj; | |
19791 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19792 | wxDateSpan *arg2 = 0 ; | |
19793 | wxDateTime *result; | |
19794 | PyObject * obj0 = 0 ; | |
19795 | PyObject * obj1 = 0 ; | |
19796 | char *kwnames[] = { | |
19797 | (char *) "self",(char *) "diff", NULL | |
19798 | }; | |
19799 | ||
19800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
19801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19804 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19805 | SWIG_fail; | |
19806 | if (arg2 == NULL) { | |
19807 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19808 | SWIG_fail; | |
19809 | } | |
19810 | { | |
19811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19812 | { | |
19813 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19814 | result = (wxDateTime *) &_result_ref; | |
19815 | } | |
19816 | ||
19817 | wxPyEndAllowThreads(__tstate); | |
19818 | if (PyErr_Occurred()) SWIG_fail; | |
19819 | } | |
19820 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19821 | return resultobj; | |
19822 | fail: | |
19823 | return NULL; | |
19824 | } | |
19825 | ||
19826 | ||
19827 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19828 | PyObject *resultobj; | |
19829 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19830 | wxDateTime *arg2 = 0 ; | |
19831 | wxTimeSpan result; | |
19832 | PyObject * obj0 = 0 ; | |
19833 | PyObject * obj1 = 0 ; | |
19834 | char *kwnames[] = { | |
19835 | (char *) "self",(char *) "dt", NULL | |
19836 | }; | |
19837 | ||
19838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19841 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19842 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19843 | SWIG_fail; | |
19844 | if (arg2 == NULL) { | |
19845 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19846 | SWIG_fail; | |
19847 | } | |
19848 | { | |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | { | |
19856 | wxTimeSpan * resultptr; | |
19857 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19858 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
19859 | } | |
19860 | return resultobj; | |
19861 | fail: | |
19862 | return NULL; | |
19863 | } | |
19864 | ||
19865 | ||
19866 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19867 | PyObject *resultobj; | |
19868 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19869 | wxTimeSpan *arg2 = 0 ; | |
19870 | wxDateTime *result; | |
19871 | PyObject * obj0 = 0 ; | |
19872 | PyObject * obj1 = 0 ; | |
19873 | ||
19874 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19877 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19878 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19879 | SWIG_fail; | |
19880 | if (arg2 == NULL) { | |
19881 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19882 | SWIG_fail; | |
19883 | } | |
19884 | { | |
19885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19886 | { | |
19887 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19888 | result = (wxDateTime *) &_result_ref; | |
19889 | } | |
19890 | ||
19891 | wxPyEndAllowThreads(__tstate); | |
19892 | if (PyErr_Occurred()) SWIG_fail; | |
19893 | } | |
19894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19895 | return resultobj; | |
19896 | fail: | |
19897 | return NULL; | |
19898 | } | |
19899 | ||
19900 | ||
19901 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
19902 | PyObject *resultobj; | |
19903 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19904 | wxDateSpan *arg2 = 0 ; | |
19905 | wxDateTime *result; | |
19906 | PyObject * obj0 = 0 ; | |
19907 | PyObject * obj1 = 0 ; | |
19908 | ||
19909 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19912 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19913 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19914 | SWIG_fail; | |
19915 | if (arg2 == NULL) { | |
19916 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19917 | SWIG_fail; | |
19918 | } | |
19919 | { | |
19920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19921 | { | |
19922 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
19923 | result = (wxDateTime *) &_result_ref; | |
19924 | } | |
19925 | ||
19926 | wxPyEndAllowThreads(__tstate); | |
19927 | if (PyErr_Occurred()) SWIG_fail; | |
19928 | } | |
19929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19930 | return resultobj; | |
19931 | fail: | |
19932 | return NULL; | |
19933 | } | |
19934 | ||
19935 | ||
19936 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
19937 | int argc; | |
19938 | PyObject *argv[3]; | |
19939 | int ii; | |
19940 | ||
19941 | argc = PyObject_Length(args); | |
19942 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19943 | argv[ii] = PyTuple_GetItem(args,ii); | |
19944 | } | |
19945 | if (argc == 2) { | |
19946 | int _v; | |
19947 | { | |
19948 | void *ptr; | |
19949 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19950 | _v = 0; | |
19951 | PyErr_Clear(); | |
19952 | } else { | |
19953 | _v = 1; | |
19954 | } | |
19955 | } | |
19956 | if (_v) { | |
19957 | { | |
19958 | void *ptr; | |
19959 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19960 | _v = 0; | |
19961 | PyErr_Clear(); | |
19962 | } else { | |
19963 | _v = 1; | |
19964 | } | |
19965 | } | |
19966 | if (_v) { | |
19967 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
19968 | } | |
19969 | } | |
19970 | } | |
19971 | if (argc == 2) { | |
19972 | int _v; | |
19973 | { | |
19974 | void *ptr; | |
19975 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19976 | _v = 0; | |
19977 | PyErr_Clear(); | |
19978 | } else { | |
19979 | _v = 1; | |
19980 | } | |
19981 | } | |
19982 | if (_v) { | |
19983 | { | |
19984 | void *ptr; | |
19985 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
19986 | _v = 0; | |
19987 | PyErr_Clear(); | |
19988 | } else { | |
19989 | _v = 1; | |
19990 | } | |
19991 | } | |
19992 | if (_v) { | |
19993 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
19994 | } | |
19995 | } | |
19996 | } | |
19997 | ||
19998 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
19999 | return NULL; | |
20000 | } | |
20001 | ||
20002 | ||
20003 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20004 | PyObject *resultobj; | |
20005 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20006 | wxTimeSpan *arg2 = 0 ; | |
20007 | wxDateTime *result; | |
20008 | PyObject * obj0 = 0 ; | |
20009 | PyObject * obj1 = 0 ; | |
20010 | ||
20011 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20014 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20015 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20016 | SWIG_fail; | |
20017 | if (arg2 == NULL) { | |
20018 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20019 | SWIG_fail; | |
20020 | } | |
20021 | { | |
20022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20023 | { | |
20024 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20025 | result = (wxDateTime *) &_result_ref; | |
20026 | } | |
20027 | ||
20028 | wxPyEndAllowThreads(__tstate); | |
20029 | if (PyErr_Occurred()) SWIG_fail; | |
20030 | } | |
20031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20032 | return resultobj; | |
20033 | fail: | |
20034 | return NULL; | |
20035 | } | |
20036 | ||
20037 | ||
20038 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20039 | PyObject *resultobj; | |
20040 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20041 | wxDateSpan *arg2 = 0 ; | |
20042 | wxDateTime *result; | |
20043 | PyObject * obj0 = 0 ; | |
20044 | PyObject * obj1 = 0 ; | |
20045 | ||
20046 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20051 | SWIG_fail; | |
20052 | if (arg2 == NULL) { | |
20053 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20054 | SWIG_fail; | |
20055 | } | |
20056 | { | |
20057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20058 | { | |
20059 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20060 | result = (wxDateTime *) &_result_ref; | |
20061 | } | |
20062 | ||
20063 | wxPyEndAllowThreads(__tstate); | |
20064 | if (PyErr_Occurred()) SWIG_fail; | |
20065 | } | |
20066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20067 | return resultobj; | |
20068 | fail: | |
20069 | return NULL; | |
20070 | } | |
20071 | ||
20072 | ||
20073 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20074 | int argc; | |
20075 | PyObject *argv[3]; | |
20076 | int ii; | |
20077 | ||
20078 | argc = PyObject_Length(args); | |
20079 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20080 | argv[ii] = PyTuple_GetItem(args,ii); | |
20081 | } | |
20082 | if (argc == 2) { | |
20083 | int _v; | |
20084 | { | |
20085 | void *ptr; | |
20086 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20087 | _v = 0; | |
20088 | PyErr_Clear(); | |
20089 | } else { | |
20090 | _v = 1; | |
20091 | } | |
20092 | } | |
20093 | if (_v) { | |
20094 | { | |
20095 | void *ptr; | |
20096 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20097 | _v = 0; | |
20098 | PyErr_Clear(); | |
20099 | } else { | |
20100 | _v = 1; | |
20101 | } | |
20102 | } | |
20103 | if (_v) { | |
20104 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20105 | } | |
20106 | } | |
20107 | } | |
20108 | if (argc == 2) { | |
20109 | int _v; | |
20110 | { | |
20111 | void *ptr; | |
20112 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20113 | _v = 0; | |
20114 | PyErr_Clear(); | |
20115 | } else { | |
20116 | _v = 1; | |
20117 | } | |
20118 | } | |
20119 | if (_v) { | |
20120 | { | |
20121 | void *ptr; | |
20122 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20123 | _v = 0; | |
20124 | PyErr_Clear(); | |
20125 | } else { | |
20126 | _v = 1; | |
20127 | } | |
20128 | } | |
20129 | if (_v) { | |
20130 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20131 | } | |
20132 | } | |
20133 | } | |
20134 | ||
20135 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20136 | return NULL; | |
20137 | } | |
20138 | ||
20139 | ||
20140 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20141 | PyObject *resultobj; | |
20142 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20143 | wxTimeSpan *arg2 = 0 ; | |
20144 | wxDateTime result; | |
20145 | PyObject * obj0 = 0 ; | |
20146 | PyObject * obj1 = 0 ; | |
20147 | ||
20148 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20152 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20153 | SWIG_fail; | |
20154 | if (arg2 == NULL) { | |
20155 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20156 | SWIG_fail; | |
20157 | } | |
20158 | { | |
20159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20160 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20161 | ||
20162 | wxPyEndAllowThreads(__tstate); | |
20163 | if (PyErr_Occurred()) SWIG_fail; | |
20164 | } | |
20165 | { | |
20166 | wxDateTime * resultptr; | |
20167 | resultptr = new wxDateTime((wxDateTime &) result); | |
20168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20169 | } | |
20170 | return resultobj; | |
20171 | fail: | |
20172 | return NULL; | |
20173 | } | |
20174 | ||
20175 | ||
20176 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20177 | PyObject *resultobj; | |
20178 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20179 | wxDateSpan *arg2 = 0 ; | |
20180 | wxDateTime result; | |
20181 | PyObject * obj0 = 0 ; | |
20182 | PyObject * obj1 = 0 ; | |
20183 | ||
20184 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20187 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20188 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20189 | SWIG_fail; | |
20190 | if (arg2 == NULL) { | |
20191 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20192 | SWIG_fail; | |
20193 | } | |
20194 | { | |
20195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20196 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20197 | ||
20198 | wxPyEndAllowThreads(__tstate); | |
20199 | if (PyErr_Occurred()) SWIG_fail; | |
20200 | } | |
20201 | { | |
20202 | wxDateTime * resultptr; | |
20203 | resultptr = new wxDateTime((wxDateTime &) result); | |
20204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20205 | } | |
20206 | return resultobj; | |
20207 | fail: | |
20208 | return NULL; | |
20209 | } | |
20210 | ||
20211 | ||
20212 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20213 | int argc; | |
20214 | PyObject *argv[3]; | |
20215 | int ii; | |
20216 | ||
20217 | argc = PyObject_Length(args); | |
20218 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20219 | argv[ii] = PyTuple_GetItem(args,ii); | |
20220 | } | |
20221 | if (argc == 2) { | |
20222 | int _v; | |
20223 | { | |
20224 | void *ptr; | |
20225 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20226 | _v = 0; | |
20227 | PyErr_Clear(); | |
20228 | } else { | |
20229 | _v = 1; | |
20230 | } | |
20231 | } | |
20232 | if (_v) { | |
20233 | { | |
20234 | void *ptr; | |
20235 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20236 | _v = 0; | |
20237 | PyErr_Clear(); | |
20238 | } else { | |
20239 | _v = 1; | |
20240 | } | |
20241 | } | |
20242 | if (_v) { | |
20243 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20244 | } | |
20245 | } | |
20246 | } | |
20247 | if (argc == 2) { | |
20248 | int _v; | |
20249 | { | |
20250 | void *ptr; | |
20251 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20252 | _v = 0; | |
20253 | PyErr_Clear(); | |
20254 | } else { | |
20255 | _v = 1; | |
20256 | } | |
20257 | } | |
20258 | if (_v) { | |
20259 | { | |
20260 | void *ptr; | |
20261 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20262 | _v = 0; | |
20263 | PyErr_Clear(); | |
20264 | } else { | |
20265 | _v = 1; | |
20266 | } | |
20267 | } | |
20268 | if (_v) { | |
20269 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20270 | } | |
20271 | } | |
20272 | } | |
20273 | ||
20274 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20275 | return NULL; | |
20276 | } | |
20277 | ||
20278 | ||
20279 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20280 | PyObject *resultobj; | |
20281 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20282 | wxDateTime *arg2 = 0 ; | |
20283 | wxTimeSpan result; | |
20284 | PyObject * obj0 = 0 ; | |
20285 | PyObject * obj1 = 0 ; | |
20286 | ||
20287 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&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_wxDateTime, | |
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___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20300 | ||
20301 | wxPyEndAllowThreads(__tstate); | |
20302 | if (PyErr_Occurred()) SWIG_fail; | |
20303 | } | |
20304 | { | |
20305 | wxTimeSpan * resultptr; | |
20306 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20307 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20308 | } | |
20309 | return resultobj; | |
20310 | fail: | |
20311 | return NULL; | |
20312 | } | |
20313 | ||
20314 | ||
20315 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20316 | PyObject *resultobj; | |
20317 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20318 | wxTimeSpan *arg2 = 0 ; | |
20319 | wxDateTime result; | |
20320 | PyObject * obj0 = 0 ; | |
20321 | PyObject * obj1 = 0 ; | |
20322 | ||
20323 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20326 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20327 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20328 | SWIG_fail; | |
20329 | if (arg2 == NULL) { | |
20330 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20331 | SWIG_fail; | |
20332 | } | |
20333 | { | |
20334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20335 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20336 | ||
20337 | wxPyEndAllowThreads(__tstate); | |
20338 | if (PyErr_Occurred()) SWIG_fail; | |
20339 | } | |
20340 | { | |
20341 | wxDateTime * resultptr; | |
20342 | resultptr = new wxDateTime((wxDateTime &) result); | |
20343 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20344 | } | |
20345 | return resultobj; | |
20346 | fail: | |
20347 | return NULL; | |
20348 | } | |
20349 | ||
20350 | ||
20351 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20352 | PyObject *resultobj; | |
20353 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20354 | wxDateSpan *arg2 = 0 ; | |
20355 | wxDateTime result; | |
20356 | PyObject * obj0 = 0 ; | |
20357 | PyObject * obj1 = 0 ; | |
20358 | ||
20359 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20362 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20363 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20364 | SWIG_fail; | |
20365 | if (arg2 == NULL) { | |
20366 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20367 | SWIG_fail; | |
20368 | } | |
20369 | { | |
20370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20371 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20372 | ||
20373 | wxPyEndAllowThreads(__tstate); | |
20374 | if (PyErr_Occurred()) SWIG_fail; | |
20375 | } | |
20376 | { | |
20377 | wxDateTime * resultptr; | |
20378 | resultptr = new wxDateTime((wxDateTime &) result); | |
20379 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20380 | } | |
20381 | return resultobj; | |
20382 | fail: | |
20383 | return NULL; | |
20384 | } | |
20385 | ||
20386 | ||
20387 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20388 | int argc; | |
20389 | PyObject *argv[3]; | |
20390 | int ii; | |
20391 | ||
20392 | argc = PyObject_Length(args); | |
20393 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20394 | argv[ii] = PyTuple_GetItem(args,ii); | |
20395 | } | |
20396 | if (argc == 2) { | |
20397 | int _v; | |
20398 | { | |
20399 | void *ptr; | |
20400 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20401 | _v = 0; | |
20402 | PyErr_Clear(); | |
20403 | } else { | |
20404 | _v = 1; | |
20405 | } | |
20406 | } | |
20407 | if (_v) { | |
20408 | { | |
20409 | void *ptr; | |
20410 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20411 | _v = 0; | |
20412 | PyErr_Clear(); | |
20413 | } else { | |
20414 | _v = 1; | |
20415 | } | |
20416 | } | |
20417 | if (_v) { | |
20418 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20419 | } | |
20420 | } | |
20421 | } | |
20422 | if (argc == 2) { | |
20423 | int _v; | |
20424 | { | |
20425 | void *ptr; | |
20426 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20427 | _v = 0; | |
20428 | PyErr_Clear(); | |
20429 | } else { | |
20430 | _v = 1; | |
20431 | } | |
20432 | } | |
20433 | if (_v) { | |
20434 | { | |
20435 | void *ptr; | |
20436 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20437 | _v = 0; | |
20438 | PyErr_Clear(); | |
20439 | } else { | |
20440 | _v = 1; | |
20441 | } | |
20442 | } | |
20443 | if (_v) { | |
20444 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20445 | } | |
20446 | } | |
20447 | } | |
20448 | if (argc == 2) { | |
20449 | int _v; | |
20450 | { | |
20451 | void *ptr; | |
20452 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20453 | _v = 0; | |
20454 | PyErr_Clear(); | |
20455 | } else { | |
20456 | _v = 1; | |
20457 | } | |
20458 | } | |
20459 | if (_v) { | |
20460 | { | |
20461 | void *ptr; | |
20462 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20463 | _v = 0; | |
20464 | PyErr_Clear(); | |
20465 | } else { | |
20466 | _v = 1; | |
20467 | } | |
20468 | } | |
20469 | if (_v) { | |
20470 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20471 | } | |
20472 | } | |
20473 | } | |
20474 | ||
20475 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20476 | return NULL; | |
20477 | } | |
20478 | ||
20479 | ||
20480 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20481 | PyObject *resultobj; | |
20482 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20483 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20484 | bool result; | |
20485 | PyObject * obj0 = 0 ; | |
20486 | PyObject * obj1 = 0 ; | |
20487 | ||
20488 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
20489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20491 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20493 | { | |
20494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20495 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
20496 | ||
20497 | wxPyEndAllowThreads(__tstate); | |
20498 | if (PyErr_Occurred()) SWIG_fail; | |
20499 | } | |
20500 | { | |
20501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20502 | } | |
20503 | return resultobj; | |
20504 | fail: | |
20505 | return NULL; | |
20506 | } | |
20507 | ||
20508 | ||
20509 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20510 | PyObject *resultobj; | |
20511 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20512 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20513 | bool result; | |
20514 | PyObject * obj0 = 0 ; | |
20515 | PyObject * obj1 = 0 ; | |
20516 | ||
20517 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
20518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20520 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20522 | { | |
20523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20524 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
20525 | ||
20526 | wxPyEndAllowThreads(__tstate); | |
20527 | if (PyErr_Occurred()) SWIG_fail; | |
20528 | } | |
20529 | { | |
20530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20531 | } | |
20532 | return resultobj; | |
20533 | fail: | |
20534 | return NULL; | |
20535 | } | |
20536 | ||
20537 | ||
20538 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20539 | PyObject *resultobj; | |
20540 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20541 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20542 | bool result; | |
20543 | PyObject * obj0 = 0 ; | |
20544 | PyObject * obj1 = 0 ; | |
20545 | ||
20546 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
20547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20551 | { | |
20552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20553 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
20554 | ||
20555 | wxPyEndAllowThreads(__tstate); | |
20556 | if (PyErr_Occurred()) SWIG_fail; | |
20557 | } | |
20558 | { | |
20559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20560 | } | |
20561 | return resultobj; | |
20562 | fail: | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
20567 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20568 | PyObject *resultobj; | |
20569 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20570 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20571 | bool result; | |
20572 | PyObject * obj0 = 0 ; | |
20573 | PyObject * obj1 = 0 ; | |
20574 | ||
20575 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
20576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20578 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20580 | { | |
20581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20582 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
20583 | ||
20584 | wxPyEndAllowThreads(__tstate); | |
20585 | if (PyErr_Occurred()) SWIG_fail; | |
20586 | } | |
20587 | { | |
20588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20589 | } | |
20590 | return resultobj; | |
20591 | fail: | |
20592 | return NULL; | |
20593 | } | |
20594 | ||
20595 | ||
20596 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20597 | PyObject *resultobj; | |
20598 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20599 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20600 | bool result; | |
20601 | PyObject * obj0 = 0 ; | |
20602 | PyObject * obj1 = 0 ; | |
20603 | ||
20604 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
20605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20609 | { | |
20610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20611 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
20612 | ||
20613 | wxPyEndAllowThreads(__tstate); | |
20614 | if (PyErr_Occurred()) SWIG_fail; | |
20615 | } | |
20616 | { | |
20617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20618 | } | |
20619 | return resultobj; | |
20620 | fail: | |
20621 | return NULL; | |
20622 | } | |
20623 | ||
20624 | ||
20625 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20626 | PyObject *resultobj; | |
20627 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20628 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20629 | bool result; | |
20630 | PyObject * obj0 = 0 ; | |
20631 | PyObject * obj1 = 0 ; | |
20632 | ||
20633 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
20634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20638 | { | |
20639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20640 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
20641 | ||
20642 | wxPyEndAllowThreads(__tstate); | |
20643 | if (PyErr_Occurred()) SWIG_fail; | |
20644 | } | |
20645 | { | |
20646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20647 | } | |
20648 | return resultobj; | |
20649 | fail: | |
20650 | return NULL; | |
20651 | } | |
20652 | ||
20653 | ||
20654 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20655 | PyObject *resultobj; | |
20656 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20657 | wxString *arg2 = 0 ; | |
20658 | int result; | |
20659 | bool temp2 = False ; | |
20660 | PyObject * obj0 = 0 ; | |
20661 | PyObject * obj1 = 0 ; | |
20662 | char *kwnames[] = { | |
20663 | (char *) "self",(char *) "date", NULL | |
20664 | }; | |
20665 | ||
20666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
20667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20669 | { | |
20670 | arg2 = wxString_in_helper(obj1); | |
20671 | if (arg2 == NULL) SWIG_fail; | |
20672 | temp2 = True; | |
20673 | } | |
20674 | { | |
20675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20676 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20677 | ||
20678 | wxPyEndAllowThreads(__tstate); | |
20679 | if (PyErr_Occurred()) SWIG_fail; | |
20680 | } | |
20681 | resultobj = SWIG_FromInt((int)result); | |
20682 | { | |
20683 | if (temp2) | |
20684 | delete arg2; | |
20685 | } | |
20686 | return resultobj; | |
20687 | fail: | |
20688 | { | |
20689 | if (temp2) | |
20690 | delete arg2; | |
20691 | } | |
20692 | return NULL; | |
20693 | } | |
20694 | ||
20695 | ||
20696 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20697 | PyObject *resultobj; | |
20698 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20699 | wxString *arg2 = 0 ; | |
20700 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20701 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20702 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20703 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20704 | int result; | |
20705 | bool temp2 = False ; | |
20706 | bool temp3 = False ; | |
20707 | PyObject * obj0 = 0 ; | |
20708 | PyObject * obj1 = 0 ; | |
20709 | PyObject * obj2 = 0 ; | |
20710 | PyObject * obj3 = 0 ; | |
20711 | char *kwnames[] = { | |
20712 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20713 | }; | |
20714 | ||
20715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20718 | { | |
20719 | arg2 = wxString_in_helper(obj1); | |
20720 | if (arg2 == NULL) SWIG_fail; | |
20721 | temp2 = True; | |
20722 | } | |
20723 | if (obj2) { | |
20724 | { | |
20725 | arg3 = wxString_in_helper(obj2); | |
20726 | if (arg3 == NULL) SWIG_fail; | |
20727 | temp3 = True; | |
20728 | } | |
20729 | } | |
20730 | if (obj3) { | |
20731 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
20732 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20733 | SWIG_fail; | |
20734 | if (arg4 == NULL) { | |
20735 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20736 | SWIG_fail; | |
20737 | } | |
20738 | } | |
20739 | { | |
20740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20741 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20742 | ||
20743 | wxPyEndAllowThreads(__tstate); | |
20744 | if (PyErr_Occurred()) SWIG_fail; | |
20745 | } | |
20746 | resultobj = SWIG_FromInt((int)result); | |
20747 | { | |
20748 | if (temp2) | |
20749 | delete arg2; | |
20750 | } | |
20751 | { | |
20752 | if (temp3) | |
20753 | delete arg3; | |
20754 | } | |
20755 | return resultobj; | |
20756 | fail: | |
20757 | { | |
20758 | if (temp2) | |
20759 | delete arg2; | |
20760 | } | |
20761 | { | |
20762 | if (temp3) | |
20763 | delete arg3; | |
20764 | } | |
20765 | return NULL; | |
20766 | } | |
20767 | ||
20768 | ||
20769 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20770 | PyObject *resultobj; | |
20771 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20772 | wxString *arg2 = 0 ; | |
20773 | int result; | |
20774 | bool temp2 = False ; | |
20775 | PyObject * obj0 = 0 ; | |
20776 | PyObject * obj1 = 0 ; | |
20777 | char *kwnames[] = { | |
20778 | (char *) "self",(char *) "datetime", NULL | |
20779 | }; | |
20780 | ||
20781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
20782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20784 | { | |
20785 | arg2 = wxString_in_helper(obj1); | |
20786 | if (arg2 == NULL) SWIG_fail; | |
20787 | temp2 = True; | |
20788 | } | |
20789 | { | |
20790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20791 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20792 | ||
20793 | wxPyEndAllowThreads(__tstate); | |
20794 | if (PyErr_Occurred()) SWIG_fail; | |
20795 | } | |
20796 | resultobj = SWIG_FromInt((int)result); | |
20797 | { | |
20798 | if (temp2) | |
20799 | delete arg2; | |
20800 | } | |
20801 | return resultobj; | |
20802 | fail: | |
20803 | { | |
20804 | if (temp2) | |
20805 | delete arg2; | |
20806 | } | |
20807 | return NULL; | |
20808 | } | |
20809 | ||
20810 | ||
20811 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20812 | PyObject *resultobj; | |
20813 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20814 | wxString *arg2 = 0 ; | |
20815 | int result; | |
20816 | bool temp2 = False ; | |
20817 | PyObject * obj0 = 0 ; | |
20818 | PyObject * obj1 = 0 ; | |
20819 | char *kwnames[] = { | |
20820 | (char *) "self",(char *) "date", NULL | |
20821 | }; | |
20822 | ||
20823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
20824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20826 | { | |
20827 | arg2 = wxString_in_helper(obj1); | |
20828 | if (arg2 == NULL) SWIG_fail; | |
20829 | temp2 = True; | |
20830 | } | |
20831 | { | |
20832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20833 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20834 | ||
20835 | wxPyEndAllowThreads(__tstate); | |
20836 | if (PyErr_Occurred()) SWIG_fail; | |
20837 | } | |
20838 | resultobj = SWIG_FromInt((int)result); | |
20839 | { | |
20840 | if (temp2) | |
20841 | delete arg2; | |
20842 | } | |
20843 | return resultobj; | |
20844 | fail: | |
20845 | { | |
20846 | if (temp2) | |
20847 | delete arg2; | |
20848 | } | |
20849 | return NULL; | |
20850 | } | |
20851 | ||
20852 | ||
20853 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20854 | PyObject *resultobj; | |
20855 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20856 | wxString *arg2 = 0 ; | |
20857 | int result; | |
20858 | bool temp2 = False ; | |
20859 | PyObject * obj0 = 0 ; | |
20860 | PyObject * obj1 = 0 ; | |
20861 | char *kwnames[] = { | |
20862 | (char *) "self",(char *) "time", NULL | |
20863 | }; | |
20864 | ||
20865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
20866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20868 | { | |
20869 | arg2 = wxString_in_helper(obj1); | |
20870 | if (arg2 == NULL) SWIG_fail; | |
20871 | temp2 = True; | |
20872 | } | |
20873 | { | |
20874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20875 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20876 | ||
20877 | wxPyEndAllowThreads(__tstate); | |
20878 | if (PyErr_Occurred()) SWIG_fail; | |
20879 | } | |
20880 | resultobj = SWIG_FromInt((int)result); | |
20881 | { | |
20882 | if (temp2) | |
20883 | delete arg2; | |
20884 | } | |
20885 | return resultobj; | |
20886 | fail: | |
20887 | { | |
20888 | if (temp2) | |
20889 | delete arg2; | |
20890 | } | |
20891 | return NULL; | |
20892 | } | |
20893 | ||
20894 | ||
20895 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20896 | PyObject *resultobj; | |
20897 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20898 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
20899 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20900 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20901 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20902 | wxString result; | |
20903 | bool temp2 = False ; | |
20904 | bool temp3 = False ; | |
20905 | PyObject * obj0 = 0 ; | |
20906 | PyObject * obj1 = 0 ; | |
20907 | PyObject * obj2 = 0 ; | |
20908 | char *kwnames[] = { | |
20909 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
20910 | }; | |
20911 | ||
20912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20915 | if (obj1) { | |
20916 | { | |
20917 | arg2 = wxString_in_helper(obj1); | |
20918 | if (arg2 == NULL) SWIG_fail; | |
20919 | temp2 = True; | |
20920 | } | |
20921 | } | |
20922 | if (obj2) { | |
20923 | { | |
20924 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
20925 | temp3 = True; | |
20926 | } | |
20927 | } | |
20928 | { | |
20929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20930 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
20931 | ||
20932 | wxPyEndAllowThreads(__tstate); | |
20933 | if (PyErr_Occurred()) SWIG_fail; | |
20934 | } | |
20935 | { | |
20936 | #if wxUSE_UNICODE | |
20937 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20938 | #else | |
20939 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20940 | #endif | |
20941 | } | |
20942 | { | |
20943 | if (temp2) | |
20944 | delete arg2; | |
20945 | } | |
20946 | { | |
20947 | if (temp3) delete arg3; | |
20948 | } | |
20949 | return resultobj; | |
20950 | fail: | |
20951 | { | |
20952 | if (temp2) | |
20953 | delete arg2; | |
20954 | } | |
20955 | { | |
20956 | if (temp3) delete arg3; | |
20957 | } | |
20958 | return NULL; | |
20959 | } | |
20960 | ||
20961 | ||
20962 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20963 | PyObject *resultobj; | |
20964 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20965 | wxString result; | |
20966 | PyObject * obj0 = 0 ; | |
20967 | char *kwnames[] = { | |
20968 | (char *) "self", NULL | |
20969 | }; | |
20970 | ||
20971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
20972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20974 | { | |
20975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20976 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
20977 | ||
20978 | wxPyEndAllowThreads(__tstate); | |
20979 | if (PyErr_Occurred()) SWIG_fail; | |
20980 | } | |
20981 | { | |
20982 | #if wxUSE_UNICODE | |
20983 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20984 | #else | |
20985 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20986 | #endif | |
20987 | } | |
20988 | return resultobj; | |
20989 | fail: | |
20990 | return NULL; | |
20991 | } | |
20992 | ||
20993 | ||
20994 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20995 | PyObject *resultobj; | |
20996 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20997 | wxString result; | |
20998 | PyObject * obj0 = 0 ; | |
20999 | char *kwnames[] = { | |
21000 | (char *) "self", NULL | |
21001 | }; | |
21002 | ||
21003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21006 | { | |
21007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21008 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21009 | ||
21010 | wxPyEndAllowThreads(__tstate); | |
21011 | if (PyErr_Occurred()) SWIG_fail; | |
21012 | } | |
21013 | { | |
21014 | #if wxUSE_UNICODE | |
21015 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21016 | #else | |
21017 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21018 | #endif | |
21019 | } | |
21020 | return resultobj; | |
21021 | fail: | |
21022 | return NULL; | |
21023 | } | |
21024 | ||
21025 | ||
21026 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21027 | PyObject *resultobj; | |
21028 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21029 | wxString result; | |
21030 | PyObject * obj0 = 0 ; | |
21031 | char *kwnames[] = { | |
21032 | (char *) "self", NULL | |
21033 | }; | |
21034 | ||
21035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21038 | { | |
21039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21040 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21041 | ||
21042 | wxPyEndAllowThreads(__tstate); | |
21043 | if (PyErr_Occurred()) SWIG_fail; | |
21044 | } | |
21045 | { | |
21046 | #if wxUSE_UNICODE | |
21047 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21048 | #else | |
21049 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21050 | #endif | |
21051 | } | |
21052 | return resultobj; | |
21053 | fail: | |
21054 | return NULL; | |
21055 | } | |
21056 | ||
21057 | ||
21058 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21059 | PyObject *resultobj; | |
21060 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21061 | wxString result; | |
21062 | PyObject * obj0 = 0 ; | |
21063 | char *kwnames[] = { | |
21064 | (char *) "self", NULL | |
21065 | }; | |
21066 | ||
21067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21070 | { | |
21071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21072 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21073 | ||
21074 | wxPyEndAllowThreads(__tstate); | |
21075 | if (PyErr_Occurred()) SWIG_fail; | |
21076 | } | |
21077 | { | |
21078 | #if wxUSE_UNICODE | |
21079 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21080 | #else | |
21081 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21082 | #endif | |
21083 | } | |
21084 | return resultobj; | |
21085 | fail: | |
21086 | return NULL; | |
21087 | } | |
21088 | ||
21089 | ||
21090 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21091 | PyObject *obj; | |
21092 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21093 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21094 | Py_INCREF(obj); | |
21095 | return Py_BuildValue((char *)""); | |
21096 | } | |
21097 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21098 | PyObject *resultobj; | |
21099 | long arg1 ; | |
21100 | wxTimeSpan result; | |
21101 | PyObject * obj0 = 0 ; | |
21102 | char *kwnames[] = { | |
21103 | (char *) "sec", NULL | |
21104 | }; | |
21105 | ||
21106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
21107 | arg1 = (long) SWIG_AsLong(obj0); | |
21108 | if (PyErr_Occurred()) SWIG_fail; | |
21109 | { | |
21110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21111 | result = wxTimeSpan::Seconds(arg1); | |
21112 | ||
21113 | wxPyEndAllowThreads(__tstate); | |
21114 | if (PyErr_Occurred()) SWIG_fail; | |
21115 | } | |
21116 | { | |
21117 | wxTimeSpan * resultptr; | |
21118 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21119 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21120 | } | |
21121 | return resultobj; | |
21122 | fail: | |
21123 | return NULL; | |
21124 | } | |
21125 | ||
21126 | ||
21127 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21128 | PyObject *resultobj; | |
21129 | wxTimeSpan result; | |
21130 | char *kwnames[] = { | |
21131 | NULL | |
21132 | }; | |
21133 | ||
21134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21135 | { | |
21136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21137 | result = wxTimeSpan::Second(); | |
21138 | ||
21139 | wxPyEndAllowThreads(__tstate); | |
21140 | if (PyErr_Occurred()) SWIG_fail; | |
21141 | } | |
21142 | { | |
21143 | wxTimeSpan * resultptr; | |
21144 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21145 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21146 | } | |
21147 | return resultobj; | |
21148 | fail: | |
21149 | return NULL; | |
21150 | } | |
21151 | ||
21152 | ||
21153 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21154 | PyObject *resultobj; | |
21155 | long arg1 ; | |
21156 | wxTimeSpan result; | |
21157 | PyObject * obj0 = 0 ; | |
21158 | char *kwnames[] = { | |
21159 | (char *) "min", NULL | |
21160 | }; | |
21161 | ||
21162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
21163 | arg1 = (long) SWIG_AsLong(obj0); | |
21164 | if (PyErr_Occurred()) SWIG_fail; | |
21165 | { | |
21166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21167 | result = wxTimeSpan::Minutes(arg1); | |
21168 | ||
21169 | wxPyEndAllowThreads(__tstate); | |
21170 | if (PyErr_Occurred()) SWIG_fail; | |
21171 | } | |
21172 | { | |
21173 | wxTimeSpan * resultptr; | |
21174 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21175 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21176 | } | |
21177 | return resultobj; | |
21178 | fail: | |
21179 | return NULL; | |
21180 | } | |
21181 | ||
21182 | ||
21183 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21184 | PyObject *resultobj; | |
21185 | wxTimeSpan result; | |
21186 | char *kwnames[] = { | |
21187 | NULL | |
21188 | }; | |
21189 | ||
21190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21191 | { | |
21192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21193 | result = wxTimeSpan::Minute(); | |
21194 | ||
21195 | wxPyEndAllowThreads(__tstate); | |
21196 | if (PyErr_Occurred()) SWIG_fail; | |
21197 | } | |
21198 | { | |
21199 | wxTimeSpan * resultptr; | |
21200 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21201 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21202 | } | |
21203 | return resultobj; | |
21204 | fail: | |
21205 | return NULL; | |
21206 | } | |
21207 | ||
21208 | ||
21209 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21210 | PyObject *resultobj; | |
21211 | long arg1 ; | |
21212 | wxTimeSpan result; | |
21213 | PyObject * obj0 = 0 ; | |
21214 | char *kwnames[] = { | |
21215 | (char *) "hours", NULL | |
21216 | }; | |
21217 | ||
21218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
21219 | arg1 = (long) SWIG_AsLong(obj0); | |
21220 | if (PyErr_Occurred()) SWIG_fail; | |
21221 | { | |
21222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21223 | result = wxTimeSpan::Hours(arg1); | |
21224 | ||
21225 | wxPyEndAllowThreads(__tstate); | |
21226 | if (PyErr_Occurred()) SWIG_fail; | |
21227 | } | |
21228 | { | |
21229 | wxTimeSpan * resultptr; | |
21230 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21231 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21232 | } | |
21233 | return resultobj; | |
21234 | fail: | |
21235 | return NULL; | |
21236 | } | |
21237 | ||
21238 | ||
21239 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21240 | PyObject *resultobj; | |
21241 | wxTimeSpan result; | |
21242 | char *kwnames[] = { | |
21243 | NULL | |
21244 | }; | |
21245 | ||
21246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21247 | { | |
21248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21249 | result = wxTimeSpan::Hour(); | |
21250 | ||
21251 | wxPyEndAllowThreads(__tstate); | |
21252 | if (PyErr_Occurred()) SWIG_fail; | |
21253 | } | |
21254 | { | |
21255 | wxTimeSpan * resultptr; | |
21256 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21257 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21258 | } | |
21259 | return resultobj; | |
21260 | fail: | |
21261 | return NULL; | |
21262 | } | |
21263 | ||
21264 | ||
21265 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21266 | PyObject *resultobj; | |
21267 | long arg1 ; | |
21268 | wxTimeSpan result; | |
21269 | PyObject * obj0 = 0 ; | |
21270 | char *kwnames[] = { | |
21271 | (char *) "days", NULL | |
21272 | }; | |
21273 | ||
21274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
21275 | arg1 = (long) SWIG_AsLong(obj0); | |
21276 | if (PyErr_Occurred()) SWIG_fail; | |
21277 | { | |
21278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21279 | result = wxTimeSpan::Days(arg1); | |
21280 | ||
21281 | wxPyEndAllowThreads(__tstate); | |
21282 | if (PyErr_Occurred()) SWIG_fail; | |
21283 | } | |
21284 | { | |
21285 | wxTimeSpan * resultptr; | |
21286 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21287 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21288 | } | |
21289 | return resultobj; | |
21290 | fail: | |
21291 | return NULL; | |
21292 | } | |
21293 | ||
21294 | ||
21295 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21296 | PyObject *resultobj; | |
21297 | wxTimeSpan result; | |
21298 | char *kwnames[] = { | |
21299 | NULL | |
21300 | }; | |
21301 | ||
21302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21303 | { | |
21304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21305 | result = wxTimeSpan::Day(); | |
21306 | ||
21307 | wxPyEndAllowThreads(__tstate); | |
21308 | if (PyErr_Occurred()) SWIG_fail; | |
21309 | } | |
21310 | { | |
21311 | wxTimeSpan * resultptr; | |
21312 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21313 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21314 | } | |
21315 | return resultobj; | |
21316 | fail: | |
21317 | return NULL; | |
21318 | } | |
21319 | ||
21320 | ||
21321 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21322 | PyObject *resultobj; | |
21323 | long arg1 ; | |
21324 | wxTimeSpan result; | |
21325 | PyObject * obj0 = 0 ; | |
21326 | char *kwnames[] = { | |
21327 | (char *) "days", NULL | |
21328 | }; | |
21329 | ||
21330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
21331 | arg1 = (long) SWIG_AsLong(obj0); | |
21332 | if (PyErr_Occurred()) SWIG_fail; | |
21333 | { | |
21334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21335 | result = wxTimeSpan::Weeks(arg1); | |
21336 | ||
21337 | wxPyEndAllowThreads(__tstate); | |
21338 | if (PyErr_Occurred()) SWIG_fail; | |
21339 | } | |
21340 | { | |
21341 | wxTimeSpan * resultptr; | |
21342 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21343 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21344 | } | |
21345 | return resultobj; | |
21346 | fail: | |
21347 | return NULL; | |
21348 | } | |
21349 | ||
21350 | ||
21351 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21352 | PyObject *resultobj; | |
21353 | wxTimeSpan result; | |
21354 | char *kwnames[] = { | |
21355 | NULL | |
21356 | }; | |
21357 | ||
21358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21359 | { | |
21360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21361 | result = wxTimeSpan::Week(); | |
21362 | ||
21363 | wxPyEndAllowThreads(__tstate); | |
21364 | if (PyErr_Occurred()) SWIG_fail; | |
21365 | } | |
21366 | { | |
21367 | wxTimeSpan * resultptr; | |
21368 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21369 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21370 | } | |
21371 | return resultobj; | |
21372 | fail: | |
21373 | return NULL; | |
21374 | } | |
21375 | ||
21376 | ||
21377 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21378 | PyObject *resultobj; | |
21379 | long arg1 = (long) 0 ; | |
21380 | long arg2 = (long) 0 ; | |
21381 | long arg3 = (long) 0 ; | |
21382 | long arg4 = (long) 0 ; | |
21383 | wxTimeSpan *result; | |
21384 | PyObject * obj0 = 0 ; | |
21385 | PyObject * obj1 = 0 ; | |
21386 | PyObject * obj2 = 0 ; | |
21387 | PyObject * obj3 = 0 ; | |
21388 | char *kwnames[] = { | |
21389 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21390 | }; | |
21391 | ||
21392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21393 | if (obj0) { | |
21394 | arg1 = (long) SWIG_AsLong(obj0); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | } | |
21397 | if (obj1) { | |
21398 | arg2 = (long) SWIG_AsLong(obj1); | |
21399 | if (PyErr_Occurred()) SWIG_fail; | |
21400 | } | |
21401 | if (obj2) { | |
21402 | arg3 = (long) SWIG_AsLong(obj2); | |
21403 | if (PyErr_Occurred()) SWIG_fail; | |
21404 | } | |
21405 | if (obj3) { | |
21406 | arg4 = (long) SWIG_AsLong(obj3); | |
21407 | if (PyErr_Occurred()) SWIG_fail; | |
21408 | } | |
21409 | { | |
21410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21411 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21412 | ||
21413 | wxPyEndAllowThreads(__tstate); | |
21414 | if (PyErr_Occurred()) SWIG_fail; | |
21415 | } | |
21416 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
21417 | return resultobj; | |
21418 | fail: | |
21419 | return NULL; | |
21420 | } | |
21421 | ||
21422 | ||
21423 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21424 | PyObject *resultobj; | |
21425 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21426 | PyObject * obj0 = 0 ; | |
21427 | char *kwnames[] = { | |
21428 | (char *) "self", NULL | |
21429 | }; | |
21430 | ||
21431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21434 | { | |
21435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21436 | delete arg1; | |
21437 | ||
21438 | wxPyEndAllowThreads(__tstate); | |
21439 | if (PyErr_Occurred()) SWIG_fail; | |
21440 | } | |
21441 | Py_INCREF(Py_None); resultobj = Py_None; | |
21442 | return resultobj; | |
21443 | fail: | |
21444 | return NULL; | |
21445 | } | |
21446 | ||
21447 | ||
21448 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21449 | PyObject *resultobj; | |
21450 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21451 | wxTimeSpan *arg2 = 0 ; | |
21452 | wxTimeSpan *result; | |
21453 | PyObject * obj0 = 0 ; | |
21454 | PyObject * obj1 = 0 ; | |
21455 | char *kwnames[] = { | |
21456 | (char *) "self",(char *) "diff", NULL | |
21457 | }; | |
21458 | ||
21459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21464 | SWIG_fail; | |
21465 | if (arg2 == NULL) { | |
21466 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21467 | SWIG_fail; | |
21468 | } | |
21469 | { | |
21470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21471 | { | |
21472 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21473 | result = (wxTimeSpan *) &_result_ref; | |
21474 | } | |
21475 | ||
21476 | wxPyEndAllowThreads(__tstate); | |
21477 | if (PyErr_Occurred()) SWIG_fail; | |
21478 | } | |
21479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21480 | return resultobj; | |
21481 | fail: | |
21482 | return NULL; | |
21483 | } | |
21484 | ||
21485 | ||
21486 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21487 | PyObject *resultobj; | |
21488 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21489 | wxTimeSpan *arg2 = 0 ; | |
21490 | wxTimeSpan *result; | |
21491 | PyObject * obj0 = 0 ; | |
21492 | PyObject * obj1 = 0 ; | |
21493 | char *kwnames[] = { | |
21494 | (char *) "self",(char *) "diff", NULL | |
21495 | }; | |
21496 | ||
21497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21500 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21501 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21502 | SWIG_fail; | |
21503 | if (arg2 == NULL) { | |
21504 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21505 | SWIG_fail; | |
21506 | } | |
21507 | { | |
21508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21509 | { | |
21510 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21511 | result = (wxTimeSpan *) &_result_ref; | |
21512 | } | |
21513 | ||
21514 | wxPyEndAllowThreads(__tstate); | |
21515 | if (PyErr_Occurred()) SWIG_fail; | |
21516 | } | |
21517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21518 | return resultobj; | |
21519 | fail: | |
21520 | return NULL; | |
21521 | } | |
21522 | ||
21523 | ||
21524 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21525 | PyObject *resultobj; | |
21526 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21527 | int arg2 ; | |
21528 | wxTimeSpan *result; | |
21529 | PyObject * obj0 = 0 ; | |
21530 | PyObject * obj1 = 0 ; | |
21531 | char *kwnames[] = { | |
21532 | (char *) "self",(char *) "n", NULL | |
21533 | }; | |
21534 | ||
21535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
21536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21538 | arg2 = (int) SWIG_AsInt(obj1); | |
21539 | if (PyErr_Occurred()) SWIG_fail; | |
21540 | { | |
21541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21542 | { | |
21543 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21544 | result = (wxTimeSpan *) &_result_ref; | |
21545 | } | |
21546 | ||
21547 | wxPyEndAllowThreads(__tstate); | |
21548 | if (PyErr_Occurred()) SWIG_fail; | |
21549 | } | |
21550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21551 | return resultobj; | |
21552 | fail: | |
21553 | return NULL; | |
21554 | } | |
21555 | ||
21556 | ||
21557 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21558 | PyObject *resultobj; | |
21559 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21560 | wxTimeSpan *result; | |
21561 | PyObject * obj0 = 0 ; | |
21562 | char *kwnames[] = { | |
21563 | (char *) "self", NULL | |
21564 | }; | |
21565 | ||
21566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
21567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21569 | { | |
21570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21571 | { | |
21572 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21573 | result = (wxTimeSpan *) &_result_ref; | |
21574 | } | |
21575 | ||
21576 | wxPyEndAllowThreads(__tstate); | |
21577 | if (PyErr_Occurred()) SWIG_fail; | |
21578 | } | |
21579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21580 | return resultobj; | |
21581 | fail: | |
21582 | return NULL; | |
21583 | } | |
21584 | ||
21585 | ||
21586 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21587 | PyObject *resultobj; | |
21588 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21589 | wxTimeSpan result; | |
21590 | PyObject * obj0 = 0 ; | |
21591 | char *kwnames[] = { | |
21592 | (char *) "self", NULL | |
21593 | }; | |
21594 | ||
21595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
21596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21598 | { | |
21599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21600 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21601 | ||
21602 | wxPyEndAllowThreads(__tstate); | |
21603 | if (PyErr_Occurred()) SWIG_fail; | |
21604 | } | |
21605 | { | |
21606 | wxTimeSpan * resultptr; | |
21607 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21609 | } | |
21610 | return resultobj; | |
21611 | fail: | |
21612 | return NULL; | |
21613 | } | |
21614 | ||
21615 | ||
21616 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21617 | PyObject *resultobj; | |
21618 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21619 | wxTimeSpan *arg2 = 0 ; | |
21620 | wxTimeSpan *result; | |
21621 | PyObject * obj0 = 0 ; | |
21622 | PyObject * obj1 = 0 ; | |
21623 | char *kwnames[] = { | |
21624 | (char *) "self",(char *) "diff", NULL | |
21625 | }; | |
21626 | ||
21627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21630 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21631 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21632 | SWIG_fail; | |
21633 | if (arg2 == NULL) { | |
21634 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21635 | SWIG_fail; | |
21636 | } | |
21637 | { | |
21638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21639 | { | |
21640 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21641 | result = (wxTimeSpan *) &_result_ref; | |
21642 | } | |
21643 | ||
21644 | wxPyEndAllowThreads(__tstate); | |
21645 | if (PyErr_Occurred()) SWIG_fail; | |
21646 | } | |
21647 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21648 | return resultobj; | |
21649 | fail: | |
21650 | return NULL; | |
21651 | } | |
21652 | ||
21653 | ||
21654 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21655 | PyObject *resultobj; | |
21656 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21657 | wxTimeSpan *arg2 = 0 ; | |
21658 | wxTimeSpan *result; | |
21659 | PyObject * obj0 = 0 ; | |
21660 | PyObject * obj1 = 0 ; | |
21661 | char *kwnames[] = { | |
21662 | (char *) "self",(char *) "diff", NULL | |
21663 | }; | |
21664 | ||
21665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21669 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21670 | SWIG_fail; | |
21671 | if (arg2 == NULL) { | |
21672 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21673 | SWIG_fail; | |
21674 | } | |
21675 | { | |
21676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21677 | { | |
21678 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21679 | result = (wxTimeSpan *) &_result_ref; | |
21680 | } | |
21681 | ||
21682 | wxPyEndAllowThreads(__tstate); | |
21683 | if (PyErr_Occurred()) SWIG_fail; | |
21684 | } | |
21685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21686 | return resultobj; | |
21687 | fail: | |
21688 | return NULL; | |
21689 | } | |
21690 | ||
21691 | ||
21692 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21693 | PyObject *resultobj; | |
21694 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21695 | int arg2 ; | |
21696 | wxTimeSpan *result; | |
21697 | PyObject * obj0 = 0 ; | |
21698 | PyObject * obj1 = 0 ; | |
21699 | char *kwnames[] = { | |
21700 | (char *) "self",(char *) "n", NULL | |
21701 | }; | |
21702 | ||
21703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
21704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21706 | arg2 = (int) SWIG_AsInt(obj1); | |
21707 | if (PyErr_Occurred()) SWIG_fail; | |
21708 | { | |
21709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21710 | { | |
21711 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21712 | result = (wxTimeSpan *) &_result_ref; | |
21713 | } | |
21714 | ||
21715 | wxPyEndAllowThreads(__tstate); | |
21716 | if (PyErr_Occurred()) SWIG_fail; | |
21717 | } | |
21718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21719 | return resultobj; | |
21720 | fail: | |
21721 | return NULL; | |
21722 | } | |
21723 | ||
21724 | ||
21725 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21726 | PyObject *resultobj; | |
21727 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21728 | wxTimeSpan *result; | |
21729 | PyObject * obj0 = 0 ; | |
21730 | char *kwnames[] = { | |
21731 | (char *) "self", NULL | |
21732 | }; | |
21733 | ||
21734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
21735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21737 | { | |
21738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21739 | { | |
21740 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21741 | result = (wxTimeSpan *) &_result_ref; | |
21742 | } | |
21743 | ||
21744 | wxPyEndAllowThreads(__tstate); | |
21745 | if (PyErr_Occurred()) SWIG_fail; | |
21746 | } | |
21747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21748 | return resultobj; | |
21749 | fail: | |
21750 | return NULL; | |
21751 | } | |
21752 | ||
21753 | ||
21754 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21755 | PyObject *resultobj; | |
21756 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21757 | wxTimeSpan *arg2 = 0 ; | |
21758 | wxTimeSpan result; | |
21759 | PyObject * obj0 = 0 ; | |
21760 | PyObject * obj1 = 0 ; | |
21761 | char *kwnames[] = { | |
21762 | (char *) "self",(char *) "other", NULL | |
21763 | }; | |
21764 | ||
21765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21768 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21769 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21770 | SWIG_fail; | |
21771 | if (arg2 == NULL) { | |
21772 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21773 | SWIG_fail; | |
21774 | } | |
21775 | { | |
21776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21777 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21778 | ||
21779 | wxPyEndAllowThreads(__tstate); | |
21780 | if (PyErr_Occurred()) SWIG_fail; | |
21781 | } | |
21782 | { | |
21783 | wxTimeSpan * resultptr; | |
21784 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21785 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21786 | } | |
21787 | return resultobj; | |
21788 | fail: | |
21789 | return NULL; | |
21790 | } | |
21791 | ||
21792 | ||
21793 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21794 | PyObject *resultobj; | |
21795 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21796 | wxTimeSpan *arg2 = 0 ; | |
21797 | wxTimeSpan result; | |
21798 | PyObject * obj0 = 0 ; | |
21799 | PyObject * obj1 = 0 ; | |
21800 | char *kwnames[] = { | |
21801 | (char *) "self",(char *) "other", NULL | |
21802 | }; | |
21803 | ||
21804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21807 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21808 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21809 | SWIG_fail; | |
21810 | if (arg2 == NULL) { | |
21811 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21812 | SWIG_fail; | |
21813 | } | |
21814 | { | |
21815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21816 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21817 | ||
21818 | wxPyEndAllowThreads(__tstate); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | } | |
21821 | { | |
21822 | wxTimeSpan * resultptr; | |
21823 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21824 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21825 | } | |
21826 | return resultobj; | |
21827 | fail: | |
21828 | return NULL; | |
21829 | } | |
21830 | ||
21831 | ||
21832 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21833 | PyObject *resultobj; | |
21834 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21835 | int arg2 ; | |
21836 | wxTimeSpan result; | |
21837 | PyObject * obj0 = 0 ; | |
21838 | PyObject * obj1 = 0 ; | |
21839 | char *kwnames[] = { | |
21840 | (char *) "self",(char *) "n", NULL | |
21841 | }; | |
21842 | ||
21843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
21844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21846 | arg2 = (int) SWIG_AsInt(obj1); | |
21847 | if (PyErr_Occurred()) SWIG_fail; | |
21848 | { | |
21849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21850 | result = wxTimeSpan___mul__(arg1,arg2); | |
21851 | ||
21852 | wxPyEndAllowThreads(__tstate); | |
21853 | if (PyErr_Occurred()) SWIG_fail; | |
21854 | } | |
21855 | { | |
21856 | wxTimeSpan * resultptr; | |
21857 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21858 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21859 | } | |
21860 | return resultobj; | |
21861 | fail: | |
21862 | return NULL; | |
21863 | } | |
21864 | ||
21865 | ||
21866 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21867 | PyObject *resultobj; | |
21868 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21869 | int arg2 ; | |
21870 | wxTimeSpan result; | |
21871 | PyObject * obj0 = 0 ; | |
21872 | PyObject * obj1 = 0 ; | |
21873 | char *kwnames[] = { | |
21874 | (char *) "self",(char *) "n", NULL | |
21875 | }; | |
21876 | ||
21877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
21878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21880 | arg2 = (int) SWIG_AsInt(obj1); | |
21881 | if (PyErr_Occurred()) SWIG_fail; | |
21882 | { | |
21883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21884 | result = wxTimeSpan___rmul__(arg1,arg2); | |
21885 | ||
21886 | wxPyEndAllowThreads(__tstate); | |
21887 | if (PyErr_Occurred()) SWIG_fail; | |
21888 | } | |
21889 | { | |
21890 | wxTimeSpan * resultptr; | |
21891 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21892 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21893 | } | |
21894 | return resultobj; | |
21895 | fail: | |
21896 | return NULL; | |
21897 | } | |
21898 | ||
21899 | ||
21900 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21901 | PyObject *resultobj; | |
21902 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21903 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
21904 | bool result; | |
21905 | PyObject * obj0 = 0 ; | |
21906 | PyObject * obj1 = 0 ; | |
21907 | char *kwnames[] = { | |
21908 | (char *) "self",(char *) "other", NULL | |
21909 | }; | |
21910 | ||
21911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
21912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21914 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21916 | { | |
21917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21918 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
21919 | ||
21920 | wxPyEndAllowThreads(__tstate); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | { | |
21924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21925 | } | |
21926 | return resultobj; | |
21927 | fail: | |
21928 | return NULL; | |
21929 | } | |
21930 | ||
21931 | ||
21932 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21933 | PyObject *resultobj; | |
21934 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21935 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
21936 | bool result; | |
21937 | PyObject * obj0 = 0 ; | |
21938 | PyObject * obj1 = 0 ; | |
21939 | char *kwnames[] = { | |
21940 | (char *) "self",(char *) "other", NULL | |
21941 | }; | |
21942 | ||
21943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
21944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21946 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21948 | { | |
21949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21950 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
21951 | ||
21952 | wxPyEndAllowThreads(__tstate); | |
21953 | if (PyErr_Occurred()) SWIG_fail; | |
21954 | } | |
21955 | { | |
21956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21957 | } | |
21958 | return resultobj; | |
21959 | fail: | |
21960 | return NULL; | |
21961 | } | |
21962 | ||
21963 | ||
21964 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21965 | PyObject *resultobj; | |
21966 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21967 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
21968 | bool result; | |
21969 | PyObject * obj0 = 0 ; | |
21970 | PyObject * obj1 = 0 ; | |
21971 | char *kwnames[] = { | |
21972 | (char *) "self",(char *) "other", NULL | |
21973 | }; | |
21974 | ||
21975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
21976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21978 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21980 | { | |
21981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21982 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
21983 | ||
21984 | wxPyEndAllowThreads(__tstate); | |
21985 | if (PyErr_Occurred()) SWIG_fail; | |
21986 | } | |
21987 | { | |
21988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21989 | } | |
21990 | return resultobj; | |
21991 | fail: | |
21992 | return NULL; | |
21993 | } | |
21994 | ||
21995 | ||
21996 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21997 | PyObject *resultobj; | |
21998 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21999 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22000 | bool result; | |
22001 | PyObject * obj0 = 0 ; | |
22002 | PyObject * obj1 = 0 ; | |
22003 | char *kwnames[] = { | |
22004 | (char *) "self",(char *) "other", NULL | |
22005 | }; | |
22006 | ||
22007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22012 | { | |
22013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22014 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22015 | ||
22016 | wxPyEndAllowThreads(__tstate); | |
22017 | if (PyErr_Occurred()) SWIG_fail; | |
22018 | } | |
22019 | { | |
22020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22021 | } | |
22022 | return resultobj; | |
22023 | fail: | |
22024 | return NULL; | |
22025 | } | |
22026 | ||
22027 | ||
22028 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22029 | PyObject *resultobj; | |
22030 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22031 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22032 | bool result; | |
22033 | PyObject * obj0 = 0 ; | |
22034 | PyObject * obj1 = 0 ; | |
22035 | char *kwnames[] = { | |
22036 | (char *) "self",(char *) "other", NULL | |
22037 | }; | |
22038 | ||
22039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22042 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22044 | { | |
22045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22046 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22047 | ||
22048 | wxPyEndAllowThreads(__tstate); | |
22049 | if (PyErr_Occurred()) SWIG_fail; | |
22050 | } | |
22051 | { | |
22052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22053 | } | |
22054 | return resultobj; | |
22055 | fail: | |
22056 | return NULL; | |
22057 | } | |
22058 | ||
22059 | ||
22060 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22061 | PyObject *resultobj; | |
22062 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22063 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22064 | bool result; | |
22065 | PyObject * obj0 = 0 ; | |
22066 | PyObject * obj1 = 0 ; | |
22067 | char *kwnames[] = { | |
22068 | (char *) "self",(char *) "other", NULL | |
22069 | }; | |
22070 | ||
22071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22074 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22076 | { | |
22077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22078 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22079 | ||
22080 | wxPyEndAllowThreads(__tstate); | |
22081 | if (PyErr_Occurred()) SWIG_fail; | |
22082 | } | |
22083 | { | |
22084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22085 | } | |
22086 | return resultobj; | |
22087 | fail: | |
22088 | return NULL; | |
22089 | } | |
22090 | ||
22091 | ||
22092 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22093 | PyObject *resultobj; | |
22094 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22095 | bool result; | |
22096 | PyObject * obj0 = 0 ; | |
22097 | char *kwnames[] = { | |
22098 | (char *) "self", NULL | |
22099 | }; | |
22100 | ||
22101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22104 | { | |
22105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22106 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22107 | ||
22108 | wxPyEndAllowThreads(__tstate); | |
22109 | if (PyErr_Occurred()) SWIG_fail; | |
22110 | } | |
22111 | { | |
22112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22113 | } | |
22114 | return resultobj; | |
22115 | fail: | |
22116 | return NULL; | |
22117 | } | |
22118 | ||
22119 | ||
22120 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22121 | PyObject *resultobj; | |
22122 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22123 | bool result; | |
22124 | PyObject * obj0 = 0 ; | |
22125 | char *kwnames[] = { | |
22126 | (char *) "self", NULL | |
22127 | }; | |
22128 | ||
22129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22132 | { | |
22133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22134 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22135 | ||
22136 | wxPyEndAllowThreads(__tstate); | |
22137 | if (PyErr_Occurred()) SWIG_fail; | |
22138 | } | |
22139 | { | |
22140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22141 | } | |
22142 | return resultobj; | |
22143 | fail: | |
22144 | return NULL; | |
22145 | } | |
22146 | ||
22147 | ||
22148 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22149 | PyObject *resultobj; | |
22150 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22151 | bool result; | |
22152 | PyObject * obj0 = 0 ; | |
22153 | char *kwnames[] = { | |
22154 | (char *) "self", NULL | |
22155 | }; | |
22156 | ||
22157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22160 | { | |
22161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22162 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22163 | ||
22164 | wxPyEndAllowThreads(__tstate); | |
22165 | if (PyErr_Occurred()) SWIG_fail; | |
22166 | } | |
22167 | { | |
22168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22169 | } | |
22170 | return resultobj; | |
22171 | fail: | |
22172 | return NULL; | |
22173 | } | |
22174 | ||
22175 | ||
22176 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22177 | PyObject *resultobj; | |
22178 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22179 | wxTimeSpan *arg2 = 0 ; | |
22180 | bool result; | |
22181 | PyObject * obj0 = 0 ; | |
22182 | PyObject * obj1 = 0 ; | |
22183 | char *kwnames[] = { | |
22184 | (char *) "self",(char *) "ts", NULL | |
22185 | }; | |
22186 | ||
22187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
22188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22190 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22191 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22192 | SWIG_fail; | |
22193 | if (arg2 == NULL) { | |
22194 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22195 | SWIG_fail; | |
22196 | } | |
22197 | { | |
22198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22199 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22200 | ||
22201 | wxPyEndAllowThreads(__tstate); | |
22202 | if (PyErr_Occurred()) SWIG_fail; | |
22203 | } | |
22204 | { | |
22205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22206 | } | |
22207 | return resultobj; | |
22208 | fail: | |
22209 | return NULL; | |
22210 | } | |
22211 | ||
22212 | ||
22213 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22214 | PyObject *resultobj; | |
22215 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22216 | wxTimeSpan *arg2 = 0 ; | |
22217 | bool result; | |
22218 | PyObject * obj0 = 0 ; | |
22219 | PyObject * obj1 = 0 ; | |
22220 | char *kwnames[] = { | |
22221 | (char *) "self",(char *) "ts", NULL | |
22222 | }; | |
22223 | ||
22224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
22225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22228 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22229 | SWIG_fail; | |
22230 | if (arg2 == NULL) { | |
22231 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22232 | SWIG_fail; | |
22233 | } | |
22234 | { | |
22235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22236 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22237 | ||
22238 | wxPyEndAllowThreads(__tstate); | |
22239 | if (PyErr_Occurred()) SWIG_fail; | |
22240 | } | |
22241 | { | |
22242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22243 | } | |
22244 | return resultobj; | |
22245 | fail: | |
22246 | return NULL; | |
22247 | } | |
22248 | ||
22249 | ||
22250 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22251 | PyObject *resultobj; | |
22252 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22253 | wxTimeSpan *arg2 = 0 ; | |
22254 | bool result; | |
22255 | PyObject * obj0 = 0 ; | |
22256 | PyObject * obj1 = 0 ; | |
22257 | char *kwnames[] = { | |
22258 | (char *) "self",(char *) "t", NULL | |
22259 | }; | |
22260 | ||
22261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
22262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22264 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22265 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22266 | SWIG_fail; | |
22267 | if (arg2 == NULL) { | |
22268 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22269 | SWIG_fail; | |
22270 | } | |
22271 | { | |
22272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22273 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22274 | ||
22275 | wxPyEndAllowThreads(__tstate); | |
22276 | if (PyErr_Occurred()) SWIG_fail; | |
22277 | } | |
22278 | { | |
22279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22280 | } | |
22281 | return resultobj; | |
22282 | fail: | |
22283 | return NULL; | |
22284 | } | |
22285 | ||
22286 | ||
22287 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22288 | PyObject *resultobj; | |
22289 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22290 | int result; | |
22291 | PyObject * obj0 = 0 ; | |
22292 | char *kwnames[] = { | |
22293 | (char *) "self", NULL | |
22294 | }; | |
22295 | ||
22296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22299 | { | |
22300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22301 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22302 | ||
22303 | wxPyEndAllowThreads(__tstate); | |
22304 | if (PyErr_Occurred()) SWIG_fail; | |
22305 | } | |
22306 | resultobj = SWIG_FromInt((int)result); | |
22307 | return resultobj; | |
22308 | fail: | |
22309 | return NULL; | |
22310 | } | |
22311 | ||
22312 | ||
22313 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22314 | PyObject *resultobj; | |
22315 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22316 | int result; | |
22317 | PyObject * obj0 = 0 ; | |
22318 | char *kwnames[] = { | |
22319 | (char *) "self", NULL | |
22320 | }; | |
22321 | ||
22322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22325 | { | |
22326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22327 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22328 | ||
22329 | wxPyEndAllowThreads(__tstate); | |
22330 | if (PyErr_Occurred()) SWIG_fail; | |
22331 | } | |
22332 | resultobj = SWIG_FromInt((int)result); | |
22333 | return resultobj; | |
22334 | fail: | |
22335 | return NULL; | |
22336 | } | |
22337 | ||
22338 | ||
22339 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22340 | PyObject *resultobj; | |
22341 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22342 | int result; | |
22343 | PyObject * obj0 = 0 ; | |
22344 | char *kwnames[] = { | |
22345 | (char *) "self", NULL | |
22346 | }; | |
22347 | ||
22348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22351 | { | |
22352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22353 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22354 | ||
22355 | wxPyEndAllowThreads(__tstate); | |
22356 | if (PyErr_Occurred()) SWIG_fail; | |
22357 | } | |
22358 | resultobj = SWIG_FromInt((int)result); | |
22359 | return resultobj; | |
22360 | fail: | |
22361 | return NULL; | |
22362 | } | |
22363 | ||
22364 | ||
22365 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22366 | PyObject *resultobj; | |
22367 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22368 | int result; | |
22369 | PyObject * obj0 = 0 ; | |
22370 | char *kwnames[] = { | |
22371 | (char *) "self", NULL | |
22372 | }; | |
22373 | ||
22374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22377 | { | |
22378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22379 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22380 | ||
22381 | wxPyEndAllowThreads(__tstate); | |
22382 | if (PyErr_Occurred()) SWIG_fail; | |
22383 | } | |
22384 | resultobj = SWIG_FromInt((int)result); | |
22385 | return resultobj; | |
22386 | fail: | |
22387 | return NULL; | |
22388 | } | |
22389 | ||
22390 | ||
22391 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22392 | PyObject *resultobj; | |
22393 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22394 | wxLongLong result; | |
22395 | PyObject * obj0 = 0 ; | |
22396 | char *kwnames[] = { | |
22397 | (char *) "self", NULL | |
22398 | }; | |
22399 | ||
22400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22403 | { | |
22404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22405 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22406 | ||
22407 | wxPyEndAllowThreads(__tstate); | |
22408 | if (PyErr_Occurred()) SWIG_fail; | |
22409 | } | |
22410 | { | |
22411 | PyObject *hi, *lo, *shifter, *shifted; | |
22412 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22413 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22414 | shifter = PyLong_FromLong(32); | |
22415 | shifted = PyNumber_Lshift(hi, shifter); | |
22416 | resultobj = PyNumber_Or(shifted, lo); | |
22417 | Py_DECREF(hi); | |
22418 | Py_DECREF(lo); | |
22419 | Py_DECREF(shifter); | |
22420 | Py_DECREF(shifted); | |
22421 | } | |
22422 | return resultobj; | |
22423 | fail: | |
22424 | return NULL; | |
22425 | } | |
22426 | ||
22427 | ||
22428 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22429 | PyObject *resultobj; | |
22430 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22431 | wxLongLong result; | |
22432 | PyObject * obj0 = 0 ; | |
22433 | char *kwnames[] = { | |
22434 | (char *) "self", NULL | |
22435 | }; | |
22436 | ||
22437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
22438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22440 | { | |
22441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22442 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22443 | ||
22444 | wxPyEndAllowThreads(__tstate); | |
22445 | if (PyErr_Occurred()) SWIG_fail; | |
22446 | } | |
22447 | { | |
22448 | PyObject *hi, *lo, *shifter, *shifted; | |
22449 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22450 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22451 | shifter = PyLong_FromLong(32); | |
22452 | shifted = PyNumber_Lshift(hi, shifter); | |
22453 | resultobj = PyNumber_Or(shifted, lo); | |
22454 | Py_DECREF(hi); | |
22455 | Py_DECREF(lo); | |
22456 | Py_DECREF(shifter); | |
22457 | Py_DECREF(shifted); | |
22458 | } | |
22459 | return resultobj; | |
22460 | fail: | |
22461 | return NULL; | |
22462 | } | |
22463 | ||
22464 | ||
22465 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22466 | PyObject *resultobj; | |
22467 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22468 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22469 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22470 | wxString result; | |
22471 | bool temp2 = False ; | |
22472 | PyObject * obj0 = 0 ; | |
22473 | PyObject * obj1 = 0 ; | |
22474 | char *kwnames[] = { | |
22475 | (char *) "self",(char *) "format", NULL | |
22476 | }; | |
22477 | ||
22478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
22479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22481 | if (obj1) { | |
22482 | { | |
22483 | arg2 = wxString_in_helper(obj1); | |
22484 | if (arg2 == NULL) SWIG_fail; | |
22485 | temp2 = True; | |
22486 | } | |
22487 | } | |
22488 | { | |
22489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22490 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22491 | ||
22492 | wxPyEndAllowThreads(__tstate); | |
22493 | if (PyErr_Occurred()) SWIG_fail; | |
22494 | } | |
22495 | { | |
22496 | #if wxUSE_UNICODE | |
22497 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22498 | #else | |
22499 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22500 | #endif | |
22501 | } | |
22502 | { | |
22503 | if (temp2) | |
22504 | delete arg2; | |
22505 | } | |
22506 | return resultobj; | |
22507 | fail: | |
22508 | { | |
22509 | if (temp2) | |
22510 | delete arg2; | |
22511 | } | |
22512 | return NULL; | |
22513 | } | |
22514 | ||
22515 | ||
22516 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22517 | PyObject *obj; | |
22518 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22519 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22520 | Py_INCREF(obj); | |
22521 | return Py_BuildValue((char *)""); | |
22522 | } | |
22523 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22524 | PyObject *resultobj; | |
22525 | int arg1 = (int) 0 ; | |
22526 | int arg2 = (int) 0 ; | |
22527 | int arg3 = (int) 0 ; | |
22528 | int arg4 = (int) 0 ; | |
22529 | wxDateSpan *result; | |
22530 | PyObject * obj0 = 0 ; | |
22531 | PyObject * obj1 = 0 ; | |
22532 | PyObject * obj2 = 0 ; | |
22533 | PyObject * obj3 = 0 ; | |
22534 | char *kwnames[] = { | |
22535 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22536 | }; | |
22537 | ||
22538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22539 | if (obj0) { | |
22540 | arg1 = (int) SWIG_AsInt(obj0); | |
22541 | if (PyErr_Occurred()) SWIG_fail; | |
22542 | } | |
22543 | if (obj1) { | |
22544 | arg2 = (int) SWIG_AsInt(obj1); | |
22545 | if (PyErr_Occurred()) SWIG_fail; | |
22546 | } | |
22547 | if (obj2) { | |
22548 | arg3 = (int) SWIG_AsInt(obj2); | |
22549 | if (PyErr_Occurred()) SWIG_fail; | |
22550 | } | |
22551 | if (obj3) { | |
22552 | arg4 = (int) SWIG_AsInt(obj3); | |
22553 | if (PyErr_Occurred()) SWIG_fail; | |
22554 | } | |
22555 | { | |
22556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22557 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22558 | ||
22559 | wxPyEndAllowThreads(__tstate); | |
22560 | if (PyErr_Occurred()) SWIG_fail; | |
22561 | } | |
22562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
22563 | return resultobj; | |
22564 | fail: | |
22565 | return NULL; | |
22566 | } | |
22567 | ||
22568 | ||
22569 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22570 | PyObject *resultobj; | |
22571 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22572 | PyObject * obj0 = 0 ; | |
22573 | char *kwnames[] = { | |
22574 | (char *) "self", NULL | |
22575 | }; | |
22576 | ||
22577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
22578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22580 | { | |
22581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22582 | delete arg1; | |
22583 | ||
22584 | wxPyEndAllowThreads(__tstate); | |
22585 | if (PyErr_Occurred()) SWIG_fail; | |
22586 | } | |
22587 | Py_INCREF(Py_None); resultobj = Py_None; | |
22588 | return resultobj; | |
22589 | fail: | |
22590 | return NULL; | |
22591 | } | |
22592 | ||
22593 | ||
22594 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22595 | PyObject *resultobj; | |
22596 | int arg1 ; | |
22597 | wxDateSpan result; | |
22598 | PyObject * obj0 = 0 ; | |
22599 | char *kwnames[] = { | |
22600 | (char *) "days", NULL | |
22601 | }; | |
22602 | ||
22603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
22604 | arg1 = (int) SWIG_AsInt(obj0); | |
22605 | if (PyErr_Occurred()) SWIG_fail; | |
22606 | { | |
22607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22608 | result = wxDateSpan::Days(arg1); | |
22609 | ||
22610 | wxPyEndAllowThreads(__tstate); | |
22611 | if (PyErr_Occurred()) SWIG_fail; | |
22612 | } | |
22613 | { | |
22614 | wxDateSpan * resultptr; | |
22615 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22617 | } | |
22618 | return resultobj; | |
22619 | fail: | |
22620 | return NULL; | |
22621 | } | |
22622 | ||
22623 | ||
22624 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22625 | PyObject *resultobj; | |
22626 | wxDateSpan result; | |
22627 | char *kwnames[] = { | |
22628 | NULL | |
22629 | }; | |
22630 | ||
22631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22632 | { | |
22633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22634 | result = wxDateSpan::Day(); | |
22635 | ||
22636 | wxPyEndAllowThreads(__tstate); | |
22637 | if (PyErr_Occurred()) SWIG_fail; | |
22638 | } | |
22639 | { | |
22640 | wxDateSpan * resultptr; | |
22641 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22642 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22643 | } | |
22644 | return resultobj; | |
22645 | fail: | |
22646 | return NULL; | |
22647 | } | |
22648 | ||
22649 | ||
22650 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22651 | PyObject *resultobj; | |
22652 | int arg1 ; | |
22653 | wxDateSpan result; | |
22654 | PyObject * obj0 = 0 ; | |
22655 | char *kwnames[] = { | |
22656 | (char *) "weeks", NULL | |
22657 | }; | |
22658 | ||
22659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
22660 | arg1 = (int) SWIG_AsInt(obj0); | |
22661 | if (PyErr_Occurred()) SWIG_fail; | |
22662 | { | |
22663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22664 | result = wxDateSpan::Weeks(arg1); | |
22665 | ||
22666 | wxPyEndAllowThreads(__tstate); | |
22667 | if (PyErr_Occurred()) SWIG_fail; | |
22668 | } | |
22669 | { | |
22670 | wxDateSpan * resultptr; | |
22671 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22672 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22673 | } | |
22674 | return resultobj; | |
22675 | fail: | |
22676 | return NULL; | |
22677 | } | |
22678 | ||
22679 | ||
22680 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22681 | PyObject *resultobj; | |
22682 | wxDateSpan result; | |
22683 | char *kwnames[] = { | |
22684 | NULL | |
22685 | }; | |
22686 | ||
22687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22688 | { | |
22689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22690 | result = wxDateSpan::Week(); | |
22691 | ||
22692 | wxPyEndAllowThreads(__tstate); | |
22693 | if (PyErr_Occurred()) SWIG_fail; | |
22694 | } | |
22695 | { | |
22696 | wxDateSpan * resultptr; | |
22697 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22698 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22699 | } | |
22700 | return resultobj; | |
22701 | fail: | |
22702 | return NULL; | |
22703 | } | |
22704 | ||
22705 | ||
22706 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22707 | PyObject *resultobj; | |
22708 | int arg1 ; | |
22709 | wxDateSpan result; | |
22710 | PyObject * obj0 = 0 ; | |
22711 | char *kwnames[] = { | |
22712 | (char *) "mon", NULL | |
22713 | }; | |
22714 | ||
22715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
22716 | arg1 = (int) SWIG_AsInt(obj0); | |
22717 | if (PyErr_Occurred()) SWIG_fail; | |
22718 | { | |
22719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22720 | result = wxDateSpan::Months(arg1); | |
22721 | ||
22722 | wxPyEndAllowThreads(__tstate); | |
22723 | if (PyErr_Occurred()) SWIG_fail; | |
22724 | } | |
22725 | { | |
22726 | wxDateSpan * resultptr; | |
22727 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22729 | } | |
22730 | return resultobj; | |
22731 | fail: | |
22732 | return NULL; | |
22733 | } | |
22734 | ||
22735 | ||
22736 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22737 | PyObject *resultobj; | |
22738 | wxDateSpan result; | |
22739 | char *kwnames[] = { | |
22740 | NULL | |
22741 | }; | |
22742 | ||
22743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22744 | { | |
22745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22746 | result = wxDateSpan::Month(); | |
22747 | ||
22748 | wxPyEndAllowThreads(__tstate); | |
22749 | if (PyErr_Occurred()) SWIG_fail; | |
22750 | } | |
22751 | { | |
22752 | wxDateSpan * resultptr; | |
22753 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22754 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22755 | } | |
22756 | return resultobj; | |
22757 | fail: | |
22758 | return NULL; | |
22759 | } | |
22760 | ||
22761 | ||
22762 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22763 | PyObject *resultobj; | |
22764 | int arg1 ; | |
22765 | wxDateSpan result; | |
22766 | PyObject * obj0 = 0 ; | |
22767 | char *kwnames[] = { | |
22768 | (char *) "years", NULL | |
22769 | }; | |
22770 | ||
22771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
22772 | arg1 = (int) SWIG_AsInt(obj0); | |
22773 | if (PyErr_Occurred()) SWIG_fail; | |
22774 | { | |
22775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22776 | result = wxDateSpan::Years(arg1); | |
22777 | ||
22778 | wxPyEndAllowThreads(__tstate); | |
22779 | if (PyErr_Occurred()) SWIG_fail; | |
22780 | } | |
22781 | { | |
22782 | wxDateSpan * resultptr; | |
22783 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22784 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22785 | } | |
22786 | return resultobj; | |
22787 | fail: | |
22788 | return NULL; | |
22789 | } | |
22790 | ||
22791 | ||
22792 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22793 | PyObject *resultobj; | |
22794 | wxDateSpan result; | |
22795 | char *kwnames[] = { | |
22796 | NULL | |
22797 | }; | |
22798 | ||
22799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22800 | { | |
22801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22802 | result = wxDateSpan::Year(); | |
22803 | ||
22804 | wxPyEndAllowThreads(__tstate); | |
22805 | if (PyErr_Occurred()) SWIG_fail; | |
22806 | } | |
22807 | { | |
22808 | wxDateSpan * resultptr; | |
22809 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22811 | } | |
22812 | return resultobj; | |
22813 | fail: | |
22814 | return NULL; | |
22815 | } | |
22816 | ||
22817 | ||
22818 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22819 | PyObject *resultobj; | |
22820 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22821 | int arg2 ; | |
22822 | wxDateSpan *result; | |
22823 | PyObject * obj0 = 0 ; | |
22824 | PyObject * obj1 = 0 ; | |
22825 | char *kwnames[] = { | |
22826 | (char *) "self",(char *) "n", NULL | |
22827 | }; | |
22828 | ||
22829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
22830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22832 | arg2 = (int) SWIG_AsInt(obj1); | |
22833 | if (PyErr_Occurred()) SWIG_fail; | |
22834 | { | |
22835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22836 | { | |
22837 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22838 | result = (wxDateSpan *) &_result_ref; | |
22839 | } | |
22840 | ||
22841 | wxPyEndAllowThreads(__tstate); | |
22842 | if (PyErr_Occurred()) SWIG_fail; | |
22843 | } | |
22844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22845 | return resultobj; | |
22846 | fail: | |
22847 | return NULL; | |
22848 | } | |
22849 | ||
22850 | ||
22851 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22852 | PyObject *resultobj; | |
22853 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22854 | int arg2 ; | |
22855 | wxDateSpan *result; | |
22856 | PyObject * obj0 = 0 ; | |
22857 | PyObject * obj1 = 0 ; | |
22858 | char *kwnames[] = { | |
22859 | (char *) "self",(char *) "n", NULL | |
22860 | }; | |
22861 | ||
22862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
22863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22865 | arg2 = (int) SWIG_AsInt(obj1); | |
22866 | if (PyErr_Occurred()) SWIG_fail; | |
22867 | { | |
22868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22869 | { | |
22870 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22871 | result = (wxDateSpan *) &_result_ref; | |
22872 | } | |
22873 | ||
22874 | wxPyEndAllowThreads(__tstate); | |
22875 | if (PyErr_Occurred()) SWIG_fail; | |
22876 | } | |
22877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22878 | return resultobj; | |
22879 | fail: | |
22880 | return NULL; | |
22881 | } | |
22882 | ||
22883 | ||
22884 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22885 | PyObject *resultobj; | |
22886 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22887 | int arg2 ; | |
22888 | wxDateSpan *result; | |
22889 | PyObject * obj0 = 0 ; | |
22890 | PyObject * obj1 = 0 ; | |
22891 | char *kwnames[] = { | |
22892 | (char *) "self",(char *) "n", NULL | |
22893 | }; | |
22894 | ||
22895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
22896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22898 | arg2 = (int) SWIG_AsInt(obj1); | |
22899 | if (PyErr_Occurred()) SWIG_fail; | |
22900 | { | |
22901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22902 | { | |
22903 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
22904 | result = (wxDateSpan *) &_result_ref; | |
22905 | } | |
22906 | ||
22907 | wxPyEndAllowThreads(__tstate); | |
22908 | if (PyErr_Occurred()) SWIG_fail; | |
22909 | } | |
22910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22911 | return resultobj; | |
22912 | fail: | |
22913 | return NULL; | |
22914 | } | |
22915 | ||
22916 | ||
22917 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22918 | PyObject *resultobj; | |
22919 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22920 | int arg2 ; | |
22921 | wxDateSpan *result; | |
22922 | PyObject * obj0 = 0 ; | |
22923 | PyObject * obj1 = 0 ; | |
22924 | char *kwnames[] = { | |
22925 | (char *) "self",(char *) "n", NULL | |
22926 | }; | |
22927 | ||
22928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
22929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22931 | arg2 = (int) SWIG_AsInt(obj1); | |
22932 | if (PyErr_Occurred()) SWIG_fail; | |
22933 | { | |
22934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22935 | { | |
22936 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
22937 | result = (wxDateSpan *) &_result_ref; | |
22938 | } | |
22939 | ||
22940 | wxPyEndAllowThreads(__tstate); | |
22941 | if (PyErr_Occurred()) SWIG_fail; | |
22942 | } | |
22943 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22944 | return resultobj; | |
22945 | fail: | |
22946 | return NULL; | |
22947 | } | |
22948 | ||
22949 | ||
22950 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22951 | PyObject *resultobj; | |
22952 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22953 | int result; | |
22954 | PyObject * obj0 = 0 ; | |
22955 | char *kwnames[] = { | |
22956 | (char *) "self", NULL | |
22957 | }; | |
22958 | ||
22959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
22960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22962 | { | |
22963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22964 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
22965 | ||
22966 | wxPyEndAllowThreads(__tstate); | |
22967 | if (PyErr_Occurred()) SWIG_fail; | |
22968 | } | |
22969 | resultobj = SWIG_FromInt((int)result); | |
22970 | return resultobj; | |
22971 | fail: | |
22972 | return NULL; | |
22973 | } | |
22974 | ||
22975 | ||
22976 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22977 | PyObject *resultobj; | |
22978 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22979 | int result; | |
22980 | PyObject * obj0 = 0 ; | |
22981 | char *kwnames[] = { | |
22982 | (char *) "self", NULL | |
22983 | }; | |
22984 | ||
22985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
22986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22988 | { | |
22989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22990 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
22991 | ||
22992 | wxPyEndAllowThreads(__tstate); | |
22993 | if (PyErr_Occurred()) SWIG_fail; | |
22994 | } | |
22995 | resultobj = SWIG_FromInt((int)result); | |
22996 | return resultobj; | |
22997 | fail: | |
22998 | return NULL; | |
22999 | } | |
23000 | ||
23001 | ||
23002 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23003 | PyObject *resultobj; | |
23004 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23005 | int result; | |
23006 | PyObject * obj0 = 0 ; | |
23007 | char *kwnames[] = { | |
23008 | (char *) "self", NULL | |
23009 | }; | |
23010 | ||
23011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23014 | { | |
23015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23016 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23017 | ||
23018 | wxPyEndAllowThreads(__tstate); | |
23019 | if (PyErr_Occurred()) SWIG_fail; | |
23020 | } | |
23021 | resultobj = SWIG_FromInt((int)result); | |
23022 | return resultobj; | |
23023 | fail: | |
23024 | return NULL; | |
23025 | } | |
23026 | ||
23027 | ||
23028 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23029 | PyObject *resultobj; | |
23030 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23031 | int result; | |
23032 | PyObject * obj0 = 0 ; | |
23033 | char *kwnames[] = { | |
23034 | (char *) "self", NULL | |
23035 | }; | |
23036 | ||
23037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23040 | { | |
23041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23042 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23043 | ||
23044 | wxPyEndAllowThreads(__tstate); | |
23045 | if (PyErr_Occurred()) SWIG_fail; | |
23046 | } | |
23047 | resultobj = SWIG_FromInt((int)result); | |
23048 | return resultobj; | |
23049 | fail: | |
23050 | return NULL; | |
23051 | } | |
23052 | ||
23053 | ||
23054 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23055 | PyObject *resultobj; | |
23056 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23057 | int result; | |
23058 | PyObject * obj0 = 0 ; | |
23059 | char *kwnames[] = { | |
23060 | (char *) "self", NULL | |
23061 | }; | |
23062 | ||
23063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23066 | { | |
23067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23068 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23069 | ||
23070 | wxPyEndAllowThreads(__tstate); | |
23071 | if (PyErr_Occurred()) SWIG_fail; | |
23072 | } | |
23073 | resultobj = SWIG_FromInt((int)result); | |
23074 | return resultobj; | |
23075 | fail: | |
23076 | return NULL; | |
23077 | } | |
23078 | ||
23079 | ||
23080 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23081 | PyObject *resultobj; | |
23082 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23083 | wxDateSpan *arg2 = 0 ; | |
23084 | wxDateSpan *result; | |
23085 | PyObject * obj0 = 0 ; | |
23086 | PyObject * obj1 = 0 ; | |
23087 | char *kwnames[] = { | |
23088 | (char *) "self",(char *) "other", NULL | |
23089 | }; | |
23090 | ||
23091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23094 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23095 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23096 | SWIG_fail; | |
23097 | if (arg2 == NULL) { | |
23098 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23099 | SWIG_fail; | |
23100 | } | |
23101 | { | |
23102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23103 | { | |
23104 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23105 | result = (wxDateSpan *) &_result_ref; | |
23106 | } | |
23107 | ||
23108 | wxPyEndAllowThreads(__tstate); | |
23109 | if (PyErr_Occurred()) SWIG_fail; | |
23110 | } | |
23111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23112 | return resultobj; | |
23113 | fail: | |
23114 | return NULL; | |
23115 | } | |
23116 | ||
23117 | ||
23118 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23119 | PyObject *resultobj; | |
23120 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23121 | wxDateSpan *arg2 = 0 ; | |
23122 | wxDateSpan *result; | |
23123 | PyObject * obj0 = 0 ; | |
23124 | PyObject * obj1 = 0 ; | |
23125 | char *kwnames[] = { | |
23126 | (char *) "self",(char *) "other", NULL | |
23127 | }; | |
23128 | ||
23129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23132 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23133 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23134 | SWIG_fail; | |
23135 | if (arg2 == NULL) { | |
23136 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23137 | SWIG_fail; | |
23138 | } | |
23139 | { | |
23140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23141 | { | |
23142 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23143 | result = (wxDateSpan *) &_result_ref; | |
23144 | } | |
23145 | ||
23146 | wxPyEndAllowThreads(__tstate); | |
23147 | if (PyErr_Occurred()) SWIG_fail; | |
23148 | } | |
23149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23150 | return resultobj; | |
23151 | fail: | |
23152 | return NULL; | |
23153 | } | |
23154 | ||
23155 | ||
23156 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23157 | PyObject *resultobj; | |
23158 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23159 | wxDateSpan *result; | |
23160 | PyObject * obj0 = 0 ; | |
23161 | char *kwnames[] = { | |
23162 | (char *) "self", NULL | |
23163 | }; | |
23164 | ||
23165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23168 | { | |
23169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23170 | { | |
23171 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23172 | result = (wxDateSpan *) &_result_ref; | |
23173 | } | |
23174 | ||
23175 | wxPyEndAllowThreads(__tstate); | |
23176 | if (PyErr_Occurred()) SWIG_fail; | |
23177 | } | |
23178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23179 | return resultobj; | |
23180 | fail: | |
23181 | return NULL; | |
23182 | } | |
23183 | ||
23184 | ||
23185 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23186 | PyObject *resultobj; | |
23187 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23188 | int arg2 ; | |
23189 | wxDateSpan *result; | |
23190 | PyObject * obj0 = 0 ; | |
23191 | PyObject * obj1 = 0 ; | |
23192 | char *kwnames[] = { | |
23193 | (char *) "self",(char *) "factor", NULL | |
23194 | }; | |
23195 | ||
23196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
23197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23199 | arg2 = (int) SWIG_AsInt(obj1); | |
23200 | if (PyErr_Occurred()) SWIG_fail; | |
23201 | { | |
23202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23203 | { | |
23204 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23205 | result = (wxDateSpan *) &_result_ref; | |
23206 | } | |
23207 | ||
23208 | wxPyEndAllowThreads(__tstate); | |
23209 | if (PyErr_Occurred()) SWIG_fail; | |
23210 | } | |
23211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23212 | return resultobj; | |
23213 | fail: | |
23214 | return NULL; | |
23215 | } | |
23216 | ||
23217 | ||
23218 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23219 | PyObject *resultobj; | |
23220 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23221 | wxDateSpan *arg2 = 0 ; | |
23222 | wxDateSpan *result; | |
23223 | PyObject * obj0 = 0 ; | |
23224 | PyObject * obj1 = 0 ; | |
23225 | char *kwnames[] = { | |
23226 | (char *) "self",(char *) "other", NULL | |
23227 | }; | |
23228 | ||
23229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
23230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23232 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23233 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23234 | SWIG_fail; | |
23235 | if (arg2 == NULL) { | |
23236 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23237 | SWIG_fail; | |
23238 | } | |
23239 | { | |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23241 | { | |
23242 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23243 | result = (wxDateSpan *) &_result_ref; | |
23244 | } | |
23245 | ||
23246 | wxPyEndAllowThreads(__tstate); | |
23247 | if (PyErr_Occurred()) SWIG_fail; | |
23248 | } | |
23249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23250 | return resultobj; | |
23251 | fail: | |
23252 | return NULL; | |
23253 | } | |
23254 | ||
23255 | ||
23256 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23257 | PyObject *resultobj; | |
23258 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23259 | wxDateSpan *arg2 = 0 ; | |
23260 | wxDateSpan *result; | |
23261 | PyObject * obj0 = 0 ; | |
23262 | PyObject * obj1 = 0 ; | |
23263 | char *kwnames[] = { | |
23264 | (char *) "self",(char *) "other", NULL | |
23265 | }; | |
23266 | ||
23267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
23268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23270 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23271 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23272 | SWIG_fail; | |
23273 | if (arg2 == NULL) { | |
23274 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23275 | SWIG_fail; | |
23276 | } | |
23277 | { | |
23278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23279 | { | |
23280 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23281 | result = (wxDateSpan *) &_result_ref; | |
23282 | } | |
23283 | ||
23284 | wxPyEndAllowThreads(__tstate); | |
23285 | if (PyErr_Occurred()) SWIG_fail; | |
23286 | } | |
23287 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23288 | return resultobj; | |
23289 | fail: | |
23290 | return NULL; | |
23291 | } | |
23292 | ||
23293 | ||
23294 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23295 | PyObject *resultobj; | |
23296 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23297 | wxDateSpan *result; | |
23298 | PyObject * obj0 = 0 ; | |
23299 | char *kwnames[] = { | |
23300 | (char *) "self", NULL | |
23301 | }; | |
23302 | ||
23303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23306 | { | |
23307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23308 | { | |
23309 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23310 | result = (wxDateSpan *) &_result_ref; | |
23311 | } | |
23312 | ||
23313 | wxPyEndAllowThreads(__tstate); | |
23314 | if (PyErr_Occurred()) SWIG_fail; | |
23315 | } | |
23316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23317 | return resultobj; | |
23318 | fail: | |
23319 | return NULL; | |
23320 | } | |
23321 | ||
23322 | ||
23323 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23324 | PyObject *resultobj; | |
23325 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23326 | int arg2 ; | |
23327 | wxDateSpan *result; | |
23328 | PyObject * obj0 = 0 ; | |
23329 | PyObject * obj1 = 0 ; | |
23330 | char *kwnames[] = { | |
23331 | (char *) "self",(char *) "factor", NULL | |
23332 | }; | |
23333 | ||
23334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
23335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23337 | arg2 = (int) SWIG_AsInt(obj1); | |
23338 | if (PyErr_Occurred()) SWIG_fail; | |
23339 | { | |
23340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23341 | { | |
23342 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23343 | result = (wxDateSpan *) &_result_ref; | |
23344 | } | |
23345 | ||
23346 | wxPyEndAllowThreads(__tstate); | |
23347 | if (PyErr_Occurred()) SWIG_fail; | |
23348 | } | |
23349 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23350 | return resultobj; | |
23351 | fail: | |
23352 | return NULL; | |
23353 | } | |
23354 | ||
23355 | ||
23356 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23357 | PyObject *resultobj; | |
23358 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23359 | wxDateSpan *arg2 = 0 ; | |
23360 | wxDateSpan result; | |
23361 | PyObject * obj0 = 0 ; | |
23362 | PyObject * obj1 = 0 ; | |
23363 | char *kwnames[] = { | |
23364 | (char *) "self",(char *) "other", NULL | |
23365 | }; | |
23366 | ||
23367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23371 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23372 | SWIG_fail; | |
23373 | if (arg2 == NULL) { | |
23374 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23375 | SWIG_fail; | |
23376 | } | |
23377 | { | |
23378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23379 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23380 | ||
23381 | wxPyEndAllowThreads(__tstate); | |
23382 | if (PyErr_Occurred()) SWIG_fail; | |
23383 | } | |
23384 | { | |
23385 | wxDateSpan * resultptr; | |
23386 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23387 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23388 | } | |
23389 | return resultobj; | |
23390 | fail: | |
23391 | return NULL; | |
23392 | } | |
23393 | ||
23394 | ||
23395 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23396 | PyObject *resultobj; | |
23397 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23398 | wxDateSpan *arg2 = 0 ; | |
23399 | wxDateSpan result; | |
23400 | PyObject * obj0 = 0 ; | |
23401 | PyObject * obj1 = 0 ; | |
23402 | char *kwnames[] = { | |
23403 | (char *) "self",(char *) "other", NULL | |
23404 | }; | |
23405 | ||
23406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23410 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23411 | SWIG_fail; | |
23412 | if (arg2 == NULL) { | |
23413 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23414 | SWIG_fail; | |
23415 | } | |
23416 | { | |
23417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23418 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23419 | ||
23420 | wxPyEndAllowThreads(__tstate); | |
23421 | if (PyErr_Occurred()) SWIG_fail; | |
23422 | } | |
23423 | { | |
23424 | wxDateSpan * resultptr; | |
23425 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23427 | } | |
23428 | return resultobj; | |
23429 | fail: | |
23430 | return NULL; | |
23431 | } | |
23432 | ||
23433 | ||
23434 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23435 | PyObject *resultobj; | |
23436 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23437 | int arg2 ; | |
23438 | wxDateSpan result; | |
23439 | PyObject * obj0 = 0 ; | |
23440 | PyObject * obj1 = 0 ; | |
23441 | char *kwnames[] = { | |
23442 | (char *) "self",(char *) "n", NULL | |
23443 | }; | |
23444 | ||
23445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
23446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23448 | arg2 = (int) SWIG_AsInt(obj1); | |
23449 | if (PyErr_Occurred()) SWIG_fail; | |
23450 | { | |
23451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23452 | result = wxDateSpan___mul__(arg1,arg2); | |
23453 | ||
23454 | wxPyEndAllowThreads(__tstate); | |
23455 | if (PyErr_Occurred()) SWIG_fail; | |
23456 | } | |
23457 | { | |
23458 | wxDateSpan * resultptr; | |
23459 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23460 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23461 | } | |
23462 | return resultobj; | |
23463 | fail: | |
23464 | return NULL; | |
23465 | } | |
23466 | ||
23467 | ||
23468 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23469 | PyObject *resultobj; | |
23470 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23471 | int arg2 ; | |
23472 | wxDateSpan result; | |
23473 | PyObject * obj0 = 0 ; | |
23474 | PyObject * obj1 = 0 ; | |
23475 | char *kwnames[] = { | |
23476 | (char *) "self",(char *) "n", NULL | |
23477 | }; | |
23478 | ||
23479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
23480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23482 | arg2 = (int) SWIG_AsInt(obj1); | |
23483 | if (PyErr_Occurred()) SWIG_fail; | |
23484 | { | |
23485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23486 | result = wxDateSpan___rmul__(arg1,arg2); | |
23487 | ||
23488 | wxPyEndAllowThreads(__tstate); | |
23489 | if (PyErr_Occurred()) SWIG_fail; | |
23490 | } | |
23491 | { | |
23492 | wxDateSpan * resultptr; | |
23493 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23494 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23495 | } | |
23496 | return resultobj; | |
23497 | fail: | |
23498 | return NULL; | |
23499 | } | |
23500 | ||
23501 | ||
23502 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23503 | PyObject *resultobj; | |
23504 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23505 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23506 | bool result; | |
23507 | PyObject * obj0 = 0 ; | |
23508 | PyObject * obj1 = 0 ; | |
23509 | char *kwnames[] = { | |
23510 | (char *) "self",(char *) "other", NULL | |
23511 | }; | |
23512 | ||
23513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23518 | { | |
23519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23520 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
23521 | ||
23522 | wxPyEndAllowThreads(__tstate); | |
23523 | if (PyErr_Occurred()) SWIG_fail; | |
23524 | } | |
23525 | { | |
23526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23527 | } | |
23528 | return resultobj; | |
23529 | fail: | |
23530 | return NULL; | |
23531 | } | |
23532 | ||
23533 | ||
23534 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23535 | PyObject *resultobj; | |
23536 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23537 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23538 | bool result; | |
23539 | PyObject * obj0 = 0 ; | |
23540 | PyObject * obj1 = 0 ; | |
23541 | char *kwnames[] = { | |
23542 | (char *) "self",(char *) "other", NULL | |
23543 | }; | |
23544 | ||
23545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23548 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23550 | { | |
23551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23552 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
23553 | ||
23554 | wxPyEndAllowThreads(__tstate); | |
23555 | if (PyErr_Occurred()) SWIG_fail; | |
23556 | } | |
23557 | { | |
23558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23559 | } | |
23560 | return resultobj; | |
23561 | fail: | |
23562 | return NULL; | |
23563 | } | |
23564 | ||
23565 | ||
23566 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23567 | PyObject *obj; | |
23568 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23569 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23570 | Py_INCREF(obj); | |
23571 | return Py_BuildValue((char *)""); | |
23572 | } | |
23573 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23574 | PyObject *resultobj; | |
23575 | long result; | |
23576 | char *kwnames[] = { | |
23577 | NULL | |
23578 | }; | |
23579 | ||
23580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23581 | { | |
23582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23583 | result = (long)wxGetLocalTime(); | |
23584 | ||
23585 | wxPyEndAllowThreads(__tstate); | |
23586 | if (PyErr_Occurred()) SWIG_fail; | |
23587 | } | |
23588 | resultobj = SWIG_FromLong((long)result); | |
23589 | return resultobj; | |
23590 | fail: | |
23591 | return NULL; | |
23592 | } | |
23593 | ||
23594 | ||
23595 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23596 | PyObject *resultobj; | |
23597 | long result; | |
23598 | char *kwnames[] = { | |
23599 | NULL | |
23600 | }; | |
23601 | ||
23602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23603 | { | |
23604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23605 | result = (long)wxGetUTCTime(); | |
23606 | ||
23607 | wxPyEndAllowThreads(__tstate); | |
23608 | if (PyErr_Occurred()) SWIG_fail; | |
23609 | } | |
23610 | resultobj = SWIG_FromLong((long)result); | |
23611 | return resultobj; | |
23612 | fail: | |
23613 | return NULL; | |
23614 | } | |
23615 | ||
23616 | ||
23617 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23618 | PyObject *resultobj; | |
23619 | long result; | |
23620 | char *kwnames[] = { | |
23621 | NULL | |
23622 | }; | |
23623 | ||
23624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23625 | { | |
23626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23627 | result = (long)wxGetCurrentTime(); | |
23628 | ||
23629 | wxPyEndAllowThreads(__tstate); | |
23630 | if (PyErr_Occurred()) SWIG_fail; | |
23631 | } | |
23632 | resultobj = SWIG_FromLong((long)result); | |
23633 | return resultobj; | |
23634 | fail: | |
23635 | return NULL; | |
23636 | } | |
23637 | ||
23638 | ||
23639 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23640 | PyObject *resultobj; | |
23641 | wxLongLong result; | |
23642 | char *kwnames[] = { | |
23643 | NULL | |
23644 | }; | |
23645 | ||
23646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23647 | { | |
23648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23649 | result = wxGetLocalTimeMillis(); | |
23650 | ||
23651 | wxPyEndAllowThreads(__tstate); | |
23652 | if (PyErr_Occurred()) SWIG_fail; | |
23653 | } | |
23654 | { | |
23655 | PyObject *hi, *lo, *shifter, *shifted; | |
23656 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23657 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23658 | shifter = PyLong_FromLong(32); | |
23659 | shifted = PyNumber_Lshift(hi, shifter); | |
23660 | resultobj = PyNumber_Or(shifted, lo); | |
23661 | Py_DECREF(hi); | |
23662 | Py_DECREF(lo); | |
23663 | Py_DECREF(shifter); | |
23664 | Py_DECREF(shifted); | |
23665 | } | |
23666 | return resultobj; | |
23667 | fail: | |
23668 | return NULL; | |
23669 | } | |
23670 | ||
23671 | ||
23672 | static int _wrap_DefaultDateTime_set(PyObject *_val) { | |
23673 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23674 | return 1; | |
23675 | } | |
23676 | ||
23677 | ||
23678 | static PyObject *_wrap_DefaultDateTime_get() { | |
23679 | PyObject *pyobj; | |
23680 | ||
23681 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
23682 | return pyobj; | |
23683 | } | |
23684 | ||
23685 | ||
23686 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23687 | PyObject *resultobj; | |
23688 | int arg1 ; | |
23689 | wxDataFormat *result; | |
23690 | PyObject * obj0 = 0 ; | |
23691 | char *kwnames[] = { | |
23692 | (char *) "type", NULL | |
23693 | }; | |
23694 | ||
23695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
23696 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); | |
23697 | if (PyErr_Occurred()) SWIG_fail; | |
23698 | { | |
23699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23700 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23701 | ||
23702 | wxPyEndAllowThreads(__tstate); | |
23703 | if (PyErr_Occurred()) SWIG_fail; | |
23704 | } | |
23705 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23706 | return resultobj; | |
23707 | fail: | |
23708 | return NULL; | |
23709 | } | |
23710 | ||
23711 | ||
23712 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23713 | PyObject *resultobj; | |
23714 | wxString *arg1 = 0 ; | |
23715 | wxDataFormat *result; | |
23716 | bool temp1 = False ; | |
23717 | PyObject * obj0 = 0 ; | |
23718 | char *kwnames[] = { | |
23719 | (char *) "format", NULL | |
23720 | }; | |
23721 | ||
23722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23723 | { | |
23724 | arg1 = wxString_in_helper(obj0); | |
23725 | if (arg1 == NULL) SWIG_fail; | |
23726 | temp1 = True; | |
23727 | } | |
23728 | { | |
23729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23730 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23731 | ||
23732 | wxPyEndAllowThreads(__tstate); | |
23733 | if (PyErr_Occurred()) SWIG_fail; | |
23734 | } | |
23735 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23736 | { | |
23737 | if (temp1) | |
23738 | delete arg1; | |
23739 | } | |
23740 | return resultobj; | |
23741 | fail: | |
23742 | { | |
23743 | if (temp1) | |
23744 | delete arg1; | |
23745 | } | |
23746 | return NULL; | |
23747 | } | |
23748 | ||
23749 | ||
23750 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23751 | PyObject *resultobj; | |
23752 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23753 | PyObject * obj0 = 0 ; | |
23754 | char *kwnames[] = { | |
23755 | (char *) "self", NULL | |
23756 | }; | |
23757 | ||
23758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
23759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23761 | { | |
23762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23763 | delete arg1; | |
23764 | ||
23765 | wxPyEndAllowThreads(__tstate); | |
23766 | if (PyErr_Occurred()) SWIG_fail; | |
23767 | } | |
23768 | Py_INCREF(Py_None); resultobj = Py_None; | |
23769 | return resultobj; | |
23770 | fail: | |
23771 | return NULL; | |
23772 | } | |
23773 | ||
23774 | ||
23775 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23776 | PyObject *resultobj; | |
23777 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23778 | int arg2 ; | |
23779 | bool result; | |
23780 | PyObject * obj0 = 0 ; | |
23781 | PyObject * obj1 = 0 ; | |
23782 | ||
23783 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23786 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23787 | if (PyErr_Occurred()) SWIG_fail; | |
23788 | { | |
23789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23790 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
23791 | ||
23792 | wxPyEndAllowThreads(__tstate); | |
23793 | if (PyErr_Occurred()) SWIG_fail; | |
23794 | } | |
23795 | { | |
23796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23797 | } | |
23798 | return resultobj; | |
23799 | fail: | |
23800 | return NULL; | |
23801 | } | |
23802 | ||
23803 | ||
23804 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23805 | PyObject *resultobj; | |
23806 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23807 | int arg2 ; | |
23808 | bool result; | |
23809 | PyObject * obj0 = 0 ; | |
23810 | PyObject * obj1 = 0 ; | |
23811 | ||
23812 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23815 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23816 | if (PyErr_Occurred()) SWIG_fail; | |
23817 | { | |
23818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23819 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
23820 | ||
23821 | wxPyEndAllowThreads(__tstate); | |
23822 | if (PyErr_Occurred()) SWIG_fail; | |
23823 | } | |
23824 | { | |
23825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23826 | } | |
23827 | return resultobj; | |
23828 | fail: | |
23829 | return NULL; | |
23830 | } | |
23831 | ||
23832 | ||
23833 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23834 | PyObject *resultobj; | |
23835 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23836 | wxDataFormat *arg2 = 0 ; | |
23837 | bool result; | |
23838 | PyObject * obj0 = 0 ; | |
23839 | PyObject * obj1 = 0 ; | |
23840 | ||
23841 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23845 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23846 | SWIG_fail; | |
23847 | if (arg2 == NULL) { | |
23848 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23849 | SWIG_fail; | |
23850 | } | |
23851 | { | |
23852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23853 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23854 | ||
23855 | wxPyEndAllowThreads(__tstate); | |
23856 | if (PyErr_Occurred()) SWIG_fail; | |
23857 | } | |
23858 | { | |
23859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23860 | } | |
23861 | return resultobj; | |
23862 | fail: | |
23863 | return NULL; | |
23864 | } | |
23865 | ||
23866 | ||
23867 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23868 | int argc; | |
23869 | PyObject *argv[3]; | |
23870 | int ii; | |
23871 | ||
23872 | argc = PyObject_Length(args); | |
23873 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23874 | argv[ii] = PyTuple_GetItem(args,ii); | |
23875 | } | |
23876 | if (argc == 2) { | |
23877 | int _v; | |
23878 | { | |
23879 | void *ptr; | |
23880 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23881 | _v = 0; | |
23882 | PyErr_Clear(); | |
23883 | } else { | |
23884 | _v = 1; | |
23885 | } | |
23886 | } | |
23887 | if (_v) { | |
23888 | { | |
23889 | void *ptr; | |
23890 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23891 | _v = 0; | |
23892 | PyErr_Clear(); | |
23893 | } else { | |
23894 | _v = 1; | |
23895 | } | |
23896 | } | |
23897 | if (_v) { | |
23898 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
23899 | } | |
23900 | } | |
23901 | } | |
23902 | if (argc == 2) { | |
23903 | int _v; | |
23904 | { | |
23905 | void *ptr; | |
23906 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23907 | _v = 0; | |
23908 | PyErr_Clear(); | |
23909 | } else { | |
23910 | _v = 1; | |
23911 | } | |
23912 | } | |
23913 | if (_v) { | |
23914 | _v = SWIG_CheckInt(argv[1]); | |
23915 | if (_v) { | |
23916 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
23917 | } | |
23918 | } | |
23919 | } | |
23920 | ||
23921 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
23922 | return NULL; | |
23923 | } | |
23924 | ||
23925 | ||
23926 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
23927 | PyObject *resultobj; | |
23928 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23929 | wxDataFormat *arg2 = 0 ; | |
23930 | bool result; | |
23931 | PyObject * obj0 = 0 ; | |
23932 | PyObject * obj1 = 0 ; | |
23933 | ||
23934 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23937 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23938 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23939 | SWIG_fail; | |
23940 | if (arg2 == NULL) { | |
23941 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23942 | SWIG_fail; | |
23943 | } | |
23944 | { | |
23945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23946 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
23947 | ||
23948 | wxPyEndAllowThreads(__tstate); | |
23949 | if (PyErr_Occurred()) SWIG_fail; | |
23950 | } | |
23951 | { | |
23952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23953 | } | |
23954 | return resultobj; | |
23955 | fail: | |
23956 | return NULL; | |
23957 | } | |
23958 | ||
23959 | ||
23960 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
23961 | int argc; | |
23962 | PyObject *argv[3]; | |
23963 | int ii; | |
23964 | ||
23965 | argc = PyObject_Length(args); | |
23966 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23967 | argv[ii] = PyTuple_GetItem(args,ii); | |
23968 | } | |
23969 | if (argc == 2) { | |
23970 | int _v; | |
23971 | { | |
23972 | void *ptr; | |
23973 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23974 | _v = 0; | |
23975 | PyErr_Clear(); | |
23976 | } else { | |
23977 | _v = 1; | |
23978 | } | |
23979 | } | |
23980 | if (_v) { | |
23981 | { | |
23982 | void *ptr; | |
23983 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23984 | _v = 0; | |
23985 | PyErr_Clear(); | |
23986 | } else { | |
23987 | _v = 1; | |
23988 | } | |
23989 | } | |
23990 | if (_v) { | |
23991 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
23992 | } | |
23993 | } | |
23994 | } | |
23995 | if (argc == 2) { | |
23996 | int _v; | |
23997 | { | |
23998 | void *ptr; | |
23999 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24000 | _v = 0; | |
24001 | PyErr_Clear(); | |
24002 | } else { | |
24003 | _v = 1; | |
24004 | } | |
24005 | } | |
24006 | if (_v) { | |
24007 | _v = SWIG_CheckInt(argv[1]); | |
24008 | if (_v) { | |
24009 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24010 | } | |
24011 | } | |
24012 | } | |
24013 | ||
24014 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24015 | return NULL; | |
24016 | } | |
24017 | ||
24018 | ||
24019 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24020 | PyObject *resultobj; | |
24021 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24022 | int arg2 ; | |
24023 | PyObject * obj0 = 0 ; | |
24024 | PyObject * obj1 = 0 ; | |
24025 | char *kwnames[] = { | |
24026 | (char *) "self",(char *) "format", NULL | |
24027 | }; | |
24028 | ||
24029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24032 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24033 | if (PyErr_Occurred()) SWIG_fail; | |
24034 | { | |
24035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24036 | (arg1)->SetType((wxDataFormatId )arg2); | |
24037 | ||
24038 | wxPyEndAllowThreads(__tstate); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | Py_INCREF(Py_None); resultobj = Py_None; | |
24042 | return resultobj; | |
24043 | fail: | |
24044 | return NULL; | |
24045 | } | |
24046 | ||
24047 | ||
24048 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24049 | PyObject *resultobj; | |
24050 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24051 | int result; | |
24052 | PyObject * obj0 = 0 ; | |
24053 | char *kwnames[] = { | |
24054 | (char *) "self", NULL | |
24055 | }; | |
24056 | ||
24057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24060 | { | |
24061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24062 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24063 | ||
24064 | wxPyEndAllowThreads(__tstate); | |
24065 | if (PyErr_Occurred()) SWIG_fail; | |
24066 | } | |
24067 | resultobj = SWIG_FromInt((int)result); | |
24068 | return resultobj; | |
24069 | fail: | |
24070 | return NULL; | |
24071 | } | |
24072 | ||
24073 | ||
24074 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24075 | PyObject *resultobj; | |
24076 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24077 | wxString result; | |
24078 | PyObject * obj0 = 0 ; | |
24079 | char *kwnames[] = { | |
24080 | (char *) "self", NULL | |
24081 | }; | |
24082 | ||
24083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24086 | { | |
24087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24088 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24089 | ||
24090 | wxPyEndAllowThreads(__tstate); | |
24091 | if (PyErr_Occurred()) SWIG_fail; | |
24092 | } | |
24093 | { | |
24094 | #if wxUSE_UNICODE | |
24095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24096 | #else | |
24097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24098 | #endif | |
24099 | } | |
24100 | return resultobj; | |
24101 | fail: | |
24102 | return NULL; | |
24103 | } | |
24104 | ||
24105 | ||
24106 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24107 | PyObject *resultobj; | |
24108 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24109 | wxString *arg2 = 0 ; | |
24110 | bool temp2 = False ; | |
24111 | PyObject * obj0 = 0 ; | |
24112 | PyObject * obj1 = 0 ; | |
24113 | char *kwnames[] = { | |
24114 | (char *) "self",(char *) "format", NULL | |
24115 | }; | |
24116 | ||
24117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24120 | { | |
24121 | arg2 = wxString_in_helper(obj1); | |
24122 | if (arg2 == NULL) SWIG_fail; | |
24123 | temp2 = True; | |
24124 | } | |
24125 | { | |
24126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24127 | (arg1)->SetId((wxString const &)*arg2); | |
24128 | ||
24129 | wxPyEndAllowThreads(__tstate); | |
24130 | if (PyErr_Occurred()) SWIG_fail; | |
24131 | } | |
24132 | Py_INCREF(Py_None); resultobj = Py_None; | |
24133 | { | |
24134 | if (temp2) | |
24135 | delete arg2; | |
24136 | } | |
24137 | return resultobj; | |
24138 | fail: | |
24139 | { | |
24140 | if (temp2) | |
24141 | delete arg2; | |
24142 | } | |
24143 | return NULL; | |
24144 | } | |
24145 | ||
24146 | ||
24147 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24148 | PyObject *obj; | |
24149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24150 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24151 | Py_INCREF(obj); | |
24152 | return Py_BuildValue((char *)""); | |
24153 | } | |
24154 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24155 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24156 | return 1; | |
24157 | } | |
24158 | ||
24159 | ||
24160 | static PyObject *_wrap_FormatInvalid_get() { | |
24161 | PyObject *pyobj; | |
24162 | ||
24163 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24164 | return pyobj; | |
24165 | } | |
24166 | ||
24167 | ||
24168 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24169 | PyObject *resultobj; | |
24170 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24171 | PyObject * obj0 = 0 ; | |
24172 | char *kwnames[] = { | |
24173 | (char *) "self", NULL | |
24174 | }; | |
24175 | ||
24176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24179 | { | |
24180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24181 | delete arg1; | |
24182 | ||
24183 | wxPyEndAllowThreads(__tstate); | |
24184 | if (PyErr_Occurred()) SWIG_fail; | |
24185 | } | |
24186 | Py_INCREF(Py_None); resultobj = Py_None; | |
24187 | return resultobj; | |
24188 | fail: | |
24189 | return NULL; | |
24190 | } | |
24191 | ||
24192 | ||
24193 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24194 | PyObject *resultobj; | |
24195 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24196 | int arg2 = (int) wxDataObject::Get ; | |
24197 | SwigValueWrapper< wxDataFormat > result; | |
24198 | PyObject * obj0 = 0 ; | |
24199 | PyObject * obj1 = 0 ; | |
24200 | char *kwnames[] = { | |
24201 | (char *) "self",(char *) "dir", NULL | |
24202 | }; | |
24203 | ||
24204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
24205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24207 | if (obj1) { | |
24208 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24209 | if (PyErr_Occurred()) SWIG_fail; | |
24210 | } | |
24211 | { | |
24212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24213 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24214 | ||
24215 | wxPyEndAllowThreads(__tstate); | |
24216 | if (PyErr_Occurred()) SWIG_fail; | |
24217 | } | |
24218 | { | |
24219 | wxDataFormat * resultptr; | |
24220 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
24221 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
24222 | } | |
24223 | return resultobj; | |
24224 | fail: | |
24225 | return NULL; | |
24226 | } | |
24227 | ||
24228 | ||
24229 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24230 | PyObject *resultobj; | |
24231 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24232 | int arg2 = (int) wxDataObject::Get ; | |
24233 | size_t result; | |
24234 | PyObject * obj0 = 0 ; | |
24235 | PyObject * obj1 = 0 ; | |
24236 | char *kwnames[] = { | |
24237 | (char *) "self",(char *) "dir", NULL | |
24238 | }; | |
24239 | ||
24240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
24241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24243 | if (obj1) { | |
24244 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24245 | if (PyErr_Occurred()) SWIG_fail; | |
24246 | } | |
24247 | { | |
24248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24249 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24250 | ||
24251 | wxPyEndAllowThreads(__tstate); | |
24252 | if (PyErr_Occurred()) SWIG_fail; | |
24253 | } | |
24254 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24255 | return resultobj; | |
24256 | fail: | |
24257 | return NULL; | |
24258 | } | |
24259 | ||
24260 | ||
24261 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24262 | PyObject *resultobj; | |
24263 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24264 | wxDataFormat *arg2 = 0 ; | |
24265 | int arg3 = (int) wxDataObject::Get ; | |
24266 | bool result; | |
24267 | PyObject * obj0 = 0 ; | |
24268 | PyObject * obj1 = 0 ; | |
24269 | PyObject * obj2 = 0 ; | |
24270 | char *kwnames[] = { | |
24271 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24272 | }; | |
24273 | ||
24274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24277 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24278 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24279 | SWIG_fail; | |
24280 | if (arg2 == NULL) { | |
24281 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24282 | SWIG_fail; | |
24283 | } | |
24284 | if (obj2) { | |
24285 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); | |
24286 | if (PyErr_Occurred()) SWIG_fail; | |
24287 | } | |
24288 | { | |
24289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24290 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24291 | ||
24292 | wxPyEndAllowThreads(__tstate); | |
24293 | if (PyErr_Occurred()) SWIG_fail; | |
24294 | } | |
24295 | { | |
24296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24297 | } | |
24298 | return resultobj; | |
24299 | fail: | |
24300 | return NULL; | |
24301 | } | |
24302 | ||
24303 | ||
24304 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24305 | PyObject *resultobj; | |
24306 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24307 | wxDataFormat *arg2 = 0 ; | |
24308 | size_t result; | |
24309 | PyObject * obj0 = 0 ; | |
24310 | PyObject * obj1 = 0 ; | |
24311 | char *kwnames[] = { | |
24312 | (char *) "self",(char *) "format", NULL | |
24313 | }; | |
24314 | ||
24315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24319 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24320 | SWIG_fail; | |
24321 | if (arg2 == NULL) { | |
24322 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24323 | SWIG_fail; | |
24324 | } | |
24325 | { | |
24326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24327 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24328 | ||
24329 | wxPyEndAllowThreads(__tstate); | |
24330 | if (PyErr_Occurred()) SWIG_fail; | |
24331 | } | |
24332 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24333 | return resultobj; | |
24334 | fail: | |
24335 | return NULL; | |
24336 | } | |
24337 | ||
24338 | ||
24339 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24340 | PyObject *resultobj; | |
24341 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24342 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
24343 | int arg3 = (int) wxDataObject::Get ; | |
24344 | PyObject * obj0 = 0 ; | |
24345 | PyObject * obj1 = 0 ; | |
24346 | PyObject * obj2 = 0 ; | |
24347 | char *kwnames[] = { | |
24348 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
24349 | }; | |
24350 | ||
24351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24356 | if (obj2) { | |
24357 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); | |
24358 | if (PyErr_Occurred()) SWIG_fail; | |
24359 | } | |
24360 | { | |
24361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24362 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
24363 | ||
24364 | wxPyEndAllowThreads(__tstate); | |
24365 | if (PyErr_Occurred()) SWIG_fail; | |
24366 | } | |
24367 | Py_INCREF(Py_None); resultobj = Py_None; | |
24368 | return resultobj; | |
24369 | fail: | |
24370 | return NULL; | |
24371 | } | |
24372 | ||
24373 | ||
24374 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24375 | PyObject *resultobj; | |
24376 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24377 | wxDataFormat *arg2 = 0 ; | |
24378 | void *arg3 = (void *) 0 ; | |
24379 | bool result; | |
24380 | PyObject * obj0 = 0 ; | |
24381 | PyObject * obj1 = 0 ; | |
24382 | PyObject * obj2 = 0 ; | |
24383 | char *kwnames[] = { | |
24384 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
24385 | }; | |
24386 | ||
24387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24390 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24391 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24392 | SWIG_fail; | |
24393 | if (arg2 == NULL) { | |
24394 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24395 | SWIG_fail; | |
24396 | } | |
24397 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24398 | { | |
24399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24400 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
24401 | ||
24402 | wxPyEndAllowThreads(__tstate); | |
24403 | if (PyErr_Occurred()) SWIG_fail; | |
24404 | } | |
24405 | { | |
24406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24407 | } | |
24408 | return resultobj; | |
24409 | fail: | |
24410 | return NULL; | |
24411 | } | |
24412 | ||
24413 | ||
24414 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24415 | PyObject *resultobj; | |
24416 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24417 | wxDataFormat *arg2 = 0 ; | |
24418 | size_t arg3 ; | |
24419 | void *arg4 = (void *) 0 ; | |
24420 | bool result; | |
24421 | PyObject * obj0 = 0 ; | |
24422 | PyObject * obj1 = 0 ; | |
24423 | PyObject * obj2 = 0 ; | |
24424 | PyObject * obj3 = 0 ; | |
24425 | char *kwnames[] = { | |
24426 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
24427 | }; | |
24428 | ||
24429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24433 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24434 | SWIG_fail; | |
24435 | if (arg2 == NULL) { | |
24436 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24437 | SWIG_fail; | |
24438 | } | |
24439 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
24440 | if (PyErr_Occurred()) SWIG_fail; | |
24441 | if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24442 | { | |
24443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24444 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
24445 | ||
24446 | wxPyEndAllowThreads(__tstate); | |
24447 | if (PyErr_Occurred()) SWIG_fail; | |
24448 | } | |
24449 | { | |
24450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24451 | } | |
24452 | return resultobj; | |
24453 | fail: | |
24454 | return NULL; | |
24455 | } | |
24456 | ||
24457 | ||
24458 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24459 | PyObject *obj; | |
24460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24461 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24462 | Py_INCREF(obj); | |
24463 | return Py_BuildValue((char *)""); | |
24464 | } | |
24465 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24466 | PyObject *resultobj; | |
24467 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24468 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24469 | wxDataObjectSimple *result; | |
24470 | PyObject * obj0 = 0 ; | |
24471 | char *kwnames[] = { | |
24472 | (char *) "format", NULL | |
24473 | }; | |
24474 | ||
24475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24476 | if (obj0) { | |
24477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24478 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24479 | SWIG_fail; | |
24480 | if (arg1 == NULL) { | |
24481 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24482 | SWIG_fail; | |
24483 | } | |
24484 | } | |
24485 | { | |
24486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24487 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24488 | ||
24489 | wxPyEndAllowThreads(__tstate); | |
24490 | if (PyErr_Occurred()) SWIG_fail; | |
24491 | } | |
24492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
24493 | return resultobj; | |
24494 | fail: | |
24495 | return NULL; | |
24496 | } | |
24497 | ||
24498 | ||
24499 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24500 | PyObject *resultobj; | |
24501 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24502 | wxDataFormat *result; | |
24503 | PyObject * obj0 = 0 ; | |
24504 | char *kwnames[] = { | |
24505 | (char *) "self", NULL | |
24506 | }; | |
24507 | ||
24508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
24509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24511 | { | |
24512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24513 | { | |
24514 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24515 | result = (wxDataFormat *) &_result_ref; | |
24516 | } | |
24517 | ||
24518 | wxPyEndAllowThreads(__tstate); | |
24519 | if (PyErr_Occurred()) SWIG_fail; | |
24520 | } | |
24521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
24522 | return resultobj; | |
24523 | fail: | |
24524 | return NULL; | |
24525 | } | |
24526 | ||
24527 | ||
24528 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24529 | PyObject *resultobj; | |
24530 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24531 | wxDataFormat *arg2 = 0 ; | |
24532 | PyObject * obj0 = 0 ; | |
24533 | PyObject * obj1 = 0 ; | |
24534 | char *kwnames[] = { | |
24535 | (char *) "self",(char *) "format", NULL | |
24536 | }; | |
24537 | ||
24538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
24539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24542 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24543 | SWIG_fail; | |
24544 | if (arg2 == NULL) { | |
24545 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24546 | SWIG_fail; | |
24547 | } | |
24548 | { | |
24549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24550 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24551 | ||
24552 | wxPyEndAllowThreads(__tstate); | |
24553 | if (PyErr_Occurred()) SWIG_fail; | |
24554 | } | |
24555 | Py_INCREF(Py_None); resultobj = Py_None; | |
24556 | return resultobj; | |
24557 | fail: | |
24558 | return NULL; | |
24559 | } | |
24560 | ||
24561 | ||
24562 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24563 | PyObject *obj; | |
24564 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24565 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24566 | Py_INCREF(obj); | |
24567 | return Py_BuildValue((char *)""); | |
24568 | } | |
24569 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24570 | PyObject *resultobj; | |
24571 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24572 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24573 | wxPyDataObjectSimple *result; | |
24574 | PyObject * obj0 = 0 ; | |
24575 | char *kwnames[] = { | |
24576 | (char *) "format", NULL | |
24577 | }; | |
24578 | ||
24579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24580 | if (obj0) { | |
24581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24582 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24583 | SWIG_fail; | |
24584 | if (arg1 == NULL) { | |
24585 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24586 | SWIG_fail; | |
24587 | } | |
24588 | } | |
24589 | { | |
24590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24591 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24592 | ||
24593 | wxPyEndAllowThreads(__tstate); | |
24594 | if (PyErr_Occurred()) SWIG_fail; | |
24595 | } | |
24596 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
24597 | return resultobj; | |
24598 | fail: | |
24599 | return NULL; | |
24600 | } | |
24601 | ||
24602 | ||
24603 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24604 | PyObject *resultobj; | |
24605 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24606 | PyObject *arg2 = (PyObject *) 0 ; | |
24607 | PyObject *arg3 = (PyObject *) 0 ; | |
24608 | PyObject * obj0 = 0 ; | |
24609 | PyObject * obj1 = 0 ; | |
24610 | PyObject * obj2 = 0 ; | |
24611 | char *kwnames[] = { | |
24612 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24613 | }; | |
24614 | ||
24615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
24617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24618 | arg2 = obj1; | |
24619 | arg3 = obj2; | |
24620 | { | |
24621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24622 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24623 | ||
24624 | wxPyEndAllowThreads(__tstate); | |
24625 | if (PyErr_Occurred()) SWIG_fail; | |
24626 | } | |
24627 | Py_INCREF(Py_None); resultobj = Py_None; | |
24628 | return resultobj; | |
24629 | fail: | |
24630 | return NULL; | |
24631 | } | |
24632 | ||
24633 | ||
24634 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24635 | PyObject *obj; | |
24636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24637 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24638 | Py_INCREF(obj); | |
24639 | return Py_BuildValue((char *)""); | |
24640 | } | |
24641 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24642 | PyObject *resultobj; | |
24643 | wxDataObjectComposite *result; | |
24644 | char *kwnames[] = { | |
24645 | NULL | |
24646 | }; | |
24647 | ||
24648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24649 | { | |
24650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24651 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24652 | ||
24653 | wxPyEndAllowThreads(__tstate); | |
24654 | if (PyErr_Occurred()) SWIG_fail; | |
24655 | } | |
24656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
24657 | return resultobj; | |
24658 | fail: | |
24659 | return NULL; | |
24660 | } | |
24661 | ||
24662 | ||
24663 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24664 | PyObject *resultobj; | |
24665 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24666 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
24667 | int arg3 = (int) False ; | |
24668 | PyObject * obj0 = 0 ; | |
24669 | PyObject * obj1 = 0 ; | |
24670 | PyObject * obj2 = 0 ; | |
24671 | char *kwnames[] = { | |
24672 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24673 | }; | |
24674 | ||
24675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
24677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24678 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24679 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24680 | if (obj2) { | |
24681 | arg3 = (int) SWIG_AsInt(obj2); | |
24682 | if (PyErr_Occurred()) SWIG_fail; | |
24683 | } | |
24684 | { | |
24685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24686 | (arg1)->Add(arg2,arg3); | |
24687 | ||
24688 | wxPyEndAllowThreads(__tstate); | |
24689 | if (PyErr_Occurred()) SWIG_fail; | |
24690 | } | |
24691 | Py_INCREF(Py_None); resultobj = Py_None; | |
24692 | return resultobj; | |
24693 | fail: | |
24694 | return NULL; | |
24695 | } | |
24696 | ||
24697 | ||
24698 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24699 | PyObject *obj; | |
24700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24701 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24702 | Py_INCREF(obj); | |
24703 | return Py_BuildValue((char *)""); | |
24704 | } | |
24705 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24706 | PyObject *resultobj; | |
24707 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24708 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24709 | wxTextDataObject *result; | |
24710 | bool temp1 = False ; | |
24711 | PyObject * obj0 = 0 ; | |
24712 | char *kwnames[] = { | |
24713 | (char *) "text", NULL | |
24714 | }; | |
24715 | ||
24716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24717 | if (obj0) { | |
24718 | { | |
24719 | arg1 = wxString_in_helper(obj0); | |
24720 | if (arg1 == NULL) SWIG_fail; | |
24721 | temp1 = True; | |
24722 | } | |
24723 | } | |
24724 | { | |
24725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24726 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24727 | ||
24728 | wxPyEndAllowThreads(__tstate); | |
24729 | if (PyErr_Occurred()) SWIG_fail; | |
24730 | } | |
24731 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
24732 | { | |
24733 | if (temp1) | |
24734 | delete arg1; | |
24735 | } | |
24736 | return resultobj; | |
24737 | fail: | |
24738 | { | |
24739 | if (temp1) | |
24740 | delete arg1; | |
24741 | } | |
24742 | return NULL; | |
24743 | } | |
24744 | ||
24745 | ||
24746 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24747 | PyObject *resultobj; | |
24748 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24749 | size_t result; | |
24750 | PyObject * obj0 = 0 ; | |
24751 | char *kwnames[] = { | |
24752 | (char *) "self", NULL | |
24753 | }; | |
24754 | ||
24755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
24756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24758 | { | |
24759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24760 | result = (size_t)(arg1)->GetTextLength(); | |
24761 | ||
24762 | wxPyEndAllowThreads(__tstate); | |
24763 | if (PyErr_Occurred()) SWIG_fail; | |
24764 | } | |
24765 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24766 | return resultobj; | |
24767 | fail: | |
24768 | return NULL; | |
24769 | } | |
24770 | ||
24771 | ||
24772 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24773 | PyObject *resultobj; | |
24774 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24775 | wxString result; | |
24776 | PyObject * obj0 = 0 ; | |
24777 | char *kwnames[] = { | |
24778 | (char *) "self", NULL | |
24779 | }; | |
24780 | ||
24781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
24782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24784 | { | |
24785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24786 | result = (arg1)->GetText(); | |
24787 | ||
24788 | wxPyEndAllowThreads(__tstate); | |
24789 | if (PyErr_Occurred()) SWIG_fail; | |
24790 | } | |
24791 | { | |
24792 | #if wxUSE_UNICODE | |
24793 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24794 | #else | |
24795 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24796 | #endif | |
24797 | } | |
24798 | return resultobj; | |
24799 | fail: | |
24800 | return NULL; | |
24801 | } | |
24802 | ||
24803 | ||
24804 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24805 | PyObject *resultobj; | |
24806 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24807 | wxString *arg2 = 0 ; | |
24808 | bool temp2 = False ; | |
24809 | PyObject * obj0 = 0 ; | |
24810 | PyObject * obj1 = 0 ; | |
24811 | char *kwnames[] = { | |
24812 | (char *) "self",(char *) "text", NULL | |
24813 | }; | |
24814 | ||
24815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
24816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24818 | { | |
24819 | arg2 = wxString_in_helper(obj1); | |
24820 | if (arg2 == NULL) SWIG_fail; | |
24821 | temp2 = True; | |
24822 | } | |
24823 | { | |
24824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24825 | (arg1)->SetText((wxString const &)*arg2); | |
24826 | ||
24827 | wxPyEndAllowThreads(__tstate); | |
24828 | if (PyErr_Occurred()) SWIG_fail; | |
24829 | } | |
24830 | Py_INCREF(Py_None); resultobj = Py_None; | |
24831 | { | |
24832 | if (temp2) | |
24833 | delete arg2; | |
24834 | } | |
24835 | return resultobj; | |
24836 | fail: | |
24837 | { | |
24838 | if (temp2) | |
24839 | delete arg2; | |
24840 | } | |
24841 | return NULL; | |
24842 | } | |
24843 | ||
24844 | ||
24845 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24846 | PyObject *obj; | |
24847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24848 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24849 | Py_INCREF(obj); | |
24850 | return Py_BuildValue((char *)""); | |
24851 | } | |
24852 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24853 | PyObject *resultobj; | |
24854 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24855 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24856 | wxPyTextDataObject *result; | |
24857 | bool temp1 = False ; | |
24858 | PyObject * obj0 = 0 ; | |
24859 | char *kwnames[] = { | |
24860 | (char *) "text", NULL | |
24861 | }; | |
24862 | ||
24863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24864 | if (obj0) { | |
24865 | { | |
24866 | arg1 = wxString_in_helper(obj0); | |
24867 | if (arg1 == NULL) SWIG_fail; | |
24868 | temp1 = True; | |
24869 | } | |
24870 | } | |
24871 | { | |
24872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24873 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24874 | ||
24875 | wxPyEndAllowThreads(__tstate); | |
24876 | if (PyErr_Occurred()) SWIG_fail; | |
24877 | } | |
24878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
24879 | { | |
24880 | if (temp1) | |
24881 | delete arg1; | |
24882 | } | |
24883 | return resultobj; | |
24884 | fail: | |
24885 | { | |
24886 | if (temp1) | |
24887 | delete arg1; | |
24888 | } | |
24889 | return NULL; | |
24890 | } | |
24891 | ||
24892 | ||
24893 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24894 | PyObject *resultobj; | |
24895 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
24896 | PyObject *arg2 = (PyObject *) 0 ; | |
24897 | PyObject *arg3 = (PyObject *) 0 ; | |
24898 | PyObject * obj0 = 0 ; | |
24899 | PyObject * obj1 = 0 ; | |
24900 | PyObject * obj2 = 0 ; | |
24901 | char *kwnames[] = { | |
24902 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24903 | }; | |
24904 | ||
24905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
24907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24908 | arg2 = obj1; | |
24909 | arg3 = obj2; | |
24910 | { | |
24911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24912 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24913 | ||
24914 | wxPyEndAllowThreads(__tstate); | |
24915 | if (PyErr_Occurred()) SWIG_fail; | |
24916 | } | |
24917 | Py_INCREF(Py_None); resultobj = Py_None; | |
24918 | return resultobj; | |
24919 | fail: | |
24920 | return NULL; | |
24921 | } | |
24922 | ||
24923 | ||
24924 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24925 | PyObject *obj; | |
24926 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24927 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
24928 | Py_INCREF(obj); | |
24929 | return Py_BuildValue((char *)""); | |
24930 | } | |
24931 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24932 | PyObject *resultobj; | |
24933 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24934 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24935 | wxBitmapDataObject *result; | |
24936 | PyObject * obj0 = 0 ; | |
24937 | char *kwnames[] = { | |
24938 | (char *) "bitmap", NULL | |
24939 | }; | |
24940 | ||
24941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
24942 | if (obj0) { | |
24943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
24944 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24945 | SWIG_fail; | |
24946 | if (arg1 == NULL) { | |
24947 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24948 | SWIG_fail; | |
24949 | } | |
24950 | } | |
24951 | { | |
24952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24953 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
24954 | ||
24955 | wxPyEndAllowThreads(__tstate); | |
24956 | if (PyErr_Occurred()) SWIG_fail; | |
24957 | } | |
24958 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
24959 | return resultobj; | |
24960 | fail: | |
24961 | return NULL; | |
24962 | } | |
24963 | ||
24964 | ||
24965 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24966 | PyObject *resultobj; | |
24967 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24968 | wxBitmap result; | |
24969 | PyObject * obj0 = 0 ; | |
24970 | char *kwnames[] = { | |
24971 | (char *) "self", NULL | |
24972 | }; | |
24973 | ||
24974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
24975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
24976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24977 | { | |
24978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24979 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
24980 | ||
24981 | wxPyEndAllowThreads(__tstate); | |
24982 | if (PyErr_Occurred()) SWIG_fail; | |
24983 | } | |
24984 | { | |
24985 | wxBitmap * resultptr; | |
24986 | resultptr = new wxBitmap((wxBitmap &) result); | |
24987 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
24988 | } | |
24989 | return resultobj; | |
24990 | fail: | |
24991 | return NULL; | |
24992 | } | |
24993 | ||
24994 | ||
24995 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24996 | PyObject *resultobj; | |
24997 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24998 | wxBitmap *arg2 = 0 ; | |
24999 | PyObject * obj0 = 0 ; | |
25000 | PyObject * obj1 = 0 ; | |
25001 | char *kwnames[] = { | |
25002 | (char *) "self",(char *) "bitmap", NULL | |
25003 | }; | |
25004 | ||
25005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25009 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25010 | SWIG_fail; | |
25011 | if (arg2 == NULL) { | |
25012 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25013 | SWIG_fail; | |
25014 | } | |
25015 | { | |
25016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25017 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25018 | ||
25019 | wxPyEndAllowThreads(__tstate); | |
25020 | if (PyErr_Occurred()) SWIG_fail; | |
25021 | } | |
25022 | Py_INCREF(Py_None); resultobj = Py_None; | |
25023 | return resultobj; | |
25024 | fail: | |
25025 | return NULL; | |
25026 | } | |
25027 | ||
25028 | ||
25029 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25030 | PyObject *obj; | |
25031 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25032 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25033 | Py_INCREF(obj); | |
25034 | return Py_BuildValue((char *)""); | |
25035 | } | |
25036 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25037 | PyObject *resultobj; | |
25038 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25039 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25040 | wxPyBitmapDataObject *result; | |
25041 | PyObject * obj0 = 0 ; | |
25042 | char *kwnames[] = { | |
25043 | (char *) "bitmap", NULL | |
25044 | }; | |
25045 | ||
25046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25047 | if (obj0) { | |
25048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25049 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25050 | SWIG_fail; | |
25051 | if (arg1 == NULL) { | |
25052 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25053 | SWIG_fail; | |
25054 | } | |
25055 | } | |
25056 | { | |
25057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25058 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25059 | ||
25060 | wxPyEndAllowThreads(__tstate); | |
25061 | if (PyErr_Occurred()) SWIG_fail; | |
25062 | } | |
25063 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25064 | return resultobj; | |
25065 | fail: | |
25066 | return NULL; | |
25067 | } | |
25068 | ||
25069 | ||
25070 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25071 | PyObject *resultobj; | |
25072 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25073 | PyObject *arg2 = (PyObject *) 0 ; | |
25074 | PyObject *arg3 = (PyObject *) 0 ; | |
25075 | PyObject * obj0 = 0 ; | |
25076 | PyObject * obj1 = 0 ; | |
25077 | PyObject * obj2 = 0 ; | |
25078 | char *kwnames[] = { | |
25079 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25080 | }; | |
25081 | ||
25082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25085 | arg2 = obj1; | |
25086 | arg3 = obj2; | |
25087 | { | |
25088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25089 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25090 | ||
25091 | wxPyEndAllowThreads(__tstate); | |
25092 | if (PyErr_Occurred()) SWIG_fail; | |
25093 | } | |
25094 | Py_INCREF(Py_None); resultobj = Py_None; | |
25095 | return resultobj; | |
25096 | fail: | |
25097 | return NULL; | |
25098 | } | |
25099 | ||
25100 | ||
25101 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25102 | PyObject *obj; | |
25103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25104 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25105 | Py_INCREF(obj); | |
25106 | return Py_BuildValue((char *)""); | |
25107 | } | |
25108 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25109 | PyObject *resultobj; | |
25110 | wxFileDataObject *result; | |
25111 | char *kwnames[] = { | |
25112 | NULL | |
25113 | }; | |
25114 | ||
25115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25116 | { | |
25117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25118 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25119 | ||
25120 | wxPyEndAllowThreads(__tstate); | |
25121 | if (PyErr_Occurred()) SWIG_fail; | |
25122 | } | |
25123 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
25124 | return resultobj; | |
25125 | fail: | |
25126 | return NULL; | |
25127 | } | |
25128 | ||
25129 | ||
25130 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25131 | PyObject *resultobj; | |
25132 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25133 | wxArrayString *result; | |
25134 | PyObject * obj0 = 0 ; | |
25135 | char *kwnames[] = { | |
25136 | (char *) "self", NULL | |
25137 | }; | |
25138 | ||
25139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
25140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25142 | { | |
25143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25144 | { | |
25145 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25146 | result = (wxArrayString *) &_result_ref; | |
25147 | } | |
25148 | ||
25149 | wxPyEndAllowThreads(__tstate); | |
25150 | if (PyErr_Occurred()) SWIG_fail; | |
25151 | } | |
25152 | { | |
25153 | resultobj = wxArrayString2PyList_helper(*result); | |
25154 | } | |
25155 | return resultobj; | |
25156 | fail: | |
25157 | return NULL; | |
25158 | } | |
25159 | ||
25160 | ||
25161 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25162 | PyObject *resultobj; | |
25163 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25164 | wxString *arg2 = 0 ; | |
25165 | bool temp2 = False ; | |
25166 | PyObject * obj0 = 0 ; | |
25167 | PyObject * obj1 = 0 ; | |
25168 | char *kwnames[] = { | |
25169 | (char *) "self",(char *) "filename", NULL | |
25170 | }; | |
25171 | ||
25172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25175 | { | |
25176 | arg2 = wxString_in_helper(obj1); | |
25177 | if (arg2 == NULL) SWIG_fail; | |
25178 | temp2 = True; | |
25179 | } | |
25180 | { | |
25181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25182 | (arg1)->AddFile((wxString const &)*arg2); | |
25183 | ||
25184 | wxPyEndAllowThreads(__tstate); | |
25185 | if (PyErr_Occurred()) SWIG_fail; | |
25186 | } | |
25187 | Py_INCREF(Py_None); resultobj = Py_None; | |
25188 | { | |
25189 | if (temp2) | |
25190 | delete arg2; | |
25191 | } | |
25192 | return resultobj; | |
25193 | fail: | |
25194 | { | |
25195 | if (temp2) | |
25196 | delete arg2; | |
25197 | } | |
25198 | return NULL; | |
25199 | } | |
25200 | ||
25201 | ||
25202 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25203 | PyObject *obj; | |
25204 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25205 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25206 | Py_INCREF(obj); | |
25207 | return Py_BuildValue((char *)""); | |
25208 | } | |
25209 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25210 | PyObject *resultobj; | |
25211 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25212 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25213 | wxCustomDataObject *result; | |
25214 | PyObject * obj0 = 0 ; | |
25215 | char *kwnames[] = { | |
25216 | (char *) "format", NULL | |
25217 | }; | |
25218 | ||
25219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25220 | if (obj0) { | |
25221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25222 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25223 | SWIG_fail; | |
25224 | if (arg1 == NULL) { | |
25225 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25226 | SWIG_fail; | |
25227 | } | |
25228 | } | |
25229 | { | |
25230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25231 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25232 | ||
25233 | wxPyEndAllowThreads(__tstate); | |
25234 | if (PyErr_Occurred()) SWIG_fail; | |
25235 | } | |
25236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
25237 | return resultobj; | |
25238 | fail: | |
25239 | return NULL; | |
25240 | } | |
25241 | ||
25242 | ||
25243 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25244 | PyObject *resultobj; | |
25245 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25246 | PyObject *arg2 = (PyObject *) 0 ; | |
25247 | PyObject * obj0 = 0 ; | |
25248 | PyObject * obj1 = 0 ; | |
25249 | char *kwnames[] = { | |
25250 | (char *) "self",(char *) "data", NULL | |
25251 | }; | |
25252 | ||
25253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
25254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25256 | arg2 = obj1; | |
25257 | { | |
25258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25259 | wxCustomDataObject_TakeData(arg1,arg2); | |
25260 | ||
25261 | wxPyEndAllowThreads(__tstate); | |
25262 | if (PyErr_Occurred()) SWIG_fail; | |
25263 | } | |
25264 | Py_INCREF(Py_None); resultobj = Py_None; | |
25265 | return resultobj; | |
25266 | fail: | |
25267 | return NULL; | |
25268 | } | |
25269 | ||
25270 | ||
25271 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25272 | PyObject *resultobj; | |
25273 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25274 | PyObject *arg2 = (PyObject *) 0 ; | |
25275 | bool result; | |
25276 | PyObject * obj0 = 0 ; | |
25277 | PyObject * obj1 = 0 ; | |
25278 | char *kwnames[] = { | |
25279 | (char *) "self",(char *) "data", NULL | |
25280 | }; | |
25281 | ||
25282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25285 | arg2 = obj1; | |
25286 | { | |
25287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25288 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25289 | ||
25290 | wxPyEndAllowThreads(__tstate); | |
25291 | if (PyErr_Occurred()) SWIG_fail; | |
25292 | } | |
25293 | { | |
25294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25295 | } | |
25296 | return resultobj; | |
25297 | fail: | |
25298 | return NULL; | |
25299 | } | |
25300 | ||
25301 | ||
25302 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25303 | PyObject *resultobj; | |
25304 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25305 | size_t result; | |
25306 | PyObject * obj0 = 0 ; | |
25307 | char *kwnames[] = { | |
25308 | (char *) "self", NULL | |
25309 | }; | |
25310 | ||
25311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
25312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25314 | { | |
25315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25316 | result = (size_t)(arg1)->GetSize(); | |
25317 | ||
25318 | wxPyEndAllowThreads(__tstate); | |
25319 | if (PyErr_Occurred()) SWIG_fail; | |
25320 | } | |
25321 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25322 | return resultobj; | |
25323 | fail: | |
25324 | return NULL; | |
25325 | } | |
25326 | ||
25327 | ||
25328 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25329 | PyObject *resultobj; | |
25330 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25331 | PyObject *result; | |
25332 | PyObject * obj0 = 0 ; | |
25333 | char *kwnames[] = { | |
25334 | (char *) "self", NULL | |
25335 | }; | |
25336 | ||
25337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
25338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25340 | { | |
25341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25342 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25343 | ||
25344 | wxPyEndAllowThreads(__tstate); | |
25345 | if (PyErr_Occurred()) SWIG_fail; | |
25346 | } | |
25347 | resultobj = result; | |
25348 | return resultobj; | |
25349 | fail: | |
25350 | return NULL; | |
25351 | } | |
25352 | ||
25353 | ||
25354 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25355 | PyObject *obj; | |
25356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25357 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25358 | Py_INCREF(obj); | |
25359 | return Py_BuildValue((char *)""); | |
25360 | } | |
25361 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25362 | PyObject *resultobj; | |
25363 | wxURLDataObject *result; | |
25364 | char *kwnames[] = { | |
25365 | NULL | |
25366 | }; | |
25367 | ||
25368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25369 | { | |
25370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25371 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25372 | ||
25373 | wxPyEndAllowThreads(__tstate); | |
25374 | if (PyErr_Occurred()) SWIG_fail; | |
25375 | } | |
25376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
25377 | return resultobj; | |
25378 | fail: | |
25379 | return NULL; | |
25380 | } | |
25381 | ||
25382 | ||
25383 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25384 | PyObject *resultobj; | |
25385 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25386 | wxString result; | |
25387 | PyObject * obj0 = 0 ; | |
25388 | char *kwnames[] = { | |
25389 | (char *) "self", NULL | |
25390 | }; | |
25391 | ||
25392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
25393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25395 | { | |
25396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25397 | result = (arg1)->GetURL(); | |
25398 | ||
25399 | wxPyEndAllowThreads(__tstate); | |
25400 | if (PyErr_Occurred()) SWIG_fail; | |
25401 | } | |
25402 | { | |
25403 | #if wxUSE_UNICODE | |
25404 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25405 | #else | |
25406 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25407 | #endif | |
25408 | } | |
25409 | return resultobj; | |
25410 | fail: | |
25411 | return NULL; | |
25412 | } | |
25413 | ||
25414 | ||
25415 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25416 | PyObject *resultobj; | |
25417 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25418 | wxString *arg2 = 0 ; | |
25419 | bool temp2 = False ; | |
25420 | PyObject * obj0 = 0 ; | |
25421 | PyObject * obj1 = 0 ; | |
25422 | char *kwnames[] = { | |
25423 | (char *) "self",(char *) "url", NULL | |
25424 | }; | |
25425 | ||
25426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
25427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25429 | { | |
25430 | arg2 = wxString_in_helper(obj1); | |
25431 | if (arg2 == NULL) SWIG_fail; | |
25432 | temp2 = True; | |
25433 | } | |
25434 | { | |
25435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25436 | (arg1)->SetURL((wxString const &)*arg2); | |
25437 | ||
25438 | wxPyEndAllowThreads(__tstate); | |
25439 | if (PyErr_Occurred()) SWIG_fail; | |
25440 | } | |
25441 | Py_INCREF(Py_None); resultobj = Py_None; | |
25442 | { | |
25443 | if (temp2) | |
25444 | delete arg2; | |
25445 | } | |
25446 | return resultobj; | |
25447 | fail: | |
25448 | { | |
25449 | if (temp2) | |
25450 | delete arg2; | |
25451 | } | |
25452 | return NULL; | |
25453 | } | |
25454 | ||
25455 | ||
25456 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25457 | PyObject *obj; | |
25458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25459 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25460 | Py_INCREF(obj); | |
25461 | return Py_BuildValue((char *)""); | |
25462 | } | |
25463 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25464 | PyObject *resultobj; | |
25465 | wxMetafileDataObject *result; | |
25466 | char *kwnames[] = { | |
25467 | NULL | |
25468 | }; | |
25469 | ||
25470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25471 | { | |
25472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25473 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25474 | ||
25475 | wxPyEndAllowThreads(__tstate); | |
25476 | if (PyErr_Occurred()) SWIG_fail; | |
25477 | } | |
25478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
25479 | return resultobj; | |
25480 | fail: | |
25481 | return NULL; | |
25482 | } | |
25483 | ||
25484 | ||
25485 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25486 | PyObject *resultobj; | |
25487 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25488 | wxMetafile *arg2 = 0 ; | |
25489 | PyObject * obj0 = 0 ; | |
25490 | PyObject * obj1 = 0 ; | |
25491 | char *kwnames[] = { | |
25492 | (char *) "self",(char *) "metafile", NULL | |
25493 | }; | |
25494 | ||
25495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
25496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
25497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
25499 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25500 | SWIG_fail; | |
25501 | if (arg2 == NULL) { | |
25502 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25503 | SWIG_fail; | |
25504 | } | |
25505 | { | |
25506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25507 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
25508 | ||
25509 | wxPyEndAllowThreads(__tstate); | |
25510 | if (PyErr_Occurred()) SWIG_fail; | |
25511 | } | |
25512 | Py_INCREF(Py_None); resultobj = Py_None; | |
25513 | return resultobj; | |
25514 | fail: | |
25515 | return NULL; | |
25516 | } | |
25517 | ||
25518 | ||
25519 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25520 | PyObject *resultobj; | |
25521 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25522 | wxMetafile result; | |
25523 | PyObject * obj0 = 0 ; | |
25524 | char *kwnames[] = { | |
25525 | (char *) "self", NULL | |
25526 | }; | |
25527 | ||
25528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
25529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
25530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25531 | { | |
25532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25533 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
25534 | ||
25535 | wxPyEndAllowThreads(__tstate); | |
25536 | if (PyErr_Occurred()) SWIG_fail; | |
25537 | } | |
25538 | { | |
25539 | wxMetafile * resultptr; | |
25540 | resultptr = new wxMetafile((wxMetafile &) result); | |
25541 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); | |
25542 | } | |
25543 | return resultobj; | |
25544 | fail: | |
25545 | return NULL; | |
25546 | } | |
25547 | ||
25548 | ||
25549 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25550 | PyObject *obj; | |
25551 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25552 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25553 | Py_INCREF(obj); | |
25554 | return Py_BuildValue((char *)""); | |
25555 | } | |
25556 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25557 | PyObject *resultobj; | |
25558 | int arg1 ; | |
25559 | bool result; | |
25560 | PyObject * obj0 = 0 ; | |
25561 | char *kwnames[] = { | |
25562 | (char *) "res", NULL | |
25563 | }; | |
25564 | ||
25565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
25566 | arg1 = (wxDragResult) SWIG_AsInt(obj0); | |
25567 | if (PyErr_Occurred()) SWIG_fail; | |
25568 | { | |
25569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25570 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25571 | ||
25572 | wxPyEndAllowThreads(__tstate); | |
25573 | if (PyErr_Occurred()) SWIG_fail; | |
25574 | } | |
25575 | { | |
25576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25577 | } | |
25578 | return resultobj; | |
25579 | fail: | |
25580 | return NULL; | |
25581 | } | |
25582 | ||
25583 | ||
25584 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25585 | PyObject *resultobj; | |
25586 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25587 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25588 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25589 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
25590 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
25591 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
25592 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
25593 | wxPyDropSource *result; | |
25594 | PyObject * obj0 = 0 ; | |
25595 | PyObject * obj1 = 0 ; | |
25596 | PyObject * obj2 = 0 ; | |
25597 | PyObject * obj3 = 0 ; | |
25598 | char *kwnames[] = { | |
25599 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25600 | }; | |
25601 | ||
25602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25605 | if (obj1) { | |
25606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
25607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25608 | SWIG_fail; | |
25609 | if (arg2 == NULL) { | |
25610 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25611 | SWIG_fail; | |
25612 | } | |
25613 | } | |
25614 | if (obj2) { | |
25615 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25616 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25617 | SWIG_fail; | |
25618 | if (arg3 == NULL) { | |
25619 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25620 | SWIG_fail; | |
25621 | } | |
25622 | } | |
25623 | if (obj3) { | |
25624 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, | |
25625 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25626 | SWIG_fail; | |
25627 | if (arg4 == NULL) { | |
25628 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25629 | SWIG_fail; | |
25630 | } | |
25631 | } | |
25632 | { | |
25633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25634 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
25635 | ||
25636 | wxPyEndAllowThreads(__tstate); | |
25637 | if (PyErr_Occurred()) SWIG_fail; | |
25638 | } | |
25639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
25640 | return resultobj; | |
25641 | fail: | |
25642 | return NULL; | |
25643 | } | |
25644 | ||
25645 | ||
25646 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25647 | PyObject *resultobj; | |
25648 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25649 | PyObject *arg2 = (PyObject *) 0 ; | |
25650 | PyObject *arg3 = (PyObject *) 0 ; | |
25651 | int arg4 ; | |
25652 | PyObject * obj0 = 0 ; | |
25653 | PyObject * obj1 = 0 ; | |
25654 | PyObject * obj2 = 0 ; | |
25655 | PyObject * obj3 = 0 ; | |
25656 | char *kwnames[] = { | |
25657 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25658 | }; | |
25659 | ||
25660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25663 | arg2 = obj1; | |
25664 | arg3 = obj2; | |
25665 | arg4 = (int) SWIG_AsInt(obj3); | |
25666 | if (PyErr_Occurred()) SWIG_fail; | |
25667 | { | |
25668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25669 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25670 | ||
25671 | wxPyEndAllowThreads(__tstate); | |
25672 | if (PyErr_Occurred()) SWIG_fail; | |
25673 | } | |
25674 | Py_INCREF(Py_None); resultobj = Py_None; | |
25675 | return resultobj; | |
25676 | fail: | |
25677 | return NULL; | |
25678 | } | |
25679 | ||
25680 | ||
25681 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25682 | PyObject *resultobj; | |
25683 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25684 | PyObject * obj0 = 0 ; | |
25685 | char *kwnames[] = { | |
25686 | (char *) "self", NULL | |
25687 | }; | |
25688 | ||
25689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
25690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25692 | { | |
25693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25694 | delete arg1; | |
25695 | ||
25696 | wxPyEndAllowThreads(__tstate); | |
25697 | if (PyErr_Occurred()) SWIG_fail; | |
25698 | } | |
25699 | Py_INCREF(Py_None); resultobj = Py_None; | |
25700 | return resultobj; | |
25701 | fail: | |
25702 | return NULL; | |
25703 | } | |
25704 | ||
25705 | ||
25706 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25707 | PyObject *resultobj; | |
25708 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25709 | wxDataObject *arg2 = 0 ; | |
25710 | PyObject * obj0 = 0 ; | |
25711 | PyObject * obj1 = 0 ; | |
25712 | char *kwnames[] = { | |
25713 | (char *) "self",(char *) "data", NULL | |
25714 | }; | |
25715 | ||
25716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25721 | SWIG_fail; | |
25722 | if (arg2 == NULL) { | |
25723 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25724 | SWIG_fail; | |
25725 | } | |
25726 | { | |
25727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25728 | (arg1)->SetData(*arg2); | |
25729 | ||
25730 | wxPyEndAllowThreads(__tstate); | |
25731 | if (PyErr_Occurred()) SWIG_fail; | |
25732 | } | |
25733 | Py_INCREF(Py_None); resultobj = Py_None; | |
25734 | return resultobj; | |
25735 | fail: | |
25736 | return NULL; | |
25737 | } | |
25738 | ||
25739 | ||
25740 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25741 | PyObject *resultobj; | |
25742 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25743 | wxDataObject *result; | |
25744 | PyObject * obj0 = 0 ; | |
25745 | char *kwnames[] = { | |
25746 | (char *) "self", NULL | |
25747 | }; | |
25748 | ||
25749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
25750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25752 | { | |
25753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25754 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25755 | ||
25756 | wxPyEndAllowThreads(__tstate); | |
25757 | if (PyErr_Occurred()) SWIG_fail; | |
25758 | } | |
25759 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
25760 | return resultobj; | |
25761 | fail: | |
25762 | return NULL; | |
25763 | } | |
25764 | ||
25765 | ||
25766 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25767 | PyObject *resultobj; | |
25768 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25769 | int arg2 ; | |
25770 | wxCursor *arg3 = 0 ; | |
25771 | PyObject * obj0 = 0 ; | |
25772 | PyObject * obj1 = 0 ; | |
25773 | PyObject * obj2 = 0 ; | |
25774 | char *kwnames[] = { | |
25775 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25776 | }; | |
25777 | ||
25778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25781 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25782 | if (PyErr_Occurred()) SWIG_fail; | |
25783 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25785 | SWIG_fail; | |
25786 | if (arg3 == NULL) { | |
25787 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25788 | SWIG_fail; | |
25789 | } | |
25790 | { | |
25791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25792 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25793 | ||
25794 | wxPyEndAllowThreads(__tstate); | |
25795 | if (PyErr_Occurred()) SWIG_fail; | |
25796 | } | |
25797 | Py_INCREF(Py_None); resultobj = Py_None; | |
25798 | return resultobj; | |
25799 | fail: | |
25800 | return NULL; | |
25801 | } | |
25802 | ||
25803 | ||
25804 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25805 | PyObject *resultobj; | |
25806 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25807 | int arg2 = (int) wxDrag_CopyOnly ; | |
25808 | int result; | |
25809 | PyObject * obj0 = 0 ; | |
25810 | PyObject * obj1 = 0 ; | |
25811 | char *kwnames[] = { | |
25812 | (char *) "self",(char *) "flags", NULL | |
25813 | }; | |
25814 | ||
25815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
25816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25818 | if (obj1) { | |
25819 | arg2 = (int) SWIG_AsInt(obj1); | |
25820 | if (PyErr_Occurred()) SWIG_fail; | |
25821 | } | |
25822 | { | |
25823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25824 | result = (int)(arg1)->DoDragDrop(arg2); | |
25825 | ||
25826 | wxPyEndAllowThreads(__tstate); | |
25827 | if (PyErr_Occurred()) SWIG_fail; | |
25828 | } | |
25829 | resultobj = SWIG_FromInt((int)result); | |
25830 | return resultobj; | |
25831 | fail: | |
25832 | return NULL; | |
25833 | } | |
25834 | ||
25835 | ||
25836 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25837 | PyObject *resultobj; | |
25838 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25839 | int arg2 ; | |
25840 | bool result; | |
25841 | PyObject * obj0 = 0 ; | |
25842 | PyObject * obj1 = 0 ; | |
25843 | char *kwnames[] = { | |
25844 | (char *) "self",(char *) "effect", NULL | |
25845 | }; | |
25846 | ||
25847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
25848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25850 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25851 | if (PyErr_Occurred()) SWIG_fail; | |
25852 | { | |
25853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25854 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25855 | ||
25856 | wxPyEndAllowThreads(__tstate); | |
25857 | if (PyErr_Occurred()) SWIG_fail; | |
25858 | } | |
25859 | { | |
25860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25861 | } | |
25862 | return resultobj; | |
25863 | fail: | |
25864 | return NULL; | |
25865 | } | |
25866 | ||
25867 | ||
25868 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25869 | PyObject *obj; | |
25870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25871 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25872 | Py_INCREF(obj); | |
25873 | return Py_BuildValue((char *)""); | |
25874 | } | |
25875 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25876 | PyObject *resultobj; | |
25877 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25878 | wxPyDropTarget *result; | |
25879 | PyObject * obj0 = 0 ; | |
25880 | char *kwnames[] = { | |
25881 | (char *) "dataObject", NULL | |
25882 | }; | |
25883 | ||
25884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
25885 | if (obj0) { | |
25886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25887 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25888 | } | |
25889 | { | |
25890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25891 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25892 | ||
25893 | wxPyEndAllowThreads(__tstate); | |
25894 | if (PyErr_Occurred()) SWIG_fail; | |
25895 | } | |
25896 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
25897 | return resultobj; | |
25898 | fail: | |
25899 | return NULL; | |
25900 | } | |
25901 | ||
25902 | ||
25903 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25904 | PyObject *resultobj; | |
25905 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25906 | PyObject *arg2 = (PyObject *) 0 ; | |
25907 | PyObject *arg3 = (PyObject *) 0 ; | |
25908 | PyObject * obj0 = 0 ; | |
25909 | PyObject * obj1 = 0 ; | |
25910 | PyObject * obj2 = 0 ; | |
25911 | char *kwnames[] = { | |
25912 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25913 | }; | |
25914 | ||
25915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
25917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25918 | arg2 = obj1; | |
25919 | arg3 = obj2; | |
25920 | { | |
25921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25922 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25923 | ||
25924 | wxPyEndAllowThreads(__tstate); | |
25925 | if (PyErr_Occurred()) SWIG_fail; | |
25926 | } | |
25927 | Py_INCREF(Py_None); resultobj = Py_None; | |
25928 | return resultobj; | |
25929 | fail: | |
25930 | return NULL; | |
25931 | } | |
25932 | ||
25933 | ||
25934 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25935 | PyObject *resultobj; | |
25936 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25937 | PyObject * obj0 = 0 ; | |
25938 | char *kwnames[] = { | |
25939 | (char *) "self", NULL | |
25940 | }; | |
25941 | ||
25942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
25943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
25944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25945 | { | |
25946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25947 | delete arg1; | |
25948 | ||
25949 | wxPyEndAllowThreads(__tstate); | |
25950 | if (PyErr_Occurred()) SWIG_fail; | |
25951 | } | |
25952 | Py_INCREF(Py_None); resultobj = Py_None; | |
25953 | return resultobj; | |
25954 | fail: | |
25955 | return NULL; | |
25956 | } | |
25957 | ||
25958 | ||
25959 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25960 | PyObject *resultobj; | |
25961 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25962 | wxDataObject *result; | |
25963 | PyObject * obj0 = 0 ; | |
25964 | char *kwnames[] = { | |
25965 | (char *) "self", NULL | |
25966 | }; | |
25967 | ||
25968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
25969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
25970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25971 | { | |
25972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25973 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25974 | ||
25975 | wxPyEndAllowThreads(__tstate); | |
25976 | if (PyErr_Occurred()) SWIG_fail; | |
25977 | } | |
25978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
25979 | return resultobj; | |
25980 | fail: | |
25981 | return NULL; | |
25982 | } | |
25983 | ||
25984 | ||
25985 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25986 | PyObject *resultobj; | |
25987 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25988 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
25989 | PyObject * obj0 = 0 ; | |
25990 | PyObject * obj1 = 0 ; | |
25991 | char *kwnames[] = { | |
25992 | (char *) "self",(char *) "dataObject", NULL | |
25993 | }; | |
25994 | ||
25995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
25996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
25997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25998 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25999 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26000 | { | |
26001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26002 | (arg1)->SetDataObject(arg2); | |
26003 | ||
26004 | wxPyEndAllowThreads(__tstate); | |
26005 | if (PyErr_Occurred()) SWIG_fail; | |
26006 | } | |
26007 | Py_INCREF(Py_None); resultobj = Py_None; | |
26008 | return resultobj; | |
26009 | fail: | |
26010 | return NULL; | |
26011 | } | |
26012 | ||
26013 | ||
26014 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26015 | PyObject *resultobj; | |
26016 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26017 | int arg2 ; | |
26018 | int arg3 ; | |
26019 | int arg4 ; | |
26020 | int result; | |
26021 | PyObject * obj0 = 0 ; | |
26022 | PyObject * obj1 = 0 ; | |
26023 | PyObject * obj2 = 0 ; | |
26024 | PyObject * obj3 = 0 ; | |
26025 | char *kwnames[] = { | |
26026 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26027 | }; | |
26028 | ||
26029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26032 | arg2 = (int) SWIG_AsInt(obj1); | |
26033 | if (PyErr_Occurred()) SWIG_fail; | |
26034 | arg3 = (int) SWIG_AsInt(obj2); | |
26035 | if (PyErr_Occurred()) SWIG_fail; | |
26036 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26037 | if (PyErr_Occurred()) SWIG_fail; | |
26038 | { | |
26039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26040 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26041 | ||
26042 | wxPyEndAllowThreads(__tstate); | |
26043 | if (PyErr_Occurred()) SWIG_fail; | |
26044 | } | |
26045 | resultobj = SWIG_FromInt((int)result); | |
26046 | return resultobj; | |
26047 | fail: | |
26048 | return NULL; | |
26049 | } | |
26050 | ||
26051 | ||
26052 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26053 | PyObject *resultobj; | |
26054 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26055 | int arg2 ; | |
26056 | int arg3 ; | |
26057 | int arg4 ; | |
26058 | int result; | |
26059 | PyObject * obj0 = 0 ; | |
26060 | PyObject * obj1 = 0 ; | |
26061 | PyObject * obj2 = 0 ; | |
26062 | PyObject * obj3 = 0 ; | |
26063 | char *kwnames[] = { | |
26064 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26065 | }; | |
26066 | ||
26067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26070 | arg2 = (int) SWIG_AsInt(obj1); | |
26071 | if (PyErr_Occurred()) SWIG_fail; | |
26072 | arg3 = (int) SWIG_AsInt(obj2); | |
26073 | if (PyErr_Occurred()) SWIG_fail; | |
26074 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26075 | if (PyErr_Occurred()) SWIG_fail; | |
26076 | { | |
26077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26078 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26079 | ||
26080 | wxPyEndAllowThreads(__tstate); | |
26081 | if (PyErr_Occurred()) SWIG_fail; | |
26082 | } | |
26083 | resultobj = SWIG_FromInt((int)result); | |
26084 | return resultobj; | |
26085 | fail: | |
26086 | return NULL; | |
26087 | } | |
26088 | ||
26089 | ||
26090 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26091 | PyObject *resultobj; | |
26092 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26093 | PyObject * obj0 = 0 ; | |
26094 | char *kwnames[] = { | |
26095 | (char *) "self", NULL | |
26096 | }; | |
26097 | ||
26098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26101 | { | |
26102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26103 | (arg1)->base_OnLeave(); | |
26104 | ||
26105 | wxPyEndAllowThreads(__tstate); | |
26106 | if (PyErr_Occurred()) SWIG_fail; | |
26107 | } | |
26108 | Py_INCREF(Py_None); resultobj = Py_None; | |
26109 | return resultobj; | |
26110 | fail: | |
26111 | return NULL; | |
26112 | } | |
26113 | ||
26114 | ||
26115 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26116 | PyObject *resultobj; | |
26117 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26118 | int arg2 ; | |
26119 | int arg3 ; | |
26120 | bool result; | |
26121 | PyObject * obj0 = 0 ; | |
26122 | PyObject * obj1 = 0 ; | |
26123 | PyObject * obj2 = 0 ; | |
26124 | char *kwnames[] = { | |
26125 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26126 | }; | |
26127 | ||
26128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26131 | arg2 = (int) SWIG_AsInt(obj1); | |
26132 | if (PyErr_Occurred()) SWIG_fail; | |
26133 | arg3 = (int) SWIG_AsInt(obj2); | |
26134 | if (PyErr_Occurred()) SWIG_fail; | |
26135 | { | |
26136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26137 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26138 | ||
26139 | wxPyEndAllowThreads(__tstate); | |
26140 | if (PyErr_Occurred()) SWIG_fail; | |
26141 | } | |
26142 | { | |
26143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26144 | } | |
26145 | return resultobj; | |
26146 | fail: | |
26147 | return NULL; | |
26148 | } | |
26149 | ||
26150 | ||
26151 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26152 | PyObject *resultobj; | |
26153 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26154 | bool result; | |
26155 | PyObject * obj0 = 0 ; | |
26156 | char *kwnames[] = { | |
26157 | (char *) "self", NULL | |
26158 | }; | |
26159 | ||
26160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
26161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26163 | { | |
26164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26165 | result = (bool)(arg1)->GetData(); | |
26166 | ||
26167 | wxPyEndAllowThreads(__tstate); | |
26168 | if (PyErr_Occurred()) SWIG_fail; | |
26169 | } | |
26170 | { | |
26171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26172 | } | |
26173 | return resultobj; | |
26174 | fail: | |
26175 | return NULL; | |
26176 | } | |
26177 | ||
26178 | ||
26179 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26180 | PyObject *obj; | |
26181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26182 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26183 | Py_INCREF(obj); | |
26184 | return Py_BuildValue((char *)""); | |
26185 | } | |
26186 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26187 | PyObject *resultobj; | |
26188 | wxPyTextDropTarget *result; | |
26189 | char *kwnames[] = { | |
26190 | NULL | |
26191 | }; | |
26192 | ||
26193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26194 | { | |
26195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26196 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26197 | ||
26198 | wxPyEndAllowThreads(__tstate); | |
26199 | if (PyErr_Occurred()) SWIG_fail; | |
26200 | } | |
26201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
26202 | return resultobj; | |
26203 | fail: | |
26204 | return NULL; | |
26205 | } | |
26206 | ||
26207 | ||
26208 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26209 | PyObject *resultobj; | |
26210 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26211 | PyObject *arg2 = (PyObject *) 0 ; | |
26212 | PyObject *arg3 = (PyObject *) 0 ; | |
26213 | PyObject * obj0 = 0 ; | |
26214 | PyObject * obj1 = 0 ; | |
26215 | PyObject * obj2 = 0 ; | |
26216 | char *kwnames[] = { | |
26217 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26218 | }; | |
26219 | ||
26220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26223 | arg2 = obj1; | |
26224 | arg3 = obj2; | |
26225 | { | |
26226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26227 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26228 | ||
26229 | wxPyEndAllowThreads(__tstate); | |
26230 | if (PyErr_Occurred()) SWIG_fail; | |
26231 | } | |
26232 | Py_INCREF(Py_None); resultobj = Py_None; | |
26233 | return resultobj; | |
26234 | fail: | |
26235 | return NULL; | |
26236 | } | |
26237 | ||
26238 | ||
26239 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26240 | PyObject *resultobj; | |
26241 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26242 | int arg2 ; | |
26243 | int arg3 ; | |
26244 | int arg4 ; | |
26245 | int result; | |
26246 | PyObject * obj0 = 0 ; | |
26247 | PyObject * obj1 = 0 ; | |
26248 | PyObject * obj2 = 0 ; | |
26249 | PyObject * obj3 = 0 ; | |
26250 | char *kwnames[] = { | |
26251 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26252 | }; | |
26253 | ||
26254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26257 | arg2 = (int) SWIG_AsInt(obj1); | |
26258 | if (PyErr_Occurred()) SWIG_fail; | |
26259 | arg3 = (int) SWIG_AsInt(obj2); | |
26260 | if (PyErr_Occurred()) SWIG_fail; | |
26261 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26262 | if (PyErr_Occurred()) SWIG_fail; | |
26263 | { | |
26264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26265 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26266 | ||
26267 | wxPyEndAllowThreads(__tstate); | |
26268 | if (PyErr_Occurred()) SWIG_fail; | |
26269 | } | |
26270 | resultobj = SWIG_FromInt((int)result); | |
26271 | return resultobj; | |
26272 | fail: | |
26273 | return NULL; | |
26274 | } | |
26275 | ||
26276 | ||
26277 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26278 | PyObject *resultobj; | |
26279 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26280 | int arg2 ; | |
26281 | int arg3 ; | |
26282 | int arg4 ; | |
26283 | int result; | |
26284 | PyObject * obj0 = 0 ; | |
26285 | PyObject * obj1 = 0 ; | |
26286 | PyObject * obj2 = 0 ; | |
26287 | PyObject * obj3 = 0 ; | |
26288 | char *kwnames[] = { | |
26289 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26290 | }; | |
26291 | ||
26292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26295 | arg2 = (int) SWIG_AsInt(obj1); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | arg3 = (int) SWIG_AsInt(obj2); | |
26298 | if (PyErr_Occurred()) SWIG_fail; | |
26299 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26300 | if (PyErr_Occurred()) SWIG_fail; | |
26301 | { | |
26302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26303 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26304 | ||
26305 | wxPyEndAllowThreads(__tstate); | |
26306 | if (PyErr_Occurred()) SWIG_fail; | |
26307 | } | |
26308 | resultobj = SWIG_FromInt((int)result); | |
26309 | return resultobj; | |
26310 | fail: | |
26311 | return NULL; | |
26312 | } | |
26313 | ||
26314 | ||
26315 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26316 | PyObject *resultobj; | |
26317 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26318 | PyObject * obj0 = 0 ; | |
26319 | char *kwnames[] = { | |
26320 | (char *) "self", NULL | |
26321 | }; | |
26322 | ||
26323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26326 | { | |
26327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26328 | (arg1)->base_OnLeave(); | |
26329 | ||
26330 | wxPyEndAllowThreads(__tstate); | |
26331 | if (PyErr_Occurred()) SWIG_fail; | |
26332 | } | |
26333 | Py_INCREF(Py_None); resultobj = Py_None; | |
26334 | return resultobj; | |
26335 | fail: | |
26336 | return NULL; | |
26337 | } | |
26338 | ||
26339 | ||
26340 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26341 | PyObject *resultobj; | |
26342 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26343 | int arg2 ; | |
26344 | int arg3 ; | |
26345 | bool result; | |
26346 | PyObject * obj0 = 0 ; | |
26347 | PyObject * obj1 = 0 ; | |
26348 | PyObject * obj2 = 0 ; | |
26349 | char *kwnames[] = { | |
26350 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26351 | }; | |
26352 | ||
26353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26356 | arg2 = (int) SWIG_AsInt(obj1); | |
26357 | if (PyErr_Occurred()) SWIG_fail; | |
26358 | arg3 = (int) SWIG_AsInt(obj2); | |
26359 | if (PyErr_Occurred()) SWIG_fail; | |
26360 | { | |
26361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26362 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26363 | ||
26364 | wxPyEndAllowThreads(__tstate); | |
26365 | if (PyErr_Occurred()) SWIG_fail; | |
26366 | } | |
26367 | { | |
26368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26369 | } | |
26370 | return resultobj; | |
26371 | fail: | |
26372 | return NULL; | |
26373 | } | |
26374 | ||
26375 | ||
26376 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26377 | PyObject *resultobj; | |
26378 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26379 | int arg2 ; | |
26380 | int arg3 ; | |
26381 | int arg4 ; | |
26382 | int result; | |
26383 | PyObject * obj0 = 0 ; | |
26384 | PyObject * obj1 = 0 ; | |
26385 | PyObject * obj2 = 0 ; | |
26386 | PyObject * obj3 = 0 ; | |
26387 | char *kwnames[] = { | |
26388 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26389 | }; | |
26390 | ||
26391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26394 | arg2 = (int) SWIG_AsInt(obj1); | |
26395 | if (PyErr_Occurred()) SWIG_fail; | |
26396 | arg3 = (int) SWIG_AsInt(obj2); | |
26397 | if (PyErr_Occurred()) SWIG_fail; | |
26398 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26399 | if (PyErr_Occurred()) SWIG_fail; | |
26400 | { | |
26401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26402 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26403 | ||
26404 | wxPyEndAllowThreads(__tstate); | |
26405 | if (PyErr_Occurred()) SWIG_fail; | |
26406 | } | |
26407 | resultobj = SWIG_FromInt((int)result); | |
26408 | return resultobj; | |
26409 | fail: | |
26410 | return NULL; | |
26411 | } | |
26412 | ||
26413 | ||
26414 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26415 | PyObject *obj; | |
26416 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26417 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26418 | Py_INCREF(obj); | |
26419 | return Py_BuildValue((char *)""); | |
26420 | } | |
26421 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26422 | PyObject *resultobj; | |
26423 | wxPyFileDropTarget *result; | |
26424 | char *kwnames[] = { | |
26425 | NULL | |
26426 | }; | |
26427 | ||
26428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26429 | { | |
26430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26431 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26432 | ||
26433 | wxPyEndAllowThreads(__tstate); | |
26434 | if (PyErr_Occurred()) SWIG_fail; | |
26435 | } | |
26436 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
26437 | return resultobj; | |
26438 | fail: | |
26439 | return NULL; | |
26440 | } | |
26441 | ||
26442 | ||
26443 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26444 | PyObject *resultobj; | |
26445 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26446 | PyObject *arg2 = (PyObject *) 0 ; | |
26447 | PyObject *arg3 = (PyObject *) 0 ; | |
26448 | PyObject * obj0 = 0 ; | |
26449 | PyObject * obj1 = 0 ; | |
26450 | PyObject * obj2 = 0 ; | |
26451 | char *kwnames[] = { | |
26452 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26453 | }; | |
26454 | ||
26455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26458 | arg2 = obj1; | |
26459 | arg3 = obj2; | |
26460 | { | |
26461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26462 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26463 | ||
26464 | wxPyEndAllowThreads(__tstate); | |
26465 | if (PyErr_Occurred()) SWIG_fail; | |
26466 | } | |
26467 | Py_INCREF(Py_None); resultobj = Py_None; | |
26468 | return resultobj; | |
26469 | fail: | |
26470 | return NULL; | |
26471 | } | |
26472 | ||
26473 | ||
26474 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26475 | PyObject *resultobj; | |
26476 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26477 | int arg2 ; | |
26478 | int arg3 ; | |
26479 | int arg4 ; | |
26480 | int result; | |
26481 | PyObject * obj0 = 0 ; | |
26482 | PyObject * obj1 = 0 ; | |
26483 | PyObject * obj2 = 0 ; | |
26484 | PyObject * obj3 = 0 ; | |
26485 | char *kwnames[] = { | |
26486 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26487 | }; | |
26488 | ||
26489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26492 | arg2 = (int) SWIG_AsInt(obj1); | |
26493 | if (PyErr_Occurred()) SWIG_fail; | |
26494 | arg3 = (int) SWIG_AsInt(obj2); | |
26495 | if (PyErr_Occurred()) SWIG_fail; | |
26496 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26497 | if (PyErr_Occurred()) SWIG_fail; | |
26498 | { | |
26499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26500 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26501 | ||
26502 | wxPyEndAllowThreads(__tstate); | |
26503 | if (PyErr_Occurred()) SWIG_fail; | |
26504 | } | |
26505 | resultobj = SWIG_FromInt((int)result); | |
26506 | return resultobj; | |
26507 | fail: | |
26508 | return NULL; | |
26509 | } | |
26510 | ||
26511 | ||
26512 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26513 | PyObject *resultobj; | |
26514 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26515 | int arg2 ; | |
26516 | int arg3 ; | |
26517 | int arg4 ; | |
26518 | int result; | |
26519 | PyObject * obj0 = 0 ; | |
26520 | PyObject * obj1 = 0 ; | |
26521 | PyObject * obj2 = 0 ; | |
26522 | PyObject * obj3 = 0 ; | |
26523 | char *kwnames[] = { | |
26524 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26525 | }; | |
26526 | ||
26527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26530 | arg2 = (int) SWIG_AsInt(obj1); | |
26531 | if (PyErr_Occurred()) SWIG_fail; | |
26532 | arg3 = (int) SWIG_AsInt(obj2); | |
26533 | if (PyErr_Occurred()) SWIG_fail; | |
26534 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26535 | if (PyErr_Occurred()) SWIG_fail; | |
26536 | { | |
26537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26538 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26539 | ||
26540 | wxPyEndAllowThreads(__tstate); | |
26541 | if (PyErr_Occurred()) SWIG_fail; | |
26542 | } | |
26543 | resultobj = SWIG_FromInt((int)result); | |
26544 | return resultobj; | |
26545 | fail: | |
26546 | return NULL; | |
26547 | } | |
26548 | ||
26549 | ||
26550 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26551 | PyObject *resultobj; | |
26552 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26553 | PyObject * obj0 = 0 ; | |
26554 | char *kwnames[] = { | |
26555 | (char *) "self", NULL | |
26556 | }; | |
26557 | ||
26558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26561 | { | |
26562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26563 | (arg1)->base_OnLeave(); | |
26564 | ||
26565 | wxPyEndAllowThreads(__tstate); | |
26566 | if (PyErr_Occurred()) SWIG_fail; | |
26567 | } | |
26568 | Py_INCREF(Py_None); resultobj = Py_None; | |
26569 | return resultobj; | |
26570 | fail: | |
26571 | return NULL; | |
26572 | } | |
26573 | ||
26574 | ||
26575 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26576 | PyObject *resultobj; | |
26577 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26578 | int arg2 ; | |
26579 | int arg3 ; | |
26580 | bool result; | |
26581 | PyObject * obj0 = 0 ; | |
26582 | PyObject * obj1 = 0 ; | |
26583 | PyObject * obj2 = 0 ; | |
26584 | char *kwnames[] = { | |
26585 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26586 | }; | |
26587 | ||
26588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26591 | arg2 = (int) SWIG_AsInt(obj1); | |
26592 | if (PyErr_Occurred()) SWIG_fail; | |
26593 | arg3 = (int) SWIG_AsInt(obj2); | |
26594 | if (PyErr_Occurred()) SWIG_fail; | |
26595 | { | |
26596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26597 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26598 | ||
26599 | wxPyEndAllowThreads(__tstate); | |
26600 | if (PyErr_Occurred()) SWIG_fail; | |
26601 | } | |
26602 | { | |
26603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26604 | } | |
26605 | return resultobj; | |
26606 | fail: | |
26607 | return NULL; | |
26608 | } | |
26609 | ||
26610 | ||
26611 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26612 | PyObject *resultobj; | |
26613 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26614 | int arg2 ; | |
26615 | int arg3 ; | |
26616 | int arg4 ; | |
26617 | int result; | |
26618 | PyObject * obj0 = 0 ; | |
26619 | PyObject * obj1 = 0 ; | |
26620 | PyObject * obj2 = 0 ; | |
26621 | PyObject * obj3 = 0 ; | |
26622 | char *kwnames[] = { | |
26623 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26624 | }; | |
26625 | ||
26626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26629 | arg2 = (int) SWIG_AsInt(obj1); | |
26630 | if (PyErr_Occurred()) SWIG_fail; | |
26631 | arg3 = (int) SWIG_AsInt(obj2); | |
26632 | if (PyErr_Occurred()) SWIG_fail; | |
26633 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26634 | if (PyErr_Occurred()) SWIG_fail; | |
26635 | { | |
26636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26637 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26638 | ||
26639 | wxPyEndAllowThreads(__tstate); | |
26640 | if (PyErr_Occurred()) SWIG_fail; | |
26641 | } | |
26642 | resultobj = SWIG_FromInt((int)result); | |
26643 | return resultobj; | |
26644 | fail: | |
26645 | return NULL; | |
26646 | } | |
26647 | ||
26648 | ||
26649 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26650 | PyObject *obj; | |
26651 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26652 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26653 | Py_INCREF(obj); | |
26654 | return Py_BuildValue((char *)""); | |
26655 | } | |
26656 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26657 | PyObject *resultobj; | |
26658 | wxClipboard *result; | |
26659 | char *kwnames[] = { | |
26660 | NULL | |
26661 | }; | |
26662 | ||
26663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26664 | { | |
26665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26666 | result = (wxClipboard *)new wxClipboard(); | |
26667 | ||
26668 | wxPyEndAllowThreads(__tstate); | |
26669 | if (PyErr_Occurred()) SWIG_fail; | |
26670 | } | |
26671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
26672 | return resultobj; | |
26673 | fail: | |
26674 | return NULL; | |
26675 | } | |
26676 | ||
26677 | ||
26678 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26679 | PyObject *resultobj; | |
26680 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26681 | PyObject * obj0 = 0 ; | |
26682 | char *kwnames[] = { | |
26683 | (char *) "self", NULL | |
26684 | }; | |
26685 | ||
26686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
26687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26689 | { | |
26690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26691 | delete arg1; | |
26692 | ||
26693 | wxPyEndAllowThreads(__tstate); | |
26694 | if (PyErr_Occurred()) SWIG_fail; | |
26695 | } | |
26696 | Py_INCREF(Py_None); resultobj = Py_None; | |
26697 | return resultobj; | |
26698 | fail: | |
26699 | return NULL; | |
26700 | } | |
26701 | ||
26702 | ||
26703 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26704 | PyObject *resultobj; | |
26705 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26706 | bool result; | |
26707 | PyObject * obj0 = 0 ; | |
26708 | char *kwnames[] = { | |
26709 | (char *) "self", NULL | |
26710 | }; | |
26711 | ||
26712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
26713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26715 | { | |
26716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26717 | result = (bool)(arg1)->Open(); | |
26718 | ||
26719 | wxPyEndAllowThreads(__tstate); | |
26720 | if (PyErr_Occurred()) SWIG_fail; | |
26721 | } | |
26722 | { | |
26723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26724 | } | |
26725 | return resultobj; | |
26726 | fail: | |
26727 | return NULL; | |
26728 | } | |
26729 | ||
26730 | ||
26731 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26732 | PyObject *resultobj; | |
26733 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26734 | PyObject * obj0 = 0 ; | |
26735 | char *kwnames[] = { | |
26736 | (char *) "self", NULL | |
26737 | }; | |
26738 | ||
26739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
26740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26742 | { | |
26743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26744 | (arg1)->Close(); | |
26745 | ||
26746 | wxPyEndAllowThreads(__tstate); | |
26747 | if (PyErr_Occurred()) SWIG_fail; | |
26748 | } | |
26749 | Py_INCREF(Py_None); resultobj = Py_None; | |
26750 | return resultobj; | |
26751 | fail: | |
26752 | return NULL; | |
26753 | } | |
26754 | ||
26755 | ||
26756 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26757 | PyObject *resultobj; | |
26758 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26759 | bool result; | |
26760 | PyObject * obj0 = 0 ; | |
26761 | char *kwnames[] = { | |
26762 | (char *) "self", NULL | |
26763 | }; | |
26764 | ||
26765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
26766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26768 | { | |
26769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26770 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26771 | ||
26772 | wxPyEndAllowThreads(__tstate); | |
26773 | if (PyErr_Occurred()) SWIG_fail; | |
26774 | } | |
26775 | { | |
26776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26777 | } | |
26778 | return resultobj; | |
26779 | fail: | |
26780 | return NULL; | |
26781 | } | |
26782 | ||
26783 | ||
26784 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26785 | PyObject *resultobj; | |
26786 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26787 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26788 | bool result; | |
26789 | PyObject * obj0 = 0 ; | |
26790 | PyObject * obj1 = 0 ; | |
26791 | char *kwnames[] = { | |
26792 | (char *) "self",(char *) "data", NULL | |
26793 | }; | |
26794 | ||
26795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
26796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26799 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26800 | { | |
26801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26802 | result = (bool)(arg1)->AddData(arg2); | |
26803 | ||
26804 | wxPyEndAllowThreads(__tstate); | |
26805 | if (PyErr_Occurred()) SWIG_fail; | |
26806 | } | |
26807 | { | |
26808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26809 | } | |
26810 | return resultobj; | |
26811 | fail: | |
26812 | return NULL; | |
26813 | } | |
26814 | ||
26815 | ||
26816 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26817 | PyObject *resultobj; | |
26818 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26819 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26820 | bool result; | |
26821 | PyObject * obj0 = 0 ; | |
26822 | PyObject * obj1 = 0 ; | |
26823 | char *kwnames[] = { | |
26824 | (char *) "self",(char *) "data", NULL | |
26825 | }; | |
26826 | ||
26827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26830 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26831 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26832 | { | |
26833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26834 | result = (bool)(arg1)->SetData(arg2); | |
26835 | ||
26836 | wxPyEndAllowThreads(__tstate); | |
26837 | if (PyErr_Occurred()) SWIG_fail; | |
26838 | } | |
26839 | { | |
26840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26841 | } | |
26842 | return resultobj; | |
26843 | fail: | |
26844 | return NULL; | |
26845 | } | |
26846 | ||
26847 | ||
26848 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26849 | PyObject *resultobj; | |
26850 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26851 | wxDataFormat *arg2 = 0 ; | |
26852 | bool result; | |
26853 | PyObject * obj0 = 0 ; | |
26854 | PyObject * obj1 = 0 ; | |
26855 | char *kwnames[] = { | |
26856 | (char *) "self",(char *) "format", NULL | |
26857 | }; | |
26858 | ||
26859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
26860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26862 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
26863 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26864 | SWIG_fail; | |
26865 | if (arg2 == NULL) { | |
26866 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26867 | SWIG_fail; | |
26868 | } | |
26869 | { | |
26870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26871 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26872 | ||
26873 | wxPyEndAllowThreads(__tstate); | |
26874 | if (PyErr_Occurred()) SWIG_fail; | |
26875 | } | |
26876 | { | |
26877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26878 | } | |
26879 | return resultobj; | |
26880 | fail: | |
26881 | return NULL; | |
26882 | } | |
26883 | ||
26884 | ||
26885 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26886 | PyObject *resultobj; | |
26887 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26888 | wxDataObject *arg2 = 0 ; | |
26889 | bool result; | |
26890 | PyObject * obj0 = 0 ; | |
26891 | PyObject * obj1 = 0 ; | |
26892 | char *kwnames[] = { | |
26893 | (char *) "self",(char *) "data", NULL | |
26894 | }; | |
26895 | ||
26896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
26897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26900 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26901 | SWIG_fail; | |
26902 | if (arg2 == NULL) { | |
26903 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26904 | SWIG_fail; | |
26905 | } | |
26906 | { | |
26907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26908 | result = (bool)(arg1)->GetData(*arg2); | |
26909 | ||
26910 | wxPyEndAllowThreads(__tstate); | |
26911 | if (PyErr_Occurred()) SWIG_fail; | |
26912 | } | |
26913 | { | |
26914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26915 | } | |
26916 | return resultobj; | |
26917 | fail: | |
26918 | return NULL; | |
26919 | } | |
26920 | ||
26921 | ||
26922 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26923 | PyObject *resultobj; | |
26924 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26925 | PyObject * obj0 = 0 ; | |
26926 | char *kwnames[] = { | |
26927 | (char *) "self", NULL | |
26928 | }; | |
26929 | ||
26930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
26931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26933 | { | |
26934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26935 | (arg1)->Clear(); | |
26936 | ||
26937 | wxPyEndAllowThreads(__tstate); | |
26938 | if (PyErr_Occurred()) SWIG_fail; | |
26939 | } | |
26940 | Py_INCREF(Py_None); resultobj = Py_None; | |
26941 | return resultobj; | |
26942 | fail: | |
26943 | return NULL; | |
26944 | } | |
26945 | ||
26946 | ||
26947 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26948 | PyObject *resultobj; | |
26949 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26950 | bool result; | |
26951 | PyObject * obj0 = 0 ; | |
26952 | char *kwnames[] = { | |
26953 | (char *) "self", NULL | |
26954 | }; | |
26955 | ||
26956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
26957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26959 | { | |
26960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26961 | result = (bool)(arg1)->Flush(); | |
26962 | ||
26963 | wxPyEndAllowThreads(__tstate); | |
26964 | if (PyErr_Occurred()) SWIG_fail; | |
26965 | } | |
26966 | { | |
26967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26968 | } | |
26969 | return resultobj; | |
26970 | fail: | |
26971 | return NULL; | |
26972 | } | |
26973 | ||
26974 | ||
26975 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26976 | PyObject *resultobj; | |
26977 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26978 | bool arg2 = (bool) True ; | |
26979 | PyObject * obj0 = 0 ; | |
26980 | PyObject * obj1 = 0 ; | |
26981 | char *kwnames[] = { | |
26982 | (char *) "self",(char *) "primary", NULL | |
26983 | }; | |
26984 | ||
26985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
26986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26988 | if (obj1) { | |
26989 | arg2 = (bool) SWIG_AsBool(obj1); | |
26990 | if (PyErr_Occurred()) SWIG_fail; | |
26991 | } | |
26992 | { | |
26993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26994 | (arg1)->UsePrimarySelection(arg2); | |
26995 | ||
26996 | wxPyEndAllowThreads(__tstate); | |
26997 | if (PyErr_Occurred()) SWIG_fail; | |
26998 | } | |
26999 | Py_INCREF(Py_None); resultobj = Py_None; | |
27000 | return resultobj; | |
27001 | fail: | |
27002 | return NULL; | |
27003 | } | |
27004 | ||
27005 | ||
27006 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
27007 | PyObject *obj; | |
27008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27009 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27010 | Py_INCREF(obj); | |
27011 | return Py_BuildValue((char *)""); | |
27012 | } | |
27013 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
27014 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
27015 | return 1; | |
27016 | } | |
27017 | ||
27018 | ||
27019 | static PyObject *_wrap_TheClipboard_get() { | |
27020 | PyObject *pyobj; | |
27021 | ||
27022 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); | |
27023 | return pyobj; | |
27024 | } | |
27025 | ||
27026 | ||
27027 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27028 | PyObject *resultobj; | |
27029 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27030 | wxClipboardLocker *result; | |
27031 | PyObject * obj0 = 0 ; | |
27032 | char *kwnames[] = { | |
27033 | (char *) "clipboard", NULL | |
27034 | }; | |
27035 | ||
27036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27037 | if (obj0) { | |
27038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27040 | } | |
27041 | { | |
27042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27043 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27044 | ||
27045 | wxPyEndAllowThreads(__tstate); | |
27046 | if (PyErr_Occurred()) SWIG_fail; | |
27047 | } | |
27048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27049 | return resultobj; | |
27050 | fail: | |
27051 | return NULL; | |
27052 | } | |
27053 | ||
27054 | ||
27055 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27056 | PyObject *resultobj; | |
27057 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27058 | PyObject * obj0 = 0 ; | |
27059 | char *kwnames[] = { | |
27060 | (char *) "self", NULL | |
27061 | }; | |
27062 | ||
27063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27066 | { | |
27067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27068 | delete arg1; | |
27069 | ||
27070 | wxPyEndAllowThreads(__tstate); | |
27071 | if (PyErr_Occurred()) SWIG_fail; | |
27072 | } | |
27073 | Py_INCREF(Py_None); resultobj = Py_None; | |
27074 | return resultobj; | |
27075 | fail: | |
27076 | return NULL; | |
27077 | } | |
27078 | ||
27079 | ||
27080 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27081 | PyObject *resultobj; | |
27082 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27083 | bool result; | |
27084 | PyObject * obj0 = 0 ; | |
27085 | char *kwnames[] = { | |
27086 | (char *) "self", NULL | |
27087 | }; | |
27088 | ||
27089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27092 | { | |
27093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27094 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27095 | ||
27096 | wxPyEndAllowThreads(__tstate); | |
27097 | if (PyErr_Occurred()) SWIG_fail; | |
27098 | } | |
27099 | { | |
27100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27101 | } | |
27102 | return resultobj; | |
27103 | fail: | |
27104 | return NULL; | |
27105 | } | |
27106 | ||
27107 | ||
27108 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27109 | PyObject *obj; | |
27110 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27111 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27112 | Py_INCREF(obj); | |
27113 | return Py_BuildValue((char *)""); | |
27114 | } | |
27115 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27116 | PyObject *resultobj; | |
27117 | int arg1 = (int) 0 ; | |
27118 | int arg2 = (int) 0 ; | |
27119 | int arg3 = (int) 0 ; | |
27120 | int arg4 = (int) 0 ; | |
27121 | wxVideoMode *result; | |
27122 | PyObject * obj0 = 0 ; | |
27123 | PyObject * obj1 = 0 ; | |
27124 | PyObject * obj2 = 0 ; | |
27125 | PyObject * obj3 = 0 ; | |
27126 | char *kwnames[] = { | |
27127 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27128 | }; | |
27129 | ||
27130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27131 | if (obj0) { | |
27132 | arg1 = (int) SWIG_AsInt(obj0); | |
27133 | if (PyErr_Occurred()) SWIG_fail; | |
27134 | } | |
27135 | if (obj1) { | |
27136 | arg2 = (int) SWIG_AsInt(obj1); | |
27137 | if (PyErr_Occurred()) SWIG_fail; | |
27138 | } | |
27139 | if (obj2) { | |
27140 | arg3 = (int) SWIG_AsInt(obj2); | |
27141 | if (PyErr_Occurred()) SWIG_fail; | |
27142 | } | |
27143 | if (obj3) { | |
27144 | arg4 = (int) SWIG_AsInt(obj3); | |
27145 | if (PyErr_Occurred()) SWIG_fail; | |
27146 | } | |
27147 | { | |
27148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27149 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27150 | ||
27151 | wxPyEndAllowThreads(__tstate); | |
27152 | if (PyErr_Occurred()) SWIG_fail; | |
27153 | } | |
27154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27155 | return resultobj; | |
27156 | fail: | |
27157 | return NULL; | |
27158 | } | |
27159 | ||
27160 | ||
27161 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27162 | PyObject *resultobj; | |
27163 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27164 | PyObject * obj0 = 0 ; | |
27165 | char *kwnames[] = { | |
27166 | (char *) "self", NULL | |
27167 | }; | |
27168 | ||
27169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27172 | { | |
27173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27174 | delete arg1; | |
27175 | ||
27176 | wxPyEndAllowThreads(__tstate); | |
27177 | if (PyErr_Occurred()) SWIG_fail; | |
27178 | } | |
27179 | Py_INCREF(Py_None); resultobj = Py_None; | |
27180 | return resultobj; | |
27181 | fail: | |
27182 | return NULL; | |
27183 | } | |
27184 | ||
27185 | ||
27186 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27187 | PyObject *resultobj; | |
27188 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27189 | wxVideoMode *arg2 = 0 ; | |
27190 | bool result; | |
27191 | PyObject * obj0 = 0 ; | |
27192 | PyObject * obj1 = 0 ; | |
27193 | char *kwnames[] = { | |
27194 | (char *) "self",(char *) "other", NULL | |
27195 | }; | |
27196 | ||
27197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27201 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27202 | SWIG_fail; | |
27203 | if (arg2 == NULL) { | |
27204 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27205 | SWIG_fail; | |
27206 | } | |
27207 | { | |
27208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27209 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27210 | ||
27211 | wxPyEndAllowThreads(__tstate); | |
27212 | if (PyErr_Occurred()) SWIG_fail; | |
27213 | } | |
27214 | { | |
27215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27216 | } | |
27217 | return resultobj; | |
27218 | fail: | |
27219 | return NULL; | |
27220 | } | |
27221 | ||
27222 | ||
27223 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27224 | PyObject *resultobj; | |
27225 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27226 | int result; | |
27227 | PyObject * obj0 = 0 ; | |
27228 | char *kwnames[] = { | |
27229 | (char *) "self", NULL | |
27230 | }; | |
27231 | ||
27232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27235 | { | |
27236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27237 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27238 | ||
27239 | wxPyEndAllowThreads(__tstate); | |
27240 | if (PyErr_Occurred()) SWIG_fail; | |
27241 | } | |
27242 | resultobj = SWIG_FromInt((int)result); | |
27243 | return resultobj; | |
27244 | fail: | |
27245 | return NULL; | |
27246 | } | |
27247 | ||
27248 | ||
27249 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27250 | PyObject *resultobj; | |
27251 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27252 | int result; | |
27253 | PyObject * obj0 = 0 ; | |
27254 | char *kwnames[] = { | |
27255 | (char *) "self", NULL | |
27256 | }; | |
27257 | ||
27258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27261 | { | |
27262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27263 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27264 | ||
27265 | wxPyEndAllowThreads(__tstate); | |
27266 | if (PyErr_Occurred()) SWIG_fail; | |
27267 | } | |
27268 | resultobj = SWIG_FromInt((int)result); | |
27269 | return resultobj; | |
27270 | fail: | |
27271 | return NULL; | |
27272 | } | |
27273 | ||
27274 | ||
27275 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27276 | PyObject *resultobj; | |
27277 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27278 | int result; | |
27279 | PyObject * obj0 = 0 ; | |
27280 | char *kwnames[] = { | |
27281 | (char *) "self", NULL | |
27282 | }; | |
27283 | ||
27284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27287 | { | |
27288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27289 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27290 | ||
27291 | wxPyEndAllowThreads(__tstate); | |
27292 | if (PyErr_Occurred()) SWIG_fail; | |
27293 | } | |
27294 | resultobj = SWIG_FromInt((int)result); | |
27295 | return resultobj; | |
27296 | fail: | |
27297 | return NULL; | |
27298 | } | |
27299 | ||
27300 | ||
27301 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27302 | PyObject *resultobj; | |
27303 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27304 | bool result; | |
27305 | PyObject * obj0 = 0 ; | |
27306 | char *kwnames[] = { | |
27307 | (char *) "self", NULL | |
27308 | }; | |
27309 | ||
27310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27313 | { | |
27314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27315 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27316 | ||
27317 | wxPyEndAllowThreads(__tstate); | |
27318 | if (PyErr_Occurred()) SWIG_fail; | |
27319 | } | |
27320 | { | |
27321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27322 | } | |
27323 | return resultobj; | |
27324 | fail: | |
27325 | return NULL; | |
27326 | } | |
27327 | ||
27328 | ||
27329 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27330 | PyObject *resultobj; | |
27331 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27332 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27333 | bool result; | |
27334 | PyObject * obj0 = 0 ; | |
27335 | PyObject * obj1 = 0 ; | |
27336 | char *kwnames[] = { | |
27337 | (char *) "self",(char *) "other", NULL | |
27338 | }; | |
27339 | ||
27340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27343 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27345 | { | |
27346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27347 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27348 | ||
27349 | wxPyEndAllowThreads(__tstate); | |
27350 | if (PyErr_Occurred()) SWIG_fail; | |
27351 | } | |
27352 | { | |
27353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27354 | } | |
27355 | return resultobj; | |
27356 | fail: | |
27357 | return NULL; | |
27358 | } | |
27359 | ||
27360 | ||
27361 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27362 | PyObject *resultobj; | |
27363 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27364 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27365 | bool result; | |
27366 | PyObject * obj0 = 0 ; | |
27367 | PyObject * obj1 = 0 ; | |
27368 | char *kwnames[] = { | |
27369 | (char *) "self",(char *) "other", NULL | |
27370 | }; | |
27371 | ||
27372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27375 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27377 | { | |
27378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27379 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27380 | ||
27381 | wxPyEndAllowThreads(__tstate); | |
27382 | if (PyErr_Occurred()) SWIG_fail; | |
27383 | } | |
27384 | { | |
27385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27386 | } | |
27387 | return resultobj; | |
27388 | fail: | |
27389 | return NULL; | |
27390 | } | |
27391 | ||
27392 | ||
27393 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27394 | PyObject *resultobj; | |
27395 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27396 | int arg2 ; | |
27397 | PyObject * obj0 = 0 ; | |
27398 | PyObject * obj1 = 0 ; | |
27399 | char *kwnames[] = { | |
27400 | (char *) "self",(char *) "w", NULL | |
27401 | }; | |
27402 | ||
27403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27406 | arg2 = (int) SWIG_AsInt(obj1); | |
27407 | if (PyErr_Occurred()) SWIG_fail; | |
27408 | if (arg1) (arg1)->w = arg2; | |
27409 | ||
27410 | Py_INCREF(Py_None); resultobj = Py_None; | |
27411 | return resultobj; | |
27412 | fail: | |
27413 | return NULL; | |
27414 | } | |
27415 | ||
27416 | ||
27417 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27418 | PyObject *resultobj; | |
27419 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27420 | int result; | |
27421 | PyObject * obj0 = 0 ; | |
27422 | char *kwnames[] = { | |
27423 | (char *) "self", NULL | |
27424 | }; | |
27425 | ||
27426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27429 | result = (int) ((arg1)->w); | |
27430 | ||
27431 | resultobj = SWIG_FromInt((int)result); | |
27432 | return resultobj; | |
27433 | fail: | |
27434 | return NULL; | |
27435 | } | |
27436 | ||
27437 | ||
27438 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27439 | PyObject *resultobj; | |
27440 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27441 | int arg2 ; | |
27442 | PyObject * obj0 = 0 ; | |
27443 | PyObject * obj1 = 0 ; | |
27444 | char *kwnames[] = { | |
27445 | (char *) "self",(char *) "h", NULL | |
27446 | }; | |
27447 | ||
27448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27451 | arg2 = (int) SWIG_AsInt(obj1); | |
27452 | if (PyErr_Occurred()) SWIG_fail; | |
27453 | if (arg1) (arg1)->h = arg2; | |
27454 | ||
27455 | Py_INCREF(Py_None); resultobj = Py_None; | |
27456 | return resultobj; | |
27457 | fail: | |
27458 | return NULL; | |
27459 | } | |
27460 | ||
27461 | ||
27462 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27463 | PyObject *resultobj; | |
27464 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27465 | int result; | |
27466 | PyObject * obj0 = 0 ; | |
27467 | char *kwnames[] = { | |
27468 | (char *) "self", NULL | |
27469 | }; | |
27470 | ||
27471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27474 | result = (int) ((arg1)->h); | |
27475 | ||
27476 | resultobj = SWIG_FromInt((int)result); | |
27477 | return resultobj; | |
27478 | fail: | |
27479 | return NULL; | |
27480 | } | |
27481 | ||
27482 | ||
27483 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27484 | PyObject *resultobj; | |
27485 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27486 | int arg2 ; | |
27487 | PyObject * obj0 = 0 ; | |
27488 | PyObject * obj1 = 0 ; | |
27489 | char *kwnames[] = { | |
27490 | (char *) "self",(char *) "bpp", NULL | |
27491 | }; | |
27492 | ||
27493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27496 | arg2 = (int) SWIG_AsInt(obj1); | |
27497 | if (PyErr_Occurred()) SWIG_fail; | |
27498 | if (arg1) (arg1)->bpp = arg2; | |
27499 | ||
27500 | Py_INCREF(Py_None); resultobj = Py_None; | |
27501 | return resultobj; | |
27502 | fail: | |
27503 | return NULL; | |
27504 | } | |
27505 | ||
27506 | ||
27507 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27508 | PyObject *resultobj; | |
27509 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27510 | int result; | |
27511 | PyObject * obj0 = 0 ; | |
27512 | char *kwnames[] = { | |
27513 | (char *) "self", NULL | |
27514 | }; | |
27515 | ||
27516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27519 | result = (int) ((arg1)->bpp); | |
27520 | ||
27521 | resultobj = SWIG_FromInt((int)result); | |
27522 | return resultobj; | |
27523 | fail: | |
27524 | return NULL; | |
27525 | } | |
27526 | ||
27527 | ||
27528 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27529 | PyObject *resultobj; | |
27530 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27531 | int arg2 ; | |
27532 | PyObject * obj0 = 0 ; | |
27533 | PyObject * obj1 = 0 ; | |
27534 | char *kwnames[] = { | |
27535 | (char *) "self",(char *) "refresh", NULL | |
27536 | }; | |
27537 | ||
27538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27541 | arg2 = (int) SWIG_AsInt(obj1); | |
27542 | if (PyErr_Occurred()) SWIG_fail; | |
27543 | if (arg1) (arg1)->refresh = arg2; | |
27544 | ||
27545 | Py_INCREF(Py_None); resultobj = Py_None; | |
27546 | return resultobj; | |
27547 | fail: | |
27548 | return NULL; | |
27549 | } | |
27550 | ||
27551 | ||
27552 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27553 | PyObject *resultobj; | |
27554 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27555 | int result; | |
27556 | PyObject * obj0 = 0 ; | |
27557 | char *kwnames[] = { | |
27558 | (char *) "self", NULL | |
27559 | }; | |
27560 | ||
27561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27564 | result = (int) ((arg1)->refresh); | |
27565 | ||
27566 | resultobj = SWIG_FromInt((int)result); | |
27567 | return resultobj; | |
27568 | fail: | |
27569 | return NULL; | |
27570 | } | |
27571 | ||
27572 | ||
27573 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27574 | PyObject *obj; | |
27575 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27576 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27577 | Py_INCREF(obj); | |
27578 | return Py_BuildValue((char *)""); | |
27579 | } | |
27580 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27581 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27582 | return 1; | |
27583 | } | |
27584 | ||
27585 | ||
27586 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27587 | PyObject *pyobj; | |
27588 | ||
27589 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27590 | return pyobj; | |
27591 | } | |
27592 | ||
27593 | ||
27594 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27595 | PyObject *resultobj; | |
27596 | size_t arg1 = (size_t) 0 ; | |
27597 | wxDisplay *result; | |
27598 | PyObject * obj0 = 0 ; | |
27599 | char *kwnames[] = { | |
27600 | (char *) "index", NULL | |
27601 | }; | |
27602 | ||
27603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27604 | if (obj0) { | |
27605 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27606 | if (PyErr_Occurred()) SWIG_fail; | |
27607 | } | |
27608 | { | |
27609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27610 | result = (wxDisplay *)new wxDisplay(arg1); | |
27611 | ||
27612 | wxPyEndAllowThreads(__tstate); | |
27613 | if (PyErr_Occurred()) SWIG_fail; | |
27614 | } | |
27615 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27616 | return resultobj; | |
27617 | fail: | |
27618 | return NULL; | |
27619 | } | |
27620 | ||
27621 | ||
27622 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27623 | PyObject *resultobj; | |
27624 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27625 | PyObject * obj0 = 0 ; | |
27626 | char *kwnames[] = { | |
27627 | (char *) "self", NULL | |
27628 | }; | |
27629 | ||
27630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27633 | { | |
27634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27635 | delete arg1; | |
27636 | ||
27637 | wxPyEndAllowThreads(__tstate); | |
27638 | if (PyErr_Occurred()) SWIG_fail; | |
27639 | } | |
27640 | Py_INCREF(Py_None); resultobj = Py_None; | |
27641 | return resultobj; | |
27642 | fail: | |
27643 | return NULL; | |
27644 | } | |
27645 | ||
27646 | ||
27647 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27648 | PyObject *resultobj; | |
27649 | size_t result; | |
27650 | char *kwnames[] = { | |
27651 | NULL | |
27652 | }; | |
27653 | ||
27654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27655 | { | |
27656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27657 | result = (size_t)wxDisplay::GetCount(); | |
27658 | ||
27659 | wxPyEndAllowThreads(__tstate); | |
27660 | if (PyErr_Occurred()) SWIG_fail; | |
27661 | } | |
27662 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27663 | return resultobj; | |
27664 | fail: | |
27665 | return NULL; | |
27666 | } | |
27667 | ||
27668 | ||
27669 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27670 | PyObject *resultobj; | |
27671 | wxPoint *arg1 = 0 ; | |
27672 | int result; | |
27673 | wxPoint temp1 ; | |
27674 | PyObject * obj0 = 0 ; | |
27675 | char *kwnames[] = { | |
27676 | (char *) "pt", NULL | |
27677 | }; | |
27678 | ||
27679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27680 | { | |
27681 | arg1 = &temp1; | |
27682 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27683 | } | |
27684 | { | |
27685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27686 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27687 | ||
27688 | wxPyEndAllowThreads(__tstate); | |
27689 | if (PyErr_Occurred()) SWIG_fail; | |
27690 | } | |
27691 | resultobj = SWIG_FromInt((int)result); | |
27692 | return resultobj; | |
27693 | fail: | |
27694 | return NULL; | |
27695 | } | |
27696 | ||
27697 | ||
27698 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27699 | PyObject *resultobj; | |
27700 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27701 | int result; | |
27702 | PyObject * obj0 = 0 ; | |
27703 | char *kwnames[] = { | |
27704 | (char *) "window", NULL | |
27705 | }; | |
27706 | ||
27707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27710 | { | |
27711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27712 | result = (int)wxDisplay::GetFromWindow(arg1); | |
27713 | ||
27714 | wxPyEndAllowThreads(__tstate); | |
27715 | if (PyErr_Occurred()) SWIG_fail; | |
27716 | } | |
27717 | resultobj = SWIG_FromInt((int)result); | |
27718 | return resultobj; | |
27719 | fail: | |
27720 | return NULL; | |
27721 | } | |
27722 | ||
27723 | ||
27724 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27725 | PyObject *resultobj; | |
27726 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27727 | bool result; | |
27728 | PyObject * obj0 = 0 ; | |
27729 | char *kwnames[] = { | |
27730 | (char *) "self", NULL | |
27731 | }; | |
27732 | ||
27733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",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 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27739 | ||
27740 | wxPyEndAllowThreads(__tstate); | |
27741 | if (PyErr_Occurred()) SWIG_fail; | |
27742 | } | |
27743 | { | |
27744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27745 | } | |
27746 | return resultobj; | |
27747 | fail: | |
27748 | return NULL; | |
27749 | } | |
27750 | ||
27751 | ||
27752 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27753 | PyObject *resultobj; | |
27754 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27755 | wxRect result; | |
27756 | PyObject * obj0 = 0 ; | |
27757 | char *kwnames[] = { | |
27758 | (char *) "self", NULL | |
27759 | }; | |
27760 | ||
27761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27764 | { | |
27765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27766 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27767 | ||
27768 | wxPyEndAllowThreads(__tstate); | |
27769 | if (PyErr_Occurred()) SWIG_fail; | |
27770 | } | |
27771 | { | |
27772 | wxRect * resultptr; | |
27773 | resultptr = new wxRect((wxRect &) result); | |
27774 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27775 | } | |
27776 | return resultobj; | |
27777 | fail: | |
27778 | return NULL; | |
27779 | } | |
27780 | ||
27781 | ||
27782 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27783 | PyObject *resultobj; | |
27784 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27785 | wxString result; | |
27786 | PyObject * obj0 = 0 ; | |
27787 | char *kwnames[] = { | |
27788 | (char *) "self", NULL | |
27789 | }; | |
27790 | ||
27791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
27792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27794 | { | |
27795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27796 | result = ((wxDisplay const *)arg1)->GetName(); | |
27797 | ||
27798 | wxPyEndAllowThreads(__tstate); | |
27799 | if (PyErr_Occurred()) SWIG_fail; | |
27800 | } | |
27801 | { | |
27802 | #if wxUSE_UNICODE | |
27803 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27804 | #else | |
27805 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27806 | #endif | |
27807 | } | |
27808 | return resultobj; | |
27809 | fail: | |
27810 | return NULL; | |
27811 | } | |
27812 | ||
27813 | ||
27814 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27815 | PyObject *resultobj; | |
27816 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27817 | bool result; | |
27818 | PyObject * obj0 = 0 ; | |
27819 | char *kwnames[] = { | |
27820 | (char *) "self", NULL | |
27821 | }; | |
27822 | ||
27823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
27824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27826 | { | |
27827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27828 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
27829 | ||
27830 | wxPyEndAllowThreads(__tstate); | |
27831 | if (PyErr_Occurred()) SWIG_fail; | |
27832 | } | |
27833 | { | |
27834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27835 | } | |
27836 | return resultobj; | |
27837 | fail: | |
27838 | return NULL; | |
27839 | } | |
27840 | ||
27841 | ||
27842 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27843 | PyObject *resultobj; | |
27844 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27845 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27846 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27847 | PyObject *result; | |
27848 | PyObject * obj0 = 0 ; | |
27849 | PyObject * obj1 = 0 ; | |
27850 | char *kwnames[] = { | |
27851 | (char *) "self",(char *) "mode", NULL | |
27852 | }; | |
27853 | ||
27854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
27855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27857 | if (obj1) { | |
27858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27859 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27860 | SWIG_fail; | |
27861 | if (arg2 == NULL) { | |
27862 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27863 | SWIG_fail; | |
27864 | } | |
27865 | } | |
27866 | { | |
27867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27868 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
27869 | ||
27870 | wxPyEndAllowThreads(__tstate); | |
27871 | if (PyErr_Occurred()) SWIG_fail; | |
27872 | } | |
27873 | resultobj = result; | |
27874 | return resultobj; | |
27875 | fail: | |
27876 | return NULL; | |
27877 | } | |
27878 | ||
27879 | ||
27880 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27881 | PyObject *resultobj; | |
27882 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27883 | wxVideoMode result; | |
27884 | PyObject * obj0 = 0 ; | |
27885 | char *kwnames[] = { | |
27886 | (char *) "self", NULL | |
27887 | }; | |
27888 | ||
27889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
27890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27892 | { | |
27893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27894 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
27895 | ||
27896 | wxPyEndAllowThreads(__tstate); | |
27897 | if (PyErr_Occurred()) SWIG_fail; | |
27898 | } | |
27899 | { | |
27900 | wxVideoMode * resultptr; | |
27901 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
27902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
27903 | } | |
27904 | return resultobj; | |
27905 | fail: | |
27906 | return NULL; | |
27907 | } | |
27908 | ||
27909 | ||
27910 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27911 | PyObject *resultobj; | |
27912 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27913 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27914 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27915 | bool result; | |
27916 | PyObject * obj0 = 0 ; | |
27917 | PyObject * obj1 = 0 ; | |
27918 | char *kwnames[] = { | |
27919 | (char *) "self",(char *) "mode", NULL | |
27920 | }; | |
27921 | ||
27922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
27923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27925 | if (obj1) { | |
27926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27927 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27928 | SWIG_fail; | |
27929 | if (arg2 == NULL) { | |
27930 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27931 | SWIG_fail; | |
27932 | } | |
27933 | } | |
27934 | { | |
27935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27936 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
27937 | ||
27938 | wxPyEndAllowThreads(__tstate); | |
27939 | if (PyErr_Occurred()) SWIG_fail; | |
27940 | } | |
27941 | { | |
27942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27943 | } | |
27944 | return resultobj; | |
27945 | fail: | |
27946 | return NULL; | |
27947 | } | |
27948 | ||
27949 | ||
27950 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27951 | PyObject *resultobj; | |
27952 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27953 | PyObject * obj0 = 0 ; | |
27954 | char *kwnames[] = { | |
27955 | (char *) "self", NULL | |
27956 | }; | |
27957 | ||
27958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
27959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27961 | { | |
27962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27963 | (arg1)->ResetMode(); | |
27964 | ||
27965 | wxPyEndAllowThreads(__tstate); | |
27966 | if (PyErr_Occurred()) SWIG_fail; | |
27967 | } | |
27968 | Py_INCREF(Py_None); resultobj = Py_None; | |
27969 | return resultobj; | |
27970 | fail: | |
27971 | return NULL; | |
27972 | } | |
27973 | ||
27974 | ||
27975 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
27976 | PyObject *obj; | |
27977 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27978 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
27979 | Py_INCREF(obj); | |
27980 | return Py_BuildValue((char *)""); | |
27981 | } | |
27982 | static PyMethodDef SwigMethods[] = { | |
27983 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
27984 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
27985 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
27986 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
27987 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
27988 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
27989 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
27990 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
27991 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
27992 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
27993 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
27994 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
27995 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
27996 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
27997 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
27998 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
27999 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
28000 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
28001 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28002 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28003 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28004 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28005 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28006 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28007 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28008 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28009 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28010 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28011 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28012 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
28013 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
28014 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
28015 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28016 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28017 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28018 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28019 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28020 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28021 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28022 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28023 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28024 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28025 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28026 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28027 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28028 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28029 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28030 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28031 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28032 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28033 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28034 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28035 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28036 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28037 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28038 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28039 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28040 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28041 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28042 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28043 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28044 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28045 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28046 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28047 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28048 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28049 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
28050 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, | |
28051 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
28052 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28053 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28054 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28055 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28056 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28057 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28058 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28059 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28060 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28061 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28062 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28063 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28064 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28065 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28066 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28067 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28068 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
28069 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28070 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
28071 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28072 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
28073 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28074 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28075 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28076 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28077 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28078 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28079 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28080 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28081 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28082 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28083 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28084 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28085 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28086 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28087 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28088 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28089 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28090 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28091 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28092 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28093 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28094 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28095 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28096 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28097 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28098 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28099 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28100 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28101 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28102 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28103 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28104 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28105 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28106 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28107 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28108 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28109 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28110 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28111 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28112 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28113 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28114 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28115 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28116 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28117 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28118 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28119 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28120 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28121 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28122 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28123 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28124 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28125 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28126 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28127 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28128 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28129 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28130 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28131 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28132 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
28133 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
28134 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
28135 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
28136 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28137 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
28138 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28139 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, | |
28140 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28141 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28142 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28143 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28144 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28145 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28146 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28147 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28148 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28149 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28150 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28151 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28152 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28153 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28154 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28155 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28156 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28157 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28158 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28159 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28160 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28161 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28162 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28163 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28164 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28165 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28166 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28167 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28168 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28169 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28170 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28171 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28172 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28173 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28174 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28175 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28176 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28177 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28178 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28179 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28180 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28181 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28182 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28183 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28184 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28185 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28186 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28187 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28188 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28189 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28190 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28191 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28192 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28193 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28194 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28195 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28198 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28201 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
28205 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, | |
28206 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, | |
28207 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28209 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28210 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28211 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28214 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28215 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28216 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28221 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28222 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28224 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28225 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28228 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28229 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28230 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28231 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28232 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28233 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28234 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28237 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28238 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28239 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28241 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28242 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28243 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28245 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28246 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28247 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28250 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28259 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28260 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28265 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28273 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28275 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28277 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28278 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28279 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28281 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28285 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28291 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28292 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28293 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28294 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28296 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28297 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28298 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28300 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28301 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28304 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28305 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28306 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28309 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28310 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
b1f29bf7 RD |
28313 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS }, |
28314 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 28315 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, |
b1f29bf7 RD |
28316 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS }, |
28317 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 28318 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, |
b1f29bf7 RD |
28319 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS }, |
28320 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
28321 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, |
28322 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
28323 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28324 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28326 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28329 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28330 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28339 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28341 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28342 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28344 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28345 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28346 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28347 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28348 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28349 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28350 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28352 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28353 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28354 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28355 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28356 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28357 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28369 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
28370 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, | |
28378 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28383 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28386 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28387 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28389 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28400 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28412 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28414 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28415 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28416 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28417 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28419 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28420 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
28421 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
28422 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28423 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28424 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
28427 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28428 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
28431 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28440 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28452 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28458 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28461 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28468 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28469 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28476 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28483 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28498 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28507 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28508 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28509 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28510 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28522 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28523 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28524 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28525 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28526 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28527 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28528 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28529 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28530 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28531 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28532 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28543 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28558 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28559 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28577 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28578 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28579 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28580 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28582 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28583 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28586 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28588 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28619 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28621 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28622 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28623 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28624 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28625 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28626 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28627 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28628 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28629 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28630 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28631 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28633 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28636 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28637 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28640 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28641 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28644 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28645 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
28649 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28652 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28655 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28660 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28662 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28663 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28664 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28667 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28670 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
28674 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
28676 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28680 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28683 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28684 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28685 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
28686 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
28687 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28688 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28689 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28691 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28693 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28694 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28697 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
28698 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28701 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28704 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28709 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28711 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28714 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28715 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28717 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28718 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28719 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28720 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28725 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28729 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28730 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28732 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28734 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28735 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28736 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28737 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28738 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28739 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28740 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28741 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
28742 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28743 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28744 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28746 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28747 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28748 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28749 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28750 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28753 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28756 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28757 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28760 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28761 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28764 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28768 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28769 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28771 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28773 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
28774 | { NULL, NULL } | |
28775 | }; | |
28776 | ||
28777 | ||
28778 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28779 | ||
28780 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28781 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28782 | } | |
28783 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28784 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28785 | } | |
28786 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28787 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28788 | } | |
28789 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
28790 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
28791 | } | |
28792 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
28793 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
28794 | } | |
28795 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
28796 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
28797 | } | |
28798 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
28799 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
28800 | } | |
28801 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
28802 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
28803 | } | |
28804 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
28805 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
28806 | } | |
28807 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
28808 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
28809 | } | |
28810 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
28811 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28812 | } | |
28813 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
28814 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
28815 | } | |
28816 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
28817 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
28818 | } | |
28819 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
28820 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28821 | } | |
28822 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
28823 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28824 | } | |
28825 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
28826 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
28827 | } | |
28828 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
28829 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
28830 | } | |
28831 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
28832 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
28833 | } | |
28834 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
28835 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
28836 | } | |
28837 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
28838 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
28839 | } | |
28840 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
28841 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
28842 | } | |
28843 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
28844 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
28845 | } | |
28846 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
28847 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28848 | } | |
28849 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
28850 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28851 | } | |
28852 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
28853 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28854 | } | |
28855 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
28856 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28857 | } | |
28858 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
28859 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28860 | } | |
28861 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
28862 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
28863 | } | |
28864 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
28865 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
28866 | } | |
28867 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
28868 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28869 | } | |
28870 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
28871 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
28872 | } | |
28873 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
28874 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
28875 | } | |
28876 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
28877 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
28878 | } | |
28879 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
28880 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28881 | } | |
28882 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
28883 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28884 | } | |
28885 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
28886 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28887 | } | |
28888 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
28889 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
28890 | } | |
28891 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
28892 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
28893 | } | |
28894 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
28895 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
28896 | } | |
28897 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
28898 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
28899 | } | |
28900 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
28901 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28902 | } | |
28903 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
28904 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28905 | } | |
28906 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28907 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
28908 | } | |
28909 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28910 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28911 | } | |
28912 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
28913 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
28914 | } | |
28915 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
28916 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28917 | } | |
28918 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
28919 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28920 | } | |
28921 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28922 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28923 | } | |
28924 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28925 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28926 | } | |
28927 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
28928 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28929 | } | |
28930 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
28931 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28932 | } | |
28933 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
28934 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28935 | } | |
28936 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
28937 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28938 | } | |
28939 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
28940 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28941 | } | |
28942 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
28943 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28944 | } | |
28945 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28946 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28947 | } | |
28948 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28949 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28950 | } | |
28951 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28952 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28953 | } | |
28954 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28955 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28956 | } | |
28957 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28958 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28959 | } | |
28960 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28961 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28962 | } | |
28963 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28964 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28965 | } | |
28966 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
28967 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
28968 | } | |
28969 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
28970 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
28971 | } | |
28972 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
28973 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
28974 | } | |
28975 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
28976 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
28977 | } | |
28978 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
28979 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
28980 | } | |
28981 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
28982 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
28983 | } | |
28984 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
28985 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
28986 | } | |
28987 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
28988 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
28989 | } | |
28990 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
28991 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
28992 | } | |
28993 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
28994 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
28995 | } | |
28996 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
28997 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
28998 | } | |
28999 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29000 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29001 | } | |
29002 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29003 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29004 | } | |
29005 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29006 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29007 | } | |
29008 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29009 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29010 | } | |
29011 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29012 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29013 | } | |
29014 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29015 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29016 | } | |
29017 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29018 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29019 | } | |
29020 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29021 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29022 | } | |
29023 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29024 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29025 | } | |
29026 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29027 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29028 | } | |
29029 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29030 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29031 | } | |
29032 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29033 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29034 | } | |
29035 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29036 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29037 | } | |
29038 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29039 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29040 | } | |
29041 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29042 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29043 | } | |
29044 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29045 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29046 | } | |
29047 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29048 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29049 | } | |
29050 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29051 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29052 | } | |
29053 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29054 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29055 | } | |
29056 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29057 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29058 | } | |
29059 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29060 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29061 | } | |
29062 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29063 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29064 | } | |
29065 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29066 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29067 | } | |
29068 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29069 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29070 | } | |
29071 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29072 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29073 | } | |
29074 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29075 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29076 | } | |
29077 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29078 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29079 | } | |
29080 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29081 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29082 | } | |
29083 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29084 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29085 | } | |
29086 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29087 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29088 | } | |
29089 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29090 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29091 | } | |
29092 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29093 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29094 | } | |
29095 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29096 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29097 | } | |
29098 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29099 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29100 | } | |
29101 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29102 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29103 | } | |
29104 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29105 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29106 | } | |
29107 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29108 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29109 | } | |
29110 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29111 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29112 | } | |
29113 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29114 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29115 | } | |
29116 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29117 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29118 | } | |
29119 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29120 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29121 | } | |
29122 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29123 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29124 | } | |
29125 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29126 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29127 | } | |
29128 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29129 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29130 | } | |
29131 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29132 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29133 | } | |
29134 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29135 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29136 | } | |
29137 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29138 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29139 | } | |
29140 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29141 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29142 | } | |
29143 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29144 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29145 | } | |
29146 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29147 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29148 | } | |
29149 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29150 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29151 | } | |
29152 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29153 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29154 | } | |
29155 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29156 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29157 | } | |
29158 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
29159 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29160 | } | |
29161 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
29162 | return (void *)((wxObject *) ((wxImage *) x)); | |
29163 | } | |
29164 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29165 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29166 | } | |
29167 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29168 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29169 | } | |
29170 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29171 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29172 | } | |
29173 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29174 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29175 | } | |
29176 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29177 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29178 | } | |
29179 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29180 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29181 | } | |
29182 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29183 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29184 | } | |
29185 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29186 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29187 | } | |
29188 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29189 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29190 | } | |
29191 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29192 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29193 | } | |
29194 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29195 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29196 | } | |
29197 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29198 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29199 | } | |
29200 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29201 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29202 | } | |
29203 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29204 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29205 | } | |
29206 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29207 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29208 | } | |
29209 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29210 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29211 | } | |
29212 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29213 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29214 | } | |
29215 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29216 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29217 | } | |
29218 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29219 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29220 | } | |
29221 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29222 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29223 | } | |
29224 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29225 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29226 | } | |
29227 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29228 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29229 | } | |
29230 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29231 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29232 | } | |
29233 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29234 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29235 | } | |
29236 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29237 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29238 | } | |
29239 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29240 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29241 | } | |
29242 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29243 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29244 | } | |
29245 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29246 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29247 | } | |
29248 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29249 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29250 | } | |
29251 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29252 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29253 | } | |
29254 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29255 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29256 | } | |
29257 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29258 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29259 | } | |
29260 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29261 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29262 | } | |
29263 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29264 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29265 | } | |
29266 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29267 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29268 | } | |
29269 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29270 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29271 | } | |
29272 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29273 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29274 | } | |
29275 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29276 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29277 | } | |
29278 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29279 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29280 | } | |
29281 | 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}}; | |
29282 | 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}}; | |
29283 | 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}}; | |
29284 | 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}}; | |
29285 | 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}}; | |
29286 | 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}}; | |
29287 | 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}}; | |
29288 | 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}}; | |
29289 | 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}}; | |
29290 | 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}}; | |
29291 | 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}}; | |
29292 | 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}}; | |
29293 | 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}}; | |
29294 | 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}}; | |
29295 | 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}}; | |
29296 | 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}}; | |
29297 | 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}}; | |
29298 | 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}}; | |
29299 | 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}}; | |
29300 | 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}}; | |
29301 | 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}}; | |
29302 | 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}}; | |
29303 | 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}}; | |
29304 | 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}}; | |
29305 | 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}}; | |
29306 | 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}}; | |
29307 | 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}}; | |
b1f29bf7 | 29308 | 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}}; |
d55e5bfc RD |
29309 | 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}}; |
29310 | 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}}; | |
29311 | 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}}; | |
29312 | 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}}; | |
d55e5bfc RD |
29313 | 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}}; |
29314 | 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}}; | |
29315 | 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}}; | |
29316 | 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}}; | |
29317 | 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}}; | |
29318 | 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}}; | |
29319 | 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}}; | |
29320 | 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}}; | |
29321 | 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}}; | |
29322 | 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}}; | |
29323 | 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}}; | |
29324 | 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}}; | |
29325 | 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}}; | |
29326 | 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}}; | |
29327 | 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}}; | |
29328 | 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}}; | |
29329 | 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}}; | |
29330 | 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}}; | |
29331 | 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}}; | |
29332 | 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}}; | |
29333 | 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}}; | |
29334 | 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}}; | |
29335 | 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}}; | |
29336 | 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}}; | |
29337 | 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}}; | |
29338 | 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}}; | |
29339 | 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}}; | |
29340 | 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}}; | |
29341 | 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}}; | |
29342 | 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}}; | |
29343 | 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}}; | |
29344 | 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}}; | |
29345 | 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}}; | |
29346 | 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}}; | |
29347 | 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}}; | |
29348 | 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}}; | |
29349 | 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}}; | |
29350 | 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}}; | |
29351 | 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}}; | |
29352 | 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}}; | |
29353 | 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}}; | |
29354 | 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}}; | |
29355 | 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}}; | |
29356 | 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}}; | |
29357 | 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}}; | |
29358 | 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}}; | |
29359 | 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}}; | |
29360 | 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}}; | |
29361 | 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}}; | |
29362 | 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}}; | |
29363 | 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}}; | |
d55e5bfc RD |
29364 | 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}}; |
29365 | 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}}; | |
29366 | 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}}; | |
29367 | ||
29368 | static swig_type_info *swig_types_initial[] = { | |
29369 | _swigt__p_wxLogChain, | |
29370 | _swigt__p_wxMutexGuiLocker, | |
29371 | _swigt__p_wxMetafile, | |
29372 | _swigt__p_wxFileHistory, | |
29373 | _swigt__p_wxLog, | |
29374 | _swigt__p_wxDateTime__TimeZone, | |
29375 | _swigt__p_wxMenu, | |
29376 | _swigt__p_wxEvent, | |
29377 | _swigt__p_wxConfigBase, | |
29378 | _swigt__p_wxDisplay, | |
29379 | _swigt__p_wxFileType, | |
29380 | _swigt__p_wxLogGui, | |
29381 | _swigt__p_wxFont, | |
29382 | _swigt__p_wxDataFormat, | |
29383 | _swigt__p_wxTimerEvent, | |
29384 | _swigt__p_wxCaret, | |
29385 | _swigt__p_int, | |
29386 | _swigt__p_wxSize, | |
29387 | _swigt__p_wxClipboard, | |
29388 | _swigt__p_wxStopWatch, | |
29389 | _swigt__p_wxDC, | |
29390 | _swigt__p_wxClipboardLocker, | |
29391 | _swigt__p_wxIcon, | |
29392 | _swigt__p_wxLogStderr, | |
29393 | _swigt__p_wxLogTextCtrl, | |
29394 | _swigt__p_wxTextCtrl, | |
29395 | _swigt__p_wxBusyCursor, | |
b1f29bf7 | 29396 | _swigt__p_wxPyBitmapDataObject, |
d55e5bfc RD |
29397 | _swigt__p_wxPyTextDataObject, |
29398 | _swigt__p_wxBitmapDataObject, | |
29399 | _swigt__p_wxTextDataObject, | |
29400 | _swigt__p_wxDataObject, | |
d55e5bfc RD |
29401 | _swigt__p_wxFileDataObject, |
29402 | _swigt__p_wxCustomDataObject, | |
29403 | _swigt__p_wxURLDataObject, | |
29404 | _swigt__p_wxMetafileDataObject, | |
29405 | _swigt__p_wxSound, | |
29406 | _swigt__p_wxTimerRunner, | |
29407 | _swigt__p_wxLogWindow, | |
29408 | _swigt__p_wxTimeSpan, | |
29409 | _swigt__p_wxArrayString, | |
29410 | _swigt__p_wxWindowDisabler, | |
29411 | _swigt__p_wxToolTip, | |
29412 | _swigt__p_wxDataObjectComposite, | |
29413 | _swigt__p_wxFileConfig, | |
29414 | _swigt__p_wxSystemSettings, | |
29415 | _swigt__p_wxVideoMode, | |
29416 | _swigt__p_wxPyDataObjectSimple, | |
29417 | _swigt__p_wxDataObjectSimple, | |
29418 | _swigt__p_wxEvtHandler, | |
29419 | _swigt__p_wxRect, | |
29420 | _swigt__p_char, | |
29421 | _swigt__p_wxSingleInstanceChecker, | |
29422 | _swigt__p_wxFileTypeInfo, | |
29423 | _swigt__p_wxFrame, | |
29424 | _swigt__p_wxTimer, | |
29425 | _swigt__p_wxMimeTypesManager, | |
29426 | _swigt__p_wxPyArtProvider, | |
29427 | _swigt__p_wxPyTipProvider, | |
29428 | _swigt__p_wxTipProvider, | |
29429 | _swigt__p_wxJoystick, | |
29430 | _swigt__p_wxSystemOptions, | |
29431 | _swigt__p_wxPoint, | |
29432 | _swigt__p_wxJoystickEvent, | |
29433 | _swigt__p_wxCursor, | |
29434 | _swigt__p_wxObject, | |
29435 | _swigt__p_wxOutputStream, | |
29436 | _swigt__p_wxDateTime, | |
29437 | _swigt__p_wxPyDropSource, | |
29438 | _swigt__p_wxWindow, | |
29439 | _swigt__p_wxString, | |
29440 | _swigt__p_wxPyProcess, | |
29441 | _swigt__p_wxBitmap, | |
29442 | _swigt__p_wxConfig, | |
29443 | _swigt__p_wxChar, | |
29444 | _swigt__p_wxBusyInfo, | |
29445 | _swigt__p_wxPyDropTarget, | |
29446 | _swigt__p_wxPyTextDropTarget, | |
29447 | _swigt__p_wxPyFileDropTarget, | |
29448 | _swigt__p_wxProcessEvent, | |
29449 | _swigt__p_wxPyLog, | |
29450 | _swigt__p_wxLogNull, | |
29451 | _swigt__p_wxColour, | |
d55e5bfc RD |
29452 | _swigt__p_wxConfigPathChanger, |
29453 | _swigt__p_wxPyTimer, | |
29454 | _swigt__p_wxDateSpan, | |
29455 | 0 | |
29456 | }; | |
29457 | ||
29458 | ||
29459 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29460 | ||
29461 | static swig_const_info swig_const_table[] = { | |
29462 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
29463 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29464 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29465 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29466 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
29467 | {0}}; | |
29468 | ||
29469 | #ifdef __cplusplus | |
29470 | } | |
29471 | #endif | |
29472 | ||
29473 | #ifdef __cplusplus | |
29474 | extern "C" | |
29475 | #endif | |
29476 | SWIGEXPORT(void) SWIG_init(void) { | |
29477 | static PyObject *SWIG_globals = 0; | |
29478 | static int typeinit = 0; | |
29479 | PyObject *m, *d; | |
29480 | int i; | |
29481 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29482 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29483 | d = PyModule_GetDict(m); | |
29484 | ||
29485 | if (!typeinit) { | |
29486 | for (i = 0; swig_types_initial[i]; i++) { | |
29487 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29488 | } | |
29489 | typeinit = 1; | |
29490 | } | |
29491 | SWIG_InstallConstants(d,swig_const_table); | |
29492 | ||
29493 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); | |
29494 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29495 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29496 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29497 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29498 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29499 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29500 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29501 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29502 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29503 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29504 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29505 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29506 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29507 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29508 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29509 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29510 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29511 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29512 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29513 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29514 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29515 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29516 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29517 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29518 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29519 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29520 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29521 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29522 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29523 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29524 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29525 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29526 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29527 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29528 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29529 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29530 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29531 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29532 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29533 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29534 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29535 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29536 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29537 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29538 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29539 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29540 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29541 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29542 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29543 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29544 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29545 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29546 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29547 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29548 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29549 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29550 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29551 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29552 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29553 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29554 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29555 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29556 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29557 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29558 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29559 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29560 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29561 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29562 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29563 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29564 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29565 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29566 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29567 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29568 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29569 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29570 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29571 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29572 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29573 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29574 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29575 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29576 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29577 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29578 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29579 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29580 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29581 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29582 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29583 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
29584 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
29585 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29586 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29587 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
29588 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); | |
29589 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29590 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29591 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
29592 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
29593 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); | |
29594 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29595 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29596 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29597 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29598 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29599 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29600 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29601 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29602 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29603 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29604 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29605 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29606 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29607 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29608 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29609 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29610 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29611 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29612 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29613 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29614 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29615 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29616 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29617 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29618 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29619 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29620 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29621 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29622 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29623 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29624 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29625 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29626 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29627 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29628 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29629 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29630 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29631 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29632 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29633 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29634 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29635 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29636 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29637 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
29638 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
29639 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); | |
29640 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29641 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29642 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
29643 | ||
29644 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29645 | ||
29646 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); | |
29647 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29648 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29649 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29650 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29651 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29652 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
29653 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
29654 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29655 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29656 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
29657 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); | |
29658 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29659 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29660 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29661 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29662 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29663 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29664 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
29665 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
29666 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29667 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29668 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29669 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29670 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29671 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29672 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29673 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29674 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29675 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29676 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29677 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29678 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29679 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29680 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29681 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29682 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29683 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29684 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29685 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29686 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29687 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29688 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29689 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29690 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29691 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29692 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29693 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29694 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29695 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29696 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29697 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29698 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29699 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29700 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29701 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29702 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29703 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29704 | ||
29705 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29706 | ||
29707 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); | |
29708 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29709 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29710 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29711 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29712 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29713 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29714 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29715 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
29716 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); | |
29717 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
29718 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); | |
29719 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29720 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29721 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29722 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29723 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29724 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29725 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29726 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29727 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29728 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29729 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29730 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29731 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29732 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29733 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29734 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29735 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29736 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29737 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29738 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29739 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29740 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29741 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29742 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29743 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29744 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29745 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29746 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29747 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29748 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29749 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29750 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29751 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29752 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29753 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29754 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29755 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29756 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29757 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29758 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29759 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29760 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29761 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29762 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29763 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29764 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29765 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29766 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29767 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29768 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29769 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29770 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29771 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29772 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29773 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29774 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29775 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29776 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29777 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29778 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29779 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29780 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29781 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29782 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29783 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29784 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29785 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29786 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29787 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29788 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
29789 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
29790 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
29791 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
29792 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
29793 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
29794 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
29795 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
29796 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
29797 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
29798 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
29799 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
29800 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
29801 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
29802 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
29803 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
29804 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
29805 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
29806 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
29807 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
29808 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
29809 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
29810 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
29811 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
29812 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
29813 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
29814 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
29815 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
29816 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
29817 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
29818 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
29819 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
29820 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
29821 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
29822 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
29823 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
29824 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
29825 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
29826 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
29827 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
29828 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
29829 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
29830 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
29831 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
29832 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
29833 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
29834 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
29835 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
29836 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
29837 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
29838 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
29839 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
29840 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
29841 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
29842 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
29843 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
29844 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
29845 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
29846 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
29847 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
29848 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
29849 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
29850 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
29851 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
29852 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
29853 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
29854 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
29855 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
29856 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
29857 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
29858 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
29859 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
29860 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
29861 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
29862 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
29863 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
29864 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
29865 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
29866 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
29867 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
29868 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
29869 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
29870 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
29871 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
29872 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
29873 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); | |
29874 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); | |
29875 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
29876 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
29877 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
29878 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
29879 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
29880 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
29881 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
29882 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
29883 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
29884 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
29885 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
29886 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
29887 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
29888 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
29889 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
29890 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
29891 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
29892 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
29893 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
29894 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
29895 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); | |
29896 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
29897 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
29898 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
29899 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
29900 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
29901 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
29902 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
29903 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
29904 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
29905 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
29906 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
29907 | ||
29908 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
29909 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
29910 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
29911 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
29912 | ||
29913 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
29914 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); | |
29915 | } | |
29916 |